2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
551 PACKAGE_TARNAME
='emacs'
552 PACKAGE_VERSION
='24.0.50'
553 PACKAGE_STRING
='emacs 24.0.50'
557 ac_unique_file
="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_config_libobj_dir
=src
597 ac_subst_vars
='LTLIBOBJS
602 LD_SWITCH_SYSTEM_EXTRA
603 LD_SWITCH_SYSTEM_TEMACS
618 GNUSTEP_SYSTEM_LIBRARIES
619 GNUSTEP_SYSTEM_HEADERS
636 x_default_search_path
699 LD_SWITCH_X_SITE_AUX_RPATH
768 program_transform_name
781 enable_option_checking
801 with_toolkit_scroll_bars
815 enable_ns_self_contained
817 enable_maintainer_mode
825 ac_precious_vars
='build_alias
837 # Initialize some variables set by options.
839 ac_init_version
=false
840 ac_unrecognized_opts
=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
851 program_transform_name
=s
,x
,x
,
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir
='${exec_prefix}/bin'
866 sbindir
='${exec_prefix}/sbin'
867 libexecdir
='${exec_prefix}/libexec'
868 datarootdir
='${prefix}/share'
869 datadir
='${datarootdir}'
870 sysconfdir
='${prefix}/etc'
871 sharedstatedir
='${prefix}/com'
872 localstatedir
='${prefix}/var'
873 includedir
='${prefix}/include'
874 oldincludedir
='/usr/include'
875 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir
='${datarootdir}/info'
881 libdir
='${exec_prefix}/lib'
882 localedir
='${datarootdir}/locale'
883 mandir
='${datarootdir}/man'
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\
$ac_option
897 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
907 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
909 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
912 -build |
--build |
--buil |
--bui |
--bu)
913 ac_prev
=build_alias
;;
914 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
915 build_alias
=$ac_optarg ;;
917 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
918 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
919 ac_prev
=cache_file
;;
920 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
921 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
922 cache_file
=$ac_optarg ;;
925 cache_file
=config.cache
;;
927 -datadir |
--datadir |
--datadi |
--datad)
929 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
930 datadir
=$ac_optarg ;;
932 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
933 |
--dataroo |
--dataro |
--datar)
934 ac_prev
=datarootdir
;;
935 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
936 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
937 datarootdir
=$ac_optarg ;;
939 -disable-* |
--disable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=\
$ac_optarg ;;
981 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
982 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
983 |
--exec |
--exe |
--ex)
984 ac_prev
=exec_prefix
;;
985 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
986 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
987 |
--exec=* |
--exe=* |
--ex=*)
988 exec_prefix
=$ac_optarg ;;
990 -gas |
--gas |
--ga |
--g)
991 # Obsolete; use --with-gas.
994 -help |
--help |
--hel |
--he |
-h)
996 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
997 ac_init_help
=recursive
;;
998 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
999 ac_init_help
=short
;;
1001 -host |
--host |
--hos |
--ho)
1002 ac_prev
=host_alias
;;
1003 -host=* |
--host=* |
--hos=* |
--ho=*)
1004 host_alias
=$ac_optarg ;;
1006 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1008 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1010 htmldir
=$ac_optarg ;;
1012 -includedir |
--includedir |
--includedi |
--included |
--include \
1013 |
--includ |
--inclu |
--incl |
--inc)
1014 ac_prev
=includedir
;;
1015 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1016 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1017 includedir
=$ac_optarg ;;
1019 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1021 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1022 infodir
=$ac_optarg ;;
1024 -libdir |
--libdir |
--libdi |
--libd)
1026 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1027 libdir
=$ac_optarg ;;
1029 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1030 |
--libexe |
--libex |
--libe)
1031 ac_prev
=libexecdir
;;
1032 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1033 |
--libexe=* |
--libex=* |
--libe=*)
1034 libexecdir
=$ac_optarg ;;
1036 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1037 ac_prev
=localedir
;;
1038 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1039 localedir
=$ac_optarg ;;
1041 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1042 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1043 ac_prev
=localstatedir
;;
1044 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1045 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1046 localstatedir
=$ac_optarg ;;
1048 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1050 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1051 mandir
=$ac_optarg ;;
1053 -nfp |
--nfp |
--nf)
1054 # Obsolete; use --without-fp.
1057 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1058 |
--no-cr |
--no-c |
-n)
1061 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1062 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1065 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1066 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1067 |
--oldin |
--oldi |
--old |
--ol |
--o)
1068 ac_prev
=oldincludedir
;;
1069 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1070 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1071 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1072 oldincludedir
=$ac_optarg ;;
1074 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1076 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1077 prefix
=$ac_optarg ;;
1079 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1080 |
--program-pre |
--program-pr |
--program-p)
1081 ac_prev
=program_prefix
;;
1082 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1083 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1084 program_prefix
=$ac_optarg ;;
1086 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1087 |
--program-suf |
--program-su |
--program-s)
1088 ac_prev
=program_suffix
;;
1089 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1090 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1091 program_suffix
=$ac_optarg ;;
1093 -program-transform-name |
--program-transform-name \
1094 |
--program-transform-nam |
--program-transform-na \
1095 |
--program-transform-n |
--program-transform- \
1096 |
--program-transform |
--program-transfor \
1097 |
--program-transfo |
--program-transf \
1098 |
--program-trans |
--program-tran \
1099 |
--progr-tra |
--program-tr |
--program-t)
1100 ac_prev
=program_transform_name
;;
1101 -program-transform-name=* |
--program-transform-name=* \
1102 |
--program-transform-nam=* |
--program-transform-na=* \
1103 |
--program-transform-n=* |
--program-transform-=* \
1104 |
--program-transform=* |
--program-transfor=* \
1105 |
--program-transfo=* |
--program-transf=* \
1106 |
--program-trans=* |
--program-tran=* \
1107 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1108 program_transform_name
=$ac_optarg ;;
1110 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1112 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1113 pdfdir
=$ac_optarg ;;
1115 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1117 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1121 |
-silent |
--silent |
--silen |
--sile |
--sil)
1124 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1126 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1128 sbindir
=$ac_optarg ;;
1130 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1131 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1132 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1134 ac_prev
=sharedstatedir
;;
1135 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1136 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1137 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1139 sharedstatedir
=$ac_optarg ;;
1141 -site |
--site |
--sit)
1143 -site=* |
--site=* |
--sit=*)
1146 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1148 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1149 srcdir
=$ac_optarg ;;
1151 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1152 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1153 ac_prev
=sysconfdir
;;
1154 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1155 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1156 sysconfdir
=$ac_optarg ;;
1158 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1159 ac_prev
=target_alias
;;
1160 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1161 target_alias
=$ac_optarg ;;
1163 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1166 -version |
--version |
--versio |
--versi |
--vers |
-V)
1167 ac_init_version
=: ;;
1170 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error
"invalid package name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval with_
$ac_useropt=\
$ac_optarg ;;
1185 -without-* |
--without-*)
1186 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1189 as_fn_error
"invalid package name: $ac_useropt"
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=no
;;
1202 # Obsolete; use --with-x.
1205 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1206 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1207 ac_prev
=x_includes
;;
1208 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1209 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1210 x_includes
=$ac_optarg ;;
1212 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1213 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1214 ac_prev
=x_libraries
;;
1215 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1216 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1217 x_libraries
=$ac_optarg ;;
1219 -*) as_fn_error
"unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1224 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1228 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\
$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 if test -n "$ac_prev"; then
1245 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error
"missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val
=\$
$ac_var
1264 # Remove trailing slashes.
1267 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\
$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$
]* | ?
:[\\/]* ) continue;;
1273 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1275 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target
=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x
; then
1287 if test "x$build_alias" = x
; then
1288 cross_compiling
=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1299 test "$silent" = yes && exec 6>/dev
/null
1302 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di
=`ls -di .` &&
1304 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error
"working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error
"pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted
=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir
=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted
=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1346 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1360 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 for ac_var
in $ac_precious_vars; do
1363 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1365 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1376 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1434 --program-prefix=PREFIX prepend PREFIX to installed program names
1435 --program-suffix=SUFFIX append SUFFIX to installed program names
1436 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1439 --x-includes=DIR X include files are
in DIR
1440 --x-libraries=DIR X library files are
in DIR
1443 --build=BUILD configure
for building on BUILD
[guessed
]
1444 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1455 --disable-option-checking ignore unrecognized
--enable/--with options
1456 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1457 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1458 --disable-ns-self-contained
1459 disable self contained build under NeXTstep
1460 --enable-asserts compile code with asserts enabled
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful
(and
1463 sometimes confusing
) to the casual installer
1464 --enable-locallisppath=PATH
1465 directories Emacs should search
for lisp files
1466 specific to this site
1467 --enable-checking[=LIST
]
1468 enable expensive run-time checks. With LIST
, enable
1469 only specific categories of checks. Categories are
:
1470 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1471 stringfreelist
, xmallocoverrun
, conslist
1472 --enable-profiling build emacs with profiling support. This might not
1473 work on all platforms
1474 --enable-autodepend automatically generate dependencies to .h-files.
1475 Requires GNU Make and Gcc. Enabled
if GNU Make and
1477 --disable-largefile omit support
for large files
1480 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1481 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1482 --without-pop don
't support POP mail retrieval with movemail
1483 --with-kerberos support Kerberos-authenticated POP
1484 --with-kerberos5 support Kerberos version 5 authenticated POP
1485 --with-hesiod support Hesiod to get the POP server host
1486 --with-mmdf support MMDF mailboxes
1487 --with-mail-unlink unlink, rather than empty, mail spool after reading
1488 --with-mailhost=HOSTNAME
1489 string giving default POP mail host
1490 --without-sound don't compile with sound support
1491 --without-sync-input process async input synchronously
1492 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1494 --without-xpm don
't compile with XPM image support
1495 --without-jpeg don't compile with JPEG image support
1496 --without-tiff don
't compile with TIFF image support
1497 --without-gif don't compile with GIF image support
1498 --without-png don
't compile with PNG image support
1499 --without-rsvg don't compile with SVG image support
1500 --without-xft don
't use XFT for anti aliased fonts
1501 --without-libotf don't use libotf
for OpenType font support
1502 --without-m17n-flt don
't use m17n-flt for text shaping
1503 --without-toolkit-scroll-bars
1504 don't use Motif or Xaw3d scroll bars
1505 --without-xaw3d don
't use Xaw3d
1506 --without-xim don't use X11 XIM
1507 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1508 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1510 --without-dbus don't compile with D-Bus support
1511 --without-gconf don
't compile with GConf support
1512 --without-selinux don't compile with SELinux support
1513 --without-makeinfo don
't require makeinfo for building manuals
1515 --with-pkg-config-prog=PATH
1516 path to pkg-config for finding GTK and librsvg
1517 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1518 /usr/lib, or /usr/lib64 on some platforms.
1519 --with-gnustep-conf=PATH
1520 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1521 or /etc/GNUstep/GNUstep.conf
1522 --with-x use the X Window System
1524 Some influential environment variables:
1525 CC C compiler command
1526 CFLAGS C compiler flags
1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1528 nonstandard directory <lib dir>
1529 LIBS libraries to pass to the linker, e.g. -l<library>
1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1531 you have headers in a nonstandard directory <include dir>
1533 XMKMF Path to xmkmf, Makefile generator for X Window System
1535 Use these variables to override the choices made by `configure' or to
help
1536 it to
find libraries and programs with nonstandard names
/locations.
1538 Report bugs to the package provider.
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1552 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1554 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1559 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1562 ac_abs_top_builddir
=$ac_pwd
1563 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir
=$ac_top_build_prefix
1568 .
) # We are building in place.
1570 ac_top_srcdir
=$ac_top_builddir_sub
1571 ac_abs_top_srcdir
=$ac_pwd ;;
1572 [\\/]* | ?
:[\\/]* ) # Absolute name.
1573 ac_srcdir
=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir
=$srcdir
1575 ac_abs_top_srcdir
=$srcdir ;;
1577 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1581 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1583 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1601 emacs configure
24.0.50
1602 generated by GNU Autoconf
2.65
1604 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1605 This configure
script is free software
; the Free Software Foundation
1606 gives unlimited permission to copy
, distribute and modify it.
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile
()
1620 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1621 rm -f conftest.
$ac_objext
1622 if { { ac_try
="$ac_compile"
1624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_c_try_compile
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1663 *) ac_try_echo
=$ac_try;;
1665 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1669 if test -s conftest.err
; then
1670 grep -v '^ *+' conftest.err
>conftest.er1
1671 cat conftest.er1
>&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest
$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 $as_test_x conftest
$ac_exeext
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.
$ac_ext >&5
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1695 as_fn_set_status
$ac_retval
1697 } # ac_fn_c_try_link
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1705 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } >/dev/null && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 as_fn_set_status $ac_retval
1736 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1739 # the include files in INCLUDES and setting the cache variable VAR
1741 ac_fn_c_check_header_mongrel ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746 $as_echo_n "checking for $2... " >&6; }
1747 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1748 $as_echo_n "(cached) " >&6
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1754 # Is the header compilable?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1756 $as_echo_n "checking $2 usability... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 ac_header_compiler=yes
1765 ac_header_compiler=no
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1769 $as_echo "$ac_header_compiler" >&6; }
1771 # Is the header present?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1773 $as_echo_n "checking $2 presence... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1778 if ac_fn_c_try_cpp "$LINENO"; then :
1779 ac_header_preproc=yes
1781 ac_header_preproc=no
1783 rm -f conftest.err conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1785 $as_echo "$ac_header_preproc" >&6; }
1787 # So? What about this header?
1788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1791 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1797 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1799 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1801 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1803 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1813 eval "$3=\$ac_header_compiler"
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_header_mongrel
1823 # ac_fn_c_try_run LINENO
1824 # ----------------------
1825 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1826 # that executables *can* be run.
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_link"
1832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1833 *) ac_try_echo
=$ac_try;;
1835 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_link") 2>&5
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1841 { { case "(($ac_try" in
1842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_try") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; }; }; then :
1853 $as_echo "$as_me: program exited with status $ac_status" >&5
1854 $as_echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1857 ac_retval=$ac_status
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists and can be compiled using the include files in
1868 # INCLUDES, setting the cache variable VAR accordingly.
1869 ac_fn_c_check_header_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_header_compile
1896 # ac_fn_c_check_decl LINENO SYMBOL VAR
1897 # ------------------------------------
1898 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1899 ac_fn_c_check_decl ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1903 $as_echo_n "checking whether $2 is declared... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1921 if ac_fn_c_try_compile "$LINENO"; then :
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_decl
1935 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1936 # ----------------------------------------------
1937 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1938 ac_fn_c_check_header_preproc ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1944 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1955 rm -f conftest.err conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_c_check_header_preproc
1964 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1965 # ----------------------------------------------------
1966 # Tries to find if the field MEMBER exists in type AGGR, after including
1967 # INCLUDES, setting cache variable VAR accordingly.
1968 ac_fn_c_check_member ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1972 $as_echo_n "checking for $2.$3... " >&6; }
1973 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1999 if (sizeof ac_aggr.$3)
2005 if ac_fn_c_try_compile "$LINENO"; then :
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_member
2021 # ac_fn_c_check_func LINENO FUNC VAR
2022 # ----------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_c_check_func ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036 #define $2 innocuous_$2
2038 /* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2044 # include <limits.h>
2046 # include <assert.h>
2051 /* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2058 /* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061 #if defined __stub_$2 || defined __stub___$2
2073 if ac_fn_c_try_link "$LINENO"; then :
2078 rm -f core conftest.err conftest.$ac_objext \
2079 conftest$ac_exeext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_func
2088 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089 # -------------------------------------------
2090 # Tests whether TYPE exists after having included INCLUDES, setting cache
2091 # variable VAR accordingly.
2092 ac_fn_c_check_type ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140 } # ac_fn_c_check_type
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2145 It was created by emacs $as_me 24.0.50, which was
2146 generated by GNU Autoconf 2.65. Invocation command line was
2158 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2159 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2160 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2161 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2162 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2164 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2165 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2167 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2168 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2169 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2170 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2171 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2172 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2173 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2206 ac_must_keep_next=false
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2217 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235 -* ) ac_must_keep_next=true ;;
2238 as_fn_append ac_configure_args " '$ac_arg'"
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log. We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2257 ## ---------------- ##
2258 ## Cache variables. ##
2259 ## ---------------- ##
2262 # The following way of writing the cache mishandles newlines in values,
2264 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2265 eval ac_val=\$$ac_var
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2280 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2295 ## ----------------- ##
2296 ## Output variables. ##
2297 ## ----------------- ##
2300 for ac_var in $ac_subst_vars
2302 eval ac_val=\$$ac_var
2304 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2306 $as_echo "$ac_var='\''$ac_val'\''"
2310 if test -n "$ac_subst_files"; then
2312 ## ------------------- ##
2313 ## File substitutions. ##
2314 ## ------------------- ##
2317 for ac_var in $ac_subst_files
2319 eval ac_val=\$$ac_var
2321 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 $as_echo "$ac_var='\''$ac_val'\''"
2328 if test -s confdefs.h; then
2338 test "$ac_signal" != 0 &&
2339 $as_echo "$as_me: caught signal $ac_signal"
2340 $as_echo "$as_me: exit $exit_status"
2342 rm -f core *.core core.conftest.* &&
2343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2346 for ac_signal in 1 2 13 15; do
2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2351 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2352 rm -f -r conftest* confdefs.h
2354 $as_echo "/* confdefs.h */" > confdefs.h
2356 # Predefined preprocessor variables.
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_NAME "$PACKAGE_NAME"
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_STRING "$PACKAGE_STRING"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_URL "$PACKAGE_URL"
2383 # Let the site file select an alternate cache file if it wants to.
2384 # Prefer an explicitly selected file to automatically selected ones.
2387 if test -n "$CONFIG_SITE"; then
2388 ac_site_file1=$CONFIG_SITE
2389 elif test "x$prefix" != xNONE; then
2390 ac_site_file1=$prefix/share/config.site
2391 ac_site_file2=$prefix/etc/config.site
2393 ac_site_file1=$ac_default_prefix/share/config.site
2394 ac_site_file2=$ac_default_prefix/etc/config.site
2396 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2398 test "x$ac_site_file" = xNONE && continue
2399 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2407 if test -r "$cache_file"; then
2408 # Some versions of bash will fail to source /dev/null (special files
2409 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2410 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412 $as_echo "$as_me: loading cache $cache_file" >&6;}
2414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415 *) . "./$cache_file";;
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420 $as_echo "$as_me: creating cache $cache_file" >&6;}
2424 as_fn_append ac_header_list " stdlib.h"
2425 as_fn_append ac_header_list " unistd.h"
2426 as_fn_append ac_header_list " sys/param.h"
2427 as_fn_append ac_header_list " sys/time.h"
2428 as_fn_append ac_func_list " alarm"
2429 # Check that the precious variables saved in the cache have kept the same
2431 ac_cache_corrupted=false
2432 for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2440 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2444 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x
$ac_old_val`
2451 ac_new_val_w=`echo x
$ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2455 ac_cache_corrupted=:
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2458 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2470 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2479 if $ac_cache_corrupted; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2486 ## -------------------- ##
2487 ## Main body of script. ##
2488 ## -------------------- ##
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2501 test "$program_prefix" != NONE &&
2502 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s
,x
,x
', remove it if useless.
2508 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512 lispdir='${datadir}/emacs
/${version}/lisp
'
2513 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2514 '${datadir}/emacs
/site-lisp
'
2515 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2516 etcdir='${datadir}/emacs
/${version}/etc
'
2517 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2518 docdir='${datadir}/emacs
/${version}/etc
'
2519 gamedir='${localstatedir}/games
/emacs
'
2526 # Check whether --with-pop was given.
2527 if test "${with_pop+set}" = set; then :
2533 if test "$with_pop" = yes; then
2534 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2539 # Check whether --with-kerberos was given.
2540 if test "${with_kerberos+set}" = set; then :
2541 withval=$with_kerberos;
2546 if test "$with_kerberos" != no; then
2547 $as_echo "#define KERBEROS 1" >>confdefs.h
2552 # Check whether --with-kerberos5 was given.
2553 if test "${with_kerberos5+set}" = set; then :
2554 withval=$with_kerberos5;
2559 if test "${with_kerberos5}" != no; then
2560 if test "${with_kerberos}" = no; then
2562 $as_echo "#define KERBEROS 1" >>confdefs.h
2566 $as_echo "#define KERBEROS5 1" >>confdefs.h
2571 # Check whether --with-hesiod was given.
2572 if test "${with_hesiod+set}" = set; then :
2573 withval=$with_hesiod;
2578 if test "$with_hesiod" != no; then
2580 $as_echo "#define HESIOD 1" >>confdefs.h
2585 # Check whether --with-mmdf was given.
2586 if test "${with_mmdf+set}" = set; then :
2592 if test "$with_mmdf" != no; then
2594 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2599 # Check whether --with-mail-unlink was given.
2600 if test "${with_mail_unlink+set}" = set; then :
2601 withval=$with_mail_unlink;
2606 if test "$with_mail_unlink" != no; then
2608 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2613 # Check whether --with-mailhost was given.
2614 if test "${with_mailhost+set}" = set; then :
2615 withval=$with_mailhost;
2616 cat >>confdefs.h <<_ACEOF
2617 #define MAILHOST "$withval"
2624 # Check whether --with-sound was given.
2625 if test "${with_sound+set}" = set; then :
2626 withval=$with_sound;
2633 # Check whether --with-sync-input was given.
2634 if test "${with_sync_input+set}" = set; then :
2635 withval=$with_sync_input;
2640 if test "$with_sync_input" = yes; then
2642 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2647 # Check whether --with-x-toolkit was given.
2648 if test "${with_x_toolkit+set}" = set; then :
2649 withval=$with_x_toolkit; case "${withval}" in
2650 y | ye | yes ) val=gtk ;;
2652 l | lu | luc | luci | lucid ) val=lucid ;;
2653 a | at | ath | athe | athen | athena ) val=athena ;;
2654 m | mo | mot | moti | motif ) val=motif ;;
2655 g | gt | gtk ) val=gtk ;;
2657 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2658 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2659 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" "$LINENO" 5
2668 # Check whether --with-xpm was given.
2669 if test "${with_xpm+set}" = set; then :
2676 # Check whether --with-jpeg was given.
2677 if test "${with_jpeg+set}" = set; then :
2684 # Check whether --with-tiff was given.
2685 if test "${with_tiff+set}" = set; then :
2692 # Check whether --with-gif was given.
2693 if test "${with_gif+set}" = set; then :
2700 # Check whether --with-png was given.
2701 if test "${with_png+set}" = set; then :
2708 # Check whether --with-rsvg was given.
2709 if test "${with_rsvg+set}" = set; then :
2717 # Check whether --with-xft was given.
2718 if test "${with_xft+set}" = set; then :
2725 # Check whether --with-libotf was given.
2726 if test "${with_libotf+set}" = set; then :
2727 withval=$with_libotf;
2733 # Check whether --with-m17n-flt was given.
2734 if test "${with_m17n_flt+set}" = set; then :
2735 withval=$with_m17n_flt;
2742 # Check whether --with-toolkit-scroll-bars was given.
2743 if test "${with_toolkit_scroll_bars+set}" = set; then :
2744 withval=$with_toolkit_scroll_bars;
2746 with_toolkit_scroll_bars=yes
2750 # Check whether --with-xaw3d was given.
2751 if test "${with_xaw3d+set}" = set; then :
2752 withval=$with_xaw3d;
2758 # Check whether --with-xim was given.
2759 if test "${with_xim+set}" = set; then :
2766 # Check whether --with-ns was given.
2767 if test "${with_ns+set}" = set; then :
2775 # Check whether --with-gpm was given.
2776 if test "${with_gpm+set}" = set; then :
2783 # Check whether --with-dbus was given.
2784 if test "${with_dbus+set}" = set; then :
2791 # Check whether --with-gconf was given.
2792 if test "${with_gconf+set}" = set; then :
2793 withval=$with_gconf;
2799 # Check whether --with-selinux was given.
2800 if test "${with_selinux+set}" = set; then :
2801 withval=$with_selinux;
2807 ## For the times when you want to build Emacs but don't have
2808 ## a suitable makeinfo, and can live without the manuals.
2810 # Check whether --with-makeinfo was given.
2811 if test "${with_makeinfo+set}" = set; then :
2812 withval=$with_makeinfo;
2819 # Check whether --with-gtk was given.
2820 if test "${with_gtk+set}" = set; then :
2821 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use
--with-x-toolkit to
2822 specify a toolkit.
" "$LINENO" 5
2827 # Check whether --with-gcc was given.
2828 if test "${with_gcc+set}" = set; then :
2829 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \
`CC' environment
2830 variable to specify a compiler." "$LINENO" 5
2835 # Check whether --with-pkg-config-prog was given.
2836 if test "${with_pkg_config_prog+set}" = set; then :
2837 withval=$with_pkg_config_prog;
2840 if test "X${with_pkg_config_prog}" != X; then
2841 if test "${with_pkg_config_prog}" != yes; then
2842 PKG_CONFIG="${with_pkg_config_prog}"
2848 # Check whether --with-crt-dir was given.
2849 if test "${with_crt_dir+set}" = set; then :
2850 withval=$with_crt_dir;
2853 CRT_DIR="${with_crt_dir}"
2856 # Check whether --with-gnustep-conf was given.
2857 if test "${with_gnustep_conf+set}" = set; then :
2858 withval=$with_gnustep_conf;
2861 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2862 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2863 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2864 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2866 # Check whether --enable-ns-self-contained was given.
2867 if test "${enable_ns_self_contained+set}" = set; then :
2868 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2870 EN_NS_SELF_CONTAINED=yes
2874 # Check whether --enable-asserts was given.
2875 if test "${enable_asserts+set}" = set; then :
2876 enableval=$enable_asserts; USE_XASSERTS=$enableval
2882 # Check whether --enable-maintainer-mode was given.
2883 if test "${enable_maintainer_mode+set}" = set; then :
2884 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2886 USE_MAINTAINER_MODE=no
2889 if test $USE_MAINTAINER_MODE = yes; then
2896 # Check whether --enable-locallisppath was given.
2897 if test "${enable_locallisppath+set}" = set; then :
2898 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2900 elif test "${enableval}" != "yes"; then
2901 locallisppath=${enableval}
2906 # Check whether --enable-checking was given.
2907 if test "${enable_checking+set}" = set; then :
2908 enableval=$enable_checking; ac_checking_flags="${enableval}"
2911 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2912 for check in $ac_checking_flags
2915 # these set all the flags to specific states
2916 yes) ac_enable_checking=1 ;;
2917 no) ac_enable_checking= ;
2918 ac_gc_check_stringbytes= ;
2919 ac_gc_check_string_overrun= ;
2920 ac_gc_check_string_free_list= ;
2921 ac_xmalloc_overrun= ;
2922 ac_gc_check_cons_list= ;;
2923 all) ac_enable_checking=1 ;
2924 ac_gc_check_stringbytes=1 ;
2925 ac_gc_check_string_overrun=1 ;
2926 ac_gc_check_string_free_list=1 ;
2927 ac_xmalloc_overrun=1 ;
2928 ac_gc_check_cons_list=1 ;;
2929 # these enable particular checks
2930 stringbytes) ac_gc_check_stringbytes=1 ;;
2931 stringoverrun) ac_gc_check_string_overrun=1 ;;
2932 stringfreelist) ac_gc_check_string_free_list=1 ;;
2933 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2934 conslist) ac_gc_check_cons_list=1 ;;
2935 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2940 if test x$ac_enable_checking != x ; then
2942 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2945 if test x$ac_gc_check_stringbytes != x ; then
2947 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2950 if test x$ac_gc_check_stringoverrun != x ; then
2952 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2955 if test x$ac_gc_check_string_free_list != x ; then
2957 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2960 if test x$ac_xmalloc_overrun != x ; then
2962 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2965 if test x$ac_gc_check_cons_list != x ; then
2967 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2971 # Check whether --enable-profiling was given.
2972 if test "${enable_profiling+set}" = set; then :
2973 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2976 if test x$ac_enable_profiling != x ; then
2977 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2978 PROFILING_LDFLAGS="-pg"
2984 # Check whether --enable-autodepend was given.
2985 if test "${enable_autodepend+set}" = set; then :
2986 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2988 ac_enable_autodepend=yes
2992 #### Make srcdir absolute, if it isn't already. It's important to
2993 #### avoid running the path through pwd unnecessarily, since pwd can
2994 #### give you automounter prefixes, which can go away. We do all this
2995 #### so Emacs can find its files when run uninstalled.
2996 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3001 ## We may be able to use the $PWD environment variable to make this
3002 ## absolute. But sometimes PWD is inaccurate.
3003 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3004 ## but that tested only for a well-formed and valid PWD,
3005 ## it did not object when PWD was well-formed and valid but just wrong.
3006 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3010 srcdir="`(cd ${srcdir}; pwd)`"
3013 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3016 #### Check if the source directory already has a configured system in it.
3017 if test `pwd` != `(cd ${srcdir} && pwd)` \
3018 && test -f "${srcdir}/src/config.h" ; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3020 as a build directory right now; it has been configured in its own
3021 right. To configure in another directory as well, you MUST
3022 use GNU make. If you do not have GNU make, then you must
3023 now do \`make distclean' in ${srcdir},
3024 and
then run
$0 again.
" >&5
3025 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3026 as a build directory right now; it has been configured in its own
3027 right. To configure in another directory as well, you MUST
3028 use GNU make. If you do not have GNU make, then you must
3029 now do \`make distclean
' in ${srcdir},
3030 and then run $0 again." >&2;}
3033 #### Given the configuration name, set machfile and opsysfile to the
3034 #### names of the m/*.h and s/*.h files we should use.
3036 ### Canonicalize the configuration name.
3039 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3040 for ac_t in install-sh install.sh shtool; do
3041 if test -f "$ac_dir/$ac_t"; then
3043 ac_install_sh="$ac_aux_dir/$ac_t -c"
3048 if test -z "$ac_aux_dir"; then
3049 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3052 # These three variables are undocumented and unsupported,
3053 # and are intended to be withdrawn in a future Autoconf release.
3054 # They can cause serious problems if a builder's
source tree is
in a directory
3055 # whose full name contains unusual characters.
3056 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3057 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3058 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3061 # Make sure we can run config.sub.
3062 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3063 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3066 $as_echo_n "checking build system type... " >&6; }
3067 if test "${ac_cv_build+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3070 ac_build_alias
=$build_alias
3071 test "x$ac_build_alias" = x
&&
3072 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3073 test "x$ac_build_alias" = x
&&
3074 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3075 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3076 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3080 $as_echo "$ac_cv_build" >&6; }
3081 case $ac_cv_build in
3083 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3086 ac_save_IFS
=$IFS; IFS
='-'
3092 # Remember, the first character of IFS is used to create $*,
3093 # except with old shells:
3096 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3100 $as_echo_n "checking host system type... " >&6; }
3101 if test "${ac_cv_host+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3104 if test "x$host_alias" = x
; then
3105 ac_cv_host
=$ac_cv_build
3107 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3108 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3113 $as_echo "$ac_cv_host" >&6; }
3116 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3119 ac_save_IFS
=$IFS; IFS
='-'
3125 # Remember, the first character of IFS is used to create $*,
3126 # except with old shells:
3129 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3133 configuration
=${host_alias-${build_alias-$host}}
3137 ### If you add support for a new configuration, add code to this
3138 ### switch statement to recognize your configuration name and select
3139 ### the appropriate operating system and machine description files.
3141 ### You would hope that you could choose an m/*.h file pretty much
3142 ### based on the machine portion of the configuration name, and an s-
3143 ### file based on the operating system portion. However, it turns out
3144 ### that each m/*.h file is pretty manufacturer-specific - for
3145 ### example mips.h is MIPS
3146 ### So we basically have to have a special case for each
3147 ### configuration name.
3149 ### As far as handling version numbers on operating systems is
3150 ### concerned, make sure things will fail in a fixable way. If
3151 ### /etc/MACHINES doesn't say anything about version numbers, be
3152 ### prepared to handle anything reasonably. If version numbers
3153 ### matter, be sure /etc/MACHINES says something about it.
3155 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3156 ### "System V Release 4"; he writes, "The old convention encouraged
3157 ### confusion between `system' and `release' levels'."
3159 machine
='' opsys
='' unported
=no
3160 case "${canonical}" in
3165 case "${canonical}" in
3166 alpha
*-*-freebsd*) machine
=alpha
;;
3167 arm
*-*-freebsd*) machine
=arm
;;
3168 ia64-
*-freebsd*) machine
=ia64
;;
3169 sparc-
*-freebsd*) machine
=sparc
;;
3170 sparc64-
*-freebsd*) machine
=sparc
;;
3171 powerpc-
*-freebsd*) machine
=macppc
;;
3172 i
[3456]86-*-freebsd*) machine
=intel386
;;
3173 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3177 ## FreeBSD kernel + glibc based userland
3180 case "${canonical}" in
3181 alpha
*-*-kfreebsd*) machine
=alpha
;;
3182 ia64-
*-kfreebsd*) machine
=ia64
;;
3183 sparc-
*-kfreebsd*) machine
=sparc
;;
3184 sparc64-
*-kfreebsd*) machine
=sparc
;;
3185 powerpc-
*-kfreebsd*) machine
=macppc
;;
3186 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3187 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3194 case "${canonical}" in
3195 alpha
*-*-netbsd*) machine
=alpha
;;
3196 i
[3456]86-*-netbsd*) machine
=intel386
;;
3197 mips-
*-netbsd*) machine
=mips
;;
3198 mipsel-
*-netbsd*) machine
=mips
;;
3199 mipseb-
*-netbsd*) machine
=mips
;;
3200 powerpc-
*-netbsd*) machine
=macppc
;;
3201 sparc
*-*-netbsd*) machine
=sparc
;;
3202 vax-
*-netbsd*) machine
=vax
;;
3203 arm-
*-netbsd*) machine
=arm
;;
3204 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3205 hppa-
*-netbsd*) machine
=hp800
;;
3206 m68k-
*-netbsd*) machine
=m68k
;;
3213 case "${canonical}" in
3214 alpha
*-*-openbsd*) machine
=alpha
;;
3215 arm-
*-openbsd*) machine
=arm
;;
3216 i386-
*-openbsd*) machine
=intel386
;;
3217 powerpc-
*-openbsd*) machine
=macppc
;;
3218 sparc
*-*-openbsd*) machine
=sparc
;;
3219 vax-
*-openbsd*) machine
=vax
;;
3220 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3221 hppa-
*-openbsd*) machine
=hp800
;;
3225 alpha
*-*-linux-gnu* )
3226 machine
=alpha opsys
=gnu-linux
3230 machine
=arm opsys
=gnu-linux
3233 ## Apple Darwin / Mac OS X
3235 case "${canonical}" in
3236 i
[3456]86-* ) machine
=intel386
;;
3237 powerpc-
* ) machine
=macppc
;;
3238 x86_64-
* ) machine
=amdx86-64
;;
3242 # Define CPP as follows to make autoconf work correctly.
3243 CPP
="${CC-cc} -E -no-cpp-precomp"
3244 # Use fink packages if available.
3245 if test -d /sw
/include
&& test -d /sw
/lib
; then
3246 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3247 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3248 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3252 ## HP 9000 series 700 and 800, running HP/UX
3253 hppa
*-hp-hpux10.2
* )
3254 machine
=hp800 opsys
=hpux10-20
3256 hppa
*-hp-hpux1[1-9]* )
3257 machine
=hp800 opsys
=hpux11
3258 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3261 hppa
*-*-linux-gnu* )
3262 machine
=hp800 opsys
=gnu-linux
3267 machine
=ibms390 opsys
=gnu-linux
3269 s390x-
*-linux-gnu* )
3270 machine
=ibms390x opsys
=gnu-linux
3272 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3273 machine
=ibmrs6000 opsys
=aix4-2
3275 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3276 machine
=ibmrs6000 opsys
=aix4-2
3278 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3279 machine
=ibmrs6000 opsys
=aix4-2
3281 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3282 machine
=ibmrs6000 opsys
=aix4-2
3285 ## Macintosh PowerPC
3286 powerpc
*-*-linux-gnu* )
3287 machine
=macppc opsys
=gnu-linux
3290 ## Silicon Graphics machines
3293 machine
=iris4d opsys
=irix6-5
3294 # Without defining _LANGUAGE_C, things get masked out in the headers
3295 # so that, for instance, grepping for `free' in stdlib.h fails and
3296 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3297 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3298 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3302 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3303 machine
=sparc opsys
=gnu-linux
3307 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3308 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3309 case "${canonical}" in
3310 i
[3456]86-*-* ) machine
=intel386
;;
3311 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3312 sparc
* ) machine
=sparc
;;
3315 case "${canonical}" in
3316 *-sunos5.6
* |
*-solaris2.6
* )
3318 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3321 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3323 emacs_check_sunpro_c
=yes
3324 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3326 *-sunos5* |
*-solaris* )
3328 emacs_check_sunpro_c
=yes
3329 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3332 ## Watch out for a compiler that we know will not work.
3333 case "${canonical}" in
3334 *-solaris* |
*-sunos5* )
3335 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3336 ## /usr/ucb/cc doesn't work;
3337 ## we should find some other compiler that does work.
3347 machine
=ia64 opsys
=gnu-linux
3350 ## Intel 386 machines where we don't care about the manufacturer
3353 case "${canonical}" in
3354 *-cygwin ) opsys
=cygwin
;;
3355 *-darwin* ) opsys
=darwin
3356 CPP
="${CC-cc} -E -no-cpp-precomp"
3358 *-linux-gnu* ) opsys
=gnu-linux
;;
3359 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3360 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3361 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3362 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3366 ## m68k Linux-based GNU system
3368 machine
=m68k opsys
=gnu-linux
3371 ## Mips Linux-based GNU system
3372 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3373 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3374 machine
=mips opsys
=gnu-linux
3377 ## AMD x86-64 Linux-based GNU system
3378 x86_64-
*-linux-gnu* )
3379 machine
=amdx86-64 opsys
=gnu-linux
3382 ## Tensilica Xtensa Linux-based GNU system
3383 xtensa
*-*-linux-gnu* )
3384 machine
=xtensa opsys
=gnu-linux
3387 ## SuperH Linux-based GNU system
3388 sh
[34]*-*-linux-gnu* )
3389 machine
=sh3 opsys
=gnu-linux
3397 ### If the code above didn't choose an operating system, just choose
3398 ### an operating system based on the configuration name. You really
3399 ### only want to use this when you have no idea what the right
3400 ### operating system is; if you know what operating systems a machine
3401 ### runs, it's cleaner to make it explicit in the case statement
3403 if test x
"${opsys}" = x
; then
3404 case "${canonical}" in
3405 *-gnu* ) opsys
=gnu
;;
3414 if test $unported = yes; then
3415 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3416 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3419 machfile
="m/${machine}.h"
3420 opsysfile
="s/${opsys}.h"
3423 #### Choose a compiler.
3424 test -n "$CC" && cc_specified
=yes
3426 # Save the value of CFLAGS that the user specified.
3427 SPECIFIED_CFLAGS
="$CFLAGS"
3430 ac_cpp
='$CPP $CPPFLAGS'
3431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then :
3440 $as_echo_n "(cached) " >&6
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC
="$CC" # Let the user override the test.
3445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir
=.
3450 for ac_exec_ext
in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3473 if test -z "$ac_cv_prog_CC"; then
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476 set dummy gcc
; ac_word
=$2
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 $as_echo_n "checking for $ac_word... " >&6; }
3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3480 $as_echo_n "(cached) " >&6
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir
=.
3490 for ac_exec_ext
in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_CC
="gcc"
3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3505 $as_echo "$ac_ct_CC" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3511 if test "x$ac_ct_CC" = x
; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3518 ac_tool_warned
=yes ;;
3526 if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3529 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC
="$CC" # Let the user override the test.
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3567 if test -z "$CC"; then
3568 # Extract the first word of "cc", so it can be a program name with args.
3569 set dummy cc
; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC
="$CC" # Let the user override the test.
3579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir
=.
3584 for ac_exec_ext
in '' $ac_executable_extensions; do
3585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3587 ac_prog_rejected
=yes
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test $ac_prog_rejected = yes; then
3599 # We found a bogon in the path, so make sure we never use it.
3600 set dummy
$ac_cv_prog_CC
3602 if test $# != 0; then
3603 # We chose a different compiler from the bogus one.
3604 # However, it has the same basename, so the bogon will be chosen
3605 # first if we set CC to just the basename; use the full file name.
3607 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3623 if test -z "$CC"; then
3624 if test -n "$ac_tool_prefix"; then
3625 for ac_prog
in cl.exe
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC
="$CC" # Let the user override the test.
3637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir
=.
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 if test -n "$CC"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3657 $as_echo "$CC" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3664 test -n "$CC" && break
3667 if test -z "$CC"; then
3669 for ac_prog
in cl.exe
3671 # Extract the first word of "$ac_prog", so it can be a program name with args.
3672 set dummy
$ac_prog; ac_word
=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3678 if test -n "$ac_ct_CC"; then
3679 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_exec_ext
in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_prog_ac_ct_CC
="$ac_prog"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3699 if test -n "$ac_ct_CC"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701 $as_echo "$ac_ct_CC" >&6; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3708 test -n "$ac_ct_CC" && break
3711 if test "x$ac_ct_CC" = x
; then
3714 case $cross_compiling:$ac_tool_warned in
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3718 ac_tool_warned
=yes ;;
3727 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error
"no acceptable C compiler found in \$PATH
3730 See \`config.log' for more details." "$LINENO" 5; }
3732 # Provide some information about the compiler.
3733 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3736 for ac_option
in --version -v -V -qversion; do
3737 { { ac_try
="$ac_compiler $ac_option >&5"
3739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3746 if test -s conftest.err; then
3748 ... rest of stderr output deleted ...
3749 10q' conftest.err >conftest.er1
3750 cat conftest.er1 >&5
3752 rm -f conftest.er1 conftest.err
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3768 ac_clean_files_save=$ac_clean_files
3769 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3770 # Try to create an executable without -o first, disregard a.out.
3771 # It will help us diagnose broken compilers, and finding out an intuition
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3774 $as_echo_n "checking whether the C compiler works... " >&6; }
3775 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3777 # The possible output files:
3778 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3781 for ac_file in $ac_files
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3790 if { { ac_try="$ac_link_default"
3792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3793 *) ac_try_echo
=$ac_try;;
3795 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link_default") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; then :
3801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3804 # so that the user can short-circuit this test for compilers unknown to
3806 for ac_file
in $ac_files ''
3808 test -f "$ac_file" ||
continue
3810 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3813 # We found the default executable, but exeext='' is most
3817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3819 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3821 # We set ac_cv_exeext here because the later test for it is not
3822 # safe: cross compilers may not add the suffix if given an `-o'
3823 # argument, so we may need to know it at that point already.
3824 # Even if this section looks crufty: it has the advantage of
3831 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3836 if test -z "$ac_file"; then :
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.
$ac_ext >&5
3842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 { as_fn_set_status
77
3845 as_fn_error
"C compiler cannot create executables
3846 See \`config.log' for more details." "$LINENO" 5; }; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3849 $as_echo "yes" >&6; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3852 $as_echo_n "checking for C compiler default output file name... " >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 ac_exeext
=$ac_cv_exeext
3857 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3858 ac_clean_files
=$ac_clean_files_save
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3860 $as_echo_n "checking for suffix of executables... " >&6; }
3861 if { { ac_try
="$ac_link"
3863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3873 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3874 # work properly (i.e., refer to `conftest.exe'), while it won't with
3876 for ac_file
in conftest.exe conftest conftest.
*; do
3877 test -f "$ac_file" ||
continue
3879 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3880 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3889 See \`config.log' for more details." "$LINENO" 5; }
3891 rm -f conftest conftest
$ac_cv_exeext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893 $as_echo "$ac_cv_exeext" >&6; }
3895 rm -f conftest.
$ac_ext
3896 EXEEXT
=$ac_cv_exeext
3898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3904 FILE *f = fopen ("conftest.out", "w");
3905 return ferror (f) || fclose (f) != 0;
3911 ac_clean_files
="$ac_clean_files conftest.out"
3912 # Check that the compiler produces executables we can run. If not, either
3913 # the compiler is broken, or we cross compile.
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3915 $as_echo_n "checking whether we are cross compiling... " >&6; }
3916 if test "$cross_compiling" != yes; then
3917 { { ac_try
="$ac_link"
3919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_link") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 if { ac_try='./conftest$ac_cv_exeext'
3929 { { case "(($ac_try" in
3930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3931 *) ac_try_echo
=$ac_try;;
3933 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_try") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; }; then
3941 if test "$cross_compiling" = maybe
; then
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error
"cannot run C compiled programs.
3947 If you meant to cross compile, use \`--host'.
3948 See \`config.log' for more details." "$LINENO" 5; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3956 ac_clean_files
=$ac_clean_files_save
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3958 $as_echo_n "checking for suffix of object files... " >&6; }
3959 if test "${ac_cv_objext+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3973 rm -f conftest.o conftest.obj
3974 if { { ac_try
="$ac_compile"
3976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_compile") 2>&5
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 for ac_file in conftest.o conftest.obj conftest.*; do
3986 test -f "$ac_file" || continue;
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3994 $as_echo "$as_me: failed program was:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error "cannot compute suffix of object files
: cannot compile
4000 See \
`config.log' for more details." "$LINENO" 5; }
4002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4005 $as_echo "$ac_cv_objext" >&6; }
4006 OBJEXT=$ac_cv_objext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4009 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4010 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4027 if ac_fn_c_try_compile "$LINENO"; then :
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4037 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4038 if test $ac_compiler_gnu = yes; then
4043 ac_test_CFLAGS=${CFLAGS+set}
4044 ac_save_CFLAGS=$CFLAGS
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4046 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4047 if test "${ac_cv_prog_cc_g+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4050 ac_save_c_werror_flag=$ac_c_werror_flag
4051 ac_c_werror_flag=yes
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 if ac_fn_c_try_compile "$LINENO"; then :
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_c_werror_flag=$ac_save_c_werror_flag
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 if ac_fn_c_try_compile "$LINENO"; then :
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_c_werror_flag=$ac_save_c_werror_flag
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4107 $as_echo "$ac_cv_prog_cc_g" >&6; }
4108 if test "$ac_test_CFLAGS" = set; then
4109 CFLAGS=$ac_save_CFLAGS
4110 elif test $ac_cv_prog_cc_g = yes; then
4111 if test "$GCC" = yes; then
4117 if test "$GCC" = yes; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4124 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4125 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4128 ac_cv_prog_cc_c89=no
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 #include <sys/types.h>
4135 #include <sys/stat.h>
4136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4137 struct buf { int x; };
4138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4139 static char *e (p, i)
4145 static char *f (char * (*g) (char **, int), char **p, ...)
4150 s = g (p, va_arg (v,int));
4155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4156 function prototypes and stuff, but not '\xHH' hex character constants.
4157 These don't provoke an error unfortunately, instead are silently treated
4158 as 'x'. The following induces an error, until -std is added to get
4159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4160 array size at least. It's necessary to write '\x00'==0 to get something
4161 that's true only with -std. */
4162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4165 inside strings and character constants. */
4167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4169 int test (int i, double x);
4170 struct s1 {int (*f) (int a);};
4171 struct s2 {int (*f) (double a);};
4172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4186 CC="$ac_save_CC $ac_arg"
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_prog_cc_c89=$ac_arg
4190 rm -f core conftest.err conftest.$ac_objext
4191 test "x$ac_cv_prog_cc_c89" != "xno" && break
4193 rm -f conftest.$ac_ext
4198 case "x$ac_cv_prog_cc_c89" in
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4206 CC="$CC $ac_cv_prog_cc_c89"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4210 if test "x$ac_cv_prog_cc_c89" != xno; then :
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 # On Suns, sometimes $CPP names a directory.
4222 if test -n "$CPP" && test -d "$CPP"; then
4226 ## If not using gcc, and on Solaris, and no CPP specified, see if
4227 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4228 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4229 test x"$CPP" = x; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4231 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4233 if test "${emacs_cv_sunpro_c+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4250 if ac_fn_c_try_link "$LINENO"; then :
4251 emacs_cv_sunpro_c=yes
4253 emacs_cv_sunpro_c=no
4255 rm -f core conftest.err conftest.$ac_objext \
4256 conftest$ac_exeext conftest.$ac_ext
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4260 $as_echo "$emacs_cv_sunpro_c" >&6; }
4262 if test x"$emacs_cv_sunpro_c" = xyes; then
4263 NON_GNU_CPP="$CC -E -Xs"
4267 #### Some systems specify a CPP to use unless we are using GCC.
4268 #### Now that we know whether we are using GCC, we can decide whether
4269 #### to use that one.
4270 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4275 #### Some systems specify a CC to use unless we are using GCC.
4276 #### Now that we know whether we are using GCC, we can decide whether
4277 #### to use that one.
4278 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4279 test x$cc_specified != xyes
4284 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4286 CC="$CC $GCC_TEST_OPTIONS"
4289 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4291 CC="$CC $NON_GCC_TEST_OPTIONS"
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4305 if test -z "$CPP"; then
4306 if test "${ac_cv_prog_CPP+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # include <limits.h>
4326 # include <assert.h>
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4348 # Passes both tests.
4352 rm -f conftest.err conftest.$ac_ext
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.err conftest.
$ac_ext
4357 if $ac_preproc_ok; then :
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4370 $as_echo "$CPP" >&6; }
4372 for ac_c_preproc_warn_flag
in '' yes
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
4380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4383 # include <limits.h>
4385 # include <assert.h>
4389 if ac_fn_c_try_cpp
"$LINENO"; then :
4392 # Broken: fails on valid input.
4395 rm -f conftest.err conftest.
$ac_ext
4397 # OK, works on sane cases. Now check whether nonexistent headers
4398 # can be detected and how.
4399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <ac_nonexistent.h>
4403 if ac_fn_c_try_cpp
"$LINENO"; then :
4404 # Broken: success on invalid input.
4407 # Passes both tests.
4411 rm -f conftest.err conftest.
$ac_ext
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.
$ac_ext
4416 if $ac_preproc_ok; then :
4419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details." "$LINENO" 5; }
4426 ac_cpp
='$CPP $CPPFLAGS'
4427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4434 if test "${ac_cv_path_GREP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -z "$GREP"; then
4438 ac_path_GREP_found
=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4441 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_prog
in grep ggrep
; do
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4453 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4456 $as_echo_n 0123456789 >"conftest.in"
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4464 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4465 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP
="$ac_path_GREP"
4469 ac_path_GREP_max
=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4474 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4477 $ac_path_GREP_found && break 3
4482 if test -z "$ac_cv_path_GREP"; then
4483 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 ac_cv_path_GREP
=$GREP
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4491 $as_echo "$ac_cv_path_GREP" >&6; }
4492 GREP
="$ac_cv_path_GREP"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4496 $as_echo_n "checking for egrep... " >&6; }
4497 if test "${ac_cv_path_EGREP+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4500 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4501 then ac_cv_path_EGREP
="$GREP -E"
4503 if test -z "$EGREP"; then
4504 ac_path_EGREP_found
=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4507 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4510 test -z "$as_dir" && as_dir
=.
4511 for ac_prog
in egrep; do
4512 for ac_exec_ext
in '' $ac_executable_extensions; do
4513 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516 # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4519 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4522 $as_echo_n 0123456789 >"conftest.in"
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4530 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4531 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP
="$ac_path_EGREP"
4535 ac_path_EGREP_max
=$ac_count
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4540 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4543 $ac_path_EGREP_found && break 3
4548 if test -z "$ac_cv_path_EGREP"; then
4549 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 ac_cv_path_EGREP
=$EGREP
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4558 $as_echo "$ac_cv_path_EGREP" >&6; }
4559 EGREP
="$ac_cv_path_EGREP"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4563 $as_echo_n "checking for ANSI C header files... " >&6; }
4564 if test "${ac_cv_header_stdc+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4582 if ac_fn_c_try_compile
"$LINENO"; then :
4583 ac_cv_header_stdc
=yes
4585 ac_cv_header_stdc
=no
4587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4589 if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "memchr" >/dev
/null
2>&1; then :
4600 ac_cv_header_stdc
=no
4606 if test $ac_cv_header_stdc = yes; then
4607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "free" >/dev
/null
2>&1; then :
4617 ac_cv_header_stdc
=no
4623 if test $ac_cv_header_stdc = yes; then
4624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625 if test "$cross_compiling" = yes; then :
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4632 #if ((' ' & 0x0FF) == 0x020)
4633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4636 # define ISLOWER(c) \
4637 (('a' <= (c) && (c) <= 'i') \
4638 || ('j' <= (c) && (c) <= 'r') \
4639 || ('s' <= (c) && (c) <= 'z'))
4640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648 for (i = 0; i < 256; i++)
4649 if (XOR (islower (i), ISLOWER (i))
4650 || toupper (i) != TOUPPER (i))
4655 if ac_fn_c_try_run
"$LINENO"; then :
4658 ac_cv_header_stdc
=no
4660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4667 $as_echo "$ac_cv_header_stdc" >&6; }
4668 if test $ac_cv_header_stdc = yes; then
4670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4674 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4675 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4676 inttypes.h stdint.h unistd.h
4678 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4681 eval as_val
=\$
$as_ac_Header
4682 if test "x$as_val" = x
""yes; then :
4683 cat >>confdefs.h
<<_ACEOF
4684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4693 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4694 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4701 if test "$MINIX" = yes; then
4703 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4706 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4709 $as_echo "#define _MINIX 1" >>confdefs.h
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4715 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4716 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 # define __EXTENSIONS__ 1
4723 $ac_includes_default
4732 if ac_fn_c_try_compile
"$LINENO"; then :
4733 ac_cv_safe_to_define___extensions__
=yes
4735 ac_cv_safe_to_define___extensions__
=no
4737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4740 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4741 test $ac_cv_safe_to_define___extensions__ = yes &&
4742 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4744 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4746 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4748 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4750 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4754 ### Use -Wno-pointer-sign if the compiler supports it
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4756 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4757 SAVE_CFLAGS
="$CFLAGS"
4758 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_compile
"$LINENO"; then :
4775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4776 if test $has_option = yes; then
4777 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4780 $as_echo "$has_option" >&6; }
4781 CFLAGS
="$SAVE_CFLAGS"
4785 ### Use -Wdeclaration-after-statement if the compiler supports it
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4787 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4788 SAVE_CFLAGS
="$CFLAGS"
4789 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4801 if ac_fn_c_try_compile
"$LINENO"; then :
4806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 if test $has_option = yes; then
4808 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4811 $as_echo "$has_option" >&6; }
4812 CFLAGS
="$SAVE_CFLAGS"
4816 #### Some other nice autoconf tests.
4819 ac_cpp
='$CPP $CPPFLAGS'
4820 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4825 # On Suns, sometimes $CPP names a directory.
4826 if test -n "$CPP" && test -d "$CPP"; then
4829 if test -z "$CPP"; then
4830 if test "${ac_cv_prog_CPP+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 # Double quotes because CPP needs to be expanded
4834 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4837 for ac_c_preproc_warn_flag
in '' yes
4839 # Use a header file that comes with gcc, so configuring glibc
4840 # with a fresh cross-compiler works.
4841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4842 # <limits.h> exists even on freestanding compilers.
4843 # On the NeXT, cc -E runs the code through the compiler's parser,
4844 # not just through cpp. "Syntax error" is here to catch this case.
4845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4848 # include <limits.h>
4850 # include <assert.h>
4854 if ac_fn_c_try_cpp
"$LINENO"; then :
4857 # Broken: fails on valid input.
4860 rm -f conftest.err conftest.
$ac_ext
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if ac_fn_c_try_cpp
"$LINENO"; then :
4869 # Broken: success on invalid input.
4872 # Passes both tests.
4876 rm -f conftest.err conftest.
$ac_ext
4879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880 rm -f conftest.err conftest.
$ac_ext
4881 if $ac_preproc_ok; then :
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4894 $as_echo "$CPP" >&6; }
4896 for ac_c_preproc_warn_flag
in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4907 # include <limits.h>
4909 # include <assert.h>
4913 if ac_fn_c_try_cpp
"$LINENO"; then :
4916 # Broken: fails on valid input.
4919 rm -f conftest.err conftest.
$ac_ext
4921 # OK, works on sane cases. Now check whether nonexistent headers
4922 # can be detected and how.
4923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #include <ac_nonexistent.h>
4927 if ac_fn_c_try_cpp
"$LINENO"; then :
4928 # Broken: success on invalid input.
4931 # Passes both tests.
4935 rm -f conftest.err conftest.
$ac_ext
4938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939 rm -f conftest.err conftest.
$ac_ext
4940 if $ac_preproc_ok; then :
4943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4945 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4946 See \`config.log' for more details." "$LINENO" 5; }
4950 ac_cpp
='$CPP $CPPFLAGS'
4951 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4952 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4955 # Find a good install program. We prefer a C program (faster),
4956 # so one script is as good as another. But avoid the broken or
4957 # incompatible versions:
4958 # SysV /etc/install, /usr/sbin/install
4959 # SunOS /usr/etc/install
4960 # IRIX /sbin/install
4962 # AmigaOS /C/install, which installs bootblocks on floppy discs
4963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4966 # OS/2's system install, which has a completely different semantic
4967 # ./install, which can be erroneously created by make from ./install.sh.
4968 # Reject install programs that cannot install multiple files.
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4970 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4971 if test -z "$INSTALL"; then
4972 if test "${ac_cv_path_install+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 # Account for people who put trailing slashes in PATH elements.
4981 case $as_dir/ in #((
4982 .
/ | .
// |
/[cC
]/* | \
4983 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4984 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4987 # OSF1 and SCO ODT 3.0 have their own names for install.
4988 # Don't use installbsd from OSF since it installs stuff as root
4990 for ac_prog
in ginstall scoinst
install; do
4991 for ac_exec_ext
in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4993 if test $ac_prog = install &&
4994 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4995 # AIX install. It has an incompatible calling convention.
4997 elif test $ac_prog = install &&
4998 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4999 # program-specific install script used by HP pwplus--don't use.
5002 rm -rf conftest.one conftest.two conftest.dir
5003 echo one
> conftest.one
5004 echo two
> conftest.two
5006 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5007 test -s conftest.one
&& test -s conftest.two
&&
5008 test -s conftest.dir
/conftest.one
&&
5009 test -s conftest.dir
/conftest.two
5011 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5024 rm -rf conftest.one conftest.two conftest.dir
5027 if test "${ac_cv_path_install+set}" = set; then
5028 INSTALL
=$ac_cv_path_install
5030 # As a last resort, use the slow shell script. Don't cache a
5031 # value for INSTALL within a source directory, because that will
5032 # break other packages using the cache if that directory is
5033 # removed, or if the value is a relative name.
5034 INSTALL
=$ac_install_sh
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5038 $as_echo "$INSTALL" >&6; }
5040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5041 # It thinks the first close brace ends the variable substitution.
5042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5048 if test "x$RANLIB" = x
; then
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5051 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$RANLIB"; then
5058 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 RANLIB
=$ac_cv_prog_RANLIB
5078 if test -n "$RANLIB"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5080 $as_echo "$RANLIB" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test -z "$ac_cv_prog_RANLIB"; then
5089 ac_ct_RANLIB
=$RANLIB
5090 # Extract the first word of "ranlib", so it can be a program name with args.
5091 set dummy ranlib
; ac_word
=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$ac_ct_RANLIB"; then
5098 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_exec_ext
in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5118 if test -n "$ac_ct_RANLIB"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5120 $as_echo "$ac_ct_RANLIB" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5126 if test "x$ac_ct_RANLIB" = x
; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned
=yes ;;
5135 RANLIB
=$ac_ct_RANLIB
5138 RANLIB
="$ac_cv_prog_RANLIB"
5143 ## Although we're running on an amd64 kernel, we're actually compiling for
5144 ## the x86 architecture. The user should probably have provided an
5145 ## explicit --build to `configure', but if everything else than the kernel
5146 ## is running in i386 mode, we can help them out.
5147 if test "$machine" = "amdx86-64"; then
5148 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5149 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5153 if test "$ac_cv_have_decl_i386" = "yes"; then
5154 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5156 machfile
="m/${machine}.h"
5160 # Extract the first word of "install-info", so it can be a program name with args.
5161 set dummy install-info
; ac_word
=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5167 case $INSTALL_INFO in
5169 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5193 $as_echo "$INSTALL_INFO" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info
; ac_word
=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5207 case $INSTALL_INFO in
5209 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5213 for as_dir
in /usr
/sbin
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5233 $as_echo "$INSTALL_INFO" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info
; ac_word
=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 case $INSTALL_INFO in
5249 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5271 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5272 if test -n "$INSTALL_INFO"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5274 $as_echo "$INSTALL_INFO" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 # Extract the first word of "gzip", so it can be a program name with args.
5282 set dummy
gzip; ac_word
=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5290 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5312 if test -n "$GZIP_PROG"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5314 $as_echo "$GZIP_PROG" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5323 ## Need makeinfo >= 4.6 (?) to build the manuals.
5324 # Extract the first word of "makeinfo", so it can be a program name with args.
5325 set dummy makeinfo
; ac_word
=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5333 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_exec_ext
in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5355 MAKEINFO
=$ac_cv_path_MAKEINFO
5356 if test -n "$MAKEINFO"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5358 $as_echo "$MAKEINFO" >&6; }
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 if test "$MAKEINFO" != "no" && \
5366 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
5370 ## Makeinfo is unusual. For a released Emacs, the manuals are
5371 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5372 ## therefore in the category of "special tools" not normally required, which
5373 ## configure does not have to check for (eg autoconf itself).
5374 ## In a Bazaar checkout on the other hand, the manuals are not included.
5375 ## So makeinfo is a requirement to build from Bazaar, and configure
5376 ## should test for it as it does for any other build requirement.
5377 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5378 ## with pre-built manuals, from a Bazaar checkout.
5379 if test "$MAKEINFO" = "no"; then
5380 if test "x${with_makeinfo}" = "xno"; then
5382 elif test ! -e $srcdir/info
/emacs
; then
5383 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5384 source tree does not seem to have pre-built manuals in the \`info' directory.
5385 Either install a suitable version of makeinfo, or re-run configure
5386 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5391 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5393 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5396 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5398 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5402 late_LDFLAGS
=$LDFLAGS
5403 if test "$GCC" = yes; then
5404 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5406 LDFLAGS
="$LDFLAGS -znocombreloc"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5410 $as_echo_n "checking for -znocombreloc... " >&6; }
5411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5415 if ac_fn_c_try_link
"$LINENO"; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5419 LDFLAGS
=$late_LDFLAGS
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5423 rm -f core conftest.err conftest.
$ac_objext \
5424 conftest
$ac_exeext conftest.
$ac_ext
5426 #### Extract some information from the operating system and machine files.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5429 - which libraries the lib-src programs will want, and
5430 - whether the GNU malloc routines are usable..." >&5
5431 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5432 - which libraries the lib-src programs will want, and
5433 - whether the GNU malloc routines are usable..." >&6;}
5435 ### First figure out CFLAGS (which we use for running the compiler here)
5436 ### and REAL_CFLAGS (which we use for real compilation).
5437 ### The two are the same except on a few systems, where they are made
5438 ### different to work around various lossages. For example,
5439 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5440 ### as implying static linking.
5442 ### If the CFLAGS env var is specified, we use that value
5443 ### instead of the default.
5445 ### It's not important that this name contain the PID; you can't run
5446 ### two configures in the same directory and have anything work
5448 tempcname
="conftest.c"
5451 #include "'${srcdir}'/src/'${opsysfile}'"
5452 #include "'${srcdir}'/src/'${machfile}'"
5454 configure___ LIBX=-lX11
5456 configure___ unexec=UNEXEC
5458 #ifdef SYSTEM_MALLOC
5459 configure___ system_malloc=yes
5461 configure___ system_malloc=no
5464 #ifdef USE_MMAP_FOR_BUFFERS
5465 configure___ use_mmap_for_buffers=yes
5467 configure___ use_mmap_for_buffers=no
5470 #ifndef C_OPTIMIZE_SWITCH
5472 #define C_OPTIMIZE_SWITCH -O2
5474 #define C_OPTIMIZE_SWITCH -O
5478 #ifndef C_WARNINGS_SWITCH
5479 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5482 #ifdef THIS_IS_CONFIGURE
5484 /* Get the CFLAGS for tests in configure. */
5486 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5488 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5491 #else /* not THIS_IS_CONFIGURE */
5493 /* Get the CFLAGS for real compilation. */
5495 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5497 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5500 #endif /* not THIS_IS_CONFIGURE */
5503 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5505 # The value of CPP is a quoted variable reference, so we need to do this
5506 # to get its actual value...
5507 CPP
=`eval "echo $CPP"`
5508 eval `${CPP} -Isrc ${tempcname} \
5509 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5510 if test "x$SPECIFIED_CFLAGS" = x
; then
5511 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5512 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5514 REAL_CFLAGS
="$CFLAGS"
5522 ## Let `ld' find image libs and similar things in /usr/local/lib.
5523 ## The system compiler, GCC, has apparently been modified to not
5524 ## look there, contrary to what a stock GCC would do.
5525 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5529 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5530 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5534 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5538 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5539 ## otherwise Emacs dumps core on elf systems.
5540 LD_SWITCH_SYSTEM
="-Z"
5545 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5547 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5548 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5549 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5550 ## values in configure and the Makefiles. How helpful.
5551 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5554 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5555 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5558 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5559 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5564 if test "$machine" = "alpha"; then
5565 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5566 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5570 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5571 ## With ELF, make sure that all common symbols get allocated to in the
5572 ## data section. Otherwise, the dump of temacs may miss variables in
5573 ## the shared library that have been initialized. For example, with
5574 ## GNU libc, __malloc_initialized would normally be resolved to the
5575 ## shared library's .bss section, which is fatal.
5576 if test "x$GCC" = "xyes"; then
5577 C_SWITCH_MACHINE
="-fno-common"
5579 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5587 ## Some programs in src produce warnings saying certain subprograms
5588 ## are too complex and need a MAXMEM value greater than 2000 for
5589 ## additional optimization. --nils@exp-math.uni-essen.de
5590 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5591 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5592 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5593 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5599 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5600 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5602 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5604 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5606 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5608 ## Motif needs -lgen.
5609 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5614 ### Make sure subsequent tests use flags consistent with the build flags.
5616 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5617 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5619 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5624 # Check whether --enable-largefile was given.
5625 if test "${enable_largefile+set}" = set; then :
5626 enableval
=$enable_largefile;
5629 if test "$enable_largefile" != no
; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5632 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5633 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5636 ac_cv_sys_largefile_CC
=no
5637 if test "$GCC" != yes; then
5640 # IRIX 6.2 and later do not support large files by default,
5641 # so use the C compiler's -n32 option if that helps.
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <sys/types.h>
5645 /* Check that off_t can represent 2**63 - 1 correctly.
5646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647 since some C++ compilers masquerading as C compilers
5648 incorrectly reject 9223372036854775807. */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651 && LARGE_OFF_T % 2147483647 == 1)
5661 if ac_fn_c_try_compile
"$LINENO"; then :
5664 rm -f core conftest.err conftest.
$ac_objext
5666 if ac_fn_c_try_compile
"$LINENO"; then :
5667 ac_cv_sys_largefile_CC
=' -n32'; break
5669 rm -f core conftest.err conftest.
$ac_objext
5673 rm -f conftest.
$ac_ext
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5677 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5678 if test "$ac_cv_sys_largefile_CC" != no
; then
5679 CC
=$CC$ac_cv_sys_largefile_CC
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5683 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5684 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <sys/types.h>
5691 /* Check that off_t can represent 2**63 - 1 correctly.
5692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5693 since some C++ compilers masquerading as C compilers
5694 incorrectly reject 9223372036854775807. */
5695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5697 && LARGE_OFF_T % 2147483647 == 1)
5707 if ac_fn_c_try_compile
"$LINENO"; then :
5708 ac_cv_sys_file_offset_bits
=no
; break
5710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #define _FILE_OFFSET_BITS 64
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5731 if ac_fn_c_try_compile
"$LINENO"; then :
5732 ac_cv_sys_file_offset_bits
=64; break
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5735 ac_cv_sys_file_offset_bits
=unknown
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5740 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5741 case $ac_cv_sys_file_offset_bits in #(
5744 cat >>confdefs.h
<<_ACEOF
5745 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5750 if test $ac_cv_sys_file_offset_bits = unknown
; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5752 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5753 if test "${ac_cv_sys_large_files+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 if ac_fn_c_try_compile
"$LINENO"; then :
5777 ac_cv_sys_large_files
=no
; break
5779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 if ac_fn_c_try_compile
"$LINENO"; then :
5801 ac_cv_sys_large_files
=1; break
5803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 ac_cv_sys_large_files
=unknown
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5809 $as_echo "$ac_cv_sys_large_files" >&6; }
5810 case $ac_cv_sys_large_files in #(
5813 cat >>confdefs.h
<<_ACEOF
5814 #define _LARGE_FILES $ac_cv_sys_large_files
5824 ## If user specified a crt-dir, use that unconditionally.
5825 if test "X$CRT_DIR" = "X"; then
5827 case "$canonical" in
5828 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5829 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5830 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5831 ## For anything else (eg /usr/lib32), it is up the user to specify
5832 ## the location (bug#5655).
5833 ## Test for crtn.o, not just the directory, because sometimes the
5834 ## directory exists but does not have the relevant files (bug#1287).
5835 ## FIXME better to test for binary compatibility somehow.
5836 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5839 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5843 hpux10-20
) CRT_DIR
=/lib
;;
5846 ## Default is /usr/lib.
5847 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5851 ## Some platforms don't use any of these files, so it is not
5852 ## appropriate to put this test outside the if block.
5853 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5854 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5867 START_FILES
='ecrt0.o'
5870 ## Adding -lm confuses the dynamic linker, so omit it.
5872 START_FILES
='pre-crt0.o'
5875 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5876 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5878 gnu-linux | gnu-kfreebsd
)
5879 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5880 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5882 hpux10-20 | hpux11
)
5884 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5887 if test -f $CRT_DIR/crti.o
; then
5888 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5889 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5891 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5892 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5903 if test "${with_sound}" != "no"; then
5904 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5907 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5909 eval as_val
=\$
$as_ac_Header
5910 if test "x$as_val" = x
""yes; then :
5911 cat >>confdefs.h
<<_ACEOF
5912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919 # Emulation library used on NetBSD.
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5921 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5922 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5925 ac_check_lib_save_LIBS
=$LIBS
5926 LIBS
="-lossaudio $LIBS"
5927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5930 /* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5940 return _oss_ioctl ();
5945 if ac_fn_c_try_link
"$LINENO"; then :
5946 ac_cv_lib_ossaudio__oss_ioctl
=yes
5948 ac_cv_lib_ossaudio__oss_ioctl
=no
5950 rm -f core conftest.err conftest.
$ac_objext \
5951 conftest
$ac_exeext conftest.
$ac_ext
5952 LIBS
=$ac_check_lib_save_LIBS
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5955 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5956 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5965 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5969 # Extract the first word of "pkg-config", so it can be a program name with args.
5970 set dummy pkg-config
; ac_word
=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5978 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir
=.
5986 for ac_exec_ext
in '' $ac_executable_extensions; do
5987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5988 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6000 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6001 if test -n "$PKG_CONFIG"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6003 $as_echo "$PKG_CONFIG" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6011 if test "$PKG_CONFIG" = "no" ; then
6014 PKG_CONFIG_MIN_VERSION
=0.9.0
6015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6017 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6019 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6021 $as_echo "yes" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6025 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6026 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6028 $as_echo "$ALSA_CFLAGS" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6031 $as_echo_n "checking ALSA_LIBS... " >&6; }
6032 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6034 $as_echo "$ALSA_LIBS" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6040 ## If we have a custom action on failure, don't print errors, but
6041 ## do set a variable so people can do so.
6042 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6054 if test $succeeded = yes; then
6060 if test $HAVE_ALSA = yes; then
6061 SAVE_CFLAGS
="$CFLAGS"
6062 SAVE_LDFLAGS
="$LDFLAGS"
6063 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6064 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067 #include <asoundlib.h>
6071 snd_lib_error_set_handler (0);
6076 if ac_fn_c_try_compile
"$LINENO"; then :
6077 emacs_alsa_normal
=yes
6079 emacs_alsa_normal
=no
6081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 if test "$emacs_alsa_normal" != yes; then
6083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 #include <alsa/asoundlib.h>
6089 snd_lib_error_set_handler (0);
6094 if ac_fn_c_try_compile
"$LINENO"; then :
6095 emacs_alsa_subdir
=yes
6097 emacs_alsa_subdir
=no
6099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 if test "$emacs_alsa_subdir" != yes; then
6101 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6103 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6106 CFLAGS
="$SAVE_CFLAGS"
6107 LDFLAGS
="$SAVE_LDFLAGS"
6108 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6109 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6111 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6117 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6118 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6119 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6120 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6121 sys
/utsname.h
pwd.h utmp.h
6123 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6125 eval as_val
=\$
$as_ac_Header
6126 if test "x$as_val" = x
""yes; then :
6127 cat >>confdefs.h
<<_ACEOF
6128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6137 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #include <sys/personality.h>
6144 personality (PER_LINUX32)
6149 if ac_fn_c_try_compile
"$LINENO"; then :
6150 emacs_cv_personality_linux32
=yes
6152 emacs_cv_personality_linux32
=no
6154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6156 $as_echo "$emacs_cv_personality_linux32" >&6; }
6158 if test $emacs_cv_personality_linux32 = yes; then
6160 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6164 for ac_header
in term.h
6166 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6167 if test "x$ac_cv_header_term_h" = x
""yes; then :
6168 cat >>confdefs.h
<<_ACEOF
6169 #define HAVE_TERM_H 1
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6177 $as_echo_n "checking for ANSI C header files... " >&6; }
6178 if test "${ac_cv_header_stdc+set}" = set; then :
6179 $as_echo_n "(cached) " >&6
6181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6197 ac_cv_header_stdc
=yes
6199 ac_cv_header_stdc
=no
6201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6203 if test $ac_cv_header_stdc = yes; then
6204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 $EGREP "memchr" >/dev
/null
2>&1; then :
6214 ac_cv_header_stdc
=no
6220 if test $ac_cv_header_stdc = yes; then
6221 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 $EGREP "free" >/dev
/null
2>&1; then :
6231 ac_cv_header_stdc
=no
6237 if test $ac_cv_header_stdc = yes; then
6238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6239 if test "$cross_compiling" = yes; then :
6242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6246 #if ((' ' & 0x0FF) == 0x020)
6247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6250 # define ISLOWER(c) \
6251 (('a' <= (c) && (c) <= 'i') \
6252 || ('j' <= (c) && (c) <= 'r') \
6253 || ('s' <= (c) && (c) <= 'z'))
6254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6262 for (i = 0; i < 256; i++)
6263 if (XOR (islower (i), ISLOWER (i))
6264 || toupper (i) != TOUPPER (i))
6269 if ac_fn_c_try_run
"$LINENO"; then :
6272 ac_cv_header_stdc
=no
6274 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6275 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6281 $as_echo "$ac_cv_header_stdc" >&6; }
6282 if test $ac_cv_header_stdc = yes; then
6284 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6289 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6290 if test "${ac_cv_header_time+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <sys/types.h>
6296 #include <sys/time.h>
6302 if ((struct tm *) 0)
6308 if ac_fn_c_try_compile
"$LINENO"; then :
6309 ac_cv_header_time
=yes
6311 ac_cv_header_time
=no
6313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6316 $as_echo "$ac_cv_header_time" >&6; }
6317 if test $ac_cv_header_time = yes; then
6319 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6323 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6324 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6334 if test $ac_cv_have_decl_sys_siglist != yes; then
6335 # For Tru64, at least:
6336 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6337 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6343 cat >>confdefs.h
<<_ACEOF
6344 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6347 if test $ac_cv_have_decl___sys_siglist = yes; then
6349 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6354 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6355 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6356 $as_echo_n "(cached) " >&6
6358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360 #include <sys/types.h>
6361 #include <sys/wait.h>
6363 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6366 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6374 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6379 if ac_fn_c_try_compile
"$LINENO"; then :
6380 ac_cv_header_sys_wait_h
=yes
6382 ac_cv_header_sys_wait_h
=no
6384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6387 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6388 if test $ac_cv_header_sys_wait_h = yes; then
6390 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6396 $as_echo_n "checking for struct utimbuf... " >&6; }
6397 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #ifdef TIME_WITH_SYS_TIME
6403 #include <sys/time.h>
6406 #ifdef HAVE_SYS_TIME_H
6407 #include <sys/time.h>
6418 static struct utimbuf x; x.actime = x.modtime;
6423 if ac_fn_c_try_compile
"$LINENO"; then :
6424 emacs_cv_struct_utimbuf
=yes
6426 emacs_cv_struct_utimbuf
=no
6428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6431 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6432 if test $emacs_cv_struct_utimbuf = yes; then
6434 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6439 $as_echo_n "checking return type of signal handlers... " >&6; }
6440 if test "${ac_cv_type_signal+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 #include <sys/types.h>
6451 return *(signal (0, 0)) (0) == 1;
6456 if ac_fn_c_try_compile
"$LINENO"; then :
6457 ac_cv_type_signal
=int
6459 ac_cv_type_signal
=void
6461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6464 $as_echo "$ac_cv_type_signal" >&6; }
6466 cat >>confdefs.h
<<_ACEOF
6467 #define RETSIGTYPE $ac_cv_type_signal
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6473 $as_echo_n "checking for speed_t... " >&6; }
6474 if test "${emacs_cv_speed_t+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 #include <termios.h>
6488 if ac_fn_c_try_compile
"$LINENO"; then :
6489 emacs_cv_speed_t
=yes
6493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6496 $as_echo "$emacs_cv_speed_t" >&6; }
6497 if test $emacs_cv_speed_t = yes; then
6499 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6504 $as_echo_n "checking for struct timeval... " >&6; }
6505 if test "${emacs_cv_struct_timeval+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #ifdef TIME_WITH_SYS_TIME
6511 #include <sys/time.h>
6514 #ifdef HAVE_SYS_TIME_H
6515 #include <sys/time.h>
6523 static struct timeval x; x.tv_sec = x.tv_usec;
6528 if ac_fn_c_try_compile
"$LINENO"; then :
6529 emacs_cv_struct_timeval
=yes
6531 emacs_cv_struct_timeval
=no
6533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6536 $as_echo "$emacs_cv_struct_timeval" >&6; }
6537 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6538 if test $emacs_cv_struct_timeval = yes; then
6540 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6545 $as_echo_n "checking for struct exception... " >&6; }
6546 if test "${emacs_cv_struct_exception+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6555 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6560 if ac_fn_c_try_compile
"$LINENO"; then :
6561 emacs_cv_struct_exception
=yes
6563 emacs_cv_struct_exception
=no
6565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6568 $as_echo "$emacs_cv_struct_exception" >&6; }
6569 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6570 if test $emacs_cv_struct_exception != yes; then
6572 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6576 for ac_header
in sys
/socket.h
6578 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6579 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6580 cat >>confdefs.h
<<_ACEOF
6581 #define HAVE_SYS_SOCKET_H 1
6588 for ac_header
in net
/if.h
6590 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6591 #if HAVE_SYS_SOCKET_H
6592 #include <sys/socket.h>
6595 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6596 cat >>confdefs.h
<<_ACEOF
6597 #define HAVE_NET_IF_H 1
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6606 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6607 if test "${ac_cv_struct_tm+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6619 int *p = &tm.tm_sec;
6625 if ac_fn_c_try_compile
"$LINENO"; then :
6626 ac_cv_struct_tm
=time.h
6628 ac_cv_struct_tm
=sys
/time.h
6630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6633 $as_echo "$ac_cv_struct_tm" >&6; }
6634 if test $ac_cv_struct_tm = sys
/time.h
; then
6636 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6640 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6641 #include <$ac_cv_struct_tm>
6644 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6646 cat >>confdefs.h
<<_ACEOF
6647 #define HAVE_STRUCT_TM_TM_ZONE 1
6653 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6655 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6658 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6660 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6666 cat >>confdefs.h
<<_ACEOF
6667 #define HAVE_DECL_TZNAME $ac_have_decl
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6671 $as_echo_n "checking for tzname... " >&6; }
6672 if test "${ac_cv_var_tzname+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6678 #if !HAVE_DECL_TZNAME
6679 extern char *tzname[];
6685 return tzname[0][0];
6690 if ac_fn_c_try_link
"$LINENO"; then :
6691 ac_cv_var_tzname
=yes
6695 rm -f core conftest.err conftest.
$ac_objext \
6696 conftest
$ac_exeext conftest.
$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6699 $as_echo "$ac_cv_var_tzname" >&6; }
6700 if test $ac_cv_var_tzname = yes; then
6702 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6707 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6709 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6711 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6715 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6716 #if HAVE_SYS_SOCKET_H
6717 #include <sys/socket.h>
6723 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6725 cat >>confdefs.h
<<_ACEOF
6726 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6731 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6732 #if HAVE_SYS_SOCKET_H
6733 #include <sys/socket.h>
6739 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6741 cat >>confdefs.h
<<_ACEOF
6742 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6747 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6748 #if HAVE_SYS_SOCKET_H
6749 #include <sys/socket.h>
6755 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6757 cat >>confdefs.h
<<_ACEOF
6758 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6763 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6764 #if HAVE_SYS_SOCKET_H
6765 #include <sys/socket.h>
6771 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6773 cat >>confdefs.h
<<_ACEOF
6774 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6779 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6780 #if HAVE_SYS_SOCKET_H
6781 #include <sys/socket.h>
6787 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6789 cat >>confdefs.h
<<_ACEOF
6790 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6799 $as_echo_n "checking for function prototypes... " >&6; }
6800 if test "$ac_cv_prog_cc_c89" != no
; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6802 $as_echo "yes" >&6; }
6804 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6807 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6815 $as_echo_n "checking for working volatile... " >&6; }
6816 if test "${ac_cv_c_volatile+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
6819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6827 int * volatile y = (int *) 0;
6833 if ac_fn_c_try_compile
"$LINENO"; then :
6834 ac_cv_c_volatile
=yes
6838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6841 $as_echo "$ac_cv_c_volatile" >&6; }
6842 if test $ac_cv_c_volatile = no
; then
6844 $as_echo "#define volatile /**/" >>confdefs.h
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6849 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6850 if test "${ac_cv_c_const+set}" = set; then :
6851 $as_echo_n "(cached) " >&6
6853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6859 /* FIXME: Include the comments suggested by Paul. */
6861 /* Ultrix mips cc rejects this. */
6862 typedef int charset[2];
6864 /* SunOS 4.1.1 cc rejects this. */
6865 char const *const *pcpcc;
6867 /* NEC SVR4.0.2 mips cc rejects this. */
6868 struct point {int x, y;};
6869 static struct point const zero = {0,0};
6870 /* AIX XL C 1.02.0.0 rejects this.
6871 It does not let you subtract one const X* pointer from another in
6872 an arm of an if-expression whose if-part is not a constant
6874 const char *g = "string";
6875 pcpcc = &g + (g ? g-g : 0);
6876 /* HPUX 7.0 cc rejects these. */
6878 ppc = (char**) pcpcc;
6879 pcpcc = (char const *const *) ppc;
6880 { /* SCO 3.2v4 cc rejects this. */
6882 char const *s = 0 ? (char *) 0 : (char const *) 0;
6887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6889 const int *foo = &x[0];
6892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6893 typedef const int *iptr;
6897 { /* AIX XL C 1.02.0.0 rejects this saying
6898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6899 struct s { int j; const int *ap[3]; };
6900 struct s *b; b->j = 5;
6902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6906 return !cs[0] && !zero.x;
6913 if ac_fn_c_try_compile
"$LINENO"; then :
6918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6921 $as_echo "$ac_cv_c_const" >&6; }
6922 if test $ac_cv_c_const = no
; then
6924 $as_echo "#define const /**/" >>confdefs.h
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6929 $as_echo_n "checking for void * support... " >&6; }
6930 if test "${emacs_cv_void_star+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6944 if ac_fn_c_try_compile
"$LINENO"; then :
6945 emacs_cv_void_star
=yes
6947 emacs_cv_void_star
=no
6949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6952 $as_echo "$emacs_cv_void_star" >&6; }
6953 if test $emacs_cv_void_star = yes; then
6954 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6957 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6965 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6967 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6968 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6969 $as_echo_n "(cached) " >&6
6971 cat >conftest.
make <<\_ACEOF
6974 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6976 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6979 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6981 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6985 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6987 $as_echo "yes" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 SET_MAKE
="MAKE=${MAKE-make}"
6996 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6998 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7000 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7001 if test "x$testval" != x
; then
7004 ac_enable_autodepend
=no
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7007 $as_echo "$HAVE_GNU_MAKE" >&6; }
7008 if test $HAVE_GNU_MAKE = yes; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7010 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7011 SAVE_CFLAGS
="$CFLAGS"
7012 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7024 if ac_fn_c_try_compile
"$LINENO"; then :
7027 ac_enable_autodepend
=no
7029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 CFLAGS
="$SAVE_CFLAGS"
7031 test -f deps.d || ac_enable_autodepend
=no
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7034 $as_echo "$ac_enable_autodepend" >&6; }
7036 if test $ac_enable_autodepend = yes; then
7038 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7044 $as_echo_n "checking for long file names... " >&6; }
7045 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7048 ac_cv_sys_long_file_names
=yes
7049 # Test for long file names in all the places we know might matter:
7050 # . the current directory, where building will happen
7051 # $prefix/lib where we will be installing things
7052 # $exec_prefix/lib likewise
7053 # $TMPDIR if set, where it might want to write temporary files
7054 # /tmp where it might want to write temporary files
7057 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7058 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7059 # in the usual case where exec_prefix is '${prefix}'.
7061 . |
/* | ?
:[\\/]*) ;; #(
7064 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7065 ac_xdir
=$ac_dir/cf$$
7066 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7067 ac_tf1
=$ac_xdir/conftest9012345
7068 ac_tf2
=$ac_xdir/conftest9012346
7069 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7070 ac_cv_sys_long_file_names
=no
7071 rm -f -r "$ac_xdir" 2>/dev
/null
7072 test $ac_cv_sys_long_file_names = no
&& break
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7076 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7077 if test $ac_cv_sys_long_file_names = yes; then
7079 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7084 #### Choose a window system.
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7087 $as_echo_n "checking for X... " >&6; }
7090 # Check whether --with-x was given.
7091 if test "${with_x+set}" = set; then :
7095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7096 if test "x$with_x" = xno
; then
7097 # The user explicitly disabled X.
7100 case $x_includes,$x_libraries in #(
7101 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7102 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 # One or both of the vars are not set, and there is no cached value.
7106 ac_x_includes
=no ac_x_libraries
=no
7107 rm -f -r conftest.dir
7108 if mkdir conftest.dir
; then
7110 cat >Imakefile
<<'_ACEOF'
7112 @echo incroot='${INCROOT}'
7114 @echo usrlibdir='${USRLIBDIR}'
7116 @echo libdir='${LIBDIR}'
7118 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7120 for ac_var
in incroot usrlibdir libdir
; do
7121 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7124 for ac_extension
in a so sl dylib la dll
; do
7125 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7126 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7127 ac_im_usrlibdir
=$ac_im_libdir; break
7130 # Screen out bogus values from the imake configuration. They are
7131 # bogus both because they are the default anyway, and because
7132 # using them would break gcc on systems where it needs fixed includes.
7133 case $ac_im_incroot in
7134 /usr
/include
) ac_x_includes
= ;;
7135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7137 case $ac_im_usrlibdir in
7138 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7143 rm -f -r conftest.dir
7146 # Standard set of common directories for X headers.
7147 # Check X11 before X11Rn because it is often a symlink to the current release.
7161 /usr/local/X11/include
7162 /usr/local/X11R7/include
7163 /usr/local/X11R6/include
7164 /usr/local/X11R5/include
7165 /usr/local/X11R4/include
7167 /usr/local/include/X11
7168 /usr/local/include/X11R7
7169 /usr/local/include/X11R6
7170 /usr/local/include/X11R5
7171 /usr/local/include/X11R4
7175 /usr/XFree86/include/X11
7179 /usr/unsupported/include
7181 /usr/local/x11r5/include
7182 /usr/lpp/Xamples/include
7184 /usr/openwin/include
7185 /usr/openwin/share/include'
7187 if test "$ac_x_includes" = no
; then
7188 # Guess where to find include files, by looking for Xlib.h.
7189 # First, try using that file with no special directory specified.
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <X11/Xlib.h>
7194 if ac_fn_c_try_cpp
"$LINENO"; then :
7195 # We can compile using X headers with no special include directory.
7198 for ac_dir
in $ac_x_header_dirs; do
7199 if test -r "$ac_dir/X11/Xlib.h"; then
7200 ac_x_includes
=$ac_dir
7205 rm -f conftest.err conftest.
$ac_ext
7206 fi # $ac_x_includes = no
7208 if test "$ac_x_libraries" = no
; then
7209 # Check for the libraries.
7210 # See if we find them without any special options.
7211 # Don't add to $LIBS permanently.
7214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <X11/Xlib.h>
7225 if ac_fn_c_try_link
"$LINENO"; then :
7227 # We can link X programs with no special library path.
7231 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7233 # Don't even attempt the hair of trying to link an X program!
7234 for ac_extension
in a so sl dylib la dll
; do
7235 if test -r "$ac_dir/libX11.$ac_extension"; then
7236 ac_x_libraries
=$ac_dir
7242 rm -f core conftest.err conftest.
$ac_objext \
7243 conftest
$ac_exeext conftest.
$ac_ext
7244 fi # $ac_x_libraries = no
7246 case $ac_x_includes,$ac_x_libraries in #(
7248 # Didn't find X, or a directory has "'" in its name.
7249 ac_cv_have_x
="have_x=no";; #(
7251 # Record where we found X for the cache.
7252 ac_cv_have_x
="have_x=yes\
7253 ac_x_includes='$ac_x_includes'\
7254 ac_x_libraries='$ac_x_libraries'"
7260 eval "$ac_cv_have_x"
7263 if test "$have_x" != yes; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7265 $as_echo "$have_x" >&6; }
7268 # If each of the values was on the command line, it overrides each guess.
7269 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7270 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7271 # Update the cache value to reflect the command line values.
7272 ac_cv_have_x
="have_x=yes\
7273 ac_x_includes='$x_includes'\
7274 ac_x_libraries='$x_libraries'"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7276 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7279 if test "$no_x" = yes; then
7285 ## Workaround for bug in autoconf <= 2.62.
7286 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7287 ## No need to do anything special for these standard directories.
7288 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7290 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7294 LD_SWITCH_X_SITE_AUX
=
7295 LD_SWITCH_X_SITE_AUX_RPATH
=
7296 if test "${x_libraries}" != NONE
; then
7297 if test -n "${x_libraries}"; then
7298 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7299 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7300 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7302 x_default_search_path
=""
7303 x_search_path
=${x_libraries}
7304 if test -z "${x_search_path}"; then
7305 x_search_path
=/usr
/lib
7307 for x_library
in `echo ${x_search_path}: | \
7308 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7310 ${x_library}/X11/%L/%T/%N%C%S:\
7311 ${x_library}/X11/%l/%T/%N%C%S:\
7312 ${x_library}/X11/%T/%N%C%S:\
7313 ${x_library}/X11/%L/%T/%N%S:\
7314 ${x_library}/X11/%l/%T/%N%S:\
7315 ${x_library}/X11/%T/%N%S"
7316 if test x
"${x_default_search_path}" = x
; then
7317 x_default_search_path
=${x_search_path}
7319 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7326 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7327 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7330 if test x
"${x_includes}" = x
; then
7331 bitmapdir
=/usr
/include
/X11
/bitmaps
7333 # accumulate include directories that have X11 bitmap subdirectories
7335 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7336 if test -d "${bmd}/X11/bitmaps"; then
7337 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7339 if test -d "${bmd}/bitmaps"; then
7340 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7343 if test ${bmd_acc} != "dummyval"; then
7344 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7351 NS_IMPL_GNUSTEP_INC
=
7352 tmp_CPPFLAGS
="$CPPFLAGS"
7353 tmp_CFLAGS
="$CFLAGS"
7354 CPPFLAGS
="$CPPFLAGS -x objective-c"
7355 CFLAGS
="$CFLAGS -x objective-c"
7356 if test "${with_ns}" != no
; then
7357 if test "${opsys}" = darwin
; then
7359 ns_appdir
=`pwd`/nextstep
/Emacs.app
7360 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7361 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7362 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7363 elif test -f $GNUSTEP_CONFIG_FILE; then
7365 ns_appdir
=`pwd`/nextstep
/Emacs.app
7366 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7367 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7368 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7369 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7370 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7371 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7372 ## Pull in stuff from GNUstep-make.
7373 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
7375 include $GNUSTEP_MAKEFILES/Additional/base.make
7376 include $GNUSTEP_MAKEFILES/Additional/gui.make
7379 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7380 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7381 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7382 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7385 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7386 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7389 as_fn_error
"\`--with-ns' was specified, but the include
7390 files are missing or cannot be compiled." "$LINENO" 5
7394 NS_HAVE_NSINTEGER
=yes
7395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <Foundation/NSObjCRuntime.h>
7406 if ac_fn_c_try_compile
"$LINENO"; then :
7407 ns_have_nsinteger
=yes
7409 ns_have_nsinteger
=no
7411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7412 if test $ns_have_nsinteger = no
; then
7413 NS_HAVE_NSINTEGER
=no
7420 if test "${HAVE_NS}" = yes; then
7421 window_system
=nextstep
7423 # set up packaging dirs
7424 exec_prefix
=${ns_appbindir}
7425 libexecdir
=${ns_appbindir}/libexec
7426 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7427 prefix
=${ns_appresdir}
7429 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7430 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7432 CFLAGS
="$tmp_CFLAGS"
7433 CPPFLAGS
="$tmp_CPPFLAGS"
7438 case "${window_system}" in
7442 case "${with_x_toolkit}" in
7443 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7444 motif
) USE_X_TOOLKIT
=MOTIF
;;
7446 USE_X_TOOLKIT
=none
;;
7447 no
) USE_X_TOOLKIT
=none
;;
7448 * ) USE_X_TOOLKIT
=maybe
;;
7458 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7459 # Extract the first word of "X", so it can be a program name with args.
7460 set dummy X
; ac_word
=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$HAVE_XSERVER"; then
7467 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_HAVE_XSERVER
="true"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7487 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7488 if test -n "$HAVE_XSERVER"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7490 $as_echo "$HAVE_XSERVER" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7497 if test "$HAVE_XSERVER" = true ||
7498 test -n "$DISPLAY" ||
7499 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7500 as_fn_error
"You seem to be running X, but no X development libraries
7501 were found. You should install the relevant development files for X
7502 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7503 sure you have development files for image handling, i.e.
7504 tiff, gif, jpeg, png and xpm.
7505 If you are sure you want Emacs compiled without X window support, pass
7507 to configure." "$LINENO" 5
7511 ### If we're using X11, we should use the X menu package.
7514 yes ) HAVE_MENUS
=yes ;;
7517 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7518 # Assume not, until told otherwise.
7521 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7522 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7528 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7529 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7536 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7537 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 extern void (* __after_morecore_hook)();
7546 __after_morecore_hook = 0
7551 if ac_fn_c_try_link
"$LINENO"; then :
7552 emacs_cv_var___after_morecore_hook
=yes
7554 emacs_cv_var___after_morecore_hook
=no
7556 rm -f core conftest.err conftest.
$ac_objext \
7557 conftest
$ac_exeext conftest.
$ac_ext
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7560 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7561 if test $emacs_cv_var___after_morecore_hook = no
; then
7564 if test "${system_malloc}" = "yes"; then
7567 (The GNU allocators don't work with this system configuration.)"
7569 if test "$doug_lea_malloc" = "yes" ; then
7570 if test "$GNU_MALLOC" = yes ; then
7572 (Using Doug Lea's new malloc from the GNU C Library.)"
7575 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7579 if test x
"${REL_ALLOC}" = x
; then
7580 REL_ALLOC
=${GNU_MALLOC}
7587 for ac_header
in $ac_header_list
7589 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7590 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7592 eval as_val
=\$
$as_ac_Header
7593 if test "x$as_val" = x
""yes; then :
7594 cat >>confdefs.h
<<_ACEOF
7595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7609 for ac_func
in getpagesize
7611 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7612 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7613 cat >>confdefs.h
<<_ACEOF
7614 #define HAVE_GETPAGESIZE 1
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7621 $as_echo_n "checking for working mmap... " >&6; }
7622 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7625 if test "$cross_compiling" = yes; then :
7626 ac_cv_func_mmap_fixed_mapped
=no
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 /* malloc might have been renamed as rpl_malloc. */
7634 /* Thanks to Mike Haertel and Jim Avera for this test.
7635 Here is a matrix of mmap possibilities:
7636 mmap private not fixed
7637 mmap private fixed at somewhere currently unmapped
7638 mmap private fixed at somewhere already mapped
7639 mmap shared not fixed
7640 mmap shared fixed at somewhere currently unmapped
7641 mmap shared fixed at somewhere already mapped
7642 For private mappings, we should verify that changes cannot be read()
7643 back from the file, nor mmap's back from the file at a different
7644 address. (There have been systems where private was not correctly
7645 implemented like the infamous i386 svr4.0, and systems where the
7646 VM page cache was not coherent with the file system buffer cache
7647 like early versions of FreeBSD and possibly contemporary NetBSD.)
7648 For shared mappings, we should conversely verify that changes get
7649 propagated back to all the places they're supposed to be.
7651 Grep wants private fixed already mapped.
7652 The main things grep needs to know about mmap are:
7653 * does it exist and is it safe to write into the mmap'd area
7654 * how to use it (BSD variants) */
7657 #include <sys/mman.h>
7659 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7663 /* This mess was copied from the GNU getpagesize.h. */
7664 #ifndef HAVE_GETPAGESIZE
7665 # ifdef _SC_PAGESIZE
7666 # define getpagesize() sysconf(_SC_PAGESIZE)
7667 # else /* no _SC_PAGESIZE */
7668 # ifdef HAVE_SYS_PARAM_H
7669 # include <sys/param.h>
7670 # ifdef EXEC_PAGESIZE
7671 # define getpagesize() EXEC_PAGESIZE
7672 # else /* no EXEC_PAGESIZE */
7674 # define getpagesize() NBPG * CLSIZE
7677 # endif /* no CLSIZE */
7678 # else /* no NBPG */
7680 # define getpagesize() NBPC
7681 # else /* no NBPC */
7683 # define getpagesize() PAGESIZE
7684 # endif /* PAGESIZE */
7685 # endif /* no NBPC */
7686 # endif /* no NBPG */
7687 # endif /* no EXEC_PAGESIZE */
7688 # else /* no HAVE_SYS_PARAM_H */
7689 # define getpagesize() 8192 /* punt totally */
7690 # endif /* no HAVE_SYS_PARAM_H */
7691 # endif /* no _SC_PAGESIZE */
7693 #endif /* no HAVE_GETPAGESIZE */
7698 char *data, *data2, *data3;
7703 pagesize = getpagesize ();
7705 /* First, make a file with some known garbage in it. */
7706 data = (char *) malloc (pagesize);
7709 for (i = 0; i < pagesize; ++i)
7710 *(data + i) = rand ();
7712 fd = creat ("conftest.mmap", 0600);
7715 if (write (fd, data, pagesize) != pagesize)
7719 /* Next, check that the tail of a page is zero-filled. File must have
7720 non-zero length, otherwise we risk SIGBUS for entire page. */
7721 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7725 if (write (fd2, cdata2, 1) != 1)
7727 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7728 if (data2 == MAP_FAILED)
7730 for (i = 0; i < pagesize; ++i)
7734 if (munmap (data2, pagesize))
7737 /* Next, try to mmap the file at a fixed address which already has
7738 something else allocated at it. If we can, also make sure that
7739 we see the same garbage. */
7740 fd = open ("conftest.mmap", O_RDWR);
7743 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7744 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7746 for (i = 0; i < pagesize; ++i)
7747 if (*(data + i) != *(data2 + i))
7750 /* Finally, make sure that changes to the mapped area do not
7751 percolate back to the file as seen by read(). (This is a bug on
7752 some variants of i386 svr4.0.) */
7753 for (i = 0; i < pagesize; ++i)
7754 *(data2 + i) = *(data2 + i) + 1;
7755 data3 = (char *) malloc (pagesize);
7758 if (read (fd, data3, pagesize) != pagesize)
7760 for (i = 0; i < pagesize; ++i)
7761 if (*(data + i) != *(data3 + i))
7767 if ac_fn_c_try_run
"$LINENO"; then :
7768 ac_cv_func_mmap_fixed_mapped
=yes
7770 ac_cv_func_mmap_fixed_mapped
=no
7772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7778 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7779 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7781 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7784 rm -f conftest.mmap conftest.txt
7786 if test $use_mmap_for_buffers = yes; then
7790 LIBS
="$LIBS_SYSTEM $LIBS"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7793 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7794 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 ac_check_lib_save_LIBS
=$LIBS
7799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7812 return dnet_ntoa ();
7817 if ac_fn_c_try_link
"$LINENO"; then :
7818 ac_cv_lib_dnet_dnet_ntoa
=yes
7820 ac_cv_lib_dnet_dnet_ntoa
=no
7822 rm -f core conftest.err conftest.
$ac_objext \
7823 conftest
$ac_exeext conftest.
$ac_ext
7824 LIBS
=$ac_check_lib_save_LIBS
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7827 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7828 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7829 cat >>confdefs.h
<<_ACEOF
7830 #define HAVE_LIBDNET 1
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7839 $as_echo_n "checking for main in -lXbsd... " >&6; }
7840 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7843 ac_check_lib_save_LIBS
=$LIBS
7845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7857 if ac_fn_c_try_link
"$LINENO"; then :
7858 ac_cv_lib_Xbsd_main
=yes
7860 ac_cv_lib_Xbsd_main
=no
7862 rm -f core conftest.err conftest.
$ac_objext \
7863 conftest
$ac_exeext conftest.
$ac_ext
7864 LIBS
=$ac_check_lib_save_LIBS
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7868 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7869 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7874 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7875 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7878 ac_check_lib_save_LIBS
=$LIBS
7879 LIBS
="-lpthreads $LIBS"
7880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7883 /* Override any GCC internal prototype to avoid an error.
7884 Use char because int might match the return type of a GCC
7885 builtin and then its argument prototype would still apply. */
7898 if ac_fn_c_try_link
"$LINENO"; then :
7899 ac_cv_lib_pthreads_cma_open
=yes
7901 ac_cv_lib_pthreads_cma_open
=no
7903 rm -f core conftest.err conftest.
$ac_objext \
7904 conftest
$ac_exeext conftest.
$ac_ext
7905 LIBS
=$ac_check_lib_save_LIBS
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7908 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7909 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7910 cat >>confdefs.h
<<_ACEOF
7911 #define HAVE_LIBPTHREADS 1
7914 LIBS
="-lpthreads $LIBS"
7919 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7920 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7921 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7922 ## added to LIBS in configure would never contain the pthreads part,
7923 ## but the value used in Makefiles might. FIXME?
7925 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7926 ## be harmless on older versions of X where it happens to exist.
7927 test "$opsys" = "aix4-2" && \
7928 test $ac_cv_lib_pthreads_cma_open = yes && \
7929 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7935 $as_echo_n "checking for -bbigtoc option... " >&6; }
7936 if test "${gdb_cv_bigtoc+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7941 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7942 *) gdb_cv_bigtoc
=-bbigtoc ;;
7945 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7957 if ac_fn_c_try_link
"$LINENO"; then :
7962 rm -f core conftest.err conftest.
$ac_objext \
7963 conftest
$ac_exeext conftest.
$ac_ext
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7967 $as_echo "$gdb_cv_bigtoc" >&6; }
7971 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7972 # used for the tests that follow. We set them back to REAL_CFLAGS and
7973 # REAL_CPPFLAGS later on.
7975 REAL_CPPFLAGS
="$CPPFLAGS"
7977 if test "${HAVE_X11}" = "yes"; then
7978 DEFS
="$C_SWITCH_X_SITE $DEFS"
7979 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7981 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7982 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7984 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7985 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7986 # but it's more convenient here to set LD_RUN_PATH
7987 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7988 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7989 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7993 if test "${opsys}" = "gnu-linux"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7995 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
8002 XOpenDisplay ("foo");
8007 if ac_fn_c_try_link
"$LINENO"; then :
8008 xlinux_first_failure
=no
8010 xlinux_first_failure
=yes
8012 rm -f core conftest.err conftest.
$ac_objext \
8013 conftest
$ac_exeext conftest.
$ac_ext
8014 if test "${xlinux_first_failure}" = "yes"; then
8015 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8016 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8017 OLD_CPPFLAGS
="$CPPFLAGS"
8019 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8020 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8021 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8022 LIBS
="$LIBS -b i486-linuxaout"
8023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8029 XOpenDisplay ("foo");
8034 if ac_fn_c_try_link
"$LINENO"; then :
8035 xlinux_second_failure
=no
8037 xlinux_second_failure
=yes
8039 rm -f core conftest.err conftest.
$ac_objext \
8040 conftest
$ac_exeext conftest.
$ac_ext
8041 if test "${xlinux_second_failure}" = "yes"; then
8042 # If we get the same failure with -b, there is no use adding -b.
8043 # So take it out. This plays safe.
8044 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8045 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8046 CPPFLAGS
="$OLD_CPPFLAGS"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 $as_echo "yes" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8060 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8061 # header files included from there.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8063 $as_echo_n "checking for Xkb... " >&6; }
8064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include <X11/Xlib.h>
8067 #include <X11/XKBlib.h>
8071 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8076 if ac_fn_c_try_link
"$LINENO"; then :
8081 rm -f core conftest.err conftest.
$ac_objext \
8082 conftest
$ac_exeext conftest.
$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8084 $as_echo "$emacs_xkb" >&6; }
8085 if test $emacs_xkb = yes; then
8087 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8091 for ac_func
in XrmSetDatabase XScreenResourceString \
8092 XScreenNumberOfScreen XSetWMProtocols
8094 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8095 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8096 eval as_val
=\$
$as_ac_var
8097 if test "x$as_val" = x
""yes; then :
8098 cat >>confdefs.h
<<_ACEOF
8099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8107 if test "${window_system}" = "x11"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8109 $as_echo_n "checking X11 version 6... " >&6; }
8110 if test "${emacs_cv_x11_version_6+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <X11/Xlib.h>
8119 #if XlibSpecificationRelease < 6
8127 if ac_fn_c_try_link
"$LINENO"; then :
8128 emacs_cv_x11_version_6
=yes
8130 emacs_cv_x11_version_6
=no
8132 rm -f core conftest.err conftest.
$ac_objext \
8133 conftest
$ac_exeext conftest.
$ac_ext
8136 if test $emacs_cv_x11_version_6 = yes; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8138 $as_echo "6 or newer" >&6; }
8140 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8144 $as_echo "before 6" >&6; }
8149 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8151 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8152 if test "${with_rsvg}" != "no"; then
8153 RSVG_REQUIRED
=2.11.0
8154 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8159 # Extract the first word of "pkg-config", so it can be a program name with args.
8160 set dummy pkg-config
; ac_word
=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8168 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir
=.
8176 for ac_exec_ext
in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8190 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8191 if test -n "$PKG_CONFIG"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8193 $as_echo "$PKG_CONFIG" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8201 if test "$PKG_CONFIG" = "no" ; then
8204 PKG_CONFIG_MIN_VERSION
=0.9.0
8205 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8207 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8209 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8215 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8216 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8218 $as_echo "$RSVG_CFLAGS" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8221 $as_echo_n "checking RSVG_LIBS... " >&6; }
8222 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8224 $as_echo "$RSVG_LIBS" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8230 ## If we have a custom action on failure, don't print errors, but
8231 ## do set a variable so people can do so.
8232 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8239 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8240 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8244 if test $succeeded = yes; then
8253 if test ".${RSVG_CFLAGS}" != "."; then
8256 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8258 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8259 LIBS
="$RSVG_LIBS $LIBS"
8266 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8269 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8274 # Extract the first word of "pkg-config", so it can be a program name with args.
8275 set dummy pkg-config
; ac_word
=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8283 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir
=.
8291 for ac_exec_ext
in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8305 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8306 if test -n "$PKG_CONFIG"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8308 $as_echo "$PKG_CONFIG" >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8316 if test "$PKG_CONFIG" = "no" ; then
8319 PKG_CONFIG_MIN_VERSION
=0.9.0
8320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8322 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8324 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8326 $as_echo "yes" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8330 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8331 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8333 $as_echo "$GTK_CFLAGS" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8336 $as_echo_n "checking GTK_LIBS... " >&6; }
8337 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8339 $as_echo "$GTK_LIBS" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8345 ## If we have a custom action on failure, don't print errors, but
8346 ## do set a variable so people can do so.
8347 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8359 if test $succeeded = yes; then
8365 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8366 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8372 if test x
"$pkg_check_gtk" = xyes
; then
8376 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8377 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8378 LIBS
="$GTK_LIBS $LIBS"
8380 for ac_func
in gtk_main
8382 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8383 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8384 cat >>confdefs.h
<<_ACEOF
8385 #define HAVE_GTK_MAIN 1
8391 if test "${GTK_COMPILES}" != "yes"; then
8392 if test "$USE_X_TOOLKIT" != "maybe"; then
8393 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8398 $as_echo "#define USE_GTK 1" >>confdefs.h
8402 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8406 closing open displays. This is no problem if you just use
8407 one display, but if you use more than one and close one of them
8408 Emacs may crash." >&5
8409 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8410 closing open displays. This is no problem if you just use
8411 one display, but if you use more than one and close one of them
8412 Emacs may crash." >&2;}
8421 if test "${HAVE_GTK}" = "yes"; then
8423 if test "$with_toolkit_scroll_bars" != no
; then
8424 with_toolkit_scroll_bars
=yes
8427 HAVE_GTK_MULTIDISPLAY
=no
8428 for ac_func
in gdk_display_open
8430 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8431 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8432 cat >>confdefs.h
<<_ACEOF
8433 #define HAVE_GDK_DISPLAY_OPEN 1
8435 HAVE_GTK_MULTIDISPLAY
=yes
8439 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8441 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8445 HAVE_GTK_FILE_SELECTION
=no
8446 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8447 #include <gtk/gtk.h>
8449 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8450 HAVE_GTK_FILE_SELECTION
=yes
8452 HAVE_GTK_FILE_SELECTION
=no
8455 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8456 for ac_func
in gtk_file_selection_new
8458 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8459 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8460 cat >>confdefs.h
<<_ACEOF
8461 #define HAVE_GTK_FILE_SELECTION_NEW 1
8463 HAVE_GTK_FILE_SELECTION
=yes
8465 HAVE_GTK_FILE_SELECTION
=no
8471 HAVE_GTK_FILE_CHOOSER
=no
8472 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8473 #include <gtk/gtk.h>
8475 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8476 HAVE_GTK_FILE_CHOOSER
=yes
8478 HAVE_GTK_FILE_CHOOSER
=no
8481 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8482 for ac_func
in gtk_file_chooser_dialog_new
8484 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8485 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8486 cat >>confdefs.h
<<_ACEOF
8487 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8489 HAVE_GTK_FILE_CHOOSER
=yes
8491 HAVE_GTK_FILE_CHOOSER
=no
8497 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8498 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8500 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8504 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8505 HAVE_GTK_AND_PTHREAD
=no
8506 for ac_header
in pthread.h
8508 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8509 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8510 cat >>confdefs.h
<<_ACEOF
8511 #define HAVE_PTHREAD_H 1
8518 if test "$ac_cv_header_pthread_h"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8520 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8521 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8524 ac_check_lib_save_LIBS
=$LIBS
8525 LIBS
="-lpthread $LIBS"
8526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8535 char pthread_self ();
8539 return pthread_self ();
8544 if ac_fn_c_try_link
"$LINENO"; then :
8545 ac_cv_lib_pthread_pthread_self
=yes
8547 ac_cv_lib_pthread_pthread_self
=no
8549 rm -f core conftest.err conftest.
$ac_objext \
8550 conftest
$ac_exeext conftest.
$ac_ext
8551 LIBS
=$ac_check_lib_save_LIBS
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8554 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8555 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8556 HAVE_GTK_AND_PTHREAD
=yes
8560 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8561 case "${canonical}" in
8563 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8566 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8574 if test "${with_dbus}" = "yes"; then
8578 # Extract the first word of "pkg-config", so it can be a program name with args.
8579 set dummy pkg-config
; ac_word
=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8587 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir
=.
8595 for ac_exec_ext
in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8609 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8610 if test -n "$PKG_CONFIG"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8612 $as_echo "$PKG_CONFIG" >&6; }
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8620 if test "$PKG_CONFIG" = "no" ; then
8623 PKG_CONFIG_MIN_VERSION
=0.9.0
8624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8626 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8628 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8630 $as_echo "yes" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8634 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8635 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8637 $as_echo "$DBUS_CFLAGS" >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8640 $as_echo_n "checking DBUS_LIBS... " >&6; }
8641 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8643 $as_echo "$DBUS_LIBS" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8649 ## If we have a custom action on failure, don't print errors, but
8650 ## do set a variable so people can do so.
8651 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8658 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8659 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8663 if test $succeeded = yes; then
8669 if test "$HAVE_DBUS" = yes; then
8670 LIBS
="$LIBS $DBUS_LIBS"
8672 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8674 for ac_func
in dbus_watch_get_unix_fd
8676 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8677 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8678 cat >>confdefs.h
<<_ACEOF
8679 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8691 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8695 # Extract the first word of "pkg-config", so it can be a program name with args.
8696 set dummy pkg-config
; ac_word
=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8704 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8711 test -z "$as_dir" && as_dir
=.
8712 for ac_exec_ext
in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8726 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8727 if test -n "$PKG_CONFIG"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8729 $as_echo "$PKG_CONFIG" >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8737 if test "$PKG_CONFIG" = "no" ; then
8740 PKG_CONFIG_MIN_VERSION
=0.9.0
8741 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8743 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8745 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8747 $as_echo "yes" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8751 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8752 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8754 $as_echo "$GCONF_CFLAGS" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8757 $as_echo_n "checking GCONF_LIBS... " >&6; }
8758 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8760 $as_echo "$GCONF_LIBS" >&6; }
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8766 ## If we have a custom action on failure, don't print errors, but
8767 ## do set a variable so people can do so.
8768 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8775 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8776 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8780 if test $succeeded = yes; then
8786 if test "$HAVE_GCONF" = yes; then
8788 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8795 if test "${with_selinux}" = "yes"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8797 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8798 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8801 ac_check_lib_save_LIBS
=$LIBS
8802 LIBS
="-lselinux $LIBS"
8803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8812 char lgetfilecon ();
8816 return lgetfilecon ();
8821 if ac_fn_c_try_link
"$LINENO"; then :
8822 ac_cv_lib_selinux_lgetfilecon
=yes
8824 ac_cv_lib_selinux_lgetfilecon
=no
8826 rm -f core conftest.err conftest.
$ac_objext \
8827 conftest
$ac_exeext conftest.
$ac_ext
8828 LIBS
=$ac_check_lib_save_LIBS
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8831 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8832 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
8838 if test "$HAVE_LIBSELINUX" = yes; then
8840 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8842 LIBSELINUX_LIBS
=-lselinux
8849 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8850 if test "$with_xaw3d" != no
; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8852 $as_echo_n "checking for xaw3d... " >&6; }
8853 if test "${emacs_cv_xaw3d+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8859 #include <X11/Intrinsic.h>
8860 #include <X11/Xaw3d/Simple.h>
8869 if ac_fn_c_try_link
"$LINENO"; then :
8874 rm -f core conftest.err conftest.
$ac_objext \
8875 conftest
$ac_exeext conftest.
$ac_ext
8881 if test $emacs_cv_xaw3d = yes; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8883 $as_echo "yes; using Lucid toolkit" >&6; }
8888 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8894 $as_echo_n "checking for libXaw... " >&6; }
8895 if test "${emacs_cv_xaw+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
8898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 #include <X11/Intrinsic.h>
8902 #include <X11/Xaw/Simple.h>
8911 if ac_fn_c_try_link
"$LINENO"; then :
8916 rm -f core conftest.err conftest.
$ac_objext \
8917 conftest
$ac_exeext conftest.
$ac_ext
8920 if test $emacs_cv_xaw = yes; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8922 $as_echo "yes; using Lucid toolkit" >&6; }
8925 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8926 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8929 $as_echo "no; do not use toolkit by default" >&6; }
8935 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8938 if test "${USE_X_TOOLKIT}" != "none"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8940 $as_echo_n "checking X11 toolkit version... " >&6; }
8941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #include <X11/Intrinsic.h>
8950 #if XtSpecificationRelease < 6
8958 if ac_fn_c_try_link
"$LINENO"; then :
8959 emacs_cv_x11_toolkit_version_6
=yes
8961 emacs_cv_x11_toolkit_version_6
=no
8963 rm -f core conftest.err conftest.
$ac_objext \
8964 conftest
$ac_exeext conftest.
$ac_ext
8967 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8968 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8970 $as_echo "6 or newer" >&6; }
8972 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8974 LIBXTR6
="-lSM -lICE"
8976 ## Use libw.a along with X11R6 Xt.
8977 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8981 $as_echo "before 6" >&6; }
8985 if test x
$HAVE_X11XTR6 = xyes
; then
8986 LIBS
="-lXt -lSM -lICE $LIBS"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8991 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8992 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8995 ac_check_lib_save_LIBS
=$LIBS
8997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
9000 /* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9006 char XmuConvertStandardSelection ();
9010 return XmuConvertStandardSelection ();
9015 if ac_fn_c_try_link
"$LINENO"; then :
9016 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9018 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9020 rm -f core conftest.err conftest.
$ac_objext \
9021 conftest
$ac_exeext conftest.
$ac_ext
9022 LIBS
=$ac_check_lib_save_LIBS
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9025 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9026 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9027 cat >>confdefs.h
<<_ACEOF
9028 #define HAVE_LIBXMU 1
9035 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9041 ## These machines don't supply Xmu.
9043 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9048 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9049 if test "${HAVE_X11}" = "yes"; then
9050 if test "${USE_X_TOOLKIT}" != "none"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9052 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9053 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9056 ac_check_lib_save_LIBS
=$LIBS
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9067 char XShapeQueryExtension ();
9071 return XShapeQueryExtension ();
9076 if ac_fn_c_try_link
"$LINENO"; then :
9077 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9079 ac_cv_lib_Xext_XShapeQueryExtension
=no
9081 rm -f core conftest.err conftest.
$ac_objext \
9082 conftest
$ac_exeext conftest.
$ac_ext
9083 LIBS
=$ac_check_lib_save_LIBS
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9086 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9087 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9088 cat >>confdefs.h
<<_ACEOF
9089 #define HAVE_LIBXEXT 1
9100 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9102 $as_echo_n "checking for Motif version 2.1... " >&6; }
9103 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9112 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9115 Motif version prior to 2.1.
9121 if ac_fn_c_try_compile
"$LINENO"; then :
9122 emacs_cv_motif_version_2_1
=yes
9124 emacs_cv_motif_version_2_1
=no
9126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9129 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9130 if test $emacs_cv_motif_version_2_1 = yes; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9132 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9133 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9136 ac_check_lib_save_LIBS
=$LIBS
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9141 /* Override any GCC internal prototype to avoid an error.
9142 Use char because int might match the return type of a GCC
9143 builtin and then its argument prototype would still apply. */
9147 char XpCreateContext ();
9151 return XpCreateContext ();
9156 if ac_fn_c_try_link
"$LINENO"; then :
9157 ac_cv_lib_Xp_XpCreateContext
=yes
9159 ac_cv_lib_Xp_XpCreateContext
=no
9161 rm -f core conftest.err conftest.
$ac_objext \
9162 conftest
$ac_exeext conftest.
$ac_ext
9163 LIBS
=$ac_check_lib_save_LIBS
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9166 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9167 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9173 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9174 if test "${emacs_cv_lesstif+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9177 # We put this in CFLAGS temporarily to precede other -I options
9178 # that might be in CFLAGS temporarily.
9179 # We put this in CPPFLAGS where it precedes the other -I options.
9180 OLD_CPPFLAGS
=$CPPFLAGS
9182 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9183 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9195 if ac_fn_c_try_compile
"$LINENO"; then :
9196 emacs_cv_lesstif
=yes
9200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9203 $as_echo "$emacs_cv_lesstif" >&6; }
9204 if test $emacs_cv_lesstif = yes; then
9205 # Make sure this -I option remains in CPPFLAGS after it is set
9206 # back to REAL_CPPFLAGS.
9207 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9208 # have those other -I options anyway. Ultimately, having this
9209 # directory ultimately in CPPFLAGS will be enough.
9210 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9211 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9214 CPPFLAGS
=$OLD_CPPFLAGS
9220 USE_TOOLKIT_SCROLL_BARS
=no
9221 if test "${with_toolkit_scroll_bars}" != "no"; then
9222 if test "${USE_X_TOOLKIT}" != "none"; then
9223 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9224 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9227 USE_TOOLKIT_SCROLL_BARS
=yes
9228 elif test "${HAVE_XAW3D}" = "yes"; then
9229 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9231 USE_TOOLKIT_SCROLL_BARS
=yes
9233 elif test "${HAVE_GTK}" = "yes"; then
9234 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9236 USE_TOOLKIT_SCROLL_BARS
=yes
9237 elif test "${HAVE_NS}" = "yes"; then
9238 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9240 USE_TOOLKIT_SCROLL_BARS
=yes
9244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9247 #include <X11/Xlib.h>
9248 #include <X11/Xresource.h>
9257 if ac_fn_c_try_compile
"$LINENO"; then :
9260 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9268 if test "${with_xim}" != "no"; then
9270 $as_echo "#define USE_XIM 1" >>confdefs.h
9275 if test "${HAVE_XIM}" != "no"; then
9277 if test "$GCC" = yes; then
9278 CFLAGS
="$CFLAGS --pedantic-errors"
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 #include <X11/Xlib.h>
9284 #include <X11/Xresource.h>
9293 XPointer *client_data;
9295 /* If we're not using GCC, it's probably not XFree86, and this is
9296 probably right, but we can't use something like --pedantic-errors. */
9297 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9298 char*, XIMProc, XPointer*);
9300 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9306 if ac_fn_c_try_compile
"$LINENO"; then :
9307 emacs_cv_arg6_star
=yes
9309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9310 if test "$emacs_cv_arg6_star" = yes; then
9311 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9314 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9320 ### Start of font-backend (under any platform) section.
9321 # (nothing here yet -- this is a placeholder)
9322 ### End of font-backend (under any platform) section.
9324 ### Start of font-backend (under X11) section.
9325 if test "${HAVE_X11}" = "yes"; then
9329 # Extract the first word of "pkg-config", so it can be a program name with args.
9330 set dummy pkg-config
; ac_word
=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9338 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir
=.
9346 for ac_exec_ext
in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9360 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9361 if test -n "$PKG_CONFIG"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9363 $as_echo "$PKG_CONFIG" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test "$PKG_CONFIG" = "no" ; then
9374 PKG_CONFIG_MIN_VERSION
=0.9.0
9375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9377 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9379 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9381 $as_echo "yes" >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9385 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9386 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9388 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9391 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9392 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9394 $as_echo "$FONTCONFIG_LIBS" >&6; }
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 FONTCONFIG_CFLAGS
=""
9400 ## If we have a custom action on failure, don't print errors, but
9401 ## do set a variable so people can do so.
9402 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9414 if test $succeeded = yes; then
9421 ## Use -lXft if available, unless `--with-xft=no'.
9423 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9426 if test "x${with_xft}" != "xno"; then
9431 # Extract the first word of "pkg-config", so it can be a program name with args.
9432 set dummy pkg-config
; ac_word
=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9440 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9447 test -z "$as_dir" && as_dir
=.
9448 for ac_exec_ext
in '' $ac_executable_extensions; do
9449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9450 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9462 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9463 if test -n "$PKG_CONFIG"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9465 $as_echo "$PKG_CONFIG" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test "$PKG_CONFIG" = "no" ; then
9476 PKG_CONFIG_MIN_VERSION
=0.9.0
9477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9479 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9481 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483 $as_echo "yes" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9487 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9488 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9490 $as_echo "$XFT_CFLAGS" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9493 $as_echo_n "checking XFT_LIBS... " >&6; }
9494 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9496 $as_echo "$XFT_LIBS" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9502 ## If we have a custom action on failure, don't print errors, but
9503 ## do set a variable so people can do so.
9504 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9516 if test $succeeded = yes; then
9522 ## Because xftfont.c uses XRenderQueryExtension, we also
9523 ## need to link to -lXrender.
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9526 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9527 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9530 ac_check_lib_save_LIBS
=$LIBS
9531 LIBS
="-lXrender $LIBS"
9532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9541 char XRenderQueryExtension ();
9545 return XRenderQueryExtension ();
9550 if ac_fn_c_try_link
"$LINENO"; then :
9551 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9553 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9555 rm -f core conftest.err conftest.
$ac_objext \
9556 conftest
$ac_exeext conftest.
$ac_ext
9557 LIBS
=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9560 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9561 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9565 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9566 OLD_CPPFLAGS
="$CPPFLAGS"
9567 OLD_CFLAGS
="$CFLAGS"
9569 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9570 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9571 XFT_LIBS
="-lXrender $XFT_LIBS"
9572 LIBS
="$XFT_LIBS $LIBS"
9573 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9574 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9576 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9577 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 ac_check_lib_save_LIBS
=$LIBS
9581 LIBS
="-lXft $XFT_LIBS $LIBS"
9582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9591 char XftFontOpen ();
9595 return XftFontOpen ();
9600 if ac_fn_c_try_link
"$LINENO"; then :
9601 ac_cv_lib_Xft_XftFontOpen
=yes
9603 ac_cv_lib_Xft_XftFontOpen
=no
9605 rm -f core conftest.err conftest.
$ac_objext \
9606 conftest
$ac_exeext conftest.
$ac_ext
9607 LIBS
=$ac_check_lib_save_LIBS
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9610 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9611 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9619 if test "${HAVE_XFT}" = "yes"; then
9621 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9624 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9626 CPPFLAGS
="$OLD_CPPFLAGS"
9627 CFLAGS
="$OLD_CFLAGS"
9629 fi # "${HAVE_XFT}" = "yes"
9630 fi # "$HAVE_XFT" != no
9631 fi # "x${with_xft}" != "xno"
9633 if test "$HAVE_XFT" != "yes"; then
9639 ## We used to allow building with FreeType and without Xft.
9640 ## However, the ftx font backend driver is not in good shape.
9641 if test "${HAVE_XFT}" = "yes"; then
9648 if test "${HAVE_FREETYPE}" = "yes"; then
9650 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9652 if test "${with_libotf}" != "no"; then
9656 # Extract the first word of "pkg-config", so it can be a program name with args.
9657 set dummy pkg-config
; ac_word
=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9665 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir
=.
9673 for ac_exec_ext
in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9687 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9688 if test -n "$PKG_CONFIG"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9690 $as_echo "$PKG_CONFIG" >&6; }
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9698 if test "$PKG_CONFIG" = "no" ; then
9701 PKG_CONFIG_MIN_VERSION
=0.9.0
9702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9704 $as_echo_n "checking for libotf... " >&6; }
9706 if $PKG_CONFIG --exists "libotf" 2>&5; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9708 $as_echo "yes" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9712 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9713 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9715 $as_echo "$LIBOTF_CFLAGS" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9718 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9719 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9721 $as_echo "$LIBOTF_LIBS" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9727 ## If we have a custom action on failure, don't print errors, but
9728 ## do set a variable so people can do so.
9729 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9741 if test $succeeded = yes; then
9747 if test "$HAVE_LIBOTF" = "yes"; then
9749 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9752 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9753 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9756 ac_check_lib_save_LIBS
=$LIBS
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9767 char OTF_get_variation_glyphs ();
9771 return OTF_get_variation_glyphs ();
9776 if ac_fn_c_try_link
"$LINENO"; then :
9777 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9779 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9781 rm -f core conftest.err conftest.
$ac_objext \
9782 conftest
$ac_exeext conftest.
$ac_ext
9783 LIBS
=$ac_check_lib_save_LIBS
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9786 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9787 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9788 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9790 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9793 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9795 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9803 if test "${HAVE_LIBOTF}" = yes; then
9804 if test "${with_m17n_flt}" != "no"; then
9808 # Extract the first word of "pkg-config", so it can be a program name with args.
9809 set dummy pkg-config
; ac_word
=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9817 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9824 test -z "$as_dir" && as_dir
=.
9825 for ac_exec_ext
in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9839 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9840 if test -n "$PKG_CONFIG"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9842 $as_echo "$PKG_CONFIG" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9850 if test "$PKG_CONFIG" = "no" ; then
9853 PKG_CONFIG_MIN_VERSION
=0.9.0
9854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9856 $as_echo_n "checking for m17n-flt... " >&6; }
9858 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860 $as_echo "yes" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9864 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9865 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9867 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9870 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9871 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9873 $as_echo "$M17N_FLT_LIBS" >&6; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9879 ## If we have a custom action on failure, don't print errors, but
9880 ## do set a variable so people can do so.
9881 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9888 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9889 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9893 if test $succeeded = yes; then
9899 if test "$HAVE_M17N_FLT" = "yes"; then
9901 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9914 if test "$HAVE_XFT" = "yes"; then
9915 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
9916 elif test "$HAVE_FREETYPE" = "yes"; then
9917 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
9921 ### End of font-backend (under X11) section.
9932 ### Use -lXpm if available, unless `--with-xpm=no'.
9935 if test "${HAVE_X11}" = "yes"; then
9936 if test "${with_xpm}" != "no"; then
9937 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9938 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9940 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9941 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9944 ac_check_lib_save_LIBS
=$LIBS
9945 LIBS
="-lXpm -lX11 $LIBS"
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9955 char XpmReadFileToPixmap ();
9959 return XpmReadFileToPixmap ();
9964 if ac_fn_c_try_link
"$LINENO"; then :
9965 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9967 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9969 rm -f core conftest.err conftest.
$ac_objext \
9970 conftest
$ac_exeext conftest.
$ac_ext
9971 LIBS
=$ac_check_lib_save_LIBS
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9974 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9975 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9982 if test "${HAVE_XPM}" = "yes"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9984 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987 #include "X11/xpm.h"
9988 #ifndef XpmReturnAllocPixels
9989 no_return_alloc_pixels
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10002 if test "${HAVE_XPM}" = "yes"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10004 $as_echo "yes" >&6; }
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10012 if test "${HAVE_XPM}" = "yes"; then
10014 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10021 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10024 if test "${HAVE_X11}" = "yes"; then
10025 if test "${with_jpeg}" != "no"; then
10026 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10029 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10030 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10033 ac_check_lib_save_LIBS
=$LIBS
10034 LIBS
="-ljpeg $LIBS"
10035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10044 char jpeg_destroy_compress ();
10048 return jpeg_destroy_compress ();
10053 if ac_fn_c_try_link
"$LINENO"; then :
10054 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10056 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10058 rm -f core conftest.err conftest.
$ac_objext \
10059 conftest
$ac_exeext conftest.
$ac_ext
10060 LIBS
=$ac_check_lib_save_LIBS
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10063 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10064 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10073 if test "${HAVE_JPEG}" = "yes"; then
10074 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 #include <jpeglib.h>
10079 version=JPEG_LIB_VERSION
10082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10084 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10088 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10094 if test "${HAVE_JPEG}" = "yes"; then
10100 ### Use -lpng if available, unless `--with-png=no'.
10103 if test "${HAVE_X11}" = "yes"; then
10104 if test "${with_png}" != "no"; then
10105 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10106 # in /usr/include/libpng.
10107 for ac_header
in png.h libpng
/png.h
10109 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10110 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10111 eval as_val
=\$
$as_ac_Header
10112 if test "x$as_val" = x
""yes; then :
10113 cat >>confdefs.h
<<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10121 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10123 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10124 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10127 ac_check_lib_save_LIBS
=$LIBS
10128 LIBS
="-lpng -lz -lm $LIBS"
10129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10138 char png_get_channels ();
10142 return png_get_channels ();
10147 if ac_fn_c_try_link
"$LINENO"; then :
10148 ac_cv_lib_png_png_get_channels
=yes
10150 ac_cv_lib_png_png_get_channels
=no
10152 rm -f core conftest.err conftest.
$ac_objext \
10153 conftest
$ac_exeext conftest.
$ac_ext
10154 LIBS
=$ac_check_lib_save_LIBS
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10157 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10158 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10165 if test "${HAVE_PNG}" = "yes"; then
10167 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10169 LIBPNG
="-lpng -lz -lm"
10174 ### Use -ltiff if available, unless `--with-tiff=no'.
10177 if test "${HAVE_X11}" = "yes"; then
10178 if test "${with_tiff}" != "no"; then
10179 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10180 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10182 # At least one tiff package requires the jpeg library.
10183 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10185 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10186 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10189 ac_check_lib_save_LIBS
=$LIBS
10190 LIBS
="-ltiff $tifflibs $LIBS"
10191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10200 char TIFFGetVersion ();
10204 return TIFFGetVersion ();
10209 if ac_fn_c_try_link
"$LINENO"; then :
10210 ac_cv_lib_tiff_TIFFGetVersion
=yes
10212 ac_cv_lib_tiff_TIFFGetVersion
=no
10214 rm -f core conftest.err conftest.
$ac_objext \
10215 conftest
$ac_exeext conftest.
$ac_ext
10216 LIBS
=$ac_check_lib_save_LIBS
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10219 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10220 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10229 if test "${HAVE_TIFF}" = "yes"; then
10231 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10238 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10241 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10242 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10243 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10244 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10245 # Earlier versions can crash Emacs.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10247 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10248 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10251 ac_check_lib_save_LIBS
=$LIBS
10253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10262 char EGifPutExtensionLast ();
10266 return EGifPutExtensionLast ();
10271 if ac_fn_c_try_link
"$LINENO"; then :
10272 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10274 ac_cv_lib_gif_EGifPutExtensionLast
=no
10276 rm -f core conftest.err conftest.
$ac_objext \
10277 conftest
$ac_exeext conftest.
$ac_ext
10278 LIBS
=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10281 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10282 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10292 if test "$HAVE_GIF" = yes; then
10294 elif test "$HAVE_GIF" = maybe
; then
10295 # If gif_lib.h but no libgif, try libungif.
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10297 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10298 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10301 ac_check_lib_save_LIBS
=$LIBS
10302 LIBS
="-lungif $LIBS"
10303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10312 char EGifPutExtensionLast ();
10316 return EGifPutExtensionLast ();
10321 if ac_fn_c_try_link
"$LINENO"; then :
10322 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10324 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10326 rm -f core conftest.err conftest.
$ac_objext \
10327 conftest
$ac_exeext conftest.
$ac_ext
10328 LIBS
=$ac_check_lib_save_LIBS
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10331 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10332 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10338 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10341 if test "${HAVE_GIF}" = "yes"; then
10343 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10349 if test "${HAVE_X11}" = "yes"; then
10352 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10353 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10354 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10355 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10356 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10357 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10358 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10359 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10360 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10361 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10363 if test "X${MISSING}" != X
; then
10364 as_fn_error
"The following required libraries were not found:
10366 Maybe some development libraries/packages are missing?
10367 If you don't want to link with them give
10369 as options to configure" "$LINENO" 5
10373 ### Use -lgpm if available, unless `--with-gpm=no'.
10377 if test "${with_gpm}" != "no"; then
10378 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10379 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10381 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10382 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10385 ac_check_lib_save_LIBS
=$LIBS
10387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10390 /* Override any GCC internal prototype to avoid an error.
10391 Use char because int might match the return type of a GCC
10392 builtin and then its argument prototype would still apply. */
10400 return Gpm_Open ();
10405 if ac_fn_c_try_link
"$LINENO"; then :
10406 ac_cv_lib_gpm_Gpm_Open
=yes
10408 ac_cv_lib_gpm_Gpm_Open
=no
10410 rm -f core conftest.err conftest.
$ac_objext \
10411 conftest
$ac_exeext conftest.
$ac_ext
10412 LIBS
=$ac_check_lib_save_LIBS
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10415 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10416 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10424 if test "${HAVE_GPM}" = "yes"; then
10426 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10429 ## May be reset below.
10430 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
10435 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10436 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10438 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10445 ### Use NeXTstep API to implement GUI.
10446 if test "${HAVE_NS}" = "yes"; then
10448 $as_echo "#define HAVE_NS 1" >>confdefs.h
10450 if test "${NS_IMPL_COCOA}" = "yes"; then
10452 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10456 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10458 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10460 # See also .m.o rule in Makefile.in */
10461 # FIXME: are all these flags really needed? Document here why. */
10462 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
10463 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10465 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10467 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10470 # We also have mouse menus.
10476 ### Use session management (-lSM -lICE) if available
10479 if test "${HAVE_X11}" = "yes"; then
10480 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10481 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10483 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10484 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10487 ac_check_lib_save_LIBS
=$LIBS
10488 LIBS
="-lSM -lICE $LIBS"
10489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10498 char SmcOpenConnection ();
10502 return SmcOpenConnection ();
10507 if ac_fn_c_try_link
"$LINENO"; then :
10508 ac_cv_lib_SM_SmcOpenConnection
=yes
10510 ac_cv_lib_SM_SmcOpenConnection
=no
10512 rm -f core conftest.err conftest.
$ac_objext \
10513 conftest
$ac_exeext conftest.
$ac_ext
10514 LIBS
=$ac_check_lib_save_LIBS
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10517 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10518 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10526 if test "${HAVE_X_SM}" = "yes"; then
10528 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10530 LIBXSM
="-lSM -lICE"
10533 *) LIBS
="$LIBXSM $LIBS" ;;
10539 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10541 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10542 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10543 $as_echo_n "(cached) " >&6
10545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10556 if ac_fn_c_try_link
"$LINENO"; then :
10557 emacs_cv_netdb_declares_h_errno
=yes
10559 emacs_cv_netdb_declares_h_errno
=no
10561 rm -f core conftest.err conftest.
$ac_objext \
10562 conftest
$ac_exeext conftest.
$ac_ext
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10565 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10566 if test $emacs_cv_netdb_declares_h_errno = yes; then
10568 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10573 # for constant arguments. Useless!
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10575 $as_echo_n "checking for working alloca.h... " >&6; }
10576 if test "${ac_cv_working_alloca_h+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
10579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 #include <alloca.h>
10585 char *p = (char *) alloca (2 * sizeof (int));
10591 if ac_fn_c_try_link
"$LINENO"; then :
10592 ac_cv_working_alloca_h
=yes
10594 ac_cv_working_alloca_h
=no
10596 rm -f core conftest.err conftest.
$ac_objext \
10597 conftest
$ac_exeext conftest.
$ac_ext
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10600 $as_echo "$ac_cv_working_alloca_h" >&6; }
10601 if test $ac_cv_working_alloca_h = yes; then
10603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10608 $as_echo_n "checking for alloca... " >&6; }
10609 if test "${ac_cv_func_alloca_works+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10615 # define alloca __builtin_alloca
10618 # include <malloc.h>
10619 # define alloca _alloca
10621 # ifdef HAVE_ALLOCA_H
10622 # include <alloca.h>
10627 # ifndef alloca /* predefined by HP cc +Olibcalls */
10638 char *p = (char *) alloca (1);
10644 if ac_fn_c_try_link
"$LINENO"; then :
10645 ac_cv_func_alloca_works
=yes
10647 ac_cv_func_alloca_works
=no
10649 rm -f core conftest.err conftest.
$ac_objext \
10650 conftest
$ac_exeext conftest.
$ac_ext
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10653 $as_echo "$ac_cv_func_alloca_works" >&6; }
10655 if test $ac_cv_func_alloca_works = yes; then
10657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10660 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10661 # that cause trouble. Some versions do not even contain alloca or
10662 # contain a buggy version. If you still want to use their alloca,
10663 # use ar to extract alloca.o from them instead of compiling alloca.c.
10665 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10672 if test "${ac_cv_os_cray+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #if defined CRAY && ! defined CRAY2
10684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10685 $EGREP "webecray" >/dev
/null
2>&1; then :
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10694 $as_echo "$ac_cv_os_cray" >&6; }
10695 if test $ac_cv_os_cray = yes; then
10696 for ac_func
in _getb67 GETB67 getb67
; do
10697 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10699 eval as_val
=\$
$as_ac_var
10700 if test "x$as_val" = x
""yes; then :
10702 cat >>confdefs.h
<<_ACEOF
10703 #define CRAY_STACKSEG_END $ac_func
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10713 $as_echo_n "checking stack direction for C alloca... " >&6; }
10714 if test "${ac_cv_c_stack_direction+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10717 if test "$cross_compiling" = yes; then :
10718 ac_cv_c_stack_direction
=0
10720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 $ac_includes_default
10724 find_stack_direction ()
10726 static char *addr = 0;
10731 return find_stack_direction ();
10734 return (&dummy > addr) ? 1 : -1;
10740 return find_stack_direction () < 0;
10743 if ac_fn_c_try_run
"$LINENO"; then :
10744 ac_cv_c_stack_direction
=1
10746 ac_cv_c_stack_direction
=-1
10748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10754 $as_echo "$ac_cv_c_stack_direction" >&6; }
10755 cat >>confdefs.h
<<_ACEOF
10756 #define STACK_DIRECTION $ac_cv_c_stack_direction
10763 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10764 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10767 # fmod, logb, and frexp are found in -lm on most systems.
10768 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10770 $as_echo_n "checking for sqrt in -lm... " >&6; }
10771 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS
=$LIBS
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 ac_cv_lib_m_sqrt
=yes
10797 ac_cv_lib_m_sqrt
=no
10799 rm -f core conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10801 LIBS
=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10804 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10805 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10806 cat >>confdefs.h
<<_ACEOF
10807 #define HAVE_LIBM 1
10815 # Check for mail-locking functions in a "mail" library. Probably this should
10816 # have the same check as for liblockfile below.
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10818 $as_echo_n "checking for maillock in -lmail... " >&6; }
10819 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10822 ac_check_lib_save_LIBS
=$LIBS
10823 LIBS
="-lmail $LIBS"
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10837 return maillock ();
10842 if ac_fn_c_try_link
"$LINENO"; then :
10843 ac_cv_lib_mail_maillock
=yes
10845 ac_cv_lib_mail_maillock
=no
10847 rm -f core conftest.err conftest.
$ac_objext \
10848 conftest
$ac_exeext conftest.
$ac_ext
10849 LIBS
=$ac_check_lib_save_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10852 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10853 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10859 if test $have_mail = yes; then
10861 LIBS
="$LIBS_MAIL $LIBS"
10863 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10869 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10870 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10873 ac_check_lib_save_LIBS
=$LIBS
10874 LIBS
="-llockfile $LIBS"
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10888 return maillock ();
10893 if ac_fn_c_try_link
"$LINENO"; then :
10894 ac_cv_lib_lockfile_maillock
=yes
10896 ac_cv_lib_lockfile_maillock
=no
10898 rm -f core conftest.err conftest.
$ac_objext \
10899 conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
=$ac_check_lib_save_LIBS
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10903 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10904 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10910 if test $have_lockfile = yes; then
10911 LIBS_MAIL
=-llockfile
10912 LIBS
="$LIBS_MAIL $LIBS"
10914 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10917 # If we have the shared liblockfile, assume we must use it for mail
10918 # locking (e.g. Debian). If we couldn't link against liblockfile
10919 # (no liblockfile.a installed), ensure that we don't need to.
10920 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10921 set dummy liblockfile.so
; ac_word
=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10927 if test -n "$liblockfile"; then
10928 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10931 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10932 for as_dir
in $as_dummy
10935 test -z "$as_dir" && as_dir
=.
10936 for ac_exec_ext
in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_liblockfile
="yes"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10946 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10949 liblockfile
=$ac_cv_prog_liblockfile
10950 if test -n "$liblockfile"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10952 $as_echo "$liblockfile" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10959 if test $ac_cv_prog_liblockfile = yes; then
10960 as_fn_error
"Shared liblockfile found but can't link against it.
10961 This probably means that movemail could lose mail.
10962 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10965 for ac_func
in touchlock
10967 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10968 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10969 cat >>confdefs.h
<<_ACEOF
10970 #define HAVE_TOUCHLOCK 1
10976 for ac_header
in maillock.h
10978 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10979 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10980 cat >>confdefs.h
<<_ACEOF
10981 #define HAVE_MAILLOCK_H 1
10990 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
10991 ## interlock access to the mail spool. The alternative is a lock file named
10992 ## /usr/spool/mail/$USER.lock.
10995 aix4-2
) mail_lock
="lockf" ;;
10997 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
10999 ## On GNU/Linux systems, both methods are used by various mail programs.
11000 ## I assume most people are using newer mailers that have heard of flock.
11001 ## Change this if you need to.
11002 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11003 ## configure gets the right answers, and that means *NOT* using flock.
11004 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11005 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11006 ## Debian maintainer hasn't provided a clean fix for Emacs.
11007 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11008 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11009 ## correct logic. -- fx
11010 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11011 ## liblockfile is a Free Software replacement for libmail, used on
11012 ## Debian systems and elsewhere. -rfr.
11015 if test $have_mail = yes ||
test $have_lockfile = yes; then
11016 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11022 case "$mail_lock" in
11024 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11028 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11031 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11036 for ac_func
in gethostname getdomainname dup2 \
11037 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11038 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11039 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11040 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11041 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11042 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11043 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11044 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11045 cfmakeraw cfsetspeed isnan copysign
11047 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11049 eval as_val
=\$
$as_ac_var
11050 if test "x$as_val" = x
""yes; then :
11051 cat >>confdefs.h
<<_ACEOF
11052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11059 for ac_header
in sys
/un.h
11061 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11062 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11063 cat >>confdefs.h
<<_ACEOF
11064 #define HAVE_SYS_UN_H 1
11077 for ac_func
in $ac_func_list
11079 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11080 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11081 eval as_val
=\$
$as_ac_var
11082 if test "x$as_val" = x
""yes; then :
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11095 $as_echo_n "checking for working mktime... " >&6; }
11096 if test "${ac_cv_func_working_mktime+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11099 if test "$cross_compiling" = yes; then :
11100 ac_cv_func_working_mktime
=no
11102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11104 /* Test program from Paul Eggert and Tony Leneis. */
11105 #ifdef TIME_WITH_SYS_TIME
11106 # include <sys/time.h>
11109 # ifdef HAVE_SYS_TIME_H
11110 # include <sys/time.h>
11116 #include <limits.h>
11117 #include <stdlib.h>
11119 #ifdef HAVE_UNISTD_H
11120 # include <unistd.h>
11124 # define alarm(X) /* empty */
11127 /* Work around redefinition to rpl_putenv by other config tests. */
11130 static time_t time_t_max;
11131 static time_t time_t_min;
11133 /* Values we'll use to set the TZ environment variable. */
11134 static char *tz_strings[] = {
11135 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11136 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11138 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11140 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11141 Based on a problem report from Andreas Jaeger. */
11143 spring_forward_gap ()
11145 /* glibc (up to about 1998-10-07) failed this test. */
11148 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11149 instead of "TZ=America/Vancouver" in order to detect the bug even
11150 on systems that don't support the Olson extension, or don't have the
11151 full zoneinfo tables installed. */
11152 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11161 return mktime (&tm) != (time_t) -1;
11169 return ! (lt = localtime (&now)) || mktime (lt) == now;
11176 return (mktime_test1 (now)
11177 && mktime_test1 ((time_t) (time_t_max - now))
11178 && mktime_test1 ((time_t) (time_t_min + now)));
11184 /* Based on code from Ariel Faigon. */
11194 return tm.tm_mon == 2 && tm.tm_mday == 31;
11203 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11204 now = mktime (&tm);
11205 if (now != (time_t) -1)
11207 struct tm *lt = localtime (&now);
11209 && lt->tm_year == tm.tm_year
11210 && lt->tm_mon == tm.tm_mon
11211 && lt->tm_mday == tm.tm_mday
11212 && lt->tm_hour == tm.tm_hour
11213 && lt->tm_min == tm.tm_min
11214 && lt->tm_sec == tm.tm_sec
11215 && lt->tm_yday == tm.tm_yday
11216 && lt->tm_wday == tm.tm_wday
11217 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11218 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11227 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11228 ignoring leap seconds. */
11229 unsigned long int answer = 2527315200UL;
11233 tm.tm_year = 2050 - 1900;
11236 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11239 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11240 instead of "TZ=America/Vancouver" in order to detect the bug even
11241 on systems that don't support the Olson extension, or don't have the
11242 full zoneinfo tables installed. */
11243 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11247 /* Check that the result is either a failure, or close enough
11248 to the correct answer that we can assume the discrepancy is
11249 due to leap seconds. */
11250 return (t == (time_t) -1
11251 || (0 < t && answer - 120 <= t && t <= answer + 120));
11260 /* This test makes some buggy mktime implementations loop.
11261 Give up after 60 seconds; a mktime slower than that
11262 isn't worth using anyway. */
11267 t = (time_t_max << 1) + 1;
11268 if (t <= time_t_max)
11272 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11274 delta = time_t_max / 997; /* a suitable prime number */
11275 for (i = 0; i < N_STRINGS; i++)
11278 putenv (tz_strings[i]);
11280 for (t = 0; t <= time_t_max - delta; t += delta)
11281 if (! mktime_test (t))
11283 if (! (mktime_test ((time_t) 1)
11284 && mktime_test ((time_t) (60 * 60))
11285 && mktime_test ((time_t) (60 * 60 * 24))))
11288 for (j = 1; ; j <<= 1)
11289 if (! bigtime_test (j))
11291 else if (INT_MAX / 2 < j)
11293 if (! bigtime_test (INT_MAX))
11296 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11299 if ac_fn_c_try_run
"$LINENO"; then :
11300 ac_cv_func_working_mktime
=yes
11302 ac_cv_func_working_mktime
=no
11304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11310 $as_echo "$ac_cv_func_working_mktime" >&6; }
11311 if test $ac_cv_func_working_mktime = no
; then
11312 case " $LIBOBJS " in
11313 *" mktime.$ac_objext "* ) ;;
11314 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11320 if test "$ac_cv_func_working_mktime" = no
; then
11322 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11326 ac_have_func
=no
# yes means we've found a way to get the load average.
11328 # Make sure getloadavg.c is where it belongs, at configure-time.
11329 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11330 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11334 # Check for getloadavg, but be sure not to touch the cache variable.
11335 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11336 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11341 ) && ac_have_func
=yes
11343 # On HPUX9, an unprivileged user can get load averages through this function.
11344 for ac_func
in pstat_getdynamic
11346 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11347 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11348 cat >>confdefs.h
<<_ACEOF
11349 #define HAVE_PSTAT_GETDYNAMIC 1
11356 # Solaris has libkstat which does not require root.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11358 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11359 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11362 ac_check_lib_save_LIBS
=$LIBS
11363 LIBS
="-lkstat $LIBS"
11364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11373 char kstat_open ();
11377 return kstat_open ();
11382 if ac_fn_c_try_link
"$LINENO"; then :
11383 ac_cv_lib_kstat_kstat_open
=yes
11385 ac_cv_lib_kstat_kstat_open
=no
11387 rm -f core conftest.err conftest.
$ac_objext \
11388 conftest
$ac_exeext conftest.
$ac_ext
11389 LIBS
=$ac_check_lib_save_LIBS
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11392 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11393 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11394 cat >>confdefs.h
<<_ACEOF
11395 #define HAVE_LIBKSTAT 1
11398 LIBS
="-lkstat $LIBS"
11402 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11404 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11405 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11406 # to get the right answer into the cache.
11407 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11408 if test $ac_have_func = no
; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11410 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11411 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11414 ac_check_lib_save_LIBS
=$LIBS
11416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11429 return elf_begin ();
11434 if ac_fn_c_try_link
"$LINENO"; then :
11435 ac_cv_lib_elf_elf_begin
=yes
11437 ac_cv_lib_elf_elf_begin
=no
11439 rm -f core conftest.err conftest.
$ac_objext \
11440 conftest
$ac_exeext conftest.
$ac_ext
11441 LIBS
=$ac_check_lib_save_LIBS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11444 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11445 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11450 if test $ac_have_func = no
; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11452 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11453 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_check_lib_save_LIBS
=$LIBS
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11471 return kvm_open ();
11476 if ac_fn_c_try_link
"$LINENO"; then :
11477 ac_cv_lib_kvm_kvm_open
=yes
11479 ac_cv_lib_kvm_kvm_open
=no
11481 rm -f core conftest.err conftest.
$ac_objext \
11482 conftest
$ac_exeext conftest.
$ac_ext
11483 LIBS
=$ac_check_lib_save_LIBS
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11486 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11487 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11491 # Check for the 4.4BSD definition of getloadavg.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11493 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11494 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 ac_check_lib_save_LIBS
=$LIBS
11498 LIBS
="-lutil $LIBS"
11499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11508 char getloadavg ();
11512 return getloadavg ();
11517 if ac_fn_c_try_link
"$LINENO"; then :
11518 ac_cv_lib_util_getloadavg
=yes
11520 ac_cv_lib_util_getloadavg
=no
11522 rm -f core conftest.err conftest.
$ac_objext \
11523 conftest
$ac_exeext conftest.
$ac_ext
11524 LIBS
=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11527 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11528 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11529 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11534 if test $ac_have_func = no
; then
11535 # There is a commonly available library for RS/6000 AIX.
11536 # Since it is not a standard part of AIX, it might be installed locally.
11537 ac_getloadavg_LIBS
=$LIBS
11538 LIBS
="-L/usr/local/lib $LIBS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11540 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11541 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11544 ac_check_lib_save_LIBS
=$LIBS
11545 LIBS
="-lgetloadavg $LIBS"
11546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11555 char getloadavg ();
11559 return getloadavg ();
11564 if ac_fn_c_try_link
"$LINENO"; then :
11565 ac_cv_lib_getloadavg_getloadavg
=yes
11567 ac_cv_lib_getloadavg_getloadavg
=no
11569 rm -f core conftest.err conftest.
$ac_objext \
11570 conftest
$ac_exeext conftest.
$ac_ext
11571 LIBS
=$ac_check_lib_save_LIBS
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11574 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11575 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11576 LIBS
="-lgetloadavg $LIBS"
11578 LIBS
=$ac_getloadavg_LIBS
11583 # Make sure it is really in the library, if we think we found it,
11584 # otherwise set up the replacement function.
11585 for ac_func
in getloadavg
11587 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11588 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_GETLOADAVG 1
11594 case " $LIBOBJS " in
11595 *" getloadavg.$ac_objext "* ) ;;
11596 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11601 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11603 # Figure out what our getloadavg.c needs.
11605 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11606 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11609 $as_echo "#define DGUX 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11612 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11613 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11616 ac_check_lib_save_LIBS
=$LIBS
11618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11627 char dg_sys_info ();
11631 return dg_sys_info ();
11636 if ac_fn_c_try_link
"$LINENO"; then :
11637 ac_cv_lib_dgc_dg_sys_info
=yes
11639 ac_cv_lib_dgc_dg_sys_info
=no
11641 rm -f core conftest.err conftest.
$ac_objext \
11642 conftest
$ac_exeext conftest.
$ac_ext
11643 LIBS
=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11646 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11647 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11648 cat >>confdefs.h
<<_ACEOF
11649 #define HAVE_LIBDGC 1
11660 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11661 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11666 for ac_func
in setlocale
11668 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11669 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11670 cat >>confdefs.h
<<_ACEOF
11671 #define HAVE_SETLOCALE 1
11678 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11679 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11680 # Irix 4.0.5F has the header but not the library.
11681 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11684 $as_echo "#define SVR4 1" >>confdefs.h
11688 if test $ac_have_func = no
; then
11689 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11690 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11693 $as_echo "#define UMAX 1" >>confdefs.h
11696 $as_echo "#define UMAX4_3 1" >>confdefs.h
11703 if test $ac_have_func = no
; then
11704 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11705 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11706 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11713 if test $ac_have_func = no
; then
11714 for ac_header
in mach
/mach.h
11716 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11717 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11718 cat >>confdefs.h
<<_ACEOF
11719 #define HAVE_MACH_MACH_H 1
11728 for ac_header
in nlist.h
11730 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11731 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11732 cat >>confdefs.h
<<_ACEOF
11733 #define HAVE_NLIST_H 1
11735 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11737 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11739 cat >>confdefs.h
<<_ACEOF
11740 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11744 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11757 # Some definitions of getloadavg require that the program be installed setgid.
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11759 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11760 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11766 #ifdef LDAV_PRIVILEGED
11767 Yowza Am I SETGID yet
11770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11772 ac_cv_func_getloadavg_setgid
=yes
11774 ac_cv_func_getloadavg_setgid
=no
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11780 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11781 if test $ac_cv_func_getloadavg_setgid = yes; then
11784 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11790 if test $ac_cv_func_getloadavg_setgid = yes; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11792 $as_echo_n "checking group of /dev/kmem... " >&6; }
11793 if test "${ac_cv_group_kmem+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11796 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11797 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11798 # If we got an error (system does not support symlinks), try without -L.
11799 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11800 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11801 | sed -ne 's/[ ][ ]*/ /g;
11802 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11807 $as_echo "$ac_cv_group_kmem" >&6; }
11808 KMEM_GROUP
=$ac_cv_group_kmem
11810 if test "x$ac_save_LIBS" = x
; then
11811 GETLOADAVG_LIBS
=$LIBS
11813 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11820 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11821 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827 #include <sys/types.h> /* for off_t */
11832 int (*fp) (FILE *, off_t, int) = fseeko;
11833 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11838 if ac_fn_c_try_link
"$LINENO"; then :
11839 ac_cv_sys_largefile_source
=no
; break
11841 rm -f core conftest.err conftest.
$ac_objext \
11842 conftest
$ac_exeext conftest.
$ac_ext
11843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #define _LARGEFILE_SOURCE 1
11846 #include <sys/types.h> /* for off_t */
11851 int (*fp) (FILE *, off_t, int) = fseeko;
11852 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11857 if ac_fn_c_try_link
"$LINENO"; then :
11858 ac_cv_sys_largefile_source
=1; break
11860 rm -f core conftest.err conftest.
$ac_objext \
11861 conftest
$ac_exeext conftest.
$ac_ext
11862 ac_cv_sys_largefile_source
=unknown
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11867 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11868 case $ac_cv_sys_largefile_source in #(
11871 cat >>confdefs.h
<<_ACEOF
11872 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11878 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11879 # in glibc 2.1.3, but that breaks too many other things.
11880 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11881 if test $ac_cv_sys_largefile_source != unknown
; then
11883 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11888 # Configure getopt.
11889 # getopt.m4 serial 10
11891 # The getopt module assume you want GNU getopt, with getopt_long etc,
11892 # rather than vanilla POSIX getopt. This means your your code should
11893 # always include <getopt.h> for the getopt prototypes.
11905 # Prerequisites of lib/getopt*.
11911 for ac_header
in getopt.h
11913 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11914 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11915 cat >>confdefs.h
<<_ACEOF
11916 #define HAVE_GETOPT_H 1
11925 if test -z "$GETOPT_H"; then
11926 for ac_func
in getopt_long_only
11928 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11929 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11930 cat >>confdefs.h
<<_ACEOF
11931 #define HAVE_GETOPT_LONG_ONLY 1
11941 if test -z "$GETOPT_H"; then
11942 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11944 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11950 if test -z "$GETOPT_H"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11952 $as_echo_n "checking for working GNU getopt function... " >&6; }
11953 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11954 $as_echo_n "(cached) " >&6
11956 if test "$cross_compiling" = yes; then :
11957 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11959 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11960 gl_cv_func_gnu_getopt
=no
11962 gl_cv_func_gnu_getopt
=yes
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <getopt.h>
11974 myargv[0] = "conftest";
11977 return getopt (2, myargv, "+a") != '?';
11983 if ac_fn_c_try_run
"$LINENO"; then :
11984 gl_cv_func_gnu_getopt
=yes
11986 gl_cv_func_gnu_getopt
=no
11988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11994 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11995 if test "$gl_cv_func_gnu_getopt" = "no"; then
12002 if test -n "$GETOPT_H"; then :
12007 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12012 GETOPTOBJS
='getopt.o getopt1.o'
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12019 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12020 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12023 # Use it with a single arg.
12024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026 $ac_includes_default
12035 if ac_fn_c_try_compile
"$LINENO"; then :
12036 ac_cv_func_getpgrp_void
=no
12038 ac_cv_func_getpgrp_void
=yes
12040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12044 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12045 if test $ac_cv_func_getpgrp_void = yes; then
12047 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12052 for ac_func
in strftime
12054 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12055 if test "x$ac_cv_func_strftime" = x
""yes; then :
12056 cat >>confdefs.h
<<_ACEOF
12057 #define HAVE_STRFTIME 1
12061 # strftime is in -lintl on SCO UNIX.
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12063 $as_echo_n "checking for strftime in -lintl... " >&6; }
12064 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
12067 ac_check_lib_save_LIBS
=$LIBS
12068 LIBS
="-lintl $LIBS"
12069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12082 return strftime ();
12087 if ac_fn_c_try_link
"$LINENO"; then :
12088 ac_cv_lib_intl_strftime
=yes
12090 ac_cv_lib_intl_strftime
=no
12092 rm -f core conftest.err conftest.
$ac_objext \
12093 conftest
$ac_exeext conftest.
$ac_ext
12094 LIBS
=$ac_check_lib_save_LIBS
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12097 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12098 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12099 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12101 LIBS
="-lintl $LIBS"
12109 for ac_func
in grantpt
12111 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12112 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12113 cat >>confdefs.h
<<_ACEOF
12114 #define HAVE_GRANTPT 1
12121 # PTY-related GNU extensions.
12122 for ac_func
in getpt
12124 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12125 if test "x$ac_cv_func_getpt" = x
""yes; then :
12126 cat >>confdefs.h
<<_ACEOF
12127 #define HAVE_GETPT 1
12134 # Check this now, so that we will NOT find the above functions in ncurses.
12135 # That is because we have not set up to link ncurses in lib-src.
12136 # It's better to believe a function is not available
12137 # than to expect to find it in ncurses.
12138 # Also we need tputs and friends to be able to build at all.
12139 have_tputs_et_al
=true
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12141 $as_echo_n "checking for library containing tputs... " >&6; }
12142 if test "${ac_cv_search_tputs+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12145 ac_func_search_save_LIBS
=$LIBS
12146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12164 for ac_lib
in '' ncurses terminfo termcap
; do
12165 if test -z "$ac_lib"; then
12166 ac_res
="none required"
12169 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12171 if ac_fn_c_try_link
"$LINENO"; then :
12172 ac_cv_search_tputs
=$ac_res
12174 rm -f core conftest.err conftest.
$ac_objext \
12176 if test "${ac_cv_search_tputs+set}" = set; then :
12180 if test "${ac_cv_search_tputs+set}" = set; then :
12183 ac_cv_search_tputs
=no
12185 rm conftest.
$ac_ext
12186 LIBS
=$ac_func_search_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12189 $as_echo "$ac_cv_search_tputs" >&6; }
12190 ac_res
=$ac_cv_search_tputs
12191 if test "$ac_res" != no
; then :
12192 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12195 have_tputs_et_al
=false
12198 if test "$have_tputs_et_al" != true
; then
12199 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12200 Maybe some development libraries/packages are missing? Try installing
12201 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12203 # Must define this when any termcap library is found.
12205 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12207 ## FIXME This was the cpp logic, but I am not sure it is right.
12208 ## The above test has not necessarily found libncurses.
12209 HAVE_LIBNCURSES
=yes
12211 ## Use terminfo instead of termcap?
12212 ## Note only system files NOT using terminfo are:
12213 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
12214 ## darwin|gnu without ncurses.
12218 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12219 ## hpux10-20: Use the system provided termcap(3) library.
12220 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12221 ## is necessary. Otherwise Emacs dumps core when run -nw.
12222 aix4-2|cygwin|hpux
*|irix6-5|openbsd|usg5-4|sol2
*|unixware
) TERMINFO
=yes ;;
12224 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12225 ## The ncurses library has been moved out of the System framework in
12226 ## Mac OS X 10.2. So if configure detects it, set the command-line
12227 ## option to use it.
12229 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12230 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12232 LIBS_TERMCAP
="-lncurses"
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12238 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12239 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244 #include <osreldate.h>
12248 #if __FreeBSD_version < 400000
12256 if ac_fn_c_try_link
"$LINENO"; then :
12257 emacs_cv_freebsd_terminfo
=yes
12259 emacs_cv_freebsd_terminfo
=no
12261 rm -f core conftest.err conftest.
$ac_objext \
12262 conftest
$ac_exeext conftest.
$ac_ext
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12267 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12269 if test $emacs_cv_freebsd_terminfo = yes; then
12271 LIBS_TERMCAP
="-lncurses"
12273 LIBS_TERMCAP
="-ltermcap"
12280 ## hpux: Make sure we get select from libc rather than from libcurses
12281 ## because libcurses on HPUX 10.10 has a broken version of select.
12282 ## We used to use -lc -lcurses, but this may be cleaner.
12283 hpux
*|netbsd
) LIBS_TERMCAP
="-ltermcap" ;;
12285 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
12287 ## Must use system termcap, if we use any termcap. It does special things.
12288 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
12291 TERMCAP_OBJ
=tparam.o
12292 if test $TERMINFO = yes; then
12294 $as_echo "#define TERMINFO 1" >>confdefs.h
12297 ## Default used to be -ltermcap. Add a case above if need something else.
12298 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
12300 TERMCAP_OBJ
=terminfo.o
12306 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310 #include <netinet/in.h>
12311 #include <arpa/nameser.h>
12312 #include <resolv.h>
12321 if ac_fn_c_try_link
"$LINENO"; then :
12326 rm -f core conftest.err conftest.
$ac_objext \
12327 conftest
$ac_exeext conftest.
$ac_ext
12328 if test "$have_res_init" = no
; then
12330 LIBS
="$LIBS -lresolv"
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12332 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 #include <netinet/in.h>
12336 #include <arpa/nameser.h>
12337 #include <resolv.h>
12346 if ac_fn_c_try_link
"$LINENO"; then :
12351 rm -f core conftest.err conftest.
$ac_objext \
12352 conftest
$ac_exeext conftest.
$ac_ext
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12354 $as_echo "$have_res_init" >&6; }
12355 if test "$have_res_init" = yes ; then
12361 if test "$have_res_init" = yes; then
12363 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12367 # Do we need the Hesiod library to provide the support routines?
12369 if test "$with_hesiod" != no
; then
12370 # Don't set $LIBS here -- see comments above. FIXME which comments?
12371 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12372 if test "x$ac_cv_func_res_send" = x
""yes; then :
12375 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12376 if test "x$ac_cv_func___res_send" = x
""yes; then :
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12380 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12381 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 ac_check_lib_save_LIBS
=$LIBS
12385 LIBS
="-lresolv $LIBS"
12386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12399 return res_send ();
12404 if ac_fn_c_try_link
"$LINENO"; then :
12405 ac_cv_lib_resolv_res_send
=yes
12407 ac_cv_lib_resolv_res_send
=no
12409 rm -f core conftest.err conftest.
$ac_objext \
12410 conftest
$ac_exeext conftest.
$ac_ext
12411 LIBS
=$ac_check_lib_save_LIBS
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12414 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12415 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12419 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12420 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12423 ac_check_lib_save_LIBS
=$LIBS
12424 LIBS
="-lresolv $LIBS"
12425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12428 /* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
12434 char __res_send ();
12438 return __res_send ();
12443 if ac_fn_c_try_link
"$LINENO"; then :
12444 ac_cv_lib_resolv___res_send
=yes
12446 ac_cv_lib_resolv___res_send
=no
12448 rm -f core conftest.err conftest.
$ac_objext \
12449 conftest
$ac_exeext conftest.
$ac_ext
12450 LIBS
=$ac_check_lib_save_LIBS
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12453 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12454 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12464 if test "$resolv" = yes ; then
12469 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12470 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12474 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12475 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12478 ac_check_lib_save_LIBS
=$LIBS
12479 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12489 char hes_getmailhost ();
12493 return hes_getmailhost ();
12498 if ac_fn_c_try_link
"$LINENO"; then :
12499 ac_cv_lib_hesiod_hes_getmailhost
=yes
12501 ac_cv_lib_hesiod_hes_getmailhost
=no
12503 rm -f core conftest.err conftest.
$ac_objext \
12504 conftest
$ac_exeext conftest.
$ac_ext
12505 LIBS
=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12508 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12509 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12518 if test x
"$hesiod" = xyes
; then
12520 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12527 # Do we need libresolv (due to res_init or Hesiod)?
12528 if test "$resolv" = yes ; then
12530 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12538 # These tell us which Kerberos-related libraries to use.
12545 if test "${with_kerberos}" != no
; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12547 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12548 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12551 ac_check_lib_save_LIBS
=$LIBS
12552 LIBS
="-lcom_err $LIBS"
12553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12571 if ac_fn_c_try_link
"$LINENO"; then :
12572 ac_cv_lib_com_err_com_err
=yes
12574 ac_cv_lib_com_err_com_err
=no
12576 rm -f core conftest.err conftest.
$ac_objext \
12577 conftest
$ac_exeext conftest.
$ac_ext
12578 LIBS
=$ac_check_lib_save_LIBS
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12581 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12582 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12588 if test $have_com_err = yes; then
12589 COM_ERRLIB
=-lcom_err
12590 LIBS
="$COM_ERRLIB $LIBS"
12592 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12596 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12597 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12600 ac_check_lib_save_LIBS
=$LIBS
12601 LIBS
="-lcrypto $LIBS"
12602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12611 char mit_des_cbc_encrypt ();
12615 return mit_des_cbc_encrypt ();
12620 if ac_fn_c_try_link
"$LINENO"; then :
12621 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12623 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12625 rm -f core conftest.err conftest.
$ac_objext \
12626 conftest
$ac_exeext conftest.
$ac_ext
12627 LIBS
=$ac_check_lib_save_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12630 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12631 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12637 if test $have_crypto = yes; then
12639 LIBS
="$CRYPTOLIB $LIBS"
12641 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12645 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12646 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12649 ac_check_lib_save_LIBS
=$LIBS
12650 LIBS
="-lk5crypto $LIBS"
12651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12660 char mit_des_cbc_encrypt ();
12664 return mit_des_cbc_encrypt ();
12669 if ac_fn_c_try_link
"$LINENO"; then :
12670 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12672 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12674 rm -f core conftest.err conftest.
$ac_objext \
12675 conftest
$ac_exeext conftest.
$ac_ext
12676 LIBS
=$ac_check_lib_save_LIBS
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12679 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12680 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12686 if test $have_k5crypto = yes; then
12687 CRYPTOLIB
=-lk5crypto
12688 LIBS
="$CRYPTOLIB $LIBS"
12690 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12694 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12695 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
12698 ac_check_lib_save_LIBS
=$LIBS
12699 LIBS
="-lkrb5 $LIBS"
12700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12709 char krb5_init_context ();
12713 return krb5_init_context ();
12718 if ac_fn_c_try_link
"$LINENO"; then :
12719 ac_cv_lib_krb5_krb5_init_context
=yes
12721 ac_cv_lib_krb5_krb5_init_context
=no
12723 rm -f core conftest.err conftest.
$ac_objext \
12724 conftest
$ac_exeext conftest.
$ac_ext
12725 LIBS
=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12728 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12729 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12735 if test $have_krb5=yes; then
12737 LIBS
="$KRB5LIB $LIBS"
12739 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12742 if test "${with_kerberos5}" = no
; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12744 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12745 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12746 $as_echo_n "(cached) " >&6
12748 ac_check_lib_save_LIBS
=$LIBS
12749 LIBS
="-ldes425 $LIBS"
12750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12753 /* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12759 char des_cbc_encrypt ();
12763 return des_cbc_encrypt ();
12768 if ac_fn_c_try_link
"$LINENO"; then :
12769 ac_cv_lib_des425_des_cbc_encrypt
=yes
12771 ac_cv_lib_des425_des_cbc_encrypt
=no
12773 rm -f core conftest.err conftest.
$ac_objext \
12774 conftest
$ac_exeext conftest.
$ac_ext
12775 LIBS
=$ac_check_lib_save_LIBS
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12778 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12779 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12785 if test $have_des425 = yes; then
12787 LIBS
="$DESLIB $LIBS"
12789 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12793 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12794 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12797 ac_check_lib_save_LIBS
=$LIBS
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12808 char des_cbc_encrypt ();
12812 return des_cbc_encrypt ();
12817 if ac_fn_c_try_link
"$LINENO"; then :
12818 ac_cv_lib_des_des_cbc_encrypt
=yes
12820 ac_cv_lib_des_des_cbc_encrypt
=no
12822 rm -f core conftest.err conftest.
$ac_objext \
12823 conftest
$ac_exeext conftest.
$ac_ext
12824 LIBS
=$ac_check_lib_save_LIBS
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12827 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12828 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12834 if test $have_des = yes; then
12836 LIBS
="$DESLIB $LIBS"
12838 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12843 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12847 ac_check_lib_save_LIBS
=$LIBS
12848 LIBS
="-lkrb4 $LIBS"
12849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12858 char krb_get_cred ();
12862 return krb_get_cred ();
12867 if ac_fn_c_try_link
"$LINENO"; then :
12868 ac_cv_lib_krb4_krb_get_cred
=yes
12870 ac_cv_lib_krb4_krb_get_cred
=no
12872 rm -f core conftest.err conftest.
$ac_objext \
12873 conftest
$ac_exeext conftest.
$ac_ext
12874 LIBS
=$ac_check_lib_save_LIBS
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12877 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12878 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12884 if test $have_krb4 = yes; then
12886 LIBS
="$KRB4LIB $LIBS"
12888 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12892 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12893 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12896 ac_check_lib_save_LIBS
=$LIBS
12898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12907 char krb_get_cred ();
12911 return krb_get_cred ();
12916 if ac_fn_c_try_link
"$LINENO"; then :
12917 ac_cv_lib_krb_krb_get_cred
=yes
12919 ac_cv_lib_krb_krb_get_cred
=no
12921 rm -f core conftest.err conftest.
$ac_objext \
12922 conftest
$ac_exeext conftest.
$ac_ext
12923 LIBS
=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12926 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12927 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12933 if test $have_krb = yes; then
12935 LIBS
="$KRB4LIB $LIBS"
12937 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12943 if test "${with_kerberos5}" != no
; then
12944 for ac_header
in krb5.h
12946 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12948 cat >>confdefs.h
<<_ACEOF
12949 #define HAVE_KRB5_H 1
12951 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12953 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12955 cat >>confdefs.h
<<_ACEOF
12956 #define HAVE_KRB5_ERROR_TEXT 1
12961 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12963 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12965 cat >>confdefs.h
<<_ACEOF
12966 #define HAVE_KRB5_ERROR_E_TEXT 1
12977 for ac_header
in des.h
12979 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12980 if test "x$ac_cv_header_des_h" = x
""yes; then :
12981 cat >>confdefs.h
<<_ACEOF
12982 #define HAVE_DES_H 1
12986 for ac_header
in kerberosIV
/des.h
12988 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12989 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12990 cat >>confdefs.h
<<_ACEOF
12991 #define HAVE_KERBEROSIV_DES_H 1
12995 for ac_header
in kerberos
/des.h
12997 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12998 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12999 cat >>confdefs.h
<<_ACEOF
13000 #define HAVE_KERBEROS_DES_H 1
13015 for ac_header
in krb.h
13017 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13018 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13019 cat >>confdefs.h
<<_ACEOF
13020 #define HAVE_KRB_H 1
13024 for ac_header
in kerberosIV
/krb.h
13026 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13027 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13028 cat >>confdefs.h
<<_ACEOF
13029 #define HAVE_KERBEROSIV_KRB_H 1
13033 for ac_header
in kerberos
/krb.h
13035 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13036 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13037 cat >>confdefs.h
<<_ACEOF
13038 #define HAVE_KERBEROS_KRB_H 1
13054 for ac_header
in com_err.h
13056 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13057 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13058 cat >>confdefs.h
<<_ACEOF
13059 #define HAVE_COM_ERR_H 1
13074 # Solaris requires -lintl if you want strerror (which calls dgettext)
13075 # to return localized messages.
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13077 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13078 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13079 $as_echo_n "(cached) " >&6
13081 ac_check_lib_save_LIBS
=$LIBS
13082 LIBS
="-lintl $LIBS"
13083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13096 return dgettext ();
13101 if ac_fn_c_try_link
"$LINENO"; then :
13102 ac_cv_lib_intl_dgettext
=yes
13104 ac_cv_lib_intl_dgettext
=no
13106 rm -f core conftest.err conftest.
$ac_objext \
13107 conftest
$ac_exeext conftest.
$ac_ext
13108 LIBS
=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13111 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13112 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_LIBINTL 1
13117 LIBS
="-lintl $LIBS"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13123 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13124 if test "${emacs_cv_localtime_cache+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13127 if test x
$ac_cv_func_tzset = xyes
; then
13128 if test "$cross_compiling" = yes; then :
13129 # If we have tzset, assume the worst when cross-compiling.
13130 emacs_cv_localtime_cache
=yes
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 extern char **environ;
13139 for (to = from = environ; (*to = *from); from++)
13140 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13143 char TZ_GMT0[] = "TZ=GMT0";
13144 char TZ_PST8[] = "TZ=PST8";
13147 time_t now = time ((time_t *) 0);
13148 int hour_GMT0, hour_unset;
13149 if (putenv (TZ_GMT0) != 0)
13151 hour_GMT0 = localtime (&now)->tm_hour;
13153 hour_unset = localtime (&now)->tm_hour;
13154 if (putenv (TZ_PST8) != 0)
13156 if (localtime (&now)->tm_hour == hour_GMT0)
13159 if (localtime (&now)->tm_hour != hour_unset)
13164 if ac_fn_c_try_run
"$LINENO"; then :
13165 emacs_cv_localtime_cache
=no
13167 emacs_cv_localtime_cache
=yes
13169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13174 # If we lack tzset, report that localtime does not cache TZ,
13175 # since we can't invalidate the cache if we don't have tzset.
13176 emacs_cv_localtime_cache
=no
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13180 $as_echo "$emacs_cv_localtime_cache" >&6; }
13181 if test $emacs_cv_localtime_cache = yes; then
13183 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13187 if test "x$HAVE_TIMEVAL" = xyes
; then
13188 for ac_func
in gettimeofday
13190 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13191 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13192 cat >>confdefs.h
<<_ACEOF
13193 #define HAVE_GETTIMEOFDAY 1
13199 if test $ac_cv_func_gettimeofday = yes; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13201 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13202 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 #ifdef TIME_WITH_SYS_TIME
13209 #include <sys/time.h>
13212 #ifdef HAVE_SYS_TIME_H
13213 #include <sys/time.h>
13221 struct timeval time;
13222 gettimeofday (&time, 0);
13227 if ac_fn_c_try_compile
"$LINENO"; then :
13228 emacs_cv_gettimeofday_two_arguments
=yes
13230 emacs_cv_gettimeofday_two_arguments
=no
13232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13235 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13236 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13238 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13245 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13246 if test "x$ac_cv_func_socket" = x
""yes; then :
13252 if test $ok_so_far = yes; then
13253 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13254 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13262 if test $ok_so_far = yes; then
13263 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13264 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13272 if test $ok_so_far = yes; then
13274 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13278 for ac_header
in sys
/ioctl.h
13280 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13282 cat >>confdefs.h
<<_ACEOF
13283 #define HAVE_SYS_IOCTL_H 1
13291 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13293 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13298 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13299 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13303 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 $as_echo "no" >&6; }
13310 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13311 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13315 cat >>confdefs.h
<<_ACEOF
13321 for ac_header
in vfork.h
13323 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13324 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13325 cat >>confdefs.h
<<_ACEOF
13326 #define HAVE_VFORK_H 1
13333 for ac_func
in fork vfork
13335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13337 eval as_val
=\$
$as_ac_var
13338 if test "x$as_val" = x
""yes; then :
13339 cat >>confdefs.h
<<_ACEOF
13340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13346 if test "x$ac_cv_func_fork" = xyes
; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13348 $as_echo_n "checking for working fork... " >&6; }
13349 if test "${ac_cv_func_fork_works+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13352 if test "$cross_compiling" = yes; then :
13353 ac_cv_func_fork_works
=cross
13355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 $ac_includes_default
13362 /* By Ruediger Kuhlmann. */
13363 return fork () < 0;
13369 if ac_fn_c_try_run
"$LINENO"; then :
13370 ac_cv_func_fork_works
=yes
13372 ac_cv_func_fork_works
=no
13374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13380 $as_echo "$ac_cv_func_fork_works" >&6; }
13383 ac_cv_func_fork_works
=$ac_cv_func_fork
13385 if test "x$ac_cv_func_fork_works" = xcross
; then
13387 *-*-amigaos* |
*-*-msdosdjgpp*)
13388 # Override, as these systems have only a dummy fork() stub
13389 ac_cv_func_fork_works
=no
13392 ac_cv_func_fork_works
=yes
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13398 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13399 if test "x$ac_cv_func_vfork" = xyes
; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13401 $as_echo_n "checking for working vfork... " >&6; }
13402 if test "${ac_cv_func_vfork_works+set}" = set; then :
13403 $as_echo_n "(cached) " >&6
13405 if test "$cross_compiling" = yes; then :
13406 ac_cv_func_vfork_works
=cross
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 /* Thanks to Paul Eggert for this test. */
13411 $ac_includes_default
13412 #include <sys/wait.h>
13413 #ifdef HAVE_VFORK_H
13414 # include <vfork.h>
13416 /* On some sparc systems, changes by the child to local and incoming
13417 argument registers are propagated back to the parent. The compiler
13418 is told about this with #include <vfork.h>, but some compilers
13419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13420 static variable whose address is put into a register that is
13421 clobbered by the vfork. */
13424 sparc_address_test (int arg)
13426 sparc_address_test (arg) int arg;
13429 static pid_t child;
13447 pid_t parent = getpid ();
13450 sparc_address_test (0);
13455 /* Here is another test for sparc vfork register problems. This
13456 test uses lots of local variables, at least as many local
13457 variables as main has allocated so far including compiler
13458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13460 reuse the register of parent for one of the local variables,
13461 since it will think that parent can't possibly be used any more
13462 in this routine. Assigning to the local variable will thus
13463 munge parent in the parent process. */
13465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13467 /* Convince the compiler that p..p7 are live; otherwise, it might
13468 use the same hardware register for all 8 local variables. */
13469 if (p != p1 || p != p2 || p != p3 || p != p4
13470 || p != p5 || p != p6 || p != p7)
13473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13474 from child file descriptors. If the child closes a descriptor
13475 before it execs or exits, this munges the parent's descriptor
13476 as well. Test for this by closing stdout in the child. */
13477 _exit(close(fileno(stdout)) != 0);
13482 while (wait(&status) != child)
13485 /* Was there some problem with vforking? */
13488 /* Did the child fail? (This shouldn't happen.) */
13491 /* Did the vfork/compiler bug occur? */
13492 || parent != getpid()
13494 /* Did the file descriptor bug occur? */
13495 || fstat(fileno(stdout), &st) != 0
13500 if ac_fn_c_try_run
"$LINENO"; then :
13501 ac_cv_func_vfork_works
=yes
13503 ac_cv_func_vfork_works
=no
13505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13511 $as_echo "$ac_cv_func_vfork_works" >&6; }
13514 if test "x$ac_cv_func_fork_works" = xcross
; then
13515 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13520 if test "x$ac_cv_func_vfork_works" = xyes
; then
13522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13526 $as_echo "#define vfork fork" >>confdefs.h
13529 if test "x$ac_cv_func_fork_works" = xyes
; then
13531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13537 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13538 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <langinfo.h>
13547 char* cs = nl_langinfo(CODESET);
13552 if ac_fn_c_try_link
"$LINENO"; then :
13553 emacs_cv_langinfo_codeset
=yes
13555 emacs_cv_langinfo_codeset
=no
13557 rm -f core conftest.err conftest.
$ac_objext \
13558 conftest
$ac_exeext conftest.
$ac_ext
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13562 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13563 if test $emacs_cv_langinfo_codeset = yes; then
13565 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13569 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13570 if test "x$ac_cv_type_size_t" = x
""yes; then :
13572 cat >>confdefs.h
<<_ACEOF
13573 #define HAVE_SIZE_T 1
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13581 $as_echo_n "checking for mbstate_t... " >&6; }
13582 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 $ac_includes_default
13588 # include <wchar.h>
13592 mbstate_t x; return sizeof x;
13597 if ac_fn_c_try_compile
"$LINENO"; then :
13598 ac_cv_type_mbstate_t
=yes
13600 ac_cv_type_mbstate_t
=no
13602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13605 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13606 if test $ac_cv_type_mbstate_t = yes; then
13608 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13612 $as_echo "#define mbstate_t int" >>confdefs.h
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13617 $as_echo_n "checking for C restrict keyword... " >&6; }
13618 if test "${emacs_cv_c_restrict+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 void fred (int *restrict x);
13632 if ac_fn_c_try_compile
"$LINENO"; then :
13633 emacs_cv_c_restrict
=yes
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 void fred (int *__restrict x);
13646 if ac_fn_c_try_compile
"$LINENO"; then :
13647 emacs_cv_c_restrict
=__restrict
13649 emacs_cv_c_restrict
=no
13651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13656 $as_echo "$emacs_cv_c_restrict" >&6; }
13657 case "$emacs_cv_c_restrict" in
13658 yes) emacs_restrict
=restrict
;;
13659 no
) emacs_restrict
="";;
13660 *) emacs_restrict
="$emacs_cv_c_restrict";;
13662 if test "$emacs_restrict" != __restrict
; then
13664 cat >>confdefs.h
<<_ACEOF
13665 #define __restrict $emacs_restrict
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13671 $as_echo_n "checking for C restricted array declarations... " >&6; }
13672 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 void fred (int x[__restrict]);
13686 if ac_fn_c_try_compile
"$LINENO"; then :
13687 emacs_cv_c_restrict_arr
=yes
13689 emacs_cv_c_restrict_arr
=no
13691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13694 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13695 if test "$emacs_cv_c_restrict_arr" = yes; then
13697 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13703 # Set up the CFLAGS for real compilation, so we can substitute it.
13704 CFLAGS
="$REAL_CFLAGS"
13705 CPPFLAGS
="$REAL_CPPFLAGS"
13707 ## Hack to detect a buggy GCC version.
13708 if test "x$GCC" = xyes \
13709 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13710 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13711 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13712 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13715 #### Find out which version of Emacs this is.
13716 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13717 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13718 if test x
"${version}" = x
; then
13719 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13721 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13723 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13726 ### Specify what sort of things we'll be editing into Makefile and config.h.
13727 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13752 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13753 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13754 ## end of LIBX_BASE, but nothing ever set it.
13759 ## Used in lwlib/Makefile.in.
13774 cat >>confdefs.h <<_ACEOF
13775 #define EMACS_CONFIGURATION "${canonical}"
13779 cat >>confdefs.h <<_ACEOF
13780 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13784 cat >>confdefs.h <<_ACEOF
13785 #define config_machfile "${machfile}"
13789 cat >>confdefs.h <<_ACEOF
13790 #define config_opsysfile "${opsysfile}"
13796 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13798 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13801 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13808 if test "${USE_X_TOOLKIT}" != "none" ; then
13809 WIDGET_OBJ
=widget.o
13811 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13813 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13815 $as_echo "#define USE_LUCID 1" >>confdefs.h
13817 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13819 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13824 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13825 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
13829 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13830 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13831 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
13835 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13836 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
13839 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
13845 case "$USE_X_TOOLKIT" in
13846 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
13847 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
13848 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
13852 if test "$USE_X_TOOLKIT" = "none"; then
13853 LIBXT_OTHER
="\$(LIBXSM)"
13854 OLDXMENU_TARGET
="really-oldXMenu"
13856 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13857 OLDXMENU_TARGET
="really-lwlib"
13862 ## The X Menu stuff is present in the X10 distribution, but missing
13863 ## from X11. If we have X10, just use the installed library;
13864 ## otherwise, use our own copy.
13865 if test "${HAVE_X11}" = "yes" ; then
13867 $as_echo "#define HAVE_X11 1" >>confdefs.h
13870 if test "$USE_X_TOOLKIT" = "none"; then
13871 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
13873 OLDXMENU
="\${lwlibdir}liblw.a"
13875 LIBXMENU
="\$(OLDXMENU)"
13876 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
13883 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
13892 if test "${HAVE_MENUS}" = "yes" ; then
13894 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13897 if test "${GNU_MALLOC}" = "yes" ; then
13899 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13902 if test "${REL_ALLOC}" = "yes" ; then
13904 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13909 if test "$opsys" = "cygwin"; then
13910 CYGWIN_OBJ
="sheap.o"
13911 ## Cygwin differs because of its unexec().
13913 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
13916 PRE_ALLOC_OBJ
=lastfile.o
13917 POST_ALLOC_OBJ
="\$(vmlimitobj)"
13925 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
13928 ## The -headerpad option tells ld (see man page) to leave room at the
13929 ## end of the header for adding load commands. Needed for dumping.
13930 ## 0x690 is the total size of 30 segment load commands (at 56
13931 ## each); under Cocoa 31 commands are required.
13932 if test "$HAVE_NS" = "yes"; then
13933 libs_nsgui
="-framework AppKit"
13934 headerpad_extra
=6C8
13937 headerpad_extra
=690
13939 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
13942 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
13947 ## This exists because src/Makefile.in did some extra fiddling around
13948 ## with LD_SWITCH_SYSTEM. The cpp logic was:
13949 ## #ifndef LD_SWITCH_SYSTEM
13950 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
13951 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
13952 ## not using gcc, darwin system not on an alpha (ie darwin, since
13953 ## darwin + alpha does not occur).
13954 ## Note that unlike L_S_S, this is not used in ac_link.
13955 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
13956 test "$opsys" = "darwin"; then
13957 LD_SWITCH_SYSTEM_EXTRA
="-X"
13959 LD_SWITCH_SYSTEM_EXTRA
=
13965 if test "x$GCC" = "xyes"; then
13968 ## cygwin: don't link against static libgcc.
13969 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
13972 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
13973 ## build on ARM EABI under GNU/Linux. (Bug#5518)
13974 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
13975 if test "$machine" = "arm"; then
13978 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
13979 ## immediately undefine it again and redefine it to empty.
13980 ## Was the C_SWITCH_X_SITE part really necessary?
13981 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
13986 ## Ask GCC where to find libgcc.a.
13987 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
13994 ## If we're using X11/GNUstep, define some consequences.
13995 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
13997 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14000 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14002 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14003 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14005 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14006 test "$HAVE_X_WINDOWS" = "yes" && \
14007 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14017 #### Report on what we decided to do.
14018 #### Report GTK as a toolkit, even if it doesn't use Xt.
14019 #### It makes printing result more understandable as using GTK sets
14020 #### toolkit_scroll_bars to yes by default.
14021 if test "${HAVE_GTK}" = "yes"; then
14026 Configured for \`${canonical}'.
14028 Where should the build process find the source code? ${srcdir}
14029 What operating system and machine description files should Emacs use?
14030 \`${opsysfile}' and \`${machfile}'
14031 What compiler should emacs be built with? ${CC} ${CFLAGS}
14032 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14033 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14034 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14035 What window system should Emacs use? ${window_system}
14036 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14038 if test -n "${x_includes}"; then
14039 echo " Where do we find X Windows header files? ${x_includes}"
14041 echo " Where do we find X Windows header files? Standard dirs"
14043 if test -n "${x_libraries}"; then
14044 echo " Where do we find X Windows libraries? ${x_libraries}"
14046 echo " Where do we find X Windows libraries? Standard dirs"
14049 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14050 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14051 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14052 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14053 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14054 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14055 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14056 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14057 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14058 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14059 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14061 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14062 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14063 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14064 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14066 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14069 if test $USE_XASSERTS = yes; then
14070 echo " Compiling with asserts turned on."
14071 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14076 if test "$HAVE_NS" = "yes"; then
14078 echo "You must run \"make install\" in order to test the built application.
14079 The installed application will go to nextstep/Emacs.app and can be
14080 run or moved from there."
14081 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14082 echo "The application will be fully self-contained."
14084 echo "The lisp resources for the application will be installed under ${prefix}.
14085 You may need to run \"make install\" with sudo. The application will fail
14086 to run if these resources are not installed."
14091 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14092 echo "D-Bus integration has been tested for GNU/Linux only."
14097 # Remove any trailing slashes in these variables.
14098 test "${prefix}" != NONE
&&
14099 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14100 test "${exec_prefix}" != NONE
&&
14101 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14103 # Now get this: Some word that is part of the ${srcdir} directory name
14104 # or the ${configuration} value might, just might, happen to be an
14105 # identifier like `sun4' or `i386' or something, and be predefined by
14106 # the C preprocessor to some helpful value like 1, or maybe the empty
14107 # string. Needless to say consequent macro substitutions are less
14108 # than conducive to the makefile finding the correct directory.
14109 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
14110 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
14111 # so that cannot have been doing anything.
14112 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
14113 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
14114 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
14116 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
14117 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
14118 ## from Makefile.c can correctly provide the arg `-traditional' to the
14121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14126 $EGREP "yes..yes" >/dev
/null
2>&1; then :
14127 CPP_NEED_TRADITIONAL
=no
14129 CPP_NEED_TRADITIONAL
=yes
14134 ac_config_files
="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
14136 ac_config_commands
="$ac_config_commands default"
14138 cat >confcache
<<\_ACEOF
14139 # This file is a shell script that caches the results of configure
14140 # tests run on this system so they can be shared between configure
14141 # scripts and configure runs, see configure's option --config-cache.
14142 # It is not useful on other systems. If it contains results you don't
14143 # want to keep, you may remove or edit it.
14145 # config.status only pays attention to the cache file if you give it
14146 # the --recheck option to rerun configure.
14148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14150 # following values.
14154 # The following way of writing the cache mishandles newlines in values,
14155 # but we know of no workaround that is simple, portable, and efficient.
14156 # So, we kill variables containing newlines.
14157 # Ultrix sh set writes to stderr and can't be redirected directly,
14158 # and sets the high bit in the cache file unless we assign to the vars.
14160 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14161 eval ac_val
=\$
$ac_var
14165 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14169 _ | IFS | as_nl
) ;; #(
14170 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14171 *) { eval $ac_var=; unset $ac_var;} ;;
14177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14178 *${as_nl}ac_space
=\
*)
14179 # `set' does not quote correctly, so add quotes: double-quote
14180 # substitution turns \\\\ into \\, and sed turns \\ into \.
14183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14186 # `set' quotes correctly as required by POSIX, so do not add quotes.
14187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14200 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14201 if test -w "$cache_file"; then
14202 test "x$cache_file" != "x/dev/null" &&
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14204 $as_echo "$as_me: updating cache $cache_file" >&6;}
14205 cat confcache
>$cache_file
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14213 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14214 # Let make expand exec_prefix.
14215 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14217 DEFS
=-DHAVE_CONFIG_H
14221 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14222 # 1. Remove the extension, and $U if already installed.
14223 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14224 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14225 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14226 # will be set to the directory where LIBOBJS objects are built.
14227 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14228 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14230 LIBOBJS
=$ac_libobjs
14232 LTLIBOBJS
=$ac_ltlibobjs
14236 : ${CONFIG_STATUS=./config.status}
14238 ac_clean_files_save
=$ac_clean_files
14239 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14241 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14243 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14245 # Generated by $as_me.
14246 # Run this file to recreate the current configuration.
14247 # Compiler output produced by configure, useful for debugging
14248 # configure, is in config.log if it exists.
14251 ac_cs_recheck=false
14254 SHELL=\${CONFIG_SHELL-$SHELL}
14257 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14258 ## -------------------- ##
14259 ## M4sh Initialization. ##
14260 ## -------------------- ##
14262 # Be more Bourne compatible
14263 DUALCASE
=1; export DUALCASE
# for MKS sh
14264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14268 # is contrary to our usage. Disable this feature.
14269 alias -g '${1+"$@"}'='"$@"'
14270 setopt NO_GLOB_SUBST
14272 case `(set -o) 2>/dev/null` in #(
14284 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14285 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14288 # Prefer a ksh shell builtin over an external printf program on Solaris,
14289 # but without wasting forks for bash or zsh.
14290 if test -z "$BASH_VERSION$ZSH_VERSION" \
14291 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14292 as_echo='print
-r --'
14293 as_echo_n='print
-rn --'
14294 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14295 as_echo='printf %s
\n'
14296 as_echo_n='printf %s
'
14298 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14299 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14300 as_echo_n='/usr
/ucb
/echo -n'
14302 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14303 as_echo_n_body='eval
14307 expr "X$arg" : "X\\(.*\\)$as_nl";
14308 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14310 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14312 export as_echo_n_body
14313 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14315 export as_echo_body
14316 as_echo='sh
-c $as_echo_body as_echo
'
14319 # The user is always right.
14320 if test "${PATH_SEPARATOR+set}" != set; then
14322 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14323 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14330 # We need space, tab and new line, in precisely that order. Quoting is
14331 # there to prevent editors from complaining about space-tab.
14332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14333 # splitting by setting IFS to empty value.)
14336 # Find who we are. Look in the path if we contain no directory separator.
14338 *[\\/]* ) as_myself=$0 ;;
14339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14343 test -z "$as_dir" && as_dir=.
14344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14350 # We did not find ourselves, most probably we were run as `sh COMMAND'
14351 # in which case we are not to be found in the path.
14352 if test "x$as_myself" = x
; then
14355 if test ! -f "$as_myself"; then
14356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14360 # Unset variables that we do not need and which cause bugs (e.g. in
14361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14362 # suppresses any "Segmentation fault" message there. '((' could
14363 # trigger a bug in pdksh 5.2.14.
14364 for as_var
in BASH_ENV ENV MAIL MAILPATH
14365 do eval test x\
${$as_var+set} = xset \
14366 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14379 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14382 # as_fn_error ERROR [LINENO LOG_FD]
14383 # ---------------------------------
14384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14386 # script with status $?, using 1 if that was 0.
14389 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14391 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14394 $as_echo "$as_me: error: $1" >&2
14395 as_fn_exit
$as_status
14399 # as_fn_set_status STATUS
14400 # -----------------------
14401 # Set $? to STATUS, without forking.
14402 as_fn_set_status
()
14405 } # as_fn_set_status
14407 # as_fn_exit STATUS
14408 # -----------------
14409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14413 as_fn_set_status
$1
14419 # Portably unset VAR.
14422 { eval $1=; unset $1;}
14424 as_unset
=as_fn_unset
14425 # as_fn_append VAR VALUE
14426 # ----------------------
14427 # Append the text in VALUE to the end of the definition contained in VAR. Take
14428 # advantage of any shell optimizations that allow amortized linear growth over
14429 # repeated appends, instead of the typical quadratic growth present in naive
14431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14432 eval 'as_fn_append ()
14443 # as_fn_arith ARG...
14444 # ------------------
14445 # Perform arithmetic evaluation on the ARGs, and store the result in the
14446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14447 # must be portable across $(()) and expr.
14448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14449 eval 'as_fn_arith ()
14456 as_val
=`expr "$@" || test $? -eq 1`
14461 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14462 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14468 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14469 as_basename
=basename
14474 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14480 as_me
=`$as_basename -- "$0" ||
14481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14482 X"$0" : 'X\(//\)$' \| \
14483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14485 sed '/^.*\/\([^/][^/]*\)\/*$/{
14499 # Avoid depending upon Character Ranges.
14500 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14501 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14502 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14503 as_cr_digits
='0123456789'
14504 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14506 ECHO_C
= ECHO_N
= ECHO_T
=
14507 case `echo -n x` in #(((((
14509 case `echo 'xy\c'` in
14510 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14512 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14519 rm -f conf$$ conf$$.exe conf$$.
file
14520 if test -d conf$$.dir
; then
14521 rm -f conf$$.dir
/conf$$.
file
14524 mkdir conf$$.dir
2>/dev
/null
14526 if (echo >conf$$.
file) 2>/dev
/null
; then
14527 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14529 # ... but there are two gotchas:
14530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14532 # In both cases, we have to default to `cp -p'.
14533 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14535 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14543 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14544 rmdir conf$$.dir
2>/dev
/null
14549 # Create "$as_dir" as a directory, including parents if necessary.
14554 -*) as_dir
=.
/$as_dir;;
14556 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14560 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14561 *) as_qdir
=$as_dir;;
14563 as_dirs
="'$as_qdir' $as_dirs"
14564 as_dir
=`$as_dirname -- "$as_dir" ||
14565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14566 X"$as_dir" : 'X\(//\)[^/]' \| \
14567 X"$as_dir" : 'X\(//\)$' \| \
14568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14569 $as_echo X"$as_dir" |
14570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14574 /^X\(\/\/\)[^/].*/{
14587 test -d "$as_dir" && break
14589 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14590 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14594 if mkdir
-p .
2>/dev
/null
; then
14595 as_mkdir_p
='mkdir -p "$as_dir"'
14597 test -d .
/-p && rmdir .
/-p
14601 if test -x / >/dev
/null
2>&1; then
14602 as_test_x
='test -x'
14604 if ls -dL / >/dev
/null
2>&1; then
14611 if test -d "$1"; then
14617 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14618 ???[sx]*):;;*)false;;esac;fi
14622 as_executable_p
=$as_test_x
14624 # Sed expression to map a string onto a valid CPP name.
14625 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14627 # Sed expression to map a string onto a valid variable name.
14628 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14632 ## ----------------------------------- ##
14633 ## Main body of $CONFIG_STATUS script. ##
14634 ## ----------------------------------- ##
14636 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14639 # Save the log message, to keep $0 and so on meaningful, and to
14640 # report actual input values of CONFIG_FILES etc. instead of their
14641 # values after options handling.
14643 This file was extended by emacs $as_me 24.0.50, which was
14644 generated by GNU Autoconf 2.65. Invocation command line was
14646 CONFIG_FILES = $CONFIG_FILES
14647 CONFIG_HEADERS = $CONFIG_HEADERS
14648 CONFIG_LINKS = $CONFIG_LINKS
14649 CONFIG_COMMANDS = $CONFIG_COMMANDS
14652 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14657 case $ac_config_files in *"
14658 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14661 case $ac_config_headers in *"
14662 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14667 # Files that config.status was made for.
14668 config_files="$ac_config_files"
14669 config_headers="$ac_config_headers"
14670 config_commands="$ac_config_commands"
14674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14676 \`$as_me' instantiates files and other configuration actions
14677 from templates according to the current configuration. Unless the files
14678 and actions are specified as TAGs, all are instantiated by default.
14680 Usage: $0 [OPTION]... [TAG]...
14682 -h, --help print this help, then exit
14683 -V, --version print version number and configuration settings, then exit
14684 --config print configuration, then exit
14685 -q, --quiet, --silent
14686 do not print progress messages
14687 -d, --debug don't remove temporary files
14688 --recheck update $as_me by reconfiguring in the same conditions
14689 --file=FILE[:TEMPLATE]
14690 instantiate the configuration file FILE
14691 --header=FILE[:TEMPLATE]
14692 instantiate the configuration header FILE
14694 Configuration files:
14697 Configuration headers:
14700 Configuration commands:
14703 Report bugs to the package provider."
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14709 emacs config.status 24.0.50
14710 configured by $0, generated by GNU Autoconf 2.65,
14711 with options \\"\$ac_cs_config\\"
14713 Copyright (C) 2009 Free Software Foundation, Inc.
14714 This config.status script is free software; the Free Software Foundation
14715 gives unlimited permission to copy, distribute and modify it."
14720 test -n "\$AWK" || AWK=awk
14723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14724 # The default lists apply if the user does not specify any file.
14730 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14731 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14742 # Handling of the options.
14743 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14745 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14746 $as_echo "$ac_cs_version"; exit ;;
14747 --config |
--confi |
--conf |
--con |
--co |
--c )
14748 $as_echo "$ac_cs_config"; exit ;;
14749 --debug |
--debu |
--deb |
--de |
--d |
-d )
14751 --file |
--fil |
--fi |
--f )
14754 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14756 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14757 ac_need_defaults
=false
;;
14758 --header |
--heade |
--head |
--hea )
14761 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14763 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14764 ac_need_defaults
=false
;;
14766 # Conflict between --help and --header
14767 as_fn_error
"ambiguous option: \`$1'
14768 Try \`$0 --help' for more information.";;
14769 --help |
--hel |
-h )
14770 $as_echo "$ac_cs_usage"; exit ;;
14771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14772 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14775 # This is an error.
14776 -*) as_fn_error
"unrecognized option: \`$1'
14777 Try \`$0 --help' for more information." ;;
14779 *) as_fn_append ac_config_targets
" $1"
14780 ac_need_defaults
=false
;;
14786 ac_configure_extra_args
=
14788 if $ac_cs_silent; then
14790 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795 if \$ac_cs_recheck; then
14796 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14798 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14799 CONFIG_SHELL='$SHELL'
14800 export CONFIG_SHELL
14805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14810 ## Running $as_me. ##
14816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14826 # Handling of arguments.
14827 for ac_config_target
in $ac_config_targets
14829 case $ac_config_target in
14830 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14831 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14832 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
14833 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14834 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14835 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14836 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14837 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14838 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14839 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14840 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14841 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14842 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14844 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14849 # If the user did not use the arguments to specify the items to instantiate,
14850 # then the envvar interface is used. Set only those that are not.
14851 # We use the long form for the default assignment because of an extremely
14852 # bizarre bug on SunOS 4.1.3.
14853 if $ac_need_defaults; then
14854 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14855 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14859 # Have a temporary directory for convenience. Make it in the build tree
14860 # simply because there is no reason against having it here, and in addition,
14861 # creating and moving files from /tmp can sometimes cause problems.
14862 # Hook for its removal unless debugging.
14863 # Note that there is a small window in which the directory will not be cleaned:
14864 # after its creation but before its name has been assigned to `$tmp'.
14868 trap 'exit_status=$?
14869 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14871 trap 'as_fn_exit 1' 1 2 13 15
14873 # Create a (secure) tmp directory for tmp files.
14876 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14877 test -n "$tmp" && test -d "$tmp"
14880 tmp
=.
/conf$$
-$RANDOM
14881 (umask 077 && mkdir
"$tmp")
14882 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14884 # Set up the scripts for CONFIG_FILES section.
14885 # No need to generate them if there are no CONFIG_FILES.
14886 # This happens for instance with `./config.status config.h'.
14887 if test -n "$CONFIG_FILES"; then
14890 ac_cr
=`echo X | tr X '\015'`
14891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14892 # But we know of no other shell where ac_cr would be empty at this
14893 # point, so we can use a bashism as a fallback.
14894 if test "x$ac_cr" = x
; then
14895 eval ac_cr
=\$
\'\\r
\'
14897 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14901 ac_cs_awk_cr
=$ac_cr
14904 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14909 echo "cat >conf$$subs.awk <<_ACEOF" &&
14910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14912 } >conf$$subs.sh ||
14913 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14914 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14916 for ac_last_try in false false false false false :; do
14917 . ./conf$$subs.sh ||
14918 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14920 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14921 if test $ac_delim_n = $ac_delim_num; then
14923 elif $ac_last_try; then
14924 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14926 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14929 rm -f conf$$subs.sh
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14936 s/^/S["/; s
/!.
*/"]=/
14946 s/\(.\{148\}\)..*/\1/
14948 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14953 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14960 s/\(.\{148\}\)..*/\1/
14962 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14966 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14971 ' <conf$$subs.awk | sed '
14976 ' >>$CONFIG_STATUS || ac_write_fail=1
14977 rm -f conf$$subs.awk
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14981 for (key in S) S_is_set[key] = 1
14987 nfields = split(line, field, "@
")
14989 len = length(field[1])
14990 for (i = 2; i < nfields; i++) {
14992 keylen = length(key)
14993 if (S_is_set[key]) {
14995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14996 len += length(value) + length(field[++i])
15007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15008 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15009 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15012 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15013 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15016 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15017 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15018 # trailing colons and then remove the whole line if VPATH becomes empty
15019 # (actually we leave an empty line to preserve line numbers).
15020 if test "x
$srcdir" = x.; then
15021 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15022 s/:*\$(srcdir):*/:/
15023 s/:*\${srcdir}:*/:/
15025 s/^\([^=]*=[ ]*\):*/\1/
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15032 fi # test -n "$CONFIG_FILES"
15034 # Set up the scripts for CONFIG_HEADERS section.
15035 # No need to generate them if there are no CONFIG_HEADERS.
15036 # This happens for instance with `./config.status Makefile'.
15037 if test -n "$CONFIG_HEADERS"; then
15038 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15042 # Transform confdefs.h into an awk script `defines.awk', embedded as
15043 # here-document in config.status, that substitutes the proper values into
15044 # config.h.in to produce config.h.
15046 # Create a delimiter string that does not exist in confdefs.h, to ease
15047 # handling of long lines.
15049 for ac_last_try in false false :; do
15050 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15051 if test -z "$ac_t"; then
15053 elif $ac_last_try; then
15054 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15056 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15060 # For the awk script, D is an array of macro values keyed by name,
15061 # likewise P contains macro parameters if any. Preserve backslash
15062 # newline sequences.
15064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15066 s/.\{148\}/&'"$ac_delim"'/g
15069 s/^[ ]*#[ ]*define[ ][ ]*/ /
15076 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15078 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15083 D["\
1"]=" \
3\\\\\\n
"\\/p
15085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15090 s/.\{148\}/&'"$ac_delim"'/g
15095 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15098 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15100 ' <confdefs.h | sed '
15101 s/'"$ac_delim"'/"\\\
15102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15105 for (key in D) D_is_set[key] = 1
15108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15110 split(line, arg, " ")
15111 if (arg[1] == "#") {
15115 defundef
= substr
(arg
[1], 2)
15118 split(mac1
, mac2
, "(") #)
15120 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15121 if (D_is_set
[macro
]) {
15122 # Preserve the white space surrounding the "#".
15123 print prefix
"define", macro P
[macro
] D
[macro
]
15126 # Replace #undef with comments. This is necessary, for example,
15127 # in the case of _POSIX_SOURCE, which is predefined and required
15128 # on some systems where configure will not decide to define it.
15129 if (defundef
== "undef") {
15130 print
"/*", prefix defundef
, macro
, "*/"
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15139 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15140 fi # test -n "$CONFIG_HEADERS"
15143 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15148 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15150 case $ac_mode$ac_tag in
15152 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15153 :[FH
]-) ac_tag
=-:-;;
15154 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15171 -) ac_f
="$tmp/stdin";;
15172 *) # Look for the file first in the build tree, then in the source tree
15173 # (if the path is not absolute). The absolute path cannot be DOS-style,
15174 # because $ac_f cannot contain `:'.
15178 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15180 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15182 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15183 as_fn_append ac_file_inputs
" '$ac_f'"
15186 # Let's still pretend it is `configure' which instantiates (i.e., don't
15187 # use $as_me), people would be surprised to read:
15188 # /* config.h. Generated by config.status. */
15189 configure_input
='Generated from '`
15190 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15192 if test x
"$ac_file" != x-
; then
15193 configure_input
="$ac_file. $configure_input"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15195 $as_echo "$as_me: creating $ac_file" >&6;}
15197 # Neutralize special characters interpreted by sed in replacement strings.
15198 case $configure_input in #(
15199 *\
&* |
*\|
* |
*\\* )
15200 ac_sed_conf_input
=`$as_echo "$configure_input" |
15201 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15202 *) ac_sed_conf_input
=$configure_input;;
15206 *:-:* |
*:-) cat >"$tmp/stdin" \
15207 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15212 ac_dir
=`$as_dirname -- "$ac_file" ||
15213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15214 X"$ac_file" : 'X\(//\)[^/]' \| \
15215 X"$ac_file" : 'X\(//\)$' \| \
15216 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15217 $as_echo X"$ac_file" |
15218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15222 /^X\(\/\/\)[^/].*/{
15235 as_dir
="$ac_dir"; as_fn_mkdir_p
15239 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15241 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15242 # A ".." for each directory in $ac_dir_suffix.
15243 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15244 case $ac_top_builddir_sub in
15245 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15246 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15249 ac_abs_top_builddir
=$ac_pwd
15250 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15251 # for backward compatibility:
15252 ac_top_builddir
=$ac_top_build_prefix
15255 .
) # We are building in place.
15257 ac_top_srcdir
=$ac_top_builddir_sub
15258 ac_abs_top_srcdir
=$ac_pwd ;;
15259 [\\/]* | ?
:[\\/]* ) # Absolute name.
15260 ac_srcdir
=$srcdir$ac_dir_suffix;
15261 ac_top_srcdir
=$srcdir
15262 ac_abs_top_srcdir
=$srcdir ;;
15263 *) # Relative name.
15264 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15265 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15266 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15268 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15278 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15279 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15284 # If the template does not know about datarootdir, expand it.
15285 # FIXME: This hack should be removed a few years after 2.60.
15286 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15297 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15298 *datarootdir
*) ac_datarootdir_seen
=yes;;
15299 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15301 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15304 ac_datarootdir_hack='
15305 s&@datadir@&$datadir&g
15306 s&@docdir@&$docdir&g
15307 s&@infodir@&$infodir&g
15308 s&@localedir@&$localedir&g
15309 s&@mandir@&$mandir&g
15310 s&\\\${datarootdir}&$datarootdir&g' ;;
15314 # Neutralize VPATH when `$srcdir' = `.'.
15315 # Shell code in configure.ac might set extrasub.
15316 # FIXME: do we really want to maintain this feature?
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 ac_sed_extra="$ac_vpsub
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15323 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15324 s|@configure_input@|
$ac_sed_conf_input|
;t t
15325 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15326 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15327 s
&@srcdir@
&$ac_srcdir&;t t
15328 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15329 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15330 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15331 s
&@builddir@
&$ac_builddir&;t t
15332 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15333 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15334 s
&@INSTALL@
&$ac_INSTALL&;t t
15335 $ac_datarootdir_hack
15337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
15338 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15344 which seems to be undefined. Please make sure it is defined." >&5
15345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15346 which seems to be undefined. Please make sure it is defined." >&2;}
15350 -) cat "$tmp/out" && rm -f "$tmp/out";;
15351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15353 || as_fn_error "could not create $ac_file" "$LINENO" 5
15359 if test x"$ac_file" != x-; then
15361 $as_echo "/* $configure_input */" \
15362 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15363 } >"$tmp/config.h" \
15364 || as_fn_error "could not create $ac_file" "$LINENO" 5
15365 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15367 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15370 mv "$tmp/config.h" "$ac_file" \
15371 || as_fn_error "could not create $ac_file" "$LINENO" 5
15374 $as_echo "/* $configure_input */" \
15375 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15376 || as_fn_error "could not create -" "$LINENO" 5
15380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15381 $as_echo "$as_me: executing $ac_file commands" >&6;}
15386 case $ac_file$ac_mode in
15389 ### Make the necessary directories, if they don't exist.
15390 for dir
in etc lisp
; do
15391 test -d ${dir} || mkdir
${dir}
15394 # Build src/Makefile from ${srcdir}/src/Makefile.c
15395 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
15396 # This must be done after src/config.h is built, since we rely on that file.
15398 echo creating src
/epaths.h
15399 ${MAKE-make} epaths-force
15401 # As of 2000-11-19, newest development versions of GNU cpp preprocess
15402 # `..' to `. .' unless invoked with -traditional
15404 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
15405 CPPFLAGS
="$CPPFLAGS -traditional"
15408 echo creating src
/Makefile
15410 rm -f junk.c junk1.c junk2.c
15411 sed -e '/start of cpp stuff/q' \
15412 < Makefile.c
> junk1.c
15413 sed -e '1,/start of cpp stuff/d'\
15414 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15415 < Makefile.c
> junk.c
15416 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
15417 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15418 cat junk1.c junk2.c
> Makefile.new
15419 rm -f junk.c junk1.c junk2.c
15420 chmod 444 Makefile.new
15421 mv -f Makefile.new Makefile
15424 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
15425 echo creating src
/.gdbinit
15426 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
15437 ac_clean_files
=$ac_clean_files_save
15439 test $ac_write_fail = 0 ||
15440 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15443 # configure is writing to config.log, and then calls config.status.
15444 # config.status does its own redirection, appending to config.log.
15445 # Unfortunately, on DOS this fails, as config.log is still kept open
15446 # by configure, so config.status won't be able to write to it; its
15447 # output is simply discarded. So we exec the FD to /dev/null,
15448 # effectively closing config.log, so it can be properly (re)opened and
15449 # appended to by config.status. When coming back to configure, we
15450 # need to make the FD available again.
15451 if test "$no_create" != yes; then
15453 ac_config_status_args
=
15454 test "$silent" = yes &&
15455 ac_config_status_args
="$ac_config_status_args --quiet"
15457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15460 # would make configure fail if this is the last instruction.
15461 $ac_cs_success || as_fn_exit $?
15463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}