2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
548 PACKAGE_TARNAME
='emacs'
549 PACKAGE_VERSION
='24.0.50'
550 PACKAGE_STRING
='emacs 24.0.50'
554 ac_unique_file
="src/lisp.h"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_config_libobj_dir
=src
594 ac_subst_vars
='LTLIBOBJS
596 LIB_SRC_EXTRA_INSTALLABLES
598 GNUSTEP_SYSTEM_LIBRARIES
599 GNUSTEP_SYSTEM_HEADERS
618 x_default_search_path
714 program_transform_name
727 enable_option_checking
744 with_toolkit_scroll_bars
756 enable_ns_self_contained
758 enable_maintainer_mode
766 ac_precious_vars
='build_alias
778 # Initialize some variables set by options.
780 ac_init_version
=false
781 ac_unrecognized_opts
=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name
=s
,x
,x
,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir
='${exec_prefix}/bin'
807 sbindir
='${exec_prefix}/sbin'
808 libexecdir
='${exec_prefix}/libexec'
809 datarootdir
='${prefix}/share'
810 datadir
='${datarootdir}'
811 sysconfdir
='${prefix}/etc'
812 sharedstatedir
='${prefix}/com'
813 localstatedir
='${prefix}/var'
814 includedir
='${prefix}/include'
815 oldincludedir
='/usr/include'
816 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir
='${datarootdir}/info'
822 libdir
='${exec_prefix}/lib'
823 localedir
='${datarootdir}/locale'
824 mandir
='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\
$ac_option
838 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
850 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
853 -build |
--build |
--buil |
--bui |
--bu)
854 ac_prev
=build_alias
;;
855 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
856 build_alias
=$ac_optarg ;;
858 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
859 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
860 ac_prev
=cache_file
;;
861 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
862 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
863 cache_file
=$ac_optarg ;;
866 cache_file
=config.cache
;;
868 -datadir |
--datadir |
--datadi |
--datad)
870 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
871 datadir
=$ac_optarg ;;
873 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
874 |
--dataroo |
--dataro |
--datar)
875 ac_prev
=datarootdir
;;
876 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
877 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
878 datarootdir
=$ac_optarg ;;
880 -disable-* |
--disable-*)
881 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
884 as_fn_error
"invalid feature name: $ac_useropt"
885 ac_useropt_orig
=$ac_useropt
886 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep
=', ';;
894 eval enable_
$ac_useropt=no
;;
896 -docdir |
--docdir |
--docdi |
--doc |
--do)
898 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
901 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
903 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
906 -enable-* |
--enable-*)
907 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
910 as_fn_error
"invalid feature name: $ac_useropt"
911 ac_useropt_orig
=$ac_useropt
912 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep
=', ';;
920 eval enable_
$ac_useropt=\
$ac_optarg ;;
922 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
923 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
924 |
--exec |
--exe |
--ex)
925 ac_prev
=exec_prefix
;;
926 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
927 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
928 |
--exec=* |
--exe=* |
--ex=*)
929 exec_prefix
=$ac_optarg ;;
931 -gas |
--gas |
--ga |
--g)
932 # Obsolete; use --with-gas.
935 -help |
--help |
--hel |
--he |
-h)
937 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
938 ac_init_help
=recursive
;;
939 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
940 ac_init_help
=short
;;
942 -host |
--host |
--hos |
--ho)
943 ac_prev
=host_alias
;;
944 -host=* |
--host=* |
--hos=* |
--ho=*)
945 host_alias
=$ac_optarg ;;
947 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
949 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
951 htmldir
=$ac_optarg ;;
953 -includedir |
--includedir |
--includedi |
--included |
--include \
954 |
--includ |
--inclu |
--incl |
--inc)
955 ac_prev
=includedir
;;
956 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
957 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
958 includedir
=$ac_optarg ;;
960 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
962 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
963 infodir
=$ac_optarg ;;
965 -libdir |
--libdir |
--libdi |
--libd)
967 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
970 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
971 |
--libexe |
--libex |
--libe)
972 ac_prev
=libexecdir
;;
973 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
974 |
--libexe=* |
--libex=* |
--libe=*)
975 libexecdir
=$ac_optarg ;;
977 -localedir |
--localedir |
--localedi |
--localed |
--locale)
979 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
980 localedir
=$ac_optarg ;;
982 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
983 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
984 ac_prev
=localstatedir
;;
985 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
986 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
987 localstatedir
=$ac_optarg ;;
989 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
991 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
995 # Obsolete; use --without-fp.
998 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
999 |
--no-cr |
--no-c |
-n)
1002 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1003 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1006 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1007 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1008 |
--oldin |
--oldi |
--old |
--ol |
--o)
1009 ac_prev
=oldincludedir
;;
1010 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1011 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1012 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1013 oldincludedir
=$ac_optarg ;;
1015 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1017 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1018 prefix
=$ac_optarg ;;
1020 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1021 |
--program-pre |
--program-pr |
--program-p)
1022 ac_prev
=program_prefix
;;
1023 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1024 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1025 program_prefix
=$ac_optarg ;;
1027 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1028 |
--program-suf |
--program-su |
--program-s)
1029 ac_prev
=program_suffix
;;
1030 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1031 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1032 program_suffix
=$ac_optarg ;;
1034 -program-transform-name |
--program-transform-name \
1035 |
--program-transform-nam |
--program-transform-na \
1036 |
--program-transform-n |
--program-transform- \
1037 |
--program-transform |
--program-transfor \
1038 |
--program-transfo |
--program-transf \
1039 |
--program-trans |
--program-tran \
1040 |
--progr-tra |
--program-tr |
--program-t)
1041 ac_prev
=program_transform_name
;;
1042 -program-transform-name=* |
--program-transform-name=* \
1043 |
--program-transform-nam=* |
--program-transform-na=* \
1044 |
--program-transform-n=* |
--program-transform-=* \
1045 |
--program-transform=* |
--program-transfor=* \
1046 |
--program-transfo=* |
--program-transf=* \
1047 |
--program-trans=* |
--program-tran=* \
1048 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1049 program_transform_name
=$ac_optarg ;;
1051 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1053 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1054 pdfdir
=$ac_optarg ;;
1056 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1058 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1061 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1062 |
-silent |
--silent |
--silen |
--sile |
--sil)
1065 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1067 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1069 sbindir
=$ac_optarg ;;
1071 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1072 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1073 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1075 ac_prev
=sharedstatedir
;;
1076 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1077 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1078 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1080 sharedstatedir
=$ac_optarg ;;
1082 -site |
--site |
--sit)
1084 -site=* |
--site=* |
--sit=*)
1087 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1089 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1090 srcdir
=$ac_optarg ;;
1092 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1093 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1094 ac_prev
=sysconfdir
;;
1095 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1096 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1097 sysconfdir
=$ac_optarg ;;
1099 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1100 ac_prev
=target_alias
;;
1101 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1102 target_alias
=$ac_optarg ;;
1104 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1107 -version |
--version |
--versio |
--versi |
--vers |
-V)
1108 ac_init_version
=: ;;
1111 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error
"invalid package name: $ac_useropt"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval with_
$ac_useropt=\
$ac_optarg ;;
1126 -without-* |
--without-*)
1127 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error
"invalid package name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval with_
$ac_useropt=no
;;
1143 # Obsolete; use --with-x.
1146 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1147 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1148 ac_prev
=x_includes
;;
1149 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1150 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1151 x_includes
=$ac_optarg ;;
1153 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1154 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1155 ac_prev
=x_libraries
;;
1156 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1157 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1158 x_libraries
=$ac_optarg ;;
1160 -*) as_fn_error
"unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1165 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1169 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\
$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 if test -n "$ac_prev"; then
1186 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error
"missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val
=\$
$ac_var
1205 # Remove trailing slashes.
1208 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\
$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$
]* | ?
:[\\/]* ) continue;;
1214 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1216 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target
=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x
; then
1228 if test "x$build_alias" = x
; then
1229 cross_compiling
=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error
"working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error
"pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted
=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir
=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted
=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1287 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var
in $ac_precious_vars; do
1304 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1306 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1380 --x-includes=DIR X include files are
in DIR
1381 --x-libraries=DIR X library files are
in DIR
1384 --build=BUILD configure
for building on BUILD
[guessed
]
1385 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1396 --disable-option-checking ignore unrecognized
--enable/--with options
1397 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1398 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1399 --disable-ns-self-contained
1400 disable self contained build under NeXTstep
1401 --enable-asserts compile code with asserts enabled
1402 --enable-maintainer-mode
1403 enable make rules and dependencies not useful
(and
1404 sometimes confusing
) to the casual installer
1405 --enable-locallisppath=PATH
1406 directories Emacs should search
for lisp files
1407 specific to this site
1408 --enable-checking[=LIST
]
1409 enable expensive run-time checks. With LIST
, enable
1410 only specific categories of checks. Categories are
:
1411 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1412 stringfreelist
, xmallocoverrun
, conslist
1413 --enable-profiling build emacs with profiling support. This might not
1414 work on all platforms
1415 --enable-autodepend automatically generate dependencies to .h-files.
1416 Requires GNU Make and Gcc. Enabled
if GNU Make and
1418 --disable-largefile omit support
for large files
1421 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1422 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1423 --without-pop don
't support POP mail retrieval with movemail
1424 --with-kerberos support Kerberos-authenticated POP
1425 --with-kerberos5 support Kerberos version 5 authenticated POP
1426 --with-hesiod support Hesiod to get the POP server host
1427 --without-sound don't compile with sound support
1428 --without-sync-input process async input synchronously
1429 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1431 --without-xpm don
't compile with XPM image support
1432 --without-jpeg don't compile with JPEG image support
1433 --without-tiff don
't compile with TIFF image support
1434 --without-gif don't compile with GIF image support
1435 --without-png don
't compile with PNG image support
1436 --without-rsvg don't compile with SVG image support
1437 --without-xft don
't use XFT for anti aliased fonts
1438 --without-libotf don't use libotf
for OpenType font support
1439 --without-m17n-flt don
't use m17n-flt for text shaping
1440 --without-toolkit-scroll-bars
1441 don't use Motif or Xaw3d scroll bars
1442 --without-xaw3d don
't use Xaw3d
1443 --without-xim don't use X11 XIM
1444 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1445 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1447 --without-dbus don't compile with D-Bus support
1448 --without-gconf don
't compile with GConf support
1449 --without-makeinfo don't require makeinfo
for building manuals
1451 --with-pkg-config-prog=PATH
1452 path to pkg-config
for finding GTK and librsvg
1453 --with-gnustep-conf=PATH
1454 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1455 or
/etc
/GNUstep
/GNUstep.conf
1456 --with-x use the X Window System
1458 Some influential environment variables
:
1459 CC C compiler
command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1462 nonstandard directory
<lib dir
>
1463 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1464 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1465 you have headers
in a nonstandard directory
<include dir
>
1467 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1469 Use these variables to override the choices made by
`configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to the package provider.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 emacs configure 24.0.50
1536 generated by GNU Autoconf 2.64
1538 Copyright (C) 2009 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1559 *) ac_try_echo
=$ac_try;;
1561 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1565 if test -s conftest.err
; then
1566 grep -v '^ *+' conftest.err
>conftest.er1
1567 cat conftest.er1
>&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.
$ac_objext; then :
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.
$ac_ext >&5
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1585 } # ac_fn_c_try_compile
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1593 rm -f conftest.
$ac_objext conftest
$ac_exeext
1594 if { { ac_try
="$ac_link"
1596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 } # ac_fn_c_try_link
1633 # ac_fn_c_try_cpp LINENO
1634 # ----------------------
1635 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1642 *) ac_try_echo
=$ac_try;;
1644 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1648 if test -s conftest.err
; then
1649 grep -v '^ *+' conftest.err
>conftest.er1
1650 cat conftest.er1
>&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev
/null
&& {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.
$ac_ext >&5
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1670 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673 # the include files in INCLUDES and setting the cache variable VAR
1675 ac_fn_c_check_header_mongrel
()
1677 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1678 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1688 # Is the header compilable?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690 $as_echo_n "checking $2 usability... " >&6; }
1691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1696 if ac_fn_c_try_compile
"$LINENO"; then :
1697 ac_header_compiler
=yes
1699 ac_header_compiler
=no
1701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703 $as_echo "$ac_header_compiler" >&6; }
1705 # Is the header present?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707 $as_echo_n "checking $2 presence... " >&6; }
1708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1712 if ac_fn_c_try_cpp
"$LINENO"; then :
1713 ac_header_preproc
=yes
1715 ac_header_preproc
=no
1717 rm -f conftest.err conftest.
$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719 $as_echo "$ac_header_preproc" >&6; }
1721 # So? What about this header?
1722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1747 eval "$3=\$ac_header_compiler"
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1755 } # ac_fn_c_check_header_mongrel
1757 # ac_fn_c_try_run LINENO
1758 # ----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760 # that executables *can* be run.
1763 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1764 if { { ac_try
="$ac_link"
1766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1777 *) ac_try_echo
=$ac_try;;
1779 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.
$ac_ext >&5
1791 ac_retval
=$ac_status
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists and can be compiled using the include files in
1802 # INCLUDES, setting the cache variable VAR accordingly.
1803 ac_fn_c_check_header_compile
()
1805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1816 if ac_fn_c_try_compile
"$LINENO"; then :
1821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1828 } # ac_fn_c_check_header_compile
1830 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1831 # ----------------------------------------------
1832 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_preproc
()
1835 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1845 if ac_fn_c_try_cpp
"$LINENO"; then :
1850 rm -f conftest.err conftest.
$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1857 } # ac_fn_c_check_header_preproc
1859 # ac_fn_c_check_decl LINENO SYMBOL VAR
1860 # ------------------------------------
1861 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862 ac_fn_c_check_decl
()
1864 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866 $as_echo_n "checking whether $2 is declared... " >&6; }
1867 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1884 if ac_fn_c_try_compile
"$LINENO"; then :
1889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1896 } # ac_fn_c_check_decl
1898 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899 # ----------------------------------------------------
1900 # Tries to find if the field MEMBER exists in type AGGR, after including
1901 # INCLUDES, setting cache variable VAR accordingly.
1902 ac_fn_c_check_member
()
1904 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906 $as_echo_n "checking for $2.$3... " >&6; }
1907 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1923 if ac_fn_c_try_compile
"$LINENO"; then :
1926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1933 if (sizeof ac_aggr.$3)
1939 if ac_fn_c_try_compile
"$LINENO"; then :
1944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1953 } # ac_fn_c_check_member
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func
()
1960 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1978 # include <limits.h>
1980 # include <assert.h>
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
2007 if ac_fn_c_try_link
"$LINENO"; then :
2012 rm -f core conftest.err conftest.
$ac_objext \
2013 conftest
$ac_exeext conftest.
$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2020 } # ac_fn_c_check_func
2022 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023 # -------------------------------------------
2024 # Tests whether TYPE exists after having included INCLUDES, setting cache
2025 # variable VAR accordingly.
2026 ac_fn_c_check_type
()
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 { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2047 if ac_fn_c_try_compile
"$LINENO"; then :
2048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2060 if ac_fn_c_try_compile
"$LINENO"; then :
2065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2074 } # ac_fn_c_check_type
2075 cat >config.log
<<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2079 It was created by emacs $as_me 24.0.50, which was
2080 generated by GNU Autoconf 2.64. Invocation command line was
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2115 test -z "$as_dir" && as_dir
=.
2116 $as_echo "PATH: $as_dir"
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_must_keep_next
=false
2146 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2147 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2148 |
-silent |
--silent |
--silen |
--sile |
--sil)
2151 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2156 as_fn_append ac_configure_args1
" '$ac_arg'"
2157 if test $ac_must_keep_next = true
; then
2158 ac_must_keep_next
=false
# Got value, back to normal.
2161 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2162 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2163 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2164 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 -* ) ac_must_keep_next
=true
;;
2172 as_fn_append ac_configure_args
" '$ac_arg'"
2177 { ac_configure_args0
=; unset ac_configure_args0
;}
2178 { ac_configure_args1
=; unset ac_configure_args1
;}
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2191 ## ---------------- ##
2192 ## Cache variables. ##
2193 ## ---------------- ##
2196 # The following way of writing the cache mishandles newlines in values,
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229 ## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##
2234 for ac_var in $ac_subst_vars
2236 eval ac_val=\$$ac_var
2238 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 $as_echo "$ac_var='\''$ac_val'\''"
2244 if test -n "$ac_subst_files"; then
2246 ## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##
2251 for ac_var
in $ac_subst_files
2253 eval ac_val
=\$
$ac_var
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 $as_echo "$ac_var='\''$ac_val'\''"
2262 if test -s confdefs.h; then
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2280 for ac_signal
in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest
* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h
<<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2296 cat >>confdefs.h
<<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2300 cat >>confdefs.h
<<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2304 cat >>confdefs.h
<<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2308 cat >>confdefs.h
<<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2312 cat >>confdefs.h
<<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2321 if test -n "$CONFIG_SITE"; then
2322 ac_site_file1
=$CONFIG_SITE
2323 elif test "x$prefix" != xNONE
; then
2324 ac_site_file1
=$prefix/share
/config.site
2325 ac_site_file2
=$prefix/etc
/config.site
2327 ac_site_file1
=$ac_default_prefix/share
/config.site
2328 ac_site_file2
=$ac_default_prefix/etc
/config.site
2330 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2332 test "x$ac_site_file" = xNONE
&& continue
2333 if test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2341 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2348 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2349 *) .
"./$cache_file";;
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 as_fn_append ac_header_list
" sys/time.h"
2359 as_fn_append ac_header_list
" unistd.h"
2360 as_fn_append ac_func_list
" alarm"
2361 # Check that the precious variables saved in the cache have kept the same
2363 ac_cache_corrupted
=false
2364 for ac_var
in $ac_precious_vars; do
2365 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2366 eval ac_new_set
=\
$ac_env_${ac_var}_set
2367 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2368 eval ac_new_val
=\
$ac_env_${ac_var}_value
2369 case $ac_old_set,$ac_new_set in
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2373 ac_cache_corrupted
=: ;;
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2376 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2377 ac_cache_corrupted
=: ;;
2380 if test "x$ac_old_val" != "x$ac_new_val"; then
2381 # differences in whitespace do not lead to failure.
2382 ac_old_val_w
=`echo x $ac_old_val`
2383 ac_new_val_w
=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2386 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted
=:
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2390 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\
$ac_old_val
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2394 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2396 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2399 # Pass precious variables to config.status.
2400 if test "$ac_new_set" = set; then
2402 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2403 *) ac_arg
=$ac_var=$ac_new_val ;;
2405 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2407 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2411 if $ac_cache_corrupted; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2415 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2416 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 ## -------------------- ##
2419 ## Main body of script. ##
2420 ## -------------------- ##
2423 ac_cpp
='$CPP $CPPFLAGS'
2424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2429 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2433 test "$program_prefix" != NONE
&&
2434 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2435 # Use a double $ so make ignores it.
2436 test "$program_suffix" != NONE
&&
2437 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2438 # Double any \ or $.
2439 # By default was `s,x,x', remove it if useless.
2440 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2441 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444 lispdir
='${datadir}/emacs/${version}/lisp'
2445 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2446 '${datadir}/emacs/site-lisp'
2447 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2448 etcdir
='${datadir}/emacs/${version}/etc'
2449 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2450 docdir
='${datadir}/emacs/${version}/etc'
2451 gamedir
='${localstatedir}/games/emacs'
2458 # Check whether --with-pop was given.
2459 if test "${with_pop+set}" = set; then :
2465 if test "$with_pop" = yes; then
2466 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2471 # Check whether --with-kerberos was given.
2472 if test "${with_kerberos+set}" = set; then :
2473 withval
=$with_kerberos;
2478 if test "$with_kerberos" != no
; then
2479 $as_echo "#define KERBEROS 1" >>confdefs.h
2484 # Check whether --with-kerberos5 was given.
2485 if test "${with_kerberos5+set}" = set; then :
2486 withval
=$with_kerberos5;
2491 if test "${with_kerberos5}" != no
; then
2492 if test "${with_kerberos}" = no
; then
2494 $as_echo "#define KERBEROS 1" >>confdefs.h
2498 $as_echo "#define KERBEROS5 1" >>confdefs.h
2503 # Check whether --with-hesiod was given.
2504 if test "${with_hesiod+set}" = set; then :
2505 withval
=$with_hesiod;
2510 if test "$with_hesiod" != no
; then
2512 $as_echo "#define HESIOD 1" >>confdefs.h
2517 # Check whether --with-sound was given.
2518 if test "${with_sound+set}" = set; then :
2519 withval
=$with_sound;
2526 # Check whether --with-sync-input was given.
2527 if test "${with_sync_input+set}" = set; then :
2528 withval
=$with_sync_input;
2533 if test "$with_sync_input" = yes; then
2535 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2540 # Check whether --with-x-toolkit was given.
2541 if test "${with_x_toolkit+set}" = set; then :
2542 withval
=$with_x_toolkit; case "${withval}" in
2543 y | ye |
yes ) val
=gtk
;;
2545 l | lu | luc | luci | lucid
) val
=lucid
;;
2546 a |
at | ath | athe | athen | athena
) val
=athena
;;
2547 m | mo | mot | moti | motif
) val
=motif
;;
2548 g | gt | gtk
) val
=gtk
;;
2550 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
2551 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2552 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2561 # Check whether --with-xpm was given.
2562 if test "${with_xpm+set}" = set; then :
2569 # Check whether --with-jpeg was given.
2570 if test "${with_jpeg+set}" = set; then :
2577 # Check whether --with-tiff was given.
2578 if test "${with_tiff+set}" = set; then :
2585 # Check whether --with-gif was given.
2586 if test "${with_gif+set}" = set; then :
2593 # Check whether --with-png was given.
2594 if test "${with_png+set}" = set; then :
2601 # Check whether --with-rsvg was given.
2602 if test "${with_rsvg+set}" = set; then :
2610 # Check whether --with-xft was given.
2611 if test "${with_xft+set}" = set; then :
2618 # Check whether --with-libotf was given.
2619 if test "${with_libotf+set}" = set; then :
2620 withval
=$with_libotf;
2626 # Check whether --with-m17n-flt was given.
2627 if test "${with_m17n_flt+set}" = set; then :
2628 withval
=$with_m17n_flt;
2635 # Check whether --with-toolkit-scroll-bars was given.
2636 if test "${with_toolkit_scroll_bars+set}" = set; then :
2637 withval
=$with_toolkit_scroll_bars;
2639 with_toolkit_scroll_bars
=yes
2643 # Check whether --with-xaw3d was given.
2644 if test "${with_xaw3d+set}" = set; then :
2645 withval
=$with_xaw3d;
2651 # Check whether --with-xim was given.
2652 if test "${with_xim+set}" = set; then :
2659 # Check whether --with-ns was given.
2660 if test "${with_ns+set}" = set; then :
2668 # Check whether --with-gpm was given.
2669 if test "${with_gpm+set}" = set; then :
2676 # Check whether --with-dbus was given.
2677 if test "${with_dbus+set}" = set; then :
2684 # Check whether --with-gconf was given.
2685 if test "${with_gconf+set}" = set; then :
2686 withval
=$with_gconf;
2692 ## For the times when you want to build Emacs but don't have
2693 ## a suitable makeinfo, and can live without the manuals.
2695 # Check whether --with-makeinfo was given.
2696 if test "${with_makeinfo+set}" = set; then :
2697 withval
=$with_makeinfo;
2704 # Check whether --with-gtk was given.
2705 if test "${with_gtk+set}" = set; then :
2706 withval
=$with_gtk; as_fn_error
"--with-gtk has been removed. Use --with-x-toolkit to
2707 specify a toolkit." "$LINENO" 5
2712 # Check whether --with-gcc was given.
2713 if test "${with_gcc+set}" = set; then :
2714 withval
=$with_gcc; as_fn_error
"--with-gcc has been removed. Set the \`CC' environment
2715 variable to specify a compiler." "$LINENO" 5
2720 # Check whether --with-pkg-config-prog was given.
2721 if test "${with_pkg_config_prog+set}" = set; then :
2722 withval
=$with_pkg_config_prog;
2725 if test "X${with_pkg_config_prog}" != X
; then
2726 if test "${with_pkg_config_prog}" != yes; then
2727 PKG_CONFIG
="${with_pkg_config_prog}"
2732 # Check whether --with-gnustep-conf was given.
2733 if test "${with_gnustep_conf+set}" = set; then :
2734 withval
=$with_gnustep_conf;
2737 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2738 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2739 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2740 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2742 # Check whether --enable-ns-self-contained was given.
2743 if test "${enable_ns_self_contained+set}" = set; then :
2744 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2746 EN_NS_SELF_CONTAINED
=yes
2750 # Check whether --enable-asserts was given.
2751 if test "${enable_asserts+set}" = set; then :
2752 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2758 # Check whether --enable-maintainer-mode was given.
2759 if test "${enable_maintainer_mode+set}" = set; then :
2760 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2762 USE_MAINTAINER_MODE
=no
2765 if test $USE_MAINTAINER_MODE = yes; then
2772 # Check whether --enable-locallisppath was given.
2773 if test "${enable_locallisppath+set}" = set; then :
2774 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2776 elif test "${enableval}" != "yes"; then
2777 locallisppath
=${enableval}
2782 # Check whether --enable-checking was given.
2783 if test "${enable_checking+set}" = set; then :
2784 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2787 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2788 for check
in $ac_checking_flags
2791 # these set all the flags to specific states
2792 yes) ac_enable_checking
=1 ;;
2793 no
) ac_enable_checking
= ;
2794 ac_gc_check_stringbytes
= ;
2795 ac_gc_check_string_overrun
= ;
2796 ac_gc_check_string_free_list
= ;
2797 ac_xmalloc_overrun
= ;
2798 ac_gc_check_cons_list
= ;;
2799 all
) ac_enable_checking
=1 ;
2800 ac_gc_check_stringbytes
=1 ;
2801 ac_gc_check_string_overrun
=1 ;
2802 ac_gc_check_string_free_list
=1 ;
2803 ac_xmalloc_overrun
=1 ;
2804 ac_gc_check_cons_list
=1 ;;
2805 # these enable particular checks
2806 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2807 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2808 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2809 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2810 conslist
) ac_gc_check_cons_list
=1 ;;
2811 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
2816 if test x
$ac_enable_checking != x
; then
2818 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2821 if test x
$ac_gc_check_stringbytes != x
; then
2823 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2826 if test x
$ac_gc_check_stringoverrun != x
; then
2828 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2831 if test x
$ac_gc_check_string_free_list != x
; then
2833 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2836 if test x
$ac_xmalloc_overrun != x
; then
2838 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2841 if test x
$ac_gc_check_cons_list != x
; then
2843 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2847 # Check whether --enable-profiling was given.
2848 if test "${enable_profiling+set}" = set; then :
2849 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2852 if test x
$ac_enable_profiling != x
; then
2853 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2854 PROFILING_LDFLAGS
="-pg"
2860 # Check whether --enable-autodepend was given.
2861 if test "${enable_autodepend+set}" = set; then :
2862 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2864 ac_enable_autodepend
=yes
2868 #### Make srcdir absolute, if it isn't already. It's important to
2869 #### avoid running the path through pwd unnecessarily, since pwd can
2870 #### give you automounter prefixes, which can go away. We do all this
2871 #### so Emacs can find its files when run uninstalled.
2872 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2877 ## We may be able to use the $PWD environment variable to make this
2878 ## absolute. But sometimes PWD is inaccurate.
2879 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2880 ## but that tested only for a well-formed and valid PWD,
2881 ## it did not object when PWD was well-formed and valid but just wrong.
2882 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2886 srcdir
="`(cd ${srcdir}; pwd)`"
2889 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2892 #### Check if the source directory already has a configured system in it.
2893 if test `pwd` != `(cd ${srcdir} && pwd)` \
2894 && test -f "${srcdir}/src/config.h" ; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2896 as a build directory right now; it has been configured in its own
2897 right. To configure in another directory as well, you MUST
2898 use GNU make. If you do not have GNU make, then you must
2899 now do \`make distclean' in ${srcdir},
2900 and then run $0 again." >&5
2901 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2902 as a build directory right now; it has been configured in its own
2903 right. To configure in another directory as well, you MUST
2904 use GNU make. If you do not have GNU make, then you must
2905 now do \`make distclean' in ${srcdir},
2906 and then run $0 again." >&2;}
2909 #### Given the configuration name, set machfile and opsysfile to the
2910 #### names of the m/*.h and s/*.h files we should use.
2912 ### Canonicalize the configuration name.
2915 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2916 for ac_t
in install-sh
install.sh shtool
; do
2917 if test -f "$ac_dir/$ac_t"; then
2919 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2924 if test -z "$ac_aux_dir"; then
2925 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2933 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2934 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2937 # Make sure we can run config.sub.
2938 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2939 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2942 $as_echo_n "checking build system type... " >&6; }
2943 if test "${ac_cv_build+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2946 ac_build_alias
=$build_alias
2947 test "x$ac_build_alias" = x
&&
2948 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2949 test "x$ac_build_alias" = x
&&
2950 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2951 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2956 $as_echo "$ac_cv_build" >&6; }
2957 case $ac_cv_build in
2959 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2962 ac_save_IFS
=$IFS; IFS
='-'
2968 # Remember, the first character of IFS is used to create $*,
2969 # except with old shells:
2972 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2976 $as_echo_n "checking host system type... " >&6; }
2977 if test "${ac_cv_host+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2980 if test "x$host_alias" = x
; then
2981 ac_cv_host
=$ac_cv_build
2983 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2989 $as_echo "$ac_cv_host" >&6; }
2992 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2995 ac_save_IFS
=$IFS; IFS
='-'
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3005 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3009 configuration
=${host_alias-${build_alias-$host}}
3013 ### If you add support for a new configuration, add code to this
3014 ### switch statement to recognize your configuration name and select
3015 ### the appropriate operating system and machine description files.
3017 ### You would hope that you could choose an m/*.h file pretty much
3018 ### based on the machine portion of the configuration name, and an s-
3019 ### file based on the operating system portion. However, it turns out
3020 ### that each m/*.h file is pretty manufacturer-specific - for
3021 ### example mips.h is MIPS
3022 ### So we basically have to have a special case for each
3023 ### configuration name.
3025 ### As far as handling version numbers on operating systems is
3026 ### concerned, make sure things will fail in a fixable way. If
3027 ### /etc/MACHINES doesn't say anything about version numbers, be
3028 ### prepared to handle anything reasonably. If version numbers
3029 ### matter, be sure /etc/MACHINES says something about it.
3031 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3032 ### "System V Release 4"; he writes, "The old convention encouraged
3033 ### confusion between `system' and `release' levels'."
3035 machine
='' opsys
='' unported
=no
3036 case "${canonical}" in
3041 case "${canonical}" in
3042 alpha
*-*-freebsd*) machine
=alpha
;;
3043 arm
*-*-freebsd*) machine
=arm
;;
3044 ia64-
*-freebsd*) machine
=ia64
;;
3045 sparc-
*-freebsd*) machine
=sparc
;;
3046 sparc64-
*-freebsd*) machine
=sparc
;;
3047 powerpc-
*-freebsd*) machine
=macppc
;;
3048 i
[3456]86-*-freebsd*) machine
=intel386
;;
3049 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3053 ## FreeBSD kernel + glibc based userland
3056 case "${canonical}" in
3057 alpha
*-*-kfreebsd*) machine
=alpha
;;
3058 ia64-
*-kfreebsd*) machine
=ia64
;;
3059 sparc-
*-kfreebsd*) machine
=sparc
;;
3060 sparc64-
*-kfreebsd*) machine
=sparc
;;
3061 powerpc-
*-kfreebsd*) machine
=macppc
;;
3062 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3063 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3070 if test -f /usr
/lib
/crti.o
; then
3072 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
3076 case "${canonical}" in
3077 alpha
*-*-netbsd*) machine
=alpha
;;
3078 i
[3456]86-*-netbsd*) machine
=intel386
;;
3079 mips-
*-netbsd*) machine
=mips
;;
3080 mipsel-
*-netbsd*) machine
=mips
;;
3081 mipseb-
*-netbsd*) machine
=mips
;;
3082 powerpc-
*-netbsd*) machine
=macppc
;;
3083 sparc
*-*-netbsd*) machine
=sparc
;;
3084 vax-
*-netbsd*) machine
=vax
;;
3085 arm-
*-netbsd*) machine
=arm
;;
3086 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3087 hppa-
*-netbsd*) machine
=hp800
;;
3088 m68k-
*-netbsd*) machine
=m68k
;;
3095 case "${canonical}" in
3096 alpha
*-*-openbsd*) machine
=alpha
;;
3097 arm-
*-openbsd*) machine
=arm
;;
3098 i386-
*-openbsd*) machine
=intel386
;;
3099 powerpc-
*-openbsd*) machine
=macppc
;;
3100 sparc
*-*-openbsd*) machine
=sparc
;;
3101 vax-
*-openbsd*) machine
=vax
;;
3102 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3103 hppa-
*-openbsd*) machine
=hp800
;;
3110 case "${canonical}" in
3111 i
[3456]86-*-lynxos*) machine
=intel386
;;
3112 powerpc-
*-lynxos*) machine
=powerpc
;;
3116 alpha
*-*-linux-gnu* )
3117 machine
=alpha opsys
=gnu-linux
3121 machine
=arm opsys
=gnu-linux
3124 ## Apple Darwin / Mac OS X
3126 case "${canonical}" in
3127 i
[3456]86-* ) machine
=intel386
;;
3128 powerpc-
* ) machine
=macppc
;;
3129 x86_64-
* ) machine
=amdx86-64
;;
3133 # Define CPP as follows to make autoconf work correctly.
3134 CPP
="${CC-cc} -E -no-cpp-precomp"
3135 # Use fink packages if available.
3136 if test -d /sw
/include
&& test -d /sw
/lib
; then
3137 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3138 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3139 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3143 ## HP 9000 series 700 and 800, running HP/UX
3144 hppa
*-hp-hpux10.2
* )
3145 machine
=hp800 opsys
=hpux10-20
3147 hppa
*-hp-hpux1[1-9]* )
3148 machine
=hp800 opsys
=hpux11
3149 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3152 hppa
*-*-linux-gnu* )
3153 machine
=hp800 opsys
=gnu-linux
3158 machine
=ibms390 opsys
=gnu-linux
3160 s390x-
*-linux-gnu* )
3161 machine
=ibms390x opsys
=gnu-linux
3163 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3164 machine
=ibmrs6000 opsys
=aix4-2
3166 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3167 machine
=ibmrs6000 opsys
=aix4-2
3169 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3170 machine
=ibmrs6000 opsys
=aix4-2
3172 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3173 machine
=ibmrs6000 opsys
=aix4-2
3176 ## Macintosh PowerPC
3177 powerpc
*-*-linux-gnu* )
3178 machine
=macppc opsys
=gnu-linux
3181 ## Silicon Graphics machines
3184 machine
=iris4d opsys
=irix6-5
3185 # Without defining _LANGUAGE_C, things get masked out in the headers
3186 # so that, for instance, grepping for `free' in stdlib.h fails and
3187 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3188 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3189 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3193 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3194 machine
=sparc opsys
=gnu-linux
3198 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3199 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
3200 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
3201 case "${canonical}" in
3202 i
[3456]86-*-* ) machine
=intel386
;;
3203 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3204 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3205 sparc
* ) machine
=sparc
;;
3208 case "${canonical}" in
3209 *-sunos5.3
* |
*-solaris2.3
* )
3211 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3213 *-sunos5.4
* |
*-solaris2.4
* )
3215 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3218 *-sunos5.5
* |
*-solaris2.5
* )
3220 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3223 *-sunos5.6
* |
*-solaris2.6
* )
3225 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3228 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3230 emacs_check_sunpro_c
=yes
3231 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3233 *-sunos5* |
*-solaris* )
3235 emacs_check_sunpro_c
=yes
3236 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3239 ## Watch out for a compiler that we know will not work.
3240 case "${canonical}" in
3241 *-solaris* |
*-sunos5* )
3242 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3243 ## /usr/ucb/cc doesn't work;
3244 ## we should find some other compiler that does work.
3254 machine
=ia64 opsys
=gnu-linux
3257 ## Intel 386 machines where we don't care about the manufacturer
3260 case "${canonical}" in
3261 *-cygwin ) opsys
=cygwin
;;
3262 *-darwin* ) opsys
=darwin
3263 CPP
="${CC-cc} -E -no-cpp-precomp"
3265 *-linux-gnu* ) opsys
=gnu-linux
;;
3266 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3267 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3268 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3269 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3273 ## m68k Linux-based GNU system
3275 machine
=m68k opsys
=gnu-linux
3278 ## Mips Linux-based GNU system
3279 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3280 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3281 machine
=mips opsys
=gnu-linux
3284 ## AMD x86-64 Linux-based GNU system
3285 x86_64-
*-linux-gnu* )
3286 machine
=amdx86-64 opsys
=gnu-linux
3289 ## Tensilica Xtensa Linux-based GNU system
3290 xtensa
*-*-linux-gnu* )
3291 machine
=xtensa opsys
=gnu-linux
3294 ## SuperH Linux-based GNU system
3295 sh
[34]*-*-linux-gnu* )
3296 machine
=sh3 opsys
=gnu-linux
3304 ### If the code above didn't choose an operating system, just choose
3305 ### an operating system based on the configuration name. You really
3306 ### only want to use this when you have no idea what the right
3307 ### operating system is; if you know what operating systems a machine
3308 ### runs, it's cleaner to make it explicit in the case statement
3310 if test x
"${opsys}" = x
; then
3311 case "${canonical}" in
3312 *-gnu* ) opsys
=gnu
;;
3313 *-sysv4.2uw
* ) opsys
=unixware
;;
3314 *-sysv5uw* ) opsys
=unixware
;;
3315 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3316 *-sysv4.1
* |
*-sysvr4.1
* )
3317 NON_GNU_CPP
=/usr
/lib
/cpp
3319 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3320 if [ x
$NON_GNU_CPP = x
]; then
3321 if [ -f /usr
/ccs
/lib
/cpp
]; then
3322 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3324 NON_GNU_CPP
=/lib
/cpp
3328 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3337 if test $unported = yes; then
3338 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3339 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3342 machfile
="m/${machine}.h"
3343 opsysfile
="s/${opsys}.h"
3346 #### Choose a compiler.
3347 test -n "$CC" && cc_specified
=yes
3349 # Save the value of CFLAGS that the user specified.
3350 SPECIFIED_CFLAGS
="$CFLAGS"
3353 ac_cpp
='$CPP $CPPFLAGS'
3354 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3357 if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC
="$CC" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir
=.
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3396 if test -z "$ac_cv_prog_CC"; then
3398 # Extract the first word of "gcc", so it can be a program name with args.
3399 set dummy gcc
; ac_word
=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir
=.
3413 for ac_exec_ext
in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC
="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3434 if test "x$ac_ct_CC" = x
; then
3437 case $cross_compiling:$ac_tool_warned in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned
=yes ;;
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_CC+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC
="$CC" # Let the user override the test.
3461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir
=.
3466 for ac_exec_ext
in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3490 if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args.
3492 set dummy cc
; ac_word
=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC
="$CC" # Let the user override the test.
3502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir
=.
3507 for ac_exec_ext
in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected
=yes
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test $ac_prog_rejected = yes; then
3522 # We found a bogon in the path, so make sure we never use it.
3523 set dummy
$ac_cv_prog_CC
3525 if test $# != 0; then
3526 # We chose a different compiler from the bogus one.
3527 # However, it has the same basename, so the bogon will be chosen
3528 # first if we set CC to just the basename; use the full file name.
3530 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$CC"; then
3547 if test -n "$ac_tool_prefix"; then
3548 for ac_prog
in cl.exe
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_CC+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC
="$CC" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3587 test -n "$CC" && break
3590 if test -z "$CC"; then
3592 for ac_prog
in cl.exe
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy
$ac_prog; ac_word
=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3601 if test -n "$ac_ct_CC"; then
3602 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir
=.
3609 for ac_exec_ext
in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC
="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3622 if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3624 $as_echo "$ac_ct_CC" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3631 test -n "$ac_ct_CC" && break
3634 if test "x$ac_ct_CC" = x
; then
3637 case $cross_compiling:$ac_tool_warned in
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3641 ac_tool_warned
=yes ;;
3650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error
"no acceptable C compiler found in \$PATH
3653 See \`config.log' for more details." "$LINENO" 5; }
3655 # Provide some information about the compiler.
3656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3659 for ac_option
in --version -v -V -qversion; do
3660 { { ac_try
="$ac_compiler $ac_option >&5"
3662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3669 if test -s conftest.err; then
3671 ... rest of stderr output deleted ...
3672 10q' conftest.err >conftest.er1
3673 cat conftest.er1 >&5
3674 rm -f conftest.er1 conftest.err
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3686 FILE *f = fopen ("conftest.out", "w");
3687 return ferror (f) || fclose (f) != 0;
3693 ac_clean_files_save=$ac_clean_files
3694 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3695 # Try to create an executable without -o first, disregard a.out.
3696 # It will help us diagnose broken compilers, and finding out an intuition
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3699 $as_echo_n "checking for C compiler default output file name... " >&6; }
3700 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3702 # The possible output files:
3703 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3706 for ac_file in $ac_files
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3715 if { { ac_try="$ac_link_default"
3717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3718 *) ac_try_echo
=$ac_try;;
3720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link_default") 2>&5
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then :
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3729 # so that the user can short-circuit this test for compilers unknown to
3731 for ac_file
in $ac_files ''
3733 test -f "$ac_file" ||
continue
3735 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3738 # We found the default executable, but exeext='' is most
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3744 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746 # We set ac_cv_exeext here because the later test for it is not
3747 # safe: cross compilers may not add the suffix if given an `-o'
3748 # argument, so we may need to know it at that point already.
3749 # Even if this section looks crufty: it has the advantage of
3756 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; }
3763 if test -z "$ac_file"; then :
3764 $as_echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.
$ac_ext >&5
3767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 { as_fn_set_status
77
3770 as_fn_error
"C compiler cannot create executables
3771 See \`config.log' for more details." "$LINENO" 5; }; }
3773 ac_exeext
=$ac_cv_exeext
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; }
3779 # If not cross compiling, check that we can run a simple program.
3780 if test "$cross_compiling" != yes; then
3781 if { ac_try
='./$ac_file'
3782 { { case "(($ac_try" in
3783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_try") 2>&5
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; }; then
3794 if test "$cross_compiling" = maybe; then
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error "cannot run C compiled programs.
3800 If you meant to cross compile
, use \
`--host'.
3801 See \`config.log
' for more details." "$LINENO" 5; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3809 ac_clean_files=$ac_clean_files_save
3810 # Check that the compiler produces executables we can run. If not, either
3811 # the compiler is broken, or we cross compile.
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3813 $as_echo_n "checking whether we are cross compiling... " >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3815 $as_echo "$cross_compiling" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3818 $as_echo_n "checking for suffix of executables... " >&6; }
3819 if { { ac_try="$ac_link"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_link") 2>&5
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then :
3830 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3831 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3832 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3834 for ac_file
in conftest.exe conftest conftest.
*; do
3835 test -f "$ac_file" ||
continue
3837 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3838 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3847 See \`config.log' for more details." "$LINENO" 5; }
3849 rm -f conftest
$ac_cv_exeext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3851 $as_echo "$ac_cv_exeext" >&6; }
3853 rm -f conftest.
$ac_ext
3854 EXEEXT
=$ac_cv_exeext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857 $as_echo_n "checking for suffix of object files... " >&6; }
3858 if test "${ac_cv_objext+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 rm -f conftest.o conftest.obj
3873 if { { ac_try
="$ac_compile"
3875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_compile") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 for ac_file in conftest.o conftest.obj conftest.*; do
3885 test -f "$ac_file" || continue;
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3893 $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error "cannot compute suffix of object files
: cannot compile
3899 See \
`config.log' for more details." "$LINENO" 5; }
3901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3904 $as_echo "$ac_cv_objext" >&6; }
3905 OBJEXT=$ac_cv_objext
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3936 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then
3942 ac_test_CFLAGS=${CFLAGS+set}
3943 ac_save_CFLAGS=$CFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3945 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3946 if test "${ac_cv_prog_cc_g+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 ac_save_c_werror_flag=$ac_c_werror_flag
3950 ac_c_werror_flag=yes
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3979 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 if ac_fn_c_try_compile "$LINENO"; then :
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4006 $as_echo "$ac_cv_prog_cc_g" >&6; }
4007 if test "$ac_test_CFLAGS" = set; then
4008 CFLAGS=$ac_save_CFLAGS
4009 elif test $ac_cv_prog_cc_g = yes; then
4010 if test "$GCC" = yes; then
4016 if test "$GCC" = yes; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4023 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4027 ac_cv_prog_cc_c89=no
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4033 #include <sys/types.h>
4034 #include <sys/stat.h>
4035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4036 struct buf { int x; };
4037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4038 static char *e (p, i)
4044 static char *f (char * (*g) (char **, int), char **p, ...)
4049 s = g (p, va_arg (v,int));
4054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4055 function prototypes and stuff, but not '\xHH' hex character constants.
4056 These don't provoke an error unfortunately, instead are silently treated
4057 as 'x'. The following induces an error, until -std is added to get
4058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4059 array size at least. It's necessary to write '\x00'==0 to get something
4060 that's true only with -std. */
4061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4064 inside strings and character constants. */
4066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4068 int test (int i, double x);
4069 struct s1 {int (*f) (int a);};
4070 struct s2 {int (*f) (double a);};
4071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4085 CC="$ac_save_CC $ac_arg"
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_prog_cc_c89=$ac_arg
4089 rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break
4092 rm -f conftest.$ac_ext
4097 case "x$ac_cv_prog_cc_c89" in
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4100 $as_echo "none needed" >&6; } ;;
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4103 $as_echo "unsupported" >&6; } ;;
4105 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4109 if test "x$ac_cv_prog_cc_c89" != xno; then :
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 # On Suns, sometimes $CPP names a directory.
4121 if test -n "$CPP" && test -d "$CPP"; then
4125 ## If not using gcc, and on Solaris, and no CPP specified, see if
4126 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4127 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4128 test x"$CPP" = x; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4130 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4132 if test "${emacs_cv_sunpro_c+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4149 if ac_fn_c_try_link "$LINENO"; then :
4150 emacs_cv_sunpro_c=yes
4152 emacs_cv_sunpro_c=no
4154 rm -f core conftest.err conftest.$ac_objext \
4155 conftest$ac_exeext conftest.$ac_ext
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4159 $as_echo "$emacs_cv_sunpro_c" >&6; }
4161 if test x"$emacs_cv_sunpro_c" = xyes; then
4162 NON_GNU_CPP="$CC -E -Xs"
4166 #### Some systems specify a CPP to use unless we are using GCC.
4167 #### Now that we know whether we are using GCC, we can decide whether
4168 #### to use that one.
4169 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4174 #### Some systems specify a CC to use unless we are using GCC.
4175 #### Now that we know whether we are using GCC, we can decide whether
4176 #### to use that one.
4177 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4178 test x$cc_specified != xyes
4183 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4185 CC="$CC $GCC_TEST_OPTIONS"
4188 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4190 CC="$CC $NON_GCC_TEST_OPTIONS"
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.
$ac_ext
4256 if $ac_preproc_ok; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4271 for ac_c_preproc_warn_flag
in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if ac_fn_c_try_cpp
"$LINENO"; then :
4291 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.
$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4303 # Broken: success on invalid input.
4306 # Passes both tests.
4310 rm -f conftest.err conftest.
$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.
$ac_ext
4315 if $ac_preproc_ok; then :
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4325 ac_cpp
='$CPP $CPPFLAGS'
4326 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found
=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_prog
in grep ggrep
; do
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4352 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4355 $as_echo_n 0123456789 >"conftest.in"
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4364 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP
="$ac_path_GREP"
4368 ac_path_GREP_max
=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4376 $ac_path_GREP_found && break 3
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4385 ac_cv_path_GREP
=$GREP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP
="$ac_cv_path_GREP"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4399 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4400 then ac_cv_path_EGREP
="$GREP -E"
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found
=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4406 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_prog
in egrep; do
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4418 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4421 $as_echo_n 0123456789 >"conftest.in"
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4429 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4430 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP
="$ac_path_EGREP"
4434 ac_path_EGREP_max
=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4439 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4442 $ac_path_EGREP_found && break 3
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451 ac_cv_path_EGREP
=$EGREP
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP
="$ac_cv_path_EGREP"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4481 if ac_fn_c_try_compile
"$LINENO"; then :
4482 ac_cv_header_stdc
=yes
4484 ac_cv_header_stdc
=no
4486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev
/null
2>&1; then :
4499 ac_cv_header_stdc
=no
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev
/null
2>&1; then :
4516 ac_cv_header_stdc
=no
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4554 if ac_fn_c_try_run
"$LINENO"; then :
4557 ac_cv_header_stdc
=no
4559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4580 eval as_val
=\$
$as_ac_Header
4581 if test "x$as_val" = x
""yes; then :
4582 cat >>confdefs.h
<<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4600 if test "$MINIX" = yes; then
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4608 $as_echo "#define _MINIX 1" >>confdefs.h
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4614 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4615 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4621 # define __EXTENSIONS__ 1
4622 $ac_includes_default
4631 if ac_fn_c_try_compile
"$LINENO"; then :
4632 ac_cv_safe_to_define___extensions__
=yes
4634 ac_cv_safe_to_define___extensions__
=no
4636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4639 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4640 test $ac_cv_safe_to_define___extensions__ = yes &&
4641 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4643 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4645 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4647 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4649 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4653 ### Use -Wno-pointer-sign if the compiler supports it
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4655 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4656 SAVE_CFLAGS
="$CFLAGS"
4657 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4669 if ac_fn_c_try_compile
"$LINENO"; then :
4674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4675 if test $has_option = yes; then
4676 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4679 $as_echo "$has_option" >&6; }
4680 CFLAGS
="$SAVE_CFLAGS"
4684 ### Use -Wdeclaration-after-statement if the compiler supports it
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4686 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4687 SAVE_CFLAGS
="$CFLAGS"
4688 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4700 if ac_fn_c_try_compile
"$LINENO"; then :
4705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4706 if test $has_option = yes; then
4707 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4710 $as_echo "$has_option" >&6; }
4711 CFLAGS
="$SAVE_CFLAGS"
4715 #### Some other nice autoconf tests.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4718 $as_echo_n "checking whether ln -s works... " >&6; }
4720 if test "$LN_S" = "ln -s"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4722 $as_echo "yes" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4725 $as_echo "no, using $LN_S" >&6; }
4729 ac_cpp
='$CPP $CPPFLAGS'
4730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4734 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4735 # On Suns, sometimes $CPP names a directory.
4736 if test -n "$CPP" && test -d "$CPP"; then
4739 if test -z "$CPP"; then
4740 if test "${ac_cv_prog_CPP+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 # Double quotes because CPP needs to be expanded
4744 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4747 for ac_c_preproc_warn_flag
in '' yes
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4758 # include <limits.h>
4760 # include <assert.h>
4764 if ac_fn_c_try_cpp
"$LINENO"; then :
4767 # Broken: fails on valid input.
4770 rm -f conftest.err conftest.
$ac_ext
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <ac_nonexistent.h>
4778 if ac_fn_c_try_cpp
"$LINENO"; then :
4779 # Broken: success on invalid input.
4782 # Passes both tests.
4786 rm -f conftest.err conftest.
$ac_ext
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.
$ac_ext
4791 if $ac_preproc_ok; then :
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804 $as_echo "$CPP" >&6; }
4806 for ac_c_preproc_warn_flag
in '' yes
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4817 # include <limits.h>
4819 # include <assert.h>
4823 if ac_fn_c_try_cpp
"$LINENO"; then :
4826 # Broken: fails on valid input.
4829 rm -f conftest.err conftest.
$ac_ext
4831 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how.
4833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 #include <ac_nonexistent.h>
4837 if ac_fn_c_try_cpp
"$LINENO"; then :
4838 # Broken: success on invalid input.
4841 # Passes both tests.
4845 rm -f conftest.err conftest.
$ac_ext
4848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849 rm -f conftest.err conftest.
$ac_ext
4850 if $ac_preproc_ok; then :
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4856 See \`config.log' for more details." "$LINENO" 5; }
4860 ac_cpp
='$CPP $CPPFLAGS'
4861 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4865 # Find a good install program. We prefer a C program (faster),
4866 # so one script is as good as another. But avoid the broken or
4867 # incompatible versions:
4868 # SysV /etc/install, /usr/sbin/install
4869 # SunOS /usr/etc/install
4870 # IRIX /sbin/install
4872 # AmigaOS /C/install, which installs bootblocks on floppy discs
4873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4876 # OS/2's system install, which has a completely different semantic
4877 # ./install, which can be erroneously created by make from ./install.sh.
4878 # Reject install programs that cannot install multiple files.
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4881 if test -z "$INSTALL"; then
4882 if test "${ac_cv_path_install+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir
=.
4890 # Account for people who put trailing slashes in PATH elements.
4891 case $as_dir/ in #((
4892 .
/ | .
// |
/[cC
]/* | \
4893 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4894 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4897 # OSF1 and SCO ODT 3.0 have their own names for install.
4898 # Don't use installbsd from OSF since it installs stuff as root
4900 for ac_prog
in ginstall scoinst
install; do
4901 for ac_exec_ext
in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4903 if test $ac_prog = install &&
4904 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4905 # AIX install. It has an incompatible calling convention.
4907 elif test $ac_prog = install &&
4908 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4909 # program-specific install script used by HP pwplus--don't use.
4912 rm -rf conftest.one conftest.two conftest.dir
4913 echo one
> conftest.one
4914 echo two
> conftest.two
4916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4917 test -s conftest.one
&& test -s conftest.two
&&
4918 test -s conftest.dir
/conftest.one
&&
4919 test -s conftest.dir
/conftest.two
4921 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4934 rm -rf conftest.one conftest.two conftest.dir
4937 if test "${ac_cv_path_install+set}" = set; then
4938 INSTALL
=$ac_cv_path_install
4940 # As a last resort, use the slow shell script. Don't cache a
4941 # value for INSTALL within a source directory, because that will
4942 # break other packages using the cache if that directory is
4943 # removed, or if the value is a relative name.
4944 INSTALL
=$ac_install_sh
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4948 $as_echo "$INSTALL" >&6; }
4950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4951 # It thinks the first close brace ends the variable substitution.
4952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4956 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4958 if test "x$RANLIB" = x
; then
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4961 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$RANLIB"; then
4968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir
=.
4975 for ac_exec_ext
in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 RANLIB
=$ac_cv_prog_RANLIB
4988 if test -n "$RANLIB"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4990 $as_echo "$RANLIB" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4998 if test -z "$ac_cv_prog_RANLIB"; then
4999 ac_ct_RANLIB
=$RANLIB
5000 # Extract the first word of "ranlib", so it can be a program name with args.
5001 set dummy ranlib
; ac_word
=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$ac_ct_RANLIB"; then
5008 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5028 if test -n "$ac_ct_RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5030 $as_echo "$ac_ct_RANLIB" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5036 if test "x$ac_ct_RANLIB" = x
; then
5039 case $cross_compiling:$ac_tool_warned in
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043 ac_tool_warned
=yes ;;
5045 RANLIB
=$ac_ct_RANLIB
5048 RANLIB
="$ac_cv_prog_RANLIB"
5052 # Extract the first word of "install-info", so it can be a program name with args.
5053 set dummy install-info
; ac_word
=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5059 case $INSTALL_INFO in
5061 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5083 if test -n "$INSTALL_INFO"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5085 $as_echo "$INSTALL_INFO" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 # Extract the first word of "install-info", so it can be a program name with args.
5093 set dummy install-info
; ac_word
=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5099 case $INSTALL_INFO in
5101 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5105 for as_dir
in /usr
/sbin
5108 test -z "$as_dir" && as_dir
=.
5109 for ac_exec_ext
in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5123 if test -n "$INSTALL_INFO"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5125 $as_echo "$INSTALL_INFO" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 # Extract the first word of "install-info", so it can be a program name with args.
5133 set dummy install-info
; ac_word
=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5139 case $INSTALL_INFO in
5141 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir
=.
5149 for ac_exec_ext
in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5163 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5164 if test -n "$INSTALL_INFO"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5166 $as_echo "$INSTALL_INFO" >&6; }
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 # Extract the first word of "gzip", so it can be a program name with args.
5174 set dummy
gzip; ac_word
=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5182 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir
=.
5190 for ac_exec_ext
in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5204 if test -n "$GZIP_PROG"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5206 $as_echo "$GZIP_PROG" >&6; }
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5215 ## Need makeinfo >= 4.6 (?) to build the manuals.
5216 # Extract the first word of "makeinfo", so it can be a program name with args.
5217 set dummy makeinfo
; ac_word
=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5225 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_exec_ext
in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5247 MAKEINFO
=$ac_cv_path_MAKEINFO
5248 if test -n "$MAKEINFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5250 $as_echo "$MAKEINFO" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 if test "$MAKEINFO" != "no" && \
5258 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
5262 ## Makeinfo is unusual. For a released Emacs, the manuals are
5263 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5264 ## therefore in the category of "special tools" not normally required, which
5265 ## configure does not have to check for (eg autoconf itself).
5266 ## In a Bazaar checkout on the other hand, the manuals are not included.
5267 ## So makeinfo is a requirement to build from Bazaar, and configure
5268 ## should test for it as it does for any other build requirement.
5269 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5270 ## with pre-built manuals, from a Bazaar checkout.
5271 if test "$MAKEINFO" = "no"; then
5272 if test "x${with_makeinfo}" = "xno"; then
5274 elif ! test -e $srcdir/info
/emacs
; then
5275 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5276 source tree does not seem to have pre-built manuals in the \`info' directory.
5277 Either install a suitable version of makeinfo, or re-run configure
5278 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5283 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5285 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5288 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5290 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5294 late_LDFLAGS
=$LDFLAGS
5295 if test "$GCC" = yes; then
5296 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5298 LDFLAGS
="$LDFLAGS -znocombreloc"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5302 $as_echo_n "checking for -znocombreloc... " >&6; }
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5307 if ac_fn_c_try_link
"$LINENO"; then :
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5311 LDFLAGS
=$late_LDFLAGS
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5315 rm -f core conftest.err conftest.
$ac_objext \
5316 conftest
$ac_exeext conftest.
$ac_ext
5318 #### Extract some information from the operating system and machine files.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&5
5323 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5324 - which libraries the lib-src programs will want, and
5325 - whether the GNU malloc routines are usable..." >&6;}
5327 ### First figure out CFLAGS (which we use for running the compiler here)
5328 ### and REAL_CFLAGS (which we use for real compilation).
5329 ### The two are the same except on a few systems, where they are made
5330 ### different to work around various lossages. For example,
5331 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5332 ### as implying static linking.
5334 ### If the CFLAGS env var is specified, we use that value
5335 ### instead of the default.
5337 ### It's not important that this name contain the PID; you can't run
5338 ### two configures in the same directory and have anything work
5340 tempcname
="conftest.c"
5343 #include "'${srcdir}'/src/'${opsysfile}'"
5344 #include "'${srcdir}'/src/'${machfile}'"
5345 #ifndef LIBS_MACHINE
5346 #define LIBS_MACHINE
5351 #ifndef C_SWITCH_SYSTEM
5352 #define C_SWITCH_SYSTEM
5354 #ifndef C_SWITCH_MACHINE
5355 #define C_SWITCH_MACHINE
5357 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5358 configure___ c_switch_system=C_SWITCH_SYSTEM
5359 configure___ c_switch_machine=C_SWITCH_MACHINE
5362 #define LIB_X11_LIB -lX11
5365 #ifndef LIBX11_SYSTEM
5366 #define LIBX11_SYSTEM
5368 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5371 configure___ unexec=UNEXEC
5373 configure___ unexec=unexec.o
5376 #ifdef SYSTEM_MALLOC
5377 configure___ system_malloc=yes
5379 configure___ system_malloc=no
5382 #ifdef USE_MMAP_FOR_BUFFERS
5383 configure___ use_mmap_for_buffers=yes
5385 configure___ use_mmap_for_buffers=no
5388 #ifndef C_DEBUG_SWITCH
5389 #define C_DEBUG_SWITCH -g
5392 #ifndef C_OPTIMIZE_SWITCH
5394 #define C_OPTIMIZE_SWITCH -O2
5396 #define C_OPTIMIZE_SWITCH -O
5400 #ifndef C_WARNINGS_SWITCH
5401 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5404 #ifndef LD_SWITCH_MACHINE
5405 #define LD_SWITCH_MACHINE
5408 #ifndef LD_SWITCH_SYSTEM
5409 #define LD_SWITCH_SYSTEM
5412 #ifndef LD_SWITCH_X_SITE_AUX
5413 #define LD_SWITCH_X_SITE_AUX
5416 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5417 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5419 #ifdef THIS_IS_CONFIGURE
5421 /* Get the CFLAGS for tests in configure. */
5423 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5425 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5428 #else /* not THIS_IS_CONFIGURE */
5430 /* Get the CFLAGS for real compilation. */
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5434 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5437 #endif /* not THIS_IS_CONFIGURE */
5440 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5442 # The value of CPP is a quoted variable reference, so we need to do this
5443 # to get its actual value...
5444 CPP
=`eval "echo $CPP"`
5445 eval `${CPP} -Isrc ${tempcname} \
5446 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5447 if test "x$SPECIFIED_CFLAGS" = x
; then
5448 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5449 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5451 REAL_CFLAGS
="$CFLAGS"
5455 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
5457 ### Make sure subsequent tests use flags consistent with the build flags.
5459 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5460 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5462 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
5467 # Check whether --enable-largefile was given.
5468 if test "${enable_largefile+set}" = set; then :
5469 enableval
=$enable_largefile;
5472 if test "$enable_largefile" != no
; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5475 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5476 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 ac_cv_sys_largefile_CC
=no
5480 if test "$GCC" != yes; then
5483 # IRIX 6.2 and later do not support large files by default,
5484 # so use the C compiler's -n32 option if that helps.
5485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5504 if ac_fn_c_try_compile
"$LINENO"; then :
5507 rm -f core conftest.err conftest.
$ac_objext
5509 if ac_fn_c_try_compile
"$LINENO"; then :
5510 ac_cv_sys_largefile_CC
=' -n32'; break
5512 rm -f core conftest.err conftest.
$ac_objext
5516 rm -f conftest.
$ac_ext
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5520 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5521 if test "$ac_cv_sys_largefile_CC" != no
; then
5522 CC
=$CC$ac_cv_sys_largefile_CC
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5526 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5527 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 /* Check that off_t can represent 2**63 - 1 correctly.
5535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536 since some C++ compilers masquerading as C compilers
5537 incorrectly reject 9223372036854775807. */
5538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5540 && LARGE_OFF_T % 2147483647 == 1)
5550 if ac_fn_c_try_compile
"$LINENO"; then :
5551 ac_cv_sys_file_offset_bits
=no
; break
5553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #define _FILE_OFFSET_BITS 64
5557 #include <sys/types.h>
5558 /* Check that off_t can represent 2**63 - 1 correctly.
5559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5560 since some C++ compilers masquerading as C compilers
5561 incorrectly reject 9223372036854775807. */
5562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5564 && LARGE_OFF_T % 2147483647 == 1)
5574 if ac_fn_c_try_compile
"$LINENO"; then :
5575 ac_cv_sys_file_offset_bits
=64; break
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 ac_cv_sys_file_offset_bits
=unknown
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5583 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5584 case $ac_cv_sys_file_offset_bits in #(
5587 cat >>confdefs.h
<<_ACEOF
5588 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5593 if test $ac_cv_sys_file_offset_bits = unknown
; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5595 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5596 if test "${ac_cv_sys_large_files+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5619 if ac_fn_c_try_compile
"$LINENO"; then :
5620 ac_cv_sys_large_files
=no
; break
5622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #define _LARGE_FILES 1
5626 #include <sys/types.h>
5627 /* Check that off_t can represent 2**63 - 1 correctly.
5628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5629 since some C++ compilers masquerading as C compilers
5630 incorrectly reject 9223372036854775807. */
5631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5633 && LARGE_OFF_T % 2147483647 == 1)
5643 if ac_fn_c_try_compile
"$LINENO"; then :
5644 ac_cv_sys_large_files
=1; break
5646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5647 ac_cv_sys_large_files
=unknown
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5652 $as_echo "$ac_cv_sys_large_files" >&6; }
5653 case $ac_cv_sys_large_files in #(
5656 cat >>confdefs.h
<<_ACEOF
5657 #define _LARGE_FILES $ac_cv_sys_large_files
5667 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5668 ### be located in either /usr/lib64 or /usr/lib.
5669 ### In some rare cases, /usr/lib64 exists but does not contain the
5670 ### relevant files (bug#1287). Hence test for crtn.o.
5671 case "${canonical}" in
5672 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu* )
5673 if test -e /usr
/lib64
/crtn.o
; then
5675 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
5683 if test "${with_sound}" != "no"; then
5684 # Sound support for GNU/Linux and the free BSDs.
5685 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5687 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5688 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5689 eval as_val
=\$
$as_ac_Header
5690 if test "x$as_val" = x
""yes; then :
5691 cat >>confdefs.h
<<_ACEOF
5692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5699 # Emulation library used on NetBSD.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5701 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5702 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5705 ac_check_lib_save_LIBS
=$LIBS
5706 LIBS
="-lossaudio $LIBS"
5707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5720 return _oss_ioctl ();
5725 if ac_fn_c_try_link
"$LINENO"; then :
5726 ac_cv_lib_ossaudio__oss_ioctl
=yes
5728 ac_cv_lib_ossaudio__oss_ioctl
=no
5730 rm -f core conftest.err conftest.
$ac_objext \
5731 conftest
$ac_exeext conftest.
$ac_ext
5732 LIBS
=$ac_check_lib_save_LIBS
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5735 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5736 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5745 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5749 # Extract the first word of "pkg-config", so it can be a program name with args.
5750 set dummy pkg-config
; ac_word
=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5758 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir
=.
5766 for ac_exec_ext
in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5780 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5781 if test -n "$PKG_CONFIG"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5783 $as_echo "$PKG_CONFIG" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5791 if test "$PKG_CONFIG" = "no" ; then
5794 PKG_CONFIG_MIN_VERSION
=0.9.0
5795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5797 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5801 $as_echo "yes" >&6; }
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5805 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5806 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5808 $as_echo "$ALSA_CFLAGS" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5811 $as_echo_n "checking ALSA_LIBS... " >&6; }
5812 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5814 $as_echo "$ALSA_LIBS" >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5820 ## If we have a custom action on failure, don't print errors, but
5821 ## do set a variable so people can do so.
5822 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5834 if test $succeeded = yes; then
5840 if test $HAVE_ALSA = yes; then
5841 SAVE_CFLAGS
="$CFLAGS"
5842 SAVE_LDFLAGS
="$LDFLAGS"
5843 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
5844 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
5845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <asoundlib.h>
5851 snd_lib_error_set_handler (0);
5856 if ac_fn_c_try_compile
"$LINENO"; then :
5857 emacs_alsa_normal
=yes
5859 emacs_alsa_normal
=no
5861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5862 if test "$emacs_alsa_normal" != yes; then
5863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <alsa/asoundlib.h>
5869 snd_lib_error_set_handler (0);
5874 if ac_fn_c_try_compile
"$LINENO"; then :
5875 emacs_alsa_subdir
=yes
5877 emacs_alsa_subdir
=no
5879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5880 if test "$emacs_alsa_subdir" != yes; then
5881 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
5883 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5886 CFLAGS
="$SAVE_CFLAGS"
5887 LDFLAGS
="$SAVE_LDFLAGS"
5888 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5889 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5891 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
5897 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5898 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5899 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5900 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5901 sys
/utsname.h
pwd.h utmp.h
5903 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5905 eval as_val
=\$
$as_ac_Header
5906 if test "x$as_val" = x
""yes; then :
5907 cat >>confdefs.h
<<_ACEOF
5908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
5917 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <sys/personality.h>
5924 personality (PER_LINUX32)
5929 if ac_fn_c_try_compile
"$LINENO"; then :
5930 emacs_cv_personality_linux32
=yes
5932 emacs_cv_personality_linux32
=no
5934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
5936 $as_echo "$emacs_cv_personality_linux32" >&6; }
5938 if test $emacs_cv_personality_linux32 = yes; then
5940 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
5944 for ac_header
in term.h
5946 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
5947 if test "x$ac_cv_header_term_h" = x
""yes; then :
5948 cat >>confdefs.h
<<_ACEOF
5949 #define HAVE_TERM_H 1
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5957 $as_echo_n "checking for ANSI C header files... " >&6; }
5958 if test "${ac_cv_header_stdc+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5976 if ac_fn_c_try_compile
"$LINENO"; then :
5977 ac_cv_header_stdc
=yes
5979 ac_cv_header_stdc
=no
5981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5983 if test $ac_cv_header_stdc = yes; then
5984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "memchr" >/dev
/null
2>&1; then :
5994 ac_cv_header_stdc
=no
6000 if test $ac_cv_header_stdc = yes; then
6001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "free" >/dev
/null
2>&1; then :
6011 ac_cv_header_stdc
=no
6017 if test $ac_cv_header_stdc = yes; then
6018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6019 if test "$cross_compiling" = yes; then :
6022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6026 #if ((' ' & 0x0FF) == 0x020)
6027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6030 # define ISLOWER(c) \
6031 (('a' <= (c) && (c) <= 'i') \
6032 || ('j' <= (c) && (c) <= 'r') \
6033 || ('s' <= (c) && (c) <= 'z'))
6034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6042 for (i = 0; i < 256; i++)
6043 if (XOR (islower (i), ISLOWER (i))
6044 || toupper (i) != TOUPPER (i))
6049 if ac_fn_c_try_run
"$LINENO"; then :
6052 ac_cv_header_stdc
=no
6054 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6055 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6061 $as_echo "$ac_cv_header_stdc" >&6; }
6062 if test $ac_cv_header_stdc = yes; then
6064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6069 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6070 if test "${ac_cv_header_time+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <sys/types.h>
6076 #include <sys/time.h>
6082 if ((struct tm *) 0)
6088 if ac_fn_c_try_compile
"$LINENO"; then :
6089 ac_cv_header_time
=yes
6091 ac_cv_header_time
=no
6093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6096 $as_echo "$ac_cv_header_time" >&6; }
6097 if test $ac_cv_header_time = yes; then
6099 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6103 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6104 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6110 cat >>confdefs.h
<<_ACEOF
6111 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6114 if test $ac_cv_have_decl_sys_siglist != yes; then
6115 # For Tru64, at least:
6116 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6117 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6123 cat >>confdefs.h
<<_ACEOF
6124 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6127 if test $ac_cv_have_decl___sys_siglist = yes; then
6129 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6135 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <sys/types.h>
6141 #include <sys/wait.h>
6143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6159 if ac_fn_c_try_compile
"$LINENO"; then :
6160 ac_cv_header_sys_wait_h
=yes
6162 ac_cv_header_sys_wait_h
=no
6164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6167 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6168 if test $ac_cv_header_sys_wait_h = yes; then
6170 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6176 $as_echo_n "checking for struct utimbuf... " >&6; }
6177 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #ifdef TIME_WITH_SYS_TIME
6183 #include <sys/time.h>
6186 #ifdef HAVE_SYS_TIME_H
6187 #include <sys/time.h>
6198 static struct utimbuf x; x.actime = x.modtime;
6203 if ac_fn_c_try_compile
"$LINENO"; then :
6204 emacs_cv_struct_utimbuf
=yes
6206 emacs_cv_struct_utimbuf
=no
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6211 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6212 if test $emacs_cv_struct_utimbuf = yes; then
6214 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6219 $as_echo_n "checking return type of signal handlers... " >&6; }
6220 if test "${ac_cv_type_signal+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <sys/types.h>
6231 return *(signal (0, 0)) (0) == 1;
6236 if ac_fn_c_try_compile
"$LINENO"; then :
6237 ac_cv_type_signal
=int
6239 ac_cv_type_signal
=void
6241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6244 $as_echo "$ac_cv_type_signal" >&6; }
6246 cat >>confdefs.h
<<_ACEOF
6247 #define RETSIGTYPE $ac_cv_type_signal
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6253 $as_echo_n "checking for speed_t... " >&6; }
6254 if test "${emacs_cv_speed_t+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6259 #include <termios.h>
6268 if ac_fn_c_try_compile
"$LINENO"; then :
6269 emacs_cv_speed_t
=yes
6273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6276 $as_echo "$emacs_cv_speed_t" >&6; }
6277 if test $emacs_cv_speed_t = yes; then
6279 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6284 $as_echo_n "checking for struct timeval... " >&6; }
6285 if test "${emacs_cv_struct_timeval+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #ifdef TIME_WITH_SYS_TIME
6291 #include <sys/time.h>
6294 #ifdef HAVE_SYS_TIME_H
6295 #include <sys/time.h>
6303 static struct timeval x; x.tv_sec = x.tv_usec;
6308 if ac_fn_c_try_compile
"$LINENO"; then :
6309 emacs_cv_struct_timeval
=yes
6311 emacs_cv_struct_timeval
=no
6313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6316 $as_echo "$emacs_cv_struct_timeval" >&6; }
6317 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6318 if test $emacs_cv_struct_timeval = yes; then
6320 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6325 $as_echo_n "checking for struct exception... " >&6; }
6326 if test "${emacs_cv_struct_exception+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6335 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6340 if ac_fn_c_try_compile
"$LINENO"; then :
6341 emacs_cv_struct_exception
=yes
6343 emacs_cv_struct_exception
=no
6345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6348 $as_echo "$emacs_cv_struct_exception" >&6; }
6349 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6350 if test $emacs_cv_struct_exception != yes; then
6352 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6356 for ac_header
in sys
/socket.h
6358 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6359 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6360 cat >>confdefs.h
<<_ACEOF
6361 #define HAVE_SYS_SOCKET_H 1
6368 for ac_header
in net
/if.h
6370 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6371 #if HAVE_SYS_SOCKET_H
6372 #include <sys/socket.h>
6375 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6376 cat >>confdefs.h
<<_ACEOF
6377 #define HAVE_NET_IF_H 1
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6386 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6387 if test "${ac_cv_struct_tm+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6399 int *p = &tm.tm_sec;
6405 if ac_fn_c_try_compile
"$LINENO"; then :
6406 ac_cv_struct_tm
=time.h
6408 ac_cv_struct_tm
=sys
/time.h
6410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6413 $as_echo "$ac_cv_struct_tm" >&6; }
6414 if test $ac_cv_struct_tm = sys
/time.h
; then
6416 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6420 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6421 #include <$ac_cv_struct_tm>
6424 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6426 cat >>confdefs.h
<<_ACEOF
6427 #define HAVE_STRUCT_TM_TM_ZONE 1
6433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6435 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6438 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6440 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6446 cat >>confdefs.h
<<_ACEOF
6447 #define HAVE_DECL_TZNAME $ac_have_decl
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6451 $as_echo_n "checking for tzname... " >&6; }
6452 if test "${ac_cv_var_tzname+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6458 #if !HAVE_DECL_TZNAME
6459 extern char *tzname[];
6465 return tzname[0][0];
6470 if ac_fn_c_try_link
"$LINENO"; then :
6471 ac_cv_var_tzname
=yes
6475 rm -f core conftest.err conftest.
$ac_objext \
6476 conftest
$ac_exeext conftest.
$ac_ext
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6479 $as_echo "$ac_cv_var_tzname" >&6; }
6480 if test $ac_cv_var_tzname = yes; then
6482 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6487 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6489 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6491 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6495 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6496 #if HAVE_SYS_SOCKET_H
6497 #include <sys/socket.h>
6503 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6505 cat >>confdefs.h
<<_ACEOF
6506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6511 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6512 #if HAVE_SYS_SOCKET_H
6513 #include <sys/socket.h>
6519 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6521 cat >>confdefs.h
<<_ACEOF
6522 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6527 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6528 #if HAVE_SYS_SOCKET_H
6529 #include <sys/socket.h>
6535 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6537 cat >>confdefs.h
<<_ACEOF
6538 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6543 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6544 #if HAVE_SYS_SOCKET_H
6545 #include <sys/socket.h>
6551 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6553 cat >>confdefs.h
<<_ACEOF
6554 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6559 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6560 #if HAVE_SYS_SOCKET_H
6561 #include <sys/socket.h>
6567 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6569 cat >>confdefs.h
<<_ACEOF
6570 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6579 $as_echo_n "checking for function prototypes... " >&6; }
6580 if test "$ac_cv_prog_cc_c89" != no
; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6587 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6595 $as_echo_n "checking for working volatile... " >&6; }
6596 if test "${ac_cv_c_volatile+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6607 int * volatile y = (int *) 0;
6613 if ac_fn_c_try_compile
"$LINENO"; then :
6614 ac_cv_c_volatile
=yes
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6621 $as_echo "$ac_cv_c_volatile" >&6; }
6622 if test $ac_cv_c_volatile = no
; then
6624 $as_echo "#define volatile /**/" >>confdefs.h
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6629 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6630 if test "${ac_cv_c_const+set}" = set; then :
6631 $as_echo_n "(cached) " >&6
6633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6639 /* FIXME: Include the comments suggested by Paul. */
6641 /* Ultrix mips cc rejects this. */
6642 typedef int charset[2];
6644 /* SunOS 4.1.1 cc rejects this. */
6645 char const *const *pcpcc;
6647 /* NEC SVR4.0.2 mips cc rejects this. */
6648 struct point {int x, y;};
6649 static struct point const zero = {0,0};
6650 /* AIX XL C 1.02.0.0 rejects this.
6651 It does not let you subtract one const X* pointer from another in
6652 an arm of an if-expression whose if-part is not a constant
6654 const char *g = "string";
6655 pcpcc = &g + (g ? g-g : 0);
6656 /* HPUX 7.0 cc rejects these. */
6658 ppc = (char**) pcpcc;
6659 pcpcc = (char const *const *) ppc;
6660 { /* SCO 3.2v4 cc rejects this. */
6662 char const *s = 0 ? (char *) 0 : (char const *) 0;
6667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6669 const int *foo = &x[0];
6672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6673 typedef const int *iptr;
6677 { /* AIX XL C 1.02.0.0 rejects this saying
6678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6679 struct s { int j; const int *ap[3]; };
6680 struct s *b; b->j = 5;
6682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6686 return !cs[0] && !zero.x;
6693 if ac_fn_c_try_compile
"$LINENO"; then :
6698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6701 $as_echo "$ac_cv_c_const" >&6; }
6702 if test $ac_cv_c_const = no
; then
6704 $as_echo "#define const /**/" >>confdefs.h
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6709 $as_echo_n "checking for void * support... " >&6; }
6710 if test "${emacs_cv_void_star+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6724 if ac_fn_c_try_compile
"$LINENO"; then :
6725 emacs_cv_void_star
=yes
6727 emacs_cv_void_star
=no
6729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6732 $as_echo "$emacs_cv_void_star" >&6; }
6733 if test $emacs_cv_void_star = yes; then
6734 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6737 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6747 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6748 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6749 $as_echo_n "(cached) " >&6
6751 cat >conftest.
make <<\_ACEOF
6754 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6759 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6761 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6765 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6767 $as_echo "yes" >&6; }
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 SET_MAKE
="MAKE=${MAKE-make}"
6776 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6778 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6780 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
6781 if test "x$testval" != x
; then
6784 ac_enable_autodepend
=no
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6787 $as_echo "$HAVE_GNU_MAKE" >&6; }
6788 if test $HAVE_GNU_MAKE = yes; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6790 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6791 SAVE_CFLAGS
="$CFLAGS"
6792 CFLAGS
="$CFLAGS -MMD -MF deps.d"
6793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6804 if ac_fn_c_try_compile
"$LINENO"; then :
6807 ac_enable_autodepend
=no
6809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 CFLAGS
="$SAVE_CFLAGS"
6811 test -f deps.d || ac_enable_autodepend
=no
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6814 $as_echo "$ac_enable_autodepend" >&6; }
6816 if test $ac_enable_autodepend = yes; then
6818 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6824 $as_echo_n "checking for long file names... " >&6; }
6825 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 ac_cv_sys_long_file_names
=yes
6829 # Test for long file names in all the places we know might matter:
6830 # . the current directory, where building will happen
6831 # $prefix/lib where we will be installing things
6832 # $exec_prefix/lib likewise
6833 # $TMPDIR if set, where it might want to write temporary files
6834 # /tmp where it might want to write temporary files
6837 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
6838 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
6839 # in the usual case where exec_prefix is '${prefix}'.
6841 . |
/* | ?
:[\\/]*) ;; #(
6844 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
6845 ac_xdir
=$ac_dir/cf$$
6846 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
6847 ac_tf1
=$ac_xdir/conftest9012345
6848 ac_tf2
=$ac_xdir/conftest9012346
6849 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
6850 ac_cv_sys_long_file_names
=no
6851 rm -f -r "$ac_xdir" 2>/dev
/null
6852 test $ac_cv_sys_long_file_names = no
&& break
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
6856 $as_echo "$ac_cv_sys_long_file_names" >&6; }
6857 if test $ac_cv_sys_long_file_names = yes; then
6859 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
6864 #### Choose a window system.
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6867 $as_echo_n "checking for X... " >&6; }
6870 # Check whether --with-x was given.
6871 if test "${with_x+set}" = set; then :
6875 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6876 if test "x$with_x" = xno
; then
6877 # The user explicitly disabled X.
6880 case $x_includes,$x_libraries in #(
6881 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
6882 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6885 # One or both of the vars are not set, and there is no cached value.
6886 ac_x_includes
=no ac_x_libraries
=no
6887 rm -f -r conftest.dir
6888 if mkdir conftest.dir
; then
6890 cat >Imakefile
<<'_ACEOF'
6892 @echo incroot='${INCROOT}'
6894 @echo usrlibdir='${USRLIBDIR}'
6896 @echo libdir='${LIBDIR}'
6898 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6900 for ac_var
in incroot usrlibdir libdir
; do
6901 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6903 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6904 for ac_extension
in a so sl dylib la dll
; do
6905 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6906 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6907 ac_im_usrlibdir
=$ac_im_libdir; break
6910 # Screen out bogus values from the imake configuration. They are
6911 # bogus both because they are the default anyway, and because
6912 # using them would break gcc on systems where it needs fixed includes.
6913 case $ac_im_incroot in
6914 /usr
/include
) ac_x_includes
= ;;
6915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6917 case $ac_im_usrlibdir in
6918 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6923 rm -f -r conftest.dir
6926 # Standard set of common directories for X headers.
6927 # Check X11 before X11Rn because it is often a symlink to the current release.
6941 /usr/local/X11/include
6942 /usr/local/X11R7/include
6943 /usr/local/X11R6/include
6944 /usr/local/X11R5/include
6945 /usr/local/X11R4/include
6947 /usr/local/include/X11
6948 /usr/local/include/X11R7
6949 /usr/local/include/X11R6
6950 /usr/local/include/X11R5
6951 /usr/local/include/X11R4
6955 /usr/XFree86/include/X11
6959 /usr/unsupported/include
6961 /usr/local/x11r5/include
6962 /usr/lpp/Xamples/include
6964 /usr/openwin/include
6965 /usr/openwin/share/include'
6967 if test "$ac_x_includes" = no
; then
6968 # Guess where to find include files, by looking for Xlib.h.
6969 # First, try using that file with no special directory specified.
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <X11/Xlib.h>
6974 if ac_fn_c_try_cpp
"$LINENO"; then :
6975 # We can compile using X headers with no special include directory.
6978 for ac_dir
in $ac_x_header_dirs; do
6979 if test -r "$ac_dir/X11/Xlib.h"; then
6980 ac_x_includes
=$ac_dir
6985 rm -f conftest.err conftest.
$ac_ext
6986 fi # $ac_x_includes = no
6988 if test "$ac_x_libraries" = no
; then
6989 # Check for the libraries.
6990 # See if we find them without any special options.
6991 # Don't add to $LIBS permanently.
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 #include <X11/Xlib.h>
7005 if ac_fn_c_try_link
"$LINENO"; then :
7007 # We can link X programs with no special library path.
7011 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7013 # Don't even attempt the hair of trying to link an X program!
7014 for ac_extension
in a so sl dylib la dll
; do
7015 if test -r "$ac_dir/libX11.$ac_extension"; then
7016 ac_x_libraries
=$ac_dir
7022 rm -f core conftest.err conftest.
$ac_objext \
7023 conftest
$ac_exeext conftest.
$ac_ext
7024 fi # $ac_x_libraries = no
7026 case $ac_x_includes,$ac_x_libraries in #(
7028 # Didn't find X, or a directory has "'" in its name.
7029 ac_cv_have_x
="have_x=no";; #(
7031 # Record where we found X for the cache.
7032 ac_cv_have_x
="have_x=yes\
7033 ac_x_includes='$ac_x_includes'\
7034 ac_x_libraries='$ac_x_libraries'"
7040 eval "$ac_cv_have_x"
7043 if test "$have_x" != yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7045 $as_echo "$have_x" >&6; }
7048 # If each of the values was on the command line, it overrides each guess.
7049 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7050 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7051 # Update the cache value to reflect the command line values.
7052 ac_cv_have_x
="have_x=yes\
7053 ac_x_includes='$x_includes'\
7054 ac_x_libraries='$x_libraries'"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7056 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7059 if test "$no_x" = yes; then
7065 ## Workaround for bug in autoconf <= 2.62.
7066 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7067 ## No need to do anything special for these standard directories.
7068 ## This is an experiment, take it out if it causes problems.
7069 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7071 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7075 if test "${x_libraries}" != NONE
; then
7076 if test -n "${x_libraries}"; then
7077 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7078 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7080 x_default_search_path
=""
7081 x_search_path
=${x_libraries}
7082 if test -z "${x_search_path}"; then
7083 x_search_path
=/usr
/lib
7085 for x_library
in `echo ${x_search_path}: | \
7086 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7088 ${x_library}/X11/%L/%T/%N%C%S:\
7089 ${x_library}/X11/%l/%T/%N%C%S:\
7090 ${x_library}/X11/%T/%N%C%S:\
7091 ${x_library}/X11/%L/%T/%N%S:\
7092 ${x_library}/X11/%l/%T/%N%S:\
7093 ${x_library}/X11/%T/%N%S"
7094 if test x
"${x_default_search_path}" = x
; then
7095 x_default_search_path
=${x_search_path}
7097 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7101 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7102 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7105 if test x
"${x_includes}" = x
; then
7106 bitmapdir
=/usr
/include
/X11
/bitmaps
7108 # accumulate include directories that have X11 bitmap subdirectories
7110 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7111 if test -d "${bmd}/X11/bitmaps"; then
7112 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7114 if test -d "${bmd}/bitmaps"; then
7115 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7118 if test ${bmd_acc} != "dummyval"; then
7119 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7126 tmp_CPPFLAGS
="$CPPFLAGS"
7127 tmp_CFLAGS
="$CFLAGS"
7128 CPPFLAGS
="$CPPFLAGS -x objective-c"
7129 CFLAGS
="$CFLAGS -x objective-c"
7130 if test "${with_ns}" != no
; then
7131 if test "${opsys}" = darwin
; then
7133 ns_appdir
=`pwd`/nextstep
/Emacs.app
7134 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7135 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7136 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7137 elif test -f $GNUSTEP_CONFIG_FILE; then
7139 ns_appdir
=`pwd`/nextstep
/Emacs.app
7140 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7141 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7142 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7143 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7144 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7145 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7146 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7147 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7148 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7149 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7151 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7152 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7155 as_fn_error
"\`--with-ns' was specified, but the include
7156 files are missing or cannot be compiled." "$LINENO" 5
7160 NS_HAVE_NSINTEGER
=yes
7161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <Foundation/NSObjCRuntime.h>
7172 if ac_fn_c_try_compile
"$LINENO"; then :
7173 ns_have_nsinteger
=yes
7175 ns_have_nsinteger
=no
7177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7178 if test $ns_have_nsinteger = no
; then
7179 NS_HAVE_NSINTEGER
=no
7182 if test "${HAVE_NS}" = yes; then
7183 window_system
=nextstep
7185 # set up packaging dirs
7186 exec_prefix
=${ns_appbindir}
7187 libexecdir
=${ns_appbindir}/libexec
7188 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7189 prefix
=${ns_appresdir}
7192 CFLAGS
="$tmp_CFLAGS"
7193 CPPFLAGS
="$tmp_CPPFLAGS"
7195 case "${window_system}" in
7199 case "${with_x_toolkit}" in
7200 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7201 motif
) USE_X_TOOLKIT
=MOTIF
;;
7203 USE_X_TOOLKIT
=none
;;
7204 no
) USE_X_TOOLKIT
=none
;;
7205 * ) USE_X_TOOLKIT
=maybe
;;
7215 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7216 # Extract the first word of "X", so it can be a program name with args.
7217 set dummy X
; ac_word
=$2
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219 $as_echo_n "checking for $ac_word... " >&6; }
7220 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7223 if test -n "$HAVE_XSERVER"; then
7224 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir
=.
7231 for ac_exec_ext
in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_HAVE_XSERVER
="true"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7244 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7245 if test -n "$HAVE_XSERVER"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7247 $as_echo "$HAVE_XSERVER" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7254 if test "$HAVE_XSERVER" = true ||
7255 test -n "$DISPLAY" ||
7256 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7257 as_fn_error
"You seem to be running X, but no X development libraries
7258 were found. You should install the relevant development files for X
7259 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7260 sure you have development files for image handling, i.e.
7261 tiff, gif, jpeg, png and xpm.
7262 If you are sure you want Emacs compiled without X window support, pass
7264 to configure." "$LINENO" 5
7268 ### If we're using X11, we should use the X menu package.
7271 yes ) HAVE_MENUS
=yes ;;
7274 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7275 # Assume not, until told otherwise.
7278 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7279 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7285 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7286 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7293 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7294 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 extern void (* __after_morecore_hook)();
7303 __after_morecore_hook = 0
7308 if ac_fn_c_try_link
"$LINENO"; then :
7309 emacs_cv_var___after_morecore_hook
=yes
7311 emacs_cv_var___after_morecore_hook
=no
7313 rm -f core conftest.err conftest.
$ac_objext \
7314 conftest
$ac_exeext conftest.
$ac_ext
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7317 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7318 if test $emacs_cv_var___after_morecore_hook = no
; then
7321 if test "${system_malloc}" = "yes"; then
7324 (The GNU allocators don't work with this system configuration.)"
7326 if test "$doug_lea_malloc" = "yes" ; then
7327 if test "$GNU_MALLOC" = yes ; then
7329 (Using Doug Lea's new malloc from the GNU C Library.)"
7332 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7336 if test x
"${REL_ALLOC}" = x
; then
7337 REL_ALLOC
=${GNU_MALLOC}
7341 for ac_header
in stdlib.h unistd.h
7343 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7345 eval as_val
=\$
$as_ac_Header
7346 if test "x$as_val" = x
""yes; then :
7347 cat >>confdefs.h
<<_ACEOF
7348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7355 for ac_func
in getpagesize
7357 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7358 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7359 cat >>confdefs.h
<<_ACEOF
7360 #define HAVE_GETPAGESIZE 1
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7367 $as_echo_n "checking for working mmap... " >&6; }
7368 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test "$cross_compiling" = yes; then :
7372 ac_cv_func_mmap_fixed_mapped
=no
7374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 $ac_includes_default
7377 /* malloc might have been renamed as rpl_malloc. */
7380 /* Thanks to Mike Haertel and Jim Avera for this test.
7381 Here is a matrix of mmap possibilities:
7382 mmap private not fixed
7383 mmap private fixed at somewhere currently unmapped
7384 mmap private fixed at somewhere already mapped
7385 mmap shared not fixed
7386 mmap shared fixed at somewhere currently unmapped
7387 mmap shared fixed at somewhere already mapped
7388 For private mappings, we should verify that changes cannot be read()
7389 back from the file, nor mmap's back from the file at a different
7390 address. (There have been systems where private was not correctly
7391 implemented like the infamous i386 svr4.0, and systems where the
7392 VM page cache was not coherent with the file system buffer cache
7393 like early versions of FreeBSD and possibly contemporary NetBSD.)
7394 For shared mappings, we should conversely verify that changes get
7395 propagated back to all the places they're supposed to be.
7397 Grep wants private fixed already mapped.
7398 The main things grep needs to know about mmap are:
7399 * does it exist and is it safe to write into the mmap'd area
7400 * how to use it (BSD variants) */
7403 #include <sys/mman.h>
7405 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7409 /* This mess was copied from the GNU getpagesize.h. */
7410 #ifndef HAVE_GETPAGESIZE
7411 /* Assume that all systems that can run configure have sys/param.h. */
7412 # ifndef HAVE_SYS_PARAM_H
7413 # define HAVE_SYS_PARAM_H 1
7416 # ifdef _SC_PAGESIZE
7417 # define getpagesize() sysconf(_SC_PAGESIZE)
7418 # else /* no _SC_PAGESIZE */
7419 # ifdef HAVE_SYS_PARAM_H
7420 # include <sys/param.h>
7421 # ifdef EXEC_PAGESIZE
7422 # define getpagesize() EXEC_PAGESIZE
7423 # else /* no EXEC_PAGESIZE */
7425 # define getpagesize() NBPG * CLSIZE
7428 # endif /* no CLSIZE */
7429 # else /* no NBPG */
7431 # define getpagesize() NBPC
7432 # else /* no NBPC */
7434 # define getpagesize() PAGESIZE
7435 # endif /* PAGESIZE */
7436 # endif /* no NBPC */
7437 # endif /* no NBPG */
7438 # endif /* no EXEC_PAGESIZE */
7439 # else /* no HAVE_SYS_PARAM_H */
7440 # define getpagesize() 8192 /* punt totally */
7441 # endif /* no HAVE_SYS_PARAM_H */
7442 # endif /* no _SC_PAGESIZE */
7444 #endif /* no HAVE_GETPAGESIZE */
7449 char *data, *data2, *data3;
7453 pagesize = getpagesize ();
7455 /* First, make a file with some known garbage in it. */
7456 data = (char *) malloc (pagesize);
7459 for (i = 0; i < pagesize; ++i)
7460 *(data + i) = rand ();
7462 fd = creat ("conftest.mmap", 0600);
7465 if (write (fd, data, pagesize) != pagesize)
7469 /* Next, try to mmap the file at a fixed address which already has
7470 something else allocated at it. If we can, also make sure that
7471 we see the same garbage. */
7472 fd = open ("conftest.mmap", O_RDWR);
7475 data2 = (char *) malloc (2 * pagesize);
7478 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7479 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7480 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7482 for (i = 0; i < pagesize; ++i)
7483 if (*(data + i) != *(data2 + i))
7486 /* Finally, make sure that changes to the mapped area do not
7487 percolate back to the file as seen by read(). (This is a bug on
7488 some variants of i386 svr4.0.) */
7489 for (i = 0; i < pagesize; ++i)
7490 *(data2 + i) = *(data2 + i) + 1;
7491 data3 = (char *) malloc (pagesize);
7494 if (read (fd, data3, pagesize) != pagesize)
7496 for (i = 0; i < pagesize; ++i)
7497 if (*(data + i) != *(data3 + i))
7503 if ac_fn_c_try_run
"$LINENO"; then :
7504 ac_cv_func_mmap_fixed_mapped
=yes
7506 ac_cv_func_mmap_fixed_mapped
=no
7508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7514 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7515 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7517 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7522 if test $use_mmap_for_buffers = yes; then
7526 LIBS
="$libsrc_libs $LIBS"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7529 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7530 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7533 ac_check_lib_save_LIBS
=$LIBS
7535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7538 /* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */
7548 return dnet_ntoa ();
7553 if ac_fn_c_try_link
"$LINENO"; then :
7554 ac_cv_lib_dnet_dnet_ntoa
=yes
7556 ac_cv_lib_dnet_dnet_ntoa
=no
7558 rm -f core conftest.err conftest.
$ac_objext \
7559 conftest
$ac_exeext conftest.
$ac_ext
7560 LIBS
=$ac_check_lib_save_LIBS
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7563 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7564 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7565 cat >>confdefs.h
<<_ACEOF
7566 #define HAVE_LIBDNET 1
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7575 $as_echo_n "checking for main in -lXbsd... " >&6; }
7576 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7579 ac_check_lib_save_LIBS
=$LIBS
7581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7593 if ac_fn_c_try_link
"$LINENO"; then :
7594 ac_cv_lib_Xbsd_main
=yes
7596 ac_cv_lib_Xbsd_main
=no
7598 rm -f core conftest.err conftest.
$ac_objext \
7599 conftest
$ac_exeext conftest.
$ac_ext
7600 LIBS
=$ac_check_lib_save_LIBS
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7603 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7604 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7605 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7610 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7611 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7614 ac_check_lib_save_LIBS
=$LIBS
7615 LIBS
="-lpthreads $LIBS"
7616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7619 /* Override any GCC internal prototype to avoid an error.
7620 Use char because int might match the return type of a GCC
7621 builtin and then its argument prototype would still apply. */
7634 if ac_fn_c_try_link
"$LINENO"; then :
7635 ac_cv_lib_pthreads_cma_open
=yes
7637 ac_cv_lib_pthreads_cma_open
=no
7639 rm -f core conftest.err conftest.
$ac_objext \
7640 conftest
$ac_exeext conftest.
$ac_ext
7641 LIBS
=$ac_check_lib_save_LIBS
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7644 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7645 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7646 cat >>confdefs.h
<<_ACEOF
7647 #define HAVE_LIBPTHREADS 1
7650 LIBS
="-lpthreads $LIBS"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7659 $as_echo_n "checking for -bbigtoc option... " >&6; }
7660 if test "${gdb_cv_bigtoc+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7665 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7666 *) gdb_cv_bigtoc
=-bbigtoc ;;
7669 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7681 if ac_fn_c_try_link
"$LINENO"; then :
7686 rm -f core conftest.err conftest.
$ac_objext \
7687 conftest
$ac_exeext conftest.
$ac_ext
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7691 $as_echo "$gdb_cv_bigtoc" >&6; }
7695 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7696 # used for the tests that follow. We set them back to REAL_CFLAGS and
7697 # REAL_CPPFLAGS later on.
7699 REAL_CPPFLAGS
="$CPPFLAGS"
7701 if test "${HAVE_X11}" = "yes"; then
7702 DEFS
="$C_SWITCH_X_SITE $DEFS"
7703 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7705 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7706 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7708 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7709 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7710 # but it's more convenient here to set LD_RUN_PATH
7711 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7712 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7713 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7717 if test "${opsys}" = "gnu-linux"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7719 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7726 XOpenDisplay ("foo");
7731 if ac_fn_c_try_link
"$LINENO"; then :
7732 xlinux_first_failure
=no
7734 xlinux_first_failure
=yes
7736 rm -f core conftest.err conftest.
$ac_objext \
7737 conftest
$ac_exeext conftest.
$ac_ext
7738 if test "${xlinux_first_failure}" = "yes"; then
7739 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7740 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7741 OLD_CPPFLAGS
="$CPPFLAGS"
7743 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7744 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7745 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7746 LIBS
="$LIBS -b i486-linuxaout"
7747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7753 XOpenDisplay ("foo");
7758 if ac_fn_c_try_link
"$LINENO"; then :
7759 xlinux_second_failure
=no
7761 xlinux_second_failure
=yes
7763 rm -f core conftest.err conftest.
$ac_objext \
7764 conftest
$ac_exeext conftest.
$ac_ext
7765 if test "${xlinux_second_failure}" = "yes"; then
7766 # If we get the same failure with -b, there is no use adding -b.
7767 # So take it out. This plays safe.
7768 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7769 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7770 CPPFLAGS
="$OLD_CPPFLAGS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7776 $as_echo "yes" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7785 # header files included from there.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7787 $as_echo_n "checking for Xkb... " >&6; }
7788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <X11/Xlib.h>
7791 #include <X11/XKBlib.h>
7795 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7800 if ac_fn_c_try_link
"$LINENO"; then :
7805 rm -f core conftest.err conftest.
$ac_objext \
7806 conftest
$ac_exeext conftest.
$ac_ext
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
7808 $as_echo "$emacs_xkb" >&6; }
7809 if test $emacs_xkb = yes; then
7811 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
7815 for ac_func
in XrmSetDatabase XScreenResourceString \
7816 XScreenNumberOfScreen XSetWMProtocols
7818 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7819 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7820 eval as_val
=\$
$as_ac_var
7821 if test "x$as_val" = x
""yes; then :
7822 cat >>confdefs.h
<<_ACEOF
7823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7831 if test "${window_system}" = "x11"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
7833 $as_echo_n "checking X11 version 6... " >&6; }
7834 if test "${emacs_cv_x11_version_6+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <X11/Xlib.h>
7843 #if XlibSpecificationRelease < 6
7851 if ac_fn_c_try_link
"$LINENO"; then :
7852 emacs_cv_x11_version_6
=yes
7854 emacs_cv_x11_version_6
=no
7856 rm -f core conftest.err conftest.
$ac_objext \
7857 conftest
$ac_exeext conftest.
$ac_ext
7860 if test $emacs_cv_x11_version_6 = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
7862 $as_echo "6 or newer" >&6; }
7864 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
7868 $as_echo "before 6" >&6; }
7873 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
7875 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
7876 if test "${with_rsvg}" != "no"; then
7877 RSVG_REQUIRED
=2.11.0
7878 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
7883 # Extract the first word of "pkg-config", so it can be a program name with args.
7884 set dummy pkg-config
; ac_word
=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7892 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7899 test -z "$as_dir" && as_dir
=.
7900 for ac_exec_ext
in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7914 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7915 if test -n "$PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7917 $as_echo "$PKG_CONFIG" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7925 if test "$PKG_CONFIG" = "no" ; then
7928 PKG_CONFIG_MIN_VERSION
=0.9.0
7929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
7931 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
7933 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
7939 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
7940 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
7942 $as_echo "$RSVG_CFLAGS" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
7945 $as_echo_n "checking RSVG_LIBS... " >&6; }
7946 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
7948 $as_echo "$RSVG_LIBS" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7954 ## If we have a custom action on failure, don't print errors, but
7955 ## do set a variable so people can do so.
7956 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
7963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7968 if test $succeeded = yes; then
7977 if test ".${RSVG_CFLAGS}" != "."; then
7980 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
7982 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
7983 LIBS
="$RSVG_LIBS $LIBS"
7990 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
7993 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
7998 # Extract the first word of "pkg-config", so it can be a program name with args.
7999 set dummy pkg-config
; ac_word
=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8007 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir
=.
8015 for ac_exec_ext
in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8029 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8030 if test -n "$PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8032 $as_echo "$PKG_CONFIG" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8040 if test "$PKG_CONFIG" = "no" ; then
8043 PKG_CONFIG_MIN_VERSION
=0.9.0
8044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8046 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8048 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8050 $as_echo "yes" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8054 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8055 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8057 $as_echo "$GTK_CFLAGS" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8060 $as_echo_n "checking GTK_LIBS... " >&6; }
8061 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8063 $as_echo "$GTK_LIBS" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8069 ## If we have a custom action on failure, don't print errors, but
8070 ## do set a variable so people can do so.
8071 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8083 if test $succeeded = yes; then
8089 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8090 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8095 if test x
"$pkg_check_gtk" = xyes
; then
8099 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8100 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8101 LIBS
="$GTK_LIBS $LIBS"
8103 for ac_func
in gtk_main
8105 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8106 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8107 cat >>confdefs.h
<<_ACEOF
8108 #define HAVE_GTK_MAIN 1
8114 if test "${GTK_COMPILES}" != "yes"; then
8115 if test "$USE_X_TOOLKIT" != "maybe"; then
8116 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8121 $as_echo "#define USE_GTK 1" >>confdefs.h
8124 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8128 closing open displays. This is no problem if you just use
8129 one display, but if you use more than one and close one of them
8130 Emacs may crash." >&5
8131 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8132 closing open displays. This is no problem if you just use
8133 one display, but if you use more than one and close one of them
8134 Emacs may crash." >&2;}
8142 if test "${HAVE_GTK}" = "yes"; then
8144 if test "$with_toolkit_scroll_bars" != no
; then
8145 with_toolkit_scroll_bars
=yes
8148 HAVE_GTK_MULTIDISPLAY
=no
8149 for ac_func
in gdk_display_open
8151 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8152 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8153 cat >>confdefs.h
<<_ACEOF
8154 #define HAVE_GDK_DISPLAY_OPEN 1
8156 HAVE_GTK_MULTIDISPLAY
=yes
8160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8162 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8166 HAVE_GTK_FILE_SELECTION
=no
8167 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8168 #include <gtk/gtk.h>
8170 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8171 HAVE_GTK_FILE_SELECTION
=yes
8173 HAVE_GTK_FILE_SELECTION
=no
8176 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8177 for ac_func
in gtk_file_selection_new
8179 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8180 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8181 cat >>confdefs.h
<<_ACEOF
8182 #define HAVE_GTK_FILE_SELECTION_NEW 1
8184 HAVE_GTK_FILE_SELECTION
=yes
8186 HAVE_GTK_FILE_SELECTION
=no
8192 HAVE_GTK_FILE_CHOOSER
=no
8193 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8194 #include <gtk/gtk.h>
8196 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8197 HAVE_GTK_FILE_CHOOSER
=yes
8199 HAVE_GTK_FILE_CHOOSER
=no
8202 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8203 for ac_func
in gtk_file_chooser_dialog_new
8205 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8206 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8207 cat >>confdefs.h
<<_ACEOF
8208 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8210 HAVE_GTK_FILE_CHOOSER
=yes
8212 HAVE_GTK_FILE_CHOOSER
=no
8218 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8219 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8221 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8225 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8226 HAVE_GTK_AND_PTHREAD
=no
8227 for ac_header
in pthread.h
8229 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8230 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8231 cat >>confdefs.h
<<_ACEOF
8232 #define HAVE_PTHREAD_H 1
8239 if test "$ac_cv_header_pthread_h"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8241 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8242 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8245 ac_check_lib_save_LIBS
=$LIBS
8246 LIBS
="-lpthread $LIBS"
8247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8250 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8256 char pthread_self ();
8260 return pthread_self ();
8265 if ac_fn_c_try_link
"$LINENO"; then :
8266 ac_cv_lib_pthread_pthread_self
=yes
8268 ac_cv_lib_pthread_pthread_self
=no
8270 rm -f core conftest.err conftest.
$ac_objext \
8271 conftest
$ac_exeext conftest.
$ac_ext
8272 LIBS
=$ac_check_lib_save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8275 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8276 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8277 HAVE_GTK_AND_PTHREAD
=yes
8281 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8282 case "${canonical}" in
8284 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8287 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8294 if test "${with_dbus}" = "yes"; then
8298 # Extract the first word of "pkg-config", so it can be a program name with args.
8299 set dummy pkg-config
; ac_word
=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8307 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8314 test -z "$as_dir" && as_dir
=.
8315 for ac_exec_ext
in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8329 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8330 if test -n "$PKG_CONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8332 $as_echo "$PKG_CONFIG" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 if test "$PKG_CONFIG" = "no" ; then
8343 PKG_CONFIG_MIN_VERSION
=0.9.0
8344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8346 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8348 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8350 $as_echo "yes" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8354 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8355 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8357 $as_echo "$DBUS_CFLAGS" >&6; }
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8360 $as_echo_n "checking DBUS_LIBS... " >&6; }
8361 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8363 $as_echo "$DBUS_LIBS" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8369 ## If we have a custom action on failure, don't print errors, but
8370 ## do set a variable so people can do so.
8371 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8383 if test $succeeded = yes; then
8389 if test "$HAVE_DBUS" = yes; then
8390 LIBS
="$LIBS $DBUS_LIBS"
8392 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8394 for ac_func
in dbus_watch_get_unix_fd
8396 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8397 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8398 cat >>confdefs.h
<<_ACEOF
8399 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8409 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8413 # Extract the first word of "pkg-config", so it can be a program name with args.
8414 set dummy pkg-config
; ac_word
=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8422 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8429 test -z "$as_dir" && as_dir
=.
8430 for ac_exec_ext
in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8444 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8445 if test -n "$PKG_CONFIG"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8447 $as_echo "$PKG_CONFIG" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8455 if test "$PKG_CONFIG" = "no" ; then
8458 PKG_CONFIG_MIN_VERSION
=0.9.0
8459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8461 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8463 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8465 $as_echo "yes" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8469 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8470 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8472 $as_echo "$GCONF_CFLAGS" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8475 $as_echo_n "checking GCONF_LIBS... " >&6; }
8476 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8478 $as_echo "$GCONF_LIBS" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8484 ## If we have a custom action on failure, don't print errors, but
8485 ## do set a variable so people can do so.
8486 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8498 if test $succeeded = yes; then
8504 if test "$HAVE_GCONF" = yes; then
8506 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8512 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8513 if test "$with_xaw3d" != no
; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8515 $as_echo_n "checking for xaw3d... " >&6; }
8516 if test "${emacs_cv_xaw3d+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8522 #include <X11/Intrinsic.h>
8523 #include <X11/Xaw3d/Simple.h>
8532 if ac_fn_c_try_link
"$LINENO"; then :
8537 rm -f core conftest.err conftest.
$ac_objext \
8538 conftest
$ac_exeext conftest.
$ac_ext
8544 if test $emacs_cv_xaw3d = yes; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8546 $as_echo "yes; using Lucid toolkit" >&6; }
8550 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8556 $as_echo_n "checking for libXaw... " >&6; }
8557 if test "${emacs_cv_xaw+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 #include <X11/Intrinsic.h>
8564 #include <X11/Xaw/Simple.h>
8573 if ac_fn_c_try_link
"$LINENO"; then :
8578 rm -f core conftest.err conftest.
$ac_objext \
8579 conftest
$ac_exeext conftest.
$ac_ext
8582 if test $emacs_cv_xaw = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8584 $as_echo "yes; using Lucid toolkit" >&6; }
8586 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8587 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8590 $as_echo "no; do not use toolkit by default" >&6; }
8596 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8598 if test "${USE_X_TOOLKIT}" != "none"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8600 $as_echo_n "checking X11 toolkit version... " >&6; }
8601 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 #include <X11/Intrinsic.h>
8610 #if XtSpecificationRelease < 6
8618 if ac_fn_c_try_link
"$LINENO"; then :
8619 emacs_cv_x11_toolkit_version_6
=yes
8621 emacs_cv_x11_toolkit_version_6
=no
8623 rm -f core conftest.err conftest.
$ac_objext \
8624 conftest
$ac_exeext conftest.
$ac_ext
8627 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8628 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8630 $as_echo "6 or newer" >&6; }
8632 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8636 $as_echo "before 6" >&6; }
8640 if test x
$HAVE_X11XTR6 = xyes
; then
8641 LIBS
="-lXt -lSM -lICE $LIBS"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8646 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8647 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8650 ac_check_lib_save_LIBS
=$LIBS
8652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8655 /* Override any GCC internal prototype to avoid an error.
8656 Use char because int might match the return type of a GCC
8657 builtin and then its argument prototype would still apply. */
8661 char XmuConvertStandardSelection ();
8665 return XmuConvertStandardSelection ();
8670 if ac_fn_c_try_link
"$LINENO"; then :
8671 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8673 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8675 rm -f core conftest.err conftest.
$ac_objext \
8676 conftest
$ac_exeext conftest.
$ac_ext
8677 LIBS
=$ac_check_lib_save_LIBS
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8680 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8681 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
8682 cat >>confdefs.h
<<_ACEOF
8683 #define HAVE_LIBXMU 1
8690 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8693 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8694 if test "${HAVE_X11}" = "yes"; then
8695 if test "${USE_X_TOOLKIT}" != "none"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8697 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8701 ac_check_lib_save_LIBS
=$LIBS
8703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8712 char XShapeQueryExtension ();
8716 return XShapeQueryExtension ();
8721 if ac_fn_c_try_link
"$LINENO"; then :
8722 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8724 ac_cv_lib_Xext_XShapeQueryExtension
=no
8726 rm -f core conftest.err conftest.
$ac_objext \
8727 conftest
$ac_exeext conftest.
$ac_ext
8728 LIBS
=$ac_check_lib_save_LIBS
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8731 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8732 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
8733 cat >>confdefs.h
<<_ACEOF
8734 #define HAVE_LIBXEXT 1
8744 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
8746 $as_echo_n "checking for Motif version 2.1... " >&6; }
8747 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
8750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8756 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8759 Motif version prior to 2.1.
8765 if ac_fn_c_try_compile
"$LINENO"; then :
8766 emacs_cv_motif_version_2_1
=yes
8768 emacs_cv_motif_version_2_1
=no
8770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
8773 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
8774 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8775 if test $emacs_cv_motif_version_2_1 = yes; then
8778 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
8781 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8782 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8785 ac_check_lib_save_LIBS
=$LIBS
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8796 char XpCreateContext ();
8800 return XpCreateContext ();
8805 if ac_fn_c_try_link
"$LINENO"; then :
8806 ac_cv_lib_Xp_XpCreateContext
=yes
8808 ac_cv_lib_Xp_XpCreateContext
=no
8810 rm -f core conftest.err conftest.
$ac_objext \
8811 conftest
$ac_exeext conftest.
$ac_ext
8812 LIBS
=$ac_check_lib_save_LIBS
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8815 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8816 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
8820 if test ${HAVE_LIBXP} = yes; then
8822 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
8827 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
8828 if test "${emacs_cv_lesstif+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8831 # We put this in CFLAGS temporarily to precede other -I options
8832 # that might be in CFLAGS temporarily.
8833 # We put this in CPPFLAGS where it precedes the other -I options.
8834 OLD_CPPFLAGS
=$CPPFLAGS
8836 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8837 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8849 if ac_fn_c_try_compile
"$LINENO"; then :
8850 emacs_cv_lesstif
=yes
8854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
8857 $as_echo "$emacs_cv_lesstif" >&6; }
8858 if test $emacs_cv_lesstif = yes; then
8859 # Make sure this -I option remains in CPPFLAGS after it is set
8860 # back to REAL_CPPFLAGS.
8861 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8862 # have those other -I options anyway. Ultimately, having this
8863 # directory ultimately in CPPFLAGS will be enough.
8864 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8865 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8868 CPPFLAGS
=$OLD_CPPFLAGS
8874 USE_TOOLKIT_SCROLL_BARS
=no
8875 if test "${with_toolkit_scroll_bars}" != "no"; then
8876 if test "${USE_X_TOOLKIT}" != "none"; then
8877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8881 USE_TOOLKIT_SCROLL_BARS
=yes
8882 elif test "${HAVE_XAW3D}" = "yes"; then
8883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8885 USE_TOOLKIT_SCROLL_BARS
=yes
8887 elif test "${HAVE_GTK}" = "yes"; then
8888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8890 USE_TOOLKIT_SCROLL_BARS
=yes
8891 elif test "${HAVE_NS}" = "yes"; then
8892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
8894 USE_TOOLKIT_SCROLL_BARS
=yes
8898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 #include <X11/Xlib.h>
8902 #include <X11/Xresource.h>
8911 if ac_fn_c_try_compile
"$LINENO"; then :
8914 $as_echo "#define HAVE_XIM 1" >>confdefs.h
8919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8922 if test "${with_xim}" != "no"; then
8924 $as_echo "#define USE_XIM 1" >>confdefs.h
8929 if test "${HAVE_XIM}" != "no"; then
8931 if test "$GCC" = yes; then
8932 CFLAGS
="$CFLAGS --pedantic-errors"
8934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 #include <X11/Xlib.h>
8938 #include <X11/Xresource.h>
8947 XPointer *client_data;
8949 /* If we're not using GCC, it's probably not XFree86, and this is
8950 probably right, but we can't use something like --pedantic-errors. */
8951 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8952 char*, XIMProc, XPointer*);
8954 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8960 if ac_fn_c_try_compile
"$LINENO"; then :
8961 emacs_cv_arg6_star
=yes
8963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 if test "$emacs_cv_arg6_star" = yes; then
8965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
8968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
8974 ### Start of font-backend (under any platform) section.
8975 # (nothing here yet -- this is a placeholder)
8976 ### End of font-backend (under any platform) section.
8978 ### Start of font-backend (under X11) section.
8979 if test "${HAVE_X11}" = "yes"; then
8983 # Extract the first word of "pkg-config", so it can be a program name with args.
8984 set dummy pkg-config
; ac_word
=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8992 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8999 test -z "$as_dir" && as_dir
=.
9000 for ac_exec_ext
in '' $ac_executable_extensions; do
9001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9002 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9014 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9015 if test -n "$PKG_CONFIG"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9017 $as_echo "$PKG_CONFIG" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9025 if test "$PKG_CONFIG" = "no" ; then
9028 PKG_CONFIG_MIN_VERSION
=0.9.0
9029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9031 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9035 $as_echo "yes" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9039 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9040 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9042 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9045 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9046 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9048 $as_echo "$FONTCONFIG_LIBS" >&6; }
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051 $as_echo "no" >&6; }
9052 FONTCONFIG_CFLAGS
=""
9054 ## If we have a custom action on failure, don't print errors, but
9055 ## do set a variable so people can do so.
9056 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9063 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9064 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9068 if test $succeeded = yes; then
9075 ## Use -lXft if available, unless `--with-xft=no'.
9077 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9080 if test "x${with_xft}" != "xno"; then
9085 # Extract the first word of "pkg-config", so it can be a program name with args.
9086 set dummy pkg-config
; ac_word
=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9094 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9101 test -z "$as_dir" && as_dir
=.
9102 for ac_exec_ext
in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9116 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9117 if test -n "$PKG_CONFIG"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9119 $as_echo "$PKG_CONFIG" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9127 if test "$PKG_CONFIG" = "no" ; then
9130 PKG_CONFIG_MIN_VERSION
=0.9.0
9131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9133 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9137 $as_echo "yes" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9141 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9142 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9144 $as_echo "$XFT_CFLAGS" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9147 $as_echo_n "checking XFT_LIBS... " >&6; }
9148 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9150 $as_echo "$XFT_LIBS" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9156 ## If we have a custom action on failure, don't print errors, but
9157 ## do set a variable so people can do so.
9158 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9170 if test $succeeded = yes; then
9176 ## Because xftfont.c uses XRenderQueryExtension, we also
9177 ## need to link to -lXrender.
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9180 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9181 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9184 ac_check_lib_save_LIBS
=$LIBS
9185 LIBS
="-lXrender $LIBS"
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9195 char XRenderQueryExtension ();
9199 return XRenderQueryExtension ();
9204 if ac_fn_c_try_link
"$LINENO"; then :
9205 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9207 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9209 rm -f core conftest.err conftest.
$ac_objext \
9210 conftest
$ac_exeext conftest.
$ac_ext
9211 LIBS
=$ac_check_lib_save_LIBS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9214 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9215 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9219 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9220 OLD_CPPFLAGS
="$CPPFLAGS"
9221 OLD_CFLAGS
="$CFLAGS"
9223 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9224 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9225 XFT_LIBS
="-lXrender $XFT_LIBS"
9226 LIBS
="$XFT_LIBS $LIBS"
9227 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9228 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9230 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9231 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9234 ac_check_lib_save_LIBS
=$LIBS
9235 LIBS
="-lXft $XFT_LIBS $LIBS"
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9245 char XftFontOpen ();
9249 return XftFontOpen ();
9254 if ac_fn_c_try_link
"$LINENO"; then :
9255 ac_cv_lib_Xft_XftFontOpen
=yes
9257 ac_cv_lib_Xft_XftFontOpen
=no
9259 rm -f core conftest.err conftest.
$ac_objext \
9260 conftest
$ac_exeext conftest.
$ac_ext
9261 LIBS
=$ac_check_lib_save_LIBS
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9264 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9265 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9273 if test "${HAVE_XFT}" = "yes"; then
9275 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9278 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9280 CPPFLAGS
="$OLD_CPPFLAGS"
9281 CFLAGS
="$OLD_CFLAGS"
9283 fi # "${HAVE_XFT}" = "yes"
9284 fi # "$HAVE_XFT" != no
9285 fi # "x${with_xft}" != "xno"
9287 if test "$HAVE_XFT" != "yes"; then
9293 ## We used to allow building with FreeType and without Xft.
9294 ## However, the ftx font backend driver is not in good shape.
9295 if test "${HAVE_XFT}" = "yes"; then
9302 if test "${HAVE_FREETYPE}" = "yes"; then
9304 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9306 if test "${with_libotf}" != "no"; then
9310 # Extract the first word of "pkg-config", so it can be a program name with args.
9311 set dummy pkg-config
; ac_word
=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
9319 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9326 test -z "$as_dir" && as_dir
=.
9327 for ac_exec_ext
in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9341 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9342 if test -n "$PKG_CONFIG"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9344 $as_echo "$PKG_CONFIG" >&6; }
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9352 if test "$PKG_CONFIG" = "no" ; then
9355 PKG_CONFIG_MIN_VERSION
=0.9.0
9356 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9358 $as_echo_n "checking for libotf... " >&6; }
9360 if $PKG_CONFIG --exists "libotf" 2>&5; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9362 $as_echo "yes" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9366 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9367 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9369 $as_echo "$LIBOTF_CFLAGS" >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9372 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9373 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9375 $as_echo "$LIBOTF_LIBS" >&6; }
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9381 ## If we have a custom action on failure, don't print errors, but
9382 ## do set a variable so people can do so.
9383 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9390 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9391 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9395 if test $succeeded = yes; then
9401 if test "$HAVE_LIBOTF" = "yes"; then
9403 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9406 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9407 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9410 ac_check_lib_save_LIBS
=$LIBS
9412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9421 char OTF_get_variation_glyphs ();
9425 return OTF_get_variation_glyphs ();
9430 if ac_fn_c_try_link
"$LINENO"; then :
9431 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9433 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9435 rm -f core conftest.err conftest.
$ac_objext \
9436 conftest
$ac_exeext conftest.
$ac_ext
9437 LIBS
=$ac_check_lib_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9440 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9441 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9442 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9444 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9447 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9449 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9457 if test "${HAVE_LIBOTF}" = yes; then
9458 if test "${with_m17n_flt}" != "no"; then
9462 # Extract the first word of "pkg-config", so it can be a program name with args.
9463 set dummy pkg-config
; ac_word
=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9471 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9478 test -z "$as_dir" && as_dir
=.
9479 for ac_exec_ext
in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9493 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9494 if test -n "$PKG_CONFIG"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9496 $as_echo "$PKG_CONFIG" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test "$PKG_CONFIG" = "no" ; then
9507 PKG_CONFIG_MIN_VERSION
=0.9.0
9508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9510 $as_echo_n "checking for m17n-flt... " >&6; }
9512 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9514 $as_echo "yes" >&6; }
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9518 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9519 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9521 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9524 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9525 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9527 $as_echo "$M17N_FLT_LIBS" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9533 ## If we have a custom action on failure, don't print errors, but
9534 ## do set a variable so people can do so.
9535 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9542 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9543 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9547 if test $succeeded = yes; then
9553 if test "$HAVE_M17N_FLT" = "yes"; then
9555 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9566 ### End of font-backend (under X11) section.
9577 ### Use -lXpm if available, unless `--with-xpm=no'.
9579 if test "${HAVE_X11}" = "yes"; then
9580 if test "${with_xpm}" != "no"; then
9581 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9582 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9584 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9585 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9588 ac_check_lib_save_LIBS
=$LIBS
9589 LIBS
="-lXpm -lX11 $LIBS"
9590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9593 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9599 char XpmReadFileToPixmap ();
9603 return XpmReadFileToPixmap ();
9608 if ac_fn_c_try_link
"$LINENO"; then :
9609 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9611 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9613 rm -f core conftest.err conftest.
$ac_objext \
9614 conftest
$ac_exeext conftest.
$ac_ext
9615 LIBS
=$ac_check_lib_save_LIBS
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9618 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9619 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9626 if test "${HAVE_XPM}" = "yes"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9628 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 #include "X11/xpm.h"
9632 #ifndef XpmReturnAllocPixels
9633 no_return_alloc_pixels
9637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9638 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
9646 if test "${HAVE_XPM}" = "yes"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648 $as_echo "yes" >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9656 if test "${HAVE_XPM}" = "yes"; then
9658 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9663 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9665 if test "${HAVE_X11}" = "yes"; then
9666 if test "${with_jpeg}" != "no"; then
9667 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9668 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9670 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9671 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
9674 ac_check_lib_save_LIBS
=$LIBS
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9685 char jpeg_destroy_compress ();
9689 return jpeg_destroy_compress ();
9694 if ac_fn_c_try_link
"$LINENO"; then :
9695 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9697 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9699 rm -f core conftest.err conftest.
$ac_objext \
9700 conftest
$ac_exeext conftest.
$ac_ext
9701 LIBS
=$ac_check_lib_save_LIBS
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9704 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9705 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
9714 if test "${HAVE_JPEG}" = "yes"; then
9715 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 #include <jpeglib.h>
9720 version=JPEG_LIB_VERSION
9723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9724 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
9725 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
9729 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9737 ### Use -lpng if available, unless `--with-png=no'.
9739 if test "${HAVE_X11}" = "yes"; then
9740 if test "${with_png}" != "no"; then
9741 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9742 # in /usr/include/libpng.
9743 for ac_header
in png.h libpng
/png.h
9745 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9746 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9747 eval as_val
=\$
$as_ac_Header
9748 if test "x$as_val" = x
""yes; then :
9749 cat >>confdefs.h
<<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
9759 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9760 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9763 ac_check_lib_save_LIBS
=$LIBS
9764 LIBS
="-lpng -lz -lm $LIBS"
9765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9768 /* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
9774 char png_get_channels ();
9778 return png_get_channels ();
9783 if ac_fn_c_try_link
"$LINENO"; then :
9784 ac_cv_lib_png_png_get_channels
=yes
9786 ac_cv_lib_png_png_get_channels
=no
9788 rm -f core conftest.err conftest.
$ac_objext \
9789 conftest
$ac_exeext conftest.
$ac_ext
9790 LIBS
=$ac_check_lib_save_LIBS
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
9793 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9794 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
9801 if test "${HAVE_PNG}" = "yes"; then
9803 $as_echo "#define HAVE_PNG 1" >>confdefs.h
9808 ### Use -ltiff if available, unless `--with-tiff=no'.
9810 if test "${HAVE_X11}" = "yes"; then
9811 if test "${with_tiff}" != "no"; then
9812 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
9813 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
9815 # At least one tiff package requires the jpeg library.
9816 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
9818 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9819 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9822 ac_check_lib_save_LIBS
=$LIBS
9823 LIBS
="-ltiff $tifflibs $LIBS"
9824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9833 char TIFFGetVersion ();
9837 return TIFFGetVersion ();
9842 if ac_fn_c_try_link
"$LINENO"; then :
9843 ac_cv_lib_tiff_TIFFGetVersion
=yes
9845 ac_cv_lib_tiff_TIFFGetVersion
=no
9847 rm -f core conftest.err conftest.
$ac_objext \
9848 conftest
$ac_exeext conftest.
$ac_ext
9849 LIBS
=$ac_check_lib_save_LIBS
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9852 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9853 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
9862 if test "${HAVE_TIFF}" = "yes"; then
9864 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
9869 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
9871 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9872 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
9873 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
9874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9875 # Earlier versions can crash Emacs.
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
9877 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9878 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9881 ac_check_lib_save_LIBS
=$LIBS
9883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9892 char EGifPutExtensionLast ();
9896 return EGifPutExtensionLast ();
9901 if ac_fn_c_try_link
"$LINENO"; then :
9902 ac_cv_lib_gif_EGifPutExtensionLast
=yes
9904 ac_cv_lib_gif_EGifPutExtensionLast
=no
9906 rm -f core conftest.err conftest.
$ac_objext \
9907 conftest
$ac_exeext conftest.
$ac_ext
9908 LIBS
=$ac_check_lib_save_LIBS
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9911 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9912 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
9922 if test "$HAVE_GIF" = yes; then
9923 ac_gif_lib_name
="-lgif"
9926 # If gif_lib.h but no libgif, try libungif.
9927 if test x
"$try_libungif" = xyes
; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9929 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9930 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9933 ac_check_lib_save_LIBS
=$LIBS
9934 LIBS
="-lungif $LIBS"
9935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9944 char EGifPutExtensionLast ();
9948 return EGifPutExtensionLast ();
9953 if ac_fn_c_try_link
"$LINENO"; then :
9954 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9956 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9958 rm -f core conftest.err conftest.
$ac_objext \
9959 conftest
$ac_exeext conftest.
$ac_ext
9960 LIBS
=$ac_check_lib_save_LIBS
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9963 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
9964 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
9969 if test "$HAVE_GIF" = yes; then
9971 $as_echo "#define LIBGIF -lungif" >>confdefs.h
9973 ac_gif_lib_name
="-lungif"
9977 if test "${HAVE_GIF}" = "yes"; then
9979 $as_echo "#define HAVE_GIF 1" >>confdefs.h
9984 if test "${HAVE_X11}" = "yes"; then
9987 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
9988 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
9989 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
9990 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
9991 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
9992 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
9993 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
9994 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
9995 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
9996 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
9998 if test "X${MISSING}" != X
; then
9999 as_fn_error
"The following required libraries were not found:
10001 Maybe some development libraries/packages are missing?
10002 If you don't want to link with them give
10004 as options to configure" "$LINENO" 5
10008 ### Use -lgpm if available, unless `--with-gpm=no'.
10010 if test "${with_gpm}" != "no"; then
10011 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10012 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10014 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10015 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10018 ac_check_lib_save_LIBS
=$LIBS
10020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10033 return Gpm_Open ();
10038 if ac_fn_c_try_link
"$LINENO"; then :
10039 ac_cv_lib_gpm_Gpm_Open
=yes
10041 ac_cv_lib_gpm_Gpm_Open
=no
10043 rm -f core conftest.err conftest.
$ac_objext \
10044 conftest
$ac_exeext conftest.
$ac_ext
10045 LIBS
=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10048 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10049 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10058 if test "${HAVE_GPM}" = "yes"; then
10060 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10064 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10065 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10067 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10073 ### Use NeXTstep API to implement GUI.
10074 if test "${HAVE_NS}" = "yes"; then
10076 $as_echo "#define HAVE_NS 1" >>confdefs.h
10078 if test "${NS_IMPL_COCOA}" = "yes"; then
10080 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10084 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10086 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10088 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10090 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10092 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10095 # We also have mouse menus.
10101 ### Use session management (-lSM -lICE) if available
10103 if test "${HAVE_X11}" = "yes"; then
10104 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10105 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10107 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10108 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10111 ac_check_lib_save_LIBS
=$LIBS
10112 LIBS
="-lSM -lICE $LIBS"
10113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10122 char SmcOpenConnection ();
10126 return SmcOpenConnection ();
10131 if ac_fn_c_try_link
"$LINENO"; then :
10132 ac_cv_lib_SM_SmcOpenConnection
=yes
10134 ac_cv_lib_SM_SmcOpenConnection
=no
10136 rm -f core conftest.err conftest.
$ac_objext \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 LIBS
=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10141 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10142 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10150 if test "${HAVE_X_SM}" = "yes"; then
10152 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10156 *) LIBS
="-lSM -lICE $LIBS" ;;
10161 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10163 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10164 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10165 $as_echo_n "(cached) " >&6
10167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10178 if ac_fn_c_try_link
"$LINENO"; then :
10179 emacs_cv_netdb_declares_h_errno
=yes
10181 emacs_cv_netdb_declares_h_errno
=no
10183 rm -f core conftest.err conftest.
$ac_objext \
10184 conftest
$ac_exeext conftest.
$ac_ext
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10187 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10188 if test $emacs_cv_netdb_declares_h_errno = yes; then
10190 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10194 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10195 # for constant arguments. Useless!
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10197 $as_echo_n "checking for working alloca.h... " >&6; }
10198 if test "${ac_cv_working_alloca_h+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <alloca.h>
10207 char *p = (char *) alloca (2 * sizeof (int));
10213 if ac_fn_c_try_link
"$LINENO"; then :
10214 ac_cv_working_alloca_h
=yes
10216 ac_cv_working_alloca_h
=no
10218 rm -f core conftest.err conftest.
$ac_objext \
10219 conftest
$ac_exeext conftest.
$ac_ext
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10222 $as_echo "$ac_cv_working_alloca_h" >&6; }
10223 if test $ac_cv_working_alloca_h = yes; then
10225 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10230 $as_echo_n "checking for alloca... " >&6; }
10231 if test "${ac_cv_func_alloca_works+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 # define alloca __builtin_alloca
10240 # include <malloc.h>
10241 # define alloca _alloca
10243 # ifdef HAVE_ALLOCA_H
10244 # include <alloca.h>
10249 # ifndef alloca /* predefined by HP cc +Olibcalls */
10260 char *p = (char *) alloca (1);
10266 if ac_fn_c_try_link
"$LINENO"; then :
10267 ac_cv_func_alloca_works
=yes
10269 ac_cv_func_alloca_works
=no
10271 rm -f core conftest.err conftest.
$ac_objext \
10272 conftest
$ac_exeext conftest.
$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10275 $as_echo "$ac_cv_func_alloca_works" >&6; }
10277 if test $ac_cv_func_alloca_works = yes; then
10279 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10283 # that cause trouble. Some versions do not even contain alloca or
10284 # contain a buggy version. If you still want to use their alloca,
10285 # use ar to extract alloca.o from them instead of compiling alloca.c.
10287 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10289 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10293 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10294 if test "${ac_cv_os_cray+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #if defined CRAY && ! defined CRAY2
10306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10307 $EGREP "webecray" >/dev
/null
2>&1; then :
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10316 $as_echo "$ac_cv_os_cray" >&6; }
10317 if test $ac_cv_os_cray = yes; then
10318 for ac_func
in _getb67 GETB67 getb67
; do
10319 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10320 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10321 eval as_val
=\$
$as_ac_var
10322 if test "x$as_val" = x
""yes; then :
10324 cat >>confdefs.h
<<_ACEOF
10325 #define CRAY_STACKSEG_END $ac_func
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10335 $as_echo_n "checking stack direction for C alloca... " >&6; }
10336 if test "${ac_cv_c_stack_direction+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10339 if test "$cross_compiling" = yes; then :
10340 ac_cv_c_stack_direction
=0
10342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 $ac_includes_default
10346 find_stack_direction ()
10348 static char *addr = 0;
10353 return find_stack_direction ();
10356 return (&dummy > addr) ? 1 : -1;
10362 return find_stack_direction () < 0;
10365 if ac_fn_c_try_run
"$LINENO"; then :
10366 ac_cv_c_stack_direction
=1
10368 ac_cv_c_stack_direction
=-1
10370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10376 $as_echo "$ac_cv_c_stack_direction" >&6; }
10377 cat >>confdefs.h
<<_ACEOF
10378 #define STACK_DIRECTION $ac_cv_c_stack_direction
10385 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10386 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10389 # fmod, logb, and frexp are found in -lm on most systems.
10390 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10392 $as_echo_n "checking for sqrt in -lm... " >&6; }
10393 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10396 ac_check_lib_save_LIBS
=$LIBS
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10416 if ac_fn_c_try_link
"$LINENO"; then :
10417 ac_cv_lib_m_sqrt
=yes
10419 ac_cv_lib_m_sqrt
=no
10421 rm -f core conftest.err conftest.
$ac_objext \
10422 conftest
$ac_exeext conftest.
$ac_ext
10423 LIBS
=$ac_check_lib_save_LIBS
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10426 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10427 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10428 cat >>confdefs.h
<<_ACEOF
10429 #define HAVE_LIBM 1
10437 # Check for mail-locking functions in a "mail" library. Probably this should
10438 # have the same check as for liblockfile below.
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10440 $as_echo_n "checking for maillock in -lmail... " >&6; }
10441 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10444 ac_check_lib_save_LIBS
=$LIBS
10445 LIBS
="-lmail $LIBS"
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10459 return maillock ();
10464 if ac_fn_c_try_link
"$LINENO"; then :
10465 ac_cv_lib_mail_maillock
=yes
10467 ac_cv_lib_mail_maillock
=no
10469 rm -f core conftest.err conftest.
$ac_objext \
10470 conftest
$ac_exeext conftest.
$ac_ext
10471 LIBS
=$ac_check_lib_save_LIBS
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10474 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10475 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10476 cat >>confdefs.h
<<_ACEOF
10477 #define HAVE_LIBMAIL 1
10480 LIBS
="-lmail $LIBS"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10485 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10486 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10489 ac_check_lib_save_LIBS
=$LIBS
10490 LIBS
="-llockfile $LIBS"
10491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10494 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10504 return maillock ();
10509 if ac_fn_c_try_link
"$LINENO"; then :
10510 ac_cv_lib_lockfile_maillock
=yes
10512 ac_cv_lib_lockfile_maillock
=no
10514 rm -f core conftest.err conftest.
$ac_objext \
10515 conftest
$ac_exeext conftest.
$ac_ext
10516 LIBS
=$ac_check_lib_save_LIBS
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10519 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10520 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10521 cat >>confdefs.h
<<_ACEOF
10522 #define HAVE_LIBLOCKFILE 1
10525 LIBS
="-llockfile $LIBS"
10529 # If we have the shared liblockfile, assume we must use it for mail
10530 # locking (e.g. Debian). If we couldn't link against liblockfile
10531 # (no liblockfile.a installed), ensure that we don't need to.
10532 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10533 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10534 set dummy liblockfile.so
; ac_word
=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10540 if test -n "$liblockfile"; then
10541 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10544 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10545 for as_dir
in $as_dummy
10548 test -z "$as_dir" && as_dir
=.
10549 for ac_exec_ext
in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_prog_liblockfile
="yes"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10562 liblockfile
=$ac_cv_prog_liblockfile
10563 if test -n "$liblockfile"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10565 $as_echo "$liblockfile" >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10572 if test $ac_cv_prog_liblockfile = yes; then
10573 as_fn_error
"Shared liblockfile found but can't link against it.
10574 This probably means that movemail could lose mail.
10575 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10579 for ac_func
in touchlock
10581 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10582 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10583 cat >>confdefs.h
<<_ACEOF
10584 #define HAVE_TOUCHLOCK 1
10590 for ac_header
in maillock.h
10592 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10594 cat >>confdefs.h
<<_ACEOF
10595 #define HAVE_MAILLOCK_H 1
10603 for ac_func
in gethostname getdomainname dup2 \
10604 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
10605 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10606 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10607 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10608 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10609 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10610 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10611 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10612 cfmakeraw cfsetspeed
10614 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10616 eval as_val
=\$
$as_ac_var
10617 if test "x$as_val" = x
""yes; then :
10618 cat >>confdefs.h
<<_ACEOF
10619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10626 for ac_header
in sys
/un.h
10628 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10629 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
10630 cat >>confdefs.h
<<_ACEOF
10631 #define HAVE_SYS_UN_H 1
10642 for ac_header
in $ac_header_list
10644 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10645 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10647 eval as_val
=\$
$as_ac_Header
10648 if test "x$as_val" = x
""yes; then :
10649 cat >>confdefs.h
<<_ACEOF
10650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10664 for ac_func
in $ac_func_list
10666 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10668 eval as_val
=\$
$as_ac_var
10669 if test "x$as_val" = x
""yes; then :
10670 cat >>confdefs.h
<<_ACEOF
10671 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10682 $as_echo_n "checking for working mktime... " >&6; }
10683 if test "${ac_cv_func_working_mktime+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
10686 if test "$cross_compiling" = yes; then :
10687 ac_cv_func_working_mktime
=no
10689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 /* Test program from Paul Eggert and Tony Leneis. */
10692 #ifdef TIME_WITH_SYS_TIME
10693 # include <sys/time.h>
10696 # ifdef HAVE_SYS_TIME_H
10697 # include <sys/time.h>
10703 #include <limits.h>
10704 #include <stdlib.h>
10706 #ifdef HAVE_UNISTD_H
10707 # include <unistd.h>
10711 # define alarm(X) /* empty */
10714 /* Work around redefinition to rpl_putenv by other config tests. */
10717 static time_t time_t_max;
10718 static time_t time_t_min;
10720 /* Values we'll use to set the TZ environment variable. */
10721 static char *tz_strings[] = {
10722 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10723 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10725 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10727 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
10728 Based on a problem report from Andreas Jaeger. */
10730 spring_forward_gap ()
10732 /* glibc (up to about 1998-10-07) failed this test. */
10735 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10736 instead of "TZ=America/Vancouver" in order to detect the bug even
10737 on systems that don't support the Olson extension, or don't have the
10738 full zoneinfo tables installed. */
10739 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10748 return mktime (&tm) != (time_t) -1;
10756 return ! (lt = localtime (&now)) || mktime (lt) == now;
10763 return (mktime_test1 (now)
10764 && mktime_test1 ((time_t) (time_t_max - now))
10765 && mktime_test1 ((time_t) (time_t_min + now)));
10771 /* Based on code from Ariel Faigon. */
10781 return tm.tm_mon == 2 && tm.tm_mday == 31;
10790 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10791 now = mktime (&tm);
10792 if (now != (time_t) -1)
10794 struct tm *lt = localtime (&now);
10796 && lt->tm_year == tm.tm_year
10797 && lt->tm_mon == tm.tm_mon
10798 && lt->tm_mday == tm.tm_mday
10799 && lt->tm_hour == tm.tm_hour
10800 && lt->tm_min == tm.tm_min
10801 && lt->tm_sec == tm.tm_sec
10802 && lt->tm_yday == tm.tm_yday
10803 && lt->tm_wday == tm.tm_wday
10804 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10805 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10814 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
10815 ignoring leap seconds. */
10816 unsigned long int answer = 2527315200UL;
10820 tm.tm_year = 2050 - 1900;
10823 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
10826 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10827 instead of "TZ=America/Vancouver" in order to detect the bug even
10828 on systems that don't support the Olson extension, or don't have the
10829 full zoneinfo tables installed. */
10830 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10834 /* Check that the result is either a failure, or close enough
10835 to the correct answer that we can assume the discrepancy is
10836 due to leap seconds. */
10837 return (t == (time_t) -1
10838 || (0 < t && answer - 120 <= t && t <= answer + 120));
10847 /* This test makes some buggy mktime implementations loop.
10848 Give up after 60 seconds; a mktime slower than that
10849 isn't worth using anyway. */
10854 t = (time_t_max << 1) + 1;
10855 if (t <= time_t_max)
10859 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
10861 delta = time_t_max / 997; /* a suitable prime number */
10862 for (i = 0; i < N_STRINGS; i++)
10865 putenv (tz_strings[i]);
10867 for (t = 0; t <= time_t_max - delta; t += delta)
10868 if (! mktime_test (t))
10870 if (! (mktime_test ((time_t) 1)
10871 && mktime_test ((time_t) (60 * 60))
10872 && mktime_test ((time_t) (60 * 60 * 24))))
10875 for (j = 1; ; j <<= 1)
10876 if (! bigtime_test (j))
10878 else if (INT_MAX / 2 < j)
10880 if (! bigtime_test (INT_MAX))
10883 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10886 if ac_fn_c_try_run
"$LINENO"; then :
10887 ac_cv_func_working_mktime
=yes
10889 ac_cv_func_working_mktime
=no
10891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
10897 $as_echo "$ac_cv_func_working_mktime" >&6; }
10898 if test $ac_cv_func_working_mktime = no
; then
10899 case " $LIBOBJS " in
10900 *" mktime.$ac_objext "* ) ;;
10901 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10907 if test "$ac_cv_func_working_mktime" = no
; then
10909 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
10913 ac_have_func
=no
# yes means we've found a way to get the load average.
10915 # Make sure getloadavg.c is where it belongs, at configure-time.
10916 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10917 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
10921 # Check for getloadavg, but be sure not to touch the cache variable.
10922 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10923 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
10928 ) && ac_have_func
=yes
10930 # On HPUX9, an unprivileged user can get load averages through this function.
10931 for ac_func
in pstat_getdynamic
10933 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
10934 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
10935 cat >>confdefs.h
<<_ACEOF
10936 #define HAVE_PSTAT_GETDYNAMIC 1
10943 # Solaris has libkstat which does not require root.
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10945 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10949 ac_check_lib_save_LIBS
=$LIBS
10950 LIBS
="-lkstat $LIBS"
10951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10960 char kstat_open ();
10964 return kstat_open ();
10969 if ac_fn_c_try_link
"$LINENO"; then :
10970 ac_cv_lib_kstat_kstat_open
=yes
10972 ac_cv_lib_kstat_kstat_open
=no
10974 rm -f core conftest.err conftest.
$ac_objext \
10975 conftest
$ac_exeext conftest.
$ac_ext
10976 LIBS
=$ac_check_lib_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10979 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10980 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
10981 cat >>confdefs.h
<<_ACEOF
10982 #define HAVE_LIBKSTAT 1
10985 LIBS
="-lkstat $LIBS"
10989 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
10991 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10992 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10993 # to get the right answer into the cache.
10994 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10995 if test $ac_have_func = no
; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10997 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10998 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11001 ac_check_lib_save_LIBS
=$LIBS
11003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11016 return elf_begin ();
11021 if ac_fn_c_try_link
"$LINENO"; then :
11022 ac_cv_lib_elf_elf_begin
=yes
11024 ac_cv_lib_elf_elf_begin
=no
11026 rm -f core conftest.err conftest.
$ac_objext \
11027 conftest
$ac_exeext conftest.
$ac_ext
11028 LIBS
=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11031 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11032 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11037 if test $ac_have_func = no
; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11039 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11043 ac_check_lib_save_LIBS
=$LIBS
11045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11046 /* end confdefs.h. */
11048 /* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11058 return kvm_open ();
11063 if ac_fn_c_try_link
"$LINENO"; then :
11064 ac_cv_lib_kvm_kvm_open
=yes
11066 ac_cv_lib_kvm_kvm_open
=no
11068 rm -f core conftest.err conftest.
$ac_objext \
11069 conftest
$ac_exeext conftest.
$ac_ext
11070 LIBS
=$ac_check_lib_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11073 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11074 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11078 # Check for the 4.4BSD definition of getloadavg.
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11080 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11081 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
11084 ac_check_lib_save_LIBS
=$LIBS
11085 LIBS
="-lutil $LIBS"
11086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11095 char getloadavg ();
11099 return getloadavg ();
11104 if ac_fn_c_try_link
"$LINENO"; then :
11105 ac_cv_lib_util_getloadavg
=yes
11107 ac_cv_lib_util_getloadavg
=no
11109 rm -f core conftest.err conftest.
$ac_objext \
11110 conftest
$ac_exeext conftest.
$ac_ext
11111 LIBS
=$ac_check_lib_save_LIBS
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11114 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11115 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11116 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11121 if test $ac_have_func = no
; then
11122 # There is a commonly available library for RS/6000 AIX.
11123 # Since it is not a standard part of AIX, it might be installed locally.
11124 ac_getloadavg_LIBS
=$LIBS
11125 LIBS
="-L/usr/local/lib $LIBS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11127 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11128 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11129 $as_echo_n "(cached) " >&6
11131 ac_check_lib_save_LIBS
=$LIBS
11132 LIBS
="-lgetloadavg $LIBS"
11133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11142 char getloadavg ();
11146 return getloadavg ();
11151 if ac_fn_c_try_link
"$LINENO"; then :
11152 ac_cv_lib_getloadavg_getloadavg
=yes
11154 ac_cv_lib_getloadavg_getloadavg
=no
11156 rm -f core conftest.err conftest.
$ac_objext \
11157 conftest
$ac_exeext conftest.
$ac_ext
11158 LIBS
=$ac_check_lib_save_LIBS
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11162 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11163 LIBS
="-lgetloadavg $LIBS"
11165 LIBS
=$ac_getloadavg_LIBS
11170 # Make sure it is really in the library, if we think we found it,
11171 # otherwise set up the replacement function.
11172 for ac_func
in getloadavg
11174 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11175 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11176 cat >>confdefs.h
<<_ACEOF
11177 #define HAVE_GETLOADAVG 1
11181 case " $LIBOBJS " in
11182 *" getloadavg.$ac_objext "* ) ;;
11183 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11188 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11190 # Figure out what our getloadavg.c needs.
11192 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11193 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11196 $as_echo "#define DGUX 1" >>confdefs.h
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11199 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11200 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_check_lib_save_LIBS
=$LIBS
11205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11214 char dg_sys_info ();
11218 return dg_sys_info ();
11223 if ac_fn_c_try_link
"$LINENO"; then :
11224 ac_cv_lib_dgc_dg_sys_info
=yes
11226 ac_cv_lib_dgc_dg_sys_info
=no
11228 rm -f core conftest.err conftest.
$ac_objext \
11229 conftest
$ac_exeext conftest.
$ac_ext
11230 LIBS
=$ac_check_lib_save_LIBS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11233 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11234 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11235 cat >>confdefs.h
<<_ACEOF
11236 #define HAVE_LIBDGC 1
11247 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11248 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11253 for ac_func
in setlocale
11255 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11256 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11257 cat >>confdefs.h
<<_ACEOF
11258 #define HAVE_SETLOCALE 1
11265 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11266 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11267 # Irix 4.0.5F has the header but not the library.
11268 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11271 $as_echo "#define SVR4 1" >>confdefs.h
11275 if test $ac_have_func = no
; then
11276 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11277 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11280 $as_echo "#define UMAX 1" >>confdefs.h
11283 $as_echo "#define UMAX4_3 1" >>confdefs.h
11290 if test $ac_have_func = no
; then
11291 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11292 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11293 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11300 if test $ac_have_func = no
; then
11301 for ac_header
in mach
/mach.h
11303 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11304 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11305 cat >>confdefs.h
<<_ACEOF
11306 #define HAVE_MACH_MACH_H 1
11315 for ac_header
in nlist.h
11317 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11318 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11319 cat >>confdefs.h
<<_ACEOF
11320 #define HAVE_NLIST_H 1
11322 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11324 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11326 cat >>confdefs.h
<<_ACEOF
11327 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11331 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11344 # Some definitions of getloadavg require that the program be installed setgid.
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11346 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11347 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11352 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11353 #ifdef LDAV_PRIVILEGED
11354 Yowza Am I SETGID yet
11357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11358 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11359 ac_cv_func_getloadavg_setgid
=yes
11361 ac_cv_func_getloadavg_setgid
=no
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11367 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11368 if test $ac_cv_func_getloadavg_setgid = yes; then
11371 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11377 if test $ac_cv_func_getloadavg_setgid = yes; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11379 $as_echo_n "checking group of /dev/kmem... " >&6; }
11380 if test "${ac_cv_group_kmem+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11383 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11384 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11385 # If we got an error (system does not support symlinks), try without -L.
11386 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11387 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11388 | sed -ne 's/[ ][ ]*/ /g;
11389 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11394 $as_echo "$ac_cv_group_kmem" >&6; }
11395 KMEM_GROUP
=$ac_cv_group_kmem
11397 if test "x$ac_save_LIBS" = x
; then
11398 GETLOADAVG_LIBS
=$LIBS
11400 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11407 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11408 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include <sys/types.h> /* for off_t */
11419 int (*fp) (FILE *, off_t, int) = fseeko;
11420 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11425 if ac_fn_c_try_link
"$LINENO"; then :
11426 ac_cv_sys_largefile_source
=no
; break
11428 rm -f core conftest.err conftest.
$ac_objext \
11429 conftest
$ac_exeext conftest.
$ac_ext
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #define _LARGEFILE_SOURCE 1
11433 #include <sys/types.h> /* for off_t */
11438 int (*fp) (FILE *, off_t, int) = fseeko;
11439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11444 if ac_fn_c_try_link
"$LINENO"; then :
11445 ac_cv_sys_largefile_source
=1; break
11447 rm -f core conftest.err conftest.
$ac_objext \
11448 conftest
$ac_exeext conftest.
$ac_ext
11449 ac_cv_sys_largefile_source
=unknown
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11454 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11455 case $ac_cv_sys_largefile_source in #(
11458 cat >>confdefs.h
<<_ACEOF
11459 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11465 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11466 # in glibc 2.1.3, but that breaks too many other things.
11467 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11468 if test $ac_cv_sys_largefile_source != unknown
; then
11470 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11475 # Configure getopt.
11476 # getopt.m4 serial 10
11478 # The getopt module assume you want GNU getopt, with getopt_long etc,
11479 # rather than vanilla POSIX getopt. This means your your code should
11480 # always include <getopt.h> for the getopt prototypes.
11492 # Prerequisites of lib/getopt*.
11498 for ac_header
in getopt.h
11500 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11501 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11502 cat >>confdefs.h
<<_ACEOF
11503 #define HAVE_GETOPT_H 1
11512 if test -z "$GETOPT_H"; then
11513 for ac_func
in getopt_long_only
11515 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11516 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11517 cat >>confdefs.h
<<_ACEOF
11518 #define HAVE_GETOPT_LONG_ONLY 1
11528 if test -z "$GETOPT_H"; then
11529 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11531 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11537 if test -z "$GETOPT_H"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11539 $as_echo_n "checking for working GNU getopt function... " >&6; }
11540 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11543 if test "$cross_compiling" = yes; then :
11544 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11546 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11547 gl_cv_func_gnu_getopt
=no
11549 gl_cv_func_gnu_getopt
=yes
11553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11555 #include <getopt.h>
11561 myargv[0] = "conftest";
11564 return getopt (2, myargv, "+a") != '?';
11570 if ac_fn_c_try_run
"$LINENO"; then :
11571 gl_cv_func_gnu_getopt
=yes
11573 gl_cv_func_gnu_getopt
=no
11575 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11576 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11581 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11582 if test "$gl_cv_func_gnu_getopt" = "no"; then
11589 if test -n "$GETOPT_H"; then :
11594 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11599 GETOPTOBJS
='getopt.o getopt1.o'
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11606 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11607 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11610 # Use it with a single arg.
11611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 $ac_includes_default
11622 if ac_fn_c_try_compile
"$LINENO"; then :
11623 ac_cv_func_getpgrp_void
=no
11625 ac_cv_func_getpgrp_void
=yes
11627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11631 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11632 if test $ac_cv_func_getpgrp_void = yes; then
11634 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11639 for ac_func
in strftime
11641 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11642 if test "x$ac_cv_func_strftime" = x
""yes; then :
11643 cat >>confdefs.h
<<_ACEOF
11644 #define HAVE_STRFTIME 1
11648 # strftime is in -lintl on SCO UNIX.
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11650 $as_echo_n "checking for strftime in -lintl... " >&6; }
11651 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11654 ac_check_lib_save_LIBS
=$LIBS
11655 LIBS
="-lintl $LIBS"
11656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11669 return strftime ();
11674 if ac_fn_c_try_link
"$LINENO"; then :
11675 ac_cv_lib_intl_strftime
=yes
11677 ac_cv_lib_intl_strftime
=no
11679 rm -f core conftest.err conftest.
$ac_objext \
11680 conftest
$ac_exeext conftest.
$ac_ext
11681 LIBS
=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11684 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11685 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11686 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11688 LIBS
="-lintl $LIBS"
11696 for ac_func
in grantpt
11698 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
11699 if test "x$ac_cv_func_grantpt" = x
""yes; then :
11700 cat >>confdefs.h
<<_ACEOF
11701 #define HAVE_GRANTPT 1
11708 # PTY-related GNU extensions.
11709 for ac_func
in getpt
11711 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
11712 if test "x$ac_cv_func_getpt" = x
""yes; then :
11713 cat >>confdefs.h
<<_ACEOF
11714 #define HAVE_GETPT 1
11721 # Check this now, so that we will NOT find the above functions in ncurses.
11722 # That is because we have not set up to link ncurses in lib-src.
11723 # It's better to believe a function is not available
11724 # than to expect to find it in ncurses.
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5
11726 $as_echo_n "checking for tparm in -lncurses... " >&6; }
11727 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11730 ac_check_lib_save_LIBS
=$LIBS
11731 LIBS
="-lncurses $LIBS"
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 /* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11750 if ac_fn_c_try_link
"$LINENO"; then :
11751 ac_cv_lib_ncurses_tparm
=yes
11753 ac_cv_lib_ncurses_tparm
=no
11755 rm -f core conftest.err conftest.
$ac_objext \
11756 conftest
$ac_exeext conftest.
$ac_ext
11757 LIBS
=$ac_check_lib_save_LIBS
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5
11760 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11761 if test "x$ac_cv_lib_ncurses_tparm" = x
""yes; then :
11762 cat >>confdefs.h
<<_ACEOF
11763 #define HAVE_LIBNCURSES 1
11766 LIBS
="-lncurses $LIBS"
11771 # Do we have res_init, for detecting changes in /etc/resolv.conf?
11774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 #include <netinet/in.h>
11777 #include <arpa/nameser.h>
11778 #include <resolv.h>
11787 if ac_fn_c_try_link
"$LINENO"; then :
11792 rm -f core conftest.err conftest.
$ac_objext \
11793 conftest
$ac_exeext conftest.
$ac_ext
11794 if test "$have_res_init" = no
; then
11796 LIBS
="$LIBS -lresolv"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
11798 $as_echo_n "checking for res_init with -lresolv... " >&6; }
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 #include <netinet/in.h>
11802 #include <arpa/nameser.h>
11803 #include <resolv.h>
11812 if ac_fn_c_try_link
"$LINENO"; then :
11817 rm -f core conftest.err conftest.
$ac_objext \
11818 conftest
$ac_exeext conftest.
$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
11820 $as_echo "$have_res_init" >&6; }
11821 if test "$have_res_init" = yes ; then
11827 if test "$have_res_init" = yes; then
11829 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
11833 # Do we need the Hesiod library to provide the support routines?
11834 if test "$with_hesiod" != no
; then
11835 # Don't set $LIBS here -- see comments above.
11836 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
11837 if test "x$ac_cv_func_res_send" = x
""yes; then :
11840 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
11841 if test "x$ac_cv_func___res_send" = x
""yes; then :
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
11845 $as_echo_n "checking for res_send in -lresolv... " >&6; }
11846 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11849 ac_check_lib_save_LIBS
=$LIBS
11850 LIBS
="-lresolv $LIBS"
11851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11864 return res_send ();
11869 if ac_fn_c_try_link
"$LINENO"; then :
11870 ac_cv_lib_resolv_res_send
=yes
11872 ac_cv_lib_resolv_res_send
=no
11874 rm -f core conftest.err conftest.
$ac_objext \
11875 conftest
$ac_exeext conftest.
$ac_ext
11876 LIBS
=$ac_check_lib_save_LIBS
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
11879 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11880 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
11884 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
11885 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11888 ac_check_lib_save_LIBS
=$LIBS
11889 LIBS
="-lresolv $LIBS"
11890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11899 char __res_send ();
11903 return __res_send ();
11908 if ac_fn_c_try_link
"$LINENO"; then :
11909 ac_cv_lib_resolv___res_send
=yes
11911 ac_cv_lib_resolv___res_send
=no
11913 rm -f core conftest.err conftest.
$ac_objext \
11914 conftest
$ac_exeext conftest.
$ac_ext
11915 LIBS
=$ac_check_lib_save_LIBS
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
11918 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11919 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
11929 if test "$resolv" = yes ; then
11934 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
11935 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
11939 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11940 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11943 ac_check_lib_save_LIBS
=$LIBS
11944 LIBS
="-lhesiod $RESOLVLIB $LIBS"
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11954 char hes_getmailhost ();
11958 return hes_getmailhost ();
11963 if ac_fn_c_try_link
"$LINENO"; then :
11964 ac_cv_lib_hesiod_hes_getmailhost
=yes
11966 ac_cv_lib_hesiod_hes_getmailhost
=no
11968 rm -f core conftest.err conftest.
$ac_objext \
11969 conftest
$ac_exeext conftest.
$ac_ext
11970 LIBS
=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
11973 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
11974 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
11976 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
11986 # Do we need libresolv (due to res_init or Hesiod)?
11987 if test "$resolv" = yes ; then
11989 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
11993 # These tell us which Kerberos-related libraries to use.
11994 if test "${with_kerberos}" != no
; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
11996 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
11997 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
12000 ac_check_lib_save_LIBS
=$LIBS
12001 LIBS
="-lcom_err $LIBS"
12002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12020 if ac_fn_c_try_link
"$LINENO"; then :
12021 ac_cv_lib_com_err_com_err
=yes
12023 ac_cv_lib_com_err_com_err
=no
12025 rm -f core conftest.err conftest.
$ac_objext \
12026 conftest
$ac_exeext conftest.
$ac_ext
12027 LIBS
=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12030 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12031 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12032 cat >>confdefs.h
<<_ACEOF
12033 #define HAVE_LIBCOM_ERR 1
12036 LIBS
="-lcom_err $LIBS"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12041 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12042 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12045 ac_check_lib_save_LIBS
=$LIBS
12046 LIBS
="-lk5crypto $LIBS"
12047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12056 char mit_des_cbc_encrypt ();
12060 return mit_des_cbc_encrypt ();
12065 if ac_fn_c_try_link
"$LINENO"; then :
12066 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12068 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12070 rm -f core conftest.err conftest.
$ac_objext \
12071 conftest
$ac_exeext conftest.
$ac_ext
12072 LIBS
=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12075 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12076 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12077 cat >>confdefs.h
<<_ACEOF
12078 #define HAVE_LIBK5CRYPTO 1
12081 LIBS
="-lk5crypto $LIBS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12086 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12087 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12090 ac_check_lib_save_LIBS
=$LIBS
12091 LIBS
="-lcrypto $LIBS"
12092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12101 char mit_des_cbc_encrypt ();
12105 return mit_des_cbc_encrypt ();
12110 if ac_fn_c_try_link
"$LINENO"; then :
12111 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12113 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12115 rm -f core conftest.err conftest.
$ac_objext \
12116 conftest
$ac_exeext conftest.
$ac_ext
12117 LIBS
=$ac_check_lib_save_LIBS
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12120 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12121 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12122 cat >>confdefs.h
<<_ACEOF
12123 #define HAVE_LIBCRYPTO 1
12126 LIBS
="-lcrypto $LIBS"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12131 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12132 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12135 ac_check_lib_save_LIBS
=$LIBS
12136 LIBS
="-lkrb5 $LIBS"
12137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12146 char krb5_init_context ();
12150 return krb5_init_context ();
12155 if ac_fn_c_try_link
"$LINENO"; then :
12156 ac_cv_lib_krb5_krb5_init_context
=yes
12158 ac_cv_lib_krb5_krb5_init_context
=no
12160 rm -f core conftest.err conftest.
$ac_objext \
12161 conftest
$ac_exeext conftest.
$ac_ext
12162 LIBS
=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12165 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12166 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12167 cat >>confdefs.h
<<_ACEOF
12168 #define HAVE_LIBKRB5 1
12171 LIBS
="-lkrb5 $LIBS"
12175 if test "${with_kerberos5}" = no
; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12177 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12178 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12181 ac_check_lib_save_LIBS
=$LIBS
12182 LIBS
="-ldes425 $LIBS"
12183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12192 char des_cbc_encrypt ();
12196 return des_cbc_encrypt ();
12201 if ac_fn_c_try_link
"$LINENO"; then :
12202 ac_cv_lib_des425_des_cbc_encrypt
=yes
12204 ac_cv_lib_des425_des_cbc_encrypt
=no
12206 rm -f core conftest.err conftest.
$ac_objext \
12207 conftest
$ac_exeext conftest.
$ac_ext
12208 LIBS
=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12211 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12212 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12213 cat >>confdefs.h
<<_ACEOF
12214 #define HAVE_LIBDES425 1
12217 LIBS
="-ldes425 $LIBS"
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12221 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12222 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12225 ac_check_lib_save_LIBS
=$LIBS
12227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12230 /* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12236 char des_cbc_encrypt ();
12240 return des_cbc_encrypt ();
12245 if ac_fn_c_try_link
"$LINENO"; then :
12246 ac_cv_lib_des_des_cbc_encrypt
=yes
12248 ac_cv_lib_des_des_cbc_encrypt
=no
12250 rm -f core conftest.err conftest.
$ac_objext \
12251 conftest
$ac_exeext conftest.
$ac_ext
12252 LIBS
=$ac_check_lib_save_LIBS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12255 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12256 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12257 cat >>confdefs.h
<<_ACEOF
12258 #define HAVE_LIBDES 1
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12268 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12269 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12272 ac_check_lib_save_LIBS
=$LIBS
12273 LIBS
="-lkrb4 $LIBS"
12274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12283 char krb_get_cred ();
12287 return krb_get_cred ();
12292 if ac_fn_c_try_link
"$LINENO"; then :
12293 ac_cv_lib_krb4_krb_get_cred
=yes
12295 ac_cv_lib_krb4_krb_get_cred
=no
12297 rm -f core conftest.err conftest.
$ac_objext \
12298 conftest
$ac_exeext conftest.
$ac_ext
12299 LIBS
=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12302 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12303 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12304 cat >>confdefs.h
<<_ACEOF
12305 #define HAVE_LIBKRB4 1
12308 LIBS
="-lkrb4 $LIBS"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12312 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12313 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12316 ac_check_lib_save_LIBS
=$LIBS
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12327 char krb_get_cred ();
12331 return krb_get_cred ();
12336 if ac_fn_c_try_link
"$LINENO"; then :
12337 ac_cv_lib_krb_krb_get_cred
=yes
12339 ac_cv_lib_krb_krb_get_cred
=no
12341 rm -f core conftest.err conftest.
$ac_objext \
12342 conftest
$ac_exeext conftest.
$ac_ext
12343 LIBS
=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12346 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12347 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12348 cat >>confdefs.h
<<_ACEOF
12349 #define HAVE_LIBKRB 1
12360 if test "${with_kerberos5}" != no
; then
12361 for ac_header
in krb5.h
12363 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12364 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12365 cat >>confdefs.h
<<_ACEOF
12366 #define HAVE_KRB5_H 1
12368 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12370 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12372 cat >>confdefs.h
<<_ACEOF
12373 #define HAVE_KRB5_ERROR_TEXT 1
12378 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12380 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12382 cat >>confdefs.h
<<_ACEOF
12383 #define HAVE_KRB5_ERROR_E_TEXT 1
12394 for ac_header
in des.h
12396 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12397 if test "x$ac_cv_header_des_h" = x
""yes; then :
12398 cat >>confdefs.h
<<_ACEOF
12399 #define HAVE_DES_H 1
12403 for ac_header
in kerberosIV
/des.h
12405 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12406 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12407 cat >>confdefs.h
<<_ACEOF
12408 #define HAVE_KERBEROSIV_DES_H 1
12412 for ac_header
in kerberos
/des.h
12414 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12415 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12416 cat >>confdefs.h
<<_ACEOF
12417 #define HAVE_KERBEROS_DES_H 1
12432 for ac_header
in krb.h
12434 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12435 if test "x$ac_cv_header_krb_h" = x
""yes; then :
12436 cat >>confdefs.h
<<_ACEOF
12437 #define HAVE_KRB_H 1
12441 for ac_header
in kerberosIV
/krb.h
12443 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12444 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
12445 cat >>confdefs.h
<<_ACEOF
12446 #define HAVE_KERBEROSIV_KRB_H 1
12450 for ac_header
in kerberos
/krb.h
12452 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12453 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
12454 cat >>confdefs.h
<<_ACEOF
12455 #define HAVE_KERBEROS_KRB_H 1
12471 for ac_header
in com_err.h
12473 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12474 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
12475 cat >>confdefs.h
<<_ACEOF
12476 #define HAVE_COM_ERR_H 1
12485 # Solaris requires -lintl if you want strerror (which calls dgettext)
12486 # to return localized messages.
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12488 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12489 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12492 ac_check_lib_save_LIBS
=$LIBS
12493 LIBS
="-lintl $LIBS"
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12507 return dgettext ();
12512 if ac_fn_c_try_link
"$LINENO"; then :
12513 ac_cv_lib_intl_dgettext
=yes
12515 ac_cv_lib_intl_dgettext
=no
12517 rm -f core conftest.err conftest.
$ac_objext \
12518 conftest
$ac_exeext conftest.
$ac_ext
12519 LIBS
=$ac_check_lib_save_LIBS
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12522 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12523 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
12524 cat >>confdefs.h
<<_ACEOF
12525 #define HAVE_LIBINTL 1
12528 LIBS
="-lintl $LIBS"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12534 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12535 if test "${emacs_cv_localtime_cache+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12538 if test x
$ac_cv_func_tzset = xyes
; then
12539 if test "$cross_compiling" = yes; then :
12540 # If we have tzset, assume the worst when cross-compiling.
12541 emacs_cv_localtime_cache
=yes
12543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 extern char **environ;
12550 for (to = from = environ; (*to = *from); from++)
12551 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12554 char TZ_GMT0[] = "TZ=GMT0";
12555 char TZ_PST8[] = "TZ=PST8";
12558 time_t now = time ((time_t *) 0);
12559 int hour_GMT0, hour_unset;
12560 if (putenv (TZ_GMT0) != 0)
12562 hour_GMT0 = localtime (&now)->tm_hour;
12564 hour_unset = localtime (&now)->tm_hour;
12565 if (putenv (TZ_PST8) != 0)
12567 if (localtime (&now)->tm_hour == hour_GMT0)
12570 if (localtime (&now)->tm_hour != hour_unset)
12575 if ac_fn_c_try_run
"$LINENO"; then :
12576 emacs_cv_localtime_cache
=no
12578 emacs_cv_localtime_cache
=yes
12580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12585 # If we lack tzset, report that localtime does not cache TZ,
12586 # since we can't invalidate the cache if we don't have tzset.
12587 emacs_cv_localtime_cache
=no
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12591 $as_echo "$emacs_cv_localtime_cache" >&6; }
12592 if test $emacs_cv_localtime_cache = yes; then
12594 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12598 if test "x$HAVE_TIMEVAL" = xyes
; then
12599 for ac_func
in gettimeofday
12601 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12602 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
12603 cat >>confdefs.h
<<_ACEOF
12604 #define HAVE_GETTIMEOFDAY 1
12610 if test $ac_cv_func_gettimeofday = yes; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12612 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12613 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12619 #ifdef TIME_WITH_SYS_TIME
12620 #include <sys/time.h>
12623 #ifdef HAVE_SYS_TIME_H
12624 #include <sys/time.h>
12632 struct timeval time;
12633 gettimeofday (&time, 0);
12638 if ac_fn_c_try_compile
"$LINENO"; then :
12639 emacs_cv_gettimeofday_two_arguments
=yes
12641 emacs_cv_gettimeofday_two_arguments
=no
12643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
12646 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12647 if test $emacs_cv_gettimeofday_two_arguments = no
; then
12649 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
12656 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
12657 if test "x$ac_cv_func_socket" = x
""yes; then :
12663 if test $ok_so_far = yes; then
12664 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12665 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
12673 if test $ok_so_far = yes; then
12674 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
12675 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
12683 if test $ok_so_far = yes; then
12685 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
12689 for ac_header
in sys
/ioctl.h
12691 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12692 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
12693 cat >>confdefs.h
<<_ACEOF
12694 #define HAVE_SYS_IOCTL_H 1
12702 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12704 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
12709 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12710 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12714 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12721 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12722 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12726 cat >>confdefs.h
<<_ACEOF
12732 for ac_header
in vfork.h
12734 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12735 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12736 cat >>confdefs.h
<<_ACEOF
12737 #define HAVE_VFORK_H 1
12744 for ac_func
in fork vfork
12746 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12747 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12748 eval as_val
=\$
$as_ac_var
12749 if test "x$as_val" = x
""yes; then :
12750 cat >>confdefs.h
<<_ACEOF
12751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12757 if test "x$ac_cv_func_fork" = xyes
; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12759 $as_echo_n "checking for working fork... " >&6; }
12760 if test "${ac_cv_func_fork_works+set}" = set; then :
12761 $as_echo_n "(cached) " >&6
12763 if test "$cross_compiling" = yes; then :
12764 ac_cv_func_fork_works
=cross
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 $ac_includes_default
12773 /* By Ruediger Kuhlmann. */
12774 return fork () < 0;
12780 if ac_fn_c_try_run
"$LINENO"; then :
12781 ac_cv_func_fork_works
=yes
12783 ac_cv_func_fork_works
=no
12785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12791 $as_echo "$ac_cv_func_fork_works" >&6; }
12794 ac_cv_func_fork_works
=$ac_cv_func_fork
12796 if test "x$ac_cv_func_fork_works" = xcross
; then
12798 *-*-amigaos* |
*-*-msdosdjgpp*)
12799 # Override, as these systems have only a dummy fork() stub
12800 ac_cv_func_fork_works
=no
12803 ac_cv_func_fork_works
=yes
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12807 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12809 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12810 if test "x$ac_cv_func_vfork" = xyes
; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12812 $as_echo_n "checking for working vfork... " >&6; }
12813 if test "${ac_cv_func_vfork_works+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12816 if test "$cross_compiling" = yes; then :
12817 ac_cv_func_vfork_works
=cross
12819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 /* Thanks to Paul Eggert for this test. */
12822 $ac_includes_default
12823 #include <sys/wait.h>
12824 #ifdef HAVE_VFORK_H
12825 # include <vfork.h>
12827 /* On some sparc systems, changes by the child to local and incoming
12828 argument registers are propagated back to the parent. The compiler
12829 is told about this with #include <vfork.h>, but some compilers
12830 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12831 static variable whose address is put into a register that is
12832 clobbered by the vfork. */
12835 sparc_address_test (int arg)
12837 sparc_address_test (arg) int arg;
12840 static pid_t child;
12858 pid_t parent = getpid ();
12861 sparc_address_test (0);
12866 /* Here is another test for sparc vfork register problems. This
12867 test uses lots of local variables, at least as many local
12868 variables as main has allocated so far including compiler
12869 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12870 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12871 reuse the register of parent for one of the local variables,
12872 since it will think that parent can't possibly be used any more
12873 in this routine. Assigning to the local variable will thus
12874 munge parent in the parent process. */
12876 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12877 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12878 /* Convince the compiler that p..p7 are live; otherwise, it might
12879 use the same hardware register for all 8 local variables. */
12880 if (p != p1 || p != p2 || p != p3 || p != p4
12881 || p != p5 || p != p6 || p != p7)
12884 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12885 from child file descriptors. If the child closes a descriptor
12886 before it execs or exits, this munges the parent's descriptor
12887 as well. Test for this by closing stdout in the child. */
12888 _exit(close(fileno(stdout)) != 0);
12893 while (wait(&status) != child)
12896 /* Was there some problem with vforking? */
12899 /* Did the child fail? (This shouldn't happen.) */
12902 /* Did the vfork/compiler bug occur? */
12903 || parent != getpid()
12905 /* Did the file descriptor bug occur? */
12906 || fstat(fileno(stdout), &st) != 0
12911 if ac_fn_c_try_run
"$LINENO"; then :
12912 ac_cv_func_vfork_works
=yes
12914 ac_cv_func_vfork_works
=no
12916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12922 $as_echo "$ac_cv_func_vfork_works" >&6; }
12925 if test "x$ac_cv_func_fork_works" = xcross
; then
12926 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12928 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12931 if test "x$ac_cv_func_vfork_works" = xyes
; then
12933 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12937 $as_echo "#define vfork fork" >>confdefs.h
12940 if test "x$ac_cv_func_fork_works" = xyes
; then
12942 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12948 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12949 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12954 #include <langinfo.h>
12958 char* cs = nl_langinfo(CODESET);
12963 if ac_fn_c_try_link
"$LINENO"; then :
12964 emacs_cv_langinfo_codeset
=yes
12966 emacs_cv_langinfo_codeset
=no
12968 rm -f core conftest.err conftest.
$ac_objext \
12969 conftest
$ac_exeext conftest.
$ac_ext
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
12973 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
12974 if test $emacs_cv_langinfo_codeset = yes; then
12976 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12980 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12981 if test "x$ac_cv_type_size_t" = x
""yes; then :
12983 cat >>confdefs.h
<<_ACEOF
12984 #define HAVE_SIZE_T 1
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12992 $as_echo_n "checking for mbstate_t... " >&6; }
12993 if test "${ac_cv_type_mbstate_t+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 $ac_includes_default
12999 # include <wchar.h>
13003 mbstate_t x; return sizeof x;
13008 if ac_fn_c_try_compile
"$LINENO"; then :
13009 ac_cv_type_mbstate_t
=yes
13011 ac_cv_type_mbstate_t
=no
13013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13016 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13017 if test $ac_cv_type_mbstate_t = yes; then
13019 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13023 $as_echo "#define mbstate_t int" >>confdefs.h
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13028 $as_echo_n "checking for C restrict keyword... " >&6; }
13029 if test "${emacs_cv_c_restrict+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 void fred (int *restrict x);
13043 if ac_fn_c_try_compile
"$LINENO"; then :
13044 emacs_cv_c_restrict
=yes
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 void fred (int *__restrict x);
13057 if ac_fn_c_try_compile
"$LINENO"; then :
13058 emacs_cv_c_restrict
=__restrict
13060 emacs_cv_c_restrict
=no
13062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13067 $as_echo "$emacs_cv_c_restrict" >&6; }
13068 case "$emacs_cv_c_restrict" in
13069 yes) emacs_restrict
=restrict
;;
13070 no
) emacs_restrict
="";;
13071 *) emacs_restrict
="$emacs_cv_c_restrict";;
13073 if test "$emacs_restrict" != __restrict
; then
13075 cat >>confdefs.h
<<_ACEOF
13076 #define __restrict $emacs_restrict
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13082 $as_echo_n "checking for C restricted array declarations... " >&6; }
13083 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 void fred (int x[__restrict]);
13097 if ac_fn_c_try_compile
"$LINENO"; then :
13098 emacs_cv_c_restrict_arr
=yes
13100 emacs_cv_c_restrict_arr
=no
13102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13105 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13106 if test "$emacs_cv_c_restrict_arr" = yes; then
13108 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13114 # Set up the CFLAGS for real compilation, so we can substitute it.
13115 CFLAGS
="$REAL_CFLAGS"
13116 CPPFLAGS
="$REAL_CPPFLAGS"
13118 #### Find out which version of Emacs this is.
13119 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13120 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13121 if test x
"${version}" = x
; then
13122 as_fn_error
"can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13124 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13126 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13129 ### Specify what sort of things we'll be editing into Makefile and config.h.
13130 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13175 cat >>confdefs.h <<_ACEOF
13176 #define EMACS_CONFIGURATION "${canonical}"
13180 cat >>confdefs.h <<_ACEOF
13181 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13185 cat >>confdefs.h <<_ACEOF
13186 #define config_machfile "${machfile}"
13190 cat >>confdefs.h <<_ACEOF
13191 #define config_opsysfile "${opsysfile}"
13195 cat >>confdefs.h <<_ACEOF
13196 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13200 cat >>confdefs.h <<_ACEOF
13201 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
13205 cat >>confdefs.h <<_ACEOF
13206 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13210 cat >>confdefs.h <<_ACEOF
13211 #define UNEXEC_SRC ${UNEXEC_SRC}
13215 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13217 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13220 if test "${USE_X_TOOLKIT}" != "none" ; then
13222 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13224 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13226 $as_echo "#define USE_LUCID 1" >>confdefs.h
13228 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13230 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13234 if test "${HAVE_X11}" = "yes" ; then
13236 $as_echo "#define HAVE_X11 1" >>confdefs.h
13239 if test "${HAVE_MENUS}" = "yes" ; then
13241 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13244 if test "${GNU_MALLOC}" = "yes" ; then
13246 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13249 if test "${REL_ALLOC}" = "yes" ; then
13251 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13258 #### Report on what we decided to do.
13259 #### Report GTK as a toolkit, even if it doesn't use Xt.
13260 #### It makes printing result more understandable as using GTK sets
13261 #### toolkit_scroll_bars to yes by default.
13262 if test "${HAVE_GTK}" = "yes"; then
13267 Configured for \`${canonical}'.
13269 Where should the build process find the source code? ${srcdir}
13270 What operating system and machine description files should Emacs use?
13271 \`${opsysfile}' and \`${machfile}'
13272 What compiler should emacs be built with? ${CC} ${CFLAGS}
13273 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13274 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13275 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13276 What window system should Emacs use? ${window_system}
13277 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13279 if test -n "${x_includes}"; then
13280 echo " Where do we find X Windows header files? ${x_includes}"
13282 echo " Where do we find X Windows header files? Standard dirs"
13284 if test -n "${x_libraries}"; then
13285 echo " Where do we find X Windows libraries? ${x_libraries}"
13287 echo " Where do we find X Windows libraries? Standard dirs"
13290 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13291 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13292 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13293 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13294 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
13295 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13296 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13297 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13298 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13299 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13301 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13302 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13303 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13304 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13306 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13309 if test $USE_XASSERTS = yes; then
13310 echo " Compiling with asserts turned on."
13311 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
13316 if test "$HAVE_NS" = "yes"; then
13318 echo "You must run \"make install\" in order to test the built application.
13319 The installed application will go to nextstep/Emacs.app and can be
13320 run or moved from there."
13321 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13322 echo "The application will be fully self-contained."
13324 echo "The lisp resources for the application will be installed under ${prefix}.
13325 You may need to run \"make install\" with sudo. The application will fail
13326 to run if these resources are not installed."
13331 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13332 echo "D-Bus integration has been tested for GNU/Linux only."
13337 # Remove any trailing slashes in these variables.
13338 test "${prefix}" != NONE
&&
13339 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13340 test "${exec_prefix}" != NONE
&&
13341 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13343 # Now get this: Some word that is part of the ${srcdir} directory name
13344 # or the ${configuration} value might, just might, happen to be an
13345 # identifier like `sun4' or `i386' or something, and be predefined by
13346 # the C preprocessor to some helpful value like 1, or maybe the empty
13347 # string. Needless to say consequent macro substitutions are less
13348 # than conducive to the makefile finding the correct directory.
13349 cpp_undefs
="`echo $srcdir $configuration $canonical |
13350 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13351 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13353 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13354 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13355 ## from Makefile.c can correctly provide the arg `-traditional' to the
13358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "yes..yes" >/dev
/null
2>&1; then :
13364 CPP_NEED_TRADITIONAL
=no
13366 CPP_NEED_TRADITIONAL
=yes
13371 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13373 ac_config_commands
="$ac_config_commands default"
13375 cat >confcache
<<\_ACEOF
13376 # This file is a shell script that caches the results of configure
13377 # tests run on this system so they can be shared between configure
13378 # scripts and configure runs, see configure's option --config-cache.
13379 # It is not useful on other systems. If it contains results you don't
13380 # want to keep, you may remove or edit it.
13382 # config.status only pays attention to the cache file if you give it
13383 # the --recheck option to rerun configure.
13385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13387 # following values.
13391 # The following way of writing the cache mishandles newlines in values,
13392 # but we know of no workaround that is simple, portable, and efficient.
13393 # So, we kill variables containing newlines.
13394 # Ultrix sh set writes to stderr and can't be redirected directly,
13395 # and sets the high bit in the cache file unless we assign to the vars.
13397 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13398 eval ac_val
=\$
$ac_var
13402 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13406 _ | IFS | as_nl
) ;; #(
13407 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13408 *) { eval $ac_var=; unset $ac_var;} ;;
13414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13415 *${as_nl}ac_space
=\
*)
13416 # `set' does not quote correctly, so add quotes: double-quote
13417 # substitution turns \\\\ into \\, and sed turns \\ into \.
13420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13423 # `set' quotes correctly as required by POSIX, so do not add quotes.
13424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13437 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13438 if test -w "$cache_file"; then
13439 test "x$cache_file" != "x/dev/null" &&
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13441 $as_echo "$as_me: updating cache $cache_file" >&6;}
13442 cat confcache
>$cache_file
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13450 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13451 # Let make expand exec_prefix.
13452 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13454 DEFS
=-DHAVE_CONFIG_H
13458 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13459 # 1. Remove the extension, and $U if already installed.
13460 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13461 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13463 # will be set to the directory where LIBOBJS objects are built.
13464 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13465 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13467 LIBOBJS
=$ac_libobjs
13469 LTLIBOBJS
=$ac_ltlibobjs
13473 : ${CONFIG_STATUS=./config.status}
13475 ac_clean_files_save
=$ac_clean_files
13476 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13482 # Generated by $as_me.
13483 # Run this file to recreate the current configuration.
13484 # Compiler output produced by configure, useful for debugging
13485 # configure, is in config.log if it exists.
13488 ac_cs_recheck=false
13491 SHELL=\${CONFIG_SHELL-$SHELL}
13494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13495 ## -------------------- ##
13496 ## M4sh Initialization. ##
13497 ## -------------------- ##
13499 # Be more Bourne compatible
13500 DUALCASE
=1; export DUALCASE
# for MKS sh
13501 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13505 # is contrary to our usage. Disable this feature.
13506 alias -g '${1+"$@"}'='"$@"'
13507 setopt NO_GLOB_SUBST
13509 case `(set -o) 2>/dev/null` in #(
13521 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13522 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13525 # Prefer a ksh shell builtin over an external printf program on Solaris,
13526 # but without wasting forks for bash or zsh.
13527 if test -z "$BASH_VERSION$ZSH_VERSION" \
13528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13529 as_echo='print
-r --'
13530 as_echo_n='print
-rn --'
13531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='printf %s
\n'
13533 as_echo_n='printf %s
'
13535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13536 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13537 as_echo_n='/usr
/ucb
/echo -n'
13539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13540 as_echo_n_body='eval
13544 expr "X$arg" : "X\\(.*\\)$as_nl";
13545 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13547 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13549 export as_echo_n_body
13550 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13552 export as_echo_body
13553 as_echo='sh
-c $as_echo_body as_echo
'
13556 # The user is always right.
13557 if test "${PATH_SEPARATOR+set}" != set; then
13559 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13560 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13567 # We need space, tab and new line, in precisely that order. Quoting is
13568 # there to prevent editors from complaining about space-tab.
13569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13570 # splitting by setting IFS to empty value.)
13573 # Find who we are. Look in the path if we contain no directory separator.
13575 *[\\/]* ) as_myself=$0 ;;
13576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13580 test -z "$as_dir" && as_dir=.
13581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13587 # We did not find ourselves, most probably we were run as `sh COMMAND'
13588 # in which case we are not to be found in the path.
13589 if test "x$as_myself" = x
; then
13592 if test ! -f "$as_myself"; then
13593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13597 # Unset variables that we do not need and which cause bugs (e.g. in
13598 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13599 # suppresses any "Segmentation fault" message there. '((' could
13600 # trigger a bug in pdksh 5.2.14.
13601 for as_var
in BASH_ENV ENV MAIL MAILPATH
13602 do eval test x\
${$as_var+set} = xset \
13603 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13616 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13619 # as_fn_error ERROR [LINENO LOG_FD]
13620 # ---------------------------------
13621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13623 # script with status $?, using 1 if that was 0.
13626 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13628 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13631 $as_echo "$as_me: error: $1" >&2
13632 as_fn_exit
$as_status
13636 # as_fn_set_status STATUS
13637 # -----------------------
13638 # Set $? to STATUS, without forking.
13639 as_fn_set_status
()
13642 } # as_fn_set_status
13644 # as_fn_exit STATUS
13645 # -----------------
13646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13650 as_fn_set_status
$1
13656 # Portably unset VAR.
13659 { eval $1=; unset $1;}
13661 as_unset
=as_fn_unset
13662 # as_fn_append VAR VALUE
13663 # ----------------------
13664 # Append the text in VALUE to the end of the definition contained in VAR. Take
13665 # advantage of any shell optimizations that allow amortized linear growth over
13666 # repeated appends, instead of the typical quadratic growth present in naive
13668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13669 eval 'as_fn_append ()
13680 # as_fn_arith ARG...
13681 # ------------------
13682 # Perform arithmetic evaluation on the ARGs, and store the result in the
13683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13684 # must be portable across $(()) and expr.
13685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13686 eval 'as_fn_arith ()
13693 as_val
=`expr "$@" || test $? -eq 1`
13698 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13699 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13705 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13706 as_basename
=basename
13711 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13717 as_me
=`$as_basename -- "$0" ||
13718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13719 X"$0" : 'X\(//\)$' \| \
13720 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13722 sed '/^.*\/\([^/][^/]*\)\/*$/{
13736 # Avoid depending upon Character Ranges.
13737 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13738 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13739 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13740 as_cr_digits
='0123456789'
13741 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13743 ECHO_C
= ECHO_N
= ECHO_T
=
13744 case `echo -n x` in #(((((
13746 case `echo 'xy\c'` in
13747 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13749 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13756 rm -f conf$$ conf$$.exe conf$$.
file
13757 if test -d conf$$.dir
; then
13758 rm -f conf$$.dir
/conf$$.
file
13761 mkdir conf$$.dir
2>/dev
/null
13763 if (echo >conf$$.
file) 2>/dev
/null
; then
13764 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13766 # ... but there are two gotchas:
13767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13769 # In both cases, we have to default to `cp -p'.
13770 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13772 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13780 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13781 rmdir conf$$.dir
2>/dev
/null
13786 # Create "$as_dir" as a directory, including parents if necessary.
13791 -*) as_dir
=.
/$as_dir;;
13793 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13797 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13798 *) as_qdir
=$as_dir;;
13800 as_dirs
="'$as_qdir' $as_dirs"
13801 as_dir
=`$as_dirname -- "$as_dir" ||
13802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$as_dir" : 'X\(//\)[^/]' \| \
13804 X"$as_dir" : 'X\(//\)$' \| \
13805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13806 $as_echo X"$as_dir" |
13807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13811 /^X\(\/\/\)[^/].*/{
13824 test -d "$as_dir" && break
13826 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13827 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13831 if mkdir
-p .
2>/dev
/null
; then
13832 as_mkdir_p
='mkdir -p "$as_dir"'
13834 test -d .
/-p && rmdir .
/-p
13838 if test -x / >/dev
/null
2>&1; then
13839 as_test_x
='test -x'
13841 if ls -dL / >/dev
/null
2>&1; then
13848 if test -d "$1"; then
13854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13855 ???[sx]*):;;*)false;;esac;fi
13859 as_executable_p
=$as_test_x
13861 # Sed expression to map a string onto a valid CPP name.
13862 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13864 # Sed expression to map a string onto a valid variable name.
13865 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13869 ## ----------------------------------- ##
13870 ## Main body of $CONFIG_STATUS script. ##
13871 ## ----------------------------------- ##
13873 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13876 # Save the log message, to keep $0 and so on meaningful, and to
13877 # report actual input values of CONFIG_FILES etc. instead of their
13878 # values after options handling.
13880 This file was extended by emacs $as_me 24.0.50, which was
13881 generated by GNU Autoconf 2.64. Invocation command line was
13883 CONFIG_FILES = $CONFIG_FILES
13884 CONFIG_HEADERS = $CONFIG_HEADERS
13885 CONFIG_LINKS = $CONFIG_LINKS
13886 CONFIG_COMMANDS = $CONFIG_COMMANDS
13889 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13894 case $ac_config_files in *"
13895 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13898 case $ac_config_headers in *"
13899 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 # Files that config.status was made for.
13905 config_files="$ac_config_files"
13906 config_headers="$ac_config_headers"
13907 config_commands="$ac_config_commands"
13911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13913 \`$as_me' instantiates files and other configuration actions
13914 from templates according to the current configuration. Unless the files
13915 and actions are specified as TAGs, all are instantiated by default.
13917 Usage: $0 [OPTION]... [TAG]...
13919 -h, --help print this help, then exit
13920 -V, --version print version number and configuration settings, then exit
13921 -q, --quiet, --silent
13922 do not print progress messages
13923 -d, --debug don't remove temporary files
13924 --recheck update $as_me by reconfiguring in the same conditions
13925 --file=FILE[:TEMPLATE]
13926 instantiate the configuration file FILE
13927 --header=FILE[:TEMPLATE]
13928 instantiate the configuration header FILE
13930 Configuration files:
13933 Configuration headers:
13936 Configuration commands:
13939 Report bugs to the package provider."
13942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13944 emacs config.status 24.0.50
13945 configured by $0, generated by GNU Autoconf 2.64,
13946 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13948 Copyright (C) 2009 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it."
13955 test -n "\$AWK" || AWK=awk
13958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13959 # The default lists apply if the user does not specify any file.
13965 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13966 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13977 # Handling of the options.
13978 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13980 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13981 $as_echo "$ac_cs_version"; exit ;;
13982 --debug |
--debu |
--deb |
--de |
--d |
-d )
13984 --file |
--fil |
--fi |
--f )
13987 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13989 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13990 ac_need_defaults
=false
;;
13991 --header |
--heade |
--head |
--hea )
13994 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13996 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13997 ac_need_defaults
=false
;;
13999 # Conflict between --help and --header
14000 as_fn_error
"ambiguous option: \`$1'
14001 Try \`$0 --help' for more information.";;
14002 --help |
--hel |
-h )
14003 $as_echo "$ac_cs_usage"; exit ;;
14004 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14005 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14008 # This is an error.
14009 -*) as_fn_error
"unrecognized option: \`$1'
14010 Try \`$0 --help' for more information." ;;
14012 *) as_fn_append ac_config_targets
" $1"
14013 ac_need_defaults
=false
;;
14019 ac_configure_extra_args
=
14021 if $ac_cs_silent; then
14023 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14028 if \$ac_cs_recheck; then
14029 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14032 CONFIG_SHELL='$SHELL'
14033 export CONFIG_SHELL
14038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14043 ## Running $as_me. ##
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14059 # Handling of arguments.
14060 for ac_config_target
in $ac_config_targets
14062 case $ac_config_target in
14063 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14064 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14065 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14066 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14067 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14068 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14069 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14070 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14071 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14072 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14073 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14074 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14075 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14077 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14082 # If the user did not use the arguments to specify the items to instantiate,
14083 # then the envvar interface is used. Set only those that are not.
14084 # We use the long form for the default assignment because of an extremely
14085 # bizarre bug on SunOS 4.1.3.
14086 if $ac_need_defaults; then
14087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14092 # Have a temporary directory for convenience. Make it in the build tree
14093 # simply because there is no reason against having it here, and in addition,
14094 # creating and moving files from /tmp can sometimes cause problems.
14095 # Hook for its removal unless debugging.
14096 # Note that there is a small window in which the directory will not be cleaned:
14097 # after its creation but before its name has been assigned to `$tmp'.
14101 trap 'exit_status=$?
14102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14104 trap 'as_fn_exit 1' 1 2 13 15
14106 # Create a (secure) tmp directory for tmp files.
14109 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14110 test -n "$tmp" && test -d "$tmp"
14113 tmp
=.
/conf$$
-$RANDOM
14114 (umask 077 && mkdir
"$tmp")
14115 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14117 # Set up the scripts for CONFIG_FILES section.
14118 # No need to generate them if there are no CONFIG_FILES.
14119 # This happens for instance with `./config.status config.h'.
14120 if test -n "$CONFIG_FILES"; then
14123 ac_cr
=`echo X | tr X '\015'`
14124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14125 # But we know of no other shell where ac_cr would be empty at this
14126 # point, so we can use a bashism as a fallback.
14127 if test "x$ac_cr" = x
; then
14128 eval ac_cr
=\$
\'\\r
\'
14130 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14134 ac_cs_awk_cr
=$ac_cr
14137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14142 echo "cat >conf$$subs.awk <<_ACEOF" &&
14143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14145 } >conf$$subs.sh ||
14146 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14149 for ac_last_try in false false false false false :; do
14150 . ./conf$$subs.sh ||
14151 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14153 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14154 if test $ac_delim_n = $ac_delim_num; then
14156 elif $ac_last_try; then
14157 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14159 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14162 rm -f conf$$subs.sh
14164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14165 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14169 s/^/S["/; s
/!.
*/"]=/
14179 s/\(.\{148\}\).*/\1/
14181 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14186 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14193 s/\(.\{148\}\).*/\1/
14195 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14199 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14204 ' <conf$$subs.awk | sed '
14209 ' >>$CONFIG_STATUS || ac_write_fail=1
14210 rm -f conf$$subs.awk
14211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14213 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14214 for (key in S) S_is_set[key] = 1
14220 nfields = split(line, field, "@
")
14222 len = length(field[1])
14223 for (i = 2; i < nfields; i++) {
14225 keylen = length(key)
14226 if (S_is_set[key]) {
14228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14229 len += length(value) + length(field[++i])
14240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14241 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14242 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14245 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14246 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14249 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14251 # trailing colons and then remove the whole line if VPATH becomes empty
14252 # (actually we leave an empty line to preserve line numbers).
14253 if test "x
$srcdir" = x.; then
14254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14255 s/:*\$(srcdir):*/:/
14256 s/:*\${srcdir}:*/:/
14258 s/^\([^=]*=[ ]*\):*/\1/
14264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14265 fi # test -n "$CONFIG_FILES"
14267 # Set up the scripts for CONFIG_HEADERS section.
14268 # No need to generate them if there are no CONFIG_HEADERS.
14269 # This happens for instance with `./config.status Makefile'.
14270 if test -n "$CONFIG_HEADERS"; then
14271 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14275 # Transform confdefs.h into an awk script `defines.awk', embedded as
14276 # here-document in config.status, that substitutes the proper values into
14277 # config.h.in to produce config.h.
14279 # Create a delimiter string that does not exist in confdefs.h, to ease
14280 # handling of long lines.
14282 for ac_last_try in false false :; do
14283 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14284 if test -z "$ac_t"; then
14286 elif $ac_last_try; then
14287 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14289 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14293 # For the awk script, D is an array of macro values keyed by name,
14294 # likewise P contains macro parameters if any. Preserve backslash
14295 # newline sequences.
14297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14299 s/.\{148\}/&'"$ac_delim"'/g
14302 s/^[ ]*#[ ]*define[ ][ ]*/ /
14309 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14311 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14316 D["\
1"]=" \
3\\\\\\n
"\\/p
14318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14323 s/.\{148\}/&'"$ac_delim"'/g
14328 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14331 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14333 ' <confdefs.h | sed '
14334 s/'"$ac_delim"'/"\\\
14335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338 for (key in D) D_is_set[key] = 1
14341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14343 split(line, arg, " ")
14344 if (arg[1] == "#") {
14348 defundef
= substr
(arg
[1], 2)
14351 split(mac1
, mac2
, "(") #)
14353 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14354 if (D_is_set
[macro
]) {
14355 # Preserve the white space surrounding the "#".
14356 print prefix
"define", macro P
[macro
] D
[macro
]
14359 # Replace #undef with comments. This is necessary, for example,
14360 # in the case of _POSIX_SOURCE, which is predefined and required
14361 # on some systems where configure will not decide to define it.
14362 if (defundef
== "undef") {
14363 print
"/*", prefix defundef
, macro
, "*/"
14371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14372 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14373 fi # test -n "$CONFIG_HEADERS"
14376 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14381 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14383 case $ac_mode$ac_tag in
14385 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14386 :[FH
]-) ac_tag
=-:-;;
14387 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14404 -) ac_f
="$tmp/stdin";;
14405 *) # Look for the file first in the build tree, then in the source tree
14406 # (if the path is not absolute). The absolute path cannot be DOS-style,
14407 # because $ac_f cannot contain `:'.
14411 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14413 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14415 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14416 as_fn_append ac_file_inputs
" '$ac_f'"
14419 # Let's still pretend it is `configure' which instantiates (i.e., don't
14420 # use $as_me), people would be surprised to read:
14421 # /* config.h. Generated by config.status. */
14422 configure_input
='Generated from '`
14423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14425 if test x
"$ac_file" != x-
; then
14426 configure_input
="$ac_file. $configure_input"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14428 $as_echo "$as_me: creating $ac_file" >&6;}
14430 # Neutralize special characters interpreted by sed in replacement strings.
14431 case $configure_input in #(
14432 *\
&* |
*\|
* |
*\\* )
14433 ac_sed_conf_input
=`$as_echo "$configure_input" |
14434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14435 *) ac_sed_conf_input
=$configure_input;;
14439 *:-:* |
*:-) cat >"$tmp/stdin" \
14440 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14445 ac_dir
=`$as_dirname -- "$ac_file" ||
14446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14447 X"$ac_file" : 'X\(//\)[^/]' \| \
14448 X"$ac_file" : 'X\(//\)$' \| \
14449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14450 $as_echo X"$ac_file" |
14451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14455 /^X\(\/\/\)[^/].*/{
14468 as_dir
="$ac_dir"; as_fn_mkdir_p
14472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14475 # A ".." for each directory in $ac_dir_suffix.
14476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14477 case $ac_top_builddir_sub in
14478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14482 ac_abs_top_builddir
=$ac_pwd
14483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14484 # for backward compatibility:
14485 ac_top_builddir
=$ac_top_build_prefix
14488 .
) # We are building in place.
14490 ac_top_srcdir
=$ac_top_builddir_sub
14491 ac_abs_top_srcdir
=$ac_pwd ;;
14492 [\\/]* | ?
:[\\/]* ) # Absolute name.
14493 ac_srcdir
=$srcdir$ac_dir_suffix;
14494 ac_top_srcdir
=$srcdir
14495 ac_abs_top_srcdir
=$srcdir ;;
14496 *) # Relative name.
14497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14511 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14512 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14517 # If the template does not know about datarootdir, expand it.
14518 # FIXME: This hack should be removed a few years after 2.60.
14519 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14531 *datarootdir
*) ac_datarootdir_seen
=yes;;
14532 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14537 ac_datarootdir_hack='
14538 s&@datadir@&$datadir&g
14539 s&@docdir@&$docdir&g
14540 s&@infodir@&$infodir&g
14541 s&@localedir@&$localedir&g
14542 s&@mandir@&$mandir&g
14543 s&\\\${datarootdir}&$datarootdir&g' ;;
14547 # Neutralize VPATH when `$srcdir' = `.'.
14548 # Shell code in configure.ac might set extrasub.
14549 # FIXME: do we really want to maintain this feature?
14550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551 ac_sed_extra="$ac_vpsub
14554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14556 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14557 s|@configure_input@|
$ac_sed_conf_input|
;t t
14558 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14559 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14560 s
&@srcdir@
&$ac_srcdir&;t t
14561 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14562 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14563 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14564 s
&@builddir@
&$ac_builddir&;t t
14565 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14566 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14567 s
&@INSTALL@
&$ac_INSTALL&;t t
14568 $ac_datarootdir_hack
14570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14571 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14577 which seems to be undefined. Please make sure it is defined." >&5
14578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14579 which seems to be undefined. Please make sure it is defined." >&2;}
14583 -) cat "$tmp/out" && rm -f "$tmp/out";;
14584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5
14592 if test x"$ac_file" != x-; then
14594 $as_echo "/* $configure_input */" \
14595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14596 } >"$tmp/config.h" \
14597 || as_fn_error "could not create $ac_file" "$LINENO" 5
14598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14603 mv "$tmp/config.h" "$ac_file" \
14604 || as_fn_error "could not create $ac_file" "$LINENO" 5
14607 $as_echo "/* $configure_input */" \
14608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14609 || as_fn_error "could not create -" "$LINENO" 5
14613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14614 $as_echo "$as_me: executing $ac_file commands" >&6;}
14619 case $ac_file$ac_mode in
14622 ### Make the necessary directories, if they don't exist.
14623 for dir
in etc lisp
; do
14624 test -d ${dir} || mkdir
${dir}
14627 # Build src/Makefile from ${srcdir}/src/Makefile.c
14628 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
14629 # This must be done after src/config.h is built, since we rely on that file.
14631 echo creating src
/epaths.h
14632 ${MAKE-make} epaths-force
14634 # As of 2000-11-19, newest development versions of GNU cpp preprocess
14635 # `..' to `. .' unless invoked with -traditional
14637 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
14638 CPPFLAGS
="$CPPFLAGS -traditional"
14641 echo creating lib-src
/Makefile
14643 rm -f junk.c junk1.c junk2.c
14644 sed -e '/start of cpp stuff/q' \
14645 < Makefile.c
> junk1.c
14646 sed -e '1,/start of cpp stuff/d'\
14647 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14648 < Makefile.c
> junk.c
14649 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14650 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14651 cat junk1.c junk2.c
> Makefile.new
14652 rm -f junk.c junk1.c junk2.c
14653 chmod 444 Makefile.new
14654 mv -f Makefile.new Makefile
14657 echo creating src
/Makefile
14659 rm -f junk.c junk1.c junk2.c
14660 sed -e '/start of cpp stuff/q' \
14661 < Makefile.c
> junk1.c
14662 sed -e '1,/start of cpp stuff/d'\
14663 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
14664 < Makefile.c
> junk.c
14665 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
14666 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
14667 cat junk1.c junk2.c
> Makefile.new
14668 rm -f junk.c junk1.c junk2.c
14669 chmod 444 Makefile.new
14670 mv -f Makefile.new Makefile
14673 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
14674 echo creating src
/.gdbinit
14675 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
14686 ac_clean_files
=$ac_clean_files_save
14688 test $ac_write_fail = 0 ||
14689 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14692 # configure is writing to config.log, and then calls config.status.
14693 # config.status does its own redirection, appending to config.log.
14694 # Unfortunately, on DOS this fails, as config.log is still kept open
14695 # by configure, so config.status won't be able to write to it; its
14696 # output is simply discarded. So we exec the FD to /dev/null,
14697 # effectively closing config.log, so it can be properly (re)opened and
14698 # appended to by config.status. When coming back to configure, we
14699 # need to make the FD available again.
14700 if test "$no_create" != yes; then
14702 ac_config_status_args
=
14703 test "$silent" = yes &&
14704 ac_config_status_args
="$ac_config_status_args --quiet"
14706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14709 # would make configure fail if this is the last instruction.
14710 $ac_cs_success || as_fn_exit $?
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}