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
598 LD_SWITCH_SYSTEM_TEMACS
611 LIB_SRC_EXTRA_INSTALLABLES
613 GNUSTEP_SYSTEM_LIBRARIES
614 GNUSTEP_SYSTEM_HEADERS
632 x_default_search_path
692 LD_SWITCH_X_SITE_AUX_RPATH
759 program_transform_name
772 enable_option_checking
792 with_toolkit_scroll_bars
806 enable_ns_self_contained
808 enable_maintainer_mode
816 ac_precious_vars
='build_alias
828 # Initialize some variables set by options.
830 ac_init_version
=false
831 ac_unrecognized_opts
=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name
=s
,x
,x
,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir
='${exec_prefix}/bin'
857 sbindir
='${exec_prefix}/sbin'
858 libexecdir
='${exec_prefix}/libexec'
859 datarootdir
='${prefix}/share'
860 datadir
='${datarootdir}'
861 sysconfdir
='${prefix}/etc'
862 sharedstatedir
='${prefix}/com'
863 localstatedir
='${prefix}/var'
864 includedir
='${prefix}/include'
865 oldincludedir
='/usr/include'
866 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir
='${datarootdir}/info'
872 libdir
='${exec_prefix}/lib'
873 localedir
='${datarootdir}/locale'
874 mandir
='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\
$ac_option
888 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
900 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
903 -build |
--build |
--buil |
--bui |
--bu)
904 ac_prev
=build_alias
;;
905 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
906 build_alias
=$ac_optarg ;;
908 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
909 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
910 ac_prev
=cache_file
;;
911 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
912 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
913 cache_file
=$ac_optarg ;;
916 cache_file
=config.cache
;;
918 -datadir |
--datadir |
--datadi |
--datad)
920 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
921 datadir
=$ac_optarg ;;
923 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
924 |
--dataroo |
--dataro |
--datar)
925 ac_prev
=datarootdir
;;
926 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
927 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
928 datarootdir
=$ac_optarg ;;
930 -disable-* |
--disable-*)
931 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
934 as_fn_error
"invalid feature name: $ac_useropt"
935 ac_useropt_orig
=$ac_useropt
936 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep
=', ';;
944 eval enable_
$ac_useropt=no
;;
946 -docdir |
--docdir |
--docdi |
--doc |
--do)
948 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
951 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
953 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
956 -enable-* |
--enable-*)
957 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
960 as_fn_error
"invalid feature name: $ac_useropt"
961 ac_useropt_orig
=$ac_useropt
962 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep
=', ';;
970 eval enable_
$ac_useropt=\
$ac_optarg ;;
972 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
973 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
974 |
--exec |
--exe |
--ex)
975 ac_prev
=exec_prefix
;;
976 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
977 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
978 |
--exec=* |
--exe=* |
--ex=*)
979 exec_prefix
=$ac_optarg ;;
981 -gas |
--gas |
--ga |
--g)
982 # Obsolete; use --with-gas.
985 -help |
--help |
--hel |
--he |
-h)
987 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
988 ac_init_help
=recursive
;;
989 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
990 ac_init_help
=short
;;
992 -host |
--host |
--hos |
--ho)
993 ac_prev
=host_alias
;;
994 -host=* |
--host=* |
--hos=* |
--ho=*)
995 host_alias
=$ac_optarg ;;
997 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
999 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1001 htmldir
=$ac_optarg ;;
1003 -includedir |
--includedir |
--includedi |
--included |
--include \
1004 |
--includ |
--inclu |
--incl |
--inc)
1005 ac_prev
=includedir
;;
1006 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1007 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1008 includedir
=$ac_optarg ;;
1010 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1012 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1013 infodir
=$ac_optarg ;;
1015 -libdir |
--libdir |
--libdi |
--libd)
1017 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1018 libdir
=$ac_optarg ;;
1020 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1021 |
--libexe |
--libex |
--libe)
1022 ac_prev
=libexecdir
;;
1023 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1024 |
--libexe=* |
--libex=* |
--libe=*)
1025 libexecdir
=$ac_optarg ;;
1027 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1028 ac_prev
=localedir
;;
1029 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1030 localedir
=$ac_optarg ;;
1032 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1033 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1034 ac_prev
=localstatedir
;;
1035 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1036 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1037 localstatedir
=$ac_optarg ;;
1039 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1041 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1042 mandir
=$ac_optarg ;;
1044 -nfp |
--nfp |
--nf)
1045 # Obsolete; use --without-fp.
1048 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1049 |
--no-cr |
--no-c |
-n)
1052 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1053 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1056 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1057 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1058 |
--oldin |
--oldi |
--old |
--ol |
--o)
1059 ac_prev
=oldincludedir
;;
1060 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1061 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1062 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1063 oldincludedir
=$ac_optarg ;;
1065 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1067 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1068 prefix
=$ac_optarg ;;
1070 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1071 |
--program-pre |
--program-pr |
--program-p)
1072 ac_prev
=program_prefix
;;
1073 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1074 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1075 program_prefix
=$ac_optarg ;;
1077 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1078 |
--program-suf |
--program-su |
--program-s)
1079 ac_prev
=program_suffix
;;
1080 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1081 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1082 program_suffix
=$ac_optarg ;;
1084 -program-transform-name |
--program-transform-name \
1085 |
--program-transform-nam |
--program-transform-na \
1086 |
--program-transform-n |
--program-transform- \
1087 |
--program-transform |
--program-transfor \
1088 |
--program-transfo |
--program-transf \
1089 |
--program-trans |
--program-tran \
1090 |
--progr-tra |
--program-tr |
--program-t)
1091 ac_prev
=program_transform_name
;;
1092 -program-transform-name=* |
--program-transform-name=* \
1093 |
--program-transform-nam=* |
--program-transform-na=* \
1094 |
--program-transform-n=* |
--program-transform-=* \
1095 |
--program-transform=* |
--program-transfor=* \
1096 |
--program-transfo=* |
--program-transf=* \
1097 |
--program-trans=* |
--program-tran=* \
1098 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1099 program_transform_name
=$ac_optarg ;;
1101 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1103 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1104 pdfdir
=$ac_optarg ;;
1106 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1108 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1111 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1112 |
-silent |
--silent |
--silen |
--sile |
--sil)
1115 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1117 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1119 sbindir
=$ac_optarg ;;
1121 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1122 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1123 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1125 ac_prev
=sharedstatedir
;;
1126 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1127 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1128 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1130 sharedstatedir
=$ac_optarg ;;
1132 -site |
--site |
--sit)
1134 -site=* |
--site=* |
--sit=*)
1137 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1139 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1140 srcdir
=$ac_optarg ;;
1142 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1143 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1144 ac_prev
=sysconfdir
;;
1145 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1146 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1147 sysconfdir
=$ac_optarg ;;
1149 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1150 ac_prev
=target_alias
;;
1151 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1152 target_alias
=$ac_optarg ;;
1154 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1157 -version |
--version |
--versio |
--versi |
--vers |
-V)
1158 ac_init_version
=: ;;
1161 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1164 as_fn_error
"invalid package name: $ac_useropt"
1165 ac_useropt_orig
=$ac_useropt
1166 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1171 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep
=', ';;
1174 eval with_
$ac_useropt=\
$ac_optarg ;;
1176 -without-* |
--without-*)
1177 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1180 as_fn_error
"invalid package name: $ac_useropt"
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=no
;;
1193 # Obsolete; use --with-x.
1196 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1197 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1198 ac_prev
=x_includes
;;
1199 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1200 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1201 x_includes
=$ac_optarg ;;
1203 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1204 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1205 ac_prev
=x_libraries
;;
1206 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1207 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1208 x_libraries
=$ac_optarg ;;
1210 -*) as_fn_error
"unrecognized option: \`$ac_option'
1211 Try \`$0 --help' for more information."
1215 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #(
1218 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1219 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1221 eval $ac_envvar=\
$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error
"missing argument to $ac_option"
1240 if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1243 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 # Check all directory arguments for consistency.
1249 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
1254 eval ac_val
=\$
$ac_var
1255 # Remove trailing slashes.
1258 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\
$ac_val;;
1261 # Be sure to have absolute directory names.
1263 [\\/$
]* | ?
:[\\/]* ) continue;;
1264 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1266 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1274 target
=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x
; then
1278 if test "x$build_alias" = x
; then
1279 cross_compiling
=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1290 test "$silent" = yes && exec 6>/dev
/null
1293 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di
=`ls -di .` &&
1295 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error
"working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error
"pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted
=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir
=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1333 ac_srcdir_defaulted
=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1337 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1351 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 for ac_var
in $ac_precious_vars; do
1354 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1356 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1367 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1430 --x-includes=DIR X include files are
in DIR
1431 --x-libraries=DIR X library files are
in DIR
1434 --build=BUILD configure
for building on BUILD
[guessed
]
1435 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1446 --disable-option-checking ignore unrecognized
--enable/--with options
1447 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1448 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1449 --disable-ns-self-contained
1450 disable self contained build under NeXTstep
1451 --enable-asserts compile code with asserts enabled
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful
(and
1454 sometimes confusing
) to the casual installer
1455 --enable-locallisppath=PATH
1456 directories Emacs should search
for lisp files
1457 specific to this site
1458 --enable-checking[=LIST
]
1459 enable expensive run-time checks. With LIST
, enable
1460 only specific categories of checks. Categories are
:
1461 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1462 stringfreelist
, xmallocoverrun
, conslist
1463 --enable-profiling build emacs with profiling support. This might not
1464 work on all platforms
1465 --enable-autodepend automatically generate dependencies to .h-files.
1466 Requires GNU Make and Gcc. Enabled
if GNU Make and
1468 --disable-largefile omit support
for large files
1471 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1472 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1473 --without-pop don
't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --with-mmdf support MMDF mailboxes
1478 --with-mail-unlink unlink, rather than empty, mail spool after reading
1479 --with-mailhost=HOSTNAME
1480 string giving default POP mail host
1481 --without-sound don't compile with sound support
1482 --without-sync-input process async input synchronously
1483 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1485 --without-xpm don
't compile with XPM image support
1486 --without-jpeg don't compile with JPEG image support
1487 --without-tiff don
't compile with TIFF image support
1488 --without-gif don't compile with GIF image support
1489 --without-png don
't compile with PNG image support
1490 --without-rsvg don't compile with SVG image support
1491 --without-xft don
't use XFT for anti aliased fonts
1492 --without-libotf don't use libotf
for OpenType font support
1493 --without-m17n-flt don
't use m17n-flt for text shaping
1494 --without-toolkit-scroll-bars
1495 don't use Motif or Xaw3d scroll bars
1496 --without-xaw3d don
't use Xaw3d
1497 --without-xim don't use X11 XIM
1498 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1499 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1501 --without-dbus don't compile with D-Bus support
1502 --without-gconf don
't compile with GConf support
1503 --without-selinux don't compile with SELinux support
1504 --without-makeinfo don
't require makeinfo for building manuals
1506 --with-pkg-config-prog=PATH
1507 path to pkg-config for finding GTK and librsvg
1508 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1509 /usr/lib, or /usr/lib64 on some platforms.
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1512 or /etc/GNUstep/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1526 Use these variables to override the choices made by `configure' or to
help
1527 it to
find libraries and programs with nonstandard names
/locations.
1529 Report bugs to the package provider.
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1543 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1545 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1550 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1553 ac_abs_top_builddir
=$ac_pwd
1554 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir
=$ac_top_build_prefix
1559 .
) # We are building in place.
1561 ac_top_srcdir
=$ac_top_builddir_sub
1562 ac_abs_top_srcdir
=$ac_pwd ;;
1563 [\\/]* | ?
:[\\/]* ) # Absolute name.
1564 ac_srcdir
=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir
=$srcdir
1566 ac_abs_top_srcdir
=$srcdir ;;
1568 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1572 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1592 emacs configure
24.0.50
1593 generated by GNU Autoconf
2.65
1595 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1596 This configure
script is free software
; the Free Software Foundation
1597 gives unlimited permission to copy
, distribute and modify it.
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile
()
1611 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1612 rm -f conftest.
$ac_objext
1613 if { { ac_try
="$ac_compile"
1615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_compile
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1654 *) ac_try_echo
=$ac_try;;
1656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1660 if test -s conftest.err
; then
1661 grep -v '^ *+' conftest.err
>conftest.er1
1662 cat conftest.er1
>&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest
$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 $as_test_x conftest
$ac_exeext
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.
$ac_ext >&5
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1686 as_fn_set_status
$ac_retval
1688 } # ac_fn_c_try_link
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1696 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1732 ac_fn_c_check_header_mongrel ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1756 ac_header_compiler=no
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1772 ac_header_preproc=no
1774 rm -f conftest.err conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1804 eval "$3=\$ac_header_compiler"
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_header_mongrel
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1824 *) ac_try_echo
=$ac_try;;
1826 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=$ac_status
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1873 if ac_fn_c_try_compile "$LINENO"; then :
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_header_compile
1887 # ac_fn_c_check_decl LINENO SYMBOL VAR
1888 # ------------------------------------
1889 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1890 ac_fn_c_check_decl ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1894 $as_echo_n "checking whether $2 is declared... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1912 if ac_fn_c_try_compile "$LINENO"; then :
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 } # ac_fn_c_check_decl
1926 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1927 # ----------------------------------------------
1928 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_preproc ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1941 if ac_fn_c_try_cpp "$LINENO"; then :
1946 rm -f conftest.err conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_header_preproc
1955 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956 # ----------------------------------------------------
1957 # Tries to find if the field MEMBER exists in type AGGR, after including
1958 # INCLUDES, setting cache variable VAR accordingly.
1959 ac_fn_c_check_member ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963 $as_echo_n "checking for $2.$3... " >&6; }
1964 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1990 if (sizeof ac_aggr.$3)
1996 if ac_fn_c_try_compile "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_member
2012 # ac_fn_c_check_func LINENO FUNC VAR
2013 # ----------------------------------
2014 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2015 ac_fn_c_check_func ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2021 $as_echo_n "(cached) " >&6
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2027 #define $2 innocuous_$2
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $2 (); below.
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2032 <limits.h> exists even on freestanding compilers. */
2035 # include <limits.h>
2037 # include <assert.h>
2042 /* Override any GCC internal prototype to avoid an error.
2043 Use char because int might match the return type of a GCC
2044 builtin and then its argument prototype would still apply. */
2049 /* The GNU C library defines this for functions which it implements
2050 to always fail with ENOSYS. Some functions are actually named
2051 something starting with __ and the normal name is an alias. */
2052 #if defined __stub_$2 || defined __stub___$2
2064 if ac_fn_c_try_link "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext \
2070 conftest$ac_exeext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 } # ac_fn_c_check_func
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2117 if ac_fn_c_try_compile "$LINENO"; then :
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 } # ac_fn_c_check_type
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2136 It was created by emacs $as_me 24.0.50, which was
2137 generated by GNU Autoconf 2.65. Invocation command line was
2149 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2150 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2151 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2152 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2153 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2155 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2156 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2158 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2159 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2160 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2161 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2162 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2163 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2164 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir=.
2173 $as_echo "PATH: $as_dir"
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_must_keep_next=false
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2208 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213 as_fn_append ac_configure_args1 " '$ac_arg'"
2214 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal.
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226 -* ) ac_must_keep_next=true ;;
2229 as_fn_append ac_configure_args " '$ac_arg'"
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log. We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243 # Save into config.log some information that might help in debugging.
2248 ## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2256 eval ac_val=\$$ac_var
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2271 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 ## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##
2291 for ac_var in $ac_subst_vars
2293 eval ac_val=\$$ac_var
2295 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 $as_echo "$ac_var='\''$ac_val'\''"
2301 if test -n "$ac_subst_files"; then
2303 ## ------------------- ##
2304 ## File substitutions. ##
2305 ## ------------------- ##
2308 for ac_var in $ac_subst_files
2310 eval ac_val=\$$ac_var
2312 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 $as_echo "$ac_var='\''$ac_val'\''"
2319 if test -s confdefs.h; then
2329 test "$ac_signal" != 0 &&
2330 $as_echo "$as_me: caught signal $ac_signal"
2331 $as_echo "$as_me: exit $exit_status"
2333 rm -f core *.core core.conftest.* &&
2334 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2337 for ac_signal in 1 2 13 15; do
2338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2343 rm -f -r conftest* confdefs.h
2345 $as_echo "/* confdefs.h */" > confdefs.h
2347 # Predefined preprocessor variables.
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_NAME "$PACKAGE_NAME"
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_STRING "$PACKAGE_STRING"
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_URL "$PACKAGE_URL"
2374 # Let the site file select an alternate cache file if it wants to.
2375 # Prefer an explicitly selected file to automatically selected ones.
2378 if test -n "$CONFIG_SITE"; then
2379 ac_site_file1=$CONFIG_SITE
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2398 if test -r "$cache_file"; then
2399 # Some versions of bash will fail to source /dev/null (special files
2400 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2401 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2403 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2406 *) . "./$cache_file";;
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2411 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415 as_fn_append ac_header_list " stdlib.h"
2416 as_fn_append ac_header_list " unistd.h"
2417 as_fn_append ac_header_list " sys/param.h"
2418 as_fn_append ac_header_list " sys/time.h"
2419 as_fn_append ac_func_list " alarm"
2420 # Check that the precious variables saved in the cache have kept the same
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425 eval ac_new_set=\$ac_env_${ac_var}_set
2426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427 eval ac_new_val=\$ac_env_${ac_var}_value
2428 case $ac_old_set,$ac_new_set in
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2431 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2435 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2439 if test "x$ac_old_val" != "x$ac_new_val"; then
2440 # differences in whitespace do not lead to failure.
2441 ac_old_val_w=`echo x
$ac_old_val`
2442 ac_new_val_w=`echo x
$ac_new_val`
2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2446 ac_cache_corrupted=:
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450 eval $ac_var=\$ac_old_val
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2453 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2458 # Pass precious variables to config.status.
2459 if test "$ac_new_set" = set; then
2461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2462 *) ac_arg=$ac_var=$ac_new_val ;;
2464 case " $ac_configure_args " in
2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2470 if $ac_cache_corrupted; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s
,x
,x
', remove it if useless.
2499 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503 lispdir='${datadir}/emacs
/${version}/lisp
'
2504 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2505 '${datadir}/emacs
/site-lisp
'
2506 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2507 etcdir='${datadir}/emacs
/${version}/etc
'
2508 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2509 docdir='${datadir}/emacs
/${version}/etc
'
2510 gamedir='${localstatedir}/games
/emacs
'
2517 # Check whether --with-pop was given.
2518 if test "${with_pop+set}" = set; then :
2524 if test "$with_pop" = yes; then
2525 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2530 # Check whether --with-kerberos was given.
2531 if test "${with_kerberos+set}" = set; then :
2532 withval=$with_kerberos;
2537 if test "$with_kerberos" != no; then
2538 $as_echo "#define KERBEROS 1" >>confdefs.h
2543 # Check whether --with-kerberos5 was given.
2544 if test "${with_kerberos5+set}" = set; then :
2545 withval=$with_kerberos5;
2550 if test "${with_kerberos5}" != no; then
2551 if test "${with_kerberos}" = no; then
2553 $as_echo "#define KERBEROS 1" >>confdefs.h
2557 $as_echo "#define KERBEROS5 1" >>confdefs.h
2562 # Check whether --with-hesiod was given.
2563 if test "${with_hesiod+set}" = set; then :
2564 withval=$with_hesiod;
2569 if test "$with_hesiod" != no; then
2571 $as_echo "#define HESIOD 1" >>confdefs.h
2576 # Check whether --with-mmdf was given.
2577 if test "${with_mmdf+set}" = set; then :
2583 if test "$with_mmdf" != no; then
2585 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2590 # Check whether --with-mail-unlink was given.
2591 if test "${with_mail_unlink+set}" = set; then :
2592 withval=$with_mail_unlink;
2597 if test "$with_mail_unlink" != no; then
2599 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2604 # Check whether --with-mailhost was given.
2605 if test "${with_mailhost+set}" = set; then :
2606 withval=$with_mailhost;
2607 cat >>confdefs.h <<_ACEOF
2608 #define MAILHOST "$withval"
2615 # Check whether --with-sound was given.
2616 if test "${with_sound+set}" = set; then :
2617 withval=$with_sound;
2624 # Check whether --with-sync-input was given.
2625 if test "${with_sync_input+set}" = set; then :
2626 withval=$with_sync_input;
2631 if test "$with_sync_input" = yes; then
2633 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2638 # Check whether --with-x-toolkit was given.
2639 if test "${with_x_toolkit+set}" = set; then :
2640 withval=$with_x_toolkit; case "${withval}" in
2641 y | ye | yes ) val=gtk ;;
2643 l | lu | luc | luci | lucid ) val=lucid ;;
2644 a | at | ath | athe | athen | athena ) val=athena ;;
2645 m | mo | mot | moti | motif ) val=motif ;;
2646 g | gt | gtk ) val=gtk ;;
2648 as_fn_error "\`--with-x-toolkit=$withval' is invalid
;
2649 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2650 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" "$LINENO" 5
2659 # Check whether --with-xpm was given.
2660 if test "${with_xpm+set}" = set; then :
2667 # Check whether --with-jpeg was given.
2668 if test "${with_jpeg+set}" = set; then :
2675 # Check whether --with-tiff was given.
2676 if test "${with_tiff+set}" = set; then :
2683 # Check whether --with-gif was given.
2684 if test "${with_gif+set}" = set; then :
2691 # Check whether --with-png was given.
2692 if test "${with_png+set}" = set; then :
2699 # Check whether --with-rsvg was given.
2700 if test "${with_rsvg+set}" = set; then :
2708 # Check whether --with-xft was given.
2709 if test "${with_xft+set}" = set; then :
2716 # Check whether --with-libotf was given.
2717 if test "${with_libotf+set}" = set; then :
2718 withval=$with_libotf;
2724 # Check whether --with-m17n-flt was given.
2725 if test "${with_m17n_flt+set}" = set; then :
2726 withval=$with_m17n_flt;
2733 # Check whether --with-toolkit-scroll-bars was given.
2734 if test "${with_toolkit_scroll_bars+set}" = set; then :
2735 withval=$with_toolkit_scroll_bars;
2737 with_toolkit_scroll_bars=yes
2741 # Check whether --with-xaw3d was given.
2742 if test "${with_xaw3d+set}" = set; then :
2743 withval=$with_xaw3d;
2749 # Check whether --with-xim was given.
2750 if test "${with_xim+set}" = set; then :
2757 # Check whether --with-ns was given.
2758 if test "${with_ns+set}" = set; then :
2766 # Check whether --with-gpm was given.
2767 if test "${with_gpm+set}" = set; then :
2774 # Check whether --with-dbus was given.
2775 if test "${with_dbus+set}" = set; then :
2782 # Check whether --with-gconf was given.
2783 if test "${with_gconf+set}" = set; then :
2784 withval=$with_gconf;
2790 # Check whether --with-selinux was given.
2791 if test "${with_selinux+set}" = set; then :
2792 withval=$with_selinux;
2798 ## For the times when you want to build Emacs but don't have
2799 ## a suitable makeinfo, and can live without the manuals.
2801 # Check whether --with-makeinfo was given.
2802 if test "${with_makeinfo+set}" = set; then :
2803 withval=$with_makeinfo;
2810 # Check whether --with-gtk was given.
2811 if test "${with_gtk+set}" = set; then :
2812 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use
--with-x-toolkit to
2813 specify a toolkit.
" "$LINENO" 5
2818 # Check whether --with-gcc was given.
2819 if test "${with_gcc+set}" = set; then :
2820 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \
`CC' environment
2821 variable to specify a compiler." "$LINENO" 5
2826 # Check whether --with-pkg-config-prog was given.
2827 if test "${with_pkg_config_prog+set}" = set; then :
2828 withval=$with_pkg_config_prog;
2831 if test "X${with_pkg_config_prog}" != X; then
2832 if test "${with_pkg_config_prog}" != yes; then
2833 PKG_CONFIG="${with_pkg_config_prog}"
2839 # Check whether --with-crt-dir was given.
2840 if test "${with_crt_dir+set}" = set; then :
2841 withval=$with_crt_dir;
2844 CRT_DIR="${with_crt_dir}"
2847 # Check whether --with-gnustep-conf was given.
2848 if test "${with_gnustep_conf+set}" = set; then :
2849 withval=$with_gnustep_conf;
2852 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2853 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2854 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2855 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2857 # Check whether --enable-ns-self-contained was given.
2858 if test "${enable_ns_self_contained+set}" = set; then :
2859 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2861 EN_NS_SELF_CONTAINED=yes
2865 # Check whether --enable-asserts was given.
2866 if test "${enable_asserts+set}" = set; then :
2867 enableval=$enable_asserts; USE_XASSERTS=$enableval
2873 # Check whether --enable-maintainer-mode was given.
2874 if test "${enable_maintainer_mode+set}" = set; then :
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2877 USE_MAINTAINER_MODE=no
2880 if test $USE_MAINTAINER_MODE = yes; then
2887 # Check whether --enable-locallisppath was given.
2888 if test "${enable_locallisppath+set}" = set; then :
2889 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2891 elif test "${enableval}" != "yes"; then
2892 locallisppath=${enableval}
2897 # Check whether --enable-checking was given.
2898 if test "${enable_checking+set}" = set; then :
2899 enableval=$enable_checking; ac_checking_flags="${enableval}"
2902 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2903 for check in $ac_checking_flags
2906 # these set all the flags to specific states
2907 yes) ac_enable_checking=1 ;;
2908 no) ac_enable_checking= ;
2909 ac_gc_check_stringbytes= ;
2910 ac_gc_check_string_overrun= ;
2911 ac_gc_check_string_free_list= ;
2912 ac_xmalloc_overrun= ;
2913 ac_gc_check_cons_list= ;;
2914 all) ac_enable_checking=1 ;
2915 ac_gc_check_stringbytes=1 ;
2916 ac_gc_check_string_overrun=1 ;
2917 ac_gc_check_string_free_list=1 ;
2918 ac_xmalloc_overrun=1 ;
2919 ac_gc_check_cons_list=1 ;;
2920 # these enable particular checks
2921 stringbytes) ac_gc_check_stringbytes=1 ;;
2922 stringoverrun) ac_gc_check_string_overrun=1 ;;
2923 stringfreelist) ac_gc_check_string_free_list=1 ;;
2924 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2925 conslist) ac_gc_check_cons_list=1 ;;
2926 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2931 if test x$ac_enable_checking != x ; then
2933 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2936 if test x$ac_gc_check_stringbytes != x ; then
2938 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2941 if test x$ac_gc_check_stringoverrun != x ; then
2943 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2946 if test x$ac_gc_check_string_free_list != x ; then
2948 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2951 if test x$ac_xmalloc_overrun != x ; then
2953 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2956 if test x$ac_gc_check_cons_list != x ; then
2958 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2962 # Check whether --enable-profiling was given.
2963 if test "${enable_profiling+set}" = set; then :
2964 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2967 if test x$ac_enable_profiling != x ; then
2968 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2969 PROFILING_LDFLAGS="-pg"
2975 # Check whether --enable-autodepend was given.
2976 if test "${enable_autodepend+set}" = set; then :
2977 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2979 ac_enable_autodepend=yes
2983 #### Make srcdir absolute, if it isn't already. It's important to
2984 #### avoid running the path through pwd unnecessarily, since pwd can
2985 #### give you automounter prefixes, which can go away. We do all this
2986 #### so Emacs can find its files when run uninstalled.
2987 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2992 ## We may be able to use the $PWD environment variable to make this
2993 ## absolute. But sometimes PWD is inaccurate.
2994 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2995 ## but that tested only for a well-formed and valid PWD,
2996 ## it did not object when PWD was well-formed and valid but just wrong.
2997 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
3001 srcdir="`(cd ${srcdir}; pwd)`"
3004 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3007 #### Check if the source directory already has a configured system in it.
3008 if test `pwd` != `(cd ${srcdir} && pwd)` \
3009 && test -f "${srcdir}/src/config.h" ; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3011 as a build directory right now; it has been configured in its own
3012 right. To configure in another directory as well, you MUST
3013 use GNU make. If you do not have GNU make, then you must
3014 now do \`make distclean' in ${srcdir},
3015 and
then run
$0 again.
" >&5
3016 $as_echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
3017 as a build directory right now; it has been configured in its own
3018 right. To configure in another directory as well, you MUST
3019 use GNU make. If you do not have GNU make, then you must
3020 now do \`make distclean
' in ${srcdir},
3021 and then run $0 again." >&2;}
3024 #### Given the configuration name, set machfile and opsysfile to the
3025 #### names of the m/*.h and s/*.h files we should use.
3027 ### Canonicalize the configuration name.
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's
source tree is
in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3054 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 ac_build_alias
=$build_alias
3062 test "x$ac_build_alias" = x
&&
3063 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x
&&
3065 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3074 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3077 ac_save_IFS
=$IFS; IFS
='-'
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3087 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test "x$host_alias" = x
; then
3096 ac_cv_host
=$ac_cv_build
3098 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3107 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3110 ac_save_IFS
=$IFS; IFS
='-'
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3120 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3124 configuration
=${host_alias-${build_alias-$host}}
3128 ### If you add support for a new configuration, add code to this
3129 ### switch statement to recognize your configuration name and select
3130 ### the appropriate operating system and machine description files.
3132 ### You would hope that you could choose an m/*.h file pretty much
3133 ### based on the machine portion of the configuration name, and an s-
3134 ### file based on the operating system portion. However, it turns out
3135 ### that each m/*.h file is pretty manufacturer-specific - for
3136 ### example mips.h is MIPS
3137 ### So we basically have to have a special case for each
3138 ### configuration name.
3140 ### As far as handling version numbers on operating systems is
3141 ### concerned, make sure things will fail in a fixable way. If
3142 ### /etc/MACHINES doesn't say anything about version numbers, be
3143 ### prepared to handle anything reasonably. If version numbers
3144 ### matter, be sure /etc/MACHINES says something about it.
3146 ### Eric Raymond says we should accept strings like "sysvr4" to mean
3147 ### "System V Release 4"; he writes, "The old convention encouraged
3148 ### confusion between `system' and `release' levels'."
3150 machine
='' opsys
='' unported
=no
3151 case "${canonical}" in
3156 case "${canonical}" in
3157 alpha
*-*-freebsd*) machine
=alpha
;;
3158 arm
*-*-freebsd*) machine
=arm
;;
3159 ia64-
*-freebsd*) machine
=ia64
;;
3160 sparc-
*-freebsd*) machine
=sparc
;;
3161 sparc64-
*-freebsd*) machine
=sparc
;;
3162 powerpc-
*-freebsd*) machine
=macppc
;;
3163 i
[3456]86-*-freebsd*) machine
=intel386
;;
3164 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
3168 ## FreeBSD kernel + glibc based userland
3171 case "${canonical}" in
3172 alpha
*-*-kfreebsd*) machine
=alpha
;;
3173 ia64-
*-kfreebsd*) machine
=ia64
;;
3174 sparc-
*-kfreebsd*) machine
=sparc
;;
3175 sparc64-
*-kfreebsd*) machine
=sparc
;;
3176 powerpc-
*-kfreebsd*) machine
=macppc
;;
3177 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
3178 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
3185 case "${canonical}" in
3186 alpha
*-*-netbsd*) machine
=alpha
;;
3187 i
[3456]86-*-netbsd*) machine
=intel386
;;
3188 mips-
*-netbsd*) machine
=mips
;;
3189 mipsel-
*-netbsd*) machine
=mips
;;
3190 mipseb-
*-netbsd*) machine
=mips
;;
3191 powerpc-
*-netbsd*) machine
=macppc
;;
3192 sparc
*-*-netbsd*) machine
=sparc
;;
3193 vax-
*-netbsd*) machine
=vax
;;
3194 arm-
*-netbsd*) machine
=arm
;;
3195 x86_64-
*-netbsd*) machine
=amdx86-64
;;
3196 hppa-
*-netbsd*) machine
=hp800
;;
3197 m68k-
*-netbsd*) machine
=m68k
;;
3204 case "${canonical}" in
3205 alpha
*-*-openbsd*) machine
=alpha
;;
3206 arm-
*-openbsd*) machine
=arm
;;
3207 i386-
*-openbsd*) machine
=intel386
;;
3208 powerpc-
*-openbsd*) machine
=macppc
;;
3209 sparc
*-*-openbsd*) machine
=sparc
;;
3210 vax-
*-openbsd*) machine
=vax
;;
3211 x86_64-
*-openbsd*) machine
=amdx86-64
;;
3212 hppa-
*-openbsd*) machine
=hp800
;;
3216 alpha
*-*-linux-gnu* )
3217 machine
=alpha opsys
=gnu-linux
3221 machine
=arm opsys
=gnu-linux
3224 ## Apple Darwin / Mac OS X
3226 case "${canonical}" in
3227 i
[3456]86-* ) machine
=intel386
;;
3228 powerpc-
* ) machine
=macppc
;;
3229 x86_64-
* ) machine
=amdx86-64
;;
3233 # Define CPP as follows to make autoconf work correctly.
3234 CPP
="${CC-cc} -E -no-cpp-precomp"
3235 # Use fink packages if available.
3236 if test -d /sw
/include
&& test -d /sw
/lib
; then
3237 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3238 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3239 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3243 ## HP 9000 series 700 and 800, running HP/UX
3244 hppa
*-hp-hpux10.2
* )
3245 machine
=hp800 opsys
=hpux10-20
3247 hppa
*-hp-hpux1[1-9]* )
3248 machine
=hp800 opsys
=hpux11
3249 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3252 hppa
*-*-linux-gnu* )
3253 machine
=hp800 opsys
=gnu-linux
3258 machine
=ibms390 opsys
=gnu-linux
3260 s390x-
*-linux-gnu* )
3261 machine
=ibms390x opsys
=gnu-linux
3263 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
3264 machine
=ibmrs6000 opsys
=aix4-2
3266 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
3267 machine
=ibmrs6000 opsys
=aix4-2
3269 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
3270 machine
=ibmrs6000 opsys
=aix4-2
3272 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
3273 machine
=ibmrs6000 opsys
=aix4-2
3276 ## Macintosh PowerPC
3277 powerpc
*-*-linux-gnu* )
3278 machine
=macppc opsys
=gnu-linux
3281 ## Silicon Graphics machines
3284 machine
=iris4d opsys
=irix6-5
3285 # Without defining _LANGUAGE_C, things get masked out in the headers
3286 # so that, for instance, grepping for `free' in stdlib.h fails and
3287 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3288 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
3289 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
3293 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3294 machine
=sparc opsys
=gnu-linux
3298 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
3299 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
3300 case "${canonical}" in
3301 i
[3456]86-*-* ) machine
=intel386
;;
3302 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3303 sparc
* ) machine
=sparc
;;
3306 case "${canonical}" in
3307 *-sunos5.6
* |
*-solaris2.6
* )
3309 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3312 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
3314 emacs_check_sunpro_c
=yes
3315 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3317 *-sunos5* |
*-solaris* )
3319 emacs_check_sunpro_c
=yes
3320 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3323 ## Watch out for a compiler that we know will not work.
3324 case "${canonical}" in
3325 *-solaris* |
*-sunos5* )
3326 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3327 ## /usr/ucb/cc doesn't work;
3328 ## we should find some other compiler that does work.
3338 machine
=ia64 opsys
=gnu-linux
3341 ## Intel 386 machines where we don't care about the manufacturer
3344 case "${canonical}" in
3345 *-cygwin ) opsys
=cygwin
;;
3346 *-darwin* ) opsys
=darwin
3347 CPP
="${CC-cc} -E -no-cpp-precomp"
3349 *-linux-gnu* ) opsys
=gnu-linux
;;
3350 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3351 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3352 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3353 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3357 ## m68k Linux-based GNU system
3359 machine
=m68k opsys
=gnu-linux
3362 ## Mips Linux-based GNU system
3363 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
3364 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
3365 machine
=mips opsys
=gnu-linux
3368 ## AMD x86-64 Linux-based GNU system
3369 x86_64-
*-linux-gnu* )
3370 machine
=amdx86-64 opsys
=gnu-linux
3373 ## Tensilica Xtensa Linux-based GNU system
3374 xtensa
*-*-linux-gnu* )
3375 machine
=xtensa opsys
=gnu-linux
3378 ## SuperH Linux-based GNU system
3379 sh
[34]*-*-linux-gnu* )
3380 machine
=sh3 opsys
=gnu-linux
3388 ### If the code above didn't choose an operating system, just choose
3389 ### an operating system based on the configuration name. You really
3390 ### only want to use this when you have no idea what the right
3391 ### operating system is; if you know what operating systems a machine
3392 ### runs, it's cleaner to make it explicit in the case statement
3394 if test x
"${opsys}" = x
; then
3395 case "${canonical}" in
3396 *-gnu* ) opsys
=gnu
;;
3405 if test $unported = yes; then
3406 as_fn_error
"Emacs hasn't been ported to \`${canonical}' systems.
3407 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3410 machfile
="m/${machine}.h"
3411 opsysfile
="s/${opsys}.h"
3414 #### Choose a compiler.
3415 test -n "$CC" && cc_specified
=yes
3417 # Save the value of CFLAGS that the user specified.
3418 SPECIFIED_CFLAGS
="$CFLAGS"
3421 ac_cpp
='$CPP $CPPFLAGS'
3422 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3427 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC
="$CC" # Let the user override the test.
3436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir
=.
3441 for ac_exec_ext
in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3464 if test -z "$ac_cv_prog_CC"; then
3466 # Extract the first word of "gcc", so it can be a program name with args.
3467 set dummy gcc
; ac_word
=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir
=.
3481 for ac_exec_ext
in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_ac_ct_CC
="gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496 $as_echo "$ac_ct_CC" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3502 if test "x$ac_ct_CC" = x
; then
3505 case $cross_compiling:$ac_tool_warned in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned
=yes ;;
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3520 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC
="$CC" # Let the user override the test.
3529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 test -z "$as_dir" && as_dir
=.
3534 for ac_exec_ext
in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3558 if test -z "$CC"; then
3559 # Extract the first word of "cc", so it can be a program name with args.
3560 set dummy cc
; ac_word
=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC
="$CC" # Let the user override the test.
3570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir
=.
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3578 ac_prog_rejected
=yes
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test $ac_prog_rejected = yes; then
3590 # We found a bogon in the path, so make sure we never use it.
3591 set dummy
$ac_cv_prog_CC
3593 if test $# != 0; then
3594 # We chose a different compiler from the bogus one.
3595 # However, it has the same basename, so the bogon will be chosen
3596 # first if we set CC to just the basename; use the full file name.
3598 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3614 if test -z "$CC"; then
3615 if test -n "$ac_tool_prefix"; then
3616 for ac_prog
in cl.exe
3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3619 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_CC+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC
="$CC" # Let the user override the test.
3628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir
=.
3633 for ac_exec_ext
in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3655 test -n "$CC" && break
3658 if test -z "$CC"; then
3660 for ac_prog
in cl.exe
3662 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663 set dummy
$ac_prog; ac_word
=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3667 $as_echo_n "(cached) " >&6
3669 if test -n "$ac_ct_CC"; then
3670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir
=.
3677 for ac_exec_ext
in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_ac_ct_CC
="$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3690 if test -n "$ac_ct_CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3692 $as_echo "$ac_ct_CC" >&6; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3699 test -n "$ac_ct_CC" && break
3702 if test "x$ac_ct_CC" = x
; then
3705 case $cross_compiling:$ac_tool_warned in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned
=yes ;;
3718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error
"no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details." "$LINENO" 5; }
3723 # Provide some information about the compiler.
3724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3727 for ac_option
in --version -v -V -qversion; do
3728 { { ac_try
="$ac_compiler $ac_option >&5"
3730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3737 if test -s conftest.err; then
3739 ... rest of stderr output deleted ...
3740 10q' conftest.err >conftest.er1
3741 cat conftest.er1 >&5
3743 rm -f conftest.er1 conftest.err
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3759 ac_clean_files_save=$ac_clean_files
3760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3761 # Try to create an executable without -o first, disregard a.out.
3762 # It will help us diagnose broken compilers, and finding out an intuition
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3765 $as_echo_n "checking whether the C compiler works... " >&6; }
3766 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3768 # The possible output files:
3769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3772 for ac_file in $ac_files
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3781 if { { ac_try="$ac_link_default"
3783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3784 *) ac_try_echo
=$ac_try;;
3786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_link_default") 2>&5
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then :
3792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3794 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3795 # so that the user can short-circuit this test for compilers unknown to
3797 for ac_file
in $ac_files ''
3799 test -f "$ac_file" ||
continue
3801 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3804 # We found the default executable, but exeext='' is most
3808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3810 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 # We set ac_cv_exeext here because the later test for it is not
3813 # safe: cross compilers may not add the suffix if given an `-o'
3814 # argument, so we may need to know it at that point already.
3815 # Even if this section looks crufty: it has the advantage of
3822 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3827 if test -z "$ac_file"; then :
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.
$ac_ext >&5
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 { as_fn_set_status
77
3836 as_fn_error
"C compiler cannot create executables
3837 See \`config.log' for more details." "$LINENO" 5; }; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840 $as_echo "yes" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845 $as_echo "$ac_file" >&6; }
3846 ac_exeext
=$ac_cv_exeext
3848 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3849 ac_clean_files
=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3851 $as_echo_n "checking for suffix of executables... " >&6; }
3852 if { { ac_try
="$ac_link"
3854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link") 2>&5
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3864 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3865 # work properly (i.e., refer to `conftest.exe'), while it won't with
3867 for ac_file
in conftest.exe conftest conftest.
*; do
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3871 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3880 See \`config.log' for more details." "$LINENO" 5; }
3882 rm -f conftest conftest
$ac_cv_exeext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884 $as_echo "$ac_cv_exeext" >&6; }
3886 rm -f conftest.
$ac_ext
3887 EXEEXT
=$ac_cv_exeext
3889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3895 FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3902 ac_clean_files
="$ac_clean_files conftest.out"
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 if test "$cross_compiling" != yes; then
3908 { { ac_try
="$ac_link"
3910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3922 *) ac_try_echo
=$ac_try;;
3924 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3932 if test "$cross_compiling" = maybe
; then
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error
"cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3946 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3947 ac_clean_files
=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try
="$ac_compile"
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files
: cannot compile
3991 See \
`config.log' for more details." "$LINENO" 5; }
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4108 if test "$GCC" = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_prog_cc_c89=no
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4141 s = g (p, va_arg (v,int));
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4184 rm -f conftest.$ac_ext
4189 case "x$ac_cv_prog_cc_c89" in
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4217 ## If not using gcc, and on Solaris, and no CPP specified, see if
4218 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4219 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4220 test x"$CPP" = x; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4222 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4224 if test "${emacs_cv_sunpro_c+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4241 if ac_fn_c_try_link "$LINENO"; then :
4242 emacs_cv_sunpro_c=yes
4244 emacs_cv_sunpro_c=no
4246 rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4251 $as_echo "$emacs_cv_sunpro_c" >&6; }
4253 if test x"$emacs_cv_sunpro_c" = xyes; then
4254 NON_GNU_CPP="$CC -E -Xs"
4258 #### Some systems specify a CPP to use unless we are using GCC.
4259 #### Now that we know whether we are using GCC, we can decide whether
4260 #### to use that one.
4261 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4266 #### Some systems specify a CC to use unless we are using GCC.
4267 #### Now that we know whether we are using GCC, we can decide whether
4268 #### to use that one.
4269 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4270 test x$cc_specified != xyes
4275 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4277 CC="$CC $GCC_TEST_OPTIONS"
4280 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4282 CC="$CC $NON_GCC_TEST_OPTIONS"
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4291 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4292 # On Suns, sometimes $CPP names a directory.
4293 if test -n "$CPP" && test -d "$CPP"; then
4296 if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4304 for ac_c_preproc_warn_flag in '' yes
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4315 # include <limits.h>
4317 # include <assert.h>
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4324 # Broken: fails on valid input.
4327 rm -f conftest.err conftest.$ac_ext
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336 # Broken: success on invalid input.
4339 # Passes both tests.
4343 rm -f conftest.err conftest.$ac_ext
4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347 rm -f conftest.err conftest.
$ac_ext
4348 if $ac_preproc_ok; then :
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4361 $as_echo "$CPP" >&6; }
4363 for ac_c_preproc_warn_flag
in '' yes
4365 # Use a header file that comes with gcc, so configuring glibc
4366 # with a fresh cross-compiler works.
4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4368 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4374 # include <limits.h>
4376 # include <assert.h>
4380 if ac_fn_c_try_cpp
"$LINENO"; then :
4383 # Broken: fails on valid input.
4386 rm -f conftest.err conftest.
$ac_ext
4388 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how.
4390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4394 if ac_fn_c_try_cpp
"$LINENO"; then :
4395 # Broken: success on invalid input.
4398 # Passes both tests.
4402 rm -f conftest.err conftest.
$ac_ext
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.err conftest.
$ac_ext
4407 if $ac_preproc_ok; then :
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4413 See \`config.log' for more details." "$LINENO" 5; }
4417 ac_cpp
='$CPP $CPPFLAGS'
4418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4424 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4425 if test "${ac_cv_path_GREP+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -z "$GREP"; then
4429 ac_path_GREP_found
=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4435 test -z "$as_dir" && as_dir
=.
4436 for ac_prog
in grep ggrep
; do
4437 for ac_exec_ext
in '' $ac_executable_extensions; do
4438 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4440 # Check for GNU ac_path_GREP and select it if it is found.
4441 # Check for GNU $ac_path_GREP
4442 case `"$ac_path_GREP" --version 2>&1` in
4444 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4447 $as_echo_n 0123456789 >"conftest.in"
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'GREP' >> "conftest.nl"
4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4455 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4456 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_GREP
="$ac_path_GREP"
4460 ac_path_GREP_max
=$ac_count
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4465 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4468 $ac_path_GREP_found && break 3
4473 if test -z "$ac_cv_path_GREP"; then
4474 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4477 ac_cv_path_GREP
=$GREP
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4482 $as_echo "$ac_cv_path_GREP" >&6; }
4483 GREP
="$ac_cv_path_GREP"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4487 $as_echo_n "checking for egrep... " >&6; }
4488 if test "${ac_cv_path_EGREP+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4491 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4492 then ac_cv_path_EGREP
="$GREP -E"
4494 if test -z "$EGREP"; then
4495 ac_path_EGREP_found
=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4498 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4501 test -z "$as_dir" && as_dir
=.
4502 for ac_prog
in egrep; do
4503 for ac_exec_ext
in '' $ac_executable_extensions; do
4504 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4506 # Check for GNU ac_path_EGREP and select it if it is found.
4507 # Check for GNU $ac_path_EGREP
4508 case `"$ac_path_EGREP" --version 2>&1` in
4510 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4513 $as_echo_n 0123456789 >"conftest.in"
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'EGREP' >> "conftest.nl"
4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4521 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4522 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_EGREP
="$ac_path_EGREP"
4526 ac_path_EGREP_max
=$ac_count
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4531 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4534 $ac_path_EGREP_found && break 3
4539 if test -z "$ac_cv_path_EGREP"; then
4540 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4543 ac_cv_path_EGREP
=$EGREP
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4549 $as_echo "$ac_cv_path_EGREP" >&6; }
4550 EGREP
="$ac_cv_path_EGREP"
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4554 $as_echo_n "checking for ANSI C header files... " >&6; }
4555 if test "${ac_cv_header_stdc+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4573 if ac_fn_c_try_compile
"$LINENO"; then :
4574 ac_cv_header_stdc
=yes
4576 ac_cv_header_stdc
=no
4578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4580 if test $ac_cv_header_stdc = yes; then
4581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588 $EGREP "memchr" >/dev
/null
2>&1; then :
4591 ac_cv_header_stdc
=no
4597 if test $ac_cv_header_stdc = yes; then
4598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev
/null
2>&1; then :
4608 ac_cv_header_stdc
=no
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then :
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 #if ((' ' & 0x0FF) == 0x020)
4624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4627 # define ISLOWER(c) \
4628 (('a' <= (c) && (c) <= 'i') \
4629 || ('j' <= (c) && (c) <= 'r') \
4630 || ('s' <= (c) && (c) <= 'z'))
4631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4639 for (i = 0; i < 256; i++)
4640 if (XOR (islower (i), ISLOWER (i))
4641 || toupper (i) != TOUPPER (i))
4646 if ac_fn_c_try_run
"$LINENO"; then :
4649 ac_cv_header_stdc
=no
4651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4658 $as_echo "$ac_cv_header_stdc" >&6; }
4659 if test $ac_cv_header_stdc = yes; then
4661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4666 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4667 inttypes.h stdint.h unistd.h
4669 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4670 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4672 eval as_val
=\$
$as_ac_Header
4673 if test "x$as_val" = x
""yes; then :
4674 cat >>confdefs.h
<<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4684 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4685 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4692 if test "$MINIX" = yes; then
4694 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4697 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4700 $as_echo "#define _MINIX 1" >>confdefs.h
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4706 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4707 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4713 # define __EXTENSIONS__ 1
4714 $ac_includes_default
4723 if ac_fn_c_try_compile
"$LINENO"; then :
4724 ac_cv_safe_to_define___extensions__
=yes
4726 ac_cv_safe_to_define___extensions__
=no
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4731 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4732 test $ac_cv_safe_to_define___extensions__ = yes &&
4733 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4735 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4737 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4739 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4741 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4745 ### Use -Wno-pointer-sign if the compiler supports it
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4747 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4748 SAVE_CFLAGS
="$CFLAGS"
4749 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 if ac_fn_c_try_compile
"$LINENO"; then :
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 if test $has_option = yes; then
4768 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4771 $as_echo "$has_option" >&6; }
4772 CFLAGS
="$SAVE_CFLAGS"
4776 ### Use -Wdeclaration-after-statement if the compiler supports it
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4778 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4779 SAVE_CFLAGS
="$CFLAGS"
4780 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4792 if ac_fn_c_try_compile
"$LINENO"; then :
4797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4798 if test $has_option = yes; then
4799 C_WARNINGS_SWITCH
="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4802 $as_echo "$has_option" >&6; }
4803 CFLAGS
="$SAVE_CFLAGS"
4807 #### Some other nice autoconf tests.
4810 ac_cpp
='$CPP $CPPFLAGS'
4811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4816 # On Suns, sometimes $CPP names a directory.
4817 if test -n "$CPP" && test -d "$CPP"; then
4820 if test -z "$CPP"; then
4821 if test "${ac_cv_prog_CPP+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 # Double quotes because CPP needs to be expanded
4825 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4828 for ac_c_preproc_warn_flag
in '' yes
4830 # Use a header file that comes with gcc, so configuring glibc
4831 # with a fresh cross-compiler works.
4832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833 # <limits.h> exists even on freestanding compilers.
4834 # On the NeXT, cc -E runs the code through the compiler's parser,
4835 # not just through cpp. "Syntax error" is here to catch this case.
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4839 # include <limits.h>
4841 # include <assert.h>
4845 if ac_fn_c_try_cpp
"$LINENO"; then :
4848 # Broken: fails on valid input.
4851 rm -f conftest.err conftest.
$ac_ext
4853 # OK, works on sane cases. Now check whether nonexistent headers
4854 # can be detected and how.
4855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #include <ac_nonexistent.h>
4859 if ac_fn_c_try_cpp
"$LINENO"; then :
4860 # Broken: success on invalid input.
4863 # Passes both tests.
4867 rm -f conftest.err conftest.
$ac_ext
4870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4871 rm -f conftest.err conftest.
$ac_ext
4872 if $ac_preproc_ok; then :
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4885 $as_echo "$CPP" >&6; }
4887 for ac_c_preproc_warn_flag
in '' yes
4889 # Use a header file that comes with gcc, so configuring glibc
4890 # with a fresh cross-compiler works.
4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4898 # include <limits.h>
4900 # include <assert.h>
4904 if ac_fn_c_try_cpp
"$LINENO"; then :
4907 # Broken: fails on valid input.
4910 rm -f conftest.err conftest.
$ac_ext
4912 # OK, works on sane cases. Now check whether nonexistent headers
4913 # can be detected and how.
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <ac_nonexistent.h>
4918 if ac_fn_c_try_cpp
"$LINENO"; then :
4919 # Broken: success on invalid input.
4922 # Passes both tests.
4926 rm -f conftest.err conftest.
$ac_ext
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.
$ac_ext
4931 if $ac_preproc_ok; then :
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." "$LINENO" 5; }
4941 ac_cpp
='$CPP $CPPFLAGS'
4942 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4946 # Find a good install program. We prefer a C program (faster),
4947 # so one script is as good as another. But avoid the broken or
4948 # incompatible versions:
4949 # SysV /etc/install, /usr/sbin/install
4950 # SunOS /usr/etc/install
4951 # IRIX /sbin/install
4953 # AmigaOS /C/install, which installs bootblocks on floppy discs
4954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4957 # OS/2's system install, which has a completely different semantic
4958 # ./install, which can be erroneously created by make from ./install.sh.
4959 # Reject install programs that cannot install multiple files.
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in #((
4973 .
/ | .
// |
/[cC
]/* | \
4974 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4975 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4981 for ac_prog
in ginstall scoinst
install; do
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4993 rm -rf conftest.one conftest.two conftest.dir
4994 echo one
> conftest.one
4995 echo two
> conftest.two
4997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4998 test -s conftest.one
&& test -s conftest.two
&&
4999 test -s conftest.dir
/conftest.one
&&
5000 test -s conftest.dir
/conftest.two
5002 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5015 rm -rf conftest.one conftest.two conftest.dir
5018 if test "${ac_cv_path_install+set}" = set; then
5019 INSTALL
=$ac_cv_path_install
5021 # As a last resort, use the slow shell script. Don't cache a
5022 # value for INSTALL within a source directory, because that will
5023 # break other packages using the cache if that directory is
5024 # removed, or if the value is a relative name.
5025 INSTALL
=$ac_install_sh
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5029 $as_echo "$INSTALL" >&6; }
5031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5032 # It thinks the first close brace ends the variable substitution.
5033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5037 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5039 if test "x$RANLIB" = x
; then
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5042 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$RANLIB"; then
5049 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir
=.
5056 for ac_exec_ext
in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 RANLIB
=$ac_cv_prog_RANLIB
5069 if test -n "$RANLIB"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5071 $as_echo "$RANLIB" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_RANLIB"; then
5080 ac_ct_RANLIB
=$RANLIB
5081 # Extract the first word of "ranlib", so it can be a program name with args.
5082 set dummy ranlib
; ac_word
=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$ac_ct_RANLIB"; then
5089 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir
=.
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5109 if test -n "$ac_ct_RANLIB"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5111 $as_echo "$ac_ct_RANLIB" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_RANLIB" = x
; then
5120 case $cross_compiling:$ac_tool_warned in
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned
=yes ;;
5126 RANLIB
=$ac_ct_RANLIB
5129 RANLIB
="$ac_cv_prog_RANLIB"
5134 ## Although we're running on an amd64 kernel, we're actually compiling for
5135 ## the x86 architecture. The user should probably have provided an
5136 ## explicit --build to `configure', but if everything else than the kernel
5137 ## is running in i386 mode, we can help them out.
5138 if test "$machine" = "amdx86-64"; then
5139 ac_fn_c_check_decl
"$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5140 if test "x$ac_cv_have_decl_i386" = x
""yes; then :
5144 if test "$ac_cv_have_decl_i386" = "yes"; then
5145 canonical
=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5147 machfile
="m/${machine}.h"
5151 # Extract the first word of "install-info", so it can be a program name with args.
5152 set dummy install-info
; ac_word
=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5158 case $INSTALL_INFO in
5160 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir
=.
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5182 if test -n "$INSTALL_INFO"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5184 $as_echo "$INSTALL_INFO" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 # Extract the first word of "install-info", so it can be a program name with args.
5192 set dummy install-info
; ac_word
=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 case $INSTALL_INFO in
5200 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5204 for as_dir
in /usr
/sbin
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5222 if test -n "$INSTALL_INFO"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5224 $as_echo "$INSTALL_INFO" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info
; ac_word
=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5238 case $INSTALL_INFO in
5240 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir
=.
5248 for ac_exec_ext
in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5262 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5263 if test -n "$INSTALL_INFO"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5265 $as_echo "$INSTALL_INFO" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5272 # Extract the first word of "gzip", so it can be a program name with args.
5273 set dummy
gzip; ac_word
=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5281 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir
=.
5289 for ac_exec_ext
in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5303 if test -n "$GZIP_PROG"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5305 $as_echo "$GZIP_PROG" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5314 ## Need makeinfo >= 4.6 (?) to build the manuals.
5315 # Extract the first word of "makeinfo", so it can be a program name with args.
5316 set dummy makeinfo
; ac_word
=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5324 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir
=.
5332 for ac_exec_ext
in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5346 MAKEINFO
=$ac_cv_path_MAKEINFO
5347 if test -n "$MAKEINFO"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5349 $as_echo "$MAKEINFO" >&6; }
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5356 if test "$MAKEINFO" != "no" && \
5357 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
5361 ## Makeinfo is unusual. For a released Emacs, the manuals are
5362 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5363 ## therefore in the category of "special tools" not normally required, which
5364 ## configure does not have to check for (eg autoconf itself).
5365 ## In a Bazaar checkout on the other hand, the manuals are not included.
5366 ## So makeinfo is a requirement to build from Bazaar, and configure
5367 ## should test for it as it does for any other build requirement.
5368 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5369 ## with pre-built manuals, from a Bazaar checkout.
5370 if test "$MAKEINFO" = "no"; then
5371 if test "x${with_makeinfo}" = "xno"; then
5373 elif test ! -e $srcdir/info
/emacs
; then
5374 as_fn_error
"You do not seem to have makeinfo >= 4.6, and your
5375 source tree does not seem to have pre-built manuals in the \`info' directory.
5376 Either install a suitable version of makeinfo, or re-run configure
5377 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5382 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5384 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5387 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5389 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5393 late_LDFLAGS
=$LDFLAGS
5394 if test "$GCC" = yes; then
5395 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5397 LDFLAGS
="$LDFLAGS -znocombreloc"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5401 $as_echo_n "checking for -znocombreloc... " >&6; }
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5406 if ac_fn_c_try_link
"$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5410 LDFLAGS
=$late_LDFLAGS
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5414 rm -f core conftest.err conftest.
$ac_objext \
5415 conftest
$ac_exeext conftest.
$ac_ext
5417 #### Extract some information from the operating system and machine files.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5420 - which libraries the lib-src programs will want, and
5421 - whether the GNU malloc routines are usable..." >&5
5422 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5423 - which libraries the lib-src programs will want, and
5424 - whether the GNU malloc routines are usable..." >&6;}
5426 ### First figure out CFLAGS (which we use for running the compiler here)
5427 ### and REAL_CFLAGS (which we use for real compilation).
5428 ### The two are the same except on a few systems, where they are made
5429 ### different to work around various lossages. For example,
5430 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5431 ### as implying static linking.
5433 ### If the CFLAGS env var is specified, we use that value
5434 ### instead of the default.
5436 ### It's not important that this name contain the PID; you can't run
5437 ### two configures in the same directory and have anything work
5439 tempcname
="conftest.c"
5442 #include "'${srcdir}'/src/'${opsysfile}'"
5443 #include "'${srcdir}'/src/'${machfile}'"
5447 configure___ libsrc_libs=LIBS_SYSTEM
5449 configure___ LIBX=-lX11
5451 configure___ unexec=UNEXEC
5453 #ifdef SYSTEM_MALLOC
5454 configure___ system_malloc=yes
5456 configure___ system_malloc=no
5459 #ifdef USE_MMAP_FOR_BUFFERS
5460 configure___ use_mmap_for_buffers=yes
5462 configure___ use_mmap_for_buffers=no
5465 #ifndef C_OPTIMIZE_SWITCH
5467 #define C_OPTIMIZE_SWITCH -O2
5469 #define C_OPTIMIZE_SWITCH -O
5473 #ifndef C_WARNINGS_SWITCH
5474 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5477 #ifndef LD_SWITCH_SYSTEM
5478 #define LD_SWITCH_SYSTEM
5481 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5483 #ifdef THIS_IS_CONFIGURE
5485 /* Get the CFLAGS for tests in configure. */
5487 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5489 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5492 #else /* not THIS_IS_CONFIGURE */
5494 /* Get the CFLAGS for real compilation. */
5496 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5498 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5501 #endif /* not THIS_IS_CONFIGURE */
5504 LDFLAGS
="${LDFLAGS} ${PROFILING_LDFLAGS}"
5506 # The value of CPP is a quoted variable reference, so we need to do this
5507 # to get its actual value...
5508 CPP
=`eval "echo $CPP"`
5509 eval `${CPP} -Isrc ${tempcname} \
5510 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5511 if test "x$SPECIFIED_CFLAGS" = x
; then
5512 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5513 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5515 REAL_CFLAGS
="$CFLAGS"
5519 ac_link
="$ac_link $ld_switch_system"
5523 if test "$machine" = "alpha"; then
5524 ac_fn_c_check_decl
"$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5525 if test "x$ac_cv_have_decl___ELF__" = x
""yes; then :
5529 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5530 ## With ELF, make sure that all common symbols get allocated to in the
5531 ## data section. Otherwise, the dump of temacs may miss variables in
5532 ## the shared library that have been initialized. For example, with
5533 ## GNU libc, __malloc_initialized would normally be resolved to the
5534 ## shared library's .bss section, which is fatal.
5535 if test "x$GCC" = "xyes"; then
5536 C_SWITCH_MACHINE
="-fno-common"
5538 as_fn_error
"What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5546 ## Some programs in src produce warnings saying certain subprograms
5547 ## are too complex and need a MAXMEM value greater than 2000 for
5548 ## additional optimization. --nils@exp-math.uni-essen.de
5549 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5550 C_SWITCH_SYSTEM
="-ma -qmaxmem=4000"
5551 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5552 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5556 ### Make sure subsequent tests use flags consistent with the build flags.
5558 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
5559 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
5561 CPPFLAGS
="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5566 # Check whether --enable-largefile was given.
5567 if test "${enable_largefile+set}" = set; then :
5568 enableval
=$enable_largefile;
5571 if test "$enable_largefile" != no
; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5574 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5575 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5578 ac_cv_sys_largefile_CC
=no
5579 if test "$GCC" != yes; then
5582 # IRIX 6.2 and later do not support large files by default,
5583 # so use the C compiler's -n32 option if that helps.
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 if ac_fn_c_try_compile
"$LINENO"; then :
5606 rm -f core conftest.err conftest.
$ac_objext
5608 if ac_fn_c_try_compile
"$LINENO"; then :
5609 ac_cv_sys_largefile_CC
=' -n32'; break
5611 rm -f core conftest.err conftest.
$ac_objext
5615 rm -f conftest.
$ac_ext
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5619 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5620 if test "$ac_cv_sys_largefile_CC" != no
; then
5621 CC
=$CC$ac_cv_sys_largefile_CC
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5625 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5649 if ac_fn_c_try_compile
"$LINENO"; then :
5650 ac_cv_sys_file_offset_bits
=no
; break
5652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #define _FILE_OFFSET_BITS 64
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5673 if ac_fn_c_try_compile
"$LINENO"; then :
5674 ac_cv_sys_file_offset_bits
=64; break
5676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 ac_cv_sys_file_offset_bits
=unknown
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5682 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5683 case $ac_cv_sys_file_offset_bits in #(
5686 cat >>confdefs.h
<<_ACEOF
5687 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5692 if test $ac_cv_sys_file_offset_bits = unknown
; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5694 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5695 if test "${ac_cv_sys_large_files+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly.
5703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5704 since some C++ compilers masquerading as C compilers
5705 incorrectly reject 9223372036854775807. */
5706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5708 && LARGE_OFF_T % 2147483647 == 1)
5718 if ac_fn_c_try_compile
"$LINENO"; then :
5719 ac_cv_sys_large_files
=no
; break
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #define _LARGE_FILES 1
5725 #include <sys/types.h>
5726 /* Check that off_t can represent 2**63 - 1 correctly.
5727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5728 since some C++ compilers masquerading as C compilers
5729 incorrectly reject 9223372036854775807. */
5730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5732 && LARGE_OFF_T % 2147483647 == 1)
5742 if ac_fn_c_try_compile
"$LINENO"; then :
5743 ac_cv_sys_large_files
=1; break
5745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5746 ac_cv_sys_large_files
=unknown
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5751 $as_echo "$ac_cv_sys_large_files" >&6; }
5752 case $ac_cv_sys_large_files in #(
5755 cat >>confdefs.h
<<_ACEOF
5756 #define _LARGE_FILES $ac_cv_sys_large_files
5766 ## If user specified a crt-dir, use that unconditionally.
5767 if test "X$CRT_DIR" = "X"; then
5769 case "$canonical" in
5770 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
5771 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5772 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5773 ## For anything else (eg /usr/lib32), it is up the user to specify
5774 ## the location (bug#5655).
5775 ## Test for crtn.o, not just the directory, because sometimes the
5776 ## directory exists but does not have the relevant files (bug#1287).
5777 ## FIXME better to test for binary compatibility somehow.
5778 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
5781 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
5785 hpux10-20
) CRT_DIR
=/lib
;;
5788 ## Default is /usr/lib.
5789 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
5793 ## Some platforms don't use any of these files, so it is not
5794 ## appropriate to put this test outside the if block.
5795 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
5796 as_fn_error
"crt*.o not found in specified location." "$LINENO" 5
5809 START_FILES
='ecrt0.o'
5812 ## Adding -lm confuses the dynamic linker, so omit it.
5814 START_FILES
='pre-crt0.o'
5817 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5818 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5820 gnu-linux | gnu-kfreebsd
)
5821 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5822 START_FILES
='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5824 hpux10-20 | hpux11
)
5826 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o'
5829 if test -f $
(CRT_DIR
)/crti.o
; then
5830 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5831 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5833 LIB_STANDARD
='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5834 START_FILES
='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5845 if test "${with_sound}" != "no"; then
5846 # Sound support for GNU/Linux and the free BSDs.
5847 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5849 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5850 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5851 eval as_val
=\$
$as_ac_Header
5852 if test "x$as_val" = x
""yes; then :
5853 cat >>confdefs.h
<<_ACEOF
5854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861 # Emulation library used on NetBSD.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5863 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5864 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5867 ac_check_lib_save_LIBS
=$LIBS
5868 LIBS
="-lossaudio $LIBS"
5869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5882 return _oss_ioctl ();
5887 if ac_fn_c_try_link
"$LINENO"; then :
5888 ac_cv_lib_ossaudio__oss_ioctl
=yes
5890 ac_cv_lib_ossaudio__oss_ioctl
=no
5892 rm -f core conftest.err conftest.
$ac_objext \
5893 conftest
$ac_exeext conftest.
$ac_ext
5894 LIBS
=$ac_check_lib_save_LIBS
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5897 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5898 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then :
5907 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5911 # Extract the first word of "pkg-config", so it can be a program name with args.
5912 set dummy pkg-config
; ac_word
=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5920 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir
=.
5928 for ac_exec_ext
in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5942 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5943 if test -n "$PKG_CONFIG"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5945 $as_echo "$PKG_CONFIG" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5953 if test "$PKG_CONFIG" = "no" ; then
5956 PKG_CONFIG_MIN_VERSION
=0.9.0
5957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
5959 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5961 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5963 $as_echo "yes" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
5967 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
5968 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
5970 $as_echo "$ALSA_CFLAGS" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
5973 $as_echo_n "checking ALSA_LIBS... " >&6; }
5974 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
5976 $as_echo "$ALSA_LIBS" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5982 ## If we have a custom action on failure, don't print errors, but
5983 ## do set a variable so people can do so.
5984 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5996 if test $succeeded = yes; then
6002 if test $HAVE_ALSA = yes; then
6003 SAVE_CFLAGS
="$CFLAGS"
6004 SAVE_LDFLAGS
="$LDFLAGS"
6005 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6006 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <asoundlib.h>
6013 snd_lib_error_set_handler (0);
6018 if ac_fn_c_try_compile
"$LINENO"; then :
6019 emacs_alsa_normal
=yes
6021 emacs_alsa_normal
=no
6023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6024 if test "$emacs_alsa_normal" != yes; then
6025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <alsa/asoundlib.h>
6031 snd_lib_error_set_handler (0);
6036 if ac_fn_c_try_compile
"$LINENO"; then :
6037 emacs_alsa_subdir
=yes
6039 emacs_alsa_subdir
=no
6041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 if test "$emacs_alsa_subdir" != yes; then
6043 as_fn_error
"pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6045 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6048 CFLAGS
="$SAVE_CFLAGS"
6049 LDFLAGS
="$SAVE_LDFLAGS"
6050 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6051 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6053 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6059 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6060 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6061 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6062 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6063 sys
/utsname.h
pwd.h utmp.h
6065 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6067 eval as_val
=\$
$as_ac_Header
6068 if test "x$as_val" = x
""yes; then :
6069 cat >>confdefs.h
<<_ACEOF
6070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6079 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <sys/personality.h>
6086 personality (PER_LINUX32)
6091 if ac_fn_c_try_compile
"$LINENO"; then :
6092 emacs_cv_personality_linux32
=yes
6094 emacs_cv_personality_linux32
=no
6096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6098 $as_echo "$emacs_cv_personality_linux32" >&6; }
6100 if test $emacs_cv_personality_linux32 = yes; then
6102 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6106 for ac_header
in term.h
6108 ac_fn_c_check_header_preproc
"$LINENO" "term.h" "ac_cv_header_term_h"
6109 if test "x$ac_cv_header_term_h" = x
""yes; then :
6110 cat >>confdefs.h
<<_ACEOF
6111 #define HAVE_TERM_H 1
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6119 $as_echo_n "checking for ANSI C header files... " >&6; }
6120 if test "${ac_cv_header_stdc+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6138 if ac_fn_c_try_compile
"$LINENO"; then :
6139 ac_cv_header_stdc
=yes
6141 ac_cv_header_stdc
=no
6143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6145 if test $ac_cv_header_stdc = yes; then
6146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153 $EGREP "memchr" >/dev
/null
2>&1; then :
6156 ac_cv_header_stdc
=no
6162 if test $ac_cv_header_stdc = yes; then
6163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "free" >/dev
/null
2>&1; then :
6173 ac_cv_header_stdc
=no
6179 if test $ac_cv_header_stdc = yes; then
6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then :
6184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6188 #if ((' ' & 0x0FF) == 0x020)
6189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6192 # define ISLOWER(c) \
6193 (('a' <= (c) && (c) <= 'i') \
6194 || ('j' <= (c) && (c) <= 'r') \
6195 || ('s' <= (c) && (c) <= 'z'))
6196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6204 for (i = 0; i < 256; i++)
6205 if (XOR (islower (i), ISLOWER (i))
6206 || toupper (i) != TOUPPER (i))
6211 if ac_fn_c_try_run
"$LINENO"; then :
6214 ac_cv_header_stdc
=no
6216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6223 $as_echo "$ac_cv_header_stdc" >&6; }
6224 if test $ac_cv_header_stdc = yes; then
6226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6231 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6232 if test "${ac_cv_header_time+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <sys/types.h>
6238 #include <sys/time.h>
6244 if ((struct tm *) 0)
6250 if ac_fn_c_try_compile
"$LINENO"; then :
6251 ac_cv_header_time
=yes
6253 ac_cv_header_time
=no
6255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6258 $as_echo "$ac_cv_header_time" >&6; }
6259 if test $ac_cv_header_time = yes; then
6261 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6265 ac_fn_c_check_decl
"$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6266 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then :
6272 cat >>confdefs.h
<<_ACEOF
6273 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6276 if test $ac_cv_have_decl_sys_siglist != yes; then
6277 # For Tru64, at least:
6278 ac_fn_c_check_decl
"$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6279 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then :
6285 cat >>confdefs.h
<<_ACEOF
6286 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6289 if test $ac_cv_have_decl___sys_siglist = yes; then
6291 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6296 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6297 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 #include <sys/types.h>
6303 #include <sys/wait.h>
6305 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6308 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6321 if ac_fn_c_try_compile
"$LINENO"; then :
6322 ac_cv_header_sys_wait_h
=yes
6324 ac_cv_header_sys_wait_h
=no
6326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6329 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6330 if test $ac_cv_header_sys_wait_h = yes; then
6332 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6338 $as_echo_n "checking for struct utimbuf... " >&6; }
6339 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #ifdef TIME_WITH_SYS_TIME
6345 #include <sys/time.h>
6348 #ifdef HAVE_SYS_TIME_H
6349 #include <sys/time.h>
6360 static struct utimbuf x; x.actime = x.modtime;
6365 if ac_fn_c_try_compile
"$LINENO"; then :
6366 emacs_cv_struct_utimbuf
=yes
6368 emacs_cv_struct_utimbuf
=no
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6373 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6374 if test $emacs_cv_struct_utimbuf = yes; then
6376 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6381 $as_echo_n "checking return type of signal handlers... " >&6; }
6382 if test "${ac_cv_type_signal+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <sys/types.h>
6393 return *(signal (0, 0)) (0) == 1;
6398 if ac_fn_c_try_compile
"$LINENO"; then :
6399 ac_cv_type_signal
=int
6401 ac_cv_type_signal
=void
6403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6406 $as_echo "$ac_cv_type_signal" >&6; }
6408 cat >>confdefs.h
<<_ACEOF
6409 #define RETSIGTYPE $ac_cv_type_signal
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6415 $as_echo_n "checking for speed_t... " >&6; }
6416 if test "${emacs_cv_speed_t+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #include <termios.h>
6430 if ac_fn_c_try_compile
"$LINENO"; then :
6431 emacs_cv_speed_t
=yes
6435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6438 $as_echo "$emacs_cv_speed_t" >&6; }
6439 if test $emacs_cv_speed_t = yes; then
6441 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6446 $as_echo_n "checking for struct timeval... " >&6; }
6447 if test "${emacs_cv_struct_timeval+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #ifdef TIME_WITH_SYS_TIME
6453 #include <sys/time.h>
6456 #ifdef HAVE_SYS_TIME_H
6457 #include <sys/time.h>
6465 static struct timeval x; x.tv_sec = x.tv_usec;
6470 if ac_fn_c_try_compile
"$LINENO"; then :
6471 emacs_cv_struct_timeval
=yes
6473 emacs_cv_struct_timeval
=no
6475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6478 $as_echo "$emacs_cv_struct_timeval" >&6; }
6479 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6480 if test $emacs_cv_struct_timeval = yes; then
6482 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6487 $as_echo_n "checking for struct exception... " >&6; }
6488 if test "${emacs_cv_struct_exception+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6497 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6502 if ac_fn_c_try_compile
"$LINENO"; then :
6503 emacs_cv_struct_exception
=yes
6505 emacs_cv_struct_exception
=no
6507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6510 $as_echo "$emacs_cv_struct_exception" >&6; }
6511 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6512 if test $emacs_cv_struct_exception != yes; then
6514 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6518 for ac_header
in sys
/socket.h
6520 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6521 if test "x$ac_cv_header_sys_socket_h" = x
""yes; then :
6522 cat >>confdefs.h
<<_ACEOF
6523 #define HAVE_SYS_SOCKET_H 1
6530 for ac_header
in net
/if.h
6532 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6533 #if HAVE_SYS_SOCKET_H
6534 #include <sys/socket.h>
6537 if test "x$ac_cv_header_net_if_h" = x
""yes; then :
6538 cat >>confdefs.h
<<_ACEOF
6539 #define HAVE_NET_IF_H 1
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6548 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6549 if test "${ac_cv_struct_tm+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6561 int *p = &tm.tm_sec;
6567 if ac_fn_c_try_compile
"$LINENO"; then :
6568 ac_cv_struct_tm
=time.h
6570 ac_cv_struct_tm
=sys
/time.h
6572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6575 $as_echo "$ac_cv_struct_tm" >&6; }
6576 if test $ac_cv_struct_tm = sys
/time.h
; then
6578 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6582 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6583 #include <$ac_cv_struct_tm>
6586 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6588 cat >>confdefs.h
<<_ACEOF
6589 #define HAVE_STRUCT_TM_TM_ZONE 1
6595 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6597 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6600 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6602 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6608 cat >>confdefs.h
<<_ACEOF
6609 #define HAVE_DECL_TZNAME $ac_have_decl
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6613 $as_echo_n "checking for tzname... " >&6; }
6614 if test "${ac_cv_var_tzname+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6620 #if !HAVE_DECL_TZNAME
6621 extern char *tzname[];
6627 return tzname[0][0];
6632 if ac_fn_c_try_link
"$LINENO"; then :
6633 ac_cv_var_tzname
=yes
6637 rm -f core conftest.err conftest.
$ac_objext \
6638 conftest
$ac_exeext conftest.
$ac_ext
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6641 $as_echo "$ac_cv_var_tzname" >&6; }
6642 if test $ac_cv_var_tzname = yes; then
6644 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6649 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6651 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6653 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6657 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6658 #if HAVE_SYS_SOCKET_H
6659 #include <sys/socket.h>
6665 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then :
6667 cat >>confdefs.h
<<_ACEOF
6668 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6673 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6674 #if HAVE_SYS_SOCKET_H
6675 #include <sys/socket.h>
6681 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then :
6683 cat >>confdefs.h
<<_ACEOF
6684 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6689 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6690 #if HAVE_SYS_SOCKET_H
6691 #include <sys/socket.h>
6697 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then :
6699 cat >>confdefs.h
<<_ACEOF
6700 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6705 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6706 #if HAVE_SYS_SOCKET_H
6707 #include <sys/socket.h>
6713 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then :
6715 cat >>confdefs.h
<<_ACEOF
6716 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6721 ac_fn_c_check_member
"$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6722 #if HAVE_SYS_SOCKET_H
6723 #include <sys/socket.h>
6729 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then :
6731 cat >>confdefs.h
<<_ACEOF
6732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6741 $as_echo_n "checking for function prototypes... " >&6; }
6742 if test "$ac_cv_prog_cc_c89" != no
; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6744 $as_echo "yes" >&6; }
6746 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6749 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6757 $as_echo_n "checking for working volatile... " >&6; }
6758 if test "${ac_cv_c_volatile+set}" = set; then :
6759 $as_echo_n "(cached) " >&6
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6769 int * volatile y = (int *) 0;
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 ac_cv_c_volatile
=yes
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6783 $as_echo "$ac_cv_c_volatile" >&6; }
6784 if test $ac_cv_c_volatile = no
; then
6786 $as_echo "#define volatile /**/" >>confdefs.h
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6792 if test "${ac_cv_c_const+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6801 /* FIXME: Include the comments suggested by Paul. */
6803 /* Ultrix mips cc rejects this. */
6804 typedef int charset[2];
6806 /* SunOS 4.1.1 cc rejects this. */
6807 char const *const *pcpcc;
6809 /* NEC SVR4.0.2 mips cc rejects this. */
6810 struct point {int x, y;};
6811 static struct point const zero = {0,0};
6812 /* AIX XL C 1.02.0.0 rejects this.
6813 It does not let you subtract one const X* pointer from another in
6814 an arm of an if-expression whose if-part is not a constant
6816 const char *g = "string";
6817 pcpcc = &g + (g ? g-g : 0);
6818 /* HPUX 7.0 cc rejects these. */
6820 ppc = (char**) pcpcc;
6821 pcpcc = (char const *const *) ppc;
6822 { /* SCO 3.2v4 cc rejects this. */
6824 char const *s = 0 ? (char *) 0 : (char const *) 0;
6829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6831 const int *foo = &x[0];
6834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6835 typedef const int *iptr;
6839 { /* AIX XL C 1.02.0.0 rejects this saying
6840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6841 struct s { int j; const int *ap[3]; };
6842 struct s *b; b->j = 5;
6844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6848 return !cs[0] && !zero.x;
6855 if ac_fn_c_try_compile
"$LINENO"; then :
6860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6863 $as_echo "$ac_cv_c_const" >&6; }
6864 if test $ac_cv_c_const = no
; then
6866 $as_echo "#define const /**/" >>confdefs.h
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6871 $as_echo_n "checking for void * support... " >&6; }
6872 if test "${emacs_cv_void_star+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6886 if ac_fn_c_try_compile
"$LINENO"; then :
6887 emacs_cv_void_star
=yes
6889 emacs_cv_void_star
=no
6891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6894 $as_echo "$emacs_cv_void_star" >&6; }
6895 if test $emacs_cv_void_star = yes; then
6896 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6899 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6909 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6910 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6911 $as_echo_n "(cached) " >&6
6913 cat >conftest.
make <<\_ACEOF
6916 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6921 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6923 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6927 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 SET_MAKE
="MAKE=${MAKE-make}"
6938 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6940 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6942 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
6943 if test "x$testval" != x
; then
6946 ac_enable_autodepend
=no
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
6949 $as_echo "$HAVE_GNU_MAKE" >&6; }
6950 if test $HAVE_GNU_MAKE = yes; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
6952 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6953 SAVE_CFLAGS
="$CFLAGS"
6954 CFLAGS
="$CFLAGS -MMD -MF deps.d"
6955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6966 if ac_fn_c_try_compile
"$LINENO"; then :
6969 ac_enable_autodepend
=no
6971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6972 CFLAGS
="$SAVE_CFLAGS"
6973 test -f deps.d || ac_enable_autodepend
=no
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
6976 $as_echo "$ac_enable_autodepend" >&6; }
6978 if test $ac_enable_autodepend = yes; then
6980 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
6986 $as_echo_n "checking for long file names... " >&6; }
6987 if test "${ac_cv_sys_long_file_names+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 ac_cv_sys_long_file_names
=yes
6991 # Test for long file names in all the places we know might matter:
6992 # . the current directory, where building will happen
6993 # $prefix/lib where we will be installing things
6994 # $exec_prefix/lib likewise
6995 # $TMPDIR if set, where it might want to write temporary files
6996 # /tmp where it might want to write temporary files
6999 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
7000 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7001 # in the usual case where exec_prefix is '${prefix}'.
7003 . |
/* | ?
:[\\/]*) ;; #(
7006 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
7007 ac_xdir
=$ac_dir/cf$$
7008 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
7009 ac_tf1
=$ac_xdir/conftest9012345
7010 ac_tf2
=$ac_xdir/conftest9012346
7011 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7012 ac_cv_sys_long_file_names
=no
7013 rm -f -r "$ac_xdir" 2>/dev
/null
7014 test $ac_cv_sys_long_file_names = no
&& break
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7018 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7019 if test $ac_cv_sys_long_file_names = yes; then
7021 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7026 #### Choose a window system.
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7029 $as_echo_n "checking for X... " >&6; }
7032 # Check whether --with-x was given.
7033 if test "${with_x+set}" = set; then :
7037 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7038 if test "x$with_x" = xno
; then
7039 # The user explicitly disabled X.
7042 case $x_includes,$x_libraries in #(
7043 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
7044 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7047 # One or both of the vars are not set, and there is no cached value.
7048 ac_x_includes
=no ac_x_libraries
=no
7049 rm -f -r conftest.dir
7050 if mkdir conftest.dir
; then
7052 cat >Imakefile
<<'_ACEOF'
7054 @echo incroot='${INCROOT}'
7056 @echo usrlibdir='${USRLIBDIR}'
7058 @echo libdir='${LIBDIR}'
7060 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7061 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7062 for ac_var
in incroot usrlibdir libdir
; do
7063 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7065 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7066 for ac_extension
in a so sl dylib la dll
; do
7067 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7068 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7069 ac_im_usrlibdir
=$ac_im_libdir; break
7072 # Screen out bogus values from the imake configuration. They are
7073 # bogus both because they are the default anyway, and because
7074 # using them would break gcc on systems where it needs fixed includes.
7075 case $ac_im_incroot in
7076 /usr
/include
) ac_x_includes
= ;;
7077 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7079 case $ac_im_usrlibdir in
7080 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
7081 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7085 rm -f -r conftest.dir
7088 # Standard set of common directories for X headers.
7089 # Check X11 before X11Rn because it is often a symlink to the current release.
7103 /usr/local/X11/include
7104 /usr/local/X11R7/include
7105 /usr/local/X11R6/include
7106 /usr/local/X11R5/include
7107 /usr/local/X11R4/include
7109 /usr/local/include/X11
7110 /usr/local/include/X11R7
7111 /usr/local/include/X11R6
7112 /usr/local/include/X11R5
7113 /usr/local/include/X11R4
7117 /usr/XFree86/include/X11
7121 /usr/unsupported/include
7123 /usr/local/x11r5/include
7124 /usr/lpp/Xamples/include
7126 /usr/openwin/include
7127 /usr/openwin/share/include'
7129 if test "$ac_x_includes" = no
; then
7130 # Guess where to find include files, by looking for Xlib.h.
7131 # First, try using that file with no special directory specified.
7132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <X11/Xlib.h>
7136 if ac_fn_c_try_cpp
"$LINENO"; then :
7137 # We can compile using X headers with no special include directory.
7140 for ac_dir
in $ac_x_header_dirs; do
7141 if test -r "$ac_dir/X11/Xlib.h"; then
7142 ac_x_includes
=$ac_dir
7147 rm -f conftest.err conftest.
$ac_ext
7148 fi # $ac_x_includes = no
7150 if test "$ac_x_libraries" = no
; then
7151 # Check for the libraries.
7152 # See if we find them without any special options.
7153 # Don't add to $LIBS permanently.
7156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 #include <X11/Xlib.h>
7167 if ac_fn_c_try_link
"$LINENO"; then :
7169 # We can link X programs with no special library path.
7173 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7175 # Don't even attempt the hair of trying to link an X program!
7176 for ac_extension
in a so sl dylib la dll
; do
7177 if test -r "$ac_dir/libX11.$ac_extension"; then
7178 ac_x_libraries
=$ac_dir
7184 rm -f core conftest.err conftest.
$ac_objext \
7185 conftest
$ac_exeext conftest.
$ac_ext
7186 fi # $ac_x_libraries = no
7188 case $ac_x_includes,$ac_x_libraries in #(
7190 # Didn't find X, or a directory has "'" in its name.
7191 ac_cv_have_x
="have_x=no";; #(
7193 # Record where we found X for the cache.
7194 ac_cv_have_x
="have_x=yes\
7195 ac_x_includes='$ac_x_includes'\
7196 ac_x_libraries='$ac_x_libraries'"
7202 eval "$ac_cv_have_x"
7205 if test "$have_x" != yes; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7207 $as_echo "$have_x" >&6; }
7210 # If each of the values was on the command line, it overrides each guess.
7211 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7212 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7213 # Update the cache value to reflect the command line values.
7214 ac_cv_have_x
="have_x=yes\
7215 ac_x_includes='$x_includes'\
7216 ac_x_libraries='$x_libraries'"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7218 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7221 if test "$no_x" = yes; then
7227 ## Workaround for bug in autoconf <= 2.62.
7228 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7229 ## No need to do anything special for these standard directories.
7230 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
7232 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7236 LD_SWITCH_X_SITE_AUX
=
7237 LD_SWITCH_X_SITE_AUX_RPATH
=
7238 if test "${x_libraries}" != NONE
; then
7239 if test -n "${x_libraries}"; then
7240 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7241 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7242 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7244 x_default_search_path
=""
7245 x_search_path
=${x_libraries}
7246 if test -z "${x_search_path}"; then
7247 x_search_path
=/usr
/lib
7249 for x_library
in `echo ${x_search_path}: | \
7250 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7252 ${x_library}/X11/%L/%T/%N%C%S:\
7253 ${x_library}/X11/%l/%T/%N%C%S:\
7254 ${x_library}/X11/%T/%N%C%S:\
7255 ${x_library}/X11/%L/%T/%N%S:\
7256 ${x_library}/X11/%l/%T/%N%S:\
7257 ${x_library}/X11/%T/%N%S"
7258 if test x
"${x_default_search_path}" = x
; then
7259 x_default_search_path
=${x_search_path}
7261 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7268 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7269 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7272 if test x
"${x_includes}" = x
; then
7273 bitmapdir
=/usr
/include
/X11
/bitmaps
7275 # accumulate include directories that have X11 bitmap subdirectories
7277 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7278 if test -d "${bmd}/X11/bitmaps"; then
7279 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7281 if test -d "${bmd}/bitmaps"; then
7282 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7285 if test ${bmd_acc} != "dummyval"; then
7286 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7293 tmp_CPPFLAGS
="$CPPFLAGS"
7294 tmp_CFLAGS
="$CFLAGS"
7295 CPPFLAGS
="$CPPFLAGS -x objective-c"
7296 CFLAGS
="$CFLAGS -x objective-c"
7297 if test "${with_ns}" != no
; then
7298 if test "${opsys}" = darwin
; then
7300 ns_appdir
=`pwd`/nextstep
/Emacs.app
7301 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
7302 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
7303 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
7304 elif test -f $GNUSTEP_CONFIG_FILE; then
7306 ns_appdir
=`pwd`/nextstep
/Emacs.app
7307 ns_appbindir
=`pwd`/nextstep
/Emacs.app
7308 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
7309 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
7310 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
7311 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7312 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7313 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7314 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7315 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7316 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7319 ac_fn_c_check_header_mongrel
"$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7320 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then :
7323 as_fn_error
"\`--with-ns' was specified, but the include
7324 files are missing or cannot be compiled." "$LINENO" 5
7328 NS_HAVE_NSINTEGER
=yes
7329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 #include <Foundation/NSObjCRuntime.h>
7340 if ac_fn_c_try_compile
"$LINENO"; then :
7341 ns_have_nsinteger
=yes
7343 ns_have_nsinteger
=no
7345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 if test $ns_have_nsinteger = no
; then
7347 NS_HAVE_NSINTEGER
=no
7353 if test "${HAVE_NS}" = yes; then
7354 window_system
=nextstep
7356 # set up packaging dirs
7357 exec_prefix
=${ns_appbindir}
7358 libexecdir
=${ns_appbindir}/libexec
7359 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7360 prefix
=${ns_appresdir}
7362 NS_OBJ
="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7363 NS_SUPPORT
="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7365 CFLAGS
="$tmp_CFLAGS"
7366 CPPFLAGS
="$tmp_CPPFLAGS"
7371 case "${window_system}" in
7375 case "${with_x_toolkit}" in
7376 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7377 motif
) USE_X_TOOLKIT
=MOTIF
;;
7379 USE_X_TOOLKIT
=none
;;
7380 no
) USE_X_TOOLKIT
=none
;;
7381 * ) USE_X_TOOLKIT
=maybe
;;
7391 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
7392 # Extract the first word of "X", so it can be a program name with args.
7393 set dummy X
; ac_word
=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$HAVE_XSERVER"; then
7400 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
7402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir
=.
7407 for ac_exec_ext
in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_HAVE_XSERVER
="true"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
7420 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
7421 if test -n "$HAVE_XSERVER"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7423 $as_echo "$HAVE_XSERVER" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7430 if test "$HAVE_XSERVER" = true ||
7431 test -n "$DISPLAY" ||
7432 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7433 as_fn_error
"You seem to be running X, but no X development libraries
7434 were found. You should install the relevant development files for X
7435 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7436 sure you have development files for image handling, i.e.
7437 tiff, gif, jpeg, png and xpm.
7438 If you are sure you want Emacs compiled without X window support, pass
7440 to configure." "$LINENO" 5
7444 ### If we're using X11, we should use the X menu package.
7447 yes ) HAVE_MENUS
=yes ;;
7450 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7451 # Assume not, until told otherwise.
7454 ac_fn_c_check_func
"$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7455 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then :
7461 ac_fn_c_check_func
"$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7462 if test "x$ac_cv_func_malloc_set_state" = x
""yes; then :
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7469 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7470 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 extern void (* __after_morecore_hook)();
7479 __after_morecore_hook = 0
7484 if ac_fn_c_try_link
"$LINENO"; then :
7485 emacs_cv_var___after_morecore_hook
=yes
7487 emacs_cv_var___after_morecore_hook
=no
7489 rm -f core conftest.err conftest.
$ac_objext \
7490 conftest
$ac_exeext conftest.
$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7493 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7494 if test $emacs_cv_var___after_morecore_hook = no
; then
7497 if test "${system_malloc}" = "yes"; then
7500 (The GNU allocators don't work with this system configuration.)"
7502 if test "$doug_lea_malloc" = "yes" ; then
7503 if test "$GNU_MALLOC" = yes ; then
7505 (Using Doug Lea's new malloc from the GNU C Library.)"
7508 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7512 if test x
"${REL_ALLOC}" = x
; then
7513 REL_ALLOC
=${GNU_MALLOC}
7520 for ac_header
in $ac_header_list
7522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7525 eval as_val
=\$
$as_ac_Header
7526 if test "x$as_val" = x
""yes; then :
7527 cat >>confdefs.h
<<_ACEOF
7528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7542 for ac_func
in getpagesize
7544 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7545 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
7546 cat >>confdefs.h
<<_ACEOF
7547 #define HAVE_GETPAGESIZE 1
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7554 $as_echo_n "checking for working mmap... " >&6; }
7555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 if test "$cross_compiling" = yes; then :
7559 ac_cv_func_mmap_fixed_mapped
=no
7561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 /* malloc might have been renamed as rpl_malloc. */
7567 /* Thanks to Mike Haertel and Jim Avera for this test.
7568 Here is a matrix of mmap possibilities:
7569 mmap private not fixed
7570 mmap private fixed at somewhere currently unmapped
7571 mmap private fixed at somewhere already mapped
7572 mmap shared not fixed
7573 mmap shared fixed at somewhere currently unmapped
7574 mmap shared fixed at somewhere already mapped
7575 For private mappings, we should verify that changes cannot be read()
7576 back from the file, nor mmap's back from the file at a different
7577 address. (There have been systems where private was not correctly
7578 implemented like the infamous i386 svr4.0, and systems where the
7579 VM page cache was not coherent with the file system buffer cache
7580 like early versions of FreeBSD and possibly contemporary NetBSD.)
7581 For shared mappings, we should conversely verify that changes get
7582 propagated back to all the places they're supposed to be.
7584 Grep wants private fixed already mapped.
7585 The main things grep needs to know about mmap are:
7586 * does it exist and is it safe to write into the mmap'd area
7587 * how to use it (BSD variants) */
7590 #include <sys/mman.h>
7592 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7596 /* This mess was copied from the GNU getpagesize.h. */
7597 #ifndef HAVE_GETPAGESIZE
7598 # ifdef _SC_PAGESIZE
7599 # define getpagesize() sysconf(_SC_PAGESIZE)
7600 # else /* no _SC_PAGESIZE */
7601 # ifdef HAVE_SYS_PARAM_H
7602 # include <sys/param.h>
7603 # ifdef EXEC_PAGESIZE
7604 # define getpagesize() EXEC_PAGESIZE
7605 # else /* no EXEC_PAGESIZE */
7607 # define getpagesize() NBPG * CLSIZE
7610 # endif /* no CLSIZE */
7611 # else /* no NBPG */
7613 # define getpagesize() NBPC
7614 # else /* no NBPC */
7616 # define getpagesize() PAGESIZE
7617 # endif /* PAGESIZE */
7618 # endif /* no NBPC */
7619 # endif /* no NBPG */
7620 # endif /* no EXEC_PAGESIZE */
7621 # else /* no HAVE_SYS_PARAM_H */
7622 # define getpagesize() 8192 /* punt totally */
7623 # endif /* no HAVE_SYS_PARAM_H */
7624 # endif /* no _SC_PAGESIZE */
7626 #endif /* no HAVE_GETPAGESIZE */
7631 char *data, *data2, *data3;
7635 pagesize = getpagesize ();
7637 /* First, make a file with some known garbage in it. */
7638 data = (char *) malloc (pagesize);
7641 for (i = 0; i < pagesize; ++i)
7642 *(data + i) = rand ();
7644 fd = creat ("conftest.mmap", 0600);
7647 if (write (fd, data, pagesize) != pagesize)
7651 /* Next, check that the tail of a page is zero-filled. File must have
7652 non-zero length, otherwise we risk SIGBUS for entire page. */
7653 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7657 if (write (fd2, data2, 1) != 1)
7659 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7660 if (data2 == MAP_FAILED)
7662 for (i = 0; i < pagesize; ++i)
7666 if (munmap (data2, pagesize))
7669 /* Next, try to mmap the file at a fixed address which already has
7670 something else allocated at it. If we can, also make sure that
7671 we see the same garbage. */
7672 fd = open ("conftest.mmap", O_RDWR);
7675 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7676 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7678 for (i = 0; i < pagesize; ++i)
7679 if (*(data + i) != *(data2 + i))
7682 /* Finally, make sure that changes to the mapped area do not
7683 percolate back to the file as seen by read(). (This is a bug on
7684 some variants of i386 svr4.0.) */
7685 for (i = 0; i < pagesize; ++i)
7686 *(data2 + i) = *(data2 + i) + 1;
7687 data3 = (char *) malloc (pagesize);
7690 if (read (fd, data3, pagesize) != pagesize)
7692 for (i = 0; i < pagesize; ++i)
7693 if (*(data + i) != *(data3 + i))
7699 if ac_fn_c_try_run
"$LINENO"; then :
7700 ac_cv_func_mmap_fixed_mapped
=yes
7702 ac_cv_func_mmap_fixed_mapped
=no
7704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7710 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7711 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7713 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7716 rm -f conftest.mmap conftest.txt
7718 if test $use_mmap_for_buffers = yes; then
7722 LIBS
="$libsrc_libs $LIBS"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7725 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7726 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7729 ac_check_lib_save_LIBS
=$LIBS
7731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7744 return dnet_ntoa ();
7749 if ac_fn_c_try_link
"$LINENO"; then :
7750 ac_cv_lib_dnet_dnet_ntoa
=yes
7752 ac_cv_lib_dnet_dnet_ntoa
=no
7754 rm -f core conftest.err conftest.
$ac_objext \
7755 conftest
$ac_exeext conftest.
$ac_ext
7756 LIBS
=$ac_check_lib_save_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7759 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7760 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then :
7761 cat >>confdefs.h
<<_ACEOF
7762 #define HAVE_LIBDNET 1
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7771 $as_echo_n "checking for main in -lXbsd... " >&6; }
7772 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7775 ac_check_lib_save_LIBS
=$LIBS
7777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7789 if ac_fn_c_try_link
"$LINENO"; then :
7790 ac_cv_lib_Xbsd_main
=yes
7792 ac_cv_lib_Xbsd_main
=no
7794 rm -f core conftest.err conftest.
$ac_objext \
7795 conftest
$ac_exeext conftest.
$ac_ext
7796 LIBS
=$ac_check_lib_save_LIBS
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7799 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7800 if test "x$ac_cv_lib_Xbsd_main" = x
""yes; then :
7801 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7806 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7807 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7810 ac_check_lib_save_LIBS
=$LIBS
7811 LIBS
="-lpthreads $LIBS"
7812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7815 /* Override any GCC internal prototype to avoid an error.
7816 Use char because int might match the return type of a GCC
7817 builtin and then its argument prototype would still apply. */
7830 if ac_fn_c_try_link
"$LINENO"; then :
7831 ac_cv_lib_pthreads_cma_open
=yes
7833 ac_cv_lib_pthreads_cma_open
=no
7835 rm -f core conftest.err conftest.
$ac_objext \
7836 conftest
$ac_exeext conftest.
$ac_ext
7837 LIBS
=$ac_check_lib_save_LIBS
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7840 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7841 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then :
7842 cat >>confdefs.h
<<_ACEOF
7843 #define HAVE_LIBPTHREADS 1
7846 LIBS
="-lpthreads $LIBS"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7855 $as_echo_n "checking for -bbigtoc option... " >&6; }
7856 if test "${gdb_cv_bigtoc+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7861 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7862 *) gdb_cv_bigtoc
=-bbigtoc ;;
7865 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7877 if ac_fn_c_try_link
"$LINENO"; then :
7882 rm -f core conftest.err conftest.
$ac_objext \
7883 conftest
$ac_exeext conftest.
$ac_ext
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
7887 $as_echo "$gdb_cv_bigtoc" >&6; }
7891 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7892 # used for the tests that follow. We set them back to REAL_CFLAGS and
7893 # REAL_CPPFLAGS later on.
7895 REAL_CPPFLAGS
="$CPPFLAGS"
7897 if test "${HAVE_X11}" = "yes"; then
7898 DEFS
="$C_SWITCH_X_SITE $DEFS"
7899 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7901 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7902 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7904 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7905 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7906 # but it's more convenient here to set LD_RUN_PATH
7907 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7908 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7909 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7913 if test "${opsys}" = "gnu-linux"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
7915 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7922 XOpenDisplay ("foo");
7927 if ac_fn_c_try_link
"$LINENO"; then :
7928 xlinux_first_failure
=no
7930 xlinux_first_failure
=yes
7932 rm -f core conftest.err conftest.
$ac_objext \
7933 conftest
$ac_exeext conftest.
$ac_ext
7934 if test "${xlinux_first_failure}" = "yes"; then
7935 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7936 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7937 OLD_CPPFLAGS
="$CPPFLAGS"
7939 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7940 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7941 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7942 LIBS
="$LIBS -b i486-linuxaout"
7943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7949 XOpenDisplay ("foo");
7954 if ac_fn_c_try_link
"$LINENO"; then :
7955 xlinux_second_failure
=no
7957 xlinux_second_failure
=yes
7959 rm -f core conftest.err conftest.
$ac_objext \
7960 conftest
$ac_exeext conftest.
$ac_ext
7961 if test "${xlinux_second_failure}" = "yes"; then
7962 # If we get the same failure with -b, there is no use adding -b.
7963 # So take it out. This plays safe.
7964 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7965 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7966 CPPFLAGS
="$OLD_CPPFLAGS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7972 $as_echo "yes" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7980 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7981 # header files included from there.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
7983 $as_echo_n "checking for Xkb... " >&6; }
7984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <X11/Xlib.h>
7987 #include <X11/XKBlib.h>
7991 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7996 if ac_fn_c_try_link
"$LINENO"; then :
8001 rm -f core conftest.err conftest.
$ac_objext \
8002 conftest
$ac_exeext conftest.
$ac_ext
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8004 $as_echo "$emacs_xkb" >&6; }
8005 if test $emacs_xkb = yes; then
8007 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8011 for ac_func
in XrmSetDatabase XScreenResourceString \
8012 XScreenNumberOfScreen XSetWMProtocols
8014 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8015 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8016 eval as_val
=\$
$as_ac_var
8017 if test "x$as_val" = x
""yes; then :
8018 cat >>confdefs.h
<<_ACEOF
8019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8027 if test "${window_system}" = "x11"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8029 $as_echo_n "checking X11 version 6... " >&6; }
8030 if test "${emacs_cv_x11_version_6+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <X11/Xlib.h>
8039 #if XlibSpecificationRelease < 6
8047 if ac_fn_c_try_link
"$LINENO"; then :
8048 emacs_cv_x11_version_6
=yes
8050 emacs_cv_x11_version_6
=no
8052 rm -f core conftest.err conftest.
$ac_objext \
8053 conftest
$ac_exeext conftest.
$ac_ext
8056 if test $emacs_cv_x11_version_6 = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8058 $as_echo "6 or newer" >&6; }
8060 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8064 $as_echo "before 6" >&6; }
8069 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8071 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
8072 if test "${with_rsvg}" != "no"; then
8073 RSVG_REQUIRED
=2.11.0
8074 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
8079 # Extract the first word of "pkg-config", so it can be a program name with args.
8080 set dummy pkg-config
; ac_word
=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8088 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir
=.
8096 for ac_exec_ext
in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8110 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8111 if test -n "$PKG_CONFIG"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8113 $as_echo "$PKG_CONFIG" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8121 if test "$PKG_CONFIG" = "no" ; then
8124 PKG_CONFIG_MIN_VERSION
=0.9.0
8125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8127 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8129 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8135 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8136 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8138 $as_echo "$RSVG_CFLAGS" >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8141 $as_echo_n "checking RSVG_LIBS... " >&6; }
8142 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8144 $as_echo "$RSVG_LIBS" >&6; }
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8150 ## If we have a custom action on failure, don't print errors, but
8151 ## do set a variable so people can do so.
8152 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8159 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8160 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8164 if test $succeeded = yes; then
8173 if test ".${RSVG_CFLAGS}" != "."; then
8176 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8178 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
8179 LIBS
="$RSVG_LIBS $LIBS"
8186 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
8189 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8194 # Extract the first word of "pkg-config", so it can be a program name with args.
8195 set dummy pkg-config
; ac_word
=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8203 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8210 test -z "$as_dir" && as_dir
=.
8211 for ac_exec_ext
in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8225 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8226 if test -n "$PKG_CONFIG"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8228 $as_echo "$PKG_CONFIG" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test "$PKG_CONFIG" = "no" ; then
8239 PKG_CONFIG_MIN_VERSION
=0.9.0
8240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8242 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8244 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246 $as_echo "yes" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8250 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8251 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8253 $as_echo "$GTK_CFLAGS" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8256 $as_echo_n "checking GTK_LIBS... " >&6; }
8257 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8259 $as_echo "$GTK_LIBS" >&6; }
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8265 ## If we have a custom action on failure, don't print errors, but
8266 ## do set a variable so people can do so.
8267 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8279 if test $succeeded = yes; then
8285 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8286 as_fn_error
"$GTK_PKG_ERRORS" "$LINENO" 5
8292 if test x
"$pkg_check_gtk" = xyes
; then
8296 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
8297 CFLAGS
="$CFLAGS $GTK_CFLAGS"
8298 LIBS
="$GTK_LIBS $LIBS"
8300 for ac_func
in gtk_main
8302 ac_fn_c_check_func
"$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8303 if test "x$ac_cv_func_gtk_main" = x
""yes; then :
8304 cat >>confdefs.h
<<_ACEOF
8305 #define HAVE_GTK_MAIN 1
8311 if test "${GTK_COMPILES}" != "yes"; then
8312 if test "$USE_X_TOOLKIT" != "maybe"; then
8313 as_fn_error
"Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8318 $as_echo "#define USE_GTK 1" >>confdefs.h
8322 if $PKG_CONFIG --atleast-version=2.10 gtk
+-2.0
; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8326 closing open displays. This is no problem if you just use
8327 one display, but if you use more than one and close one of them
8328 Emacs may crash." >&5
8329 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8330 closing open displays. This is no problem if you just use
8331 one display, but if you use more than one and close one of them
8332 Emacs may crash." >&2;}
8341 if test "${HAVE_GTK}" = "yes"; then
8343 if test "$with_toolkit_scroll_bars" != no
; then
8344 with_toolkit_scroll_bars
=yes
8347 HAVE_GTK_MULTIDISPLAY
=no
8348 for ac_func
in gdk_display_open
8350 ac_fn_c_check_func
"$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8351 if test "x$ac_cv_func_gdk_display_open" = x
""yes; then :
8352 cat >>confdefs.h
<<_ACEOF
8353 #define HAVE_GDK_DISPLAY_OPEN 1
8355 HAVE_GTK_MULTIDISPLAY
=yes
8359 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8361 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8365 HAVE_GTK_FILE_SELECTION
=no
8366 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8367 #include <gtk/gtk.h>
8369 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x
""yes; then :
8370 HAVE_GTK_FILE_SELECTION
=yes
8372 HAVE_GTK_FILE_SELECTION
=no
8375 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8376 for ac_func
in gtk_file_selection_new
8378 ac_fn_c_check_func
"$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8379 if test "x$ac_cv_func_gtk_file_selection_new" = x
""yes; then :
8380 cat >>confdefs.h
<<_ACEOF
8381 #define HAVE_GTK_FILE_SELECTION_NEW 1
8383 HAVE_GTK_FILE_SELECTION
=yes
8385 HAVE_GTK_FILE_SELECTION
=no
8391 HAVE_GTK_FILE_CHOOSER
=no
8392 ac_fn_c_check_decl
"$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8393 #include <gtk/gtk.h>
8395 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x
""yes; then :
8396 HAVE_GTK_FILE_CHOOSER
=yes
8398 HAVE_GTK_FILE_CHOOSER
=no
8401 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8402 for ac_func
in gtk_file_chooser_dialog_new
8404 ac_fn_c_check_func
"$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8405 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x
""yes; then :
8406 cat >>confdefs.h
<<_ACEOF
8407 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8409 HAVE_GTK_FILE_CHOOSER
=yes
8411 HAVE_GTK_FILE_CHOOSER
=no
8417 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8418 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8420 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8425 HAVE_GTK_AND_PTHREAD
=no
8426 for ac_header
in pthread.h
8428 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8429 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8430 cat >>confdefs.h
<<_ACEOF
8431 #define HAVE_PTHREAD_H 1
8438 if test "$ac_cv_header_pthread_h"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8440 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8441 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8444 ac_check_lib_save_LIBS
=$LIBS
8445 LIBS
="-lpthread $LIBS"
8446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8449 /* Override any GCC internal prototype to avoid an error.
8450 Use char because int might match the return type of a GCC
8451 builtin and then its argument prototype would still apply. */
8455 char pthread_self ();
8459 return pthread_self ();
8464 if ac_fn_c_try_link
"$LINENO"; then :
8465 ac_cv_lib_pthread_pthread_self
=yes
8467 ac_cv_lib_pthread_pthread_self
=no
8469 rm -f core conftest.err conftest.
$ac_objext \
8470 conftest
$ac_exeext conftest.
$ac_ext
8471 LIBS
=$ac_check_lib_save_LIBS
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8474 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8475 if test "x$ac_cv_lib_pthread_pthread_self" = x
""yes; then :
8476 HAVE_GTK_AND_PTHREAD
=yes
8480 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8481 case "${canonical}" in
8483 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
8486 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8494 if test "${with_dbus}" = "yes"; then
8498 # Extract the first word of "pkg-config", so it can be a program name with args.
8499 set dummy pkg-config
; ac_word
=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8507 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir
=.
8515 for ac_exec_ext
in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8529 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8530 if test -n "$PKG_CONFIG"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8532 $as_echo "$PKG_CONFIG" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8540 if test "$PKG_CONFIG" = "no" ; then
8543 PKG_CONFIG_MIN_VERSION
=0.9.0
8544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8546 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8548 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8550 $as_echo "yes" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8554 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8555 DBUS_CFLAGS
=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8557 $as_echo "$DBUS_CFLAGS" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8560 $as_echo_n "checking DBUS_LIBS... " >&6; }
8561 DBUS_LIBS
=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8563 $as_echo "$DBUS_LIBS" >&6; }
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8569 ## If we have a custom action on failure, don't print errors, but
8570 ## do set a variable so people can do so.
8571 DBUS_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8583 if test $succeeded = yes; then
8589 if test "$HAVE_DBUS" = yes; then
8590 LIBS
="$LIBS $DBUS_LIBS"
8592 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8594 for ac_func
in dbus_watch_get_unix_fd
8596 ac_fn_c_check_func
"$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8597 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x
""yes; then :
8598 cat >>confdefs.h
<<_ACEOF
8599 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8611 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8615 # Extract the first word of "pkg-config", so it can be a program name with args.
8616 set dummy pkg-config
; ac_word
=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8624 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8631 test -z "$as_dir" && as_dir
=.
8632 for ac_exec_ext
in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8646 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8647 if test -n "$PKG_CONFIG"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8649 $as_echo "$PKG_CONFIG" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8657 if test "$PKG_CONFIG" = "no" ; then
8660 PKG_CONFIG_MIN_VERSION
=0.9.0
8661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8663 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8665 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8671 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8672 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8674 $as_echo "$GCONF_CFLAGS" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8677 $as_echo_n "checking GCONF_LIBS... " >&6; }
8678 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8680 $as_echo "$GCONF_LIBS" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8686 ## If we have a custom action on failure, don't print errors, but
8687 ## do set a variable so people can do so.
8688 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8700 if test $succeeded = yes; then
8706 if test "$HAVE_GCONF" = yes; then
8708 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8715 if test "${with_selinux}" = "yes"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8717 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8718 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8721 ac_check_lib_save_LIBS
=$LIBS
8722 LIBS
="-lselinux $LIBS"
8723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8732 char lgetfilecon ();
8736 return lgetfilecon ();
8741 if ac_fn_c_try_link
"$LINENO"; then :
8742 ac_cv_lib_selinux_lgetfilecon
=yes
8744 ac_cv_lib_selinux_lgetfilecon
=no
8746 rm -f core conftest.err conftest.
$ac_objext \
8747 conftest
$ac_exeext conftest.
$ac_ext
8748 LIBS
=$ac_check_lib_save_LIBS
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8751 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8752 if test "x$ac_cv_lib_selinux_lgetfilecon" = x
""yes; then :
8758 if test "$HAVE_LIBSELINUX" = yes; then
8760 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8762 LIBSELINUX_LIBS
=-lselinux
8769 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8770 if test "$with_xaw3d" != no
; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8772 $as_echo_n "checking for xaw3d... " >&6; }
8773 if test "${emacs_cv_xaw3d+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8779 #include <X11/Intrinsic.h>
8780 #include <X11/Xaw3d/Simple.h>
8789 if ac_fn_c_try_link
"$LINENO"; then :
8794 rm -f core conftest.err conftest.
$ac_objext \
8795 conftest
$ac_exeext conftest.
$ac_ext
8801 if test $emacs_cv_xaw3d = yes; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8803 $as_echo "yes; using Lucid toolkit" >&6; }
8808 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8814 $as_echo_n "checking for libXaw... " >&6; }
8815 if test "${emacs_cv_xaw+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8821 #include <X11/Intrinsic.h>
8822 #include <X11/Xaw/Simple.h>
8831 if ac_fn_c_try_link
"$LINENO"; then :
8836 rm -f core conftest.err conftest.
$ac_objext \
8837 conftest
$ac_exeext conftest.
$ac_ext
8840 if test $emacs_cv_xaw = yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8842 $as_echo "yes; using Lucid toolkit" >&6; }
8845 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
8846 as_fn_error
"Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8849 $as_echo "no; do not use toolkit by default" >&6; }
8855 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8858 if test "${USE_X_TOOLKIT}" != "none"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8860 $as_echo_n "checking X11 toolkit version... " >&6; }
8861 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 #include <X11/Intrinsic.h>
8870 #if XtSpecificationRelease < 6
8878 if ac_fn_c_try_link
"$LINENO"; then :
8879 emacs_cv_x11_toolkit_version_6
=yes
8881 emacs_cv_x11_toolkit_version_6
=no
8883 rm -f core conftest.err conftest.
$ac_objext \
8884 conftest
$ac_exeext conftest.
$ac_ext
8887 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8888 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8890 $as_echo "6 or newer" >&6; }
8892 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8894 LIBXTR6
="-lSM -lICE"
8896 ## Use libw.a along with X11R6 Xt.
8897 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8901 $as_echo "before 6" >&6; }
8905 if test x
$HAVE_X11XTR6 = xyes
; then
8906 LIBS
="-lXt -lSM -lICE $LIBS"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
8911 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8912 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8915 ac_check_lib_save_LIBS
=$LIBS
8917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8920 /* Override any GCC internal prototype to avoid an error.
8921 Use char because int might match the return type of a GCC
8922 builtin and then its argument prototype would still apply. */
8926 char XmuConvertStandardSelection ();
8930 return XmuConvertStandardSelection ();
8935 if ac_fn_c_try_link
"$LINENO"; then :
8936 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8938 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8940 rm -f core conftest.err conftest.
$ac_objext \
8941 conftest
$ac_exeext conftest.
$ac_ext
8942 LIBS
=$ac_check_lib_save_LIBS
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8945 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8946 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then :
8947 cat >>confdefs.h
<<_ACEOF
8948 #define HAVE_LIBXMU 1
8955 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8961 ## These machines don't supply Xmu.
8963 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU
=
8968 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8969 if test "${HAVE_X11}" = "yes"; then
8970 if test "${USE_X_TOOLKIT}" != "none"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8972 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8973 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 ac_check_lib_save_LIBS
=$LIBS
8978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8981 /* Override any GCC internal prototype to avoid an error.
8982 Use char because int might match the return type of a GCC
8983 builtin and then its argument prototype would still apply. */
8987 char XShapeQueryExtension ();
8991 return XShapeQueryExtension ();
8996 if ac_fn_c_try_link
"$LINENO"; then :
8997 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8999 ac_cv_lib_Xext_XShapeQueryExtension
=no
9001 rm -f core conftest.err conftest.
$ac_objext \
9002 conftest
$ac_exeext conftest.
$ac_ext
9003 LIBS
=$ac_check_lib_save_LIBS
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9007 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then :
9008 cat >>confdefs.h
<<_ACEOF
9009 #define HAVE_LIBXEXT 1
9020 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9022 $as_echo_n "checking for Motif version 2.1... " >&6; }
9023 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9032 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9035 Motif version prior to 2.1.
9041 if ac_fn_c_try_compile
"$LINENO"; then :
9042 emacs_cv_motif_version_2_1
=yes
9044 emacs_cv_motif_version_2_1
=no
9046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9049 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9050 if test $emacs_cv_motif_version_2_1 = yes; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9052 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9053 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9056 ac_check_lib_save_LIBS
=$LIBS
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9067 char XpCreateContext ();
9071 return XpCreateContext ();
9076 if ac_fn_c_try_link
"$LINENO"; then :
9077 ac_cv_lib_Xp_XpCreateContext
=yes
9079 ac_cv_lib_Xp_XpCreateContext
=no
9081 rm -f core conftest.err conftest.
$ac_objext \
9082 conftest
$ac_exeext conftest.
$ac_ext
9083 LIBS
=$ac_check_lib_save_LIBS
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9086 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9087 if test "x$ac_cv_lib_Xp_XpCreateContext" = x
""yes; then :
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9093 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9094 if test "${emacs_cv_lesstif+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9097 # We put this in CFLAGS temporarily to precede other -I options
9098 # that might be in CFLAGS temporarily.
9099 # We put this in CPPFLAGS where it precedes the other -I options.
9100 OLD_CPPFLAGS
=$CPPFLAGS
9102 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9103 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9115 if ac_fn_c_try_compile
"$LINENO"; then :
9116 emacs_cv_lesstif
=yes
9120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9123 $as_echo "$emacs_cv_lesstif" >&6; }
9124 if test $emacs_cv_lesstif = yes; then
9125 # Make sure this -I option remains in CPPFLAGS after it is set
9126 # back to REAL_CPPFLAGS.
9127 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9128 # have those other -I options anyway. Ultimately, having this
9129 # directory ultimately in CPPFLAGS will be enough.
9130 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9131 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9134 CPPFLAGS
=$OLD_CPPFLAGS
9140 USE_TOOLKIT_SCROLL_BARS
=no
9141 if test "${with_toolkit_scroll_bars}" != "no"; then
9142 if test "${USE_X_TOOLKIT}" != "none"; then
9143 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9147 USE_TOOLKIT_SCROLL_BARS
=yes
9148 elif test "${HAVE_XAW3D}" = "yes"; then
9149 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9151 USE_TOOLKIT_SCROLL_BARS
=yes
9153 elif test "${HAVE_GTK}" = "yes"; then
9154 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9156 USE_TOOLKIT_SCROLL_BARS
=yes
9157 elif test "${HAVE_NS}" = "yes"; then
9158 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9160 USE_TOOLKIT_SCROLL_BARS
=yes
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 #include <X11/Xlib.h>
9168 #include <X11/Xresource.h>
9177 if ac_fn_c_try_compile
"$LINENO"; then :
9180 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9188 if test "${with_xim}" != "no"; then
9190 $as_echo "#define USE_XIM 1" >>confdefs.h
9195 if test "${HAVE_XIM}" != "no"; then
9197 if test "$GCC" = yes; then
9198 CFLAGS
="$CFLAGS --pedantic-errors"
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 #include <X11/Xlib.h>
9204 #include <X11/Xresource.h>
9213 XPointer *client_data;
9215 /* If we're not using GCC, it's probably not XFree86, and this is
9216 probably right, but we can't use something like --pedantic-errors. */
9217 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9218 char*, XIMProc, XPointer*);
9220 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9226 if ac_fn_c_try_compile
"$LINENO"; then :
9227 emacs_cv_arg6_star
=yes
9229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 if test "$emacs_cv_arg6_star" = yes; then
9231 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9234 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9240 ### Start of font-backend (under any platform) section.
9241 # (nothing here yet -- this is a placeholder)
9242 ### End of font-backend (under any platform) section.
9244 ### Start of font-backend (under X11) section.
9245 if test "${HAVE_X11}" = "yes"; then
9249 # Extract the first word of "pkg-config", so it can be a program name with args.
9250 set dummy pkg-config
; ac_word
=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9258 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9265 test -z "$as_dir" && as_dir
=.
9266 for ac_exec_ext
in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9280 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9281 if test -n "$PKG_CONFIG"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9283 $as_echo "$PKG_CONFIG" >&6; }
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9291 if test "$PKG_CONFIG" = "no" ; then
9294 PKG_CONFIG_MIN_VERSION
=0.9.0
9295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9297 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9299 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9301 $as_echo "yes" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9305 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9306 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9308 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9311 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9312 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9314 $as_echo "$FONTCONFIG_LIBS" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9318 FONTCONFIG_CFLAGS
=""
9320 ## If we have a custom action on failure, don't print errors, but
9321 ## do set a variable so people can do so.
9322 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9334 if test $succeeded = yes; then
9341 ## Use -lXft if available, unless `--with-xft=no'.
9343 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
9346 if test "x${with_xft}" != "xno"; then
9351 # Extract the first word of "pkg-config", so it can be a program name with args.
9352 set dummy pkg-config
; ac_word
=$2
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9354 $as_echo_n "checking for $ac_word... " >&6; }
9355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9360 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9367 test -z "$as_dir" && as_dir
=.
9368 for ac_exec_ext
in '' $ac_executable_extensions; do
9369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9370 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9382 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9383 if test -n "$PKG_CONFIG"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9385 $as_echo "$PKG_CONFIG" >&6; }
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9393 if test "$PKG_CONFIG" = "no" ; then
9396 PKG_CONFIG_MIN_VERSION
=0.9.0
9397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9399 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9401 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9403 $as_echo "yes" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9407 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9408 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9410 $as_echo "$XFT_CFLAGS" >&6; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9413 $as_echo_n "checking XFT_LIBS... " >&6; }
9414 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9416 $as_echo "$XFT_LIBS" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9422 ## If we have a custom action on failure, don't print errors, but
9423 ## do set a variable so people can do so.
9424 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9431 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9432 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9436 if test $succeeded = yes; then
9442 ## Because xftfont.c uses XRenderQueryExtension, we also
9443 ## need to link to -lXrender.
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9446 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9447 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9450 ac_check_lib_save_LIBS
=$LIBS
9451 LIBS
="-lXrender $LIBS"
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9461 char XRenderQueryExtension ();
9465 return XRenderQueryExtension ();
9470 if ac_fn_c_try_link
"$LINENO"; then :
9471 ac_cv_lib_Xrender_XRenderQueryExtension
=yes
9473 ac_cv_lib_Xrender_XRenderQueryExtension
=no
9475 rm -f core conftest.err conftest.
$ac_objext \
9476 conftest
$ac_exeext conftest.
$ac_ext
9477 LIBS
=$ac_check_lib_save_LIBS
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9480 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9481 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x
""yes; then :
9485 if test "$HAVE_XFT" != no
&& test "$HAVE_XRENDER" != no
; then
9486 OLD_CPPFLAGS
="$CPPFLAGS"
9487 OLD_CFLAGS
="$CFLAGS"
9489 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
9490 CFLAGS
="$CFLAGS $XFT_CFLAGS"
9491 XFT_LIBS
="-lXrender $XFT_LIBS"
9492 LIBS
="$XFT_LIBS $LIBS"
9493 ac_fn_c_check_header_mongrel
"$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9494 if test "x$ac_cv_header_X11_Xft_Xft_h" = x
""yes; then :
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9496 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9497 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9500 ac_check_lib_save_LIBS
=$LIBS
9501 LIBS
="-lXft $XFT_LIBS $LIBS"
9502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9511 char XftFontOpen ();
9515 return XftFontOpen ();
9520 if ac_fn_c_try_link
"$LINENO"; then :
9521 ac_cv_lib_Xft_XftFontOpen
=yes
9523 ac_cv_lib_Xft_XftFontOpen
=no
9525 rm -f core conftest.err conftest.
$ac_objext \
9526 conftest
$ac_exeext conftest.
$ac_ext
9527 LIBS
=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9530 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9531 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then :
9539 if test "${HAVE_XFT}" = "yes"; then
9541 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9544 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
9546 CPPFLAGS
="$OLD_CPPFLAGS"
9547 CFLAGS
="$OLD_CFLAGS"
9549 fi # "${HAVE_XFT}" = "yes"
9550 fi # "$HAVE_XFT" != no
9551 fi # "x${with_xft}" != "xno"
9553 if test "$HAVE_XFT" != "yes"; then
9559 ## We used to allow building with FreeType and without Xft.
9560 ## However, the ftx font backend driver is not in good shape.
9561 if test "${HAVE_XFT}" = "yes"; then
9568 if test "${HAVE_FREETYPE}" = "yes"; then
9570 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9572 if test "${with_libotf}" != "no"; then
9576 # Extract the first word of "pkg-config", so it can be a program name with args.
9577 set dummy pkg-config
; ac_word
=$2
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 $as_echo_n "checking for $ac_word... " >&6; }
9580 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9585 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9592 test -z "$as_dir" && as_dir
=.
9593 for ac_exec_ext
in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9607 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9608 if test -n "$PKG_CONFIG"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9610 $as_echo "$PKG_CONFIG" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9618 if test "$PKG_CONFIG" = "no" ; then
9621 PKG_CONFIG_MIN_VERSION
=0.9.0
9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9624 $as_echo_n "checking for libotf... " >&6; }
9626 if $PKG_CONFIG --exists "libotf" 2>&5; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9628 $as_echo "yes" >&6; }
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9632 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9633 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9635 $as_echo "$LIBOTF_CFLAGS" >&6; }
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9638 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9639 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9641 $as_echo "$LIBOTF_LIBS" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9647 ## If we have a custom action on failure, don't print errors, but
9648 ## do set a variable so people can do so.
9649 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9661 if test $succeeded = yes; then
9667 if test "$HAVE_LIBOTF" = "yes"; then
9669 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9672 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9673 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9676 ac_check_lib_save_LIBS
=$LIBS
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9687 char OTF_get_variation_glyphs ();
9691 return OTF_get_variation_glyphs ();
9696 if ac_fn_c_try_link
"$LINENO"; then :
9697 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
9699 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
9701 rm -f core conftest.err conftest.
$ac_objext \
9702 conftest
$ac_exeext conftest.
$ac_ext
9703 LIBS
=$ac_check_lib_save_LIBS
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x
""yes; then :
9708 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
9710 HAVE_OTF_GET_VARIATION_GLYPHS
=no
9713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9715 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9723 if test "${HAVE_LIBOTF}" = yes; then
9724 if test "${with_m17n_flt}" != "no"; then
9728 # Extract the first word of "pkg-config", so it can be a program name with args.
9729 set dummy pkg-config
; ac_word
=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9744 test -z "$as_dir" && as_dir
=.
9745 for ac_exec_ext
in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9760 if test -n "$PKG_CONFIG"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9762 $as_echo "$PKG_CONFIG" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9770 if test "$PKG_CONFIG" = "no" ; then
9773 PKG_CONFIG_MIN_VERSION
=0.9.0
9774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9776 $as_echo_n "checking for m17n-flt... " >&6; }
9778 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9780 $as_echo "yes" >&6; }
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9784 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9785 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9787 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9790 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9791 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9793 $as_echo "$M17N_FLT_LIBS" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9799 ## If we have a custom action on failure, don't print errors, but
9800 ## do set a variable so people can do so.
9801 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9813 if test $succeeded = yes; then
9819 if test "$HAVE_M17N_FLT" = "yes"; then
9821 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9834 if test "$HAVE_XFT" = "yes"; then
9835 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
9836 elif test "$HAVE_FREETYPE" = "yes"; then
9837 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
9841 ### End of font-backend (under X11) section.
9852 ### Use -lXpm if available, unless `--with-xpm=no'.
9855 if test "${HAVE_X11}" = "yes"; then
9856 if test "${with_xpm}" != "no"; then
9857 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9858 if test "x$ac_cv_header_X11_xpm_h" = x
""yes; then :
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9860 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9861 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9864 ac_check_lib_save_LIBS
=$LIBS
9865 LIBS
="-lXpm -lX11 $LIBS"
9866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9875 char XpmReadFileToPixmap ();
9879 return XpmReadFileToPixmap ();
9884 if ac_fn_c_try_link
"$LINENO"; then :
9885 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9887 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9889 rm -f core conftest.err conftest.
$ac_objext \
9890 conftest
$ac_exeext conftest.
$ac_ext
9891 LIBS
=$ac_check_lib_save_LIBS
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9894 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9895 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x
""yes; then :
9902 if test "${HAVE_XPM}" = "yes"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
9904 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 #include "X11/xpm.h"
9908 #ifndef XpmReturnAllocPixels
9909 no_return_alloc_pixels
9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then :
9922 if test "${HAVE_XPM}" = "yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9932 if test "${HAVE_XPM}" = "yes"; then
9934 $as_echo "#define HAVE_XPM 1" >>confdefs.h
9941 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9944 if test "${HAVE_X11}" = "yes"; then
9945 if test "${with_jpeg}" != "no"; then
9946 ac_fn_c_check_header_mongrel
"$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
9947 if test "x$ac_cv_header_jerror_h" = x
""yes; then :
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
9949 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9950 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9953 ac_check_lib_save_LIBS
=$LIBS
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9958 /* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9964 char jpeg_destroy_compress ();
9968 return jpeg_destroy_compress ();
9973 if ac_fn_c_try_link
"$LINENO"; then :
9974 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9976 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9978 rm -f core conftest.err conftest.
$ac_objext \
9979 conftest
$ac_exeext conftest.
$ac_ext
9980 LIBS
=$ac_check_lib_save_LIBS
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9983 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9984 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x
""yes; then :
9993 if test "${HAVE_JPEG}" = "yes"; then
9994 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 #include <jpeglib.h>
9999 version=JPEG_LIB_VERSION
10002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10003 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then :
10004 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10008 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10014 if test "${HAVE_JPEG}" = "yes"; then
10020 ### Use -lpng if available, unless `--with-png=no'.
10023 if test "${HAVE_X11}" = "yes"; then
10024 if test "${with_png}" != "no"; then
10025 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10026 # in /usr/include/libpng.
10027 for ac_header
in png.h libpng
/png.h
10029 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10031 eval as_val
=\$
$as_ac_Header
10032 if test "x$as_val" = x
""yes; then :
10033 cat >>confdefs.h
<<_ACEOF
10034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10041 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10043 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10044 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10047 ac_check_lib_save_LIBS
=$LIBS
10048 LIBS
="-lpng -lz -lm $LIBS"
10049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */
10052 /* Override any GCC internal prototype to avoid an error.
10053 Use char because int might match the return type of a GCC
10054 builtin and then its argument prototype would still apply. */
10058 char png_get_channels ();
10062 return png_get_channels ();
10067 if ac_fn_c_try_link
"$LINENO"; then :
10068 ac_cv_lib_png_png_get_channels
=yes
10070 ac_cv_lib_png_png_get_channels
=no
10072 rm -f core conftest.err conftest.
$ac_objext \
10073 conftest
$ac_exeext conftest.
$ac_ext
10074 LIBS
=$ac_check_lib_save_LIBS
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10077 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10078 if test "x$ac_cv_lib_png_png_get_channels" = x
""yes; then :
10085 if test "${HAVE_PNG}" = "yes"; then
10087 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10089 LIBPNG
="-lpng -lz -lm"
10094 ### Use -ltiff if available, unless `--with-tiff=no'.
10097 if test "${HAVE_X11}" = "yes"; then
10098 if test "${with_tiff}" != "no"; then
10099 ac_fn_c_check_header_mongrel
"$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10100 if test "x$ac_cv_header_tiffio_h" = x
""yes; then :
10102 # At least one tiff package requires the jpeg library.
10103 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10105 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10106 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10109 ac_check_lib_save_LIBS
=$LIBS
10110 LIBS
="-ltiff $tifflibs $LIBS"
10111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10120 char TIFFGetVersion ();
10124 return TIFFGetVersion ();
10129 if ac_fn_c_try_link
"$LINENO"; then :
10130 ac_cv_lib_tiff_TIFFGetVersion
=yes
10132 ac_cv_lib_tiff_TIFFGetVersion
=no
10134 rm -f core conftest.err conftest.
$ac_objext \
10135 conftest
$ac_exeext conftest.
$ac_ext
10136 LIBS
=$ac_check_lib_save_LIBS
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10139 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10140 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x
""yes; then :
10149 if test "${HAVE_TIFF}" = "yes"; then
10151 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10158 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10161 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10162 ac_fn_c_check_header_mongrel
"$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10163 if test "x$ac_cv_header_gif_lib_h" = x
""yes; then :
10164 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10165 # Earlier versions can crash Emacs.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10167 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10168 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10171 ac_check_lib_save_LIBS
=$LIBS
10173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10182 char EGifPutExtensionLast ();
10186 return EGifPutExtensionLast ();
10191 if ac_fn_c_try_link
"$LINENO"; then :
10192 ac_cv_lib_gif_EGifPutExtensionLast
=yes
10194 ac_cv_lib_gif_EGifPutExtensionLast
=no
10196 rm -f core conftest.err conftest.
$ac_objext \
10197 conftest
$ac_exeext conftest.
$ac_ext
10198 LIBS
=$ac_check_lib_save_LIBS
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10201 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10202 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x
""yes; then :
10212 if test "$HAVE_GIF" = yes; then
10214 elif test "$HAVE_GIF" = maybe
; then
10215 # If gif_lib.h but no libgif, try libungif.
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10217 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10218 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10221 ac_check_lib_save_LIBS
=$LIBS
10222 LIBS
="-lungif $LIBS"
10223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10232 char EGifPutExtensionLast ();
10236 return EGifPutExtensionLast ();
10241 if ac_fn_c_try_link
"$LINENO"; then :
10242 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
10244 ac_cv_lib_ungif_EGifPutExtensionLast
=no
10246 rm -f core conftest.err conftest.
$ac_objext \
10247 conftest
$ac_exeext conftest.
$ac_ext
10248 LIBS
=$ac_check_lib_save_LIBS
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10251 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10252 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x
""yes; then :
10258 test "$HAVE_GIF" = yes && LIBGIF
=-lungif
10261 if test "${HAVE_GIF}" = "yes"; then
10263 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10269 if test "${HAVE_X11}" = "yes"; then
10272 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10273 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
10274 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10275 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
10276 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10277 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
10278 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10279 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
10280 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10281 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
10283 if test "X${MISSING}" != X
; then
10284 as_fn_error
"The following required libraries were not found:
10286 Maybe some development libraries/packages are missing?
10287 If you don't want to link with them give
10289 as options to configure" "$LINENO" 5
10293 ### Use -lgpm if available, unless `--with-gpm=no'.
10297 if test "${with_gpm}" != "no"; then
10298 ac_fn_c_check_header_mongrel
"$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10299 if test "x$ac_cv_header_gpm_h" = x
""yes; then :
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10301 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10302 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10305 ac_check_lib_save_LIBS
=$LIBS
10307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10320 return Gpm_Open ();
10325 if ac_fn_c_try_link
"$LINENO"; then :
10326 ac_cv_lib_gpm_Gpm_Open
=yes
10328 ac_cv_lib_gpm_Gpm_Open
=no
10330 rm -f core conftest.err conftest.
$ac_objext \
10331 conftest
$ac_exeext conftest.
$ac_ext
10332 LIBS
=$ac_check_lib_save_LIBS
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10335 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10336 if test "x$ac_cv_lib_gpm_Gpm_Open" = x
""yes; then :
10344 if test "${HAVE_GPM}" = "yes"; then
10346 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10349 GPM_MOUSE_SUPPORT
="\${lispsource}mouse.elc"
10355 ac_fn_c_check_header_mongrel
"$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10356 if test "x$ac_cv_header_malloc_malloc_h" = x
""yes; then :
10358 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10365 ### Use NeXTstep API to implement GUI.
10366 if test "${HAVE_NS}" = "yes"; then
10368 $as_echo "#define HAVE_NS 1" >>confdefs.h
10370 if test "${NS_IMPL_COCOA}" = "yes"; then
10372 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10376 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10378 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10380 # See also .m.o rule in Makefile.in */
10381 # FIXME: are all these flags really needed? Document here why. */
10382 C_SWITCH_X_SYSTEM
="-D_REENTRANT -fPIC -fno-strict-aliasing"
10383 GNU_OBJC_CFLAGS
="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10387 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10390 # We also have mouse menus.
10396 ### Use session management (-lSM -lICE) if available
10399 if test "${HAVE_X11}" = "yes"; then
10400 ac_fn_c_check_header_mongrel
"$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10401 if test "x$ac_cv_header_X11_SM_SMlib_h" = x
""yes; then :
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10403 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10404 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10407 ac_check_lib_save_LIBS
=$LIBS
10408 LIBS
="-lSM -lICE $LIBS"
10409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10418 char SmcOpenConnection ();
10422 return SmcOpenConnection ();
10427 if ac_fn_c_try_link
"$LINENO"; then :
10428 ac_cv_lib_SM_SmcOpenConnection
=yes
10430 ac_cv_lib_SM_SmcOpenConnection
=no
10432 rm -f core conftest.err conftest.
$ac_objext \
10433 conftest
$ac_exeext conftest.
$ac_ext
10434 LIBS
=$ac_check_lib_save_LIBS
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10437 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10438 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then :
10446 if test "${HAVE_X_SM}" = "yes"; then
10448 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10450 LIBXSM
="-lSM -lICE"
10453 *) LIBS
="$LIBXSM $LIBS" ;;
10459 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10461 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10462 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10476 if ac_fn_c_try_link
"$LINENO"; then :
10477 emacs_cv_netdb_declares_h_errno
=yes
10479 emacs_cv_netdb_declares_h_errno
=no
10481 rm -f core conftest.err conftest.
$ac_objext \
10482 conftest
$ac_exeext conftest.
$ac_ext
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10485 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10486 if test $emacs_cv_netdb_declares_h_errno = yes; then
10488 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10493 # for constant arguments. Useless!
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10495 $as_echo_n "checking for working alloca.h... " >&6; }
10496 if test "${ac_cv_working_alloca_h+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 #include <alloca.h>
10505 char *p = (char *) alloca (2 * sizeof (int));
10511 if ac_fn_c_try_link
"$LINENO"; then :
10512 ac_cv_working_alloca_h
=yes
10514 ac_cv_working_alloca_h
=no
10516 rm -f core conftest.err conftest.
$ac_objext \
10517 conftest
$ac_exeext conftest.
$ac_ext
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10520 $as_echo "$ac_cv_working_alloca_h" >&6; }
10521 if test $ac_cv_working_alloca_h = yes; then
10523 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10528 $as_echo_n "checking for alloca... " >&6; }
10529 if test "${ac_cv_func_alloca_works+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 # define alloca __builtin_alloca
10538 # include <malloc.h>
10539 # define alloca _alloca
10541 # ifdef HAVE_ALLOCA_H
10542 # include <alloca.h>
10547 # ifndef alloca /* predefined by HP cc +Olibcalls */
10558 char *p = (char *) alloca (1);
10564 if ac_fn_c_try_link
"$LINENO"; then :
10565 ac_cv_func_alloca_works
=yes
10567 ac_cv_func_alloca_works
=no
10569 rm -f core conftest.err conftest.
$ac_objext \
10570 conftest
$ac_exeext conftest.
$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10573 $as_echo "$ac_cv_func_alloca_works" >&6; }
10575 if test $ac_cv_func_alloca_works = yes; then
10577 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10581 # that cause trouble. Some versions do not even contain alloca or
10582 # contain a buggy version. If you still want to use their alloca,
10583 # use ar to extract alloca.o from them instead of compiling alloca.c.
10585 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10587 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10591 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10592 if test "${ac_cv_os_cray+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #if defined CRAY && ! defined CRAY2
10604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10605 $EGREP "webecray" >/dev
/null
2>&1; then :
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10614 $as_echo "$ac_cv_os_cray" >&6; }
10615 if test $ac_cv_os_cray = yes; then
10616 for ac_func
in _getb67 GETB67 getb67
; do
10617 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10618 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10619 eval as_val
=\$
$as_ac_var
10620 if test "x$as_val" = x
""yes; then :
10622 cat >>confdefs.h
<<_ACEOF
10623 #define CRAY_STACKSEG_END $ac_func
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10633 $as_echo_n "checking stack direction for C alloca... " >&6; }
10634 if test "${ac_cv_c_stack_direction+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10637 if test "$cross_compiling" = yes; then :
10638 ac_cv_c_stack_direction
=0
10640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 $ac_includes_default
10644 find_stack_direction ()
10646 static char *addr = 0;
10651 return find_stack_direction ();
10654 return (&dummy > addr) ? 1 : -1;
10660 return find_stack_direction () < 0;
10663 if ac_fn_c_try_run
"$LINENO"; then :
10664 ac_cv_c_stack_direction
=1
10666 ac_cv_c_stack_direction
=-1
10668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10674 $as_echo "$ac_cv_c_stack_direction" >&6; }
10675 cat >>confdefs.h
<<_ACEOF
10676 #define STACK_DIRECTION $ac_cv_c_stack_direction
10683 if test x
"$ac_cv_func_alloca_works" != xyes
; then
10684 as_fn_error
"a system implementation of alloca is required " "$LINENO" 5
10687 # fmod, logb, and frexp are found in -lm on most systems.
10688 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10690 $as_echo_n "checking for sqrt in -lm... " >&6; }
10691 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10694 ac_check_lib_save_LIBS
=$LIBS
10696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10714 if ac_fn_c_try_link
"$LINENO"; then :
10715 ac_cv_lib_m_sqrt
=yes
10717 ac_cv_lib_m_sqrt
=no
10719 rm -f core conftest.err conftest.
$ac_objext \
10720 conftest
$ac_exeext conftest.
$ac_ext
10721 LIBS
=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10724 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10725 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
10726 cat >>confdefs.h
<<_ACEOF
10727 #define HAVE_LIBM 1
10735 # Check for mail-locking functions in a "mail" library. Probably this should
10736 # have the same check as for liblockfile below.
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10738 $as_echo_n "checking for maillock in -lmail... " >&6; }
10739 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10742 ac_check_lib_save_LIBS
=$LIBS
10743 LIBS
="-lmail $LIBS"
10744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10757 return maillock ();
10762 if ac_fn_c_try_link
"$LINENO"; then :
10763 ac_cv_lib_mail_maillock
=yes
10765 ac_cv_lib_mail_maillock
=no
10767 rm -f core conftest.err conftest.
$ac_objext \
10768 conftest
$ac_exeext conftest.
$ac_ext
10769 LIBS
=$ac_check_lib_save_LIBS
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10772 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10773 if test "x$ac_cv_lib_mail_maillock" = x
""yes; then :
10779 if test $have_mail = yes; then
10781 LIBS
="$LIBS_MAIL $LIBS"
10783 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10789 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10790 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10793 ac_check_lib_save_LIBS
=$LIBS
10794 LIBS
="-llockfile $LIBS"
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10808 return maillock ();
10813 if ac_fn_c_try_link
"$LINENO"; then :
10814 ac_cv_lib_lockfile_maillock
=yes
10816 ac_cv_lib_lockfile_maillock
=no
10818 rm -f core conftest.err conftest.
$ac_objext \
10819 conftest
$ac_exeext conftest.
$ac_ext
10820 LIBS
=$ac_check_lib_save_LIBS
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10823 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10824 if test "x$ac_cv_lib_lockfile_maillock" = x
""yes; then :
10830 if test $have_lockfile = yes; then
10831 LIBS_MAIL
=-llockfile
10832 LIBS
="$LIBS_MAIL $LIBS"
10834 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10837 # If we have the shared liblockfile, assume we must use it for mail
10838 # locking (e.g. Debian). If we couldn't link against liblockfile
10839 # (no liblockfile.a installed), ensure that we don't need to.
10840 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10841 set dummy liblockfile.so
; ac_word
=$2
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10843 $as_echo_n "checking for $ac_word... " >&6; }
10844 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10847 if test -n "$liblockfile"; then
10848 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10851 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10852 for as_dir
in $as_dummy
10855 test -z "$as_dir" && as_dir
=.
10856 for ac_exec_ext
in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_prog_liblockfile
="yes"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10869 liblockfile
=$ac_cv_prog_liblockfile
10870 if test -n "$liblockfile"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10872 $as_echo "$liblockfile" >&6; }
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10879 if test $ac_cv_prog_liblockfile = yes; then
10880 as_fn_error
"Shared liblockfile found but can't link against it.
10881 This probably means that movemail could lose mail.
10882 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
10885 for ac_func
in touchlock
10887 ac_fn_c_check_func
"$LINENO" "touchlock" "ac_cv_func_touchlock"
10888 if test "x$ac_cv_func_touchlock" = x
""yes; then :
10889 cat >>confdefs.h
<<_ACEOF
10890 #define HAVE_TOUCHLOCK 1
10896 for ac_header
in maillock.h
10898 ac_fn_c_check_header_mongrel
"$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
10899 if test "x$ac_cv_header_maillock_h" = x
""yes; then :
10900 cat >>confdefs.h
<<_ACEOF
10901 #define HAVE_MAILLOCK_H 1
10910 for ac_func
in gethostname getdomainname dup2 \
10911 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
10912 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
10913 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10914 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10915 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10916 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10917 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10918 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10919 cfmakeraw cfsetspeed
10921 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10923 eval as_val
=\$
$as_ac_var
10924 if test "x$as_val" = x
""yes; then :
10925 cat >>confdefs.h
<<_ACEOF
10926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933 for ac_header
in sys
/un.h
10935 ac_fn_c_check_header_mongrel
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_sys_un_h" = x
""yes; then :
10937 cat >>confdefs.h
<<_ACEOF
10938 #define HAVE_SYS_UN_H 1
10951 for ac_func
in $ac_func_list
10953 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10954 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10955 eval as_val
=\$
$as_ac_var
10956 if test "x$as_val" = x
""yes; then :
10957 cat >>confdefs.h
<<_ACEOF
10958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
10969 $as_echo_n "checking for working mktime... " >&6; }
10970 if test "${ac_cv_func_working_mktime+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10973 if test "$cross_compiling" = yes; then :
10974 ac_cv_func_working_mktime
=no
10976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978 /* Test program from Paul Eggert and Tony Leneis. */
10979 #ifdef TIME_WITH_SYS_TIME
10980 # include <sys/time.h>
10983 # ifdef HAVE_SYS_TIME_H
10984 # include <sys/time.h>
10990 #include <limits.h>
10991 #include <stdlib.h>
10993 #ifdef HAVE_UNISTD_H
10994 # include <unistd.h>
10998 # define alarm(X) /* empty */
11001 /* Work around redefinition to rpl_putenv by other config tests. */
11004 static time_t time_t_max;
11005 static time_t time_t_min;
11007 /* Values we'll use to set the TZ environment variable. */
11008 static char *tz_strings[] = {
11009 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11010 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11012 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11014 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11015 Based on a problem report from Andreas Jaeger. */
11017 spring_forward_gap ()
11019 /* glibc (up to about 1998-10-07) failed this test. */
11022 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11023 instead of "TZ=America/Vancouver" in order to detect the bug even
11024 on systems that don't support the Olson extension, or don't have the
11025 full zoneinfo tables installed. */
11026 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11035 return mktime (&tm) != (time_t) -1;
11043 return ! (lt = localtime (&now)) || mktime (lt) == now;
11050 return (mktime_test1 (now)
11051 && mktime_test1 ((time_t) (time_t_max - now))
11052 && mktime_test1 ((time_t) (time_t_min + now)));
11058 /* Based on code from Ariel Faigon. */
11068 return tm.tm_mon == 2 && tm.tm_mday == 31;
11077 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11078 now = mktime (&tm);
11079 if (now != (time_t) -1)
11081 struct tm *lt = localtime (&now);
11083 && lt->tm_year == tm.tm_year
11084 && lt->tm_mon == tm.tm_mon
11085 && lt->tm_mday == tm.tm_mday
11086 && lt->tm_hour == tm.tm_hour
11087 && lt->tm_min == tm.tm_min
11088 && lt->tm_sec == tm.tm_sec
11089 && lt->tm_yday == tm.tm_yday
11090 && lt->tm_wday == tm.tm_wday
11091 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11092 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11101 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11102 ignoring leap seconds. */
11103 unsigned long int answer = 2527315200UL;
11107 tm.tm_year = 2050 - 1900;
11110 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11113 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11114 instead of "TZ=America/Vancouver" in order to detect the bug even
11115 on systems that don't support the Olson extension, or don't have the
11116 full zoneinfo tables installed. */
11117 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11121 /* Check that the result is either a failure, or close enough
11122 to the correct answer that we can assume the discrepancy is
11123 due to leap seconds. */
11124 return (t == (time_t) -1
11125 || (0 < t && answer - 120 <= t && t <= answer + 120));
11134 /* This test makes some buggy mktime implementations loop.
11135 Give up after 60 seconds; a mktime slower than that
11136 isn't worth using anyway. */
11141 t = (time_t_max << 1) + 1;
11142 if (t <= time_t_max)
11146 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11148 delta = time_t_max / 997; /* a suitable prime number */
11149 for (i = 0; i < N_STRINGS; i++)
11152 putenv (tz_strings[i]);
11154 for (t = 0; t <= time_t_max - delta; t += delta)
11155 if (! mktime_test (t))
11157 if (! (mktime_test ((time_t) 1)
11158 && mktime_test ((time_t) (60 * 60))
11159 && mktime_test ((time_t) (60 * 60 * 24))))
11162 for (j = 1; ; j <<= 1)
11163 if (! bigtime_test (j))
11165 else if (INT_MAX / 2 < j)
11167 if (! bigtime_test (INT_MAX))
11170 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11173 if ac_fn_c_try_run
"$LINENO"; then :
11174 ac_cv_func_working_mktime
=yes
11176 ac_cv_func_working_mktime
=no
11178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11184 $as_echo "$ac_cv_func_working_mktime" >&6; }
11185 if test $ac_cv_func_working_mktime = no
; then
11186 case " $LIBOBJS " in
11187 *" mktime.$ac_objext "* ) ;;
11188 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11194 if test "$ac_cv_func_working_mktime" = no
; then
11196 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11200 ac_have_func
=no
# yes means we've found a way to get the load average.
11202 # Make sure getloadavg.c is where it belongs, at configure-time.
11203 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11204 as_fn_error
"$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11208 # Check for getloadavg, but be sure not to touch the cache variable.
11209 (ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11210 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11215 ) && ac_have_func
=yes
11217 # On HPUX9, an unprivileged user can get load averages through this function.
11218 for ac_func
in pstat_getdynamic
11220 ac_fn_c_check_func
"$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11221 if test "x$ac_cv_func_pstat_getdynamic" = x
""yes; then :
11222 cat >>confdefs.h
<<_ACEOF
11223 #define HAVE_PSTAT_GETDYNAMIC 1
11230 # Solaris has libkstat which does not require root.
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11232 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11233 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11236 ac_check_lib_save_LIBS
=$LIBS
11237 LIBS
="-lkstat $LIBS"
11238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11247 char kstat_open ();
11251 return kstat_open ();
11256 if ac_fn_c_try_link
"$LINENO"; then :
11257 ac_cv_lib_kstat_kstat_open
=yes
11259 ac_cv_lib_kstat_kstat_open
=no
11261 rm -f core conftest.err conftest.
$ac_objext \
11262 conftest
$ac_exeext conftest.
$ac_ext
11263 LIBS
=$ac_check_lib_save_LIBS
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11266 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11267 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then :
11268 cat >>confdefs.h
<<_ACEOF
11269 #define HAVE_LIBKSTAT 1
11272 LIBS
="-lkstat $LIBS"
11276 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11278 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11279 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11280 # to get the right answer into the cache.
11281 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11282 if test $ac_have_func = no
; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11284 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11285 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11288 ac_check_lib_save_LIBS
=$LIBS
11290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11303 return elf_begin ();
11308 if ac_fn_c_try_link
"$LINENO"; then :
11309 ac_cv_lib_elf_elf_begin
=yes
11311 ac_cv_lib_elf_elf_begin
=no
11313 rm -f core conftest.err conftest.
$ac_objext \
11314 conftest
$ac_exeext conftest.
$ac_ext
11315 LIBS
=$ac_check_lib_save_LIBS
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11318 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11319 if test "x$ac_cv_lib_elf_elf_begin" = x
""yes; then :
11324 if test $ac_have_func = no
; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11326 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11327 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11328 $as_echo_n "(cached) " >&6
11330 ac_check_lib_save_LIBS
=$LIBS
11332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11345 return kvm_open ();
11350 if ac_fn_c_try_link
"$LINENO"; then :
11351 ac_cv_lib_kvm_kvm_open
=yes
11353 ac_cv_lib_kvm_kvm_open
=no
11355 rm -f core conftest.err conftest.
$ac_objext \
11356 conftest
$ac_exeext conftest.
$ac_ext
11357 LIBS
=$ac_check_lib_save_LIBS
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11360 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11361 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then :
11365 # Check for the 4.4BSD definition of getloadavg.
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11367 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11368 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11369 $as_echo_n "(cached) " >&6
11371 ac_check_lib_save_LIBS
=$LIBS
11372 LIBS
="-lutil $LIBS"
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11382 char getloadavg ();
11386 return getloadavg ();
11391 if ac_fn_c_try_link
"$LINENO"; then :
11392 ac_cv_lib_util_getloadavg
=yes
11394 ac_cv_lib_util_getloadavg
=no
11396 rm -f core conftest.err conftest.
$ac_objext \
11397 conftest
$ac_exeext conftest.
$ac_ext
11398 LIBS
=$ac_check_lib_save_LIBS
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11401 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11402 if test "x$ac_cv_lib_util_getloadavg" = x
""yes; then :
11403 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11408 if test $ac_have_func = no
; then
11409 # There is a commonly available library for RS/6000 AIX.
11410 # Since it is not a standard part of AIX, it might be installed locally.
11411 ac_getloadavg_LIBS
=$LIBS
11412 LIBS
="-L/usr/local/lib $LIBS"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11414 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11415 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11418 ac_check_lib_save_LIBS
=$LIBS
11419 LIBS
="-lgetloadavg $LIBS"
11420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11429 char getloadavg ();
11433 return getloadavg ();
11438 if ac_fn_c_try_link
"$LINENO"; then :
11439 ac_cv_lib_getloadavg_getloadavg
=yes
11441 ac_cv_lib_getloadavg_getloadavg
=no
11443 rm -f core conftest.err conftest.
$ac_objext \
11444 conftest
$ac_exeext conftest.
$ac_ext
11445 LIBS
=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11448 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11449 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then :
11450 LIBS
="-lgetloadavg $LIBS"
11452 LIBS
=$ac_getloadavg_LIBS
11457 # Make sure it is really in the library, if we think we found it,
11458 # otherwise set up the replacement function.
11459 for ac_func
in getloadavg
11461 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11462 if test "x$ac_cv_func_getloadavg" = x
""yes; then :
11463 cat >>confdefs.h
<<_ACEOF
11464 #define HAVE_GETLOADAVG 1
11468 case " $LIBOBJS " in
11469 *" getloadavg.$ac_objext "* ) ;;
11470 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11475 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11477 # Figure out what our getloadavg.c needs.
11479 ac_fn_c_check_header_mongrel
"$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11480 if test "x$ac_cv_header_sys_dg_sys_info_h" = x
""yes; then :
11483 $as_echo "#define DGUX 1" >>confdefs.h
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11486 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11487 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11490 ac_check_lib_save_LIBS
=$LIBS
11492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11495 /* Override any GCC internal prototype to avoid an error.
11496 Use char because int might match the return type of a GCC
11497 builtin and then its argument prototype would still apply. */
11501 char dg_sys_info ();
11505 return dg_sys_info ();
11510 if ac_fn_c_try_link
"$LINENO"; then :
11511 ac_cv_lib_dgc_dg_sys_info
=yes
11513 ac_cv_lib_dgc_dg_sys_info
=no
11515 rm -f core conftest.err conftest.
$ac_objext \
11516 conftest
$ac_exeext conftest.
$ac_ext
11517 LIBS
=$ac_check_lib_save_LIBS
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11520 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11521 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then :
11522 cat >>confdefs.h
<<_ACEOF
11523 #define HAVE_LIBDGC 1
11534 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11535 if test "x$ac_cv_header_locale_h" = x
""yes; then :
11540 for ac_func
in setlocale
11542 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
11543 if test "x$ac_cv_func_setlocale" = x
""yes; then :
11544 cat >>confdefs.h
<<_ACEOF
11545 #define HAVE_SETLOCALE 1
11552 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11553 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11554 # Irix 4.0.5F has the header but not the library.
11555 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11558 $as_echo "#define SVR4 1" >>confdefs.h
11562 if test $ac_have_func = no
; then
11563 ac_fn_c_check_header_mongrel
"$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11564 if test "x$ac_cv_header_inq_stats_cpustats_h" = x
""yes; then :
11567 $as_echo "#define UMAX 1" >>confdefs.h
11570 $as_echo "#define UMAX4_3 1" >>confdefs.h
11577 if test $ac_have_func = no
; then
11578 ac_fn_c_check_header_mongrel
"$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11579 if test "x$ac_cv_header_sys_cpustats_h" = x
""yes; then :
11580 ac_have_func
=yes; $as_echo "#define UMAX 1" >>confdefs.h
11587 if test $ac_have_func = no
; then
11588 for ac_header
in mach
/mach.h
11590 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11591 if test "x$ac_cv_header_mach_mach_h" = x
""yes; then :
11592 cat >>confdefs.h
<<_ACEOF
11593 #define HAVE_MACH_MACH_H 1
11602 for ac_header
in nlist.h
11604 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11605 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_NLIST_H 1
11609 ac_fn_c_check_member
"$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11611 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x
""yes; then :
11613 cat >>confdefs.h
<<_ACEOF
11614 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11618 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11631 # Some definitions of getloadavg require that the program be installed setgid.
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11633 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11634 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11640 #ifdef LDAV_PRIVILEGED
11641 Yowza Am I SETGID yet
11644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11645 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then :
11646 ac_cv_func_getloadavg_setgid
=yes
11648 ac_cv_func_getloadavg_setgid
=no
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11654 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11655 if test $ac_cv_func_getloadavg_setgid = yes; then
11658 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11664 if test $ac_cv_func_getloadavg_setgid = yes; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11666 $as_echo_n "checking group of /dev/kmem... " >&6; }
11667 if test "${ac_cv_group_kmem+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11671 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
11672 # If we got an error (system does not support symlinks), try without -L.
11673 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
11674 ac_cv_group_kmem
=`$as_echo "$ac_ls_output" \
11675 | sed -ne 's/[ ][ ]*/ /g;
11676 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11681 $as_echo "$ac_cv_group_kmem" >&6; }
11682 KMEM_GROUP
=$ac_cv_group_kmem
11684 if test "x$ac_save_LIBS" = x
; then
11685 GETLOADAVG_LIBS
=$LIBS
11687 GETLOADAVG_LIBS
=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11694 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11695 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include <sys/types.h> /* for off_t */
11706 int (*fp) (FILE *, off_t, int) = fseeko;
11707 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11712 if ac_fn_c_try_link
"$LINENO"; then :
11713 ac_cv_sys_largefile_source
=no
; break
11715 rm -f core conftest.err conftest.
$ac_objext \
11716 conftest
$ac_exeext conftest.
$ac_ext
11717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11718 /* end confdefs.h. */
11719 #define _LARGEFILE_SOURCE 1
11720 #include <sys/types.h> /* for off_t */
11725 int (*fp) (FILE *, off_t, int) = fseeko;
11726 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11731 if ac_fn_c_try_link
"$LINENO"; then :
11732 ac_cv_sys_largefile_source
=1; break
11734 rm -f core conftest.err conftest.
$ac_objext \
11735 conftest
$ac_exeext conftest.
$ac_ext
11736 ac_cv_sys_largefile_source
=unknown
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11741 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11742 case $ac_cv_sys_largefile_source in #(
11745 cat >>confdefs.h
<<_ACEOF
11746 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11752 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11753 # in glibc 2.1.3, but that breaks too many other things.
11754 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11755 if test $ac_cv_sys_largefile_source != unknown
; then
11757 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11762 # Configure getopt.
11763 # getopt.m4 serial 10
11765 # The getopt module assume you want GNU getopt, with getopt_long etc,
11766 # rather than vanilla POSIX getopt. This means your your code should
11767 # always include <getopt.h> for the getopt prototypes.
11779 # Prerequisites of lib/getopt*.
11785 for ac_header
in getopt.h
11787 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11788 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
11789 cat >>confdefs.h
<<_ACEOF
11790 #define HAVE_GETOPT_H 1
11799 if test -z "$GETOPT_H"; then
11800 for ac_func
in getopt_long_only
11802 ac_fn_c_check_func
"$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11803 if test "x$ac_cv_func_getopt_long_only" = x
""yes; then :
11804 cat >>confdefs.h
<<_ACEOF
11805 #define HAVE_GETOPT_LONG_ONLY 1
11815 if test -z "$GETOPT_H"; then
11816 ac_fn_c_check_decl
"$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11818 if test "x$ac_cv_have_decl_optreset" = x
""yes; then :
11824 if test -z "$GETOPT_H"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11826 $as_echo_n "checking for working GNU getopt function... " >&6; }
11827 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11830 if test "$cross_compiling" = yes; then :
11831 ac_fn_c_check_decl
"$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
11833 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then :
11834 gl_cv_func_gnu_getopt
=no
11836 gl_cv_func_gnu_getopt
=yes
11840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <getopt.h>
11848 myargv[0] = "conftest";
11851 return getopt (2, myargv, "+a") != '?';
11857 if ac_fn_c_try_run
"$LINENO"; then :
11858 gl_cv_func_gnu_getopt
=yes
11860 gl_cv_func_gnu_getopt
=no
11862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
11868 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11869 if test "$gl_cv_func_gnu_getopt" = "no"; then
11876 if test -n "$GETOPT_H"; then :
11881 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
11886 GETOPTOBJS
='getopt.o getopt1.o'
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
11893 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11894 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11897 # Use it with a single arg.
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 $ac_includes_default
11909 if ac_fn_c_try_compile
"$LINENO"; then :
11910 ac_cv_func_getpgrp_void
=no
11912 ac_cv_func_getpgrp_void
=yes
11914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
11918 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11919 if test $ac_cv_func_getpgrp_void = yes; then
11921 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
11926 for ac_func
in strftime
11928 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11929 if test "x$ac_cv_func_strftime" = x
""yes; then :
11930 cat >>confdefs.h
<<_ACEOF
11931 #define HAVE_STRFTIME 1
11935 # strftime is in -lintl on SCO UNIX.
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11937 $as_echo_n "checking for strftime in -lintl... " >&6; }
11938 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11941 ac_check_lib_save_LIBS
=$LIBS
11942 LIBS
="-lintl $LIBS"
11943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11956 return strftime ();
11961 if ac_fn_c_try_link
"$LINENO"; then :
11962 ac_cv_lib_intl_strftime
=yes
11964 ac_cv_lib_intl_strftime
=no
11966 rm -f core conftest.err conftest.
$ac_objext \
11967 conftest
$ac_exeext conftest.
$ac_ext
11968 LIBS
=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11971 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11972 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
11973 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11975 LIBS
="-lintl $LIBS"
11983 for ac_func
in grantpt
11985 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
11986 if test "x$ac_cv_func_grantpt" = x
""yes; then :
11987 cat >>confdefs.h
<<_ACEOF
11988 #define HAVE_GRANTPT 1
11995 # PTY-related GNU extensions.
11996 for ac_func
in getpt
11998 ac_fn_c_check_func
"$LINENO" "getpt" "ac_cv_func_getpt"
11999 if test "x$ac_cv_func_getpt" = x
""yes; then :
12000 cat >>confdefs.h
<<_ACEOF
12001 #define HAVE_GETPT 1
12008 # Check this now, so that we will NOT find the above functions in ncurses.
12009 # That is because we have not set up to link ncurses in lib-src.
12010 # It's better to believe a function is not available
12011 # than to expect to find it in ncurses.
12012 # Also we need tputs and frieds to be able to build at all.
12013 have_tputs_et_al
=true
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12015 $as_echo_n "checking for library containing tputs... " >&6; }
12016 if test "${ac_cv_search_tputs+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12019 ac_func_search_save_LIBS
=$LIBS
12020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12038 for ac_lib
in '' ncurses terminfo termcap
; do
12039 if test -z "$ac_lib"; then
12040 ac_res
="none required"
12043 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12045 if ac_fn_c_try_link
"$LINENO"; then :
12046 ac_cv_search_tputs
=$ac_res
12048 rm -f core conftest.err conftest.
$ac_objext \
12050 if test "${ac_cv_search_tputs+set}" = set; then :
12054 if test "${ac_cv_search_tputs+set}" = set; then :
12057 ac_cv_search_tputs
=no
12059 rm conftest.
$ac_ext
12060 LIBS
=$ac_func_search_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12063 $as_echo "$ac_cv_search_tputs" >&6; }
12064 ac_res
=$ac_cv_search_tputs
12065 if test "$ac_res" != no
; then :
12066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12069 have_tputs_et_al
=false
12072 if test "$have_tputs_et_al" != true
; then
12073 as_fn_error
"I couldn't find termcap functions (tputs and friends).
12074 Maybe some development libraries/packages are missing? Try installing
12075 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12077 # Must define this when any termcap library is found.
12079 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12082 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 #include <netinet/in.h>
12088 #include <arpa/nameser.h>
12089 #include <resolv.h>
12098 if ac_fn_c_try_link
"$LINENO"; then :
12103 rm -f core conftest.err conftest.
$ac_objext \
12104 conftest
$ac_exeext conftest.
$ac_ext
12105 if test "$have_res_init" = no
; then
12107 LIBS
="$LIBS -lresolv"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12109 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <netinet/in.h>
12113 #include <arpa/nameser.h>
12114 #include <resolv.h>
12123 if ac_fn_c_try_link
"$LINENO"; then :
12128 rm -f core conftest.err conftest.
$ac_objext \
12129 conftest
$ac_exeext conftest.
$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12131 $as_echo "$have_res_init" >&6; }
12132 if test "$have_res_init" = yes ; then
12138 if test "$have_res_init" = yes; then
12140 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12144 # Do we need the Hesiod library to provide the support routines?
12146 if test "$with_hesiod" != no
; then
12147 # Don't set $LIBS here -- see comments above. FIXME which comments?
12148 ac_fn_c_check_func
"$LINENO" "res_send" "ac_cv_func_res_send"
12149 if test "x$ac_cv_func_res_send" = x
""yes; then :
12152 ac_fn_c_check_func
"$LINENO" "__res_send" "ac_cv_func___res_send"
12153 if test "x$ac_cv_func___res_send" = x
""yes; then :
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12157 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12158 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12161 ac_check_lib_save_LIBS
=$LIBS
12162 LIBS
="-lresolv $LIBS"
12163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12176 return res_send ();
12181 if ac_fn_c_try_link
"$LINENO"; then :
12182 ac_cv_lib_resolv_res_send
=yes
12184 ac_cv_lib_resolv_res_send
=no
12186 rm -f core conftest.err conftest.
$ac_objext \
12187 conftest
$ac_exeext conftest.
$ac_ext
12188 LIBS
=$ac_check_lib_save_LIBS
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12191 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12192 if test "x$ac_cv_lib_resolv_res_send" = x
""yes; then :
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12196 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12197 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_check_lib_save_LIBS
=$LIBS
12201 LIBS
="-lresolv $LIBS"
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12211 char __res_send ();
12215 return __res_send ();
12220 if ac_fn_c_try_link
"$LINENO"; then :
12221 ac_cv_lib_resolv___res_send
=yes
12223 ac_cv_lib_resolv___res_send
=no
12225 rm -f core conftest.err conftest.
$ac_objext \
12226 conftest
$ac_exeext conftest.
$ac_ext
12227 LIBS
=$ac_check_lib_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12230 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12231 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then :
12241 if test "$resolv" = yes ; then
12246 ac_fn_c_check_func
"$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12247 if test "x$ac_cv_func_hes_getmailhost" = x
""yes; then :
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12251 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12252 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12255 ac_check_lib_save_LIBS
=$LIBS
12256 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12266 char hes_getmailhost ();
12270 return hes_getmailhost ();
12275 if ac_fn_c_try_link
"$LINENO"; then :
12276 ac_cv_lib_hesiod_hes_getmailhost
=yes
12278 ac_cv_lib_hesiod_hes_getmailhost
=no
12280 rm -f core conftest.err conftest.
$ac_objext \
12281 conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12285 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12286 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then :
12295 if test x
"$hesiod" = xyes
; then
12297 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12304 # Do we need libresolv (due to res_init or Hesiod)?
12305 if test "$resolv" = yes ; then
12307 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12315 # These tell us which Kerberos-related libraries to use.
12322 if test "${with_kerberos}" != no
; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12324 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12328 ac_check_lib_save_LIBS
=$LIBS
12329 LIBS
="-lcom_err $LIBS"
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12348 if ac_fn_c_try_link
"$LINENO"; then :
12349 ac_cv_lib_com_err_com_err
=yes
12351 ac_cv_lib_com_err_com_err
=no
12353 rm -f core conftest.err conftest.
$ac_objext \
12354 conftest
$ac_exeext conftest.
$ac_ext
12355 LIBS
=$ac_check_lib_save_LIBS
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12358 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12359 if test "x$ac_cv_lib_com_err_com_err" = x
""yes; then :
12365 if test $have_com_err = yes; then
12366 COM_ERRLIB
=-lcom_err
12367 LIBS
="$COM_ERRLIB $LIBS"
12369 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12373 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12374 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12377 ac_check_lib_save_LIBS
=$LIBS
12378 LIBS
="-lcrypto $LIBS"
12379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12388 char mit_des_cbc_encrypt ();
12392 return mit_des_cbc_encrypt ();
12397 if ac_fn_c_try_link
"$LINENO"; then :
12398 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12400 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12402 rm -f core conftest.err conftest.
$ac_objext \
12403 conftest
$ac_exeext conftest.
$ac_ext
12404 LIBS
=$ac_check_lib_save_LIBS
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12407 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12408 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x
""yes; then :
12414 if test $have_crypto = yes; then
12416 LIBS
="$CRYPTOLIB $LIBS"
12418 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12422 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12423 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12426 ac_check_lib_save_LIBS
=$LIBS
12427 LIBS
="-lk5crypto $LIBS"
12428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12437 char mit_des_cbc_encrypt ();
12441 return mit_des_cbc_encrypt ();
12446 if ac_fn_c_try_link
"$LINENO"; then :
12447 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12451 rm -f core conftest.err conftest.
$ac_objext \
12452 conftest
$ac_exeext conftest.
$ac_ext
12453 LIBS
=$ac_check_lib_save_LIBS
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12456 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12457 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then :
12463 if test $have_k5crypto = yes; then
12464 CRYPTOLIB
=-lk5crypto
12465 LIBS
="$CRYPTOLIB $LIBS"
12467 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12471 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 ac_check_lib_save_LIBS
=$LIBS
12476 LIBS
="-lkrb5 $LIBS"
12477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12486 char krb5_init_context ();
12490 return krb5_init_context ();
12495 if ac_fn_c_try_link
"$LINENO"; then :
12496 ac_cv_lib_krb5_krb5_init_context
=yes
12498 ac_cv_lib_krb5_krb5_init_context
=no
12500 rm -f core conftest.err conftest.
$ac_objext \
12501 conftest
$ac_exeext conftest.
$ac_ext
12502 LIBS
=$ac_check_lib_save_LIBS
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12505 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12506 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then :
12512 if test $have_krb5=yes; then
12514 LIBS
="$KRB5LIB $LIBS"
12516 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12519 if test "${with_kerberos5}" = no
; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12521 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12522 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 ac_check_lib_save_LIBS
=$LIBS
12526 LIBS
="-ldes425 $LIBS"
12527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12536 char des_cbc_encrypt ();
12540 return des_cbc_encrypt ();
12545 if ac_fn_c_try_link
"$LINENO"; then :
12546 ac_cv_lib_des425_des_cbc_encrypt
=yes
12548 ac_cv_lib_des425_des_cbc_encrypt
=no
12550 rm -f core conftest.err conftest.
$ac_objext \
12551 conftest
$ac_exeext conftest.
$ac_ext
12552 LIBS
=$ac_check_lib_save_LIBS
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12555 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12556 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x
""yes; then :
12562 if test $have_des425 = yes; then
12564 LIBS
="$DESLIB $LIBS"
12566 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12570 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12571 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12574 ac_check_lib_save_LIBS
=$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 des_cbc_encrypt ();
12589 return des_cbc_encrypt ();
12594 if ac_fn_c_try_link
"$LINENO"; then :
12595 ac_cv_lib_des_des_cbc_encrypt
=yes
12597 ac_cv_lib_des_des_cbc_encrypt
=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_des_des_cbc_encrypt" >&5
12604 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12605 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then :
12611 if test $have_des = yes; then
12613 LIBS
="$DESLIB $LIBS"
12615 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12620 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12621 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12624 ac_check_lib_save_LIBS
=$LIBS
12625 LIBS
="-lkrb4 $LIBS"
12626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12635 char krb_get_cred ();
12639 return krb_get_cred ();
12644 if ac_fn_c_try_link
"$LINENO"; then :
12645 ac_cv_lib_krb4_krb_get_cred
=yes
12647 ac_cv_lib_krb4_krb_get_cred
=no
12649 rm -f core conftest.err conftest.
$ac_objext \
12650 conftest
$ac_exeext conftest.
$ac_ext
12651 LIBS
=$ac_check_lib_save_LIBS
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12654 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12655 if test "x$ac_cv_lib_krb4_krb_get_cred" = x
""yes; then :
12661 if test $have_krb4 = yes; then
12663 LIBS
="$KRB4LIB $LIBS"
12665 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12669 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12673 ac_check_lib_save_LIBS
=$LIBS
12675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12684 char krb_get_cred ();
12688 return krb_get_cred ();
12693 if ac_fn_c_try_link
"$LINENO"; then :
12694 ac_cv_lib_krb_krb_get_cred
=yes
12696 ac_cv_lib_krb_krb_get_cred
=no
12698 rm -f core conftest.err conftest.
$ac_objext \
12699 conftest
$ac_exeext conftest.
$ac_ext
12700 LIBS
=$ac_check_lib_save_LIBS
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12703 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12704 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then :
12710 if test $have_krb = yes; then
12712 LIBS
="$KRB4LIB $LIBS"
12714 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12720 if test "${with_kerberos5}" != no
; then
12721 for ac_header
in krb5.h
12723 ac_fn_c_check_header_mongrel
"$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
12724 if test "x$ac_cv_header_krb5_h" = x
""yes; then :
12725 cat >>confdefs.h
<<_ACEOF
12726 #define HAVE_KRB5_H 1
12728 ac_fn_c_check_member
"$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
12730 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then :
12732 cat >>confdefs.h
<<_ACEOF
12733 #define HAVE_KRB5_ERROR_TEXT 1
12738 ac_fn_c_check_member
"$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
12740 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then :
12742 cat >>confdefs.h
<<_ACEOF
12743 #define HAVE_KRB5_ERROR_E_TEXT 1
12754 for ac_header
in des.h
12756 ac_fn_c_check_header_mongrel
"$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
12757 if test "x$ac_cv_header_des_h" = x
""yes; then :
12758 cat >>confdefs.h
<<_ACEOF
12759 #define HAVE_DES_H 1
12763 for ac_header
in kerberosIV
/des.h
12765 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
12766 if test "x$ac_cv_header_kerberosIV_des_h" = x
""yes; then :
12767 cat >>confdefs.h
<<_ACEOF
12768 #define HAVE_KERBEROSIV_DES_H 1
12772 for ac_header
in kerberos
/des.h
12774 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
12775 if test "x$ac_cv_header_kerberos_des_h" = x
""yes; then :
12776 cat >>confdefs.h
<<_ACEOF
12777 #define HAVE_KERBEROS_DES_H 1
12792 for ac_header
in krb.h
12794 ac_fn_c_check_header_mongrel
"$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
12795 if test "x$ac_cv_header_krb_h" = x
""yes; then :
12796 cat >>confdefs.h
<<_ACEOF
12797 #define HAVE_KRB_H 1
12801 for ac_header
in kerberosIV
/krb.h
12803 ac_fn_c_check_header_mongrel
"$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
12804 if test "x$ac_cv_header_kerberosIV_krb_h" = x
""yes; then :
12805 cat >>confdefs.h
<<_ACEOF
12806 #define HAVE_KERBEROSIV_KRB_H 1
12810 for ac_header
in kerberos
/krb.h
12812 ac_fn_c_check_header_mongrel
"$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
12813 if test "x$ac_cv_header_kerberos_krb_h" = x
""yes; then :
12814 cat >>confdefs.h
<<_ACEOF
12815 #define HAVE_KERBEROS_KRB_H 1
12831 for ac_header
in com_err.h
12833 ac_fn_c_check_header_mongrel
"$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
12834 if test "x$ac_cv_header_com_err_h" = x
""yes; then :
12835 cat >>confdefs.h
<<_ACEOF
12836 #define HAVE_COM_ERR_H 1
12851 # Solaris requires -lintl if you want strerror (which calls dgettext)
12852 # to return localized messages.
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
12854 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12855 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12858 ac_check_lib_save_LIBS
=$LIBS
12859 LIBS
="-lintl $LIBS"
12860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12873 return dgettext ();
12878 if ac_fn_c_try_link
"$LINENO"; then :
12879 ac_cv_lib_intl_dgettext
=yes
12881 ac_cv_lib_intl_dgettext
=no
12883 rm -f core conftest.err conftest.
$ac_objext \
12884 conftest
$ac_exeext conftest.
$ac_ext
12885 LIBS
=$ac_check_lib_save_LIBS
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
12888 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12889 if test "x$ac_cv_lib_intl_dgettext" = x
""yes; then :
12890 cat >>confdefs.h
<<_ACEOF
12891 #define HAVE_LIBINTL 1
12894 LIBS
="-lintl $LIBS"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
12900 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12901 if test "${emacs_cv_localtime_cache+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12904 if test x
$ac_cv_func_tzset = xyes
; then
12905 if test "$cross_compiling" = yes; then :
12906 # If we have tzset, assume the worst when cross-compiling.
12907 emacs_cv_localtime_cache
=yes
12909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 extern char **environ;
12916 for (to = from = environ; (*to = *from); from++)
12917 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
12920 char TZ_GMT0[] = "TZ=GMT0";
12921 char TZ_PST8[] = "TZ=PST8";
12924 time_t now = time ((time_t *) 0);
12925 int hour_GMT0, hour_unset;
12926 if (putenv (TZ_GMT0) != 0)
12928 hour_GMT0 = localtime (&now)->tm_hour;
12930 hour_unset = localtime (&now)->tm_hour;
12931 if (putenv (TZ_PST8) != 0)
12933 if (localtime (&now)->tm_hour == hour_GMT0)
12936 if (localtime (&now)->tm_hour != hour_unset)
12941 if ac_fn_c_try_run
"$LINENO"; then :
12942 emacs_cv_localtime_cache
=no
12944 emacs_cv_localtime_cache
=yes
12946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12947 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12951 # If we lack tzset, report that localtime does not cache TZ,
12952 # since we can't invalidate the cache if we don't have tzset.
12953 emacs_cv_localtime_cache
=no
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
12957 $as_echo "$emacs_cv_localtime_cache" >&6; }
12958 if test $emacs_cv_localtime_cache = yes; then
12960 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
12964 if test "x$HAVE_TIMEVAL" = xyes
; then
12965 for ac_func
in gettimeofday
12967 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12968 if test "x$ac_cv_func_gettimeofday" = x
""yes; then :
12969 cat >>confdefs.h
<<_ACEOF
12970 #define HAVE_GETTIMEOFDAY 1
12976 if test $ac_cv_func_gettimeofday = yes; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12978 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12979 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12985 #ifdef TIME_WITH_SYS_TIME
12986 #include <sys/time.h>
12989 #ifdef HAVE_SYS_TIME_H
12990 #include <sys/time.h>
12998 struct timeval time;
12999 gettimeofday (&time, 0);
13004 if ac_fn_c_try_compile
"$LINENO"; then :
13005 emacs_cv_gettimeofday_two_arguments
=yes
13007 emacs_cv_gettimeofday_two_arguments
=no
13009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13012 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13013 if test $emacs_cv_gettimeofday_two_arguments = no
; then
13015 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13022 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
13023 if test "x$ac_cv_func_socket" = x
""yes; then :
13029 if test $ok_so_far = yes; then
13030 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13031 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then :
13039 if test $ok_so_far = yes; then
13040 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13041 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
13049 if test $ok_so_far = yes; then
13051 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13055 for ac_header
in sys
/ioctl.h
13057 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13058 if test "x$ac_cv_header_sys_ioctl_h" = x
""yes; then :
13059 cat >>confdefs.h
<<_ACEOF
13060 #define HAVE_SYS_IOCTL_H 1
13068 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
13070 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13075 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13076 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13080 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13087 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13088 if test "x$ac_cv_type_pid_t" = x
""yes; then :
13092 cat >>confdefs.h
<<_ACEOF
13098 for ac_header
in vfork.h
13100 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13101 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13102 cat >>confdefs.h
<<_ACEOF
13103 #define HAVE_VFORK_H 1
13110 for ac_func
in fork vfork
13112 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13113 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13114 eval as_val
=\$
$as_ac_var
13115 if test "x$as_val" = x
""yes; then :
13116 cat >>confdefs.h
<<_ACEOF
13117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13123 if test "x$ac_cv_func_fork" = xyes
; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13125 $as_echo_n "checking for working fork... " >&6; }
13126 if test "${ac_cv_func_fork_works+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13129 if test "$cross_compiling" = yes; then :
13130 ac_cv_func_fork_works
=cross
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 $ac_includes_default
13139 /* By Ruediger Kuhlmann. */
13140 return fork () < 0;
13146 if ac_fn_c_try_run
"$LINENO"; then :
13147 ac_cv_func_fork_works
=yes
13149 ac_cv_func_fork_works
=no
13151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13157 $as_echo "$ac_cv_func_fork_works" >&6; }
13160 ac_cv_func_fork_works
=$ac_cv_func_fork
13162 if test "x$ac_cv_func_fork_works" = xcross
; then
13164 *-*-amigaos* |
*-*-msdosdjgpp*)
13165 # Override, as these systems have only a dummy fork() stub
13166 ac_cv_func_fork_works
=no
13169 ac_cv_func_fork_works
=yes
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13173 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13175 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13176 if test "x$ac_cv_func_vfork" = xyes
; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13178 $as_echo_n "checking for working vfork... " >&6; }
13179 if test "${ac_cv_func_vfork_works+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 if test "$cross_compiling" = yes; then :
13183 ac_cv_func_vfork_works
=cross
13185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 /* Thanks to Paul Eggert for this test. */
13188 $ac_includes_default
13189 #include <sys/wait.h>
13190 #ifdef HAVE_VFORK_H
13191 # include <vfork.h>
13193 /* On some sparc systems, changes by the child to local and incoming
13194 argument registers are propagated back to the parent. The compiler
13195 is told about this with #include <vfork.h>, but some compilers
13196 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13197 static variable whose address is put into a register that is
13198 clobbered by the vfork. */
13201 sparc_address_test (int arg)
13203 sparc_address_test (arg) int arg;
13206 static pid_t child;
13224 pid_t parent = getpid ();
13227 sparc_address_test (0);
13232 /* Here is another test for sparc vfork register problems. This
13233 test uses lots of local variables, at least as many local
13234 variables as main has allocated so far including compiler
13235 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13236 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13237 reuse the register of parent for one of the local variables,
13238 since it will think that parent can't possibly be used any more
13239 in this routine. Assigning to the local variable will thus
13240 munge parent in the parent process. */
13242 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13243 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13244 /* Convince the compiler that p..p7 are live; otherwise, it might
13245 use the same hardware register for all 8 local variables. */
13246 if (p != p1 || p != p2 || p != p3 || p != p4
13247 || p != p5 || p != p6 || p != p7)
13250 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13251 from child file descriptors. If the child closes a descriptor
13252 before it execs or exits, this munges the parent's descriptor
13253 as well. Test for this by closing stdout in the child. */
13254 _exit(close(fileno(stdout)) != 0);
13259 while (wait(&status) != child)
13262 /* Was there some problem with vforking? */
13265 /* Did the child fail? (This shouldn't happen.) */
13268 /* Did the vfork/compiler bug occur? */
13269 || parent != getpid()
13271 /* Did the file descriptor bug occur? */
13272 || fstat(fileno(stdout), &st) != 0
13277 if ac_fn_c_try_run
"$LINENO"; then :
13278 ac_cv_func_vfork_works
=yes
13280 ac_cv_func_vfork_works
=no
13282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13288 $as_echo "$ac_cv_func_vfork_works" >&6; }
13291 if test "x$ac_cv_func_fork_works" = xcross
; then
13292 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13294 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13297 if test "x$ac_cv_func_vfork_works" = xyes
; then
13299 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13303 $as_echo "#define vfork fork" >>confdefs.h
13306 if test "x$ac_cv_func_fork_works" = xyes
; then
13308 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13314 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13315 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <langinfo.h>
13324 char* cs = nl_langinfo(CODESET);
13329 if ac_fn_c_try_link
"$LINENO"; then :
13330 emacs_cv_langinfo_codeset
=yes
13332 emacs_cv_langinfo_codeset
=no
13334 rm -f core conftest.err conftest.
$ac_objext \
13335 conftest
$ac_exeext conftest.
$ac_ext
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13339 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13340 if test $emacs_cv_langinfo_codeset = yes; then
13342 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13346 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13347 if test "x$ac_cv_type_size_t" = x
""yes; then :
13349 cat >>confdefs.h
<<_ACEOF
13350 #define HAVE_SIZE_T 1
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13358 $as_echo_n "checking for mbstate_t... " >&6; }
13359 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364 $ac_includes_default
13365 # include <wchar.h>
13369 mbstate_t x; return sizeof x;
13374 if ac_fn_c_try_compile
"$LINENO"; then :
13375 ac_cv_type_mbstate_t
=yes
13377 ac_cv_type_mbstate_t
=no
13379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13382 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13383 if test $ac_cv_type_mbstate_t = yes; then
13385 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13389 $as_echo "#define mbstate_t int" >>confdefs.h
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13394 $as_echo_n "checking for C restrict keyword... " >&6; }
13395 if test "${emacs_cv_c_restrict+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 void fred (int *restrict x);
13409 if ac_fn_c_try_compile
"$LINENO"; then :
13410 emacs_cv_c_restrict
=yes
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 void fred (int *__restrict x);
13423 if ac_fn_c_try_compile
"$LINENO"; then :
13424 emacs_cv_c_restrict
=__restrict
13426 emacs_cv_c_restrict
=no
13428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13433 $as_echo "$emacs_cv_c_restrict" >&6; }
13434 case "$emacs_cv_c_restrict" in
13435 yes) emacs_restrict
=restrict
;;
13436 no
) emacs_restrict
="";;
13437 *) emacs_restrict
="$emacs_cv_c_restrict";;
13439 if test "$emacs_restrict" != __restrict
; then
13441 cat >>confdefs.h
<<_ACEOF
13442 #define __restrict $emacs_restrict
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13448 $as_echo_n "checking for C restricted array declarations... " >&6; }
13449 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 void fred (int x[__restrict]);
13463 if ac_fn_c_try_compile
"$LINENO"; then :
13464 emacs_cv_c_restrict_arr
=yes
13466 emacs_cv_c_restrict_arr
=no
13468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13471 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13472 if test "$emacs_cv_c_restrict_arr" = yes; then
13474 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13480 # Set up the CFLAGS for real compilation, so we can substitute it.
13481 CFLAGS
="$REAL_CFLAGS"
13482 CPPFLAGS
="$REAL_CPPFLAGS"
13484 #### Find out which version of Emacs this is.
13485 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13486 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13487 if test x
"${version}" = x
; then
13488 as_fn_error
"can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
13490 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13492 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13495 ### Specify what sort of things we'll be editing into Makefile and config.h.
13496 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13524 ## Used in lwlib/Makefile.in.
13541 cat >>confdefs.h <<_ACEOF
13542 #define EMACS_CONFIGURATION "${canonical}"
13546 cat >>confdefs.h <<_ACEOF
13547 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13551 cat >>confdefs.h <<_ACEOF
13552 #define config_machfile "${machfile}"
13556 cat >>confdefs.h <<_ACEOF
13557 #define config_opsysfile "${opsysfile}"
13561 cat >>confdefs.h <<_ACEOF
13562 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
13566 cat >>confdefs.h <<_ACEOF
13567 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
13573 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13575 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13578 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13585 if test "${USE_X_TOOLKIT}" != "none" ; then
13586 WIDGET_OBJ
=widget.o
13588 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13590 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13592 $as_echo "#define USE_LUCID 1" >>confdefs.h
13594 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13596 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13601 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13602 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
13606 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13607 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13608 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
13612 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13613 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
13616 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
13622 case "$USE_X_TOOLKIT" in
13623 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
13624 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
13625 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
13629 if test "$USE_X_TOOLKIT" = "none"; then
13630 LIBXT_OTHER
="\$(LIBXSM)"
13632 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13636 ## The X Menu stuff is present in the X10 distribution, but missing
13637 ## from X11. If we have X10, just use the installed library;
13638 ## otherwise, use our own copy.
13639 if test "${HAVE_X11}" = "yes" ; then
13641 $as_echo "#define HAVE_X11 1" >>confdefs.h
13644 if test "$USE_X_TOOLKIT" = "none"; then
13645 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
13647 OLDXMENU
="\${lwlibdir}liblw.a"
13649 LIBXMENU
="\$(OLDXMENU)"
13650 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
13657 if test "$HAVE_GTK" = "yes"; then
13666 if test "${HAVE_MENUS}" = "yes" ; then
13668 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13671 if test "${GNU_MALLOC}" = "yes" ; then
13673 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13676 if test "${REL_ALLOC}" = "yes" ; then
13678 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13683 if test "$opsys" = "cygwin"; then
13684 CYGWIN_OBJ
="sheap.o"
13685 ## Cygwin differs because of its unexec().
13687 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
13690 PRE_ALLOC_OBJ
=lastfile.o
13691 POST_ALLOC_OBJ
="\$(vmlimitobj)"
13699 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
13702 ## The -headerpad option tells ld (see man page) to leave room at the
13703 ## end of the header for adding load commands. Needed for dumping.
13704 ## 0x690 is the total size of 30 segment load commands (at 56
13705 ## each); under Cocoa 31 commands are required.
13706 if test "$HAVE_NS" = "yes"; then
13707 libs_nsgui
="-framework AppKit"
13708 headerpad_extra
=6C8
13711 headerpad_extra
=690
13713 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
13716 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
13723 #### Report on what we decided to do.
13724 #### Report GTK as a toolkit, even if it doesn't use Xt.
13725 #### It makes printing result more understandable as using GTK sets
13726 #### toolkit_scroll_bars to yes by default.
13727 if test "${HAVE_GTK}" = "yes"; then
13732 Configured for \`${canonical}'.
13734 Where should the build process find the source code? ${srcdir}
13735 What operating system and machine description files should Emacs use?
13736 \`${opsysfile}' and \`${machfile}'
13737 What compiler should emacs be built with? ${CC} ${CFLAGS}
13738 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
13739 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
13740 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
13741 What window system should Emacs use? ${window_system}
13742 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
13744 if test -n "${x_includes}"; then
13745 echo " Where do we find X Windows header files? ${x_includes}"
13747 echo " Where do we find X Windows header files? Standard dirs"
13749 if test -n "${x_libraries}"; then
13750 echo " Where do we find X Windows libraries? ${x_libraries}"
13752 echo " Where do we find X Windows libraries? Standard dirs"
13755 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13756 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13757 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13758 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13759 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13760 echo " Does Emacs use -lpng? ${HAVE_PNG}"
13761 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13762 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
13763 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
13764 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
13765 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
13767 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
13768 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
13769 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
13770 echo " Does Emacs use -lxft? ${HAVE_XFT}"
13772 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
13775 if test $USE_XASSERTS = yes; then
13776 echo " Compiling with asserts turned on."
13777 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
13782 if test "$HAVE_NS" = "yes"; then
13784 echo "You must run \"make install\" in order to test the built application.
13785 The installed application will go to nextstep/Emacs.app and can be
13786 run or moved from there."
13787 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
13788 echo "The application will be fully self-contained."
13790 echo "The lisp resources for the application will be installed under ${prefix}.
13791 You may need to run \"make install\" with sudo. The application will fail
13792 to run if these resources are not installed."
13797 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
13798 echo "D-Bus integration has been tested for GNU/Linux only."
13803 # Remove any trailing slashes in these variables.
13804 test "${prefix}" != NONE
&&
13805 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
13806 test "${exec_prefix}" != NONE
&&
13807 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
13809 # Now get this: Some word that is part of the ${srcdir} directory name
13810 # or the ${configuration} value might, just might, happen to be an
13811 # identifier like `sun4' or `i386' or something, and be predefined by
13812 # the C preprocessor to some helpful value like 1, or maybe the empty
13813 # string. Needless to say consequent macro substitutions are less
13814 # than conducive to the makefile finding the correct directory.
13815 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
13816 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13817 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
13819 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13820 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13821 ## from Makefile.c can correctly provide the arg `-traditional' to the
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13829 $EGREP "yes..yes" >/dev
/null
2>&1; then :
13830 CPP_NEED_TRADITIONAL
=no
13832 CPP_NEED_TRADITIONAL
=yes
13837 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
13839 ac_config_commands
="$ac_config_commands default"
13841 cat >confcache
<<\_ACEOF
13842 # This file is a shell script that caches the results of configure
13843 # tests run on this system so they can be shared between configure
13844 # scripts and configure runs, see configure's option --config-cache.
13845 # It is not useful on other systems. If it contains results you don't
13846 # want to keep, you may remove or edit it.
13848 # config.status only pays attention to the cache file if you give it
13849 # the --recheck option to rerun configure.
13851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13853 # following values.
13857 # The following way of writing the cache mishandles newlines in values,
13858 # but we know of no workaround that is simple, portable, and efficient.
13859 # So, we kill variables containing newlines.
13860 # Ultrix sh set writes to stderr and can't be redirected directly,
13861 # and sets the high bit in the cache file unless we assign to the vars.
13863 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13864 eval ac_val
=\$
$ac_var
13868 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13872 _ | IFS | as_nl
) ;; #(
13873 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13874 *) { eval $ac_var=; unset $ac_var;} ;;
13880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13881 *${as_nl}ac_space
=\
*)
13882 # `set' does not quote correctly, so add quotes: double-quote
13883 # substitution turns \\\\ into \\, and sed turns \\ into \.
13886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13889 # `set' quotes correctly as required by POSIX, so do not add quotes.
13890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13903 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13904 if test -w "$cache_file"; then
13905 test "x$cache_file" != "x/dev/null" &&
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13907 $as_echo "$as_me: updating cache $cache_file" >&6;}
13908 cat confcache
>$cache_file
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13916 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13917 # Let make expand exec_prefix.
13918 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13920 DEFS
=-DHAVE_CONFIG_H
13924 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13925 # 1. Remove the extension, and $U if already installed.
13926 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13927 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13929 # will be set to the directory where LIBOBJS objects are built.
13930 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13931 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13933 LIBOBJS
=$ac_libobjs
13935 LTLIBOBJS
=$ac_ltlibobjs
13939 : ${CONFIG_STATUS=./config.status}
13941 ac_clean_files_save
=$ac_clean_files
13942 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13948 # Generated by $as_me.
13949 # Run this file to recreate the current configuration.
13950 # Compiler output produced by configure, useful for debugging
13951 # configure, is in config.log if it exists.
13954 ac_cs_recheck=false
13957 SHELL=\${CONFIG_SHELL-$SHELL}
13960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13961 ## -------------------- ##
13962 ## M4sh Initialization. ##
13963 ## -------------------- ##
13965 # Be more Bourne compatible
13966 DUALCASE
=1; export DUALCASE
# for MKS sh
13967 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13971 # is contrary to our usage. Disable this feature.
13972 alias -g '${1+"$@"}'='"$@"'
13973 setopt NO_GLOB_SUBST
13975 case `(set -o) 2>/dev/null` in #(
13987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13988 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13991 # Prefer a ksh shell builtin over an external printf program on Solaris,
13992 # but without wasting forks for bash or zsh.
13993 if test -z "$BASH_VERSION$ZSH_VERSION" \
13994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13995 as_echo='print
-r --'
13996 as_echo_n='print
-rn --'
13997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13998 as_echo='printf %s
\n'
13999 as_echo_n='printf %s
'
14001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14002 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14003 as_echo_n='/usr
/ucb
/echo -n'
14005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14006 as_echo_n_body='eval
14010 expr "X$arg" : "X\\(.*\\)$as_nl";
14011 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14013 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14015 export as_echo_n_body
14016 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14018 export as_echo_body
14019 as_echo='sh
-c $as_echo_body as_echo
'
14022 # The user is always right.
14023 if test "${PATH_SEPARATOR+set}" != set; then
14025 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14026 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14033 # We need space, tab and new line, in precisely that order. Quoting is
14034 # there to prevent editors from complaining about space-tab.
14035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14036 # splitting by setting IFS to empty value.)
14039 # Find who we are. Look in the path if we contain no directory separator.
14041 *[\\/]* ) as_myself=$0 ;;
14042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14046 test -z "$as_dir" && as_dir=.
14047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14053 # We did not find ourselves, most probably we were run as `sh COMMAND'
14054 # in which case we are not to be found in the path.
14055 if test "x$as_myself" = x
; then
14058 if test ! -f "$as_myself"; then
14059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14063 # Unset variables that we do not need and which cause bugs (e.g. in
14064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14065 # suppresses any "Segmentation fault" message there. '((' could
14066 # trigger a bug in pdksh 5.2.14.
14067 for as_var
in BASH_ENV ENV MAIL MAILPATH
14068 do eval test x\
${$as_var+set} = xset \
14069 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14082 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14085 # as_fn_error ERROR [LINENO LOG_FD]
14086 # ---------------------------------
14087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14089 # script with status $?, using 1 if that was 0.
14092 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14094 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14097 $as_echo "$as_me: error: $1" >&2
14098 as_fn_exit
$as_status
14102 # as_fn_set_status STATUS
14103 # -----------------------
14104 # Set $? to STATUS, without forking.
14105 as_fn_set_status
()
14108 } # as_fn_set_status
14110 # as_fn_exit STATUS
14111 # -----------------
14112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14116 as_fn_set_status
$1
14122 # Portably unset VAR.
14125 { eval $1=; unset $1;}
14127 as_unset
=as_fn_unset
14128 # as_fn_append VAR VALUE
14129 # ----------------------
14130 # Append the text in VALUE to the end of the definition contained in VAR. Take
14131 # advantage of any shell optimizations that allow amortized linear growth over
14132 # repeated appends, instead of the typical quadratic growth present in naive
14134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14135 eval 'as_fn_append ()
14146 # as_fn_arith ARG...
14147 # ------------------
14148 # Perform arithmetic evaluation on the ARGs, and store the result in the
14149 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14150 # must be portable across $(()) and expr.
14151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14152 eval 'as_fn_arith ()
14159 as_val
=`expr "$@" || test $? -eq 1`
14164 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14165 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14171 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14172 as_basename
=basename
14177 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14183 as_me
=`$as_basename -- "$0" ||
14184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14185 X"$0" : 'X\(//\)$' \| \
14186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14188 sed '/^.*\/\([^/][^/]*\)\/*$/{
14202 # Avoid depending upon Character Ranges.
14203 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14204 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14205 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14206 as_cr_digits
='0123456789'
14207 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14209 ECHO_C
= ECHO_N
= ECHO_T
=
14210 case `echo -n x` in #(((((
14212 case `echo 'xy\c'` in
14213 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14215 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14222 rm -f conf$$ conf$$.exe conf$$.
file
14223 if test -d conf$$.dir
; then
14224 rm -f conf$$.dir
/conf$$.
file
14227 mkdir conf$$.dir
2>/dev
/null
14229 if (echo >conf$$.
file) 2>/dev
/null
; then
14230 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14232 # ... but there are two gotchas:
14233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14235 # In both cases, we have to default to `cp -p'.
14236 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14238 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14246 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14247 rmdir conf$$.dir
2>/dev
/null
14252 # Create "$as_dir" as a directory, including parents if necessary.
14257 -*) as_dir
=.
/$as_dir;;
14259 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14263 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14264 *) as_qdir
=$as_dir;;
14266 as_dirs
="'$as_qdir' $as_dirs"
14267 as_dir
=`$as_dirname -- "$as_dir" ||
14268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14269 X"$as_dir" : 'X\(//\)[^/]' \| \
14270 X"$as_dir" : 'X\(//\)$' \| \
14271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14272 $as_echo X"$as_dir" |
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277 /^X\(\/\/\)[^/].*/{
14290 test -d "$as_dir" && break
14292 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14293 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14297 if mkdir
-p .
2>/dev
/null
; then
14298 as_mkdir_p
='mkdir -p "$as_dir"'
14300 test -d .
/-p && rmdir .
/-p
14304 if test -x / >/dev
/null
2>&1; then
14305 as_test_x
='test -x'
14307 if ls -dL / >/dev
/null
2>&1; then
14314 if test -d "$1"; then
14320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14321 ???[sx]*):;;*)false;;esac;fi
14325 as_executable_p
=$as_test_x
14327 # Sed expression to map a string onto a valid CPP name.
14328 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14330 # Sed expression to map a string onto a valid variable name.
14331 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14335 ## ----------------------------------- ##
14336 ## Main body of $CONFIG_STATUS script. ##
14337 ## ----------------------------------- ##
14339 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14342 # Save the log message, to keep $0 and so on meaningful, and to
14343 # report actual input values of CONFIG_FILES etc. instead of their
14344 # values after options handling.
14346 This file was extended by emacs $as_me 24.0.50, which was
14347 generated by GNU Autoconf 2.65. Invocation command line was
14349 CONFIG_FILES = $CONFIG_FILES
14350 CONFIG_HEADERS = $CONFIG_HEADERS
14351 CONFIG_LINKS = $CONFIG_LINKS
14352 CONFIG_COMMANDS = $CONFIG_COMMANDS
14355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14360 case $ac_config_files in *"
14361 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14364 case $ac_config_headers in *"
14365 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370 # Files that config.status was made for.
14371 config_files="$ac_config_files"
14372 config_headers="$ac_config_headers"
14373 config_commands="$ac_config_commands"
14377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14379 \`$as_me' instantiates files and other configuration actions
14380 from templates according to the current configuration. Unless the files
14381 and actions are specified as TAGs, all are instantiated by default.
14383 Usage: $0 [OPTION]... [TAG]...
14385 -h, --help print this help, then exit
14386 -V, --version print version number and configuration settings, then exit
14387 --config print configuration, then exit
14388 -q, --quiet, --silent
14389 do not print progress messages
14390 -d, --debug don't remove temporary files
14391 --recheck update $as_me by reconfiguring in the same conditions
14392 --file=FILE[:TEMPLATE]
14393 instantiate the configuration file FILE
14394 --header=FILE[:TEMPLATE]
14395 instantiate the configuration header FILE
14397 Configuration files:
14400 Configuration headers:
14403 Configuration commands:
14406 Report bugs to the package provider."
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14412 emacs config.status 24.0.50
14413 configured by $0, generated by GNU Autoconf 2.65,
14414 with options \\"\$ac_cs_config\\"
14416 Copyright (C) 2009 Free Software Foundation, Inc.
14417 This config.status script is free software; the Free Software Foundation
14418 gives unlimited permission to copy, distribute and modify it."
14423 test -n "\$AWK" || AWK=awk
14426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14427 # The default lists apply if the user does not specify any file.
14433 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14434 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14445 # Handling of the options.
14446 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14448 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14449 $as_echo "$ac_cs_version"; exit ;;
14450 --config |
--confi |
--conf |
--con |
--co |
--c )
14451 $as_echo "$ac_cs_config"; exit ;;
14452 --debug |
--debu |
--deb |
--de |
--d |
-d )
14454 --file |
--fil |
--fi |
--f )
14457 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14459 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14460 ac_need_defaults
=false
;;
14461 --header |
--heade |
--head |
--hea )
14464 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14466 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14467 ac_need_defaults
=false
;;
14469 # Conflict between --help and --header
14470 as_fn_error
"ambiguous option: \`$1'
14471 Try \`$0 --help' for more information.";;
14472 --help |
--hel |
-h )
14473 $as_echo "$ac_cs_usage"; exit ;;
14474 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14475 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14478 # This is an error.
14479 -*) as_fn_error
"unrecognized option: \`$1'
14480 Try \`$0 --help' for more information." ;;
14482 *) as_fn_append ac_config_targets
" $1"
14483 ac_need_defaults
=false
;;
14489 ac_configure_extra_args
=
14491 if $ac_cs_silent; then
14493 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14498 if \$ac_cs_recheck; then
14499 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14501 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14502 CONFIG_SHELL='$SHELL'
14503 export CONFIG_SHELL
14508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14512 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14513 ## Running $as_me. ##
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14523 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
14527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14529 # Handling of arguments.
14530 for ac_config_target
in $ac_config_targets
14532 case $ac_config_target in
14533 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14534 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14535 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
14536 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
14537 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
14538 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
14539 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
14540 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
14541 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
14542 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
14543 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
14544 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
14545 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14547 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14552 # If the user did not use the arguments to specify the items to instantiate,
14553 # then the envvar interface is used. Set only those that are not.
14554 # We use the long form for the default assignment because of an extremely
14555 # bizarre bug on SunOS 4.1.3.
14556 if $ac_need_defaults; then
14557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14562 # Have a temporary directory for convenience. Make it in the build tree
14563 # simply because there is no reason against having it here, and in addition,
14564 # creating and moving files from /tmp can sometimes cause problems.
14565 # Hook for its removal unless debugging.
14566 # Note that there is a small window in which the directory will not be cleaned:
14567 # after its creation but before its name has been assigned to `$tmp'.
14571 trap 'exit_status=$?
14572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14574 trap 'as_fn_exit 1' 1 2 13 15
14576 # Create a (secure) tmp directory for tmp files.
14579 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14580 test -n "$tmp" && test -d "$tmp"
14583 tmp
=.
/conf$$
-$RANDOM
14584 (umask 077 && mkdir
"$tmp")
14585 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14587 # Set up the scripts for CONFIG_FILES section.
14588 # No need to generate them if there are no CONFIG_FILES.
14589 # This happens for instance with `./config.status config.h'.
14590 if test -n "$CONFIG_FILES"; then
14593 ac_cr
=`echo X | tr X '\015'`
14594 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14595 # But we know of no other shell where ac_cr would be empty at this
14596 # point, so we can use a bashism as a fallback.
14597 if test "x$ac_cr" = x
; then
14598 eval ac_cr
=\$
\'\\r
\'
14600 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14601 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14604 ac_cs_awk_cr
=$ac_cr
14607 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14612 echo "cat >conf$$subs.awk <<_ACEOF" &&
14613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14615 } >conf$$subs.sh ||
14616 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14617 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14619 for ac_last_try in false false false false false :; do
14620 . ./conf$$subs.sh ||
14621 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14623 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14624 if test $ac_delim_n = $ac_delim_num; then
14626 elif $ac_last_try; then
14627 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14629 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14632 rm -f conf$$subs.sh
14634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14635 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14639 s/^/S["/; s
/!.
*/"]=/
14649 s/\(.\{148\}\)..*/\1/
14651 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14656 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14663 s/\(.\{148\}\)..*/\1/
14665 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14669 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14674 ' <conf$$subs.awk | sed '
14679 ' >>$CONFIG_STATUS || ac_write_fail=1
14680 rm -f conf$$subs.awk
14681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14684 for (key in S) S_is_set[key] = 1
14690 nfields = split(line, field, "@
")
14692 len = length(field[1])
14693 for (i = 2; i < nfields; i++) {
14695 keylen = length(key)
14696 if (S_is_set[key]) {
14698 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14699 len += length(value) + length(field[++i])
14710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14711 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14712 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14715 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14716 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14719 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14720 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14721 # trailing colons and then remove the whole line if VPATH becomes empty
14722 # (actually we leave an empty line to preserve line numbers).
14723 if test "x
$srcdir" = x.; then
14724 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14725 s/:*\$(srcdir):*/:/
14726 s/:*\${srcdir}:*/:/
14728 s/^\([^=]*=[ ]*\):*/\1/
14734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735 fi # test -n "$CONFIG_FILES"
14737 # Set up the scripts for CONFIG_HEADERS section.
14738 # No need to generate them if there are no CONFIG_HEADERS.
14739 # This happens for instance with `./config.status Makefile'.
14740 if test -n "$CONFIG_HEADERS"; then
14741 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14745 # Transform confdefs.h into an awk script `defines.awk', embedded as
14746 # here-document in config.status, that substitutes the proper values into
14747 # config.h.in to produce config.h.
14749 # Create a delimiter string that does not exist in confdefs.h, to ease
14750 # handling of long lines.
14752 for ac_last_try in false false :; do
14753 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14754 if test -z "$ac_t"; then
14756 elif $ac_last_try; then
14757 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14759 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14763 # For the awk script, D is an array of macro values keyed by name,
14764 # likewise P contains macro parameters if any. Preserve backslash
14765 # newline sequences.
14767 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14769 s/.\{148\}/&'"$ac_delim"'/g
14772 s/^[ ]*#[ ]*define[ ][ ]*/ /
14779 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14781 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14786 D["\
1"]=" \
3\\\\\\n
"\\/p
14788 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14793 s/.\{148\}/&'"$ac_delim"'/g
14798 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14801 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14803 ' <confdefs.h | sed '
14804 s/'"$ac_delim"'/"\\\
14805 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14808 for (key in D) D_is_set[key] = 1
14811 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14813 split(line, arg, " ")
14814 if (arg[1] == "#") {
14818 defundef
= substr
(arg
[1], 2)
14821 split(mac1
, mac2
, "(") #)
14823 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14824 if (D_is_set
[macro
]) {
14825 # Preserve the white space surrounding the "#".
14826 print prefix
"define", macro P
[macro
] D
[macro
]
14829 # Replace #undef with comments. This is necessary, for example,
14830 # in the case of _POSIX_SOURCE, which is predefined and required
14831 # on some systems where configure will not decide to define it.
14832 if (defundef
== "undef") {
14833 print
"/*", prefix defundef
, macro
, "*/"
14841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14842 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14843 fi # test -n "$CONFIG_HEADERS"
14846 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14851 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14853 case $ac_mode$ac_tag in
14855 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14856 :[FH
]-) ac_tag
=-:-;;
14857 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14874 -) ac_f
="$tmp/stdin";;
14875 *) # Look for the file first in the build tree, then in the source tree
14876 # (if the path is not absolute). The absolute path cannot be DOS-style,
14877 # because $ac_f cannot contain `:'.
14881 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14883 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14885 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14886 as_fn_append ac_file_inputs
" '$ac_f'"
14889 # Let's still pretend it is `configure' which instantiates (i.e., don't
14890 # use $as_me), people would be surprised to read:
14891 # /* config.h. Generated by config.status. */
14892 configure_input
='Generated from '`
14893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14895 if test x
"$ac_file" != x-
; then
14896 configure_input
="$ac_file. $configure_input"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14898 $as_echo "$as_me: creating $ac_file" >&6;}
14900 # Neutralize special characters interpreted by sed in replacement strings.
14901 case $configure_input in #(
14902 *\
&* |
*\|
* |
*\\* )
14903 ac_sed_conf_input
=`$as_echo "$configure_input" |
14904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14905 *) ac_sed_conf_input
=$configure_input;;
14909 *:-:* |
*:-) cat >"$tmp/stdin" \
14910 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14915 ac_dir
=`$as_dirname -- "$ac_file" ||
14916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14917 X"$ac_file" : 'X\(//\)[^/]' \| \
14918 X"$ac_file" : 'X\(//\)$' \| \
14919 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14920 $as_echo X"$ac_file" |
14921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14925 /^X\(\/\/\)[^/].*/{
14938 as_dir
="$ac_dir"; as_fn_mkdir_p
14942 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14944 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14945 # A ".." for each directory in $ac_dir_suffix.
14946 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14947 case $ac_top_builddir_sub in
14948 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14949 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14952 ac_abs_top_builddir
=$ac_pwd
14953 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14954 # for backward compatibility:
14955 ac_top_builddir
=$ac_top_build_prefix
14958 .
) # We are building in place.
14960 ac_top_srcdir
=$ac_top_builddir_sub
14961 ac_abs_top_srcdir
=$ac_pwd ;;
14962 [\\/]* | ?
:[\\/]* ) # Absolute name.
14963 ac_srcdir
=$srcdir$ac_dir_suffix;
14964 ac_top_srcdir
=$srcdir
14965 ac_abs_top_srcdir
=$srcdir ;;
14966 *) # Relative name.
14967 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14968 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14969 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14971 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14981 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14982 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14987 # If the template does not know about datarootdir, expand it.
14988 # FIXME: This hack should be removed a few years after 2.60.
14989 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15001 *datarootdir
*) ac_datarootdir_seen
=yes;;
15002 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15007 ac_datarootdir_hack='
15008 s&@datadir@&$datadir&g
15009 s&@docdir@&$docdir&g
15010 s&@infodir@&$infodir&g
15011 s&@localedir@&$localedir&g
15012 s&@mandir@&$mandir&g
15013 s&\\\${datarootdir}&$datarootdir&g' ;;
15017 # Neutralize VPATH when `$srcdir' = `.'.
15018 # Shell code in configure.ac might set extrasub.
15019 # FIXME: do we really want to maintain this feature?
15020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15021 ac_sed_extra="$ac_vpsub
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15026 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15027 s|@configure_input@|
$ac_sed_conf_input|
;t t
15028 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15029 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15030 s
&@srcdir@
&$ac_srcdir&;t t
15031 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15032 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15033 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15034 s
&@builddir@
&$ac_builddir&;t t
15035 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15036 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15037 s
&@INSTALL@
&$ac_INSTALL&;t t
15038 $ac_datarootdir_hack
15040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
15041 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15047 which seems to be undefined. Please make sure it is defined." >&5
15048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15049 which seems to be undefined. Please make sure it is defined." >&2;}
15053 -) cat "$tmp/out" && rm -f "$tmp/out";;
15054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15056 || as_fn_error "could not create $ac_file" "$LINENO" 5
15062 if test x"$ac_file" != x-; then
15064 $as_echo "/* $configure_input */" \
15065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15066 } >"$tmp/config.h" \
15067 || as_fn_error "could not create $ac_file" "$LINENO" 5
15068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15073 mv "$tmp/config.h" "$ac_file" \
15074 || as_fn_error "could not create $ac_file" "$LINENO" 5
15077 $as_echo "/* $configure_input */" \
15078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15079 || as_fn_error "could not create -" "$LINENO" 5
15083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15084 $as_echo "$as_me: executing $ac_file commands" >&6;}
15089 case $ac_file$ac_mode in
15092 ### Make the necessary directories, if they don't exist.
15093 for dir
in etc lisp
; do
15094 test -d ${dir} || mkdir
${dir}
15097 # Build src/Makefile from ${srcdir}/src/Makefile.c
15098 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
15099 # This must be done after src/config.h is built, since we rely on that file.
15101 echo creating src
/epaths.h
15102 ${MAKE-make} epaths-force
15104 # As of 2000-11-19, newest development versions of GNU cpp preprocess
15105 # `..' to `. .' unless invoked with -traditional
15107 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
15108 CPPFLAGS
="$CPPFLAGS -traditional"
15111 echo creating lib-src
/Makefile
15113 rm -f junk.c junk1.c junk2.c
15114 sed -e '/start of cpp stuff/q' \
15115 < Makefile.c
> junk1.c
15116 sed -e '1,/start of cpp stuff/d'\
15117 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15118 < Makefile.c
> junk.c
15119 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
15120 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15121 cat junk1.c junk2.c
> Makefile.new
15122 rm -f junk.c junk1.c junk2.c
15123 chmod 444 Makefile.new
15124 mv -f Makefile.new Makefile
15127 echo creating src
/Makefile
15129 rm -f junk.c junk1.c junk2.c
15130 sed -e '/start of cpp stuff/q' \
15131 < Makefile.c
> junk1.c
15132 sed -e '1,/start of cpp stuff/d'\
15133 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
15134 < Makefile.c
> junk.c
15135 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
15136 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
15137 cat junk1.c junk2.c
> Makefile.new
15138 rm -f junk.c junk1.c junk2.c
15139 chmod 444 Makefile.new
15140 mv -f Makefile.new Makefile
15143 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
15144 echo creating src
/.gdbinit
15145 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
15156 ac_clean_files
=$ac_clean_files_save
15158 test $ac_write_fail = 0 ||
15159 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15162 # configure is writing to config.log, and then calls config.status.
15163 # config.status does its own redirection, appending to config.log.
15164 # Unfortunately, on DOS this fails, as config.log is still kept open
15165 # by configure, so config.status won't be able to write to it; its
15166 # output is simply discarded. So we exec the FD to /dev/null,
15167 # effectively closing config.log, so it can be properly (re)opened and
15168 # appended to by config.status. When coming back to configure, we
15169 # need to make the FD available again.
15170 if test "$no_create" != yes; then
15172 ac_config_status_args
=
15173 test "$silent" = yes &&
15174 ac_config_status_args
="$ac_config_status_args --quiet"
15176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15179 # would make configure fail if this is the last instruction.
15180 $ac_cs_success || as_fn_exit $?
15182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}