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
603 LD_SWITCH_SYSTEM_TEMACS
636 x_default_search_path
700 LD_SWITCH_X_SITE_AUX_RPATH
777 program_transform_name
788 ac_subst_files
='deps_frag
791 enable_option_checking
811 with_toolkit_scroll_bars
824 enable_ns_self_contained
826 enable_maintainer_mode
829 enable_use_lisp_union_type
835 ac_precious_vars
='build_alias
847 # Initialize some variables set by options.
849 ac_init_version
=false
850 ac_unrecognized_opts
=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
861 program_transform_name
=s
,x
,x
,
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir
='${exec_prefix}/bin'
876 sbindir
='${exec_prefix}/sbin'
877 libexecdir
='${exec_prefix}/libexec'
878 datarootdir
='${prefix}/share'
879 datadir
='${datarootdir}'
880 sysconfdir
='${prefix}/etc'
881 sharedstatedir
='${prefix}/com'
882 localstatedir
='${prefix}/var'
883 includedir
='${prefix}/include'
884 oldincludedir
='/usr/include'
885 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir
='${datarootdir}/info'
891 libdir
='${exec_prefix}/lib'
892 localedir
='${datarootdir}/locale'
893 mandir
='${datarootdir}/man'
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\
$ac_option
907 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
919 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
922 -build |
--build |
--buil |
--bui |
--bu)
923 ac_prev
=build_alias
;;
924 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
925 build_alias
=$ac_optarg ;;
927 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
928 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
929 ac_prev
=cache_file
;;
930 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
931 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
932 cache_file
=$ac_optarg ;;
935 cache_file
=config.cache
;;
937 -datadir |
--datadir |
--datadi |
--datad)
939 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
940 datadir
=$ac_optarg ;;
942 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
943 |
--dataroo |
--dataro |
--datar)
944 ac_prev
=datarootdir
;;
945 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
946 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
947 datarootdir
=$ac_optarg ;;
949 -disable-* |
--disable-*)
950 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
953 as_fn_error
"invalid feature name: $ac_useropt"
954 ac_useropt_orig
=$ac_useropt
955 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep
=', ';;
963 eval enable_
$ac_useropt=no
;;
965 -docdir |
--docdir |
--docdi |
--doc |
--do)
967 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
970 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
972 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
975 -enable-* |
--enable-*)
976 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
979 as_fn_error
"invalid feature name: $ac_useropt"
980 ac_useropt_orig
=$ac_useropt
981 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep
=', ';;
989 eval enable_
$ac_useropt=\
$ac_optarg ;;
991 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
992 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
993 |
--exec |
--exe |
--ex)
994 ac_prev
=exec_prefix
;;
995 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
996 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
997 |
--exec=* |
--exe=* |
--ex=*)
998 exec_prefix
=$ac_optarg ;;
1000 -gas |
--gas |
--ga |
--g)
1001 # Obsolete; use --with-gas.
1004 -help |
--help |
--hel |
--he |
-h)
1005 ac_init_help
=long
;;
1006 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1007 ac_init_help
=recursive
;;
1008 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1009 ac_init_help
=short
;;
1011 -host |
--host |
--hos |
--ho)
1012 ac_prev
=host_alias
;;
1013 -host=* |
--host=* |
--hos=* |
--ho=*)
1014 host_alias
=$ac_optarg ;;
1016 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1018 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1020 htmldir
=$ac_optarg ;;
1022 -includedir |
--includedir |
--includedi |
--included |
--include \
1023 |
--includ |
--inclu |
--incl |
--inc)
1024 ac_prev
=includedir
;;
1025 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1026 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1027 includedir
=$ac_optarg ;;
1029 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1031 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1032 infodir
=$ac_optarg ;;
1034 -libdir |
--libdir |
--libdi |
--libd)
1036 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1037 libdir
=$ac_optarg ;;
1039 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1040 |
--libexe |
--libex |
--libe)
1041 ac_prev
=libexecdir
;;
1042 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1043 |
--libexe=* |
--libex=* |
--libe=*)
1044 libexecdir
=$ac_optarg ;;
1046 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1047 ac_prev
=localedir
;;
1048 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1049 localedir
=$ac_optarg ;;
1051 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1052 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1053 ac_prev
=localstatedir
;;
1054 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1055 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1056 localstatedir
=$ac_optarg ;;
1058 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1060 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1061 mandir
=$ac_optarg ;;
1063 -nfp |
--nfp |
--nf)
1064 # Obsolete; use --without-fp.
1067 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1068 |
--no-cr |
--no-c |
-n)
1071 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1072 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1075 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1076 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1077 |
--oldin |
--oldi |
--old |
--ol |
--o)
1078 ac_prev
=oldincludedir
;;
1079 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1080 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1081 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1082 oldincludedir
=$ac_optarg ;;
1084 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1086 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1087 prefix
=$ac_optarg ;;
1089 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1090 |
--program-pre |
--program-pr |
--program-p)
1091 ac_prev
=program_prefix
;;
1092 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1093 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1094 program_prefix
=$ac_optarg ;;
1096 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1097 |
--program-suf |
--program-su |
--program-s)
1098 ac_prev
=program_suffix
;;
1099 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1100 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1101 program_suffix
=$ac_optarg ;;
1103 -program-transform-name |
--program-transform-name \
1104 |
--program-transform-nam |
--program-transform-na \
1105 |
--program-transform-n |
--program-transform- \
1106 |
--program-transform |
--program-transfor \
1107 |
--program-transfo |
--program-transf \
1108 |
--program-trans |
--program-tran \
1109 |
--progr-tra |
--program-tr |
--program-t)
1110 ac_prev
=program_transform_name
;;
1111 -program-transform-name=* |
--program-transform-name=* \
1112 |
--program-transform-nam=* |
--program-transform-na=* \
1113 |
--program-transform-n=* |
--program-transform-=* \
1114 |
--program-transform=* |
--program-transfor=* \
1115 |
--program-transfo=* |
--program-transf=* \
1116 |
--program-trans=* |
--program-tran=* \
1117 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1118 program_transform_name
=$ac_optarg ;;
1120 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1122 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1123 pdfdir
=$ac_optarg ;;
1125 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1127 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1130 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1131 |
-silent |
--silent |
--silen |
--sile |
--sil)
1134 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1136 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1138 sbindir
=$ac_optarg ;;
1140 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1141 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1142 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1144 ac_prev
=sharedstatedir
;;
1145 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1146 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1147 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1149 sharedstatedir
=$ac_optarg ;;
1151 -site |
--site |
--sit)
1153 -site=* |
--site=* |
--sit=*)
1156 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1158 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1159 srcdir
=$ac_optarg ;;
1161 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1162 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1163 ac_prev
=sysconfdir
;;
1164 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1165 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1166 sysconfdir
=$ac_optarg ;;
1168 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1169 ac_prev
=target_alias
;;
1170 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1171 target_alias
=$ac_optarg ;;
1173 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1176 -version |
--version |
--versio |
--versi |
--vers |
-V)
1177 ac_init_version
=: ;;
1180 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1183 as_fn_error
"invalid package name: $ac_useropt"
1184 ac_useropt_orig
=$ac_useropt
1185 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep
=', ';;
1193 eval with_
$ac_useropt=\
$ac_optarg ;;
1195 -without-* |
--without-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error
"invalid package name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval with_
$ac_useropt=no
;;
1212 # Obsolete; use --with-x.
1215 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1216 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1217 ac_prev
=x_includes
;;
1218 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1219 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1220 x_includes
=$ac_optarg ;;
1222 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1223 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1224 ac_prev
=x_libraries
;;
1225 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1226 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1227 x_libraries
=$ac_optarg ;;
1229 -*) as_fn_error
"unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1234 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1238 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1240 eval $ac_envvar=\
$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 if test -n "$ac_prev"; then
1255 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error
"missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val
=\$
$ac_var
1274 # Remove trailing slashes.
1277 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\
$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$
]* | ?
:[\\/]* ) continue;;
1283 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1285 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target
=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x
; then
1297 if test "x$build_alias" = x
; then
1298 cross_compiling
=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1309 test "$silent" = yes && exec 6>/dev
/null
1312 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di
=`ls -di .` &&
1314 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error
"working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error
"pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted
=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir
=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted
=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1356 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var
in $ac_precious_vars; do
1373 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1375 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1449 --x-includes=DIR X include files are
in DIR
1450 --x-libraries=DIR X library files are
in DIR
1453 --build=BUILD configure
for building on BUILD
[guessed
]
1454 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1465 --disable-option-checking ignore unrecognized
--enable/--with options
1466 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1467 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1468 --disable-ns-self-contained
1469 disable self contained build under NeXTstep
1470 --enable-asserts compile code with asserts enabled
1471 --enable-maintainer-mode
1472 enable make rules and dependencies not useful
(and
1473 sometimes confusing
) to the casual installer
1474 --enable-locallisppath=PATH
1475 directories Emacs should search
for lisp files
1476 specific to this site
1477 --enable-checking[=LIST
]
1478 enable expensive run-time checks. With LIST
, enable
1479 only specific categories of checks. Categories are
:
1480 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1481 stringfreelist
, xmallocoverrun
, conslist
1482 --enable-use-lisp-union-type
1483 use a union
for the Lisp_Object data
type. This is
1484 only useful
for development
for catching certain
1486 --enable-profiling build emacs with profiling support. This might not
1487 work on all platforms
1488 --enable-autodepend automatically generate dependencies to .h-files.
1489 Requires GNU Make and Gcc. Enabled
if GNU Make and
1491 --disable-largefile omit support
for large files
1494 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1495 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1496 --without-pop don
't support POP mail retrieval with movemail
1497 --with-kerberos support Kerberos-authenticated POP
1498 --with-kerberos5 support Kerberos version 5 authenticated POP
1499 --with-hesiod support Hesiod to get the POP server host
1500 --with-mmdf support MMDF mailboxes
1501 --with-mail-unlink unlink, rather than empty, mail spool after reading
1502 --with-mailhost=HOSTNAME
1503 string giving default POP mail host
1504 --without-sound don't compile with sound support
1505 --without-sync-input process async input synchronously
1506 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, gtk3
,
1507 lucid or athena
, motif
, no
)
1508 --without-xpm don
't compile with XPM image support
1509 --without-jpeg don't compile with JPEG image support
1510 --without-tiff don
't compile with TIFF image support
1511 --without-gif don't compile with GIF image support
1512 --without-png don
't compile with PNG image support
1513 --without-rsvg don't compile with SVG image support
1514 --without-xft don
't use XFT for anti aliased fonts
1515 --without-libotf don't use libotf
for OpenType font support
1516 --without-m17n-flt don
't use m17n-flt for text shaping
1517 --without-toolkit-scroll-bars
1518 don't use Motif or Xaw3d scroll bars
1519 --without-xaw3d don
't use Xaw3d
1520 --without-xim don't use X11 XIM
1521 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1522 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1524 --without-dbus don't compile with D-Bus support
1525 --without-gconf don
't compile with GConf support
1526 --without-selinux don't compile with SELinux support
1527 --without-makeinfo don
't require makeinfo for building manuals
1528 --without-compress-info don't
compress the installed Info pages
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config
for finding GTK and librsvg
1531 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1532 /usr
/lib
, or
/usr
/lib64 on some platforms.
1533 --with-gnustep-conf=PATH
1534 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1535 or
/etc
/GNUstep
/GNUstep.conf
1536 --with-x use the X Window System
1538 Some influential environment variables
:
1539 CC C compiler
command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1542 nonstandard directory
<lib dir
>
1543 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1544 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1545 you have headers
in a nonstandard directory
<include dir
>
1547 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1549 Use these variables to override the choices made by
`configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to the package provider.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1615 emacs configure 24.0.50
1616 generated by GNU Autoconf 2.65
1618 Copyright (C) 2009 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1639 *) ac_try_echo
=$ac_try;;
1641 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err
; then
1646 grep -v '^ *+' conftest.err
>conftest.er1
1647 cat conftest.er1
>&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.
$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.
$ac_ext >&5
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1663 as_fn_set_status
$ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1673 rm -f conftest.
$ac_objext conftest
$ac_exeext
1674 if { { ac_try
="$ac_link"
1676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 $as_test_x conftest$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1722 *) ac_try_echo
=$ac_try;;
1724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728 if test -s conftest.err
; then
1729 grep -v '^ *+' conftest.err
>conftest.er1
1730 cat conftest.er1
>&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } >/dev
/null
&& {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.
$ac_ext >&5
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1746 as_fn_set_status
$ac_retval
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1755 ac_fn_c_check_header_mongrel
()
1757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1758 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 $as_echo_n "(cached) " >&6
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1776 if ac_fn_c_try_compile
"$LINENO"; then :
1777 ac_header_compiler
=yes
1779 ac_header_compiler
=no
1781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1792 if ac_fn_c_try_cpp
"$LINENO"; then :
1793 ac_header_preproc
=yes
1795 ac_header_preproc
=no
1797 rm -f conftest.err conftest.
$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1827 eval "$3=\$ac_header_compiler"
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1835 } # ac_fn_c_check_header_mongrel
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1843 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1844 if { { ac_try
="$ac_link"
1846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.
$ac_ext >&5
1871 ac_retval
=$ac_status
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1875 as_fn_set_status
$ac_retval
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile
"$LINENO"; then :
1901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1908 } # ac_fn_c_check_header_compile
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR
1911 # ------------------------------------
1912 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1913 ac_fn_c_check_decl
()
1915 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1917 $as_echo_n "checking whether $2 is declared... " >&6; }
1918 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1935 if ac_fn_c_try_compile
"$LINENO"; then :
1940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1947 } # ac_fn_c_check_decl
1949 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1950 # ----------------------------------------------
1951 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1952 ac_fn_c_check_header_preproc
()
1954 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 $as_echo_n "(cached) " >&6
1960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1964 if ac_fn_c_try_cpp
"$LINENO"; then :
1969 rm -f conftest.err conftest.
$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1976 } # ac_fn_c_check_header_preproc
1978 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1979 # ----------------------------------------------------
1980 # Tries to find if the field MEMBER exists in type AGGR, after including
1981 # INCLUDES, setting cache variable VAR accordingly.
1982 ac_fn_c_check_member
()
1984 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1986 $as_echo_n "checking for $2.$3... " >&6; }
1987 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
2003 if ac_fn_c_try_compile
"$LINENO"; then :
2006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2013 if (sizeof ac_aggr.$3)
2019 if ac_fn_c_try_compile
"$LINENO"; then :
2024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2033 } # ac_fn_c_check_member
2035 # ac_fn_c_check_func LINENO FUNC VAR
2036 # ----------------------------------
2037 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2038 ac_fn_c_check_func
()
2040 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2050 #define $2 innocuous_$2
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char $2 (); below.
2054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2055 <limits.h> exists even on freestanding compilers. */
2058 # include <limits.h>
2060 # include <assert.h>
2065 /* Override any GCC internal prototype to avoid an error.
2066 Use char because int might match the return type of a GCC
2067 builtin and then its argument prototype would still apply. */
2072 /* The GNU C library defines this for functions which it implements
2073 to always fail with ENOSYS. Some functions are actually named
2074 something starting with __ and the normal name is an alias. */
2075 #if defined __stub_$2 || defined __stub___$2
2087 if ac_fn_c_try_link
"$LINENO"; then :
2092 rm -f core conftest.err conftest.
$ac_objext \
2093 conftest
$ac_exeext conftest.
$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2100 } # ac_fn_c_check_func
2102 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2103 # -------------------------------------------
2104 # Tests whether TYPE exists after having included INCLUDES, setting cache
2105 # variable VAR accordingly.
2106 ac_fn_c_check_type
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2112 $as_echo_n "(cached) " >&6
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2127 if ac_fn_c_try_compile
"$LINENO"; then :
2128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2140 if ac_fn_c_try_compile
"$LINENO"; then :
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2154 } # ac_fn_c_check_type
2155 cat >config.log
<<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2159 It was created by emacs $as_me 24.0.50, which was
2160 generated by GNU Autoconf 2.65. Invocation command line was
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2182 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2185 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2186 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2187 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir
=.
2196 $as_echo "PATH: $as_dir"
2212 # Keep a trace of the command line.
2213 # Strip out --no-create and --no-recursion so they do not pile up.
2214 # Strip out --silent because we don't want to record it for future runs.
2215 # Also quote any args containing shell meta-characters.
2216 # Make two passes to allow for proper duplicate-argument suppression.
2220 ac_must_keep_next
=false
2226 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2227 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2228 |
-silent |
--silent |
--silen |
--sile |
--sil)
2231 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2236 as_fn_append ac_configure_args1
" '$ac_arg'"
2237 if test $ac_must_keep_next = true
; then
2238 ac_must_keep_next
=false
# Got value, back to normal.
2241 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2242 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2243 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2244 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2245 case "$ac_configure_args0 " in
2246 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 -* ) ac_must_keep_next
=true
;;
2252 as_fn_append ac_configure_args
" '$ac_arg'"
2257 { ac_configure_args0
=; unset ac_configure_args0
;}
2258 { ac_configure_args1
=; unset ac_configure_args1
;}
2260 # When interrupted or exit'd, cleanup temporary files, and complete
2261 # config.log. We remove comments because anyway the quotes in there
2262 # would cause problems or look ugly.
2263 # WARNING: Use '\'' to represent an apostrophe within the trap.
2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2265 trap 'exit_status=$?
2266 # Save into config.log some information that might help in debugging.
2271 ## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 ## ----------------- ##
2310 ## Output variables. ##
2311 ## ----------------- ##
2314 for ac_var in $ac_subst_vars
2316 eval ac_val=\$$ac_var
2318 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 $as_echo "$ac_var='\''$ac_val'\''"
2324 if test -n "$ac_subst_files"; then
2326 ## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##
2331 for ac_var
in $ac_subst_files
2333 eval ac_val
=\$
$ac_var
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 $as_echo "$ac_var='\''$ac_val'\''"
2342 if test -s confdefs.h; then
2352 test "$ac_signal" != 0 &&
2353 $as_echo "$as_me: caught signal $ac_signal"
2354 $as_echo "$as_me: exit $exit_status"
2356 rm -f core *.core core.conftest.* &&
2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 for ac_signal
in 1 2 13 15; do
2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2366 rm -f -r conftest
* confdefs.h
2368 $as_echo "/* confdefs.h */" > confdefs.h
2370 # Predefined preprocessor variables.
2372 cat >>confdefs.h
<<_ACEOF
2373 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 cat >>confdefs.h
<<_ACEOF
2377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 cat >>confdefs.h
<<_ACEOF
2381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 cat >>confdefs.h
<<_ACEOF
2385 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 cat >>confdefs.h
<<_ACEOF
2389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 cat >>confdefs.h
<<_ACEOF
2393 #define PACKAGE_URL "$PACKAGE_URL"
2397 # Let the site file select an alternate cache file if it wants to.
2398 # Prefer an explicitly selected file to automatically selected ones.
2401 if test -n "$CONFIG_SITE"; then
2402 ac_site_file1
=$CONFIG_SITE
2403 elif test "x$prefix" != xNONE
; then
2404 ac_site_file1
=$prefix/share
/config.site
2405 ac_site_file2
=$prefix/etc
/config.site
2407 ac_site_file1
=$ac_default_prefix/share
/config.site
2408 ac_site_file2
=$ac_default_prefix/etc
/config.site
2410 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2412 test "x$ac_site_file" = xNONE
&& continue
2413 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
2421 if test -r "$cache_file"; then
2422 # Some versions of bash will fail to source /dev/null (special files
2423 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2424 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2426 $as_echo "$as_me: loading cache $cache_file" >&6;}
2428 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2429 *) .
"./$cache_file";;
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2434 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438 as_fn_append ac_header_list
" stdlib.h"
2439 as_fn_append ac_header_list
" unistd.h"
2440 as_fn_append ac_header_list
" sys/param.h"
2441 as_fn_append ac_header_list
" sys/time.h"
2442 as_fn_append ac_func_list
" alarm"
2443 # Check that the precious variables saved in the cache have kept the same
2445 ac_cache_corrupted
=false
2446 for ac_var
in $ac_precious_vars; do
2447 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2448 eval ac_new_set
=\
$ac_env_${ac_var}_set
2449 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2450 eval ac_new_val
=\
$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted
=: ;;
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted
=: ;;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w
=`echo x $ac_old_val`
2465 ac_new_val_w
=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted
=:
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\
$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2484 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg
=$ac_var=$ac_new_val ;;
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2505 ac_cpp
='$CPP $CPPFLAGS'
2506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2511 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2515 test "$program_prefix" != NONE
&&
2516 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE
&&
2519 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2526 lispdir
='${datadir}/emacs/${version}/lisp'
2527 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2528 '${datadir}/emacs/site-lisp'
2529 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2530 etcdir
='${datadir}/emacs/${version}/etc'
2531 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2532 docdir
='${datadir}/emacs/${version}/etc'
2533 gamedir
='${localstatedir}/games/emacs'
2540 # Check whether --with-pop was given.
2541 if test "${with_pop+set}" = set; then :
2547 if test "$with_pop" = yes; then
2548 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2553 # Check whether --with-kerberos was given.
2554 if test "${with_kerberos+set}" = set; then :
2555 withval
=$with_kerberos;
2560 if test "$with_kerberos" != no
; then
2561 $as_echo "#define KERBEROS 1" >>confdefs.h
2566 # Check whether --with-kerberos5 was given.
2567 if test "${with_kerberos5+set}" = set; then :
2568 withval
=$with_kerberos5;
2573 if test "${with_kerberos5}" != no
; then
2574 if test "${with_kerberos}" = no
; then
2576 $as_echo "#define KERBEROS 1" >>confdefs.h
2580 $as_echo "#define KERBEROS5 1" >>confdefs.h
2585 # Check whether --with-hesiod was given.
2586 if test "${with_hesiod+set}" = set; then :
2587 withval
=$with_hesiod;
2592 if test "$with_hesiod" != no
; then
2594 $as_echo "#define HESIOD 1" >>confdefs.h
2599 # Check whether --with-mmdf was given.
2600 if test "${with_mmdf+set}" = set; then :
2606 if test "$with_mmdf" != no
; then
2608 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2613 # Check whether --with-mail-unlink was given.
2614 if test "${with_mail_unlink+set}" = set; then :
2615 withval
=$with_mail_unlink;
2620 if test "$with_mail_unlink" != no
; then
2622 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2627 # Check whether --with-mailhost was given.
2628 if test "${with_mailhost+set}" = set; then :
2629 withval
=$with_mailhost;
2630 cat >>confdefs.h
<<_ACEOF
2631 #define MAILHOST "$withval"
2638 # Check whether --with-sound was given.
2639 if test "${with_sound+set}" = set; then :
2640 withval
=$with_sound;
2647 # Check whether --with-sync-input was given.
2648 if test "${with_sync_input+set}" = set; then :
2649 withval
=$with_sync_input;
2654 if test "$with_sync_input" = yes; then
2656 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2661 # Check whether --with-x-toolkit was given.
2662 if test "${with_x_toolkit+set}" = set; then :
2663 withval
=$with_x_toolkit; case "${withval}" in
2664 y | ye |
yes ) val
=gtk
;;
2666 l | lu | luc | luci | lucid
) val
=lucid
;;
2667 a |
at | ath | athe | athen | athena
) val
=athena
;;
2668 m | mo | mot | moti | motif
) val
=motif
;;
2669 g | gt | gtk
) val
=gtk
;;
2672 as_fn_error
"\`--with-x-toolkit=$withval' is invalid;
2673 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2674 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2683 # Check whether --with-xpm was given.
2684 if test "${with_xpm+set}" = set; then :
2691 # Check whether --with-jpeg was given.
2692 if test "${with_jpeg+set}" = set; then :
2699 # Check whether --with-tiff was given.
2700 if test "${with_tiff+set}" = set; then :
2707 # Check whether --with-gif was given.
2708 if test "${with_gif+set}" = set; then :
2715 # Check whether --with-png was given.
2716 if test "${with_png+set}" = set; then :
2723 # Check whether --with-rsvg was given.
2724 if test "${with_rsvg+set}" = set; then :
2732 # Check whether --with-xft was given.
2733 if test "${with_xft+set}" = set; then :
2740 # Check whether --with-libotf was given.
2741 if test "${with_libotf+set}" = set; then :
2742 withval
=$with_libotf;
2748 # Check whether --with-m17n-flt was given.
2749 if test "${with_m17n_flt+set}" = set; then :
2750 withval
=$with_m17n_flt;
2757 # Check whether --with-toolkit-scroll-bars was given.
2758 if test "${with_toolkit_scroll_bars+set}" = set; then :
2759 withval
=$with_toolkit_scroll_bars;
2761 with_toolkit_scroll_bars
=yes
2765 # Check whether --with-xaw3d was given.
2766 if test "${with_xaw3d+set}" = set; then :
2767 withval
=$with_xaw3d;
2773 # Check whether --with-xim was given.
2774 if test "${with_xim+set}" = set; then :
2781 # Check whether --with-ns was given.
2782 if test "${with_ns+set}" = set; then :
2790 # Check whether --with-gpm was given.
2791 if test "${with_gpm+set}" = set; then :
2798 # Check whether --with-dbus was given.
2799 if test "${with_dbus+set}" = set; then :
2806 # Check whether --with-gconf was given.
2807 if test "${with_gconf+set}" = set; then :
2808 withval
=$with_gconf;
2814 # Check whether --with-selinux was given.
2815 if test "${with_selinux+set}" = set; then :
2816 withval
=$with_selinux;
2822 ## For the times when you want to build Emacs but don't have
2823 ## a suitable makeinfo, and can live without the manuals.
2825 # Check whether --with-makeinfo was given.
2826 if test "${with_makeinfo+set}" = set; then :
2827 withval
=$with_makeinfo;
2833 ## This is an option because I do not know if all info/man support
2834 ## compressed files, nor how to test if they do so.
2836 # Check whether --with-compress-info was given.
2837 if test "${with_compress_info+set}" = set; then :
2838 withval
=$with_compress_info;
2840 with_compress_info
=yes
2843 if test $with_compress_info = yes; then
2851 # Check whether --with-pkg-config-prog was given.
2852 if test "${with_pkg_config_prog+set}" = set; then :
2853 withval
=$with_pkg_config_prog;
2856 if test "X${with_pkg_config_prog}" != X
; then
2857 if test "${with_pkg_config_prog}" != yes; then
2858 PKG_CONFIG
="${with_pkg_config_prog}"
2864 # Check whether --with-crt-dir was given.
2865 if test "${with_crt_dir+set}" = set; then :
2866 withval
=$with_crt_dir;
2869 CRT_DIR
="${with_crt_dir}"
2872 # Check whether --with-gnustep-conf was given.
2873 if test "${with_gnustep_conf+set}" = set; then :
2874 withval
=$with_gnustep_conf;
2877 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2878 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2879 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2880 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2882 # Check whether --enable-ns-self-contained was given.
2883 if test "${enable_ns_self_contained+set}" = set; then :
2884 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2886 EN_NS_SELF_CONTAINED
=yes
2890 # Check whether --enable-asserts was given.
2891 if test "${enable_asserts+set}" = set; then :
2892 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2898 # Check whether --enable-maintainer-mode was given.
2899 if test "${enable_maintainer_mode+set}" = set; then :
2900 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2902 USE_MAINTAINER_MODE
=no
2905 if test $USE_MAINTAINER_MODE = yes; then
2912 # Check whether --enable-locallisppath was given.
2913 if test "${enable_locallisppath+set}" = set; then :
2914 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2916 elif test "${enableval}" != "yes"; then
2917 locallisppath
=${enableval}
2922 # Check whether --enable-checking was given.
2923 if test "${enable_checking+set}" = set; then :
2924 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2927 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2928 for check
in $ac_checking_flags
2931 # these set all the flags to specific states
2932 yes) ac_enable_checking
=1 ;;
2933 no
) ac_enable_checking
= ;
2934 ac_gc_check_stringbytes
= ;
2935 ac_gc_check_string_overrun
= ;
2936 ac_gc_check_string_free_list
= ;
2937 ac_xmalloc_overrun
= ;
2938 ac_gc_check_cons_list
= ;;
2939 all
) ac_enable_checking
=1 ;
2940 ac_gc_check_stringbytes
=1 ;
2941 ac_gc_check_string_overrun
=1 ;
2942 ac_gc_check_string_free_list
=1 ;
2943 ac_xmalloc_overrun
=1 ;
2944 ac_gc_check_cons_list
=1 ;;
2945 # these enable particular checks
2946 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2947 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2948 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2949 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2950 conslist
) ac_gc_check_cons_list
=1 ;;
2951 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
2956 if test x
$ac_enable_checking != x
; then
2958 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2961 if test x
$ac_gc_check_stringbytes != x
; then
2963 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2966 if test x
$ac_gc_check_stringoverrun != x
; then
2968 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2971 if test x
$ac_gc_check_string_free_list != x
; then
2973 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2976 if test x
$ac_xmalloc_overrun != x
; then
2978 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2981 if test x
$ac_gc_check_cons_list != x
; then
2983 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2987 # Check whether --enable-use-lisp-union-type was given.
2988 if test "${enable_use_lisp_union_type+set}" = set; then :
2989 enableval
=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
2991 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
2998 # Check whether --enable-profiling was given.
2999 if test "${enable_profiling+set}" = set; then :
3000 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
3003 if test x
$ac_enable_profiling != x
; then
3004 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
3005 PROFILING_LDFLAGS
="-pg"
3013 # Check whether --enable-autodepend was given.
3014 if test "${enable_autodepend+set}" = set; then :
3015 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
3017 ac_enable_autodepend
=yes
3021 #### Make srcdir absolute, if it isn't already. It's important to
3022 #### avoid running the path through pwd unnecessarily, since pwd can
3023 #### give you automounter prefixes, which can go away. We do all this
3024 #### so Emacs can find its files when run uninstalled.
3025 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3030 ## We may be able to use the $PWD environment variable to make this
3031 ## absolute. But sometimes PWD is inaccurate.
3032 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3033 ## but that tested only for a well-formed and valid PWD,
3034 ## it did not object when PWD was well-formed and valid but just wrong.
3035 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3039 srcdir
="`(cd ${srcdir}; pwd)`"
3042 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
3045 #### Check if the source directory already has a configured system in it.
3046 if test `pwd` != `(cd ${srcdir} && pwd)` \
3047 && test -f "${srcdir}/src/config.h" ; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3049 as a build directory right now; it has been configured in its own
3050 right. To configure in another directory as well, you MUST
3051 use GNU make. If you do not have GNU make, then you must
3052 now do \`make distclean' in ${srcdir},
3053 and then run $0 again." >&5
3054 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3055 as a build directory right now; it has been configured in its own
3056 right. To configure in another directory as well, you MUST
3057 use GNU make. If you do not have GNU make, then you must
3058 now do \`make distclean' in ${srcdir},
3059 and then run $0 again." >&2;}
3062 #### Given the configuration name, set machfile and opsysfile to the
3063 #### names of the m/*.h and s/*.h files we should use.
3065 ### Canonicalize the configuration name.
3068 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3069 for ac_t
in install-sh
install.sh shtool
; do
3070 if test -f "$ac_dir/$ac_t"; then
3072 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3077 if test -z "$ac_aux_dir"; then
3078 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3081 # These three variables are undocumented and unsupported,
3082 # and are intended to be withdrawn in a future Autoconf release.
3083 # They can cause serious problems if a builder's source tree is in a directory
3084 # whose full name contains unusual characters.
3085 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3086 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3087 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3090 # Make sure we can run config.sub.
3091 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3092 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3095 $as_echo_n "checking build system type... " >&6; }
3096 if test "${ac_cv_build+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3099 ac_build_alias
=$build_alias
3100 test "x$ac_build_alias" = x
&&
3101 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3102 test "x$ac_build_alias" = x
&&
3103 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3104 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3105 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3109 $as_echo "$ac_cv_build" >&6; }
3110 case $ac_cv_build in
3112 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3115 ac_save_IFS
=$IFS; IFS
='-'
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3125 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3129 $as_echo_n "checking host system type... " >&6; }
3130 if test "${ac_cv_host+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3133 if test "x$host_alias" = x
; then
3134 ac_cv_host
=$ac_cv_build
3136 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3137 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3142 $as_echo "$ac_cv_host" >&6; }
3145 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3148 ac_save_IFS
=$IFS; IFS
='-'
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3158 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3162 configuration
=${host_alias-${build_alias-$host}}
3166 ### If you add support for a new configuration, add code to this
3167 ### switch statement to recognize your configuration name and select
3168 ### the appropriate operating system and machine description files.
3170 ### You would hope that you could choose an m/*.h file pretty much
3171 ### based on the machine portion of the configuration name, and an s/*.h
3172 ### file based on the operating system portion. However, it turns out
3173 ### that each m/*.h file is pretty manufacturer-specific - for
3174 ### example mips.h is MIPS
3175 ### So we basically have to have a special case for each
3176 ### configuration name.
3178 ### As far as handling version numbers on operating systems is
3179 ### concerned, make sure things will fail in a fixable way. If
3180 ### /etc/MACHINES doesn't say anything about version numbers, be
3181 ### prepared to handle anything reasonably. If version numbers
3182 ### matter, be sure /etc/MACHINES says something about it.
3184 machine
='' opsys
='' unported
=no
3185 case "${canonical}" in
3190 case "${canonical}" in
3191 alpha
*) machine
=alpha
;;
3192 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3193 arm
*) machine
=arm
;;
3194 ia64-
*) machine
=ia64
;;
3195 i
[3456]86-*) machine
=intel386
;;
3196 powerpc-
*) machine
=macppc
;;
3197 sparc-
*) machine
=sparc
;;
3198 sparc64-
*) machine
=sparc
;;
3202 ## FreeBSD kernel + glibc based userland
3205 case "${canonical}" in
3206 alpha
*) machine
=alpha
;;
3207 amd64-
*|x86_64-
*) machine
=amdx86-64
;;
3208 ia64-
*) machine
=ia64
;;
3209 i
[3456]86-*) machine
=intel386
;;
3210 powerpc-
*) machine
=macppc
;;
3211 sparc-
*) machine
=sparc
;;
3212 sparc64-
*) machine
=sparc
;;
3219 case "${canonical}" in
3220 alpha
*) machine
=alpha
;;
3221 x86_64-
*) machine
=amdx86-64
;;
3222 arm-
*) machine
=arm
;;
3223 hppa-
*) machine
=hp800
;;
3224 i
[3456]86-*) machine
=intel386
;;
3225 m68k-
*) machine
=m68k
;;
3226 powerpc-
*) machine
=macppc
;;
3227 mips-
*) machine
=mips
;;
3228 mipse
[bl
]-*) machine
=mips
;;
3229 sparc
*-) machine
=sparc
;;
3230 vax-
*) machine
=vax
;;
3237 case "${canonical}" in
3238 alpha
*) machine
=alpha
;;
3239 x86_64-
*) machine
=amdx86-64
;;
3240 arm-
*) machine
=arm
;;
3241 hppa-
*) machine
=hp800
;;
3242 i386-
*) machine
=intel386
;;
3243 powerpc-
*) machine
=macppc
;;
3244 sparc
*) machine
=sparc
;;
3245 vax-
*) machine
=vax
;;
3249 alpha
*-*-linux-gnu* )
3250 machine
=alpha opsys
=gnu-linux
3254 machine
=arm opsys
=gnu-linux
3257 ## Apple Darwin / Mac OS X
3259 case "${canonical}" in
3260 i
[3456]86-* ) machine
=intel386
;;
3261 powerpc-
* ) machine
=macppc
;;
3262 x86_64-
* ) machine
=amdx86-64
;;
3266 # Define CPP as follows to make autoconf work correctly.
3267 CPP
="${CC-cc} -E -no-cpp-precomp"
3268 # Use fink packages if available.
3269 if test -d /sw
/include
&& test -d /sw
/lib
; then
3270 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3271 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3272 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3276 ## HP 9000 series 700 and 800, running HP/UX
3277 hppa
*-hp-hpux10.2
* )
3278 machine
=hp800 opsys
=hpux10-20
3280 hppa
*-hp-hpux1[1-9]* )
3281 machine
=hp800 opsys
=hpux11
3282 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3285 hppa
*-*-linux-gnu* )
3286 machine
=hp800 opsys
=gnu-linux
3291 machine
=ibms390 opsys
=gnu-linux
3293 s390x-
*-linux-gnu* )
3294 machine
=ibms390x opsys
=gnu-linux
3296 rs6000-ibm-aix4.
[23]* )
3297 machine
=ibmrs6000 opsys
=aix4-2
3299 powerpc-ibm-aix4.
[23]* )
3300 machine
=ibmrs6000 opsys
=aix4-2
3302 rs6000-ibm-aix
[56]* )
3303 machine
=ibmrs6000 opsys
=aix4-2
3305 powerpc-ibm-aix
[56]* )
3306 machine
=ibmrs6000 opsys
=aix4-2
3309 ## Macintosh PowerPC
3310 powerpc
*-*-linux-gnu* )
3311 machine
=macppc opsys
=gnu-linux
3314 ## Silicon Graphics machines
3317 machine
=iris4d opsys
=irix6-5
3318 # Without defining _LANGUAGE_C, things get masked out in the headers
3319 # so that, for instance, grepping for `free' in stdlib.h fails and
3320 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3321 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3322 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3326 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3327 machine
=sparc opsys
=gnu-linux
3331 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3332 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3333 case "${canonical}" in
3334 i
[3456]86-*-* ) machine
=intel386
;;
3335 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3336 sparc
* ) machine
=sparc
;;
3339 case "${canonical}" in
3340 *-sunos5.6
* |
*-solaris2.6
* )
3342 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3345 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3347 emacs_check_sunpro_c
=yes
3348 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3350 *-sunos5* |
*-solaris* )
3352 emacs_check_sunpro_c
=yes
3353 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3356 ## Watch out for a compiler that we know will not work.
3357 case "${canonical}" in
3358 *-solaris* |
*-sunos5* )
3359 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3360 ## /usr/ucb/cc doesn't work;
3361 ## we should find some other compiler that does work.
3371 machine
=ia64 opsys
=gnu-linux
3374 ## Intel 386 machines where we don't care about the manufacturer.
3377 case "${canonical}" in
3378 *-cygwin ) opsys
=cygwin
;;
3379 *-darwin* ) opsys
=darwin
3380 CPP
="${CC-cc} -E -no-cpp-precomp"
3382 *-linux-gnu* ) opsys
=gnu-linux
;;
3383 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3384 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3385 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3386 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3390 ## m68k Linux-based GNU system
3392 machine
=m68k opsys
=gnu-linux
3395 ## Mips Linux-based GNU system
3396 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3397 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3398 machine
=mips opsys
=gnu-linux
3401 ## AMD x86-64 Linux-based GNU system
3402 x86_64-
*-linux-gnu* )
3403 machine
=amdx86-64 opsys
=gnu-linux
3406 ## Tensilica Xtensa Linux-based GNU system
3407 xtensa
*-*-linux-gnu* )
3408 machine
=xtensa opsys
=gnu-linux
3411 ## SuperH Linux-based GNU system
3412 sh
[34]*-*-linux-gnu* )
3413 machine
=sh3 opsys
=gnu-linux
3421 ### If the code above didn't choose an operating system, just choose
3422 ### an operating system based on the configuration name. You really
3423 ### only want to use this when you have no idea what the right
3424 ### operating system is; if you know what operating systems a machine
3425 ### runs, it's cleaner to make it explicit in the case statement
3427 if test x
"${opsys}" = x
; then
3428 case "${canonical}" in
3429 *-gnu* ) opsys
=gnu
;;
3438 if test $unported = yes; then
3439 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3440 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3443 machfile
="m/${machine}.h"
3444 opsysfile
="s/${opsys}.h"
3447 #### Choose a compiler.
3448 test -n "$CC" && cc_specified
=yes
3450 # Save the value of CFLAGS that the user specified.
3451 SPECIFIED_CFLAGS
="$CFLAGS"
3454 ac_cpp
='$CPP $CPPFLAGS'
3455 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC
="$CC" # Let the user override the test.
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 for ac_exec_ext
in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc
; ac_word
=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir
=.
3514 for ac_exec_ext
in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_CC
="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x
; then
3538 case $cross_compiling:$ac_tool_warned in
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned
=yes ;;
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC
="$CC" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc
; ac_word
=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC
="$CC" # Let the user override the test.
3603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir
=.
3608 for ac_exec_ext
in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected
=yes
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy
$ac_cv_prog_CC
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3631 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog
in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC
="$CC" # Let the user override the test.
3661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir
=.
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog
in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy
$ac_prog; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC
="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3735 if test "x$ac_ct_CC" = x
; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned
=yes ;;
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error
"no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details." "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760 for ac_option
in --version -v -V -qversion; do
3761 { { ac_try
="$ac_compiler $ac_option >&5"
3763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3770 if test -s conftest.err; then
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805 for ac_file in $ac_files
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 if { { ac_try="$ac_link_default"
3816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3817 *) ac_try_echo
=$ac_try;;
3819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3830 for ac_file
in $ac_files ''
3832 test -f "$ac_file" ||
continue
3834 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3837 # We found the default executable, but exeext='' is most
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3843 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3855 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.
$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 { as_fn_set_status
77
3869 as_fn_error
"C compiler cannot create executables
3870 See \`config.log' for more details." "$LINENO" 5; }; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3873 $as_echo "yes" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3876 $as_echo_n "checking for C compiler default output file name... " >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3878 $as_echo "$ac_file" >&6; }
3879 ac_exeext
=$ac_cv_exeext
3881 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3882 ac_clean_files
=$ac_clean_files_save
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3884 $as_echo_n "checking for suffix of executables... " >&6; }
3885 if { { ac_try
="$ac_link"
3887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_link") 2>&5
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; then :
3896 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3897 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3898 # work properly (i.e., refer to `conftest.exe'), while it won't with
3900 for ac_file
in conftest.exe conftest conftest.
*; do
3901 test -f "$ac_file" ||
continue
3903 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3904 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3913 See \`config.log' for more details." "$LINENO" 5; }
3915 rm -f conftest conftest
$ac_cv_exeext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3917 $as_echo "$ac_cv_exeext" >&6; }
3919 rm -f conftest.
$ac_ext
3920 EXEEXT
=$ac_cv_exeext
3922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3928 FILE *f = fopen ("conftest.out", "w");
3929 return ferror (f) || fclose (f) != 0;
3935 ac_clean_files
="$ac_clean_files conftest.out"
3936 # Check that the compiler produces executables we can run. If not, either
3937 # the compiler is broken, or we cross compile.
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3939 $as_echo_n "checking whether we are cross compiling... " >&6; }
3940 if test "$cross_compiling" != yes; then
3941 { { ac_try
="$ac_link"
3943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_link") 2>&5
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3952 if { ac_try='./conftest$ac_cv_exeext'
3953 { { case "(($ac_try" in
3954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3955 *) ac_try_echo
=$ac_try;;
3957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_try") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; }; then
3965 if test "$cross_compiling" = maybe
; then
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error
"cannot run C compiled programs.
3971 If you meant to cross compile, use \`--host'.
3972 See \`config.log' for more details." "$LINENO" 5; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3977 $as_echo "$cross_compiling" >&6; }
3979 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3980 ac_clean_files
=$ac_clean_files_save
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3982 $as_echo_n "checking for suffix of object files... " >&6; }
3983 if test "${ac_cv_objext+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 rm -f conftest.o conftest.obj
3998 if { { ac_try
="$ac_compile"
4000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_compile") 2>&5
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; then :
4009 for ac_file in conftest.o conftest.obj conftest.*; do
4010 test -f "$ac_file" || continue;
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4013 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error "cannot compute suffix of object files
: cannot compile
4024 See \
`config.log' for more details." "$LINENO" 5; }
4026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4029 $as_echo "$ac_cv_objext" >&6; }
4030 OBJEXT=$ac_cv_objext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4033 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4034 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4062 if test $ac_compiler_gnu = yes; then
4067 ac_test_CFLAGS=${CFLAGS+set}
4068 ac_save_CFLAGS=$CFLAGS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4070 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4071 if test "${ac_cv_prog_cc_g+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_save_c_werror_flag=$ac_c_werror_flag
4075 ac_c_werror_flag=yes
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4131 $as_echo "$ac_cv_prog_cc_g" >&6; }
4132 if test "$ac_test_CFLAGS" = set; then
4133 CFLAGS=$ac_save_CFLAGS
4134 elif test $ac_cv_prog_cc_g = yes; then
4135 if test "$GCC" = yes; then
4141 if test "$GCC" = yes; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4148 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4149 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 ac_cv_prog_cc_c89=no
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4174 s = g (p, va_arg (v,int));
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4202 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 CC="$ac_save_CC $ac_arg"
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_c89=$ac_arg
4214 rm -f core conftest.err conftest.$ac_objext
4215 test "x$ac_cv_prog_cc_c89" != "xno" && break
4217 rm -f conftest.$ac_ext
4222 case "x$ac_cv_prog_cc_c89" in
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 $as_echo "none needed" >&6; } ;;
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;;
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4234 if test "x$ac_cv_prog_cc_c89" != xno; then :
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 # On Suns, sometimes $CPP names a directory.
4246 if test -n "$CPP" && test -d "$CPP"; then
4250 ## If not using gcc, and on Solaris, and no CPP specified, see if
4251 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4252 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4253 test x"$CPP" = x; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4255 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4257 if test "${emacs_cv_sunpro_c+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4274 if ac_fn_c_try_link "$LINENO"; then :
4275 emacs_cv_sunpro_c=yes
4277 emacs_cv_sunpro_c=no
4279 rm -f core conftest.err conftest.$ac_objext \
4280 conftest$ac_exeext conftest.$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4284 $as_echo "$emacs_cv_sunpro_c" >&6; }
4286 if test x"$emacs_cv_sunpro_c" = xyes; then
4287 NON_GNU_CPP="$CC -E -Xs"
4291 #### Some systems specify a CPP to use unless we are using GCC.
4292 #### Now that we know whether we are using GCC, we can decide whether
4293 #### to use that one.
4294 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4299 #### Some systems specify a CC to use unless we are using GCC.
4300 #### Now that we know whether we are using GCC, we can decide whether
4301 #### to use that one.
4302 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4303 test x$cc_specified != xyes
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4315 # On Suns, sometimes $CPP names a directory.
4316 if test -n "$CPP" && test -d "$CPP"; then
4319 if test -z "$CPP"; then
4320 if test "${ac_cv_prog_CPP+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 # Double quotes because CPP needs to be expanded
4324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error" is here to catch this case.
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4338 # include <limits.h>
4340 # include <assert.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: fails on valid input.
4350 rm -f conftest.err conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <ac_nonexistent.h>
4358 if ac_fn_c_try_cpp "$LINENO"; then :
4359 # Broken: success on invalid input.
4362 # Passes both tests.
4366 rm -f conftest.err conftest.$ac_ext
4369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4370 rm -f conftest.err conftest.
$ac_ext
4371 if $ac_preproc_ok; then :
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4384 $as_echo "$CPP" >&6; }
4386 for ac_c_preproc_warn_flag
in '' yes
4388 # Use a header file that comes with gcc, so configuring glibc
4389 # with a fresh cross-compiler works.
4390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4391 # <limits.h> exists even on freestanding compilers.
4392 # On the NeXT, cc -E runs the code through the compiler's parser,
4393 # not just through cpp. "Syntax error" is here to catch this case.
4394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 # include <limits.h>
4399 # include <assert.h>
4403 if ac_fn_c_try_cpp
"$LINENO"; then :
4406 # Broken: fails on valid input.
4409 rm -f conftest.err conftest.
$ac_ext
4411 # OK, works on sane cases. Now check whether nonexistent headers
4412 # can be detected and how.
4413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4415 #include <ac_nonexistent.h>
4417 if ac_fn_c_try_cpp
"$LINENO"; then :
4418 # Broken: success on invalid input.
4421 # Passes both tests.
4425 rm -f conftest.err conftest.
$ac_ext
4428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429 rm -f conftest.err conftest.
$ac_ext
4430 if $ac_preproc_ok; then :
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details." "$LINENO" 5; }
4440 ac_cpp
='$CPP $CPPFLAGS'
4441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4447 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4448 if test "${ac_cv_path_GREP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4451 if test -z "$GREP"; then
4452 ac_path_GREP_found
=false
4453 # Loop through the user's path and test for each of PROGNAME-LIST
4454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4455 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4458 test -z "$as_dir" && as_dir
=.
4459 for ac_prog
in grep ggrep
; do
4460 for ac_exec_ext
in '' $ac_executable_extensions; do
4461 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4462 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4463 # Check for GNU ac_path_GREP and select it if it is found.
4464 # Check for GNU $ac_path_GREP
4465 case `"$ac_path_GREP" --version 2>&1` in
4467 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4470 $as_echo_n 0123456789 >"conftest.in"
4473 cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 mv "conftest.tmp" "conftest.in"
4475 cp "conftest.in" "conftest.nl"
4476 $as_echo 'GREP' >> "conftest.nl"
4477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4478 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4479 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4481 # Best one so far, save it but keep looking for a better one
4482 ac_cv_path_GREP
="$ac_path_GREP"
4483 ac_path_GREP_max
=$ac_count
4485 # 10*(2^10) chars as input seems more than enough
4486 test $ac_count -gt 10 && break
4488 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4491 $ac_path_GREP_found && break 3
4496 if test -z "$ac_cv_path_GREP"; then
4497 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 ac_cv_path_GREP
=$GREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4505 $as_echo "$ac_cv_path_GREP" >&6; }
4506 GREP
="$ac_cv_path_GREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4510 $as_echo_n "checking for egrep... " >&6; }
4511 if test "${ac_cv_path_EGREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4515 then ac_cv_path_EGREP
="$GREP -E"
4517 if test -z "$EGREP"; then
4518 ac_path_EGREP_found
=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4521 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4524 test -z "$as_dir" && as_dir
=.
4525 for ac_prog
in egrep; do
4526 for ac_exec_ext
in '' $ac_executable_extensions; do
4527 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4528 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4529 # Check for GNU ac_path_EGREP and select it if it is found.
4530 # Check for GNU $ac_path_EGREP
4531 case `"$ac_path_EGREP" --version 2>&1` in
4533 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4536 $as_echo_n 0123456789 >"conftest.in"
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'EGREP' >> "conftest.nl"
4543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4544 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4545 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_EGREP
="$ac_path_EGREP"
4549 ac_path_EGREP_max
=$ac_count
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4554 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4557 $ac_path_EGREP_found && break 3
4562 if test -z "$ac_cv_path_EGREP"; then
4563 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 ac_cv_path_EGREP
=$EGREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4572 $as_echo "$ac_cv_path_EGREP" >&6; }
4573 EGREP
="$ac_cv_path_EGREP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if test "${ac_cv_header_stdc+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4596 if ac_fn_c_try_compile
"$LINENO"; then :
4597 ac_cv_header_stdc
=yes
4599 ac_cv_header_stdc
=no
4601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4603 if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev
/null
2>&1; then :
4614 ac_cv_header_stdc
=no
4620 if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev
/null
2>&1; then :
4631 ac_cv_header_stdc
=no
4637 if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then :
4642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4669 if ac_fn_c_try_run
"$LINENO"; then :
4672 ac_cv_header_stdc
=no
4674 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4675 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4681 $as_echo "$ac_cv_header_stdc" >&6; }
4682 if test $ac_cv_header_stdc = yes; then
4684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4689 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4690 inttypes.h stdint.h unistd.h
4692 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4695 eval as_val
=\$
$as_ac_Header
4696 if test "x$as_val" = x
""yes; then :
4697 cat >>confdefs.h
<<_ACEOF
4698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4708 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4715 if test "$MINIX" = yes; then
4717 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4720 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723 $as_echo "#define _MINIX 1" >>confdefs.h
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4729 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4730 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4736 # define __EXTENSIONS__ 1
4737 $ac_includes_default
4746 if ac_fn_c_try_compile
"$LINENO"; then :
4747 ac_cv_safe_to_define___extensions__
=yes
4749 ac_cv_safe_to_define___extensions__
=no
4751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4754 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4755 test $ac_cv_safe_to_define___extensions__ = yes &&
4756 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4758 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4760 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4764 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4768 ### Use -Wno-pointer-sign if the compiler supports it
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4770 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4771 SAVE_CFLAGS
="$CFLAGS"
4772 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4790 if test $has_option = yes; then
4791 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4794 $as_echo "$has_option" >&6; }
4795 CFLAGS
="$SAVE_CFLAGS"
4799 ### Use -Wdeclaration-after-statement if the compiler supports it
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4801 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4802 SAVE_CFLAGS
="$CFLAGS"
4803 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4815 if ac_fn_c_try_compile
"$LINENO"; then :
4820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 if test $has_option = yes; then
4822 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4825 $as_echo "$has_option" >&6; }
4826 CFLAGS
="$SAVE_CFLAGS"
4830 ### Use -Wold-style-definition if the compiler supports it
4831 # This can be removed when conversion to standard C is finished.
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4833 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4834 SAVE_CFLAGS
="$CFLAGS"
4835 CFLAGS
="$CFLAGS -Wold-style-definition"
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4847 if ac_fn_c_try_compile
"$LINENO"; then :
4852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 if test $has_option = yes; then
4854 C_WARNINGS_SWITCH
="-Wold-style-definition $C_WARNINGS_SWITCH"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4857 $as_echo "$has_option" >&6; }
4858 CFLAGS
="$SAVE_CFLAGS"
4864 #### Some other nice autoconf tests.
4867 ac_cpp
='$CPP $CPPFLAGS'
4868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4872 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4873 # On Suns, sometimes $CPP names a directory.
4874 if test -n "$CPP" && test -d "$CPP"; then
4877 if test -z "$CPP"; then
4878 if test "${ac_cv_prog_CPP+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 # Double quotes because CPP needs to be expanded
4882 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4885 for ac_c_preproc_warn_flag
in '' yes
4887 # Use a header file that comes with gcc, so configuring glibc
4888 # with a fresh cross-compiler works.
4889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4890 # <limits.h> exists even on freestanding compilers.
4891 # On the NeXT, cc -E runs the code through the compiler's parser,
4892 # not just through cpp. "Syntax error" is here to catch this case.
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4896 # include <limits.h>
4898 # include <assert.h>
4902 if ac_fn_c_try_cpp
"$LINENO"; then :
4905 # Broken: fails on valid input.
4908 rm -f conftest.err conftest.
$ac_ext
4910 # OK, works on sane cases. Now check whether nonexistent headers
4911 # can be detected and how.
4912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #include <ac_nonexistent.h>
4916 if ac_fn_c_try_cpp
"$LINENO"; then :
4917 # Broken: success on invalid input.
4920 # Passes both tests.
4924 rm -f conftest.err conftest.
$ac_ext
4927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4928 rm -f conftest.err conftest.
$ac_ext
4929 if $ac_preproc_ok; then :
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4942 $as_echo "$CPP" >&6; }
4944 for ac_c_preproc_warn_flag
in '' yes
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
4952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4955 # include <limits.h>
4957 # include <assert.h>
4961 if ac_fn_c_try_cpp
"$LINENO"; then :
4964 # Broken: fails on valid input.
4967 rm -f conftest.err conftest.
$ac_ext
4969 # OK, works on sane cases. Now check whether nonexistent headers
4970 # can be detected and how.
4971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <ac_nonexistent.h>
4975 if ac_fn_c_try_cpp
"$LINENO"; then :
4976 # Broken: success on invalid input.
4979 # Passes both tests.
4983 rm -f conftest.err conftest.
$ac_ext
4986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4987 rm -f conftest.err conftest.
$ac_ext
4988 if $ac_preproc_ok; then :
4991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4993 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4994 See \`config.log' for more details." "$LINENO" 5; }
4998 ac_cpp
='$CPP $CPPFLAGS'
4999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5003 # Find a good install program. We prefer a C program (faster),
5004 # so one script is as good as another. But avoid the broken or
5005 # incompatible versions:
5006 # SysV /etc/install, /usr/sbin/install
5007 # SunOS /usr/etc/install
5008 # IRIX /sbin/install
5010 # AmigaOS /C/install, which installs bootblocks on floppy discs
5011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5014 # OS/2's system install, which has a completely different semantic
5015 # ./install, which can be erroneously created by make from ./install.sh.
5016 # Reject install programs that cannot install multiple files.
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5018 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5019 if test -z "$INSTALL"; then
5020 if test "${ac_cv_path_install+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir
=.
5028 # Account for people who put trailing slashes in PATH elements.
5029 case $as_dir/ in #((
5030 .
/ | .
// |
/[cC
]/* | \
5031 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5032 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5035 # OSF1 and SCO ODT 3.0 have their own names for install.
5036 # Don't use installbsd from OSF since it installs stuff as root
5038 for ac_prog
in ginstall scoinst
install; do
5039 for ac_exec_ext
in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5041 if test $ac_prog = install &&
5042 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5043 # AIX install. It has an incompatible calling convention.
5045 elif test $ac_prog = install &&
5046 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5047 # program-specific install script used by HP pwplus--don't use.
5050 rm -rf conftest.one conftest.two conftest.dir
5051 echo one
> conftest.one
5052 echo two
> conftest.two
5054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5055 test -s conftest.one
&& test -s conftest.two
&&
5056 test -s conftest.dir
/conftest.one
&&
5057 test -s conftest.dir
/conftest.two
5059 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5072 rm -rf conftest.one conftest.two conftest.dir
5075 if test "${ac_cv_path_install+set}" = set; then
5076 INSTALL
=$ac_cv_path_install
5078 # As a last resort, use the slow shell script. Don't cache a
5079 # value for INSTALL within a source directory, because that will
5080 # break other packages using the cache if that directory is
5081 # removed, or if the value is a relative name.
5082 INSTALL
=$ac_install_sh
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5086 $as_echo "$INSTALL" >&6; }
5088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5089 # It thinks the first close brace ends the variable substitution.
5090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5094 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5096 if test "x$RANLIB" = x
; then
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5099 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$RANLIB"; then
5106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 RANLIB
=$ac_cv_prog_RANLIB
5126 if test -n "$RANLIB"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5128 $as_echo "$RANLIB" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB
=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib
; ac_word
=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5168 $as_echo "$ac_ct_RANLIB" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5174 if test "x$ac_ct_RANLIB" = x
; then
5177 case $cross_compiling:$ac_tool_warned in
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5181 ac_tool_warned
=yes ;;
5183 RANLIB
=$ac_ct_RANLIB
5186 RANLIB
="$ac_cv_prog_RANLIB"
5191 ## Although we're running on an amd64 kernel, we're actually compiling for
5192 ## the x86 architecture. The user should probably have provided an
5193 ## explicit --build to `configure', but if everything else than the kernel
5194 ## is running in i386 mode, we can help them out.
5195 if test "$machine" = "amdx86-64"; then
5196 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5197 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5201 if test "$ac_cv_have_decl_i386" = "yes"; then
5202 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5204 machfile
="m/${machine}.h"
5208 # Extract the first word of "install-info", so it can be a program name with args.
5209 set dummy install-info
; ac_word
=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5215 case $INSTALL_INFO in
5217 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir
=.
5225 for ac_exec_ext
in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5239 if test -n "$INSTALL_INFO"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5241 $as_echo "$INSTALL_INFO" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 # Extract the first word of "install-info", so it can be a program name with args.
5249 set dummy install-info
; ac_word
=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 case $INSTALL_INFO in
5257 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5261 for as_dir
in /usr
/sbin
5264 test -z "$as_dir" && as_dir
=.
5265 for ac_exec_ext
in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5279 if test -n "$INSTALL_INFO"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5281 $as_echo "$INSTALL_INFO" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 # Extract the first word of "install-info", so it can be a program name with args.
5289 set dummy install-info
; ac_word
=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 case $INSTALL_INFO in
5297 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5319 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5320 if test -n "$INSTALL_INFO"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5322 $as_echo "$INSTALL_INFO" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 # Extract the first word of "gzip", so it can be a program name with args.
5330 set dummy
gzip; ac_word
=$2
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5332 $as_echo_n "checking for $ac_word... " >&6; }
5333 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5338 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir
=.
5346 for ac_exec_ext
in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5360 if test -n "$GZIP_PROG"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5362 $as_echo "$GZIP_PROG" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5371 ## Need makeinfo >= 4.6 (?) to build the manuals.
5372 # Extract the first word of "makeinfo", so it can be a program name with args.
5373 set dummy makeinfo
; ac_word
=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5381 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir
=.
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5403 MAKEINFO
=$ac_cv_path_MAKEINFO
5404 if test -n "$MAKEINFO"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5406 $as_echo "$MAKEINFO" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5413 if test "$MAKEINFO" != "no" && \
5414 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
5418 ## Makeinfo is unusual. For a released Emacs, the manuals are
5419 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5420 ## therefore in the category of "special tools" not normally required, which
5421 ## configure does not have to check for (eg autoconf itself).
5422 ## In a Bazaar checkout on the other hand, the manuals are not included.
5423 ## So makeinfo is a requirement to build from Bazaar, and configure
5424 ## should test for it as it does for any other build requirement.
5425 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5426 ## with pre-built manuals, from a Bazaar checkout.
5427 if test "$MAKEINFO" = "no"; then
5428 if test "x${with_makeinfo}" = "xno"; then
5430 elif test ! -e $srcdir/info
/emacs
; then
5431 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5432 source tree does not seem to have pre-built manuals in the \`info' directory.
5433 Either install a suitable version of makeinfo, or re-run configure
5434 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5439 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5441 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5444 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5446 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5450 late_LDFLAGS
=$LDFLAGS
5451 if test "$GCC" = yes; then
5452 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5454 LDFLAGS
="$LDFLAGS -znocombreloc"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5458 $as_echo_n "checking for -znocombreloc... " >&6; }
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5463 if ac_fn_c_try_link
"$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5467 LDFLAGS
=$late_LDFLAGS
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5471 rm -f core conftest.err conftest.
$ac_objext \
5472 conftest
$ac_exeext conftest.
$ac_ext
5475 # The value of CPP is a quoted variable reference, so we need to do this
5476 # to get its actual value...
5477 CPP
=`eval "echo $CPP"`
5485 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5492 UNEXEC_OBJ
=unexelf.o
5494 # MSDOS uses unexec.o
5495 # MSWindows uses unexw32.o
5497 UNEXEC_OBJ
=unexaix.o
5503 UNEXEC_OBJ
=unexmacosx.o
5506 UNEXEC_OBJ
=unexhp9k800.o
5509 # Use the Solaris dldump() function, called from unexsol.c, to dump
5510 # emacs, instead of the generic ELF dump code found in unexelf.c.
5511 # The resulting binary has a complete symbol table, and is better
5512 # for debugging and other observability tools (debuggers, pstack, etc).
5514 # If you encounter a problem using dldump(), please consider sending
5515 # a message to the OpenSolaris tools-linking mailing list:
5516 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5518 # It is likely that dldump() works with older Solaris too, but this has
5519 # not been tested, so for now this change is for Solaris 10 or newer.
5520 UNEXEC_OBJ
=unexsol.o
5527 ## Let `ld' find image libs and similar things in /usr/local/lib.
5528 ## The system compiler, GCC, has apparently been modified to not
5529 ## look there, contrary to what a stock GCC would do.
5530 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5534 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5535 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5539 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5543 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5544 ## otherwise Emacs dumps core on elf systems.
5545 LD_SWITCH_SYSTEM
="-Z"
5550 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5552 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5553 ## which has not been defined yet. When this was handled with cpp,
5554 ## it was expanded to null when configure sourced the s/*.h file.
5555 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5556 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5557 ## (or somesuch), but because it is supposed to go at the _front_
5558 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5559 ## Compare with the gnu-linux case below, which added to the end
5560 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5561 ## LD_SWITCH_SYSTEM_TEMACS.
5564 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5565 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5570 if test "$machine" = "alpha"; then
5571 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5572 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5576 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5577 ## With ELF, make sure that all common symbols get allocated to in the
5578 ## data section. Otherwise, the dump of temacs may miss variables in
5579 ## the shared library that have been initialized. For example, with
5580 ## GNU libc, __malloc_initialized would normally be resolved to the
5581 ## shared library's .bss section, which is fatal.
5582 if test "x$GCC" = "xyes"; then
5583 C_SWITCH_MACHINE
="-fno-common"
5585 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5588 UNEXEC_OBJ
=unexalpha.o
5596 ## Some programs in src produce warnings saying certain subprograms
5597 ## are too complex and need a MAXMEM value greater than 2000 for
5598 ## additional optimization. --nils@exp-math.uni-essen.de
5599 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5600 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5601 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5602 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5608 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5609 aix4-2
) LIBS_SYSTEM
="-lrts -lIM -liconv" ;;
5611 freebsd
) LIBS_SYSTEM
="-lutil" ;;
5613 hpux
*) LIBS_SYSTEM
="-l:libdld.sl" ;;
5615 sol2
*) LIBS_SYSTEM
="-lsocket -lnsl -lkstat" ;;
5617 ## Motif needs -lgen.
5618 unixware
) LIBS_SYSTEM
="-lsocket -lnsl -lelf -lgen" ;;
5623 ### Make sure subsequent tests use flags consistent with the build flags.
5625 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5626 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5628 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5633 # Check whether --enable-largefile was given.
5634 if test "${enable_largefile+set}" = set; then :
5635 enableval
=$enable_largefile;
5638 if test "$enable_largefile" != no
; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5641 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5642 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5645 ac_cv_sys_largefile_CC
=no
5646 if test "$GCC" != yes; then
5649 # IRIX 6.2 and later do not support large files by default,
5650 # so use the C compiler's -n32 option if that helps.
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5670 if ac_fn_c_try_compile
"$LINENO"; then :
5673 rm -f core conftest.err conftest.
$ac_objext
5675 if ac_fn_c_try_compile
"$LINENO"; then :
5676 ac_cv_sys_largefile_CC
=' -n32'; break
5678 rm -f core conftest.err conftest.
$ac_objext
5682 rm -f conftest.
$ac_ext
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5686 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5687 if test "$ac_cv_sys_largefile_CC" != no
; then
5688 CC
=$CC$ac_cv_sys_largefile_CC
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5692 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include <sys/types.h>
5700 /* Check that off_t can represent 2**63 - 1 correctly.
5701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702 since some C++ compilers masquerading as C compilers
5703 incorrectly reject 9223372036854775807. */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706 && LARGE_OFF_T % 2147483647 == 1)
5716 if ac_fn_c_try_compile
"$LINENO"; then :
5717 ac_cv_sys_file_offset_bits
=no
; break
5719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #define _FILE_OFFSET_BITS 64
5723 #include <sys/types.h>
5724 /* Check that off_t can represent 2**63 - 1 correctly.
5725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5726 since some C++ compilers masquerading as C compilers
5727 incorrectly reject 9223372036854775807. */
5728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5730 && LARGE_OFF_T % 2147483647 == 1)
5740 if ac_fn_c_try_compile
"$LINENO"; then :
5741 ac_cv_sys_file_offset_bits
=64; break
5743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5744 ac_cv_sys_file_offset_bits
=unknown
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5749 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5750 case $ac_cv_sys_file_offset_bits in #(
5753 cat >>confdefs.h
<<_ACEOF
5754 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5759 if test $ac_cv_sys_file_offset_bits = unknown
; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5761 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5762 if test "${ac_cv_sys_large_files+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 if ac_fn_c_try_compile
"$LINENO"; then :
5786 ac_cv_sys_large_files
=no
; break
5788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #define _LARGE_FILES 1
5792 #include <sys/types.h>
5793 /* Check that off_t can represent 2**63 - 1 correctly.
5794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5795 since some C++ compilers masquerading as C compilers
5796 incorrectly reject 9223372036854775807. */
5797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5799 && LARGE_OFF_T % 2147483647 == 1)
5809 if ac_fn_c_try_compile
"$LINENO"; then :
5810 ac_cv_sys_large_files
=1; break
5812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 ac_cv_sys_large_files
=unknown
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5818 $as_echo "$ac_cv_sys_large_files" >&6; }
5819 case $ac_cv_sys_large_files in #(
5822 cat >>confdefs.h
<<_ACEOF
5823 #define _LARGE_FILES $ac_cv_sys_large_files
5833 ## If user specified a crt-dir, use that unconditionally.
5834 if test "X$CRT_DIR" = "X"; then
5836 case "$canonical" in
5837 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5838 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5839 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5840 ## For anything else (eg /usr/lib32), it is up the user to specify
5841 ## the location (bug#5655).
5842 ## Test for crtn.o, not just the directory, because sometimes the
5843 ## directory exists but does not have the relevant files (bug#1287).
5844 ## FIXME better to test for binary compatibility somehow.
5845 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5848 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5852 hpux10-20
) CRT_DIR
=/lib
;;
5855 ## Default is /usr/lib.
5856 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5860 ## Some platforms don't use any of these files, so it is not
5861 ## appropriate to put this test outside the if block.
5862 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5863 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5876 START_FILES
='pre-crt0.o'
5879 ## Adding -lm confuses the dynamic linker, so omit it.
5881 START_FILES
='pre-crt0.o'
5884 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5885 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5887 gnu-linux | gnu-kfreebsd
)
5888 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5889 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5891 hpux10-20 | hpux11
)
5893 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5896 if test -f $CRT_DIR/crti.o
; then
5897 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5898 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5900 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5901 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5912 if test "${with_sound}" != "no"; then
5913 # Sound support for GNU/Linux and the free BSDs.
5914 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5916 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5917 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5918 eval as_val
=\$
$as_ac_Header
5919 if test "x$as_val" = x
""yes; then :
5920 cat >>confdefs.h
<<_ACEOF
5921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5923 have_sound_header
=yes
5928 # Emulation library used on NetBSD.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5930 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5931 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5934 ac_check_lib_save_LIBS
=$LIBS
5935 LIBS
="-lossaudio $LIBS"
5936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5939 /* Override any GCC internal prototype to avoid an error.
5940 Use char because int might match the return type of a GCC
5941 builtin and then its argument prototype would still apply. */
5949 return _oss_ioctl ();
5954 if ac_fn_c_try_link
"$LINENO"; then :
5955 ac_cv_lib_ossaudio__oss_ioctl
=yes
5957 ac_cv_lib_ossaudio__oss_ioctl
=no
5959 rm -f core conftest.err conftest.
$ac_objext \
5960 conftest
$ac_exeext conftest.
$ac_ext
5961 LIBS
=$ac_check_lib_save_LIBS
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5964 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5965 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5974 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5978 # Extract the first word of "pkg-config", so it can be a program name with args.
5979 set dummy pkg-config
; ac_word
=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5987 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir
=.
5995 for ac_exec_ext
in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6009 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6010 if test -n "$PKG_CONFIG"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6012 $as_echo "$PKG_CONFIG" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test "$PKG_CONFIG" = "no" ; then
6023 PKG_CONFIG_MIN_VERSION
=0.9.0
6024 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6026 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6028 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6030 $as_echo "yes" >&6; }
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6034 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6035 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6037 $as_echo "$ALSA_CFLAGS" >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6040 $as_echo_n "checking ALSA_LIBS... " >&6; }
6041 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6043 $as_echo "$ALSA_LIBS" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6049 ## If we have a custom action on failure, don't print errors, but
6050 ## do set a variable so people can do so.
6051 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6058 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6059 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6063 if test $succeeded = yes; then
6069 if test $HAVE_ALSA = yes; then
6070 SAVE_CFLAGS
="$CFLAGS"
6071 SAVE_LDFLAGS
="$LDFLAGS"
6072 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6073 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <asoundlib.h>
6080 snd_lib_error_set_handler (0);
6085 if ac_fn_c_try_compile
"$LINENO"; then :
6086 emacs_alsa_normal
=yes
6088 emacs_alsa_normal
=no
6090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6091 if test "$emacs_alsa_normal" != yes; then
6092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <alsa/asoundlib.h>
6098 snd_lib_error_set_handler (0);
6103 if ac_fn_c_try_compile
"$LINENO"; then :
6104 emacs_alsa_subdir
=yes
6106 emacs_alsa_subdir
=no
6108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6109 if test "$emacs_alsa_subdir" != yes; then
6110 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6112 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6115 CFLAGS
="$SAVE_CFLAGS"
6116 LDFLAGS
="$SAVE_LDFLAGS"
6117 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6118 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6120 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6124 if test x
$have_sound_header = xyes ||
test $HAVE_ALSA = yes; then
6126 gnu-linux|freebsd|netbsd
)
6128 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6137 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6138 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6139 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6140 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6141 sys
/utsname.h
pwd.h utmp.h dirent.h
6143 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6144 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6145 eval as_val
=\$
$as_ac_Header
6146 if test "x$as_val" = x
""yes; then :
6147 cat >>confdefs.h
<<_ACEOF
6148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6157 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6159 /* end confdefs.h. */
6160 #include <sys/personality.h>
6164 personality (PER_LINUX32)
6169 if ac_fn_c_try_compile
"$LINENO"; then :
6170 emacs_cv_personality_linux32
=yes
6172 emacs_cv_personality_linux32
=no
6174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6176 $as_echo "$emacs_cv_personality_linux32" >&6; }
6178 if test $emacs_cv_personality_linux32 = yes; then
6180 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6184 for ac_header
in term.h
6186 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6187 if test "x$ac_cv_header_term_h" = x
""yes; then :
6188 cat >>confdefs.h
<<_ACEOF
6189 #define HAVE_TERM_H 1
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6197 $as_echo_n "checking for ANSI C header files... " >&6; }
6198 if test "${ac_cv_header_stdc+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6216 if ac_fn_c_try_compile
"$LINENO"; then :
6217 ac_cv_header_stdc
=yes
6219 ac_cv_header_stdc
=no
6221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 if test $ac_cv_header_stdc = yes; then
6224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "memchr" >/dev
/null
2>&1; then :
6234 ac_cv_header_stdc
=no
6240 if test $ac_cv_header_stdc = yes; then
6241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6248 $EGREP "free" >/dev
/null
2>&1; then :
6251 ac_cv_header_stdc
=no
6257 if test $ac_cv_header_stdc = yes; then
6258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6259 if test "$cross_compiling" = yes; then :
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6266 #if ((' ' & 0x0FF) == 0x020)
6267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6270 # define ISLOWER(c) \
6271 (('a' <= (c) && (c) <= 'i') \
6272 || ('j' <= (c) && (c) <= 'r') \
6273 || ('s' <= (c) && (c) <= 'z'))
6274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6282 for (i = 0; i < 256; i++)
6283 if (XOR (islower (i), ISLOWER (i))
6284 || toupper (i) != TOUPPER (i))
6289 if ac_fn_c_try_run
"$LINENO"; then :
6292 ac_cv_header_stdc
=no
6294 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6295 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6301 $as_echo "$ac_cv_header_stdc" >&6; }
6302 if test $ac_cv_header_stdc = yes; then
6304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6309 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6310 if test "${ac_cv_header_time+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <sys/types.h>
6316 #include <sys/time.h>
6322 if ((struct tm *) 0)
6328 if ac_fn_c_try_compile
"$LINENO"; then :
6329 ac_cv_header_time
=yes
6331 ac_cv_header_time
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6336 $as_echo "$ac_cv_header_time" >&6; }
6337 if test $ac_cv_header_time = yes; then
6339 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6343 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6344 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6350 cat >>confdefs.h
<<_ACEOF
6351 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6354 if test $ac_cv_have_decl_sys_siglist != yes; then
6355 # For Tru64, at least:
6356 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6357 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6363 cat >>confdefs.h
<<_ACEOF
6364 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6367 if test $ac_cv_have_decl___sys_siglist = yes; then
6369 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6374 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6375 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6380 #include <sys/types.h>
6381 #include <sys/wait.h>
6383 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6386 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6394 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6399 if ac_fn_c_try_compile
"$LINENO"; then :
6400 ac_cv_header_sys_wait_h
=yes
6402 ac_cv_header_sys_wait_h
=no
6404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6407 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6408 if test $ac_cv_header_sys_wait_h = yes; then
6410 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6416 $as_echo_n "checking for struct utimbuf... " >&6; }
6417 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6422 #ifdef TIME_WITH_SYS_TIME
6423 #include <sys/time.h>
6426 #ifdef HAVE_SYS_TIME_H
6427 #include <sys/time.h>
6438 static struct utimbuf x; x.actime = x.modtime;
6443 if ac_fn_c_try_compile
"$LINENO"; then :
6444 emacs_cv_struct_utimbuf
=yes
6446 emacs_cv_struct_utimbuf
=no
6448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6451 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6452 if test $emacs_cv_struct_utimbuf = yes; then
6454 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6459 $as_echo_n "checking return type of signal handlers... " >&6; }
6460 if test "${ac_cv_type_signal+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <sys/types.h>
6471 return *(signal (0, 0)) (0) == 1;
6476 if ac_fn_c_try_compile
"$LINENO"; then :
6477 ac_cv_type_signal
=int
6479 ac_cv_type_signal
=void
6481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6484 $as_echo "$ac_cv_type_signal" >&6; }
6486 cat >>confdefs.h
<<_ACEOF
6487 #define RETSIGTYPE $ac_cv_type_signal
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6493 $as_echo_n "checking for speed_t... " >&6; }
6494 if test "${emacs_cv_speed_t+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #include <termios.h>
6508 if ac_fn_c_try_compile
"$LINENO"; then :
6509 emacs_cv_speed_t
=yes
6513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6516 $as_echo "$emacs_cv_speed_t" >&6; }
6517 if test $emacs_cv_speed_t = yes; then
6519 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6524 $as_echo_n "checking for struct timeval... " >&6; }
6525 if test "${emacs_cv_struct_timeval+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 #ifdef TIME_WITH_SYS_TIME
6531 #include <sys/time.h>
6534 #ifdef HAVE_SYS_TIME_H
6535 #include <sys/time.h>
6543 static struct timeval x; x.tv_sec = x.tv_usec;
6548 if ac_fn_c_try_compile
"$LINENO"; then :
6549 emacs_cv_struct_timeval
=yes
6551 emacs_cv_struct_timeval
=no
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6556 $as_echo "$emacs_cv_struct_timeval" >&6; }
6557 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6558 if test $emacs_cv_struct_timeval = yes; then
6560 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6565 $as_echo_n "checking for struct exception... " >&6; }
6566 if test "${emacs_cv_struct_exception+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6575 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6580 if ac_fn_c_try_compile
"$LINENO"; then :
6581 emacs_cv_struct_exception
=yes
6583 emacs_cv_struct_exception
=no
6585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6588 $as_echo "$emacs_cv_struct_exception" >&6; }
6589 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6590 if test $emacs_cv_struct_exception != yes; then
6592 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6596 for ac_header
in sys
/socket.h
6598 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6599 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6600 cat >>confdefs.h
<<_ACEOF
6601 #define HAVE_SYS_SOCKET_H 1
6608 for ac_header
in net
/if.h
6610 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6611 #if HAVE_SYS_SOCKET_H
6612 #include <sys/socket.h>
6615 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6616 cat >>confdefs.h
<<_ACEOF
6617 #define HAVE_NET_IF_H 1
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6626 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6627 if test "${ac_cv_struct_tm+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6632 #include <sys/types.h>
6639 int *p = &tm.tm_sec;
6645 if ac_fn_c_try_compile
"$LINENO"; then :
6646 ac_cv_struct_tm
=time.h
6648 ac_cv_struct_tm
=sys
/time.h
6650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6653 $as_echo "$ac_cv_struct_tm" >&6; }
6654 if test $ac_cv_struct_tm = sys
/time.h
; then
6656 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6660 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6661 #include <$ac_cv_struct_tm>
6664 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6666 cat >>confdefs.h
<<_ACEOF
6667 #define HAVE_STRUCT_TM_TM_ZONE 1
6673 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6675 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6678 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6680 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6686 cat >>confdefs.h
<<_ACEOF
6687 #define HAVE_DECL_TZNAME $ac_have_decl
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6691 $as_echo_n "checking for tzname... " >&6; }
6692 if test "${ac_cv_var_tzname+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6698 #if !HAVE_DECL_TZNAME
6699 extern char *tzname[];
6705 return tzname[0][0];
6710 if ac_fn_c_try_link
"$LINENO"; then :
6711 ac_cv_var_tzname
=yes
6715 rm -f core conftest.err conftest.
$ac_objext \
6716 conftest
$ac_exeext conftest.
$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6719 $as_echo "$ac_cv_var_tzname" >&6; }
6720 if test $ac_cv_var_tzname = yes; then
6722 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6727 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6729 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6731 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6735 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6736 #if HAVE_SYS_SOCKET_H
6737 #include <sys/socket.h>
6743 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6745 cat >>confdefs.h
<<_ACEOF
6746 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6751 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6752 #if HAVE_SYS_SOCKET_H
6753 #include <sys/socket.h>
6759 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6761 cat >>confdefs.h
<<_ACEOF
6762 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6767 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6768 #if HAVE_SYS_SOCKET_H
6769 #include <sys/socket.h>
6775 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6777 cat >>confdefs.h
<<_ACEOF
6778 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6783 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6784 #if HAVE_SYS_SOCKET_H
6785 #include <sys/socket.h>
6791 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6793 cat >>confdefs.h
<<_ACEOF
6794 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6799 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6800 #if HAVE_SYS_SOCKET_H
6801 #include <sys/socket.h>
6807 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6809 cat >>confdefs.h
<<_ACEOF
6810 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6819 $as_echo_n "checking for function prototypes... " >&6; }
6820 if test "$ac_cv_prog_cc_c89" != no
; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6822 $as_echo "yes" >&6; }
6824 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6827 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6835 $as_echo_n "checking for working volatile... " >&6; }
6836 if test "${ac_cv_c_volatile+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6847 int * volatile y = (int *) 0;
6853 if ac_fn_c_try_compile
"$LINENO"; then :
6854 ac_cv_c_volatile
=yes
6858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6861 $as_echo "$ac_cv_c_volatile" >&6; }
6862 if test $ac_cv_c_volatile = no
; then
6864 $as_echo "#define volatile /**/" >>confdefs.h
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6869 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6870 if test "${ac_cv_c_const+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6879 /* FIXME: Include the comments suggested by Paul. */
6881 /* Ultrix mips cc rejects this. */
6882 typedef int charset[2];
6884 /* SunOS 4.1.1 cc rejects this. */
6885 char const *const *pcpcc;
6887 /* NEC SVR4.0.2 mips cc rejects this. */
6888 struct point {int x, y;};
6889 static struct point const zero = {0,0};
6890 /* AIX XL C 1.02.0.0 rejects this.
6891 It does not let you subtract one const X* pointer from another in
6892 an arm of an if-expression whose if-part is not a constant
6894 const char *g = "string";
6895 pcpcc = &g + (g ? g-g : 0);
6896 /* HPUX 7.0 cc rejects these. */
6898 ppc = (char**) pcpcc;
6899 pcpcc = (char const *const *) ppc;
6900 { /* SCO 3.2v4 cc rejects this. */
6902 char const *s = 0 ? (char *) 0 : (char const *) 0;
6907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6909 const int *foo = &x[0];
6912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6913 typedef const int *iptr;
6917 { /* AIX XL C 1.02.0.0 rejects this saying
6918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6919 struct s { int j; const int *ap[3]; };
6920 struct s *b; b->j = 5;
6922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6926 return !cs[0] && !zero.x;
6933 if ac_fn_c_try_compile
"$LINENO"; then :
6938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6941 $as_echo "$ac_cv_c_const" >&6; }
6942 if test $ac_cv_c_const = no
; then
6944 $as_echo "#define const /**/" >>confdefs.h
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6949 $as_echo_n "checking for void * support... " >&6; }
6950 if test "${emacs_cv_void_star+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6964 if ac_fn_c_try_compile
"$LINENO"; then :
6965 emacs_cv_void_star
=yes
6967 emacs_cv_void_star
=no
6969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6972 $as_echo "$emacs_cv_void_star" >&6; }
6973 if test $emacs_cv_void_star = yes; then
6974 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6977 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6985 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6987 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6988 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6991 cat >conftest.
make <<\_ACEOF
6994 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6999 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7001 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7005 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 $as_echo "yes" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 SET_MAKE
="MAKE=${MAKE-make}"
7019 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7021 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7023 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
7024 if test "x$testval" != x
; then
7027 ac_enable_autodepend
=no
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7030 $as_echo "$HAVE_GNU_MAKE" >&6; }
7031 if test $HAVE_GNU_MAKE = yes; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7033 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7034 SAVE_CFLAGS
="$CFLAGS"
7035 CFLAGS
="$CFLAGS -MMD -MF deps.d"
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7047 if ac_fn_c_try_compile
"$LINENO"; then :
7050 ac_enable_autodepend
=no
7052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7053 CFLAGS
="$SAVE_CFLAGS"
7054 test -f deps.d || ac_enable_autodepend
=no
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7057 $as_echo "$ac_enable_autodepend" >&6; }
7059 if test $ac_enable_autodepend = yes; then
7060 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
7061 ## In parallel builds, another make might create depdir between
7062 ## the first test and mkdir, so stick another test on the end.
7063 ## Or use mkinstalldirs? mkdir -p is not portable.
7064 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7065 deps_frag
=autodeps.mk
7068 deps_frag
=$srcdir/src
/$deps_frag
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7075 $as_echo_n "checking for long file names... " >&6; }
7076 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7079 ac_cv_sys_long_file_names
=yes
7080 # Test for long file names in all the places we know might matter:
7081 # . the current directory, where building will happen
7082 # $prefix/lib where we will be installing things
7083 # $exec_prefix/lib likewise
7084 # $TMPDIR if set, where it might want to write temporary files
7085 # /tmp where it might want to write temporary files
7088 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7089 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7090 # in the usual case where exec_prefix is '${prefix}'.
7092 . |
/* | ?
:[\\/]*) ;; #(
7095 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7096 ac_xdir
=$ac_dir/cf$$
7097 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7098 ac_tf1
=$ac_xdir/conftest9012345
7099 ac_tf2
=$ac_xdir/conftest9012346
7100 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7101 ac_cv_sys_long_file_names
=no
7102 rm -f -r "$ac_xdir" 2>/dev
/null
7103 test $ac_cv_sys_long_file_names = no
&& break
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7107 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7108 if test $ac_cv_sys_long_file_names = yes; then
7110 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7115 #### Choose a window system.
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7118 $as_echo_n "checking for X... " >&6; }
7121 # Check whether --with-x was given.
7122 if test "${with_x+set}" = set; then :
7126 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7127 if test "x$with_x" = xno
; then
7128 # The user explicitly disabled X.
7131 case $x_includes,$x_libraries in #(
7132 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7133 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7136 # One or both of the vars are not set, and there is no cached value.
7137 ac_x_includes
=no ac_x_libraries
=no
7138 rm -f -r conftest.dir
7139 if mkdir conftest.dir
; then
7141 cat >Imakefile
<<'_ACEOF'
7143 @echo incroot='${INCROOT}'
7145 @echo usrlibdir='${USRLIBDIR}'
7147 @echo libdir='${LIBDIR}'
7149 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7151 for ac_var
in incroot usrlibdir libdir
; do
7152 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7154 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7155 for ac_extension
in a so sl dylib la dll
; do
7156 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7157 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7158 ac_im_usrlibdir
=$ac_im_libdir; break
7161 # Screen out bogus values from the imake configuration. They are
7162 # bogus both because they are the default anyway, and because
7163 # using them would break gcc on systems where it needs fixed includes.
7164 case $ac_im_incroot in
7165 /usr
/include
) ac_x_includes
= ;;
7166 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7168 case $ac_im_usrlibdir in
7169 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7170 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7174 rm -f -r conftest.dir
7177 # Standard set of common directories for X headers.
7178 # Check X11 before X11Rn because it is often a symlink to the current release.
7192 /usr/local/X11/include
7193 /usr/local/X11R7/include
7194 /usr/local/X11R6/include
7195 /usr/local/X11R5/include
7196 /usr/local/X11R4/include
7198 /usr/local/include/X11
7199 /usr/local/include/X11R7
7200 /usr/local/include/X11R6
7201 /usr/local/include/X11R5
7202 /usr/local/include/X11R4
7206 /usr/XFree86/include/X11
7210 /usr/unsupported/include
7212 /usr/local/x11r5/include
7213 /usr/lpp/Xamples/include
7215 /usr/openwin/include
7216 /usr/openwin/share/include'
7218 if test "$ac_x_includes" = no
; then
7219 # Guess where to find include files, by looking for Xlib.h.
7220 # First, try using that file with no special directory specified.
7221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <X11/Xlib.h>
7225 if ac_fn_c_try_cpp
"$LINENO"; then :
7226 # We can compile using X headers with no special include directory.
7229 for ac_dir
in $ac_x_header_dirs; do
7230 if test -r "$ac_dir/X11/Xlib.h"; then
7231 ac_x_includes
=$ac_dir
7236 rm -f conftest.err conftest.
$ac_ext
7237 fi # $ac_x_includes = no
7239 if test "$ac_x_libraries" = no
; then
7240 # Check for the libraries.
7241 # See if we find them without any special options.
7242 # Don't add to $LIBS permanently.
7245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <X11/Xlib.h>
7256 if ac_fn_c_try_link
"$LINENO"; then :
7258 # We can link X programs with no special library path.
7262 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7264 # Don't even attempt the hair of trying to link an X program!
7265 for ac_extension
in a so sl dylib la dll
; do
7266 if test -r "$ac_dir/libX11.$ac_extension"; then
7267 ac_x_libraries
=$ac_dir
7273 rm -f core conftest.err conftest.
$ac_objext \
7274 conftest
$ac_exeext conftest.
$ac_ext
7275 fi # $ac_x_libraries = no
7277 case $ac_x_includes,$ac_x_libraries in #(
7279 # Didn't find X, or a directory has "'" in its name.
7280 ac_cv_have_x
="have_x=no";; #(
7282 # Record where we found X for the cache.
7283 ac_cv_have_x
="have_x=yes\
7284 ac_x_includes='$ac_x_includes'\
7285 ac_x_libraries='$ac_x_libraries'"
7291 eval "$ac_cv_have_x"
7294 if test "$have_x" != yes; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7296 $as_echo "$have_x" >&6; }
7299 # If each of the values was on the command line, it overrides each guess.
7300 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7301 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7302 # Update the cache value to reflect the command line values.
7303 ac_cv_have_x
="have_x=yes\
7304 ac_x_includes='$x_includes'\
7305 ac_x_libraries='$x_libraries'"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7307 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7310 if test "$no_x" = yes; then
7316 ## Workaround for bug in autoconf <= 2.62.
7317 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7318 ## No need to do anything special for these standard directories.
7319 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7321 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7325 LD_SWITCH_X_SITE_AUX
=
7326 LD_SWITCH_X_SITE_AUX_RPATH
=
7327 if test "${x_libraries}" != NONE
; then
7328 if test -n "${x_libraries}"; then
7329 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7330 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7331 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7333 x_default_search_path
=""
7334 x_search_path
=${x_libraries}
7335 if test -z "${x_search_path}"; then
7336 x_search_path
=/usr
/lib
7338 for x_library
in `echo ${x_search_path}: | \
7339 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7341 ${x_library}/X11/%L/%T/%N%C%S:\
7342 ${x_library}/X11/%l/%T/%N%C%S:\
7343 ${x_library}/X11/%T/%N%C%S:\
7344 ${x_library}/X11/%L/%T/%N%S:\
7345 ${x_library}/X11/%l/%T/%N%S:\
7346 ${x_library}/X11/%T/%N%S"
7347 if test x
"${x_default_search_path}" = x
; then
7348 x_default_search_path
=${x_search_path}
7350 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7357 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7358 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7361 if test x
"${x_includes}" = x
; then
7362 bitmapdir
=/usr
/include
/X11
/bitmaps
7364 # accumulate include directories that have X11 bitmap subdirectories
7366 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7367 if test -d "${bmd}/X11/bitmaps"; then
7368 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7370 if test -d "${bmd}/bitmaps"; then
7371 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7374 if test ${bmd_acc} != "dummyval"; then
7375 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7382 tmp_CPPFLAGS
="$CPPFLAGS"
7383 tmp_CFLAGS
="$CFLAGS"
7384 CPPFLAGS
="$CPPFLAGS -x objective-c"
7385 CFLAGS
="$CFLAGS -x objective-c"
7386 TEMACS_LDFLAGS2
="\${LDFLAGS} \${PROFILING_LDFLAGS}"
7387 if test "${with_ns}" != no
; then
7388 if test "${opsys}" = darwin
; then
7390 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7391 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
7392 ns_appresdir
=${ns_appdir}Contents
/Resources
7393 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7394 elif test -f $GNUSTEP_CONFIG_FILE; then
7396 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
7397 ns_appbindir
=${ns_appdir}
7398 ns_appresdir
=${ns_appdir}Resources
7399 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7400 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7401 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7402 GNUSTEP_LOCAL_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7403 GNUSTEP_LOCAL_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7404 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7405 GNUSTEP_LOCAL_HEADERS
="-I${GNUSTEP_LOCAL_HEADERS}"
7406 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7407 GNUSTEP_LOCAL_LIBRARIES
="-L${GNUSTEP_LOCAL_LIBRARIES}"
7408 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7409 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7410 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7415 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7416 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7419 as_fn_error
"\`--with-ns' was specified, but the include
7420 files are missing or cannot be compiled." "$LINENO" 5
7424 NS_HAVE_NSINTEGER
=yes
7425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #include <Foundation/NSObjCRuntime.h>
7436 if ac_fn_c_try_compile
"$LINENO"; then :
7437 ns_have_nsinteger
=yes
7439 ns_have_nsinteger
=no
7441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 if test $ns_have_nsinteger = no
; then
7443 NS_HAVE_NSINTEGER
=no
7451 if test "${HAVE_NS}" = yes; then
7452 window_system
=nextstep
7454 # set up packaging dirs
7455 exec_prefix
=${ns_appbindir}
7456 libexecdir
=${ns_appbindir}/libexec
7457 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7458 prefix
=${ns_appresdir}
7460 ns_frag
=$srcdir/src
/ns.mk
7461 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7462 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7464 CFLAGS
="$tmp_CFLAGS"
7465 CPPFLAGS
="$tmp_CPPFLAGS"
7471 case "${window_system}" in
7475 case "${with_x_toolkit}" in
7476 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7477 motif
) USE_X_TOOLKIT
=MOTIF
;;
7479 USE_X_TOOLKIT
=none
;;
7480 gtk3
) with_gtk3
=yes
7481 USE_X_TOOLKIT
=none
;;
7482 no
) USE_X_TOOLKIT
=none
;;
7483 * ) USE_X_TOOLKIT
=maybe
;;
7493 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7494 # Extract the first word of "X", so it can be a program name with args.
7495 set dummy X
; ac_word
=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$HAVE_XSERVER"; then
7502 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_HAVE_XSERVER
="true"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7522 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7523 if test -n "$HAVE_XSERVER"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7525 $as_echo "$HAVE_XSERVER" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7532 if test "$HAVE_XSERVER" = true ||
7533 test -n "$DISPLAY" ||
7534 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7535 as_fn_error
"You seem to be running X, but no X development libraries
7536 were found. You should install the relevant development files for X
7537 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7538 sure you have development files for image handling, i.e.
7539 tiff, gif, jpeg, png and xpm.
7540 If you are sure you want Emacs compiled without X window support, pass
7542 to configure." "$LINENO" 5
7546 ### If we're using X11, we should use the X menu package.
7549 yes ) HAVE_MENUS
=yes ;;
7552 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7553 # Assume not, until told otherwise.
7556 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7557 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7563 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7564 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7571 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7572 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 extern void (* __after_morecore_hook)();
7581 __after_morecore_hook = 0
7586 if ac_fn_c_try_link
"$LINENO"; then :
7587 emacs_cv_var___after_morecore_hook
=yes
7589 emacs_cv_var___after_morecore_hook
=no
7591 rm -f core conftest.err conftest.
$ac_objext \
7592 conftest
$ac_exeext conftest.
$ac_ext
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7595 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7596 if test $emacs_cv_var___after_morecore_hook = no
; then
7603 ## darwin ld insists on the use of malloc routines in the System framework.
7604 darwin|sol2-10
) system_malloc
=yes ;;
7607 if test "${system_malloc}" = "yes"; then
7609 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7613 (The GNU allocators don't work with this system configuration.)"
7617 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
7618 VMLIMIT_OBJ
=vm-limit.o
7623 if test "$doug_lea_malloc" = "yes" ; then
7624 if test "$GNU_MALLOC" = yes ; then
7626 (Using Doug Lea's new malloc from the GNU C Library.)"
7629 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7632 ## Use mmap directly for allocating larger buffers.
7633 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7634 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7635 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7637 gnu
*) REL_ALLOC
=no
;;
7641 if test x
"${REL_ALLOC}" = x
; then
7642 REL_ALLOC
=${GNU_MALLOC}
7645 use_mmap_for_buffers
=no
7647 freebsd|irix6-5
) use_mmap_for_buffers
=yes ;;
7653 for ac_header
in $ac_header_list
7655 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7658 eval as_val
=\$
$as_ac_Header
7659 if test "x$as_val" = x
""yes; then :
7660 cat >>confdefs.h
<<_ACEOF
7661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 for ac_func
in getpagesize
7677 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7678 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7679 cat >>confdefs.h
<<_ACEOF
7680 #define HAVE_GETPAGESIZE 1
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7687 $as_echo_n "checking for working mmap... " >&6; }
7688 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 if test "$cross_compiling" = yes; then :
7692 ac_cv_func_mmap_fixed_mapped
=no
7694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 /* malloc might have been renamed as rpl_malloc. */
7700 /* Thanks to Mike Haertel and Jim Avera for this test.
7701 Here is a matrix of mmap possibilities:
7702 mmap private not fixed
7703 mmap private fixed at somewhere currently unmapped
7704 mmap private fixed at somewhere already mapped
7705 mmap shared not fixed
7706 mmap shared fixed at somewhere currently unmapped
7707 mmap shared fixed at somewhere already mapped
7708 For private mappings, we should verify that changes cannot be read()
7709 back from the file, nor mmap's back from the file at a different
7710 address. (There have been systems where private was not correctly
7711 implemented like the infamous i386 svr4.0, and systems where the
7712 VM page cache was not coherent with the file system buffer cache
7713 like early versions of FreeBSD and possibly contemporary NetBSD.)
7714 For shared mappings, we should conversely verify that changes get
7715 propagated back to all the places they're supposed to be.
7717 Grep wants private fixed already mapped.
7718 The main things grep needs to know about mmap are:
7719 * does it exist and is it safe to write into the mmap'd area
7720 * how to use it (BSD variants) */
7723 #include <sys/mman.h>
7725 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7729 /* This mess was copied from the GNU getpagesize.h. */
7730 #ifndef HAVE_GETPAGESIZE
7731 # ifdef _SC_PAGESIZE
7732 # define getpagesize() sysconf(_SC_PAGESIZE)
7733 # else /* no _SC_PAGESIZE */
7734 # ifdef HAVE_SYS_PARAM_H
7735 # include <sys/param.h>
7736 # ifdef EXEC_PAGESIZE
7737 # define getpagesize() EXEC_PAGESIZE
7738 # else /* no EXEC_PAGESIZE */
7740 # define getpagesize() NBPG * CLSIZE
7743 # endif /* no CLSIZE */
7744 # else /* no NBPG */
7746 # define getpagesize() NBPC
7747 # else /* no NBPC */
7749 # define getpagesize() PAGESIZE
7750 # endif /* PAGESIZE */
7751 # endif /* no NBPC */
7752 # endif /* no NBPG */
7753 # endif /* no EXEC_PAGESIZE */
7754 # else /* no HAVE_SYS_PARAM_H */
7755 # define getpagesize() 8192 /* punt totally */
7756 # endif /* no HAVE_SYS_PARAM_H */
7757 # endif /* no _SC_PAGESIZE */
7759 #endif /* no HAVE_GETPAGESIZE */
7764 char *data, *data2, *data3;
7768 pagesize = getpagesize ();
7770 /* First, make a file with some known garbage in it. */
7771 data = (char *) malloc (pagesize);
7774 for (i = 0; i < pagesize; ++i)
7775 *(data + i) = rand ();
7777 fd = creat ("conftest.mmap", 0600);
7780 if (write (fd, data, pagesize) != pagesize)
7784 /* Next, check that the tail of a page is zero-filled. File must have
7785 non-zero length, otherwise we risk SIGBUS for entire page. */
7786 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7790 if (write (fd2, data2, 1) != 1)
7792 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7793 if (data2 == MAP_FAILED)
7795 for (i = 0; i < pagesize; ++i)
7799 if (munmap (data2, pagesize))
7802 /* Next, try to mmap the file at a fixed address which already has
7803 something else allocated at it. If we can, also make sure that
7804 we see the same garbage. */
7805 fd = open ("conftest.mmap", O_RDWR);
7808 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7809 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7811 for (i = 0; i < pagesize; ++i)
7812 if (*(data + i) != *(data2 + i))
7815 /* Finally, make sure that changes to the mapped area do not
7816 percolate back to the file as seen by read(). (This is a bug on
7817 some variants of i386 svr4.0.) */
7818 for (i = 0; i < pagesize; ++i)
7819 *(data2 + i) = *(data2 + i) + 1;
7820 data3 = (char *) malloc (pagesize);
7823 if (read (fd, data3, pagesize) != pagesize)
7825 for (i = 0; i < pagesize; ++i)
7826 if (*(data + i) != *(data3 + i))
7832 if ac_fn_c_try_run
"$LINENO"; then :
7833 ac_cv_func_mmap_fixed_mapped
=yes
7835 ac_cv_func_mmap_fixed_mapped
=no
7837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7843 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7844 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7846 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7849 rm -f conftest.mmap conftest.txt
7851 if test $use_mmap_for_buffers = yes; then
7853 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
7858 LIBS
="$LIBS_SYSTEM $LIBS"
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7861 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7862 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7865 ac_check_lib_save_LIBS
=$LIBS
7867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7870 /* Override any GCC internal prototype to avoid an error.
7871 Use char because int might match the return type of a GCC
7872 builtin and then its argument prototype would still apply. */
7880 return dnet_ntoa ();
7885 if ac_fn_c_try_link
"$LINENO"; then :
7886 ac_cv_lib_dnet_dnet_ntoa
=yes
7888 ac_cv_lib_dnet_dnet_ntoa
=no
7890 rm -f core conftest.err conftest.
$ac_objext \
7891 conftest
$ac_exeext conftest.
$ac_ext
7892 LIBS
=$ac_check_lib_save_LIBS
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7895 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7896 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7897 cat >>confdefs.h
<<_ACEOF
7898 #define HAVE_LIBDNET 1
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7907 $as_echo_n "checking for main in -lXbsd... " >&6; }
7908 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
7911 ac_check_lib_save_LIBS
=$LIBS
7913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7925 if ac_fn_c_try_link
"$LINENO"; then :
7926 ac_cv_lib_Xbsd_main
=yes
7928 ac_cv_lib_Xbsd_main
=no
7930 rm -f core conftest.err conftest.
$ac_objext \
7931 conftest
$ac_exeext conftest.
$ac_ext
7932 LIBS
=$ac_check_lib_save_LIBS
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7935 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7936 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7937 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7942 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7943 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7946 ac_check_lib_save_LIBS
=$LIBS
7947 LIBS
="-lpthreads $LIBS"
7948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7966 if ac_fn_c_try_link
"$LINENO"; then :
7967 ac_cv_lib_pthreads_cma_open
=yes
7969 ac_cv_lib_pthreads_cma_open
=no
7971 rm -f core conftest.err conftest.
$ac_objext \
7972 conftest
$ac_exeext conftest.
$ac_ext
7973 LIBS
=$ac_check_lib_save_LIBS
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7976 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7977 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7978 cat >>confdefs.h
<<_ACEOF
7979 #define HAVE_LIBPTHREADS 1
7982 LIBS
="-lpthreads $LIBS"
7987 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7988 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7989 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7990 ## added to LIBS in configure would never contain the pthreads part,
7991 ## but the value used in Makefiles might. FIXME?
7993 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7994 ## be harmless on older versions of X where it happens to exist.
7995 test "$opsys" = "aix4-2" && \
7996 test $ac_cv_lib_pthreads_cma_open = yes && \
7997 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8003 $as_echo_n "checking for -bbigtoc option... " >&6; }
8004 if test "${gdb_cv_bigtoc+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8009 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8010 *) gdb_cv_bigtoc
=-bbigtoc ;;
8013 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8025 if ac_fn_c_try_link
"$LINENO"; then :
8030 rm -f core conftest.err conftest.
$ac_objext \
8031 conftest
$ac_exeext conftest.
$ac_ext
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8035 $as_echo "$gdb_cv_bigtoc" >&6; }
8039 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8040 # used for the tests that follow. We set them back to REAL_CFLAGS and
8041 # REAL_CPPFLAGS later on.
8043 REAL_CFLAGS
="$CFLAGS"
8044 REAL_CPPFLAGS
="$CPPFLAGS"
8046 if test "${HAVE_X11}" = "yes"; then
8047 DEFS
="$C_SWITCH_X_SITE $DEFS"
8048 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8050 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8051 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8053 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8054 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8055 # but it's more convenient here to set LD_RUN_PATH
8056 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8057 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8058 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8062 if test "${opsys}" = "gnu-linux"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8064 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8071 XOpenDisplay ("foo");
8076 if ac_fn_c_try_link
"$LINENO"; then :
8077 xlinux_first_failure
=no
8079 xlinux_first_failure
=yes
8081 rm -f core conftest.err conftest.
$ac_objext \
8082 conftest
$ac_exeext conftest.
$ac_ext
8083 if test "${xlinux_first_failure}" = "yes"; then
8084 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8085 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8086 OLD_CPPFLAGS
="$CPPFLAGS"
8088 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8089 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8090 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8091 LIBS
="$LIBS -b i486-linuxaout"
8092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8098 XOpenDisplay ("foo");
8103 if ac_fn_c_try_link
"$LINENO"; then :
8104 xlinux_second_failure
=no
8106 xlinux_second_failure
=yes
8108 rm -f core conftest.err conftest.
$ac_objext \
8109 conftest
$ac_exeext conftest.
$ac_ext
8110 if test "${xlinux_second_failure}" = "yes"; then
8111 # If we get the same failure with -b, there is no use adding -b.
8112 # So take it out. This plays safe.
8113 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8114 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8115 CPPFLAGS
="$OLD_CPPFLAGS"
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8129 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8130 # header files included from there.
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8132 $as_echo_n "checking for Xkb... " >&6; }
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #include <X11/Xlib.h>
8136 #include <X11/XKBlib.h>
8140 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8145 if ac_fn_c_try_link
"$LINENO"; then :
8150 rm -f core conftest.err conftest.
$ac_objext \
8151 conftest
$ac_exeext conftest.
$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8153 $as_echo "$emacs_xkb" >&6; }
8154 if test $emacs_xkb = yes; then
8156 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8160 for ac_func
in XrmSetDatabase XScreenResourceString \
8161 XScreenNumberOfScreen XSetWMProtocols
8163 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8164 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8165 eval as_val
=\$
$as_ac_var
8166 if test "x$as_val" = x
""yes; then :
8167 cat >>confdefs.h
<<_ACEOF
8168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8176 if test "${window_system}" = "x11"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8178 $as_echo_n "checking X11 version 6... " >&6; }
8179 if test "${emacs_cv_x11_version_6+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <X11/Xlib.h>
8188 #if XlibSpecificationRelease < 6
8196 if ac_fn_c_try_link
"$LINENO"; then :
8197 emacs_cv_x11_version_6
=yes
8199 emacs_cv_x11_version_6
=no
8201 rm -f core conftest.err conftest.
$ac_objext \
8202 conftest
$ac_exeext conftest.
$ac_ext
8205 if test $emacs_cv_x11_version_6 = yes; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8207 $as_echo "6 or newer" >&6; }
8209 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8212 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8214 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8219 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8225 $as_echo "before 6" >&6; }
8230 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8232 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8233 if test "${with_rsvg}" != "no"; then
8234 RSVG_REQUIRED
=2.11.0
8235 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8240 # Extract the first word of "pkg-config", so it can be a program name with args.
8241 set dummy pkg-config
; ac_word
=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8249 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8256 test -z "$as_dir" && as_dir
=.
8257 for ac_exec_ext
in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8271 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8272 if test -n "$PKG_CONFIG"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8274 $as_echo "$PKG_CONFIG" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8282 if test "$PKG_CONFIG" = "no" ; then
8285 PKG_CONFIG_MIN_VERSION
=0.9.0
8286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8288 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8290 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8292 $as_echo "yes" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8296 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8297 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8299 $as_echo "$RSVG_CFLAGS" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8302 $as_echo_n "checking RSVG_LIBS... " >&6; }
8303 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8305 $as_echo "$RSVG_LIBS" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8311 ## If we have a custom action on failure, don't print errors, but
8312 ## do set a variable so people can do so.
8313 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8320 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8321 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8325 if test $succeeded = yes; then
8334 if test ".${RSVG_CFLAGS}" != "."; then
8337 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8339 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8340 LIBS
="$RSVG_LIBS $LIBS"
8347 if test "${with_gtk3}" = "yes"; then
8350 GTK_MODULES
="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8355 # Extract the first word of "pkg-config", so it can be a program name with args.
8356 set dummy pkg-config
; ac_word
=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8364 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir
=.
8372 for ac_exec_ext
in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8386 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8387 if test -n "$PKG_CONFIG"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8389 $as_echo "$PKG_CONFIG" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8397 if test "$PKG_CONFIG" = "no" ; then
8400 PKG_CONFIG_MIN_VERSION
=0.9.0
8401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8403 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8405 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8407 $as_echo "yes" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8411 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8412 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8414 $as_echo "$GTK_CFLAGS" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8417 $as_echo_n "checking GTK_LIBS... " >&6; }
8418 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8420 $as_echo "$GTK_LIBS" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8426 ## If we have a custom action on failure, don't print errors, but
8427 ## do set a variable so people can do so.
8428 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8440 if test $succeeded = yes; then
8446 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8447 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8451 if test "$pkg_check_gtk" != "yes"; then
8453 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8456 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8461 # Extract the first word of "pkg-config", so it can be a program name with args.
8462 set dummy pkg-config
; ac_word
=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8470 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8477 test -z "$as_dir" && as_dir
=.
8478 for ac_exec_ext
in '' $ac_executable_extensions; do
8479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8480 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8492 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8493 if test -n "$PKG_CONFIG"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8495 $as_echo "$PKG_CONFIG" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8503 if test "$PKG_CONFIG" = "no" ; then
8506 PKG_CONFIG_MIN_VERSION
=0.9.0
8507 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8509 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8511 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 $as_echo "yes" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8517 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8518 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8520 $as_echo "$GTK_CFLAGS" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8523 $as_echo_n "checking GTK_LIBS... " >&6; }
8524 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8526 $as_echo "$GTK_LIBS" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8532 ## If we have a custom action on failure, don't print errors, but
8533 ## do set a variable so people can do so.
8534 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8546 if test $succeeded = yes; then
8552 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8553 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8559 if test x
"$pkg_check_gtk" = xyes
; then
8563 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8564 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8565 LIBS
="$GTK_LIBS $LIBS"
8567 for ac_func
in gtk_main
8569 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8570 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8571 cat >>confdefs.h
<<_ACEOF
8572 #define HAVE_GTK_MAIN 1
8578 if test "${GTK_COMPILES}" != "yes"; then
8579 if test "$USE_X_TOOLKIT" != "maybe"; then
8580 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8585 $as_echo "#define USE_GTK 1" >>confdefs.h
8589 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8593 closing open displays. This is no problem if you just use
8594 one display, but if you use more than one and close one of them
8595 Emacs may crash." >&5
8596 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8597 closing open displays. This is no problem if you just use
8598 one display, but if you use more than one and close one of them
8599 Emacs may crash." >&2;}
8608 if test "${HAVE_GTK}" = "yes"; then
8610 if test "$with_toolkit_scroll_bars" != no
; then
8611 with_toolkit_scroll_bars
=yes
8614 HAVE_GTK_FILE_SELECTION
=no
8615 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8616 #include <gtk/gtk.h>
8618 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8619 HAVE_GTK_FILE_SELECTION
=yes
8621 HAVE_GTK_FILE_SELECTION
=no
8624 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8625 for ac_func
in gtk_file_selection_new
8627 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8628 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8629 cat >>confdefs.h
<<_ACEOF
8630 #define HAVE_GTK_FILE_SELECTION_NEW 1
8638 HAVE_GTK_AND_PTHREAD
=no
8639 for ac_header
in pthread.h
8641 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8642 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8643 cat >>confdefs.h
<<_ACEOF
8644 #define HAVE_PTHREAD_H 1
8651 if test "$ac_cv_header_pthread_h"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8653 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8654 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 ac_check_lib_save_LIBS
=$LIBS
8658 LIBS
="-lpthread $LIBS"
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8662 /* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8668 char pthread_self ();
8672 return pthread_self ();
8677 if ac_fn_c_try_link
"$LINENO"; then :
8678 ac_cv_lib_pthread_pthread_self
=yes
8680 ac_cv_lib_pthread_pthread_self
=no
8682 rm -f core conftest.err conftest.
$ac_objext \
8683 conftest
$ac_exeext conftest.
$ac_ext
8684 LIBS
=$ac_check_lib_save_LIBS
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8687 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8688 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8689 HAVE_GTK_AND_PTHREAD
=yes
8693 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8694 case "${canonical}" in
8696 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8699 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8703 for ac_func
in gtk_widget_get_window gtk_widget_set_has_window \
8704 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8705 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8706 gtk_orientable_set_orientation
8708 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8709 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8710 eval as_val
=\$
$as_ac_var
8711 if test "x$as_val" = x
""yes; then :
8712 cat >>confdefs.h
<<_ACEOF
8713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8724 if test "${with_dbus}" = "yes"; then
8728 # Extract the first word of "pkg-config", so it can be a program name with args.
8729 set dummy pkg-config
; ac_word
=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8744 test -z "$as_dir" && as_dir
=.
8745 for ac_exec_ext
in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8760 if test -n "$PKG_CONFIG"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8762 $as_echo "$PKG_CONFIG" >&6; }
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8770 if test "$PKG_CONFIG" = "no" ; then
8773 PKG_CONFIG_MIN_VERSION
=0.9.0
8774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8776 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8778 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8780 $as_echo "yes" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8784 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8785 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8787 $as_echo "$DBUS_CFLAGS" >&6; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8790 $as_echo_n "checking DBUS_LIBS... " >&6; }
8791 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8793 $as_echo "$DBUS_LIBS" >&6; }
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8799 ## If we have a custom action on failure, don't print errors, but
8800 ## do set a variable so people can do so.
8801 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8813 if test $succeeded = yes; then
8819 if test "$HAVE_DBUS" = yes; then
8820 LIBS
="$LIBS $DBUS_LIBS"
8822 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8824 for ac_func
in dbus_watch_get_unix_fd
8826 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8827 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8828 cat >>confdefs.h
<<_ACEOF
8829 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8841 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8845 # Extract the first word of "pkg-config", so it can be a program name with args.
8846 set dummy pkg-config
; ac_word
=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8854 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8861 test -z "$as_dir" && as_dir
=.
8862 for ac_exec_ext
in '' $ac_executable_extensions; do
8863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8876 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8877 if test -n "$PKG_CONFIG"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8879 $as_echo "$PKG_CONFIG" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8887 if test "$PKG_CONFIG" = "no" ; then
8890 PKG_CONFIG_MIN_VERSION
=0.9.0
8891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8893 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8895 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8897 $as_echo "yes" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8901 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8902 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8904 $as_echo "$GCONF_CFLAGS" >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8907 $as_echo_n "checking GCONF_LIBS... " >&6; }
8908 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8910 $as_echo "$GCONF_LIBS" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8916 ## If we have a custom action on failure, don't print errors, but
8917 ## do set a variable so people can do so.
8918 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8930 if test $succeeded = yes; then
8936 if test "$HAVE_GCONF" = yes; then
8938 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8945 if test "${with_selinux}" = "yes"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8947 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8948 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8951 ac_check_lib_save_LIBS
=$LIBS
8952 LIBS
="-lselinux $LIBS"
8953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8962 char lgetfilecon ();
8966 return lgetfilecon ();
8971 if ac_fn_c_try_link
"$LINENO"; then :
8972 ac_cv_lib_selinux_lgetfilecon
=yes
8974 ac_cv_lib_selinux_lgetfilecon
=no
8976 rm -f core conftest.err conftest.
$ac_objext \
8977 conftest
$ac_exeext conftest.
$ac_ext
8978 LIBS
=$ac_check_lib_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8981 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8982 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
8988 if test "$HAVE_LIBSELINUX" = yes; then
8990 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8992 LIBSELINUX_LIBS
=-lselinux
8999 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9000 if test "$with_xaw3d" != no
; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9002 $as_echo_n "checking for xaw3d... " >&6; }
9003 if test "${emacs_cv_xaw3d+set}" = set; then :
9004 $as_echo_n "(cached) " >&6
9006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9009 #include <X11/Intrinsic.h>
9010 #include <X11/Xaw3d/Simple.h>
9019 if ac_fn_c_try_link
"$LINENO"; then :
9024 rm -f core conftest.err conftest.
$ac_objext \
9025 conftest
$ac_exeext conftest.
$ac_ext
9031 if test $emacs_cv_xaw3d = yes; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9033 $as_echo "yes; using Lucid toolkit" >&6; }
9038 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9044 $as_echo_n "checking for libXaw... " >&6; }
9045 if test "${emacs_cv_xaw+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9051 #include <X11/Intrinsic.h>
9052 #include <X11/Xaw/Simple.h>
9061 if ac_fn_c_try_link
"$LINENO"; then :
9066 rm -f core conftest.err conftest.
$ac_objext \
9067 conftest
$ac_exeext conftest.
$ac_ext
9070 if test $emacs_cv_xaw = yes; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9072 $as_echo "yes; using Lucid toolkit" >&6; }
9075 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
9076 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9079 $as_echo "no; do not use toolkit by default" >&6; }
9085 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9088 if test "${USE_X_TOOLKIT}" != "none"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9090 $as_echo_n "checking X11 toolkit version... " >&6; }
9091 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9092 $as_echo_n "(cached) " >&6
9094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 #include <X11/Intrinsic.h>
9100 #if XtSpecificationRelease < 6
9108 if ac_fn_c_try_link
"$LINENO"; then :
9109 emacs_cv_x11_toolkit_version_6
=yes
9111 emacs_cv_x11_toolkit_version_6
=no
9113 rm -f core conftest.err conftest.
$ac_objext \
9114 conftest
$ac_exeext conftest.
$ac_ext
9117 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9118 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9120 $as_echo "6 or newer" >&6; }
9122 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9124 LIBXTR6
="-lSM -lICE"
9126 ## Use libw.a along with X11R6 Xt.
9127 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9131 $as_echo "before 6" >&6; }
9135 if test x
$HAVE_X11XTR6 = xyes
; then
9136 LIBS
="-lXt -lSM -lICE $LIBS"
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9141 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9142 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9145 ac_check_lib_save_LIBS
=$LIBS
9147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9150 /* Override any GCC internal prototype to avoid an error.
9151 Use char because int might match the return type of a GCC
9152 builtin and then its argument prototype would still apply. */
9156 char XmuConvertStandardSelection ();
9160 return XmuConvertStandardSelection ();
9165 if ac_fn_c_try_link
"$LINENO"; then :
9166 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9168 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9170 rm -f core conftest.err conftest.
$ac_objext \
9171 conftest
$ac_exeext conftest.
$ac_ext
9172 LIBS
=$ac_check_lib_save_LIBS
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9175 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9176 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
9177 cat >>confdefs.h
<<_ACEOF
9178 #define HAVE_LIBXMU 1
9185 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9191 ## These machines don't supply Xmu.
9193 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
9198 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9199 if test "${HAVE_X11}" = "yes"; then
9200 if test "${USE_X_TOOLKIT}" != "none"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9202 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9203 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9206 ac_check_lib_save_LIBS
=$LIBS
9208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9211 /* Override any GCC internal prototype to avoid an error.
9212 Use char because int might match the return type of a GCC
9213 builtin and then its argument prototype would still apply. */
9217 char XShapeQueryExtension ();
9221 return XShapeQueryExtension ();
9226 if ac_fn_c_try_link
"$LINENO"; then :
9227 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9229 ac_cv_lib_Xext_XShapeQueryExtension
=no
9231 rm -f core conftest.err conftest.
$ac_objext \
9232 conftest
$ac_exeext conftest.
$ac_ext
9233 LIBS
=$ac_check_lib_save_LIBS
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9236 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9237 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9238 cat >>confdefs.h
<<_ACEOF
9239 #define HAVE_LIBXEXT 1
9250 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9252 $as_echo_n "checking for Motif version 2.1... " >&6; }
9253 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9262 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9265 Motif version prior to 2.1.
9271 if ac_fn_c_try_compile
"$LINENO"; then :
9272 emacs_cv_motif_version_2_1
=yes
9274 emacs_cv_motif_version_2_1
=no
9276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9279 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9280 if test $emacs_cv_motif_version_2_1 = yes; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9282 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9283 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9286 ac_check_lib_save_LIBS
=$LIBS
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9297 char XpCreateContext ();
9301 return XpCreateContext ();
9306 if ac_fn_c_try_link
"$LINENO"; then :
9307 ac_cv_lib_Xp_XpCreateContext
=yes
9309 ac_cv_lib_Xp_XpCreateContext
=no
9311 rm -f core conftest.err conftest.
$ac_objext \
9312 conftest
$ac_exeext conftest.
$ac_ext
9313 LIBS
=$ac_check_lib_save_LIBS
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9316 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9317 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9323 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9324 if test "${emacs_cv_lesstif+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9327 # We put this in CFLAGS temporarily to precede other -I options
9328 # that might be in CFLAGS temporarily.
9329 # We put this in CPPFLAGS where it precedes the other -I options.
9330 OLD_CPPFLAGS
=$CPPFLAGS
9332 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9333 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9345 if ac_fn_c_try_compile
"$LINENO"; then :
9346 emacs_cv_lesstif
=yes
9350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9353 $as_echo "$emacs_cv_lesstif" >&6; }
9354 if test $emacs_cv_lesstif = yes; then
9355 # Make sure this -I option remains in CPPFLAGS after it is set
9356 # back to REAL_CPPFLAGS.
9357 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9358 # have those other -I options anyway. Ultimately, having this
9359 # directory ultimately in CPPFLAGS will be enough.
9360 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9361 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9364 CPPFLAGS
=$OLD_CPPFLAGS
9370 USE_TOOLKIT_SCROLL_BARS
=no
9371 if test "${with_toolkit_scroll_bars}" != "no"; then
9372 if test "${USE_X_TOOLKIT}" != "none"; then
9373 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9374 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9377 USE_TOOLKIT_SCROLL_BARS
=yes
9378 elif test "${HAVE_XAW3D}" = "yes"; then
9379 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9381 USE_TOOLKIT_SCROLL_BARS
=yes
9383 elif test "${HAVE_GTK}" = "yes"; then
9384 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9386 USE_TOOLKIT_SCROLL_BARS
=yes
9387 elif test "${HAVE_NS}" = "yes"; then
9388 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9390 USE_TOOLKIT_SCROLL_BARS
=yes
9394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 #include <X11/Xlib.h>
9398 #include <X11/Xresource.h>
9407 if ac_fn_c_try_compile
"$LINENO"; then :
9410 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9418 if test "${with_xim}" != "no"; then
9420 $as_echo "#define USE_XIM 1" >>confdefs.h
9425 if test "${HAVE_XIM}" != "no"; then
9427 if test "$GCC" = yes; then
9428 CFLAGS
="$CFLAGS --pedantic-errors"
9430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9433 #include <X11/Xlib.h>
9434 #include <X11/Xresource.h>
9443 XPointer *client_data;
9445 /* If we're not using GCC, it's probably not XFree86, and this is
9446 probably right, but we can't use something like --pedantic-errors. */
9447 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9448 char*, XIMProc, XPointer*);
9450 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9456 if ac_fn_c_try_compile
"$LINENO"; then :
9457 emacs_cv_arg6_star
=yes
9459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9460 if test "$emacs_cv_arg6_star" = yes; then
9461 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9464 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9470 ### Start of font-backend (under any platform) section.
9471 # (nothing here yet -- this is a placeholder)
9472 ### End of font-backend (under any platform) section.
9474 ### Start of font-backend (under X11) section.
9475 if test "${HAVE_X11}" = "yes"; then
9479 # Extract the first word of "pkg-config", so it can be a program name with args.
9480 set dummy pkg-config
; ac_word
=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9488 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9495 test -z "$as_dir" && as_dir
=.
9496 for ac_exec_ext
in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9498 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9510 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9511 if test -n "$PKG_CONFIG"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9513 $as_echo "$PKG_CONFIG" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9516 $as_echo "no" >&6; }
9521 if test "$PKG_CONFIG" = "no" ; then
9524 PKG_CONFIG_MIN_VERSION
=0.9.0
9525 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9527 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9529 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9531 $as_echo "yes" >&6; }
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9535 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9536 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9538 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9541 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9542 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9544 $as_echo "$FONTCONFIG_LIBS" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9548 FONTCONFIG_CFLAGS
=""
9550 ## If we have a custom action on failure, don't print errors, but
9551 ## do set a variable so people can do so.
9552 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9564 if test $succeeded = yes; then
9571 ## Use -lXft if available, unless `--with-xft=no'.
9573 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9576 if test "x${with_xft}" != "xno"; then
9581 # Extract the first word of "pkg-config", so it can be a program name with args.
9582 set dummy pkg-config
; ac_word
=$2
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9584 $as_echo_n "checking for $ac_word... " >&6; }
9585 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9590 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9597 test -z "$as_dir" && as_dir
=.
9598 for ac_exec_ext
in '' $ac_executable_extensions; do
9599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9600 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9612 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9613 if test -n "$PKG_CONFIG"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9615 $as_echo "$PKG_CONFIG" >&6; }
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9623 if test "$PKG_CONFIG" = "no" ; then
9626 PKG_CONFIG_MIN_VERSION
=0.9.0
9627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9629 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9631 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9633 $as_echo "yes" >&6; }
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9637 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9638 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9640 $as_echo "$XFT_CFLAGS" >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9643 $as_echo_n "checking XFT_LIBS... " >&6; }
9644 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9646 $as_echo "$XFT_LIBS" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9652 ## If we have a custom action on failure, don't print errors, but
9653 ## do set a variable so people can do so.
9654 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9666 if test $succeeded = yes; then
9672 ## Because xftfont.c uses XRenderQueryExtension, we also
9673 ## need to link to -lXrender.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9676 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9677 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9678 $as_echo_n "(cached) " >&6
9680 ac_check_lib_save_LIBS
=$LIBS
9681 LIBS
="-lXrender $LIBS"
9682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9691 char XRenderQueryExtension ();
9695 return XRenderQueryExtension ();
9700 if ac_fn_c_try_link
"$LINENO"; then :
9701 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9703 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9705 rm -f core conftest.err conftest.
$ac_objext \
9706 conftest
$ac_exeext conftest.
$ac_ext
9707 LIBS
=$ac_check_lib_save_LIBS
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9710 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9711 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9715 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9716 OLD_CPPFLAGS
="$CPPFLAGS"
9717 OLD_CFLAGS
="$CFLAGS"
9719 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9720 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9721 XFT_LIBS
="-lXrender $XFT_LIBS"
9722 LIBS
="$XFT_LIBS $LIBS"
9723 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9724 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9726 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9727 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9730 ac_check_lib_save_LIBS
=$LIBS
9731 LIBS
="-lXft $XFT_LIBS $LIBS"
9732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9741 char XftFontOpen ();
9745 return XftFontOpen ();
9750 if ac_fn_c_try_link
"$LINENO"; then :
9751 ac_cv_lib_Xft_XftFontOpen
=yes
9753 ac_cv_lib_Xft_XftFontOpen
=no
9755 rm -f core conftest.err conftest.
$ac_objext \
9756 conftest
$ac_exeext conftest.
$ac_ext
9757 LIBS
=$ac_check_lib_save_LIBS
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9760 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9761 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9769 if test "${HAVE_XFT}" = "yes"; then
9771 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9774 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9776 CPPFLAGS
="$OLD_CPPFLAGS"
9777 CFLAGS
="$OLD_CFLAGS"
9779 fi # "${HAVE_XFT}" = "yes"
9780 fi # "$HAVE_XFT" != no
9781 fi # "x${with_xft}" != "xno"
9783 if test "$HAVE_XFT" != "yes"; then
9789 ## We used to allow building with FreeType and without Xft.
9790 ## However, the ftx font backend driver is not in good shape.
9791 if test "${HAVE_XFT}" = "yes"; then
9798 if test "${HAVE_FREETYPE}" = "yes"; then
9800 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9802 if test "${with_libotf}" != "no"; then
9806 # Extract the first word of "pkg-config", so it can be a program name with args.
9807 set dummy pkg-config
; ac_word
=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9815 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9822 test -z "$as_dir" && as_dir
=.
9823 for ac_exec_ext
in '' $ac_executable_extensions; do
9824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9825 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9837 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9838 if test -n "$PKG_CONFIG"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9840 $as_echo "$PKG_CONFIG" >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9848 if test "$PKG_CONFIG" = "no" ; then
9851 PKG_CONFIG_MIN_VERSION
=0.9.0
9852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9854 $as_echo_n "checking for libotf... " >&6; }
9856 if $PKG_CONFIG --exists "libotf" 2>&5; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9858 $as_echo "yes" >&6; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9862 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9863 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9865 $as_echo "$LIBOTF_CFLAGS" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9868 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9869 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9871 $as_echo "$LIBOTF_LIBS" >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9877 ## If we have a custom action on failure, don't print errors, but
9878 ## do set a variable so people can do so.
9879 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9891 if test $succeeded = yes; then
9897 if test "$HAVE_LIBOTF" = "yes"; then
9899 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9902 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9903 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9906 ac_check_lib_save_LIBS
=$LIBS
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9917 char OTF_get_variation_glyphs ();
9921 return OTF_get_variation_glyphs ();
9926 if ac_fn_c_try_link
"$LINENO"; then :
9927 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9929 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9931 rm -f core conftest.err conftest.
$ac_objext \
9932 conftest
$ac_exeext conftest.
$ac_ext
9933 LIBS
=$ac_check_lib_save_LIBS
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9936 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9937 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9938 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9940 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9943 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9945 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9953 if test "${HAVE_LIBOTF}" = yes; then
9954 if test "${with_m17n_flt}" != "no"; then
9958 # Extract the first word of "pkg-config", so it can be a program name with args.
9959 set dummy pkg-config
; ac_word
=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9967 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9974 test -z "$as_dir" && as_dir
=.
9975 for ac_exec_ext
in '' $ac_executable_extensions; do
9976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9989 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9990 if test -n "$PKG_CONFIG"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9992 $as_echo "$PKG_CONFIG" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
10000 if test "$PKG_CONFIG" = "no" ; then
10003 PKG_CONFIG_MIN_VERSION
=0.9.0
10004 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10006 $as_echo_n "checking for m17n-flt... " >&6; }
10008 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010 $as_echo "yes" >&6; }
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10014 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10015 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10017 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10020 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10021 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10023 $as_echo "$M17N_FLT_LIBS" >&6; }
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026 $as_echo "no" >&6; }
10029 ## If we have a custom action on failure, don't print errors, but
10030 ## do set a variable so people can do so.
10031 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10043 if test $succeeded = yes; then
10049 if test "$HAVE_M17N_FLT" = "yes"; then
10051 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10063 ### End of font-backend (under X11) section.
10074 ### Use -lXpm if available, unless `--with-xpm=no'.
10077 if test "${HAVE_X11}" = "yes"; then
10078 if test "${with_xpm}" != "no"; then
10079 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10080 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10082 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10083 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10086 ac_check_lib_save_LIBS
=$LIBS
10087 LIBS
="-lXpm -lX11 $LIBS"
10088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10097 char XpmReadFileToPixmap ();
10101 return XpmReadFileToPixmap ();
10106 if ac_fn_c_try_link
"$LINENO"; then :
10107 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10109 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10111 rm -f core conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10113 LIBS
=$ac_check_lib_save_LIBS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10116 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10117 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
10124 if test "${HAVE_XPM}" = "yes"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10126 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 #include "X11/xpm.h"
10130 #ifndef XpmReturnAllocPixels
10131 no_return_alloc_pixels
10135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10136 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
10144 if test "${HAVE_XPM}" = "yes"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10146 $as_echo "yes" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10154 if test "${HAVE_XPM}" = "yes"; then
10156 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10163 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10166 if test "${HAVE_X11}" = "yes"; then
10167 if test "${with_jpeg}" != "no"; then
10168 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10169 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10171 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10172 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10175 ac_check_lib_save_LIBS
=$LIBS
10176 LIBS
="-ljpeg $LIBS"
10177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10180 /* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
10186 char jpeg_destroy_compress ();
10190 return jpeg_destroy_compress ();
10195 if ac_fn_c_try_link
"$LINENO"; then :
10196 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10198 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10200 rm -f core conftest.err conftest.
$ac_objext \
10201 conftest
$ac_exeext conftest.
$ac_ext
10202 LIBS
=$ac_check_lib_save_LIBS
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10205 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10206 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
10215 if test "${HAVE_JPEG}" = "yes"; then
10216 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #include <jpeglib.h>
10221 version=JPEG_LIB_VERSION
10224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10225 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10226 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10230 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10236 if test "${HAVE_JPEG}" = "yes"; then
10242 ### Use -lpng if available, unless `--with-png=no'.
10245 if test "${HAVE_X11}" = "yes"; then
10246 if test "${with_png}" != "no"; then
10247 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10248 # in /usr/include/libpng.
10249 for ac_header
in png.h libpng
/png.h
10251 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10252 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10253 eval as_val
=\$
$as_ac_Header
10254 if test "x$as_val" = x
""yes; then :
10255 cat >>confdefs.h
<<_ACEOF
10256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10263 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10265 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10266 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10269 ac_check_lib_save_LIBS
=$LIBS
10270 LIBS
="-lpng -lz -lm $LIBS"
10271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10280 char png_get_channels ();
10284 return png_get_channels ();
10289 if ac_fn_c_try_link
"$LINENO"; then :
10290 ac_cv_lib_png_png_get_channels
=yes
10292 ac_cv_lib_png_png_get_channels
=no
10294 rm -f core conftest.err conftest.
$ac_objext \
10295 conftest
$ac_exeext conftest.
$ac_ext
10296 LIBS
=$ac_check_lib_save_LIBS
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10299 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10300 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10307 if test "${HAVE_PNG}" = "yes"; then
10309 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10311 LIBPNG
="-lpng -lz -lm"
10316 ### Use -ltiff if available, unless `--with-tiff=no'.
10319 if test "${HAVE_X11}" = "yes"; then
10320 if test "${with_tiff}" != "no"; then
10321 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10322 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10324 # At least one tiff package requires the jpeg library.
10325 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10327 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10328 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10331 ac_check_lib_save_LIBS
=$LIBS
10332 LIBS
="-ltiff $tifflibs $LIBS"
10333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10342 char TIFFGetVersion ();
10346 return TIFFGetVersion ();
10351 if ac_fn_c_try_link
"$LINENO"; then :
10352 ac_cv_lib_tiff_TIFFGetVersion
=yes
10354 ac_cv_lib_tiff_TIFFGetVersion
=no
10356 rm -f core conftest.err conftest.
$ac_objext \
10357 conftest
$ac_exeext conftest.
$ac_ext
10358 LIBS
=$ac_check_lib_save_LIBS
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10361 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10362 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10371 if test "${HAVE_TIFF}" = "yes"; then
10373 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10380 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10383 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10384 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10385 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10386 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10387 # Earlier versions can crash Emacs.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10389 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10390 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10393 ac_check_lib_save_LIBS
=$LIBS
10395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10404 char EGifPutExtensionLast ();
10408 return EGifPutExtensionLast ();
10413 if ac_fn_c_try_link
"$LINENO"; then :
10414 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10416 ac_cv_lib_gif_EGifPutExtensionLast
=no
10418 rm -f core conftest.err conftest.
$ac_objext \
10419 conftest
$ac_exeext conftest.
$ac_ext
10420 LIBS
=$ac_check_lib_save_LIBS
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10423 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10424 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10434 if test "$HAVE_GIF" = yes; then
10436 elif test "$HAVE_GIF" = maybe
; then
10437 # If gif_lib.h but no libgif, try libungif.
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10439 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10440 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
10443 ac_check_lib_save_LIBS
=$LIBS
10444 LIBS
="-lungif $LIBS"
10445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10454 char EGifPutExtensionLast ();
10458 return EGifPutExtensionLast ();
10463 if ac_fn_c_try_link
"$LINENO"; then :
10464 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10466 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10468 rm -f core conftest.err conftest.
$ac_objext \
10469 conftest
$ac_exeext conftest.
$ac_ext
10470 LIBS
=$ac_check_lib_save_LIBS
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10473 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10474 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10480 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10483 if test "${HAVE_GIF}" = "yes"; then
10485 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10491 if test "${HAVE_X11}" = "yes"; then
10494 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10495 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10496 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10497 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10498 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10499 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10500 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10501 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10502 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10503 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10505 if test "X${MISSING}" != X
; then
10506 as_fn_error
"The following required libraries were not found:
10508 Maybe some development libraries/packages are missing?
10509 If you don't want to link with them give
10511 as options to configure" "$LINENO" 5
10515 ### Use -lgpm if available, unless `--with-gpm=no'.
10519 if test "${with_gpm}" != "no"; then
10520 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10521 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10523 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10524 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10527 ac_check_lib_save_LIBS
=$LIBS
10529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10532 /* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
10542 return Gpm_Open ();
10547 if ac_fn_c_try_link
"$LINENO"; then :
10548 ac_cv_lib_gpm_Gpm_Open
=yes
10550 ac_cv_lib_gpm_Gpm_Open
=no
10552 rm -f core conftest.err conftest.
$ac_objext \
10553 conftest
$ac_exeext conftest.
$ac_ext
10554 LIBS
=$ac_check_lib_save_LIBS
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10557 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10558 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10566 if test "${HAVE_GPM}" = "yes"; then
10568 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10571 ## May be reset below.
10572 MOUSE_SUPPORT
="\$(GPM_MOUSE_SUPPORT)"
10577 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10578 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10580 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10587 ### Use NeXTstep API to implement GUI.
10588 if test "${HAVE_NS}" = "yes"; then
10590 $as_echo "#define HAVE_NS 1" >>confdefs.h
10592 if test "${NS_IMPL_COCOA}" = "yes"; then
10594 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10598 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10600 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10602 # See also .m.o rule in Makefile.in */
10603 # FIXME: are all these flags really needed? Document here why. */
10604 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
10605 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10607 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10609 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10612 # We also have mouse menus.
10618 ### Use session management (-lSM -lICE) if available
10621 if test "${HAVE_X11}" = "yes"; then
10622 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10623 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10625 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10626 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10629 ac_check_lib_save_LIBS
=$LIBS
10630 LIBS
="-lSM -lICE $LIBS"
10631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10634 /* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10640 char SmcOpenConnection ();
10644 return SmcOpenConnection ();
10649 if ac_fn_c_try_link
"$LINENO"; then :
10650 ac_cv_lib_SM_SmcOpenConnection
=yes
10652 ac_cv_lib_SM_SmcOpenConnection
=no
10654 rm -f core conftest.err conftest.
$ac_objext \
10655 conftest
$ac_exeext conftest.
$ac_ext
10656 LIBS
=$ac_check_lib_save_LIBS
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10659 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10660 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10668 if test "${HAVE_X_SM}" = "yes"; then
10670 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10672 LIBXSM
="-lSM -lICE"
10675 *) LIBS
="$LIBXSM $LIBS" ;;
10681 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10683 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10684 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10698 if ac_fn_c_try_link
"$LINENO"; then :
10699 emacs_cv_netdb_declares_h_errno
=yes
10701 emacs_cv_netdb_declares_h_errno
=no
10703 rm -f core conftest.err conftest.
$ac_objext \
10704 conftest
$ac_exeext conftest.
$ac_ext
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10707 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10708 if test $emacs_cv_netdb_declares_h_errno = yes; then
10710 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10714 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10715 # for constant arguments. Useless!
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10717 $as_echo_n "checking for working alloca.h... " >&6; }
10718 if test "${ac_cv_working_alloca_h+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 #include <alloca.h>
10727 char *p = (char *) alloca (2 * sizeof (int));
10733 if ac_fn_c_try_link
"$LINENO"; then :
10734 ac_cv_working_alloca_h
=yes
10736 ac_cv_working_alloca_h
=no
10738 rm -f core conftest.err conftest.
$ac_objext \
10739 conftest
$ac_exeext conftest.
$ac_ext
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10742 $as_echo "$ac_cv_working_alloca_h" >&6; }
10743 if test $ac_cv_working_alloca_h = yes; then
10745 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10750 $as_echo_n "checking for alloca... " >&6; }
10751 if test "${ac_cv_func_alloca_works+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10757 # define alloca __builtin_alloca
10760 # include <malloc.h>
10761 # define alloca _alloca
10763 # ifdef HAVE_ALLOCA_H
10764 # include <alloca.h>
10769 # ifndef alloca /* predefined by HP cc +Olibcalls */
10780 char *p = (char *) alloca (1);
10786 if ac_fn_c_try_link
"$LINENO"; then :
10787 ac_cv_func_alloca_works
=yes
10789 ac_cv_func_alloca_works
=no
10791 rm -f core conftest.err conftest.
$ac_objext \
10792 conftest
$ac_exeext conftest.
$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10795 $as_echo "$ac_cv_func_alloca_works" >&6; }
10797 if test $ac_cv_func_alloca_works = yes; then
10799 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10802 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10803 # that cause trouble. Some versions do not even contain alloca or
10804 # contain a buggy version. If you still want to use their alloca,
10805 # use ar to extract alloca.o from them instead of compiling alloca.c.
10807 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10809 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10813 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10814 if test "${ac_cv_os_cray+set}" = set; then :
10815 $as_echo_n "(cached) " >&6
10817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 #if defined CRAY && ! defined CRAY2
10826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827 $EGREP "webecray" >/dev
/null
2>&1; then :
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10836 $as_echo "$ac_cv_os_cray" >&6; }
10837 if test $ac_cv_os_cray = yes; then
10838 for ac_func
in _getb67 GETB67 getb67
; do
10839 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10840 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10841 eval as_val
=\$
$as_ac_var
10842 if test "x$as_val" = x
""yes; then :
10844 cat >>confdefs.h
<<_ACEOF
10845 #define CRAY_STACKSEG_END $ac_func
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10855 $as_echo_n "checking stack direction for C alloca... " >&6; }
10856 if test "${ac_cv_c_stack_direction+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10859 if test "$cross_compiling" = yes; then :
10860 ac_cv_c_stack_direction
=0
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 $ac_includes_default
10866 find_stack_direction ()
10868 static char *addr = 0;
10873 return find_stack_direction ();
10876 return (&dummy > addr) ? 1 : -1;
10882 return find_stack_direction () < 0;
10885 if ac_fn_c_try_run
"$LINENO"; then :
10886 ac_cv_c_stack_direction
=1
10888 ac_cv_c_stack_direction
=-1
10890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10896 $as_echo "$ac_cv_c_stack_direction" >&6; }
10897 cat >>confdefs.h
<<_ACEOF
10898 #define STACK_DIRECTION $ac_cv_c_stack_direction
10905 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10906 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10909 # fmod, logb, and frexp are found in -lm on most systems.
10910 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10912 $as_echo_n "checking for sqrt in -lm... " >&6; }
10913 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10914 $as_echo_n "(cached) " >&6
10916 ac_check_lib_save_LIBS
=$LIBS
10918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10936 if ac_fn_c_try_link
"$LINENO"; then :
10937 ac_cv_lib_m_sqrt
=yes
10939 ac_cv_lib_m_sqrt
=no
10941 rm -f core conftest.err conftest.
$ac_objext \
10942 conftest
$ac_exeext conftest.
$ac_ext
10943 LIBS
=$ac_check_lib_save_LIBS
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10946 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10947 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10948 cat >>confdefs.h
<<_ACEOF
10949 #define HAVE_LIBM 1
10957 # Check for mail-locking functions in a "mail" library. Probably this should
10958 # have the same check as for liblockfile below.
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10960 $as_echo_n "checking for maillock in -lmail... " >&6; }
10961 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10962 $as_echo_n "(cached) " >&6
10964 ac_check_lib_save_LIBS
=$LIBS
10965 LIBS
="-lmail $LIBS"
10966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10979 return maillock ();
10984 if ac_fn_c_try_link
"$LINENO"; then :
10985 ac_cv_lib_mail_maillock
=yes
10987 ac_cv_lib_mail_maillock
=no
10989 rm -f core conftest.err conftest.
$ac_objext \
10990 conftest
$ac_exeext conftest.
$ac_ext
10991 LIBS
=$ac_check_lib_save_LIBS
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10994 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10995 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
11001 if test $have_mail = yes; then
11003 LIBS
="$LIBS_MAIL $LIBS"
11005 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11011 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11012 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11013 $as_echo_n "(cached) " >&6
11015 ac_check_lib_save_LIBS
=$LIBS
11016 LIBS
="-llockfile $LIBS"
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11030 return maillock ();
11035 if ac_fn_c_try_link
"$LINENO"; then :
11036 ac_cv_lib_lockfile_maillock
=yes
11038 ac_cv_lib_lockfile_maillock
=no
11040 rm -f core conftest.err conftest.
$ac_objext \
11041 conftest
$ac_exeext conftest.
$ac_ext
11042 LIBS
=$ac_check_lib_save_LIBS
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11045 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11046 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
11052 if test $have_lockfile = yes; then
11053 LIBS_MAIL
=-llockfile
11054 LIBS
="$LIBS_MAIL $LIBS"
11056 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11059 # If we have the shared liblockfile, assume we must use it for mail
11060 # locking (e.g. Debian). If we couldn't link against liblockfile
11061 # (no liblockfile.a installed), ensure that we don't need to.
11062 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11063 set dummy liblockfile.so
; ac_word
=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11069 if test -n "$liblockfile"; then
11070 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
11072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11073 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11074 for as_dir
in $as_dummy
11077 test -z "$as_dir" && as_dir
=.
11078 for ac_exec_ext
in '' $ac_executable_extensions; do
11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11080 ac_cv_prog_liblockfile
="yes"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
11091 liblockfile
=$ac_cv_prog_liblockfile
11092 if test -n "$liblockfile"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11094 $as_echo "$liblockfile" >&6; }
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11101 if test $ac_cv_prog_liblockfile = yes; then
11102 as_fn_error
"Shared liblockfile found but can't link against it.
11103 This probably means that movemail could lose mail.
11104 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11107 for ac_func
in touchlock
11109 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
11110 if test "x$ac_cv_func_touchlock" = x
""yes; then :
11111 cat >>confdefs.h
<<_ACEOF
11112 #define HAVE_TOUCHLOCK 1
11118 for ac_header
in maillock.h
11120 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11121 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
11122 cat >>confdefs.h
<<_ACEOF
11123 #define HAVE_MAILLOCK_H 1
11132 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11133 ## interlock access to the mail spool. The alternative is a lock file named
11134 ## /usr/spool/mail/$USER.lock.
11137 aix4-2
) mail_lock
="lockf" ;;
11139 gnu|freebsd|netbsd|openbsd|darwin|irix6-5
) mail_lock
="flock" ;;
11141 ## On GNU/Linux systems, both methods are used by various mail programs.
11142 ## I assume most people are using newer mailers that have heard of flock.
11143 ## Change this if you need to.
11144 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11145 ## configure gets the right answers, and that means *NOT* using flock.
11146 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11147 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11148 ## Debian maintainer hasn't provided a clean fix for Emacs.
11149 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11150 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11151 ## correct logic. -- fx
11152 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11153 ## liblockfile is a Free Software replacement for libmail, used on
11154 ## Debian systems and elsewhere. -rfr.
11157 if test $have_mail = yes ||
test $have_lockfile = yes; then
11158 test $ac_cv_header_maillock_h = yes && mail_lock
=no
11164 case "$mail_lock" in
11166 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11170 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11173 *) BLESSMAIL_TARGET
="need-blessmail" ;;
11178 for ac_func
in gethostname getdomainname dup2 \
11179 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
11180 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11181 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11182 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11183 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11184 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11185 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11186 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11187 cfmakeraw cfsetspeed isnan copysign __executable_start
11189 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11190 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11191 eval as_val
=\$
$as_ac_var
11192 if test "x$as_val" = x
""yes; then :
11193 cat >>confdefs.h
<<_ACEOF
11194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11201 for ac_header
in sys
/un.h
11203 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11204 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
11205 cat >>confdefs.h
<<_ACEOF
11206 #define HAVE_SYS_UN_H 1
11219 for ac_func
in $ac_func_list
11221 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11222 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11223 eval as_val
=\$
$as_ac_var
11224 if test "x$as_val" = x
""yes; then :
11225 cat >>confdefs.h
<<_ACEOF
11226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11237 $as_echo_n "checking for working mktime... " >&6; }
11238 if test "${ac_cv_func_working_mktime+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11241 if test "$cross_compiling" = yes; then :
11242 ac_cv_func_working_mktime
=no
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 /* Test program from Paul Eggert and Tony Leneis. */
11247 #ifdef TIME_WITH_SYS_TIME
11248 # include <sys/time.h>
11251 # ifdef HAVE_SYS_TIME_H
11252 # include <sys/time.h>
11258 #include <limits.h>
11259 #include <stdlib.h>
11261 #ifdef HAVE_UNISTD_H
11262 # include <unistd.h>
11266 # define alarm(X) /* empty */
11269 /* Work around redefinition to rpl_putenv by other config tests. */
11272 static time_t time_t_max;
11273 static time_t time_t_min;
11275 /* Values we'll use to set the TZ environment variable. */
11276 static char *tz_strings[] = {
11277 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11278 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11280 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11282 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11283 Based on a problem report from Andreas Jaeger. */
11285 spring_forward_gap ()
11287 /* glibc (up to about 1998-10-07) failed this test. */
11290 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11291 instead of "TZ=America/Vancouver" in order to detect the bug even
11292 on systems that don't support the Olson extension, or don't have the
11293 full zoneinfo tables installed. */
11294 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11303 return mktime (&tm) != (time_t) -1;
11311 return ! (lt = localtime (&now)) || mktime (lt) == now;
11318 return (mktime_test1 (now)
11319 && mktime_test1 ((time_t) (time_t_max - now))
11320 && mktime_test1 ((time_t) (time_t_min + now)));
11326 /* Based on code from Ariel Faigon. */
11336 return tm.tm_mon == 2 && tm.tm_mday == 31;
11345 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11346 now = mktime (&tm);
11347 if (now != (time_t) -1)
11349 struct tm *lt = localtime (&now);
11351 && lt->tm_year == tm.tm_year
11352 && lt->tm_mon == tm.tm_mon
11353 && lt->tm_mday == tm.tm_mday
11354 && lt->tm_hour == tm.tm_hour
11355 && lt->tm_min == tm.tm_min
11356 && lt->tm_sec == tm.tm_sec
11357 && lt->tm_yday == tm.tm_yday
11358 && lt->tm_wday == tm.tm_wday
11359 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11360 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11369 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11370 ignoring leap seconds. */
11371 unsigned long int answer = 2527315200UL;
11375 tm.tm_year = 2050 - 1900;
11378 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11381 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11382 instead of "TZ=America/Vancouver" in order to detect the bug even
11383 on systems that don't support the Olson extension, or don't have the
11384 full zoneinfo tables installed. */
11385 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11389 /* Check that the result is either a failure, or close enough
11390 to the correct answer that we can assume the discrepancy is
11391 due to leap seconds. */
11392 return (t == (time_t) -1
11393 || (0 < t && answer - 120 <= t && t <= answer + 120));
11402 /* This test makes some buggy mktime implementations loop.
11403 Give up after 60 seconds; a mktime slower than that
11404 isn't worth using anyway. */
11409 t = (time_t_max << 1) + 1;
11410 if (t <= time_t_max)
11414 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11416 delta = time_t_max / 997; /* a suitable prime number */
11417 for (i = 0; i < N_STRINGS; i++)
11420 putenv (tz_strings[i]);
11422 for (t = 0; t <= time_t_max - delta; t += delta)
11423 if (! mktime_test (t))
11425 if (! (mktime_test ((time_t) 1)
11426 && mktime_test ((time_t) (60 * 60))
11427 && mktime_test ((time_t) (60 * 60 * 24))))
11430 for (j = 1; ; j <<= 1)
11431 if (! bigtime_test (j))
11433 else if (INT_MAX / 2 < j)
11435 if (! bigtime_test (INT_MAX))
11438 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11441 if ac_fn_c_try_run
"$LINENO"; then :
11442 ac_cv_func_working_mktime
=yes
11444 ac_cv_func_working_mktime
=no
11446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11447 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11452 $as_echo "$ac_cv_func_working_mktime" >&6; }
11453 if test $ac_cv_func_working_mktime = no
; then
11454 case " $LIBOBJS " in
11455 *" mktime.$ac_objext "* ) ;;
11456 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11462 if test "$ac_cv_func_working_mktime" = no
; then
11464 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11468 ac_have_func
=no
# yes means we've found a way to get the load average.
11470 # Make sure getloadavg.c is where it belongs, at configure-time.
11471 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11472 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11476 # Check for getloadavg, but be sure not to touch the cache variable.
11477 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11478 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11483 ) && ac_have_func
=yes
11485 # On HPUX9, an unprivileged user can get load averages through this function.
11486 for ac_func
in pstat_getdynamic
11488 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11489 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11490 cat >>confdefs.h
<<_ACEOF
11491 #define HAVE_PSTAT_GETDYNAMIC 1
11498 # Solaris has libkstat which does not require root.
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11500 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11501 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11504 ac_check_lib_save_LIBS
=$LIBS
11505 LIBS
="-lkstat $LIBS"
11506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11515 char kstat_open ();
11519 return kstat_open ();
11524 if ac_fn_c_try_link
"$LINENO"; then :
11525 ac_cv_lib_kstat_kstat_open
=yes
11527 ac_cv_lib_kstat_kstat_open
=no
11529 rm -f core conftest.err conftest.
$ac_objext \
11530 conftest
$ac_exeext conftest.
$ac_ext
11531 LIBS
=$ac_check_lib_save_LIBS
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11534 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11535 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11536 cat >>confdefs.h
<<_ACEOF
11537 #define HAVE_LIBKSTAT 1
11540 LIBS
="-lkstat $LIBS"
11544 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11546 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11547 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11548 # to get the right answer into the cache.
11549 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11550 if test $ac_have_func = no
; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11552 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11553 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11556 ac_check_lib_save_LIBS
=$LIBS
11558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11571 return elf_begin ();
11576 if ac_fn_c_try_link
"$LINENO"; then :
11577 ac_cv_lib_elf_elf_begin
=yes
11579 ac_cv_lib_elf_elf_begin
=no
11581 rm -f core conftest.err conftest.
$ac_objext \
11582 conftest
$ac_exeext conftest.
$ac_ext
11583 LIBS
=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11586 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11587 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11592 if test $ac_have_func = no
; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11594 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11595 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11598 ac_check_lib_save_LIBS
=$LIBS
11600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11613 return kvm_open ();
11618 if ac_fn_c_try_link
"$LINENO"; then :
11619 ac_cv_lib_kvm_kvm_open
=yes
11621 ac_cv_lib_kvm_kvm_open
=no
11623 rm -f core conftest.err conftest.
$ac_objext \
11624 conftest
$ac_exeext conftest.
$ac_ext
11625 LIBS
=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11628 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11629 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11633 # Check for the 4.4BSD definition of getloadavg.
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11635 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11636 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11639 ac_check_lib_save_LIBS
=$LIBS
11640 LIBS
="-lutil $LIBS"
11641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11650 char getloadavg ();
11654 return getloadavg ();
11659 if ac_fn_c_try_link
"$LINENO"; then :
11660 ac_cv_lib_util_getloadavg
=yes
11662 ac_cv_lib_util_getloadavg
=no
11664 rm -f core conftest.err conftest.
$ac_objext \
11665 conftest
$ac_exeext conftest.
$ac_ext
11666 LIBS
=$ac_check_lib_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11669 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11670 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11671 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11676 if test $ac_have_func = no
; then
11677 # There is a commonly available library for RS/6000 AIX.
11678 # Since it is not a standard part of AIX, it might be installed locally.
11679 ac_getloadavg_LIBS
=$LIBS
11680 LIBS
="-L/usr/local/lib $LIBS"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11682 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11683 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11686 ac_check_lib_save_LIBS
=$LIBS
11687 LIBS
="-lgetloadavg $LIBS"
11688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11697 char getloadavg ();
11701 return getloadavg ();
11706 if ac_fn_c_try_link
"$LINENO"; then :
11707 ac_cv_lib_getloadavg_getloadavg
=yes
11709 ac_cv_lib_getloadavg_getloadavg
=no
11711 rm -f core conftest.err conftest.
$ac_objext \
11712 conftest
$ac_exeext conftest.
$ac_ext
11713 LIBS
=$ac_check_lib_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11716 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11717 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11718 LIBS
="-lgetloadavg $LIBS"
11720 LIBS
=$ac_getloadavg_LIBS
11725 # Make sure it is really in the library, if we think we found it,
11726 # otherwise set up the replacement function.
11727 for ac_func
in getloadavg
11729 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11730 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11731 cat >>confdefs.h
<<_ACEOF
11732 #define HAVE_GETLOADAVG 1
11736 case " $LIBOBJS " in
11737 *" getloadavg.$ac_objext "* ) ;;
11738 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11743 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11745 # Figure out what our getloadavg.c needs.
11747 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11748 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11751 $as_echo "#define DGUX 1" >>confdefs.h
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11754 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11755 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 ac_check_lib_save_LIBS
=$LIBS
11760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11769 char dg_sys_info ();
11773 return dg_sys_info ();
11778 if ac_fn_c_try_link
"$LINENO"; then :
11779 ac_cv_lib_dgc_dg_sys_info
=yes
11781 ac_cv_lib_dgc_dg_sys_info
=no
11783 rm -f core conftest.err conftest.
$ac_objext \
11784 conftest
$ac_exeext conftest.
$ac_ext
11785 LIBS
=$ac_check_lib_save_LIBS
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11788 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11789 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11790 cat >>confdefs.h
<<_ACEOF
11791 #define HAVE_LIBDGC 1
11802 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11803 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11808 for ac_func
in setlocale
11810 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11811 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11812 cat >>confdefs.h
<<_ACEOF
11813 #define HAVE_SETLOCALE 1
11820 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11821 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11822 # Irix 4.0.5F has the header but not the library.
11823 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11826 $as_echo "#define SVR4 1" >>confdefs.h
11830 if test $ac_have_func = no
; then
11831 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11832 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11835 $as_echo "#define UMAX 1" >>confdefs.h
11838 $as_echo "#define UMAX4_3 1" >>confdefs.h
11845 if test $ac_have_func = no
; then
11846 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11847 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11848 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11855 if test $ac_have_func = no
; then
11856 for ac_header
in mach
/mach.h
11858 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11859 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11860 cat >>confdefs.h
<<_ACEOF
11861 #define HAVE_MACH_MACH_H 1
11870 for ac_header
in nlist.h
11872 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11874 cat >>confdefs.h
<<_ACEOF
11875 #define HAVE_NLIST_H 1
11877 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11879 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11886 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11899 # Some definitions of getloadavg require that the program be installed setgid.
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11901 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11902 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11908 #ifdef LDAV_PRIVILEGED
11909 Yowza Am I SETGID yet
11912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11913 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11914 ac_cv_func_getloadavg_setgid
=yes
11916 ac_cv_func_getloadavg_setgid
=no
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11922 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11923 if test $ac_cv_func_getloadavg_setgid = yes; then
11926 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11932 if test $ac_cv_func_getloadavg_setgid = yes; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11934 $as_echo_n "checking group of /dev/kmem... " >&6; }
11935 if test "${ac_cv_group_kmem+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11938 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11939 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11940 # If we got an error (system does not support symlinks), try without -L.
11941 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11942 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11943 | sed -ne 's/[ ][ ]*/ /g;
11944 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11949 $as_echo "$ac_cv_group_kmem" >&6; }
11950 KMEM_GROUP
=$ac_cv_group_kmem
11952 if test "x$ac_save_LIBS" = x
; then
11953 GETLOADAVG_LIBS
=$LIBS
11955 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11962 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11963 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #include <sys/types.h> /* for off_t */
11974 int (*fp) (FILE *, off_t, int) = fseeko;
11975 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11980 if ac_fn_c_try_link
"$LINENO"; then :
11981 ac_cv_sys_largefile_source
=no
; break
11983 rm -f core conftest.err conftest.
$ac_objext \
11984 conftest
$ac_exeext conftest.
$ac_ext
11985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11987 #define _LARGEFILE_SOURCE 1
11988 #include <sys/types.h> /* for off_t */
11993 int (*fp) (FILE *, off_t, int) = fseeko;
11994 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11999 if ac_fn_c_try_link
"$LINENO"; then :
12000 ac_cv_sys_largefile_source
=1; break
12002 rm -f core conftest.err conftest.
$ac_objext \
12003 conftest
$ac_exeext conftest.
$ac_ext
12004 ac_cv_sys_largefile_source
=unknown
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12009 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12010 case $ac_cv_sys_largefile_source in #(
12013 cat >>confdefs.h
<<_ACEOF
12014 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12020 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12021 # in glibc 2.1.3, but that breaks too many other things.
12022 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12023 if test $ac_cv_sys_largefile_source != unknown
; then
12025 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12030 # Configure getopt.
12031 # getopt.m4 serial 10
12033 # The getopt module assume you want GNU getopt, with getopt_long etc,
12034 # rather than vanilla POSIX getopt. This means your your code should
12035 # always include <getopt.h> for the getopt prototypes.
12047 # Prerequisites of lib/getopt*.
12053 for ac_header
in getopt.h
12055 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12056 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
12057 cat >>confdefs.h
<<_ACEOF
12058 #define HAVE_GETOPT_H 1
12067 if test -z "$GETOPT_H"; then
12068 for ac_func
in getopt_long_only
12070 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12071 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
12072 cat >>confdefs.h
<<_ACEOF
12073 #define HAVE_GETOPT_LONG_ONLY 1
12083 if test -z "$GETOPT_H"; then
12084 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12086 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
12092 if test -z "$GETOPT_H"; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12094 $as_echo_n "checking for working GNU getopt function... " >&6; }
12095 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12098 if test "$cross_compiling" = yes; then :
12099 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12101 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
12102 gl_cv_func_gnu_getopt
=no
12104 gl_cv_func_gnu_getopt
=yes
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <getopt.h>
12116 myargv[0] = "conftest";
12119 return getopt (2, myargv, "+a") != '?';
12125 if ac_fn_c_try_run
"$LINENO"; then :
12126 gl_cv_func_gnu_getopt
=yes
12128 gl_cv_func_gnu_getopt
=no
12130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12136 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12137 if test "$gl_cv_func_gnu_getopt" = "no"; then
12144 if test -n "$GETOPT_H"; then :
12149 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12154 GETOPTOBJS
='getopt.o getopt1.o'
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12161 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12162 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 # Use it with a single arg.
12166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 $ac_includes_default
12177 if ac_fn_c_try_compile
"$LINENO"; then :
12178 ac_cv_func_getpgrp_void
=no
12180 ac_cv_func_getpgrp_void
=yes
12182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12186 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12187 if test $ac_cv_func_getpgrp_void = yes; then
12189 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12194 for ac_func
in strftime
12196 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12197 if test "x$ac_cv_func_strftime" = x
""yes; then :
12198 cat >>confdefs.h
<<_ACEOF
12199 #define HAVE_STRFTIME 1
12203 # strftime is in -lintl on SCO UNIX.
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12205 $as_echo_n "checking for strftime in -lintl... " >&6; }
12206 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_check_lib_save_LIBS
=$LIBS
12210 LIBS
="-lintl $LIBS"
12211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12224 return strftime ();
12229 if ac_fn_c_try_link
"$LINENO"; then :
12230 ac_cv_lib_intl_strftime
=yes
12232 ac_cv_lib_intl_strftime
=no
12234 rm -f core conftest.err conftest.
$ac_objext \
12235 conftest
$ac_exeext conftest.
$ac_ext
12236 LIBS
=$ac_check_lib_save_LIBS
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12239 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12240 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12241 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12243 LIBS
="-lintl $LIBS"
12251 for ac_func
in grantpt
12253 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
12254 if test "x$ac_cv_func_grantpt" = x
""yes; then :
12255 cat >>confdefs.h
<<_ACEOF
12256 #define HAVE_GRANTPT 1
12263 # PTY-related GNU extensions.
12264 for ac_func
in getpt
12266 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
12267 if test "x$ac_cv_func_getpt" = x
""yes; then :
12268 cat >>confdefs.h
<<_ACEOF
12269 #define HAVE_GETPT 1
12276 # Check this now, so that we will NOT find the above functions in ncurses.
12277 # That is because we have not set up to link ncurses in lib-src.
12278 # It's better to believe a function is not available
12279 # than to expect to find it in ncurses.
12280 # Also we need tputs and friends to be able to build at all.
12281 have_tputs_et_al
=true
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12283 $as_echo_n "checking for library containing tputs... " >&6; }
12284 if test "${ac_cv_search_tputs+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12287 ac_func_search_save_LIBS
=$LIBS
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12306 for ac_lib
in '' ncurses terminfo termcap
; do
12307 if test -z "$ac_lib"; then
12308 ac_res
="none required"
12311 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12313 if ac_fn_c_try_link
"$LINENO"; then :
12314 ac_cv_search_tputs
=$ac_res
12316 rm -f core conftest.err conftest.
$ac_objext \
12318 if test "${ac_cv_search_tputs+set}" = set; then :
12322 if test "${ac_cv_search_tputs+set}" = set; then :
12325 ac_cv_search_tputs
=no
12327 rm conftest.
$ac_ext
12328 LIBS
=$ac_func_search_save_LIBS
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12331 $as_echo "$ac_cv_search_tputs" >&6; }
12332 ac_res
=$ac_cv_search_tputs
12333 if test "$ac_res" != no
; then :
12334 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12337 have_tputs_et_al
=false
12340 if test "$have_tputs_et_al" != true
; then
12341 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12342 Maybe some development libraries/packages are missing? Try installing
12343 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12345 # Must define this when any termcap library is found.
12347 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12349 ## FIXME This was the cpp logic, but I am not sure it is right.
12350 ## The above test has not necessarily found libncurses.
12351 HAVE_LIBNCURSES
=yes
12353 ## Use terminfo instead of termcap?
12354 ## Note only system files NOT using terminfo are:
12355 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12356 ## darwin|gnu without ncurses.
12360 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12361 ## hpux10-20: Use the system provided termcap(3) library.
12362 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12363 ## is necessary. Otherwise Emacs dumps core when run -nw.
12364 aix4-2|cygwin|hpux
*|irix6-5|openbsd|sol2
*|unixware
) TERMINFO
=yes ;;
12366 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12367 ## The ncurses library has been moved out of the System framework in
12368 ## Mac OS X 10.2. So if configure detects it, set the command-line
12369 ## option to use it.
12371 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12372 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12374 LIBS_TERMCAP
="-lncurses"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12380 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12381 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 #include <osreldate.h>
12390 #if __FreeBSD_version < 400000
12398 if ac_fn_c_try_link
"$LINENO"; then :
12399 emacs_cv_freebsd_terminfo
=yes
12401 emacs_cv_freebsd_terminfo
=no
12403 rm -f core conftest.err conftest.
$ac_objext \
12404 conftest
$ac_exeext conftest.
$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12409 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12411 if test $emacs_cv_freebsd_terminfo = yes; then
12413 LIBS_TERMCAP
="-lncurses"
12415 LIBS_TERMCAP
="-ltermcap"
12420 if test $ac_cv_search_tputs = -lterminfo; then
12422 LIBS_TERMCAP
="-lterminfo"
12424 LIBS_TERMCAP
="-ltermcap"
12431 ## hpux: Make sure we get select from libc rather than from libcurses
12432 ## because libcurses on HPUX 10.10 has a broken version of select.
12433 ## We used to use -lc -lcurses, but this may be cleaner.
12434 hpux
*) LIBS_TERMCAP
="-ltermcap" ;;
12436 openbsd
) LIBS_TERMCAP
="-lncurses" ;;
12438 ## Must use system termcap, if we use any termcap. It does special things.
12439 sol2
*) test "$TERMINFO" != yes && LIBS_TERMCAP
="-ltermcap" ;;
12442 TERMCAP_OBJ
=tparam.o
12443 if test $TERMINFO = yes; then
12445 $as_echo "#define TERMINFO 1" >>confdefs.h
12448 ## Default used to be -ltermcap. Add a case above if need something else.
12449 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP
="-lcurses"
12451 TERMCAP_OBJ
=terminfo.o
12457 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 #include <netinet/in.h>
12462 #include <arpa/nameser.h>
12463 #include <resolv.h>
12472 if ac_fn_c_try_link
"$LINENO"; then :
12477 rm -f core conftest.err conftest.
$ac_objext \
12478 conftest
$ac_exeext conftest.
$ac_ext
12479 if test "$have_res_init" = no
; then
12481 LIBS
="$LIBS -lresolv"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12483 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 #include <netinet/in.h>
12487 #include <arpa/nameser.h>
12488 #include <resolv.h>
12497 if ac_fn_c_try_link
"$LINENO"; then :
12502 rm -f core conftest.err conftest.
$ac_objext \
12503 conftest
$ac_exeext conftest.
$ac_ext
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12505 $as_echo "$have_res_init" >&6; }
12506 if test "$have_res_init" = yes ; then
12512 if test "$have_res_init" = yes; then
12514 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12518 # Do we need the Hesiod library to provide the support routines?
12520 if test "$with_hesiod" != no
; then
12521 # Don't set $LIBS here -- see comments above. FIXME which comments?
12522 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12523 if test "x$ac_cv_func_res_send" = x
""yes; then :
12526 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12527 if test "x$ac_cv_func___res_send" = x
""yes; then :
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12531 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12532 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12535 ac_check_lib_save_LIBS
=$LIBS
12536 LIBS
="-lresolv $LIBS"
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12550 return res_send ();
12555 if ac_fn_c_try_link
"$LINENO"; then :
12556 ac_cv_lib_resolv_res_send
=yes
12558 ac_cv_lib_resolv_res_send
=no
12560 rm -f core conftest.err conftest.
$ac_objext \
12561 conftest
$ac_exeext conftest.
$ac_ext
12562 LIBS
=$ac_check_lib_save_LIBS
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12565 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12566 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12570 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12571 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12574 ac_check_lib_save_LIBS
=$LIBS
12575 LIBS
="-lresolv $LIBS"
12576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 /* Override any GCC internal prototype to avoid an error.
12580 Use char because int might match the return type of a GCC
12581 builtin and then its argument prototype would still apply. */
12585 char __res_send ();
12589 return __res_send ();
12594 if ac_fn_c_try_link
"$LINENO"; then :
12595 ac_cv_lib_resolv___res_send
=yes
12597 ac_cv_lib_resolv___res_send
=no
12599 rm -f core conftest.err conftest.
$ac_objext \
12600 conftest
$ac_exeext conftest.
$ac_ext
12601 LIBS
=$ac_check_lib_save_LIBS
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12604 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12605 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12615 if test "$resolv" = yes ; then
12620 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12621 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12625 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12626 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
12629 ac_check_lib_save_LIBS
=$LIBS
12630 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12640 char hes_getmailhost ();
12644 return hes_getmailhost ();
12649 if ac_fn_c_try_link
"$LINENO"; then :
12650 ac_cv_lib_hesiod_hes_getmailhost
=yes
12652 ac_cv_lib_hesiod_hes_getmailhost
=no
12654 rm -f core conftest.err conftest.
$ac_objext \
12655 conftest
$ac_exeext conftest.
$ac_ext
12656 LIBS
=$ac_check_lib_save_LIBS
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12659 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12660 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12669 if test x
"$hesiod" = xyes
; then
12671 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12678 # Do we need libresolv (due to res_init or Hesiod)?
12679 if test "$resolv" = yes ; then
12681 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12689 # These tell us which Kerberos-related libraries to use.
12696 if test "${with_kerberos}" != no
; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12698 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12699 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12702 ac_check_lib_save_LIBS
=$LIBS
12703 LIBS
="-lcom_err $LIBS"
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12722 if ac_fn_c_try_link
"$LINENO"; then :
12723 ac_cv_lib_com_err_com_err
=yes
12725 ac_cv_lib_com_err_com_err
=no
12727 rm -f core conftest.err conftest.
$ac_objext \
12728 conftest
$ac_exeext conftest.
$ac_ext
12729 LIBS
=$ac_check_lib_save_LIBS
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12732 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12733 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12739 if test $have_com_err = yes; then
12740 COM_ERRLIB
=-lcom_err
12741 LIBS
="$COM_ERRLIB $LIBS"
12743 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12747 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12748 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 ac_check_lib_save_LIBS
=$LIBS
12752 LIBS
="-lcrypto $LIBS"
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char mit_des_cbc_encrypt ();
12766 return mit_des_cbc_encrypt ();
12771 if ac_fn_c_try_link
"$LINENO"; then :
12772 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12774 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12776 rm -f core conftest.err conftest.
$ac_objext \
12777 conftest
$ac_exeext conftest.
$ac_ext
12778 LIBS
=$ac_check_lib_save_LIBS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12781 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12782 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12788 if test $have_crypto = yes; then
12790 LIBS
="$CRYPTOLIB $LIBS"
12792 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12796 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12797 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_check_lib_save_LIBS
=$LIBS
12801 LIBS
="-lk5crypto $LIBS"
12802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12811 char mit_des_cbc_encrypt ();
12815 return mit_des_cbc_encrypt ();
12820 if ac_fn_c_try_link
"$LINENO"; then :
12821 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12823 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12825 rm -f core conftest.err conftest.
$ac_objext \
12826 conftest
$ac_exeext conftest.
$ac_ext
12827 LIBS
=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12830 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12831 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12837 if test $have_k5crypto = yes; then
12838 CRYPTOLIB
=-lk5crypto
12839 LIBS
="$CRYPTOLIB $LIBS"
12841 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12845 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12846 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12849 ac_check_lib_save_LIBS
=$LIBS
12850 LIBS
="-lkrb5 $LIBS"
12851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12860 char krb5_init_context ();
12864 return krb5_init_context ();
12869 if ac_fn_c_try_link
"$LINENO"; then :
12870 ac_cv_lib_krb5_krb5_init_context
=yes
12872 ac_cv_lib_krb5_krb5_init_context
=no
12874 rm -f core conftest.err conftest.
$ac_objext \
12875 conftest
$ac_exeext conftest.
$ac_ext
12876 LIBS
=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12879 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12880 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12886 if test $have_krb5=yes; then
12888 LIBS
="$KRB5LIB $LIBS"
12890 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12893 if test "${with_kerberos5}" = no
; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12895 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12896 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12897 $as_echo_n "(cached) " >&6
12899 ac_check_lib_save_LIBS
=$LIBS
12900 LIBS
="-ldes425 $LIBS"
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char des_cbc_encrypt ();
12914 return des_cbc_encrypt ();
12919 if ac_fn_c_try_link
"$LINENO"; then :
12920 ac_cv_lib_des425_des_cbc_encrypt
=yes
12922 ac_cv_lib_des425_des_cbc_encrypt
=no
12924 rm -f core conftest.err conftest.
$ac_objext \
12925 conftest
$ac_exeext conftest.
$ac_ext
12926 LIBS
=$ac_check_lib_save_LIBS
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12929 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12930 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12936 if test $have_des425 = yes; then
12938 LIBS
="$DESLIB $LIBS"
12940 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12944 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12945 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 ac_check_lib_save_LIBS
=$LIBS
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12959 char des_cbc_encrypt ();
12963 return des_cbc_encrypt ();
12968 if ac_fn_c_try_link
"$LINENO"; then :
12969 ac_cv_lib_des_des_cbc_encrypt
=yes
12971 ac_cv_lib_des_des_cbc_encrypt
=no
12973 rm -f core conftest.err conftest.
$ac_objext \
12974 conftest
$ac_exeext conftest.
$ac_ext
12975 LIBS
=$ac_check_lib_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12978 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12979 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12985 if test $have_des = yes; then
12987 LIBS
="$DESLIB $LIBS"
12989 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12994 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12995 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
12998 ac_check_lib_save_LIBS
=$LIBS
12999 LIBS
="-lkrb4 $LIBS"
13000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13009 char krb_get_cred ();
13013 return krb_get_cred ();
13018 if ac_fn_c_try_link
"$LINENO"; then :
13019 ac_cv_lib_krb4_krb_get_cred
=yes
13021 ac_cv_lib_krb4_krb_get_cred
=no
13023 rm -f core conftest.err conftest.
$ac_objext \
13024 conftest
$ac_exeext conftest.
$ac_ext
13025 LIBS
=$ac_check_lib_save_LIBS
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13028 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13029 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
13035 if test $have_krb4 = yes; then
13037 LIBS
="$KRB4LIB $LIBS"
13039 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13043 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13044 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13058 char krb_get_cred ();
13062 return krb_get_cred ();
13067 if ac_fn_c_try_link
"$LINENO"; then :
13068 ac_cv_lib_krb_krb_get_cred
=yes
13070 ac_cv_lib_krb_krb_get_cred
=no
13072 rm -f core conftest.err conftest.
$ac_objext \
13073 conftest
$ac_exeext conftest.
$ac_ext
13074 LIBS
=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13077 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13078 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
13084 if test $have_krb = yes; then
13086 LIBS
="$KRB4LIB $LIBS"
13088 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13094 if test "${with_kerberos5}" != no
; then
13095 for ac_header
in krb5.h
13097 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13098 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
13099 cat >>confdefs.h
<<_ACEOF
13100 #define HAVE_KRB5_H 1
13102 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13104 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
13106 cat >>confdefs.h
<<_ACEOF
13107 #define HAVE_KRB5_ERROR_TEXT 1
13112 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13114 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
13116 cat >>confdefs.h
<<_ACEOF
13117 #define HAVE_KRB5_ERROR_E_TEXT 1
13128 for ac_header
in des.h
13130 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13131 if test "x$ac_cv_header_des_h" = x
""yes; then :
13132 cat >>confdefs.h
<<_ACEOF
13133 #define HAVE_DES_H 1
13137 for ac_header
in kerberosIV
/des.h
13139 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13140 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
13141 cat >>confdefs.h
<<_ACEOF
13142 #define HAVE_KERBEROSIV_DES_H 1
13146 for ac_header
in kerberos
/des.h
13148 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
13150 cat >>confdefs.h
<<_ACEOF
13151 #define HAVE_KERBEROS_DES_H 1
13166 for ac_header
in krb.h
13168 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_krb_h" = x
""yes; then :
13170 cat >>confdefs.h
<<_ACEOF
13171 #define HAVE_KRB_H 1
13175 for ac_header
in kerberosIV
/krb.h
13177 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13178 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
13179 cat >>confdefs.h
<<_ACEOF
13180 #define HAVE_KERBEROSIV_KRB_H 1
13184 for ac_header
in kerberos
/krb.h
13186 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
13188 cat >>confdefs.h
<<_ACEOF
13189 #define HAVE_KERBEROS_KRB_H 1
13205 for ac_header
in com_err.h
13207 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13208 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
13209 cat >>confdefs.h
<<_ACEOF
13210 #define HAVE_COM_ERR_H 1
13225 # Solaris requires -lintl if you want strerror (which calls dgettext)
13226 # to return localized messages.
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13228 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13229 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13230 $as_echo_n "(cached) " >&6
13232 ac_check_lib_save_LIBS
=$LIBS
13233 LIBS
="-lintl $LIBS"
13234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13237 /* Override any GCC internal prototype to avoid an error.
13238 Use char because int might match the return type of a GCC
13239 builtin and then its argument prototype would still apply. */
13247 return dgettext ();
13252 if ac_fn_c_try_link
"$LINENO"; then :
13253 ac_cv_lib_intl_dgettext
=yes
13255 ac_cv_lib_intl_dgettext
=no
13257 rm -f core conftest.err conftest.
$ac_objext \
13258 conftest
$ac_exeext conftest.
$ac_ext
13259 LIBS
=$ac_check_lib_save_LIBS
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13262 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13263 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
13264 cat >>confdefs.h
<<_ACEOF
13265 #define HAVE_LIBINTL 1
13268 LIBS
="-lintl $LIBS"
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13274 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13275 if test "${emacs_cv_localtime_cache+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13278 if test x
$ac_cv_func_tzset = xyes
; then
13279 if test "$cross_compiling" = yes; then :
13280 # If we have tzset, assume the worst when cross-compiling.
13281 emacs_cv_localtime_cache
=yes
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13286 extern char **environ;
13290 for (to = from = environ; (*to = *from); from++)
13291 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13294 char TZ_GMT0[] = "TZ=GMT0";
13295 char TZ_PST8[] = "TZ=PST8";
13298 time_t now = time ((time_t *) 0);
13299 int hour_GMT0, hour_unset;
13300 if (putenv (TZ_GMT0) != 0)
13302 hour_GMT0 = localtime (&now)->tm_hour;
13304 hour_unset = localtime (&now)->tm_hour;
13305 if (putenv (TZ_PST8) != 0)
13307 if (localtime (&now)->tm_hour == hour_GMT0)
13310 if (localtime (&now)->tm_hour != hour_unset)
13315 if ac_fn_c_try_run
"$LINENO"; then :
13316 emacs_cv_localtime_cache
=no
13318 emacs_cv_localtime_cache
=yes
13320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13325 # If we lack tzset, report that localtime does not cache TZ,
13326 # since we can't invalidate the cache if we don't have tzset.
13327 emacs_cv_localtime_cache
=no
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13331 $as_echo "$emacs_cv_localtime_cache" >&6; }
13332 if test $emacs_cv_localtime_cache = yes; then
13334 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13338 if test "x$HAVE_TIMEVAL" = xyes
; then
13339 for ac_func
in gettimeofday
13341 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13342 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
13343 cat >>confdefs.h
<<_ACEOF
13344 #define HAVE_GETTIMEOFDAY 1
13350 if test $ac_cv_func_gettimeofday = yes; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13352 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13353 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13359 #ifdef TIME_WITH_SYS_TIME
13360 #include <sys/time.h>
13363 #ifdef HAVE_SYS_TIME_H
13364 #include <sys/time.h>
13372 struct timeval time;
13373 gettimeofday (&time, 0);
13378 if ac_fn_c_try_compile
"$LINENO"; then :
13379 emacs_cv_gettimeofday_two_arguments
=yes
13381 emacs_cv_gettimeofday_two_arguments
=no
13383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13386 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13387 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13389 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13396 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13397 if test "x$ac_cv_func_socket" = x
""yes; then :
13403 if test $ok_so_far = yes; then
13404 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13405 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13413 if test $ok_so_far = yes; then
13414 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13415 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13423 if test $ok_so_far = yes; then
13425 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13429 for ac_header
in sys
/ioctl.h
13431 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13432 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13433 cat >>confdefs.h
<<_ACEOF
13434 #define HAVE_SYS_IOCTL_H 1
13442 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13444 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13449 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13450 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13452 $as_echo "yes" >&6; }
13454 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13461 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13462 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13466 cat >>confdefs.h
<<_ACEOF
13472 for ac_header
in vfork.h
13474 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13475 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13476 cat >>confdefs.h
<<_ACEOF
13477 #define HAVE_VFORK_H 1
13484 for ac_func
in fork vfork
13486 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13487 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13488 eval as_val
=\$
$as_ac_var
13489 if test "x$as_val" = x
""yes; then :
13490 cat >>confdefs.h
<<_ACEOF
13491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13497 if test "x$ac_cv_func_fork" = xyes
; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13499 $as_echo_n "checking for working fork... " >&6; }
13500 if test "${ac_cv_func_fork_works+set}" = set; then :
13501 $as_echo_n "(cached) " >&6
13503 if test "$cross_compiling" = yes; then :
13504 ac_cv_func_fork_works
=cross
13506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 $ac_includes_default
13513 /* By Ruediger Kuhlmann. */
13514 return fork () < 0;
13520 if ac_fn_c_try_run
"$LINENO"; then :
13521 ac_cv_func_fork_works
=yes
13523 ac_cv_func_fork_works
=no
13525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13531 $as_echo "$ac_cv_func_fork_works" >&6; }
13534 ac_cv_func_fork_works
=$ac_cv_func_fork
13536 if test "x$ac_cv_func_fork_works" = xcross
; then
13538 *-*-amigaos* |
*-*-msdosdjgpp*)
13539 # Override, as these systems have only a dummy fork() stub
13540 ac_cv_func_fork_works
=no
13543 ac_cv_func_fork_works
=yes
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13547 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13549 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13550 if test "x$ac_cv_func_vfork" = xyes
; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13552 $as_echo_n "checking for working vfork... " >&6; }
13553 if test "${ac_cv_func_vfork_works+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13556 if test "$cross_compiling" = yes; then :
13557 ac_cv_func_vfork_works
=cross
13559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 /* Thanks to Paul Eggert for this test. */
13562 $ac_includes_default
13563 #include <sys/wait.h>
13564 #ifdef HAVE_VFORK_H
13565 # include <vfork.h>
13567 /* On some sparc systems, changes by the child to local and incoming
13568 argument registers are propagated back to the parent. The compiler
13569 is told about this with #include <vfork.h>, but some compilers
13570 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13571 static variable whose address is put into a register that is
13572 clobbered by the vfork. */
13575 sparc_address_test (int arg)
13577 sparc_address_test (arg) int arg;
13580 static pid_t child;
13598 pid_t parent = getpid ();
13601 sparc_address_test (0);
13606 /* Here is another test for sparc vfork register problems. This
13607 test uses lots of local variables, at least as many local
13608 variables as main has allocated so far including compiler
13609 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13610 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13611 reuse the register of parent for one of the local variables,
13612 since it will think that parent can't possibly be used any more
13613 in this routine. Assigning to the local variable will thus
13614 munge parent in the parent process. */
13616 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13617 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13618 /* Convince the compiler that p..p7 are live; otherwise, it might
13619 use the same hardware register for all 8 local variables. */
13620 if (p != p1 || p != p2 || p != p3 || p != p4
13621 || p != p5 || p != p6 || p != p7)
13624 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13625 from child file descriptors. If the child closes a descriptor
13626 before it execs or exits, this munges the parent's descriptor
13627 as well. Test for this by closing stdout in the child. */
13628 _exit(close(fileno(stdout)) != 0);
13633 while (wait(&status) != child)
13636 /* Was there some problem with vforking? */
13639 /* Did the child fail? (This shouldn't happen.) */
13642 /* Did the vfork/compiler bug occur? */
13643 || parent != getpid()
13645 /* Did the file descriptor bug occur? */
13646 || fstat(fileno(stdout), &st) != 0
13651 if ac_fn_c_try_run
"$LINENO"; then :
13652 ac_cv_func_vfork_works
=yes
13654 ac_cv_func_vfork_works
=no
13656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13662 $as_echo "$ac_cv_func_vfork_works" >&6; }
13665 if test "x$ac_cv_func_fork_works" = xcross
; then
13666 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13668 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13671 if test "x$ac_cv_func_vfork_works" = xyes
; then
13673 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13677 $as_echo "#define vfork fork" >>confdefs.h
13680 if test "x$ac_cv_func_fork_works" = xyes
; then
13682 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13689 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <langinfo.h>
13698 char* cs = nl_langinfo(CODESET);
13703 if ac_fn_c_try_link
"$LINENO"; then :
13704 emacs_cv_langinfo_codeset
=yes
13706 emacs_cv_langinfo_codeset
=no
13708 rm -f core conftest.err conftest.
$ac_objext \
13709 conftest
$ac_exeext conftest.
$ac_ext
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13713 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13714 if test $emacs_cv_langinfo_codeset = yes; then
13716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13720 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_size_t" = x
""yes; then :
13723 cat >>confdefs.h
<<_ACEOF
13724 #define HAVE_SIZE_T 1
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13732 $as_echo_n "checking for mbstate_t... " >&6; }
13733 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 # include <wchar.h>
13743 mbstate_t x; return sizeof x;
13748 if ac_fn_c_try_compile
"$LINENO"; then :
13749 ac_cv_type_mbstate_t
=yes
13751 ac_cv_type_mbstate_t
=no
13753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13756 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13757 if test $ac_cv_type_mbstate_t = yes; then
13759 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13763 $as_echo "#define mbstate_t int" >>confdefs.h
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13768 $as_echo_n "checking for C restrict keyword... " >&6; }
13769 if test "${emacs_cv_c_restrict+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 void fred (int *restrict x);
13783 if ac_fn_c_try_compile
"$LINENO"; then :
13784 emacs_cv_c_restrict
=yes
13786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 void fred (int *__restrict x);
13797 if ac_fn_c_try_compile
"$LINENO"; then :
13798 emacs_cv_c_restrict
=__restrict
13800 emacs_cv_c_restrict
=no
13802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13807 $as_echo "$emacs_cv_c_restrict" >&6; }
13808 case "$emacs_cv_c_restrict" in
13809 yes) emacs_restrict
=restrict
;;
13810 no
) emacs_restrict
="";;
13811 *) emacs_restrict
="$emacs_cv_c_restrict";;
13813 if test "$emacs_restrict" != __restrict
; then
13815 cat >>confdefs.h
<<_ACEOF
13816 #define __restrict $emacs_restrict
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13822 $as_echo_n "checking for C restricted array declarations... " >&6; }
13823 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13828 void fred (int x[__restrict]);
13837 if ac_fn_c_try_compile
"$LINENO"; then :
13838 emacs_cv_c_restrict_arr
=yes
13840 emacs_cv_c_restrict_arr
=no
13842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13845 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13846 if test "$emacs_cv_c_restrict_arr" = yes; then
13848 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13854 # Set up the CFLAGS for real compilation, so we can substitute it.
13855 CFLAGS
="$REAL_CFLAGS"
13856 CPPFLAGS
="$REAL_CPPFLAGS"
13858 ## Hack to detect a buggy GCC version.
13859 if test "x$GCC" = xyes \
13860 && test x
"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13861 && test x
"`echo $CFLAGS | grep '\-O[23]'`" != x \
13862 && test x
"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x
; then
13863 as_fn_error
"GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13866 #### Find out which version of Emacs this is.
13867 version
=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13868 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13869 if test x
"${version}" = x
; then
13870 as_fn_error
"can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13872 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13874 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13877 ### Specify what sort of things we'll be editing into Makefile and config.h.
13878 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13902 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13903 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13904 ## end of LIBX_BASE, but nothing ever set it.
13909 ## Used in lwlib/Makefile.in.
13922 cat >>confdefs.h <<_ACEOF
13923 #define EMACS_CONFIGURATION "${canonical}"
13927 cat >>confdefs.h <<_ACEOF
13928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13932 cat >>confdefs.h <<_ACEOF
13933 #define config_machfile "${machfile}"
13937 cat >>confdefs.h <<_ACEOF
13938 #define config_opsysfile "${opsysfile}"
13945 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13947 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13950 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13952 if test "$HAVE_XFT" = "yes"; then
13953 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13954 elif test "$HAVE_FREETYPE" = "yes"; then
13955 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
13965 if test "${USE_X_TOOLKIT}" != "none" ; then
13966 WIDGET_OBJ
=widget.o
13968 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13970 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13972 $as_echo "#define USE_LUCID 1" >>confdefs.h
13974 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13976 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13981 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13982 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
13986 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13987 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13988 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
13992 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13993 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
13996 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
14002 case "$USE_X_TOOLKIT" in
14003 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
14004 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
14005 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
14009 if test "$USE_X_TOOLKIT" = "none"; then
14010 LIBXT_OTHER
="\$(LIBXSM)"
14011 OLDXMENU_TARGET
="really-oldXMenu"
14013 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14014 OLDXMENU_TARGET
="really-lwlib"
14018 ## The X Menu stuff is present in the X10 distribution, but missing
14019 ## from X11. If we have X10, just use the installed library;
14020 ## otherwise, use our own copy.
14021 if test "${HAVE_X11}" = "yes" ; then
14023 $as_echo "#define HAVE_X11 1" >>confdefs.h
14026 if test "$USE_X_TOOLKIT" = "none"; then
14027 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
14029 OLDXMENU
="\${lwlibdir}liblw.a"
14031 LIBXMENU
="\$(OLDXMENU)"
14032 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
14033 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
14035 ## For a syntactically valid Makefile; not actually used for anything.
14036 ## See comments in src/Makefile.in.
14038 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14039 if test "${HAVE_X_WINDOWS}" = "yes"; then
14048 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
14061 if test "${HAVE_MENUS}" = "yes" ; then
14063 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14067 if test "${GNU_MALLOC}" = "yes" ; then
14069 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14074 if test "${REL_ALLOC}" = "yes" ; then
14076 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14079 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
14083 if test "$opsys" = "cygwin"; then
14084 CYGWIN_OBJ
="sheap.o"
14085 ## Cygwin differs because of its unexec().
14087 POST_ALLOC_OBJ
=lastfile.o
14090 PRE_ALLOC_OBJ
=lastfile.o
14099 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
14102 ## The -headerpad option tells ld (see man page) to leave room at the
14103 ## end of the header for adding load commands. Needed for dumping.
14104 ## 0x690 is the total size of 30 segment load commands (at 56
14105 ## each); under Cocoa 31 commands are required.
14106 if test "$HAVE_NS" = "yes"; then
14107 libs_nsgui
="-framework AppKit"
14108 headerpad_extra
=6C8
14111 headerpad_extra
=690
14113 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14115 ## This is here because src/Makefile.in did some extra fiddling around
14116 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14117 ## #ifndef LD_SWITCH_SYSTEM
14118 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14119 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14120 ## not using gcc, darwin system not on an alpha (ie darwin, since
14121 ## darwin + alpha does not occur).
14122 ## Because this was done in src/Makefile.in, the resulting part of
14123 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14124 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14125 ## rather than LD_SWITCH_SYSTEM.
14126 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14127 LD_SWITCH_SYSTEM_TEMACS
="-X $LD_SWITCH_SYSTEM_TEMACS"
14130 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14131 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14132 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14133 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14134 ## had different values in configure (in ac_link) and src/Makefile.in.
14135 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14136 gnu-linux
) LD_SWITCH_SYSTEM_TEMACS
="\$(LD_SWITCH_X_SITE_AUX)" ;;
14138 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
14141 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14142 LD_SWITCH_SYSTEM_TEMACS
="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14151 ## gnu: GNU needs its own crt0.
14152 aix4-2|cygwin|darwin|gnu|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
14154 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14155 ## library search parth, i.e. it won't search /usr/lib for libc and
14156 ## friends. Using -nostartfiles instead avoids this problem, and
14157 ## will also work on earlier NetBSD releases.
14158 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
14160 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14161 ## MkLinux/LinuxPPC needs this.
14162 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14165 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
14171 if test "x$ORDINARY_LINK" = "xyes"; then
14175 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14178 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14179 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14180 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14182 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14183 ## places that are difficult to figure out at make time. Fortunately,
14184 ## these same versions allow you to pass arbitrary flags on to the
14185 ## linker, so there is no reason not to use it as a linker.
14187 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14188 ## searching for libraries in its internal directories, so we have to
14189 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14190 LINKER
="\$(CC) -nostdlib"
14193 test "x$LINKER" = "x" && LINKER
=ld
14194 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14195 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
14200 ## FIXME? The logic here is not precisely the same as that above.
14201 ## There is no check here for a pre-defined LINKER.
14202 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14204 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14207 freebsd|netbsd|openbsd
) LIB_GCC
= ;;
14210 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14211 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14212 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14213 if test "$machine" = "arm"; then
14216 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14217 ## immediately undefine it again and redefine it to empty.
14218 ## Was the C_SWITCH_X_SITE part really necessary?
14219 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14224 ## Ask GCC where to find libgcc.a.
14225 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14232 ## If we're using X11/GNUstep, define some consequences.
14233 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
14235 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14238 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14240 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
14241 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
14243 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
14244 test "$HAVE_X_WINDOWS" = "yes" && \
14245 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14255 #### Report on what we decided to do.
14256 #### Report GTK as a toolkit, even if it doesn't use Xt.
14257 #### It makes printing result more understandable as using GTK sets
14258 #### toolkit_scroll_bars to yes by default.
14259 if test "${HAVE_GTK}" = "yes"; then
14264 Configured for \`${canonical}'.
14266 Where should the build process find the source code? ${srcdir}
14267 What operating system and machine description files should Emacs use?
14268 \`${opsysfile}' and \`${machfile}'
14269 What compiler should emacs be built with? ${CC} ${CFLAGS}
14270 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14271 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14272 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14273 What window system should Emacs use? ${window_system}
14274 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14276 if test -n "${x_includes}"; then
14277 echo " Where do we find X Windows header files? ${x_includes}"
14279 echo " Where do we find X Windows header files? Standard dirs"
14281 if test -n "${x_libraries}"; then
14282 echo " Where do we find X Windows libraries? ${x_libraries}"
14284 echo " Where do we find X Windows libraries? Standard dirs"
14287 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14288 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14289 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14290 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14291 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14292 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14293 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14294 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14295 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14296 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14297 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14299 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14300 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14301 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14302 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14304 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14307 if test $USE_XASSERTS = yes; then
14308 echo " Compiling with asserts turned on."
14309 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
14314 if test "$HAVE_NS" = "yes"; then
14316 echo "You must run \"make install\" in order to test the built application.
14317 The installed application will go to nextstep/Emacs.app and can be
14318 run or moved from there."
14319 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14320 echo "The application will be fully self-contained."
14322 echo "The lisp resources for the application will be installed under ${prefix}.
14323 You may need to run \"make install\" with sudo. The application will fail
14324 to run if these resources are not installed."
14329 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14330 echo "D-Bus integration has been tested for GNU/Linux only."
14335 # Remove any trailing slashes in these variables.
14336 test "${prefix}" != NONE
&&
14337 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14338 test "${exec_prefix}" != NONE
&&
14339 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14341 ac_config_files
="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
14343 ac_config_commands
="$ac_config_commands default"
14345 cat >confcache
<<\_ACEOF
14346 # This file is a shell script that caches the results of configure
14347 # tests run on this system so they can be shared between configure
14348 # scripts and configure runs, see configure's option --config-cache.
14349 # It is not useful on other systems. If it contains results you don't
14350 # want to keep, you may remove or edit it.
14352 # config.status only pays attention to the cache file if you give it
14353 # the --recheck option to rerun configure.
14355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14357 # following values.
14361 # The following way of writing the cache mishandles newlines in values,
14362 # but we know of no workaround that is simple, portable, and efficient.
14363 # So, we kill variables containing newlines.
14364 # Ultrix sh set writes to stderr and can't be redirected directly,
14365 # and sets the high bit in the cache file unless we assign to the vars.
14367 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14368 eval ac_val
=\$
$ac_var
14372 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14376 _ | IFS | as_nl
) ;; #(
14377 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14378 *) { eval $ac_var=; unset $ac_var;} ;;
14384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14385 *${as_nl}ac_space
=\
*)
14386 # `set' does not quote correctly, so add quotes: double-quote
14387 # substitution turns \\\\ into \\, and sed turns \\ into \.
14390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14393 # `set' quotes correctly as required by POSIX, so do not add quotes.
14394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14407 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14408 if test -w "$cache_file"; then
14409 test "x$cache_file" != "x/dev/null" &&
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14411 $as_echo "$as_me: updating cache $cache_file" >&6;}
14412 cat confcache
>$cache_file
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14420 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14421 # Let make expand exec_prefix.
14422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14424 DEFS
=-DHAVE_CONFIG_H
14428 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14429 # 1. Remove the extension, and $U if already installed.
14430 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14431 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14433 # will be set to the directory where LIBOBJS objects are built.
14434 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14435 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14437 LIBOBJS
=$ac_libobjs
14439 LTLIBOBJS
=$ac_ltlibobjs
14443 : ${CONFIG_STATUS=./config.status}
14445 ac_clean_files_save
=$ac_clean_files
14446 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14448 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14450 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14452 # Generated by $as_me.
14453 # Run this file to recreate the current configuration.
14454 # Compiler output produced by configure, useful for debugging
14455 # configure, is in config.log if it exists.
14458 ac_cs_recheck=false
14461 SHELL=\${CONFIG_SHELL-$SHELL}
14464 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14465 ## -------------------- ##
14466 ## M4sh Initialization. ##
14467 ## -------------------- ##
14469 # Be more Bourne compatible
14470 DUALCASE
=1; export DUALCASE
# for MKS sh
14471 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14474 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14475 # is contrary to our usage. Disable this feature.
14476 alias -g '${1+"$@"}'='"$@"'
14477 setopt NO_GLOB_SUBST
14479 case `(set -o) 2>/dev/null` in #(
14491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14492 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14495 # Prefer a ksh shell builtin over an external printf program on Solaris,
14496 # but without wasting forks for bash or zsh.
14497 if test -z "$BASH_VERSION$ZSH_VERSION" \
14498 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14499 as_echo='print
-r --'
14500 as_echo_n='print
-rn --'
14501 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14502 as_echo='printf %s
\n'
14503 as_echo_n='printf %s
'
14505 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14506 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14507 as_echo_n='/usr
/ucb
/echo -n'
14509 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14510 as_echo_n_body='eval
14514 expr "X$arg" : "X\\(.*\\)$as_nl";
14515 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14517 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14519 export as_echo_n_body
14520 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14522 export as_echo_body
14523 as_echo='sh
-c $as_echo_body as_echo
'
14526 # The user is always right.
14527 if test "${PATH_SEPARATOR+set}" != set; then
14529 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14530 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14537 # We need space, tab and new line, in precisely that order. Quoting is
14538 # there to prevent editors from complaining about space-tab.
14539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14540 # splitting by setting IFS to empty value.)
14543 # Find who we are. Look in the path if we contain no directory separator.
14545 *[\\/]* ) as_myself=$0 ;;
14546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14550 test -z "$as_dir" && as_dir=.
14551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14557 # We did not find ourselves, most probably we were run as `sh COMMAND'
14558 # in which case we are not to be found in the path.
14559 if test "x$as_myself" = x
; then
14562 if test ! -f "$as_myself"; then
14563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14567 # Unset variables that we do not need and which cause bugs (e.g. in
14568 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14569 # suppresses any "Segmentation fault" message there. '((' could
14570 # trigger a bug in pdksh 5.2.14.
14571 for as_var
in BASH_ENV ENV MAIL MAILPATH
14572 do eval test x\
${$as_var+set} = xset \
14573 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14586 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14589 # as_fn_error ERROR [LINENO LOG_FD]
14590 # ---------------------------------
14591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14593 # script with status $?, using 1 if that was 0.
14596 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14598 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14601 $as_echo "$as_me: error: $1" >&2
14602 as_fn_exit
$as_status
14606 # as_fn_set_status STATUS
14607 # -----------------------
14608 # Set $? to STATUS, without forking.
14609 as_fn_set_status
()
14612 } # as_fn_set_status
14614 # as_fn_exit STATUS
14615 # -----------------
14616 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14620 as_fn_set_status
$1
14626 # Portably unset VAR.
14629 { eval $1=; unset $1;}
14631 as_unset
=as_fn_unset
14632 # as_fn_append VAR VALUE
14633 # ----------------------
14634 # Append the text in VALUE to the end of the definition contained in VAR. Take
14635 # advantage of any shell optimizations that allow amortized linear growth over
14636 # repeated appends, instead of the typical quadratic growth present in naive
14638 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14639 eval 'as_fn_append ()
14650 # as_fn_arith ARG...
14651 # ------------------
14652 # Perform arithmetic evaluation on the ARGs, and store the result in the
14653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14654 # must be portable across $(()) and expr.
14655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14656 eval 'as_fn_arith ()
14663 as_val
=`expr "$@" || test $? -eq 1`
14668 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14669 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14675 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14676 as_basename
=basename
14681 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14687 as_me
=`$as_basename -- "$0" ||
14688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14689 X"$0" : 'X\(//\)$' \| \
14690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14692 sed '/^.*\/\([^/][^/]*\)\/*$/{
14706 # Avoid depending upon Character Ranges.
14707 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14708 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14709 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14710 as_cr_digits
='0123456789'
14711 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14713 ECHO_C
= ECHO_N
= ECHO_T
=
14714 case `echo -n x` in #(((((
14716 case `echo 'xy\c'` in
14717 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14719 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14726 rm -f conf$$ conf$$.exe conf$$.
file
14727 if test -d conf$$.dir
; then
14728 rm -f conf$$.dir
/conf$$.
file
14731 mkdir conf$$.dir
2>/dev
/null
14733 if (echo >conf$$.
file) 2>/dev
/null
; then
14734 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14736 # ... but there are two gotchas:
14737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14739 # In both cases, we have to default to `cp -p'.
14740 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14742 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14750 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14751 rmdir conf$$.dir
2>/dev
/null
14756 # Create "$as_dir" as a directory, including parents if necessary.
14761 -*) as_dir
=.
/$as_dir;;
14763 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14767 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14768 *) as_qdir
=$as_dir;;
14770 as_dirs
="'$as_qdir' $as_dirs"
14771 as_dir
=`$as_dirname -- "$as_dir" ||
14772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773 X"$as_dir" : 'X\(//\)[^/]' \| \
14774 X"$as_dir" : 'X\(//\)$' \| \
14775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14776 $as_echo X"$as_dir" |
14777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14781 /^X\(\/\/\)[^/].*/{
14794 test -d "$as_dir" && break
14796 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14797 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14801 if mkdir
-p .
2>/dev
/null
; then
14802 as_mkdir_p
='mkdir -p "$as_dir"'
14804 test -d .
/-p && rmdir .
/-p
14808 if test -x / >/dev
/null
2>&1; then
14809 as_test_x
='test -x'
14811 if ls -dL / >/dev
/null
2>&1; then
14818 if test -d "$1"; then
14824 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14825 ???[sx]*):;;*)false;;esac;fi
14829 as_executable_p
=$as_test_x
14831 # Sed expression to map a string onto a valid CPP name.
14832 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14834 # Sed expression to map a string onto a valid variable name.
14835 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14839 ## ----------------------------------- ##
14840 ## Main body of $CONFIG_STATUS script. ##
14841 ## ----------------------------------- ##
14843 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14846 # Save the log message, to keep $0 and so on meaningful, and to
14847 # report actual input values of CONFIG_FILES etc. instead of their
14848 # values after options handling.
14850 This file was extended by emacs $as_me 24.0.50, which was
14851 generated by GNU Autoconf 2.65. Invocation command line was
14853 CONFIG_FILES = $CONFIG_FILES
14854 CONFIG_HEADERS = $CONFIG_HEADERS
14855 CONFIG_LINKS = $CONFIG_LINKS
14856 CONFIG_COMMANDS = $CONFIG_COMMANDS
14859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14864 case $ac_config_files in *"
14865 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14868 case $ac_config_headers in *"
14869 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14874 # Files that config.status was made for.
14875 config_files="$ac_config_files"
14876 config_headers="$ac_config_headers"
14877 config_commands="$ac_config_commands"
14881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14883 \`$as_me' instantiates files and other configuration actions
14884 from templates according to the current configuration. Unless the files
14885 and actions are specified as TAGs, all are instantiated by default.
14887 Usage: $0 [OPTION]... [TAG]...
14889 -h, --help print this help, then exit
14890 -V, --version print version number and configuration settings, then exit
14891 --config print configuration, then exit
14892 -q, --quiet, --silent
14893 do not print progress messages
14894 -d, --debug don't remove temporary files
14895 --recheck update $as_me by reconfiguring in the same conditions
14896 --file=FILE[:TEMPLATE]
14897 instantiate the configuration file FILE
14898 --header=FILE[:TEMPLATE]
14899 instantiate the configuration header FILE
14901 Configuration files:
14904 Configuration headers:
14907 Configuration commands:
14910 Report bugs to the package provider."
14913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14916 emacs config.status 24.0.50
14917 configured by $0, generated by GNU Autoconf 2.65,
14918 with options \\"\$ac_cs_config\\"
14920 Copyright (C) 2009 Free Software Foundation, Inc.
14921 This config.status script is free software; the Free Software Foundation
14922 gives unlimited permission to copy, distribute and modify it."
14927 test -n "\$AWK" || AWK=awk
14930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14931 # The default lists apply if the user does not specify any file.
14937 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14938 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14949 # Handling of the options.
14950 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14952 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14953 $as_echo "$ac_cs_version"; exit ;;
14954 --config |
--confi |
--conf |
--con |
--co |
--c )
14955 $as_echo "$ac_cs_config"; exit ;;
14956 --debug |
--debu |
--deb |
--de |
--d |
-d )
14958 --file |
--fil |
--fi |
--f )
14961 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14963 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14964 ac_need_defaults
=false
;;
14965 --header |
--heade |
--head |
--hea )
14968 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14970 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14971 ac_need_defaults
=false
;;
14973 # Conflict between --help and --header
14974 as_fn_error
"ambiguous option: \`$1'
14975 Try \`$0 --help' for more information.";;
14976 --help |
--hel |
-h )
14977 $as_echo "$ac_cs_usage"; exit ;;
14978 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14979 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14982 # This is an error.
14983 -*) as_fn_error
"unrecognized option: \`$1'
14984 Try \`$0 --help' for more information." ;;
14986 *) as_fn_append ac_config_targets
" $1"
14987 ac_need_defaults
=false
;;
14993 ac_configure_extra_args
=
14995 if $ac_cs_silent; then
14997 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002 if \$ac_cs_recheck; then
15003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15006 CONFIG_SHELL='$SHELL'
15007 export CONFIG_SHELL
15012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15017 ## Running $as_me. ##
15023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15033 # Handling of arguments.
15034 for ac_config_target
in $ac_config_targets
15036 case $ac_config_target in
15037 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15038 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15039 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
15040 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
15041 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
15042 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
15043 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
15044 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
15045 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15046 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
15047 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
15048 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
15049 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15051 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15056 # If the user did not use the arguments to specify the items to instantiate,
15057 # then the envvar interface is used. Set only those that are not.
15058 # We use the long form for the default assignment because of an extremely
15059 # bizarre bug on SunOS 4.1.3.
15060 if $ac_need_defaults; then
15061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15063 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15066 # Have a temporary directory for convenience. Make it in the build tree
15067 # simply because there is no reason against having it here, and in addition,
15068 # creating and moving files from /tmp can sometimes cause problems.
15069 # Hook for its removal unless debugging.
15070 # Note that there is a small window in which the directory will not be cleaned:
15071 # after its creation but before its name has been assigned to `$tmp'.
15075 trap 'exit_status=$?
15076 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15078 trap 'as_fn_exit 1' 1 2 13 15
15080 # Create a (secure) tmp directory for tmp files.
15083 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15084 test -n "$tmp" && test -d "$tmp"
15087 tmp
=.
/conf$$
-$RANDOM
15088 (umask 077 && mkdir
"$tmp")
15089 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15091 # Set up the scripts for CONFIG_FILES section.
15092 # No need to generate them if there are no CONFIG_FILES.
15093 # This happens for instance with `./config.status config.h'.
15094 if test -n "$CONFIG_FILES"; then
15096 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
15097 ac_cs_awk_getline
=:
15098 ac_cs_awk_pipe_init
=
15099 ac_cs_awk_read_file
='
15100 while ((getline aline < (F[key])) > 0)
15103 ac_cs_awk_pipe_fini
=
15105 ac_cs_awk_getline
=false
15106 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
15107 ac_cs_awk_read_file
='
15109 print "cat " F[key] " &&"
15110 '$ac_cs_awk_pipe_init
15111 # The final `:' finishes the AND list.
15112 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
15114 ac_cr
=`echo X | tr X '\015'`
15115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15116 # But we know of no other shell where ac_cr would be empty at this
15117 # point, so we can use a bashism as a fallback.
15118 if test "x$ac_cr" = x
; then
15119 eval ac_cr
=\$
\'\\r
\'
15121 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15125 ac_cs_awk_cr
=$ac_cr
15128 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15131 # Create commands to substitute file output variables.
15133 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15134 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15135 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
15138 } >conf$
$files.sh
&&
15139 . .
/conf$
$files.sh ||
15140 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
15141 rm -f conf$
$files.sh
15144 echo "cat >conf$$subs.awk <<_ACEOF" &&
15145 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15147 } >conf$$subs.sh ||
15148 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15149 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15151 for ac_last_try in false false false false false :; do
15152 . ./conf$$subs.sh ||
15153 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15155 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15156 if test $ac_delim_n = $ac_delim_num; then
15158 elif $ac_last_try; then
15159 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15161 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15164 rm -f conf$$subs.sh
15166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15171 s/^/S["/; s
/!.
*/"]=/
15181 s/\(.\{148\}\)..*/\1/
15183 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15188 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15195 s/\(.\{148\}\)..*/\1/
15197 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15201 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15206 ' <conf$$subs.awk | sed '
15211 ' >>$CONFIG_STATUS || ac_write_fail=1
15212 rm -f conf$$subs.awk
15213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15215 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15216 for (key in S) S_is_set[key] = 1
15218 \$ac_cs_awk_pipe_init
15222 nfields = split(line, field, "@
")
15224 len = length(field[1])
15225 for (i = 2; i < nfields; i++) {
15227 keylen = length(key)
15228 if (S_is_set[key]) {
15230 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15231 len += length(value) + length(field[++i])
15236 if (nfields == 3 && !substed) {
15238 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15239 \$ac_cs_awk_read_file
15245 \$ac_cs_awk_pipe_fini
15248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15249 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15250 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15253 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15254 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15257 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15258 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15259 # trailing colons and then remove the whole line if VPATH becomes empty
15260 # (actually we leave an empty line to preserve line numbers).
15261 if test "x
$srcdir" = x.; then
15262 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15263 s/:*\$(srcdir):*/:/
15264 s/:*\${srcdir}:*/:/
15266 s/^\([^=]*=[ ]*\):*/\1/
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 fi # test -n "$CONFIG_FILES"
15275 # Set up the scripts for CONFIG_HEADERS section.
15276 # No need to generate them if there are no CONFIG_HEADERS.
15277 # This happens for instance with `./config.status Makefile'.
15278 if test -n "$CONFIG_HEADERS"; then
15279 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15283 # Transform confdefs.h into an awk script `defines.awk', embedded as
15284 # here-document in config.status, that substitutes the proper values into
15285 # config.h.in to produce config.h.
15287 # Create a delimiter string that does not exist in confdefs.h, to ease
15288 # handling of long lines.
15290 for ac_last_try in false false :; do
15291 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15292 if test -z "$ac_t"; then
15294 elif $ac_last_try; then
15295 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15297 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15301 # For the awk script, D is an array of macro values keyed by name,
15302 # likewise P contains macro parameters if any. Preserve backslash
15303 # newline sequences.
15305 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15307 s/.\{148\}/&'"$ac_delim"'/g
15310 s/^[ ]*#[ ]*define[ ][ ]*/ /
15317 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15319 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15323 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15324 D["\
1"]=" \
3\\\\\\n
"\\/p
15326 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15331 s/.\{148\}/&'"$ac_delim"'/g
15336 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15339 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15341 ' <confdefs.h | sed '
15342 s/'"$ac_delim"'/"\\\
15343 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 for (key in D) D_is_set[key] = 1
15349 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15351 split(line, arg, " ")
15352 if (arg[1] == "#") {
15356 defundef
= substr
(arg
[1], 2)
15359 split(mac1
, mac2
, "(") #)
15361 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15362 if (D_is_set
[macro
]) {
15363 # Preserve the white space surrounding the "#".
15364 print prefix
"define", macro P
[macro
] D
[macro
]
15367 # Replace #undef with comments. This is necessary, for example,
15368 # in the case of _POSIX_SOURCE, which is predefined and required
15369 # on some systems where configure will not decide to define it.
15370 if (defundef
== "undef") {
15371 print
"/*", prefix defundef
, macro
, "*/"
15379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15380 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15381 fi # test -n "$CONFIG_HEADERS"
15384 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15389 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15391 case $ac_mode$ac_tag in
15393 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15394 :[FH
]-) ac_tag
=-:-;;
15395 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15412 -) ac_f
="$tmp/stdin";;
15413 *) # Look for the file first in the build tree, then in the source tree
15414 # (if the path is not absolute). The absolute path cannot be DOS-style,
15415 # because $ac_f cannot contain `:'.
15419 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15421 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15423 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15424 as_fn_append ac_file_inputs
" '$ac_f'"
15427 # Let's still pretend it is `configure' which instantiates (i.e., don't
15428 # use $as_me), people would be surprised to read:
15429 # /* config.h. Generated by config.status. */
15430 configure_input
='Generated from '`
15431 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15433 if test x
"$ac_file" != x-
; then
15434 configure_input
="$ac_file. $configure_input"
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15436 $as_echo "$as_me: creating $ac_file" >&6;}
15438 # Neutralize special characters interpreted by sed in replacement strings.
15439 case $configure_input in #(
15440 *\
&* |
*\|
* |
*\\* )
15441 ac_sed_conf_input
=`$as_echo "$configure_input" |
15442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15443 *) ac_sed_conf_input
=$configure_input;;
15447 *:-:* |
*:-) cat >"$tmp/stdin" \
15448 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15453 ac_dir
=`$as_dirname -- "$ac_file" ||
15454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15455 X"$ac_file" : 'X\(//\)[^/]' \| \
15456 X"$ac_file" : 'X\(//\)$' \| \
15457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15458 $as_echo X"$ac_file" |
15459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15463 /^X\(\/\/\)[^/].*/{
15476 as_dir
="$ac_dir"; as_fn_mkdir_p
15480 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15482 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15483 # A ".." for each directory in $ac_dir_suffix.
15484 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15485 case $ac_top_builddir_sub in
15486 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15487 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15490 ac_abs_top_builddir
=$ac_pwd
15491 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15492 # for backward compatibility:
15493 ac_top_builddir
=$ac_top_build_prefix
15496 .
) # We are building in place.
15498 ac_top_srcdir
=$ac_top_builddir_sub
15499 ac_abs_top_srcdir
=$ac_pwd ;;
15500 [\\/]* | ?
:[\\/]* ) # Absolute name.
15501 ac_srcdir
=$srcdir$ac_dir_suffix;
15502 ac_top_srcdir
=$srcdir
15503 ac_abs_top_srcdir
=$srcdir ;;
15504 *) # Relative name.
15505 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15506 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15507 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15509 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15519 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15520 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15525 # If the template does not know about datarootdir, expand it.
15526 # FIXME: This hack should be removed a few years after 2.60.
15527 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15539 *datarootdir
*) ac_datarootdir_seen
=yes;;
15540 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 ac_datarootdir_hack='
15546 s&@datadir@&$datadir&g
15547 s&@docdir@&$docdir&g
15548 s&@infodir@&$infodir&g
15549 s&@localedir@&$localedir&g
15550 s&@mandir@&$mandir&g
15551 s&\\\${datarootdir}&$datarootdir&g' ;;
15555 # Neutralize VPATH when `$srcdir' = `.'.
15556 # Shell code in configure.ac might set extrasub.
15557 # FIXME: do we really want to maintain this feature?
15558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15559 ac_sed_extra="$ac_vpsub
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15564 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15565 s|@configure_input@|
$ac_sed_conf_input|
;t t
15566 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15567 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15568 s
&@srcdir@
&$ac_srcdir&;t t
15569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15572 s
&@builddir@
&$ac_builddir&;t t
15573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15575 s
&@INSTALL@
&$ac_INSTALL&;t t
15576 $ac_datarootdir_hack
15578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15579 if $ac_cs_awk_getline; then
15580 $AWK -f "$tmp/subs.
awk"
15582 $AWK -f "$tmp/subs.
awk" | $SHELL
15584 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15586 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15587 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15588 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15590 which seems to be undefined. Please make sure it is defined." >&5
15591 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15592 which seems to be undefined. Please make sure it is defined." >&2;}
15596 -) cat "$tmp/out" && rm -f "$tmp/out";;
15597 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15599 || as_fn_error "could not create $ac_file" "$LINENO" 5
15605 if test x"$ac_file" != x-; then
15607 $as_echo "/* $configure_input */" \
15608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15609 } >"$tmp/config.h" \
15610 || as_fn_error "could not create $ac_file" "$LINENO" 5
15611 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15613 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15616 mv "$tmp/config.h" "$ac_file" \
15617 || as_fn_error "could not create $ac_file" "$LINENO" 5
15620 $as_echo "/* $configure_input */" \
15621 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15622 || as_fn_error "could not create -" "$LINENO" 5
15626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15627 $as_echo "$as_me: executing $ac_file commands" >&6;}
15632 case $ac_file$ac_mode in
15635 ### Make the necessary directories, if they don't exist.
15636 for dir
in etc lisp
; do
15637 test -d ${dir} || mkdir
${dir}
15640 echo creating src
/epaths.h
15641 ${MAKE-make} epaths-force
15643 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
15644 echo creating src
/.gdbinit
15645 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
15656 ac_clean_files
=$ac_clean_files_save
15658 test $ac_write_fail = 0 ||
15659 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15662 # configure is writing to config.log, and then calls config.status.
15663 # config.status does its own redirection, appending to config.log.
15664 # Unfortunately, on DOS this fails, as config.log is still kept open
15665 # by configure, so config.status won't be able to write to it; its
15666 # output is simply discarded. So we exec the FD to /dev/null,
15667 # effectively closing config.log, so it can be properly (re)opened and
15668 # appended to by config.status. When coming back to configure, we
15669 # need to make the FD available again.
15670 if test "$no_create" != yes; then
15672 ac_config_status_args
=
15673 test "$silent" = yes &&
15674 ac_config_status_args
="$ac_config_status_args --quiet"
15676 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15678 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15679 # would make configure fail if this is the last instruction.
15680 $ac_cs_success || as_fn_exit $?
15682 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15684 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}