2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C
; export $as_var
48 # Required to use basename.
49 if expr a
: '\(a\)' >/dev
/null
2>&1; then
55 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me
=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
142 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
143 CONFIG_SHELL
=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x
$as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c
*,-n*) ECHO_N
= ECHO_C
='
187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.
file
199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe
; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
213 rm -f conf$$ conf$$.exe conf$$.
file
215 if mkdir
-p .
2>/dev
/null
; then
221 as_executable_p
="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix
=/usr
/local
251 ac_config_libobj_dir
=.
256 SHELL
=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file
="src/lisp.h"
271 ac_config_libobj_dir
=src
272 # Factoring default headers for most tests.
273 ac_includes_default
="\
276 # include <sys/types.h>
279 # include <sys/stat.h>
290 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <strings.h>
299 # include <inttypes.h>
309 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
312 # Initialize some variables set by options.
314 ac_init_version
=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
324 program_transform_name
=s
,x
,x
,
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir
='${exec_prefix}/bin'
338 sbindir
='${exec_prefix}/sbin'
339 libexecdir
='${exec_prefix}/libexec'
340 datadir
='${prefix}/share'
341 sysconfdir
='${prefix}/etc'
342 sharedstatedir
='${prefix}/com'
343 localstatedir
='${prefix}/var'
344 libdir
='${exec_prefix}/lib'
345 includedir
='${prefix}/include'
346 oldincludedir
='/usr/include'
347 infodir
='${prefix}/info'
348 mandir
='${prefix}/man'
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
360 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
368 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
371 -build |
--build |
--buil |
--bui |
--bu)
372 ac_prev
=build_alias
;;
373 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
374 build_alias
=$ac_optarg ;;
376 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
377 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
378 ac_prev
=cache_file
;;
379 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
380 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
381 cache_file
=$ac_optarg ;;
384 cache_file
=config.cache
;;
386 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
388 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
390 datadir
=$ac_optarg ;;
392 -disable-* |
--disable-*)
393 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* |
--enable-*)
402 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
409 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
415 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
416 |
--exec |
--exe |
--ex)
417 ac_prev
=exec_prefix
;;
418 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
419 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
420 |
--exec=* |
--exe=* |
--ex=*)
421 exec_prefix
=$ac_optarg ;;
423 -gas |
--gas |
--ga |
--g)
424 # Obsolete; use --with-gas.
427 -help |
--help |
--hel |
--he |
-h)
429 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
430 ac_init_help
=recursive
;;
431 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
432 ac_init_help
=short
;;
434 -host |
--host |
--hos |
--ho)
435 ac_prev
=host_alias
;;
436 -host=* |
--host=* |
--hos=* |
--ho=*)
437 host_alias
=$ac_optarg ;;
439 -includedir |
--includedir |
--includedi |
--included |
--include \
440 |
--includ |
--inclu |
--incl |
--inc)
441 ac_prev
=includedir
;;
442 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
443 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
444 includedir
=$ac_optarg ;;
446 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
448 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
449 infodir
=$ac_optarg ;;
451 -libdir |
--libdir |
--libdi |
--libd)
453 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
456 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
457 |
--libexe |
--libex |
--libe)
458 ac_prev
=libexecdir
;;
459 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
460 |
--libexe=* |
--libex=* |
--libe=*)
461 libexecdir
=$ac_optarg ;;
463 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
464 |
--localstate |
--localstat |
--localsta |
--localst \
465 |
--locals |
--local |
--loca |
--loc |
--lo)
466 ac_prev
=localstatedir
;;
467 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
468 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
469 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
470 localstatedir
=$ac_optarg ;;
472 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
474 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
478 # Obsolete; use --without-fp.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c |
-n)
485 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
486 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
489 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
490 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
491 |
--oldin |
--oldi |
--old |
--ol |
--o)
492 ac_prev
=oldincludedir
;;
493 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
494 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
495 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
496 oldincludedir
=$ac_optarg ;;
498 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
500 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
503 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
504 |
--program-pre |
--program-pr |
--program-p)
505 ac_prev
=program_prefix
;;
506 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
507 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
508 program_prefix
=$ac_optarg ;;
510 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
511 |
--program-suf |
--program-su |
--program-s)
512 ac_prev
=program_suffix
;;
513 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
514 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
515 program_suffix
=$ac_optarg ;;
517 -program-transform-name |
--program-transform-name \
518 |
--program-transform-nam |
--program-transform-na \
519 |
--program-transform-n |
--program-transform- \
520 |
--program-transform |
--program-transfor \
521 |
--program-transfo |
--program-transf \
522 |
--program-trans |
--program-tran \
523 |
--progr-tra |
--program-tr |
--program-t)
524 ac_prev
=program_transform_name
;;
525 -program-transform-name=* |
--program-transform-name=* \
526 |
--program-transform-nam=* |
--program-transform-na=* \
527 |
--program-transform-n=* |
--program-transform-=* \
528 |
--program-transform=* |
--program-transfor=* \
529 |
--program-transfo=* |
--program-transf=* \
530 |
--program-trans=* |
--program-tran=* \
531 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
532 program_transform_name
=$ac_optarg ;;
534 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
535 |
-silent |
--silent |
--silen |
--sile |
--sil)
538 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
540 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
542 sbindir
=$ac_optarg ;;
544 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
545 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
546 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
548 ac_prev
=sharedstatedir
;;
549 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
550 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
551 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
553 sharedstatedir
=$ac_optarg ;;
555 -site |
--site |
--sit)
557 -site=* |
--site=* |
--sit=*)
560 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
562 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
565 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
566 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
567 ac_prev
=sysconfdir
;;
568 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
569 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
570 sysconfdir
=$ac_optarg ;;
572 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
573 ac_prev
=target_alias
;;
574 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
575 target_alias
=$ac_optarg ;;
577 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
580 -version |
--version |
--versio |
--versi |
--vers |
-V)
584 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package
=`echo $ac_package| sed 's/-/_/g'`
591 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* |
--without-*)
597 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package
=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
606 # Obsolete; use --with-x.
609 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
610 |
--x-incl |
--x-inc |
--x-in |
--x-i)
611 ac_prev
=x_includes
;;
612 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
613 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
614 x_includes
=$ac_optarg ;;
616 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
617 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
618 ac_prev
=x_libraries
;;
619 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
620 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
621 x_libraries
=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
629 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 if test -n "$ac_prev"; then
650 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var
in exec_prefix prefix
658 eval ac_val
=$
`echo $ac_var`
660 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # Be sure to have absolute paths.
667 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val
=$
`echo $ac_var`
672 [\\/$
]* | ?
:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x
; then
687 if test "x$build_alias" = x
; then
688 cross_compiling
=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
697 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
699 test "$silent" = yes && exec 6>/dev
/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted
=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir
=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
719 if test ! -r $srcdir/$ac_unique_file; then
723 ac_srcdir_defaulted
=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set
=${build_alias+set}
739 ac_env_build_alias_value
=$build_alias
740 ac_cv_env_build_alias_set
=${build_alias+set}
741 ac_cv_env_build_alias_value
=$build_alias
742 ac_env_host_alias_set
=${host_alias+set}
743 ac_env_host_alias_value
=$host_alias
744 ac_cv_env_host_alias_set
=${host_alias+set}
745 ac_cv_env_host_alias_value
=$host_alias
746 ac_env_target_alias_set
=${target_alias+set}
747 ac_env_target_alias_value
=$target_alias
748 ac_cv_env_target_alias_set
=${target_alias+set}
749 ac_cv_env_target_alias_value
=$target_alias
750 ac_env_CC_set
=${CC+set}
752 ac_cv_env_CC_set
=${CC+set}
753 ac_cv_env_CC_value
=$CC
754 ac_env_CFLAGS_set
=${CFLAGS+set}
755 ac_env_CFLAGS_value
=$CFLAGS
756 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value
=$CFLAGS
758 ac_env_LDFLAGS_set
=${LDFLAGS+set}
759 ac_env_LDFLAGS_value
=$LDFLAGS
760 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value
=$LDFLAGS
762 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value
=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_env_CPP_set
=${CPP+set}
767 ac_env_CPP_value
=$CPP
768 ac_cv_env_CPP_set
=${CPP+set}
769 ac_cv_env_CPP_value
=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
837 --x-includes=DIR X include files are
in DIR
838 --x-libraries=DIR X library files are
in DIR
841 --build=BUILD configure
for building on BUILD
[guessed
]
842 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-carbon-app[=DIR
] [DIR
=/Application
]
854 specify
install directory
for Emacs.app on Mac OS X
855 --disable-largefile omit support
for large files
858 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
859 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
860 --without-gcc don
't use GCC to compile Emacs if GCC is found
861 --without-pop don't support POP
mail retrieval with movemail
862 --with-kerberos support Kerberos-authenticated POP
863 --with-kerberos5 support Kerberos version
5 authenticated POP
864 --with-hesiod support Hesiod to get the POP server
host
865 --without-sound don
't compile with sound support
866 --with-x-toolkit=KIT use an X toolkit
867 (KIT = yes/lucid/athena/motif/gtk/no)
868 --with-xpm use -lXpm for displaying XPM images
869 --with-jpeg use -ljpeg for displaying JPEG images
870 --with-tiff use -ltiff for displaying TIFF images
871 --with-gif use -lungif for displaying GIF images
872 --with-png use -lpng for displaying PNG images
873 --with-gtk use GTK (same as --with-x-toolkit=gtk)
874 --with-pkg-config-prog Path to pkg-config to use for finding GTK
875 --without-toolkit-scroll-bars
876 don't use Motif or Xaw3d scroll bars
877 --without-xim don
't use X11 XIM
878 --without-carbon don't use Carbon GUI on Mac OS X
879 --with-x use the X Window System
881 Some influential environment variables
:
882 CC C compiler
command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
885 nonstandard directory
<lib dir
>
886 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
887 headers
in a nonstandard directory
<include dir
>
890 Use these variables to override the choices made by
`configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
965 This file contains any messages produced by compilers while
966 running configure, to aid debugging if configure makes a mistake.
968 It was created by $as_me, which was
969 generated by GNU Autoconf 2.54. Invocation command line was
980 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
981 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
982 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
983 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
984 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
986 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
987 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
989 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
990 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
991 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
992 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
993 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
995 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1019 # Keep a trace of the command line.
1020 # Strip out --no-create and --no-recursion so they do not pile up.
1021 # Also quote any args containing shell meta-characters.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n ) continue ;;
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1033 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1035 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1036 # Get rid of the leading space.
1040 # When interrupted or exit'd, cleanup temporary files, and complete
1041 # config.log. We remove comments because anyway the quotes in there
1042 # would cause problems or look ugly.
1043 # WARNING: Be sure not to use single quotes in there, as some shells,
1044 # such as our DU 5.0 friend, will then `close
' the trap.
1045 trap 'exit_status
=$?
1046 # Save into config.log some information that might help in debugging.
1051 ## ---------------- ##
1052 ## Cache variables. ##
1053 ## ---------------- ##
1056 # The following way of writing the cache mishandles newlines in values,
1059 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1062 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1067 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1074 ## ----------------- ##
1075 ## Output variables. ##
1076 ## ----------------- ##
1079 for ac_var
in $ac_subst_vars
1081 eval ac_val
=$
`echo $ac_var`
1082 echo "$ac_var='"'"'$ac_val'"'"'"
1086 if test -n "$ac_subst_files"; then
1093 for ac_var
in $ac_subst_files
1095 eval ac_val
=$
`echo $ac_var`
1096 echo "$ac_var='"'"'$ac_val'"'"'"
1101 if test -s confdefs.h
; then
1108 sed "/^$/d" confdefs.h |
sort
1111 test "$ac_signal" != 0 &&
1112 echo "$as_me: caught signal $ac_signal"
1113 echo "$as_me: exit $exit_status"
1115 rm -f core core.
* *.core
&&
1116 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1119 for ac_signal in 1 2 13 15; do
1120 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1125 rm -rf conftest* confdefs.h
1126 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1129 # Predefined preprocessor variables.
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_NAME "$PACKAGE_NAME"
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_STRING "$PACKAGE_STRING"
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1156 # Let the site file select an alternate cache file if it wants to.
1157 # Prefer explicitly selected file to automatically selected ones.
1158 if test -z "$CONFIG_SITE"; then
1159 if test "x$prefix" != xNONE; then
1160 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1162 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1165 for ac_site_file in $CONFIG_SITE; do
1166 if test -r "$ac_site_file"; then
1167 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1168 echo "$as_me: loading site script $ac_site_file" >&6;}
1169 sed 's
/^
/|
/' "$ac_site_file" >&5
1174 if test -r "$cache_file"; then
1175 # Some versions of bash will fail to source /dev/null (special
1176 # files actually), so we avoid doing that.
1177 if test -f "$cache_file"; then
1178 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1179 echo "$as_me: loading cache $cache_file" >&6;}
1181 [\\/]* | ?:[\\/]* ) . $cache_file;;
1182 *) . ./$cache_file;;
1186 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1187 echo "$as_me: creating cache $cache_file" >&6;}
1191 # Check that the precious variables saved in the cache have kept the same
1193 ac_cache_corrupted=false
1194 for ac_var in `(set) 2>&1 |
1195 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1197 eval ac_new_set=\$ac_env_${ac_var}_set
1198 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1199 eval ac_new_val="\$ac_env_${ac_var}_value"
1200 case $ac_old_set,$ac_new_set in
1202 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1203 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1204 ac_cache_corrupted=: ;;
1206 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1211 if test "x$ac_old_val" != "x$ac_new_val"; then
1212 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1213 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1214 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1215 echo "$as_me: former value: $ac_old_val" >&2;}
1216 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1217 echo "$as_me: current value: $ac_new_val" >&2;}
1218 ac_cache_corrupted=:
1221 # Pass precious variables to config.status.
1222 if test "$ac_new_set" = set; then
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1226 *) ac_arg=$ac_var=$ac_new_val ;;
1228 case " $ac_configure_args " in
1229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1230 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1234 if $ac_cache_corrupted; then
1235 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1236 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1237 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1238 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1239 { (exit 1); exit 1; }; }
1243 ac_cpp='$CPP $CPPFLAGS'
1244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1245 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1269 test "$program_prefix" != NONE &&
1270 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1271 # Use a double $ so make ignores it.
1272 test "$program_suffix" != NONE &&
1273 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1274 # Double any \ or $. echo might interpret backslashes.
1275 # By default was `s,x,x', remove it
if useless.
1276 cat <<\_ACEOF
>conftest.
sed
1277 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1279 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1283 lispdir
='${datadir}/emacs/${version}/lisp'
1284 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1285 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1286 lisppath
='${locallisppath}:${lispdir}'
1287 etcdir
='${datadir}/emacs/${version}/etc'
1288 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1289 docdir
='${datadir}/emacs/${version}/etc'
1290 gamedir
='${localstatedir}/games/emacs'
1295 # Check whether --with-gcc or --without-gcc was given.
1296 if test "${with_gcc+set}" = set; then
1301 # Check whether --with-pop or --without-pop was given.
1302 if test "${with_pop+set}" = set; then
1304 if test "$withval" = yes; then
1305 cat >>confdefs.h
<<\_ACEOF
1306 #define MAIL_USE_POP 1
1312 cat >>confdefs.h
<<\_ACEOF
1313 #define MAIL_USE_POP 1
1319 # Check whether --with-kerberos or --without-kerberos was given.
1320 if test "${with_kerberos+set}" = set; then
1321 withval
="$with_kerberos"
1322 cat >>confdefs.h
<<\_ACEOF
1329 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1330 if test "${with_kerberos5+set}" = set; then
1331 withval
="$with_kerberos5"
1332 if test "${with_kerberos5+set}" = set; then
1333 if test "${with_kerberos+set}" != set; then
1335 cat >>confdefs.h
<<\_ACEOF
1342 cat >>confdefs.h
<<\_ACEOF
1348 # Check whether --with-hesiod or --without-hesiod was given.
1349 if test "${with_hesiod+set}" = set; then
1350 withval
="$with_hesiod"
1352 cat >>confdefs.h
<<\_ACEOF
1359 # Check whether --with-sound or --without-sound was given.
1360 if test "${with_sound+set}" = set; then
1361 withval
="$with_sound"
1366 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1367 if test "${with_x_toolkit+set}" = set; then
1368 withval
="$with_x_toolkit"
1369 case "${withval}" in
1370 y | ye |
yes ) val
=athena
;;
1372 l | lu | luc | luci | lucid
) val
=lucid
;;
1373 a |
at | ath | athe | athen | athena
) val
=athena
;;
1374 m | mo | mot | moti | motif
) val
=motif
;;
1375 g | gt | gtk
) val
=gtk
;;
1377 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1378 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1379 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1380 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1381 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1382 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1383 { (exit 1); exit 1; }; }
1390 # Check whether --with-xpm or --without-xpm was given.
1391 if test "${with_xpm+set}" = set; then
1396 # Check whether --with-jpeg or --without-jpeg was given.
1397 if test "${with_jpeg+set}" = set; then
1398 withval
="$with_jpeg"
1402 # Check whether --with-tiff or --without-tiff was given.
1403 if test "${with_tiff+set}" = set; then
1404 withval
="$with_tiff"
1408 # Check whether --with-gif or --without-gif was given.
1409 if test "${with_gif+set}" = set; then
1414 # Check whether --with-png or --without-png was given.
1415 if test "${with_png+set}" = set; then
1420 # Check whether --with-gtk or --without-gtk was given.
1421 if test "${with_gtk+set}" = set; then
1426 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1427 if test "${with_pkg_config_prog+set}" = set; then
1428 withval
="$with_pkg_config_prog"
1432 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1433 if test "${with_toolkit_scroll_bars+set}" = set; then
1434 withval
="$with_toolkit_scroll_bars"
1438 # Check whether --with-xim or --without-xim was given.
1439 if test "${with_xim+set}" = set; then
1444 # Check whether --with-carbon or --without-carbon was given.
1445 if test "${with_carbon+set}" = set; then
1446 withval
="$with_carbon"
1449 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1450 if test "${enable_carbon_app+set}" = set; then
1451 enableval
="$enable_carbon_app"
1452 carbon_appdir_x
=${enableval}
1455 #### Make srcdir absolute, if it isn't already. It's important to
1456 #### avoid running the path through pwd unnecessarily, since pwd can
1457 #### give you automounter prefixes, which can go away. We do all this
1458 #### so Emacs can find its files when run uninstalled.
1459 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1464 ## We may be able to use the $PWD environment variable to make this
1465 ## absolute. But sometimes PWD is inaccurate.
1466 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1467 ## but that tested only for a well-formed and valid PWD,
1468 ## it did not object when PWD was well-formed and valid but just wrong.
1469 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1473 srcdir
="`(cd ${srcdir}; pwd)`"
1476 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1479 #### Check if the source directory already has a configured system in it.
1480 if test `pwd` != `(cd ${srcdir} && pwd)` \
1481 && test -f "${srcdir}/src/config.h" ; then
1482 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1483 as a build directory right now; it has been configured in its own
1484 right. To configure in another directory as well, you MUST
1485 use GNU make. If you do not have GNU make, then you must
1486 now do \`make distclean' in ${srcdir},
1487 and then run $0 again." >&5
1488 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1489 as a build directory right now; it has been configured in its own
1490 right. To configure in another directory as well, you MUST
1491 use GNU make. If you do not have GNU make, then you must
1492 now do \`make distclean' in ${srcdir},
1493 and then run $0 again." >&2;}
1495 extrasub
='/^VPATH[ ]*=/c\
1496 vpath %.c $(srcdir)\
1497 vpath %.h $(srcdir)\
1498 vpath %.y $(srcdir)\
1499 vpath %.l $(srcdir)\
1500 vpath %.s $(srcdir)\
1501 vpath %.in $(srcdir)\
1502 vpath %.texi $(srcdir)'
1505 #### Given the configuration name, set machfile and opsysfile to the
1506 #### names of the m/*.h and s/*.h files we should use.
1508 ### Canonicalize the configuration name.
1511 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1512 if test -f $ac_dir/install-sh
; then
1514 ac_install_sh
="$ac_aux_dir/install-sh -c"
1516 elif test -f $ac_dir/install.sh
; then
1518 ac_install_sh
="$ac_aux_dir/install.sh -c"
1520 elif test -f $ac_dir/shtool
; then
1522 ac_install_sh
="$ac_aux_dir/shtool install -c"
1526 if test -z "$ac_aux_dir"; then
1527 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529 { (exit 1); exit 1; }; }
1531 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1532 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1533 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535 # Make sure we can run config.sub.
1536 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1537 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539 { (exit 1); exit 1; }; }
1541 echo "$as_me:$LINENO: checking build system type" >&5
1542 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543 if test "${ac_cv_build+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 ac_cv_build_alias
=$build_alias
1547 test -z "$ac_cv_build_alias" &&
1548 ac_cv_build_alias
=`$ac_config_guess`
1549 test -z "$ac_cv_build_alias" &&
1550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552 { (exit 1); exit 1; }; }
1553 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1554 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560 echo "${ECHO_T}$ac_cv_build" >&6
1562 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 echo "$as_me:$LINENO: checking host system type" >&5
1568 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569 if test "${ac_cv_host+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 ac_cv_host_alias
=$host_alias
1573 test -z "$ac_cv_host_alias" &&
1574 ac_cv_host_alias
=$ac_cv_build_alias
1575 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582 echo "${ECHO_T}$ac_cv_host" >&6
1584 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 configuration
=${host_alias-$host}
1594 ### If you add support for a new configuration, add code to this
1595 ### switch statement to recognize your configuration name and select
1596 ### the appropriate operating system and machine description files.
1598 ### You would hope that you could choose an m/*.h file pretty much
1599 ### based on the machine portion of the configuration name, and an s-
1600 ### file based on the operating system portion. However, it turns out
1601 ### that each m/*.h file is pretty manufacturer-specific - for
1602 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1603 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1604 ### machines. So we basically have to have a special case for each
1605 ### configuration name.
1607 ### As far as handling version numbers on operating systems is
1608 ### concerned, make sure things will fail in a fixable way. If
1609 ### /etc/MACHINES doesn't say anything about version numbers, be
1610 ### prepared to handle anything reasonably. If version numbers
1611 ### matter, be sure /etc/MACHINES says something about it.
1613 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1614 ### "System V Release 4"; he writes, "The old convention encouraged
1615 ### confusion between `system' and `release' levels'."
1617 machine
='' opsys
='' unported
=no
1618 case "${canonical}" in
1623 case "${canonical}" in
1624 alpha
*-*-freebsd*) machine
=alpha
;;
1625 i
[3456]86-*-freebsd*) machine
=intel386
;;
1632 if test -f /usr
/lib
/crti.o
; then
1634 cat >>confdefs.h
<<\_ACEOF
1640 case "${canonical}" in
1641 alpha
*-*-netbsd*) machine
=alpha
;;
1642 i
[3456]86-*-netbsd*) machine
=intel386
;;
1644 # This is somewhat bogus.
1645 machine
=hp9000s300
;;
1646 powerpc-apple-netbsd
*) machine
=macppc
;;
1647 mips-
*-netbsd*) machine
=pmax
;;
1648 mipsel-
*-netbsd*) machine
=pmax
;;
1649 mipseb-
*-netbsd*) machine
=pmax
;;
1650 ns32k-
*-netbsd*) machine
=ns32000
;;
1651 powerpc-
*-netbsd*) machine
=macppc
;;
1652 sparc
*-*-netbsd*) machine
=sparc
;;
1653 vax-
*-netbsd*) machine
=vax
;;
1654 arm-
*-netbsd*) machine
=arm
;;
1661 case "${canonical}" in
1662 alpha
*-*-openbsd*) machine
=alpha
;;
1663 i386-
*-openbsd*) machine
=intel386
;;
1664 m68k-
*-openbsd*) machine
=hp9000s300
;;
1665 mipsel-
*-openbsd*) machine
=pmax
;;
1666 ns32k-
*-openbsd*) machine
=ns32000
;;
1667 sparc-
*-openbsd*) machine
=sparc
;;
1668 vax-
*-openbsd*) machine
=vax
;;
1673 arm-acorn-riscix1.1
* )
1674 machine
=acorn opsys
=riscix1-1
1676 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1677 ## This name is riscix12 instead of riscix1.2
1678 ## to avoid a file name conflict on MSDOS.
1679 machine
=acorn opsys
=riscix12
1685 case "${canonical}" in
1686 i
[345]86-*-bsdi*) machine
=intel386
;;
1687 sparc-
*-bsdi*) machine
=sparc
;;
1688 powerpc-
*-bsdi*) machine
=macppc
;;
1690 case "${canonical}" in
1691 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1692 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1693 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1694 *-*-bsdi3* ) opsys
=bsdos3
;;
1695 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1700 ## Strictly speaking, we need the version of the alliant operating
1701 ## system to choose the right machine file, but currently the
1702 ## configuration name doesn't tell us enough to choose the right
1703 ## one; we need to give alliants their own operating system name to
1704 ## do this right. When someone cares, they can help us.
1706 machine
=alliant4 opsys
=bsd4-2
1709 machine
=alliant-2800 opsys
=bsd4-3
1712 ## Alpha (DEC) machines.
1714 machine
=alpha opsys
=osf1
1715 # This is needed to find X11R6.1 libraries for certain tests.
1716 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1717 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1718 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1719 # due to non-traditional preprocessing with the current compiler
1720 # defaults. OSF 4 can also have that compiler version, and there
1721 # seems always to have been a usable /usr/bin/cpp.
1722 NON_GNU_CPP
=/usr
/bin
/cpp
1723 case "${canonical}" in
1724 alpha
*-dec-osf[5-9]*)
1729 alpha
*-*-linux-gnu* )
1730 machine
=alpha opsys
=gnu-linux
1734 machine
=arm opsys
=gnu-linux
1739 machine
=macppc opsys
=gnu-linux
1744 machine
=altos opsys
=usg5-2
1749 machine
=amdahl opsys
=usg5-2-2
1752 ## Apollo, Domain/OS
1754 machine
=apollo opsys
=bsd4-3
1757 ## AT&T 3b2, 3b5, 3b15, 3b20
1759 machine
=att3b opsys
=usg5-2-2
1762 ## AT&T 3b1 - The Mighty Unix PC!
1764 machine
=7300 opsys
=usg5-2-2
1769 machine
=ibmrs6000 opsys
=aix3-2
1774 machine
=dpx2 opsys
=usg5-3
1779 machine
=sps7 opsys
=usg5-2
1782 ## CCI 5/32, 6/32 -- see "Tahoe".
1785 ## I don't know what configuration name to use for this; config.sub
1786 ## doesn't seem to know anything about it. Hey, Celerity users, get
1787 ## in touch with us!
1788 celerity-celerity-bsd
* )
1789 machine
=celerity opsys
=bsd4-2
1793 ## What operating systems does this chip run that Emacs has been
1797 ## We'll use the catch-all code at the bottom to guess the
1798 ## operating system.
1802 mips-compaq-nonstopux
* )
1803 machine
=nonstopux opsys
=nonstopux
1807 *-convex-bsd* |
*-convex-convexos* )
1808 machine
=convex opsys
=bsd4-3
1809 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1810 NON_GNU_CPP
="cc -E -P"
1814 i
[3456]86-cubix-sysv* )
1815 machine
=intel386 opsys
=usg5-3
1819 cydra
*-cydrome-sysv* )
1820 machine
=cydra5 opsys
=usg5-3
1823 ## Data General AViiON Machines
1824 ## DG changed naming conventions with the release of 5.4.4.10, they
1825 ## dropped the initial 5.4 but left the intervening R. Because of the
1826 ## R this shouldn't conflict with older versions of the OS (which I
1827 ## think were named like dgux4.*). In addition, DG new AViiONs series
1828 ## uses either Motorola M88k or Intel Pentium CPUs.
1829 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1830 machine
=aviion opsys
=dgux4
1832 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1833 ## This name is dgux5-4-3 instead of dgux5-4r3
1834 ## to avoid a file name conflict on MSDOS.
1835 machine
=aviion opsys
=dgux5-4-3
1837 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1838 machine
=aviion opsys
=dgux5-4r2
1841 machine
=aviion opsys
=dgux
1844 ## Data General AViiON Intel (x86) Machines
1845 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1846 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1847 i
[345]86-dg-dguxR4* )
1848 machine
=aviion-intel opsys
=dgux4
1852 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1853 machine
=pmax opsys
=bsd4-2
1855 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1856 machine
=pmax opsys
=bsd4-3
1859 machine
=pmax opsys
=ultrix4-3
1862 machine
=pmax opsys
=osf1
1864 mips-dec-mach_bsd4.3
* )
1865 machine
=pmax opsys
=mach-bsd4-3
1868 ## Motorola Delta machines
1869 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1870 machine
=delta opsys
=usg5-3
1871 if test -z "`type gnucc | grep 'not found'`"
1873 if test -s /etc
/167config
1874 then CC
="gnucc -m68040"
1875 else CC
="gnucc -m68881"
1878 if test -z "`type gcc | grep 'not found'`"
1884 m88k-motorola-sysv4
* )
1885 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1886 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1887 # I hope there are not other 4.0 versions for this machine
1888 # which really need usg5-4 instead.
1889 machine
=delta88k opsys
=usg5-4-2
1891 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1892 machine
=delta88k opsys
=usg5-3
1897 machine
=dual opsys
=usg5-2
1899 m68
*-dual-uniplus* )
1900 machine
=dual opsys
=unipl5-2
1905 machine
=elxsi opsys
=usg5-2
1910 machine
=ns16000 opsys
=umax
1913 ## The GEC 63 - apparently, this port isn't really finished yet.
1914 # I'm sure we finished off the last of the machines, though. -- fx
1916 ## Gould Power Node and NP1
1918 machine
=gould opsys
=bsd4-2
1921 machine
=gould opsys
=bsd4-3
1924 machine
=gould-np1 opsys
=bsd4-3
1927 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1928 ## as far as Emacs is concerned).
1930 # Build needs to be different on 7.0 and later releases
1931 case "`uname -r`" in
1932 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1933 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1935 NON_GNU_CPP
="/lib/cpp"
1937 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1939 machine
=nh3000 opsys
=cxux
1941 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1942 powerpc-harris-powerunix
)
1943 machine
=nh6000 opsys
=powerunix
1944 NON_GNU_CPP
="cc -Xo -E -P"
1946 ## SR2001/SR2201 running HI-UX/MPP
1947 hppa1.1
-hitachi-hiuxmpp* )
1948 machine
=sr2k opsys
=hiuxmpp
1950 hppa1.1
-hitachi-hiuxwe2* )
1951 machine
=sr2k opsys
=hiuxwe2
1954 xps
*-honeywell-sysv* )
1955 machine
=xps100 opsys
=usg5-2
1958 ## HP 9000 series 200 or 300
1960 machine
=hp9000s300 opsys
=bsd4-3
1962 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1964 case "`uname -r`" in
1965 ## Someone's system reports A.B8.05 for this.
1966 ## I wonder what other possibilities there are.
1967 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1968 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1969 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1970 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1971 *) machine
=hp9000s300 opsys
=hpux
;;
1975 ## HP 9000 series 700 and 800, running HP/UX
1977 machine
=hp800 opsys
=hpux
1980 machine
=hp800 opsys
=hpux8
1982 hppa
*-hp-hpux9shr* )
1983 machine
=hp800 opsys
=hpux9shr
1986 machine
=hp800 opsys
=hpux9
1988 hppa
*-hp-hpux10.2
* )
1989 machine
=hp800 opsys
=hpux10-20
1992 machine
=hp800 opsys
=hpux10
1994 hppa
*-hp-hpux1[1-9]* )
1995 machine
=hp800 opsys
=hpux11
1998 hppa
*-*-linux-gnu* )
1999 machine
=hp800 opsys
=gnu-linux
2002 ## HP 9000 series 700 and 800, running HP/UX
2004 ## Cross-compilation? Nah!
2005 case "`uname -r`" in
2006 ## Someone's system reports A.B8.05 for this.
2007 ## I wonder what other possibilities there are.
2008 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2009 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2010 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2011 *) machine
=hp800 opsys
=hpux10
;;
2015 machine
=hp800 opsys
=nextstep
2020 machine
=orion opsys
=bsd4-2
2022 clipper-orion-bsd
* )
2023 machine
=orion105 opsys
=bsd4-2
2027 i
[3456]86-ibm-aix1.1
* )
2028 machine
=ibmps2-aix opsys
=usg5-2-2
2030 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2031 machine
=ibmps2-aix opsys
=usg5-3
2034 machine
=ibm370aix opsys
=usg5-3
2037 machine
=ibms390 opsys
=gnu-linux
2039 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2040 machine
=ibmrs6000 opsys
=aix3-1
2042 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2043 machine
=ibmrs6000 opsys
=aix3-2-5
2045 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2046 machine
=ibmrs6000 opsys
=aix4-1
2048 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2049 machine
=ibmrs6000 opsys
=aix4-2
2051 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2052 machine
=ibmrs6000 opsys
=aix4-2
2054 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2055 machine
=ibmrs6000 opsys
=aix4
2057 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2058 machine
=ibmrs6000 opsys
=aix4-1
2060 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2061 machine
=ibmrs6000 opsys
=aix3-2
2064 machine
=ibmrt opsys
=bsd4-3
2067 machine
=ibmrt opsys
=bsd4-2
2070 machine
=ibmrt opsys
=bsd4-3
2073 machine
=ibmrt opsys
=bsd4-2
2076 machine
=ibmrt opsys
=bsd4-3
2079 machine
=ibmrt opsys
=bsd4-3
2082 machine
=ibmrt-aix opsys
=usg5-2-2
2085 ## Integrated Solutions `Optimum V'
2087 machine
=isi-ov opsys
=bsd4-2
2090 machine
=isi-ov opsys
=bsd4-3
2093 ## Intel 386 machines where we do care about the manufacturer
2094 i
[3456]86-intsys-sysv* )
2095 machine
=is386 opsys
=usg5-2-2
2099 i
[3456]86-prime-sysv* )
2100 machine
=i386 opsys
=usg5-3
2103 ## Sequent Symmetry running Dynix
2104 i
[3456]86-sequent-bsd* )
2105 machine
=symmetry opsys
=bsd4-3
2108 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2109 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2110 machine
=sequent-ptx opsys
=ptx4
2111 NON_GNU_CPP
=/lib
/cpp
2114 ## Sequent Symmetry running DYNIX/ptx
2115 ## Use the old cpp rather than the newer ANSI one.
2116 i
[3456]86-sequent-ptx* )
2117 machine
=sequent-ptx opsys
=ptx
2118 NON_GNU_CPP
="/lib/cpp"
2121 ## ncr machine running svr4.3.
2122 i
[3456]86-ncr-sysv4.3
)
2123 machine
=ncr386 opsys
=usg5-4-3
2126 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2127 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2128 i
[3456]86-ncr-sysv* )
2129 machine
=ncr386 opsys
=usg5-4-2
2132 ## Intel Paragon OSF/1
2134 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2139 machine
=i860 opsys
=usg5-4
2140 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2141 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2144 ## Macintosh PowerPC
2145 powerpc
*-*-linux-gnu* )
2146 machine
=macppc opsys
=gnu-linux
2149 ## Masscomp machines
2150 m68
*-masscomp-rtu* )
2151 machine
=masscomp opsys
=rtu
2154 ## Megatest machines
2155 m68
*-megatest-bsd* )
2156 machine
=mega68 opsys
=bsd4-2
2159 ## Workstations sold by MIPS
2160 ## This is not necessarily all workstations using the MIPS processor -
2161 ## Irises are produced by SGI, and DECstations by DEC.
2163 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2164 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2165 ## it gives for choosing between the alternatives seems to be "Use
2166 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2167 ## the BSD world." I'll assume that these are instructions for
2168 ## handling two odd situations, and that every other situation
2169 ## should use mips.h and usg5-2-2, they being listed first.
2172 ## Fall through to the general code at the bottom to decide on the OS.
2174 mips-mips-riscos4
* )
2175 machine
=mips4 opsys
=bsd4-3
2176 NON_GNU_CC
="cc -systype bsd43"
2177 NON_GNU_CPP
="cc -systype bsd43 -E"
2179 mips-mips-riscos5
* )
2180 machine
=mips4 opsys
=riscos5
2181 NON_GNU_CC
="cc -systype bsd43"
2182 NON_GNU_CPP
="cc -systype bsd43 -E"
2185 machine
=mips opsys
=bsd4-3
2188 machine
=mips opsys
=usg5-2-2
2192 m68
*-next-* | m68k-
*-nextstep* )
2193 machine
=m68k opsys
=nextstep
2196 ## The complete machine from National Semiconductor
2198 machine
=ns32000 opsys
=usg5-2
2202 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2203 machine
=tower32 opsys
=usg5-2-2
2205 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2206 machine
=tower32v3 opsys
=usg5-3
2211 machine
=ews4800 opsys
=ux4800
2214 ## Nixdorf Targon 31
2215 m68
*-nixdorf-sysv* )
2216 machine
=targon31 opsys
=usg5-2-2
2221 machine
=nu opsys
=usg5-2
2226 machine
=plexus opsys
=usg5-2
2230 ## I don't really have any idea what sort of processor the Pyramid has,
2231 ## so I'm assuming it is its own architecture.
2232 pyramid-pyramid-bsd
* )
2233 machine
=pyramid opsys
=bsd4-2
2237 ns32k-sequent-bsd4.2
* )
2238 machine
=sequent opsys
=bsd4-2
2240 ns32k-sequent-bsd4.3
* )
2241 machine
=sequent opsys
=bsd4-3
2245 mips-siemens-sysv
* | mips-sni-sysv
*)
2246 machine
=mips-siemens opsys
=usg5-4
2247 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2248 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2251 ## Silicon Graphics machines
2252 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2254 machine
=irist opsys
=iris3-5
2256 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2257 machine
=irist opsys
=iris3-6
2261 machine
=iris4d opsys
=irix3-3
2264 machine
=iris4d opsys
=irix4-0
2267 machine
=iris4d opsys
=irix6-5
2268 # Without defining _LANGUAGE_C, things get masked out in the headers
2269 # so that, for instance, grepping for `free' in stdlib.h fails and
2270 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2271 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2272 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2275 machine
=iris4d opsys
=irix6-0
2276 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2277 # but presumably it does no harm.
2278 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2279 # -32 probably isn't necessary in later v.6s -- anyone know which?
2280 NON_GCC_TEST_OPTIONS
=-32
2282 mips-sgi-irix5.
[01]* )
2283 machine
=iris4d opsys
=irix5-0
2285 mips-sgi-irix5
* | mips-sgi-irix
* )
2286 machine
=iris4d opsys
=irix5-2
2291 machine
=news opsys
=bsd4-2
2294 machine
=news opsys
=bsd4-3
2296 m68
*-sony-newsos3* | m68
*-sony-news3*)
2297 machine
=news opsys
=bsd4-3
2299 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2300 machine
=news-risc opsys
=bsd4-3
2302 mips-sony-newsos6
* )
2303 machine
=news-r6 opsys
=newsos6
2306 machine
=news-risc opsys
=newsos5
2311 machine
=stride opsys
=usg5-2
2315 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2316 machine
=sparc opsys
=gnu-linux
2319 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2320 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2321 | rs6000-
*-solaris2*)
2322 case "${canonical}" in
2323 m68
*-sunos1* ) machine
=sun1
;;
2324 m68
*-sunos2* ) machine
=sun2
;;
2325 m68
* ) machine
=sun3
;;
2326 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2327 i
[3456]86-*-* ) machine
=intel386
;;
2328 powerpcle
* ) machine
=powerpcle
;;
2329 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2330 sparc
* ) machine
=sparc
;;
2333 case "${canonical}" in
2334 ## The Sun386 didn't get past 4.0.
2335 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2336 *-sunos4.0
* ) opsys
=sunos4-0
;;
2337 *-sunos4.1.
[3-9]*noshare
)
2338 ## This name is sunos413 instead of sunos4-1-3
2339 ## to avoid a file name conflict on MSDOS.
2341 NON_GNU_CPP
=/usr
/lib
/cpp
2342 NON_GCC_TEST_OPTIONS
=-Bstatic
2343 GCC_TEST_OPTIONS
=-static
2345 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2347 NON_GNU_CPP
=/usr
/lib
/cpp
2349 *-sunos4* |
*-sunos )
2351 NON_GCC_TEST_OPTIONS
=-Bstatic
2352 GCC_TEST_OPTIONS
=-static
2354 *-sunos5.3
* |
*-solaris2.3
* )
2356 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2358 *-sunos5.4
* |
*-solaris2.4
* )
2360 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2363 *-sunos5.5
* |
*-solaris2.5
* )
2365 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2368 *-sunos5.6
* |
*-solaris2.6
* )
2370 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2373 *-sunos5* |
*-solaris* )
2375 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2379 ## Watch out for a compiler that we know will not work.
2380 case "${canonical}" in
2381 *-solaris* |
*-sunos5* )
2382 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2383 ## /usr/ucb/cc doesn't work;
2384 ## we should find some other compiler that does work.
2392 machine
=sparc opsys
=nextstep
2396 m68
*-tadpole-sysv* )
2397 machine
=tad68k opsys
=usg5-3
2401 tahoe-tahoe-bsd4.2
* )
2402 machine
=tahoe opsys
=bsd4-2
2404 tahoe-tahoe-bsd4.3
* )
2405 machine
=tahoe opsys
=bsd4-3
2408 ## Tandem Integrity S2
2410 machine
=tandem-s2 opsys
=usg5-3
2414 m88k-tektronix-sysv3
* )
2415 machine
=tekxd88 opsys
=usg5-3
2418 ## Tektronix 16000 box (6130?)
2419 ns16k-tektronix-bsd
* )
2420 machine
=ns16000 opsys
=bsd4-2
2423 ## src/m/tek4300.h hints that this is a m68k machine.
2424 m68
*-tektronix-bsd* )
2425 machine
=tek4300 opsys
=bsd4-3
2429 ## We seem to have lost the machine-description file titan.h!
2431 machine
=titan opsys
=usg5-3
2434 ## Ustation E30 (SS5E)
2435 m68
*-unisys-uniplus* )
2436 machine
=ustation opsystem
=unipl5-2
2442 case "${canonical}" in
2443 *-bsd4.1
* ) opsys
=bsd4-1
;;
2444 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2445 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2446 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2447 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2448 *-vms* ) opsys
=vms
;;
2454 ns16k-whitechapel-
* )
2456 ## We don't know what sort of OS runs on these; we'll let the
2457 ## operating system guessing code below try.
2462 machine
=wicat opsys
=usg5-2
2467 machine
=ia64 opsys
=gnu-linux
2470 ## Intel 386 machines where we don't care about the manufacturer
2473 case "${canonical}" in
2474 *-cygwin ) opsys
=cygwin
;;
2475 *-lynxos* ) opsys
=lynxos
;;
2476 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2477 *-isc2.2
* ) opsys
=isc2-2
;;
2478 *-isc4.0
* ) opsys
=isc4-0
;;
2479 *-isc4.
* ) opsys
=isc4-1
2480 GCC_TEST_OPTIONS
=-posix
2481 NON_GCC_TEST_OPTIONS
=-Xp
2483 *-isc* ) opsys
=isc3-0
;;
2484 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2485 *-esix* ) opsys
=esix
;;
2486 *-xenix* ) opsys
=xenix
;;
2487 *-linux-gnu* ) opsys
=gnu-linux
;;
2488 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2489 *-sco3.2v5
* ) opsys
=sco5
2490 NON_GNU_CPP
=/lib
/cpp
2491 # Prevent -belf from being passed to $CPP.
2492 # /lib/cpp does not accept it.
2493 OVERRIDE_CPPFLAGS
=" "
2495 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2496 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2497 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2498 *-386bsd* ) opsys
=386bsd
;;
2499 *-nextstep* ) opsys
=nextstep
;;
2500 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2504 ## m68k Linux-based GNU system
2506 machine
=m68k opsys
=gnu-linux
2509 ## Mips Linux-based GNU system
2510 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2511 machine
=mips opsys
=gnu-linux
2515 sparc-fujitsu-sysv4
* )
2516 machine
=sparc opsys
=uxpds
2517 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2522 f301-fujitsu-uxpv4.1
)
2523 machine
=f301 opsys
=uxpv
2526 ## Darwin / Mac OS X
2527 powerpc-apple-darwin
* )
2528 machine
=powermac opsys
=darwin
2529 # Define CPP as follows to make autoconf work correctly.
2530 CPP
="cc -E -traditional-cpp"
2533 ## AMD x86-64 Linux-based GNU system
2534 x86_64-
*-linux-gnu* )
2535 machine
=amdx86-64 opsys
=gnu-linux
2543 ### If the code above didn't choose an operating system, just choose
2544 ### an operating system based on the configuration name. You really
2545 ### only want to use this when you have no idea what the right
2546 ### operating system is; if you know what operating systems a machine
2547 ### runs, it's cleaner to make it explicit in the case statement
2549 if test x
"${opsys}" = x
; then
2550 case "${canonical}" in
2551 *-gnu* ) opsys
=gnu
;;
2552 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2553 *-bsd4.2
) opsys
=bsd4-2
;;
2554 *-bsd4.3
) opsys
=bsd4-3
;;
2555 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2556 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2557 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2558 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2559 *-sysv4.2uw
* ) opsys
=unixware
;;
2560 *-sysv5uw* ) opsys
=unixware
;;
2561 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2562 *-sysv4.1
* |
*-sysvr4.1
* )
2563 NON_GNU_CPP
=/usr
/lib
/cpp
2565 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2566 if [ x
$NON_GNU_CPP = x
]; then
2567 if [ -f /usr
/ccs
/lib
/cpp
]; then
2568 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2570 NON_GNU_CPP
=/lib
/cpp
2574 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2583 if test $unported = yes; then
2584 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2585 Check \`etc/MACHINES' for recognized configuration names." >&5
2586 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2587 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2588 { (exit 1); exit 1; }; }
2591 machfile
="m/${machine}.h"
2592 opsysfile
="s/${opsys}.h"
2595 #### Choose a compiler.
2596 test -n "$CC" && cc_specified
=yes
2598 # Save the value of CFLAGS that the user specified.
2599 SPECIFIED_CFLAGS
="$CFLAGS"
2602 "yes" ) CC
="gcc" GCC
=yes ;;
2603 "no" ) : ${CC=cc} ;;
2607 ac_cpp
='$CPP $CPPFLAGS'
2608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2611 if test -n "$ac_tool_prefix"; then
2612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2613 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2614 echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2616 if test "${ac_cv_prog_CC+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC
="$CC" # Let the user override the test.
2622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir
=.
2627 for ac_exec_ext
in '' $ac_executable_extensions; do
2628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 if test -n "$CC"; then
2640 echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6
2643 echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6
2648 if test -z "$ac_cv_prog_CC"; then
2650 # Extract the first word of "gcc", so it can be a program name with args.
2651 set dummy gcc
; ac_word
=$2
2652 echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir
=.
2665 for ac_exec_ext
in '' $ac_executable_extensions; do
2666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 ac_cv_prog_ac_ct_CC
="gcc"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC
="$CC" # Let the user override the test.
2702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir
=.
2707 for ac_exec_ext
in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 if test -n "$CC"; then
2720 echo "$as_me:$LINENO: result: $CC" >&5
2721 echo "${ECHO_T}$CC" >&6
2723 echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2728 if test -z "$ac_cv_prog_CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc
; ac_word
=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 if test -n "$ac_ct_CC"; then
2738 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir
=.
2745 for ac_exec_ext
in '' $ac_executable_extensions; do
2746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_CC
="cc"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2759 echo "${ECHO_T}$ac_ct_CC" >&6
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc
; ac_word
=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC
="$CC" # Let the user override the test.
2783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir
=.
2788 for ac_exec_ext
in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected
=yes
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy
$ac_cv_prog_CC
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2810 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2816 if test -n "$CC"; then
2817 echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC
="$CC" # Let the user override the test.
2839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir
=.
2844 for ac_exec_ext
in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test -n "$CC"; then
2857 echo "$as_me:$LINENO: result: $CC" >&5
2858 echo "${ECHO_T}$CC" >&6
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2864 test -n "$CC" && break
2867 if test -z "$CC"; then
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy
$ac_prog; ac_word
=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir
=.
2886 for ac_exec_ext
in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC
="$ac_prog"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2900 echo "${ECHO_T}$ac_ct_CC" >&6
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2906 test -n "$ac_ct_CC" && break
2915 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2917 { (exit 1); exit 1; }; }
2919 # Provide some information about the compiler.
2920 echo "$as_me:$LINENO:" \
2921 "checking for C compiler version" >&5
2922 ac_compiler
=`set X $ac_compile; echo $2`
2923 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2924 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2929 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2934 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2939 cat >conftest.
$ac_ext <<_ACEOF
2940 #line $LINENO "configure"
2941 #include "confdefs.h"
2951 ac_clean_files_save
=$ac_clean_files
2952 ac_clean_files
="$ac_clean_files a.out a.exe"
2953 # Try to create an executable without -o first, disregard a.out.
2954 # It will help us diagnose broken compilers, and finding out an intuition
2956 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2957 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2958 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2960 (eval $ac_link_default) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; then
2964 # Find the output, starting from the most likely. This scheme is
2965 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2968 # Be careful to initialize this variable, since it used to be cached.
2969 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2971 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
*; do
2972 test -f "$ac_file" ||
continue
2974 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2975 a.out
) # We found the default executable, but exeext='' is most
2978 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2988 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2989 check \`config.log' for details." >&5
2990 echo "$as_me: error: C compiler cannot create executables
2991 check \`config.log' for details." >&2;}
2992 { (exit 77); exit 77; }; }
2995 ac_exeext
=$ac_cv_exeext
2996 echo "$as_me:$LINENO: result: $ac_file" >&5
2997 echo "${ECHO_T}$ac_file" >&6
2999 # Check the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3004 # If not cross compiling, check that we can run a simple program.
3005 if test "$cross_compiling" != yes; then
3006 if { ac_try
='./$ac_file'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 if test "$cross_compiling" = maybe
; then
3017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3018 If you meant to cross compile, use \`--host'." >&5
3019 echo "$as_me: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'." >&2;}
3021 { (exit 1); exit 1; }; }
3025 echo "$as_me:$LINENO: result: yes" >&5
3026 echo "${ECHO_T}yes" >&6
3028 rm -f a.out a.exe conftest
$ac_cv_exeext
3029 ac_clean_files
=$ac_clean_files_save
3030 # Check the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 echo "${ECHO_T}$cross_compiling" >&6
3037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040 (eval $ac_link) 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3046 # work properly (i.e., refer to `conftest.exe'), while it won't with
3048 for ac_file
in conftest.exe conftest conftest.
*; do
3049 test -f "$ac_file" ||
continue
3051 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3052 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3060 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3061 { (exit 1); exit 1; }; }
3064 rm -f conftest
$ac_cv_exeext
3065 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3066 echo "${ECHO_T}$ac_cv_exeext" >&6
3068 rm -f conftest.
$ac_ext
3069 EXEEXT
=$ac_cv_exeext
3071 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3072 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3073 if test "${ac_cv_objext+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 cat >conftest.
$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 #include "confdefs.h"
3088 rm -f conftest.o conftest.obj
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; then
3094 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3096 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3097 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3102 echo "$as_me: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3105 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3106 { (exit 1); exit 1; }; }
3109 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3111 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3112 echo "${ECHO_T}$ac_cv_objext" >&6
3113 OBJEXT
=$ac_cv_objext
3115 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3116 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3117 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 cat >conftest.
$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3122 #include "confdefs.h"
3135 rm -f conftest.
$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try
='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3153 rm -f conftest.
$ac_objext conftest.
$ac_ext
3154 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3157 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3158 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3159 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3160 ac_test_CFLAGS
=${CFLAGS+set}
3161 ac_save_CFLAGS
=$CFLAGS
3163 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3164 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3165 if test "${ac_cv_prog_cc_g+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 cat >conftest.
$ac_ext <<_ACEOF
3169 #line $LINENO "configure"
3170 #include "confdefs.h"
3180 rm -f conftest.
$ac_objext
3181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3182 (eval $ac_compile) 2>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try
='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3194 echo "$as_me: failed program was:" >&5
3195 cat conftest.
$ac_ext >&5
3198 rm -f conftest.
$ac_objext conftest.
$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3202 if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS
=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3211 if test "$GCC" = yes; then
3217 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3218 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3219 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 ac_cv_prog_cc_stdc
=no
3224 cat >conftest.
$ac_ext <<_ACEOF
3225 #line $LINENO "configure"
3226 #include "confdefs.h"
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3249 int test (int i, double x);
3250 struct s1 {int (*f) (int a);};
3251 struct s2 {int (*f) (double a);};
3252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3263 # Don't try gcc -ansi; that turns off useful extensions and
3264 # breaks some systems' header files.
3265 # AIX -qlanglvl=ansi
3266 # Ultrix and OSF/1 -std1
3267 # HP-UX 10.20 and later -Ae
3268 # HP-UX older versions -Aa -D_HPUX_SOURCE
3269 # SVR4 -Xc -D__EXTENSIONS__
3270 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 CC
="$ac_save_CC $ac_arg"
3273 rm -f conftest.
$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try
='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_cv_prog_cc_stdc
=$ac_arg
3288 echo "$as_me: failed program was:" >&5
3289 cat conftest.
$ac_ext >&5
3291 rm -f conftest.
$ac_objext
3293 rm -f conftest.
$ac_ext conftest.
$ac_objext
3298 case "x$ac_cv_prog_cc_stdc" in
3300 echo "$as_me:$LINENO: result: none needed" >&5
3301 echo "${ECHO_T}none needed" >&6 ;;
3303 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3304 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3305 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3308 # Some people use a C++ compiler to compile C. Since we use `exit',
3309 # in C++ we need to declare it. In case someone uses the same compiler
3310 # for both compiling C and C++ we need to have the C++ compiler decide
3311 # the declaration of exit, since it's the most demanding environment.
3312 cat >conftest.
$ac_ext <<_ACEOF
3317 rm -f conftest.
$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 for ac_declaration
in \
3331 '#include <stdlib.h>' \
3332 'extern "C" void std::exit (int) throw (); using std::exit;' \
3333 'extern "C" void std::exit (int); using std::exit;' \
3334 'extern "C" void exit (int) throw ();' \
3335 'extern "C" void exit (int);' \
3338 cat >conftest.
$ac_ext <<_ACEOF
3339 #line $LINENO "configure"
3340 #include "confdefs.h"
3351 rm -f conftest.
$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try
='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3369 rm -f conftest.
$ac_objext conftest.
$ac_ext
3370 cat >conftest.
$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3382 rm -f conftest.
$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3399 rm -f conftest.
$ac_objext conftest.
$ac_ext
3402 if test -n "$ac_declaration"; then
3403 echo '#ifdef __cplusplus' >>confdefs.h
3404 echo $ac_declaration >>confdefs.h
3405 echo '#endif' >>confdefs.h
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.
$ac_ext >&5
3412 rm -f conftest.
$ac_objext conftest.
$ac_ext
3414 ac_cpp
='$CPP $CPPFLAGS'
3415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3425 #### Some systems specify a CPP to use unless we are using GCC.
3426 #### Now that we know whether we are using GCC, we can decide whether
3427 #### to use that one.
3428 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3433 #### Some systems specify a CC to use unless we are using GCC.
3434 #### Now that we know whether we are using GCC, we can decide whether
3435 #### to use that one.
3436 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3437 test x
$cc_specified != xyes
3442 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3444 CC
="$CC $GCC_TEST_OPTIONS"
3447 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3449 CC
="$CC $NON_GCC_TEST_OPTIONS"
3452 #### Some other nice autoconf tests.
3454 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457 if test "$LN_S" = "ln -s"; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3461 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3462 echo "${ECHO_T}no, using $LN_S" >&6
3466 ac_cpp
='$CPP $CPPFLAGS'
3467 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3470 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3471 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3472 # On Suns, sometimes $CPP names a directory.
3473 if test -n "$CPP" && test -d "$CPP"; then
3476 if test -z "$CPP"; then
3477 if test "${ac_cv_prog_CPP+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 # Double quotes because CPP needs to be expanded
3481 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3484 for ac_c_preproc_warn_flag
in '' yes
3486 # Use a header file that comes with gcc, so configuring glibc
3487 # with a fresh cross-compiler works.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.
$ac_ext <<_ACEOF
3491 #line $LINENO "configure"
3492 #include "confdefs.h"
3496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3499 grep -v '^ *+' conftest.er1
>conftest.err
3501 cat conftest.err
>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } >/dev
/null
; then
3504 if test -s conftest.err
; then
3505 ac_cpp_err
=$ac_c_preproc_warn_flag
3512 if test -z "$ac_cpp_err"; then
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3517 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.
$ac_ext
3522 # OK, works on sane cases. Now check whether non-existent headers
3523 # can be detected and how.
3524 cat >conftest.
$ac_ext <<_ACEOF
3525 #line $LINENO "configure"
3526 #include "confdefs.h"
3527 #include <ac_nonexistent.h>
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3532 grep -v '^ *+' conftest.er1
>conftest.err
3534 cat conftest.err
>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev
/null
; then
3537 if test -s conftest.err
; then
3538 ac_cpp_err
=$ac_c_preproc_warn_flag
3545 if test -z "$ac_cpp_err"; then
3546 # Broken: success on invalid input.
3549 echo "$as_me: failed program was:" >&5
3550 cat conftest.
$ac_ext >&5
3551 # Passes both tests.
3555 rm -f conftest.err conftest.
$ac_ext
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.
$ac_ext
3560 if $ac_preproc_ok; then
3572 echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6
3575 for ac_c_preproc_warn_flag
in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.
$ac_ext <<_ACEOF
3582 #line $LINENO "configure"
3583 #include "confdefs.h"
3587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
3592 cat conftest.err
>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev
/null
; then
3595 if test -s conftest.err
; then
3596 ac_cpp_err
=$ac_c_preproc_warn_flag
3603 if test -z "$ac_cpp_err"; then
3606 echo "$as_me: failed program was:" >&5
3607 cat conftest.
$ac_ext >&5
3608 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.
$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.
$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 #include "confdefs.h"
3618 #include <ac_nonexistent.h>
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3623 grep -v '^ *+' conftest.er1
>conftest.err
3625 cat conftest.err
>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev
/null
; then
3628 if test -s conftest.err
; then
3629 ac_cpp_err
=$ac_c_preproc_warn_flag
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was:" >&5
3641 cat conftest.
$ac_ext >&5
3642 # Passes both tests.
3646 rm -f conftest.err conftest.
$ac_ext
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.
$ac_ext
3651 if $ac_preproc_ok; then
3654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3655 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3656 { (exit 1); exit 1; }; }
3660 ac_cpp
='$CPP $CPPFLAGS'
3661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3665 # Find a good install program. We prefer a C program (faster),
3666 # so one script is as good as another. But avoid the broken or
3667 # incompatible versions:
3668 # SysV /etc/install, /usr/sbin/install
3669 # SunOS /usr/etc/install
3670 # IRIX /sbin/install
3672 # AmigaOS /C/install, which installs bootblocks on floppy discs
3673 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3674 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3675 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3676 # ./install, which can be erroneously created by make from ./install.sh.
3677 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3679 if test -z "$INSTALL"; then
3680 if test "${ac_cv_path_install+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3687 test -z "$as_dir" && as_dir
=.
3688 # Account for people who put trailing slashes in PATH elements.
3690 .
/ | .
// |
/cC
/* | \
3691 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3694 # OSF1 and SCO ODT 3.0 have their own names for install.
3695 # Don't use installbsd from OSF since it installs stuff as root
3697 for ac_prog
in ginstall scoinst
install; do
3698 for ac_exec_ext
in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3700 if test $ac_prog = install &&
3701 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3702 # AIX install. It has an incompatible calling convention.
3704 elif test $ac_prog = install &&
3705 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3706 # program-specific install script used by HP pwplus--don't use.
3709 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3721 if test "${ac_cv_path_install+set}" = set; then
3722 INSTALL
=$ac_cv_path_install
3724 # As a last resort, use the slow shell script. We don't cache a
3725 # path for INSTALL within a source directory, because that will
3726 # break other packages using the cache if that directory is
3727 # removed, or if the path is relative.
3728 INSTALL
=$ac_install_sh
3731 echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 echo "${ECHO_T}$INSTALL" >&6
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3740 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3742 if test "x$RANLIB" = x
; then
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3745 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_RANLIB+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$RANLIB"; then
3752 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_exec_ext
in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 RANLIB
=$ac_cv_prog_RANLIB
3771 if test -n "$RANLIB"; then
3772 echo "$as_me:$LINENO: result: $RANLIB" >&5
3773 echo "${ECHO_T}$RANLIB" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3780 if test -z "$ac_cv_prog_RANLIB"; then
3781 ac_ct_RANLIB
=$RANLIB
3782 # Extract the first word of "ranlib", so it can be a program name with args.
3783 set dummy ranlib
; ac_word
=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$ac_ct_RANLIB"; then
3790 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir
=.
3797 for ac_exec_ext
in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3809 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3810 if test -n "$ac_ct_RANLIB"; then
3811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 RANLIB
=$ac_ct_RANLIB
3820 RANLIB
="$ac_cv_prog_RANLIB"
3824 # Extract the first word of "install-info", so it can be a program name with args.
3825 set dummy install-info
; ac_word
=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 case $INSTALL_INFO in
3833 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir
=.
3841 for ac_exec_ext
in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3855 if test -n "$INSTALL_INFO"; then
3856 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3857 echo "${ECHO_T}$INSTALL_INFO" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3863 # Extract the first word of "install-info", so it can be a program name with args.
3864 set dummy install-info
; ac_word
=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 case $INSTALL_INFO in
3872 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3876 for as_dir
in /usr
/sbin
3879 test -z "$as_dir" && as_dir
=.
3880 for ac_exec_ext
in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3894 if test -n "$INSTALL_INFO"; then
3895 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3896 echo "${ECHO_T}$INSTALL_INFO" >&6
3898 echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6
3902 # Extract the first word of "install-info", so it can be a program name with args.
3903 set dummy install-info
; ac_word
=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 case $INSTALL_INFO in
3911 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 for ac_exec_ext
in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
3922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
3932 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
3934 if test -n "$INSTALL_INFO"; then
3935 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3936 echo "${ECHO_T}$INSTALL_INFO" >&6
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3944 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3946 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3949 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3951 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3956 echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3958 if test "${ac_cv_prog_egrep+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3962 then ac_cv_prog_egrep
='grep -E'
3963 else ac_cv_prog_egrep
='egrep'
3966 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3967 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3968 EGREP
=$ac_cv_prog_egrep
3972 echo "$as_me:$LINENO: checking for AIX" >&5
3973 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3974 cat >conftest.
$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 $EGREP "yes" >/dev
/null
2>&1; then
3984 echo "$as_me:$LINENO: result: yes" >&5
3985 echo "${ECHO_T}yes" >&6
3986 cat >>confdefs.h
<<\_ACEOF
3987 #define _ALL_SOURCE 1
3991 echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6
3998 #### Extract some information from the operating system and machine files.
4000 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4001 - which libraries the lib-src programs will want, and
4002 - whether the GNU malloc routines are usable..." >&5
4003 echo "$as_me: checking the machine- and system-dependent files to find out
4004 - which libraries the lib-src programs will want, and
4005 - whether the GNU malloc routines are usable..." >&6;}
4007 ### First figure out CFLAGS (which we use for running the compiler here)
4008 ### and REAL_CFLAGS (which we use for real compilation).
4009 ### The two are the same except on a few systems, where they are made
4010 ### different to work around various lossages. For example,
4011 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4012 ### as implying static linking.
4014 ### If the CFLAGS env var is specified, we use that value
4015 ### instead of the default.
4017 ### It's not important that this name contain the PID; you can't run
4018 ### two configures in the same directory and have anything work
4020 tempcname
="conftest.c"
4023 #include "'${srcdir}'/src/'${opsysfile}'"
4024 #include "'${srcdir}'/src/'${machfile}'"
4025 #ifndef LIBS_MACHINE
4026 #define LIBS_MACHINE
4031 #ifndef C_SWITCH_SYSTEM
4032 #define C_SWITCH_SYSTEM
4034 #ifndef C_SWITCH_MACHINE
4035 #define C_SWITCH_MACHINE
4037 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4038 configure___ c_switch_system=C_SWITCH_SYSTEM
4039 configure___ c_switch_machine=C_SWITCH_MACHINE
4042 #define LIB_X11_LIB -lX11
4045 #ifndef LIBX11_MACHINE
4046 #define LIBX11_MACHINE
4049 #ifndef LIBX11_SYSTEM
4050 #define LIBX11_SYSTEM
4052 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4055 configure___ unexec=UNEXEC
4057 configure___ unexec=unexec.o
4060 #ifdef SYSTEM_MALLOC
4061 configure___ system_malloc=yes
4063 configure___ system_malloc=no
4066 #ifdef USE_MMAP_FOR_BUFFERS
4067 configure___ use_mmap_for_buffers=yes
4069 configure___ use_mmap_for_buffers=no
4072 #ifndef C_DEBUG_SWITCH
4073 #define C_DEBUG_SWITCH -g
4076 #ifndef C_OPTIMIZE_SWITCH
4078 #define C_OPTIMIZE_SWITCH -O2
4080 #define C_OPTIMIZE_SWITCH -O
4084 #ifndef LD_SWITCH_MACHINE
4085 #define LD_SWITCH_MACHINE
4088 #ifndef LD_SWITCH_SYSTEM
4089 #define LD_SWITCH_SYSTEM
4092 #ifndef LD_SWITCH_X_SITE_AUX
4093 #define LD_SWITCH_X_SITE_AUX
4096 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4097 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4099 #ifdef THIS_IS_CONFIGURE
4101 /* Get the CFLAGS for tests in configure. */
4103 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4105 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4108 #else /* not THIS_IS_CONFIGURE */
4110 /* Get the CFLAGS for real compilation. */
4112 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4114 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4117 #endif /* not THIS_IS_CONFIGURE */
4120 # The value of CPP is a quoted variable reference, so we need to do this
4121 # to get its actual value...
4122 CPP
=`eval "echo $CPP"`
4123 eval `${CPP} -Isrc ${tempcname} \
4124 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4125 if test "x$SPECIFIED_CFLAGS" = x
; then
4126 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4127 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4129 REAL_CFLAGS
="$CFLAGS"
4133 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4135 ### Make sure subsequent tests use flags consistent with the build flags.
4137 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4138 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4140 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4146 cat >>confdefs.h
<<\_ACEOF
4147 #define _GNU_SOURCE 1
4152 # Check whether --enable-largefile or --disable-largefile was given.
4153 if test "${enable_largefile+set}" = set; then
4154 enableval
="$enable_largefile"
4157 if test "$enable_largefile" != no
; then
4159 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4160 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4161 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 ac_cv_sys_largefile_CC
=no
4165 if test "$GCC" != yes; then
4168 # IRIX 6.2 and later do not support large files by default,
4169 # so use the C compiler's -n32 option if that helps.
4170 cat >conftest.
$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 #include "confdefs.h"
4173 #include <sys/types.h>
4174 /* Check that off_t can represent 2**63 - 1 correctly.
4175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4176 since some C++ compilers masquerading as C compilers
4177 incorrectly reject 9223372036854775807. */
4178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4180 && LARGE_OFF_T % 2147483647 == 1)
4190 rm -f conftest.
$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try
='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 rm -f conftest.
$ac_objext
4209 rm -f conftest.
$ac_objext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211 (eval $ac_compile) 2>&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } &&
4215 { ac_try
='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_cv_sys_largefile_CC
=' -n32'; break
4223 echo "$as_me: failed program was:" >&5
4224 cat conftest.
$ac_ext >&5
4226 rm -f conftest.
$ac_objext
4230 rm -f conftest.
$ac_ext
4233 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4234 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4235 if test "$ac_cv_sys_largefile_CC" != no
; then
4236 CC
=$CC$ac_cv_sys_largefile_CC
4239 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4240 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4241 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 ac_cv_sys_file_offset_bits
=no
4246 cat >conftest.
$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4249 #include <sys/types.h>
4250 /* Check that off_t can represent 2**63 - 1 correctly.
4251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4252 since some C++ compilers masquerading as C compilers
4253 incorrectly reject 9223372036854775807. */
4254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4256 && LARGE_OFF_T % 2147483647 == 1)
4266 rm -f conftest.
$ac_objext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4268 (eval $ac_compile) 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
4272 { ac_try
='test -s conftest.$ac_objext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4280 echo "$as_me: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4283 rm -f conftest.
$ac_objext conftest.
$ac_ext
4284 cat >conftest.
$ac_ext <<_ACEOF
4285 #line $LINENO "configure"
4286 #include "confdefs.h"
4287 #define _FILE_OFFSET_BITS 64
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4305 rm -f conftest.
$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try
='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_sys_file_offset_bits
=64; break
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4322 rm -f conftest.
$ac_objext conftest.
$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4327 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4328 if test "$ac_cv_sys_file_offset_bits" != no
; then
4330 cat >>confdefs.h
<<_ACEOF
4331 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4336 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4337 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4338 if test "${ac_cv_sys_large_files+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 ac_cv_sys_large_files
=no
4343 cat >conftest.
$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4345 #include "confdefs.h"
4346 #include <sys/types.h>
4347 /* Check that off_t can represent 2**63 - 1 correctly.
4348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4349 since some C++ compilers masquerading as C compilers
4350 incorrectly reject 9223372036854775807. */
4351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4353 && LARGE_OFF_T % 2147483647 == 1)
4363 rm -f conftest.
$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try
='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.
$ac_ext >&5
4380 rm -f conftest.
$ac_objext conftest.
$ac_ext
4381 cat >conftest.
$ac_ext <<_ACEOF
4382 #line $LINENO "configure"
4383 #include "confdefs.h"
4384 #define _LARGE_FILES 1
4385 #include <sys/types.h>
4386 /* Check that off_t can represent 2**63 - 1 correctly.
4387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4388 since some C++ compilers masquerading as C compilers
4389 incorrectly reject 9223372036854775807. */
4390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4392 && LARGE_OFF_T % 2147483647 == 1)
4402 rm -f conftest.
$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try
='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_sys_large_files
=1; break
4416 echo "$as_me: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 rm -f conftest.
$ac_objext conftest.
$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4424 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4425 if test "$ac_cv_sys_large_files" != no
; then
4427 cat >>confdefs.h
<<_ACEOF
4428 #define _LARGE_FILES $ac_cv_sys_large_files
4436 if test "${with_sound}" != "no"; then
4437 # Sound support for GNU/Linux and the free BSDs.
4438 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4439 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4440 if test "${ac_cv_header_stdc+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.
$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 #include "confdefs.h"
4452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4455 grep -v '^ *+' conftest.er1
>conftest.err
4457 cat conftest.err
>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev
/null
; then
4460 if test -s conftest.err
; then
4461 ac_cpp_err
=$ac_c_preproc_warn_flag
4468 if test -z "$ac_cpp_err"; then
4469 ac_cv_header_stdc
=yes
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4473 ac_cv_header_stdc
=no
4475 rm -f conftest.err conftest.
$ac_ext
4477 if test $ac_cv_header_stdc = yes; then
4478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4479 cat >conftest.
$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev
/null
2>&1; then
4489 ac_cv_header_stdc
=no
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.
$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "free" >/dev
/null
2>&1; then
4507 ac_cv_header_stdc
=no
4513 if test $ac_cv_header_stdc = yes; then
4514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4515 if test "$cross_compiling" = yes; then
4518 cat >conftest.
$ac_ext <<_ACEOF
4519 #line $LINENO "configure"
4520 #include "confdefs.h"
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4527 || ('j' <= (c) && (c) <= 'r') \
4528 || ('s' <= (c) && (c) <= 'z'))
4529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i))
4539 || toupper (i) != TOUPPER (i))
4544 rm -f conftest
$ac_exeext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546 (eval $ac_link) 2>&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 cat conftest.
$ac_ext >&5
4561 ac_cv_header_stdc
=no
4563 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4568 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4569 if test $ac_cv_header_stdc = yes; then
4571 cat >>confdefs.h
<<\_ACEOF
4572 #define STDC_HEADERS 1
4577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4587 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4588 inttypes.h stdint.h unistd.h
4590 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4591 echo "$as_me:$LINENO: checking for $ac_header" >&5
4592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 cat >conftest.
$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 #include "confdefs.h"
4599 $ac_includes_default
4601 #include <$ac_header>
4603 rm -f conftest.
$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try
='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4615 eval "$as_ac_Header=yes"
4617 echo "$as_me: failed program was:" >&5
4618 cat conftest.
$ac_ext >&5
4619 eval "$as_ac_Header=no"
4621 rm -f conftest.
$ac_objext conftest.
$ac_ext
4623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4626 cat >>confdefs.h
<<_ACEOF
4627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4640 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642 echo "$as_me:$LINENO: checking for $ac_header" >&5
4643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4650 # Is the header compilable?
4651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4653 cat >conftest.
$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4657 #include <$ac_header>
4659 rm -f conftest.
$ac_objext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661 (eval $ac_compile) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try
='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_header_compiler
=yes
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4675 ac_header_compiler
=no
4677 rm -f conftest.
$ac_objext conftest.
$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4679 echo "${ECHO_T}$ac_header_compiler" >&6
4681 # Is the header present?
4682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4684 cat >conftest.
$ac_ext <<_ACEOF
4685 #line $LINENO "configure"
4686 #include "confdefs.h"
4687 #include <$ac_header>
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1
>conftest.err
4694 cat conftest.err
>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev
/null
; then
4697 if test -s conftest.err
; then
4698 ac_cpp_err
=$ac_c_preproc_warn_flag
4705 if test -z "$ac_cpp_err"; then
4706 ac_header_preproc
=yes
4708 echo "$as_me: failed program was:" >&5
4709 cat conftest.
$ac_ext >&5
4710 ac_header_preproc
=no
4712 rm -f conftest.err conftest.
$ac_ext
4713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4714 echo "${ECHO_T}$ac_header_preproc" >&6
4716 # So? What about this header?
4717 case $ac_header_compiler:$ac_header_preproc in
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 eval "$as_ac_Header=$ac_header_preproc"
4738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h
<<_ACEOF
4744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751 # Emulation library used on NetBSD.
4752 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4753 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4754 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 ac_check_lib_save_LIBS
=$LIBS
4758 LIBS
="-lossaudio $LIBS"
4759 cat >conftest.
$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 #include "confdefs.h"
4763 /* Override any gcc2 internal prototype to avoid an error. */
4767 /* We use char because int might match the return type of a gcc2
4768 builtin and then its argument prototype would still apply. */
4778 rm -f conftest.
$ac_objext conftest
$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try
='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_ossaudio__oss_ioctl
=yes
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.
$ac_ext >&5
4794 ac_cv_lib_ossaudio__oss_ioctl
=no
4796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4797 LIBS
=$ac_check_lib_save_LIBS
4799 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4800 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4801 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4833 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4834 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4835 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
4836 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
4838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4840 echo "$as_me:$LINENO: checking for $ac_header" >&5
4841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4848 # Is the header compilable?
4849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4851 cat >conftest.
$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 #include "confdefs.h"
4854 $ac_includes_default
4855 #include <$ac_header>
4857 rm -f conftest.
$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_header_compiler
=yes
4871 echo "$as_me: failed program was:" >&5
4872 cat conftest.
$ac_ext >&5
4873 ac_header_compiler
=no
4875 rm -f conftest.
$ac_objext conftest.
$ac_ext
4876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 echo "${ECHO_T}$ac_header_compiler" >&6
4879 # Is the header present?
4880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4882 cat >conftest.
$ac_ext <<_ACEOF
4883 #line $LINENO "configure"
4884 #include "confdefs.h"
4885 #include <$ac_header>
4887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev
/null
; then
4895 if test -s conftest.err
; then
4896 ac_cpp_err
=$ac_c_preproc_warn_flag
4903 if test -z "$ac_cpp_err"; then
4904 ac_header_preproc
=yes
4906 echo "$as_me: failed program was:" >&5
4907 cat conftest.
$ac_ext >&5
4908 ac_header_preproc
=no
4910 rm -f conftest.err conftest.
$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4914 # So? What about this header?
4915 case $ac_header_compiler:$ac_header_preproc in
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h
<<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950 for ac_header
in term.h
4952 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953 echo "$as_me:$LINENO: checking for $ac_header" >&5
4954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 cat >conftest.
$ac_ext <<_ACEOF
4959 #line $LINENO "configure"
4960 #include "confdefs.h"
4961 #include <$ac_header>
4963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } >/dev
/null
; then
4971 if test -s conftest.err
; then
4972 ac_cpp_err
=$ac_c_preproc_warn_flag
4979 if test -z "$ac_cpp_err"; then
4980 eval "$as_ac_Header=yes"
4982 echo "$as_me: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4984 eval "$as_ac_Header=no"
4986 rm -f conftest.err conftest.
$ac_ext
4988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4991 cat >>confdefs.h
<<_ACEOF
4992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5000 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5001 if test "${ac_cv_header_stdc+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 cat >conftest.
$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 #include "confdefs.h"
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5016 grep -v '^ *+' conftest.er1
>conftest.err
5018 cat conftest.err
>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev
/null
; then
5021 if test -s conftest.err
; then
5022 ac_cpp_err
=$ac_c_preproc_warn_flag
5029 if test -z "$ac_cpp_err"; then
5030 ac_cv_header_stdc
=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5034 ac_cv_header_stdc
=no
5036 rm -f conftest.err conftest.
$ac_ext
5038 if test $ac_cv_header_stdc = yes; then
5039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5040 cat >conftest.
$ac_ext <<_ACEOF
5041 #line $LINENO "configure"
5042 #include "confdefs.h"
5046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047 $EGREP "memchr" >/dev
/null
2>&1; then
5050 ac_cv_header_stdc
=no
5056 if test $ac_cv_header_stdc = yes; then
5057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5058 cat >conftest.
$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065 $EGREP "free" >/dev
/null
2>&1; then
5068 ac_cv_header_stdc
=no
5074 if test $ac_cv_header_stdc = yes; then
5075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076 if test "$cross_compiling" = yes; then
5079 cat >conftest.
$ac_ext <<_ACEOF
5080 #line $LINENO "configure"
5081 #include "confdefs.h"
5083 #if ((' ' & 0x0FF) == 0x020)
5084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5087 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5088 || ('j' <= (c) && (c) <= 'r') \
5089 || ('s' <= (c) && (c) <= 'z'))
5090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5098 for (i = 0; i < 256; i++)
5099 if (XOR (islower (i), ISLOWER (i))
5100 || toupper (i) != TOUPPER (i))
5105 rm -f conftest
$ac_exeext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5107 (eval $ac_link) 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5118 echo "$as_me: program exited with status $ac_status" >&5
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.
$ac_ext >&5
5122 ac_cv_header_stdc
=no
5124 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5129 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5130 if test $ac_cv_header_stdc = yes; then
5132 cat >>confdefs.h
<<\_ACEOF
5133 #define STDC_HEADERS 1
5138 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5139 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5140 if test "${ac_cv_header_time+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 cat >conftest.
$ac_ext <<_ACEOF
5144 #line $LINENO "configure"
5145 #include "confdefs.h"
5146 #include <sys/types.h>
5147 #include <sys/time.h>
5153 if ((struct tm *) 0)
5159 rm -f conftest.
$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try
='test -s conftest.$ac_objext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_header_time
=yes
5173 echo "$as_me: failed program was:" >&5
5174 cat conftest.
$ac_ext >&5
5175 ac_cv_header_time
=no
5177 rm -f conftest.
$ac_objext conftest.
$ac_ext
5179 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5180 echo "${ECHO_T}$ac_cv_header_time" >&6
5181 if test $ac_cv_header_time = yes; then
5183 cat >>confdefs.h
<<\_ACEOF
5184 #define TIME_WITH_SYS_TIME 1
5189 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5190 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5191 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat >conftest.
$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5197 $ac_includes_default
5202 char *p = (char *) sys_siglist;
5209 rm -f conftest.
$ac_objext
5210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211 (eval $ac_compile) 2>&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try
='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_cv_have_decl_sys_siglist
=yes
5223 echo "$as_me: failed program was:" >&5
5224 cat conftest.
$ac_ext >&5
5225 ac_cv_have_decl_sys_siglist
=no
5227 rm -f conftest.
$ac_objext conftest.
$ac_ext
5229 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5230 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5231 if test $ac_cv_have_decl_sys_siglist = yes; then
5233 cat >>confdefs.h
<<_ACEOF
5234 #define HAVE_DECL_SYS_SIGLIST 1
5239 cat >>confdefs.h
<<_ACEOF
5240 #define HAVE_DECL_SYS_SIGLIST 0
5247 if test $ac_cv_have_decl_sys_siglist != yes; then
5248 # For Tru64, at least:
5249 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5250 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5251 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 cat >conftest.
$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 #include "confdefs.h"
5257 $ac_includes_default
5261 #ifndef __sys_siglist
5262 char *p = (char *) __sys_siglist;
5269 rm -f conftest.
$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try
='test -s conftest.$ac_objext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_have_decl___sys_siglist
=yes
5283 echo "$as_me: failed program was:" >&5
5284 cat conftest.
$ac_ext >&5
5285 ac_cv_have_decl___sys_siglist
=no
5287 rm -f conftest.
$ac_objext conftest.
$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5290 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5291 if test $ac_cv_have_decl___sys_siglist = yes; then
5293 cat >>confdefs.h
<<_ACEOF
5294 #define HAVE_DECL___SYS_SIGLIST 1
5299 cat >>confdefs.h
<<_ACEOF
5300 #define HAVE_DECL___SYS_SIGLIST 0
5307 if test $ac_cv_have_decl___sys_siglist = yes; then
5309 cat >>confdefs.h
<<\_ACEOF
5310 #define sys_siglist __sys_siglist
5315 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5316 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5317 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 cat >conftest.
$ac_ext <<_ACEOF
5321 #line $LINENO "configure"
5322 #include "confdefs.h"
5323 #include <sys/types.h>
5324 #include <sys/wait.h>
5326 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5329 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5337 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5342 rm -f conftest.
$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344 (eval $ac_compile) 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try
='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_cv_header_sys_wait_h
=yes
5356 echo "$as_me: failed program was:" >&5
5357 cat conftest.
$ac_ext >&5
5358 ac_cv_header_sys_wait_h
=no
5360 rm -f conftest.
$ac_objext conftest.
$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5363 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5364 if test $ac_cv_header_sys_wait_h = yes; then
5366 cat >>confdefs.h
<<\_ACEOF
5367 #define HAVE_SYS_WAIT_H 1
5373 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5374 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5375 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.
$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 #include "confdefs.h"
5381 #ifdef TIME_WITH_SYS_TIME
5382 #include <sys/time.h>
5385 #ifdef HAVE_SYS_TIME_H
5386 #include <sys/time.h>
5397 static struct utimbuf x; x.actime = x.modtime;
5402 rm -f conftest.
$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try
='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 emacs_cv_struct_utimbuf
=yes
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5418 emacs_cv_struct_utimbuf
=no
5420 rm -f conftest.
$ac_objext conftest.
$ac_ext
5422 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5423 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5424 if test $emacs_cv_struct_utimbuf = yes; then
5426 cat >>confdefs.h
<<\_ACEOF
5427 #define HAVE_STRUCT_UTIMBUF 1
5432 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5433 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5434 if test "${ac_cv_type_signal+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 cat >conftest.
$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 #include "confdefs.h"
5440 #include <sys/types.h>
5446 extern "C" void (*signal (int, void (*)(int)))(int);
5448 void (*signal ()) ();
5459 rm -f conftest.
$ac_objext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5461 (eval $ac_compile) 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try
='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_type_signal
=void
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.
$ac_ext >&5
5475 ac_cv_type_signal
=int
5477 rm -f conftest.
$ac_objext conftest.
$ac_ext
5479 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5480 echo "${ECHO_T}$ac_cv_type_signal" >&6
5482 cat >>confdefs.h
<<_ACEOF
5483 #define RETSIGTYPE $ac_cv_type_signal
5488 echo "$as_me:$LINENO: checking for speed_t" >&5
5489 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5490 if test "${emacs_cv_speed_t+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.
$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 #include "confdefs.h"
5496 #include <termios.h>
5505 rm -f conftest.
$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try
='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 emacs_cv_speed_t
=yes
5519 echo "$as_me: failed program was:" >&5
5520 cat conftest.
$ac_ext >&5
5523 rm -f conftest.
$ac_objext conftest.
$ac_ext
5525 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5526 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5527 if test $emacs_cv_speed_t = yes; then
5529 cat >>confdefs.h
<<\_ACEOF
5530 #define HAVE_SPEED_T 1
5535 echo "$as_me:$LINENO: checking for struct timeval" >&5
5536 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5537 if test "${emacs_cv_struct_timeval+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 cat >conftest.
$ac_ext <<_ACEOF
5541 #line $LINENO "configure"
5542 #include "confdefs.h"
5543 #ifdef TIME_WITH_SYS_TIME
5544 #include <sys/time.h>
5547 #ifdef HAVE_SYS_TIME_H
5548 #include <sys/time.h>
5556 static struct timeval x; x.tv_sec = x.tv_usec;
5561 rm -f conftest.
$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563 (eval $ac_compile) 2>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } &&
5567 { ac_try
='test -s conftest.$ac_objext'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; }; then
5573 emacs_cv_struct_timeval
=yes
5575 echo "$as_me: failed program was:" >&5
5576 cat conftest.
$ac_ext >&5
5577 emacs_cv_struct_timeval
=no
5579 rm -f conftest.
$ac_objext conftest.
$ac_ext
5581 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5582 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5583 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5584 if test $emacs_cv_struct_timeval = yes; then
5586 cat >>confdefs.h
<<\_ACEOF
5587 #define HAVE_TIMEVAL 1
5592 echo "$as_me:$LINENO: checking for struct exception" >&5
5593 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5594 if test "${emacs_cv_struct_exception+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 cat >conftest.
$ac_ext <<_ACEOF
5598 #line $LINENO "configure"
5599 #include "confdefs.h"
5604 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5609 rm -f conftest.
$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try
='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 emacs_cv_struct_exception
=yes
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.
$ac_ext >&5
5625 emacs_cv_struct_exception
=no
5627 rm -f conftest.
$ac_objext conftest.
$ac_ext
5629 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5630 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5631 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5632 if test $emacs_cv_struct_exception != yes; then
5634 cat >>confdefs.h
<<\_ACEOF
5635 #define NO_MATHERR 1
5640 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5641 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5642 if test "${ac_cv_struct_tm+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 cat >conftest.
$ac_ext <<_ACEOF
5646 #line $LINENO "configure"
5647 #include "confdefs.h"
5648 #include <sys/types.h>
5654 struct tm *tp; tp->tm_sec;
5659 rm -f conftest.
$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_struct_tm
=time.h
5673 echo "$as_me: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5675 ac_cv_struct_tm
=sys
/time.h
5677 rm -f conftest.
$ac_objext conftest.
$ac_ext
5679 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5680 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5681 if test $ac_cv_struct_tm = sys
/time.h
; then
5683 cat >>confdefs.h
<<\_ACEOF
5684 #define TM_IN_SYS_TIME 1
5689 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5690 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5691 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 cat >conftest.
$ac_ext <<_ACEOF
5695 #line $LINENO "configure"
5696 #include "confdefs.h"
5697 #include <sys/types.h>
5698 #include <$ac_cv_struct_tm>
5704 static struct tm ac_aggr;
5705 if (ac_aggr.tm_zone)
5711 rm -f conftest.
$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_member_struct_tm_tm_zone
=yes
5725 echo "$as_me: failed program was:" >&5
5726 cat conftest.
$ac_ext >&5
5727 cat >conftest.
$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 #include "confdefs.h"
5730 #include <sys/types.h>
5731 #include <$ac_cv_struct_tm>
5737 static struct tm ac_aggr;
5738 if (sizeof ac_aggr.tm_zone)
5744 rm -f conftest.
$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try
='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_member_struct_tm_tm_zone
=yes
5758 echo "$as_me: failed program was:" >&5
5759 cat conftest.
$ac_ext >&5
5760 ac_cv_member_struct_tm_tm_zone
=no
5762 rm -f conftest.
$ac_objext conftest.
$ac_ext
5764 rm -f conftest.
$ac_objext conftest.
$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5767 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5768 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5770 cat >>confdefs.h
<<_ACEOF
5771 #define HAVE_STRUCT_TM_TM_ZONE 1
5777 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5779 cat >>confdefs.h
<<\_ACEOF
5780 #define HAVE_TM_ZONE 1
5784 echo "$as_me:$LINENO: checking for tzname" >&5
5785 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5786 if test "${ac_cv_var_tzname+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.
$ac_ext <<_ACEOF
5790 #line $LINENO "configure"
5791 #include "confdefs.h"
5793 #ifndef tzname /* For SGI. */
5794 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5805 rm -f conftest.
$ac_objext conftest
$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try
='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_var_tzname
=yes
5819 echo "$as_me: failed program was:" >&5
5820 cat conftest.
$ac_ext >&5
5823 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5826 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5827 if test $ac_cv_var_tzname = yes; then
5829 cat >>confdefs.h
<<\_ACEOF
5830 #define HAVE_TZNAME 1
5836 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5837 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5838 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.
$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 #include "confdefs.h"
5849 static struct tm ac_aggr;
5850 if (ac_aggr.tm_gmtoff)
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_member_struct_tm_tm_gmtoff
=yes
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.
$ac_ext >&5
5872 cat >conftest.
$ac_ext <<_ACEOF
5873 #line $LINENO "configure"
5874 #include "confdefs.h"
5880 static struct tm ac_aggr;
5881 if (sizeof ac_aggr.tm_gmtoff)
5887 rm -f conftest.
$ac_objext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try
='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_cv_member_struct_tm_tm_gmtoff
=yes
5901 echo "$as_me: failed program was:" >&5
5902 cat conftest.
$ac_ext >&5
5903 ac_cv_member_struct_tm_tm_gmtoff
=no
5905 rm -f conftest.
$ac_objext conftest.
$ac_ext
5907 rm -f conftest.
$ac_objext conftest.
$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5911 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5913 cat >>confdefs.h
<<\_ACEOF
5914 #define HAVE_TM_GMTOFF 1
5921 echo "$as_me:$LINENO: checking for function prototypes" >&5
5922 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5923 if test "$ac_cv_prog_cc_stdc" != no
; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925 echo "${ECHO_T}yes" >&6
5927 cat >>confdefs.h
<<\_ACEOF
5928 #define PROTOTYPES 1
5932 cat >>confdefs.h
<<\_ACEOF
5933 #define __PROTOTYPES 1
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5941 echo "$as_me:$LINENO: checking for working volatile" >&5
5942 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5943 if test "${ac_cv_c_volatile+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.
$ac_ext <<_ACEOF
5947 #line $LINENO "configure"
5948 #include "confdefs.h"
5960 rm -f conftest.
$ac_objext
5961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 (eval $ac_compile) 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } &&
5966 { ac_try
='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_c_volatile
=yes
5974 echo "$as_me: failed program was:" >&5
5975 cat conftest.
$ac_ext >&5
5978 rm -f conftest.
$ac_objext conftest.
$ac_ext
5980 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5981 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5982 if test $ac_cv_c_volatile = no
; then
5984 cat >>confdefs.h
<<\_ACEOF
5990 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5992 if test "${ac_cv_c_const+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 #include "confdefs.h"
6002 /* FIXME: Include the comments suggested by Paul. */
6004 /* Ultrix mips cc rejects this. */
6005 typedef int charset[2];
6007 /* SunOS 4.1.1 cc rejects this. */
6008 char const *const *ccp;
6010 /* NEC SVR4.0.2 mips cc rejects this. */
6011 struct point {int x, y;};
6012 static struct point const zero = {0,0};
6013 /* AIX XL C 1.02.0.0 rejects this.
6014 It does not let you subtract one const X* pointer from another in
6015 an arm of an if-expression whose if-part is not a constant
6017 const char *g = "string";
6018 ccp = &g + (g ? g-g : 0);
6019 /* HPUX 7.0 cc rejects these. */
6022 ccp = (char const *const *) p;
6023 { /* SCO 3.2v4 cc rejects this. */
6025 char const *s = 0 ? (char *) 0 : (char const *) 0;
6029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6031 const int *foo = &x[0];
6034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6035 typedef const int *iptr;
6039 { /* AIX XL C 1.02.0.0 rejects this saying
6040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6041 struct s { int j; const int *ap[3]; };
6042 struct s *b; b->j = 5;
6044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6053 rm -f conftest.
$ac_objext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6055 (eval $ac_compile) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try
='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6067 echo "$as_me: failed program was:" >&5
6068 cat conftest.
$ac_ext >&5
6071 rm -f conftest.
$ac_objext conftest.
$ac_ext
6073 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6074 echo "${ECHO_T}$ac_cv_c_const" >&6
6075 if test $ac_cv_c_const = no
; then
6077 cat >>confdefs.h
<<\_ACEOF
6083 echo "$as_me:$LINENO: checking for void * support" >&5
6084 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6085 if test "${emacs_cv_void_star+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 cat >conftest.
$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6090 #include "confdefs.h"
6100 rm -f conftest.
$ac_objext
6101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102 (eval $ac_compile) 2>&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
6106 { ac_try
='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 emacs_cv_void_star
=yes
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.
$ac_ext >&5
6116 emacs_cv_void_star
=no
6118 rm -f conftest.
$ac_objext conftest.
$ac_ext
6120 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6121 echo "${ECHO_T}$emacs_cv_void_star" >&6
6122 if test $emacs_cv_void_star = yes; then
6123 cat >>confdefs.h
<<\_ACEOF
6124 #define POINTER_TYPE void
6128 cat >>confdefs.h
<<\_ACEOF
6129 #define POINTER_TYPE char
6136 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
6137 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6138 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6139 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.
make <<\_ACEOF
6144 @
echo 'ac_maketemp="${MAKE}"'
6146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6147 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6148 if test -n "$ac_maketemp"; then
6149 eval ac_cv_prog_make_
${ac_make}_set
=yes
6151 eval ac_cv_prog_make_
${ac_make}_set
=no
6155 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6156 echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6162 SET_MAKE
="MAKE=${MAKE-make}"
6166 echo "$as_me:$LINENO: checking for long file names" >&5
6167 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6168 if test "${ac_cv_sys_long_file_names+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 ac_cv_sys_long_file_names
=yes
6172 # Test for long file names in all the places we know might matter:
6173 # . the current directory, where building will happen
6174 # $prefix/lib where we will be installing things
6175 # $exec_prefix/lib likewise
6176 # eval it to expand exec_prefix.
6177 # $TMPDIR if set, where it might want to write temporary files
6178 # if $TMPDIR is not set:
6179 # /tmp where it might want to write temporary files
6182 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6185 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6187 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6188 test -d $ac_dir ||
continue
6189 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6190 ac_xdir
=$ac_dir/cf$$
6191 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6192 ac_tf1
=$ac_xdir/conftest9012345
6193 ac_tf2
=$ac_xdir/conftest9012346
6194 (echo 1 >$ac_tf1) 2>/dev
/null
6195 (echo 2 >$ac_tf2) 2>/dev
/null
6196 ac_val
=`cat $ac_tf1 2>/dev/null`
6197 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6198 ac_cv_sys_long_file_names
=no
6199 rm -rf $ac_xdir 2>/dev
/null
6202 rm -rf $ac_xdir 2>/dev
/null
6205 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6206 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6207 if test $ac_cv_sys_long_file_names = yes; then
6209 cat >>confdefs.h
<<\_ACEOF
6210 #define HAVE_LONG_FILE_NAMES 1
6216 #### Choose a window system.
6218 echo "$as_me:$LINENO: checking for X" >&5
6219 echo $ECHO_N "checking for X... $ECHO_C" >&6
6222 # Check whether --with-x or --without-x was given.
6223 if test "${with_x+set}" = set; then
6227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6228 if test "x$with_x" = xno
; then
6229 # The user explicitly disabled X.
6232 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6233 # Both variables are already set.
6236 if test "${ac_cv_have_x+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 # One or both of the vars are not set, and there is no cached value.
6240 ac_x_includes
=no ac_x_libraries
=no
6242 if mkdir conftest.dir
; then
6244 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6245 cat >Imakefile
<<'_ACEOF'
6247 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6249 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6251 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6252 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6253 for ac_extension
in a so sl
; do
6254 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6255 test -f $ac_im_libdir/libX11.
$ac_extension; then
6256 ac_im_usrlibdir
=$ac_im_libdir; break
6259 # Screen out bogus values from the imake configuration. They are
6260 # bogus both because they are the default anyway, and because
6261 # using them would break gcc on systems where it needs fixed includes.
6262 case $ac_im_incroot in
6264 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6266 case $ac_im_usrlibdir in
6268 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6275 # Standard set of common directories for X headers.
6276 # Check X11 before X11Rn because it is often a symlink to the current release.
6288 /usr/local/X11/include
6289 /usr/local/X11R6/include
6290 /usr/local/X11R5/include
6291 /usr/local/X11R4/include
6293 /usr/local/include/X11
6294 /usr/local/include/X11R6
6295 /usr/local/include/X11R5
6296 /usr/local/include/X11R4
6300 /usr/XFree86/include/X11
6304 /usr/unsupported/include
6306 /usr/local/x11r5/include
6307 /usr/lpp/Xamples/include
6309 /usr/openwin/include
6310 /usr/openwin/share/include'
6312 if test "$ac_x_includes" = no
; then
6313 # Guess where to find include files, by looking for Intrinsic.h.
6314 # First, try using that file with no special directory specified.
6315 cat >conftest.
$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 #include "confdefs.h"
6318 #include <X11/Intrinsic.h>
6320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev
/null
; then
6328 if test -s conftest.err
; then
6329 ac_cpp_err
=$ac_c_preproc_warn_flag
6336 if test -z "$ac_cpp_err"; then
6337 # We can compile using X headers with no special include directory.
6340 echo "$as_me: failed program was:" >&5
6341 cat conftest.
$ac_ext >&5
6342 for ac_dir
in $ac_x_header_dirs; do
6343 if test -r "$ac_dir/X11/Intrinsic.h"; then
6344 ac_x_includes
=$ac_dir
6349 rm -f conftest.err conftest.
$ac_ext
6350 fi # $ac_x_includes = no
6352 if test "$ac_x_libraries" = no
; then
6353 # Check for the libraries.
6354 # See if we find them without any special options.
6355 # Don't add to $LIBS permanently.
6358 cat >conftest.
$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 #include "confdefs.h"
6361 #include <X11/Intrinsic.h>
6370 rm -f conftest.
$ac_objext conftest
$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try
='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6383 # We can link X programs with no special library path.
6386 echo "$as_me: failed program was:" >&5
6387 cat conftest.
$ac_ext >&5
6389 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6391 # Don't even attempt the hair of trying to link an X program!
6392 for ac_extension
in a so sl
; do
6393 if test -r $ac_dir/libXt.
$ac_extension; then
6394 ac_x_libraries
=$ac_dir
6400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6401 fi # $ac_x_libraries = no
6403 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6404 # Didn't find X anywhere. Cache the known absence of X.
6405 ac_cv_have_x
="have_x=no"
6407 # Record where we found X for the cache.
6408 ac_cv_have_x
="have_x=yes \
6409 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6414 eval "$ac_cv_have_x"
6417 if test "$have_x" != yes; then
6418 echo "$as_me:$LINENO: result: $have_x" >&5
6419 echo "${ECHO_T}$have_x" >&6
6422 # If each of the values was on the command line, it overrides each guess.
6423 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6424 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6425 # Update the cache value to reflect the command line values.
6426 ac_cv_have_x
="have_x=yes \
6427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6428 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6429 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6432 if test "$no_x" = yes; then
6438 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6439 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6440 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6441 x_default_search_path
=""
6442 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6444 ${x_library}/X11/%L/%T/%N%C%S:\
6445 ${x_library}/X11/%l/%T/%N%C%S:\
6446 ${x_library}/X11/%T/%N%C%S:\
6447 ${x_library}/X11/%L/%T/%N%S:\
6448 ${x_library}/X11/%l/%T/%N%S:\
6449 ${x_library}/X11/%T/%N%S"
6450 if test x
"${x_default_search_path}" = x
; then
6451 x_default_search_path
=${x_search_path}
6453 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6457 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6458 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6461 if test x
"${x_includes}" = x
; then
6462 bitmapdir
=/usr
/include
/X11
/bitmaps
6464 # accumulate include directories that have X11 bitmap subdirectories
6466 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6467 if test -d "${bmd}/X11/bitmaps"; then
6468 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6470 if test -d "${bmd}/bitmaps"; then
6471 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6474 if test ${bmd_acc} != "dummyval"; then
6475 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6479 case "${window_system}" in
6483 case "${with_x_toolkit}" in
6484 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6485 motif
) USE_X_TOOLKIT
=MOTIF
;;
6487 USE_X_TOOLKIT
=none
;;
6488 no
) USE_X_TOOLKIT
=none
;;
6489 * ) USE_X_TOOLKIT
=maybe
;;
6499 ### If we're using X11, we should use the X menu package.
6502 yes ) HAVE_MENUS
=yes ;;
6505 if test "${opsys}" = "hpux9"; then
6506 case "${x_libraries}" in
6508 opsysfile
="s/hpux9-x11r4.h"
6513 if test "${opsys}" = "hpux9shr"; then
6514 case "${x_libraries}" in
6516 opsysfile
="s/hpux9shxr4.h"
6521 ### Compute the unexec source name from the object name.
6522 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6524 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6525 # Assume not, until told otherwise.
6528 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6529 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6530 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.
$ac_ext <<_ACEOF
6534 #line $LINENO "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char malloc_get_state (); below. */
6539 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6545 char malloc_get_state ();
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6557 f = malloc_get_state;
6564 rm -f conftest.
$ac_objext conftest
$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try
='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_func_malloc_get_state
=yes
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6580 ac_cv_func_malloc_get_state
=no
6582 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6585 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6586 if test $ac_cv_func_malloc_get_state = yes; then
6592 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6593 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6594 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 cat >conftest.
$ac_ext <<_ACEOF
6598 #line $LINENO "configure"
6599 #include "confdefs.h"
6600 /* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char malloc_set_state (); below. */
6603 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6609 char malloc_set_state ();
6615 /* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6621 f = malloc_set_state;
6628 rm -f conftest.
$ac_objext conftest
$ac_exeext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6630 (eval $ac_link) 2>&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try
='test -s conftest$ac_exeext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_func_malloc_set_state
=yes
6642 echo "$as_me: failed program was:" >&5
6643 cat conftest.
$ac_ext >&5
6644 ac_cv_func_malloc_set_state
=no
6646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6649 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6650 if test $ac_cv_func_malloc_set_state = yes; then
6656 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6657 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6658 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 cat >conftest.
$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 extern void (* __after_morecore_hook)();
6668 __after_morecore_hook = 0
6673 rm -f conftest.
$ac_objext conftest
$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try
='test -s conftest$ac_exeext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 emacs_cv_var___after_morecore_hook
=yes
6687 echo "$as_me: failed program was:" >&5
6688 cat conftest.
$ac_ext >&5
6689 emacs_cv_var___after_morecore_hook
=no
6691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6693 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6694 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6695 if test $emacs_cv_var___after_morecore_hook = no
; then
6698 if test "${system_malloc}" = "yes"; then
6701 (The GNU allocators don't work with this system configuration.)"
6703 if test "$doug_lea_malloc" = "yes" ; then
6704 if test "$GNU_MALLOC" = yes ; then
6706 (Using Doug Lea's new malloc from the GNU C Library.)"
6709 cat >>confdefs.h
<<\_ACEOF
6710 #define DOUG_LEA_MALLOC 1
6715 if test x
"${REL_ALLOC}" = x
; then
6716 REL_ALLOC
=${GNU_MALLOC}
6722 for ac_header
in stdlib.h unistd.h
6724 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726 echo "$as_me:$LINENO: checking for $ac_header" >&5
6727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6734 # Is the header compilable?
6735 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6737 cat >conftest.
$ac_ext <<_ACEOF
6738 #line $LINENO "configure"
6739 #include "confdefs.h"
6740 $ac_includes_default
6741 #include <$ac_header>
6743 rm -f conftest.
$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try
='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_header_compiler
=yes
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.
$ac_ext >&5
6759 ac_header_compiler
=no
6761 rm -f conftest.
$ac_objext conftest.
$ac_ext
6762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6763 echo "${ECHO_T}$ac_header_compiler" >&6
6765 # Is the header present?
6766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 #include <$ac_header>
6773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6774 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6776 grep -v '^ *+' conftest.er1
>conftest.err
6778 cat conftest.err
>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } >/dev
/null
; then
6781 if test -s conftest.err
; then
6782 ac_cpp_err
=$ac_c_preproc_warn_flag
6789 if test -z "$ac_cpp_err"; then
6790 ac_header_preproc
=yes
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.
$ac_ext >&5
6794 ac_header_preproc
=no
6796 rm -f conftest.err conftest.
$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798 echo "${ECHO_T}$ac_header_preproc" >&6
6800 # So? What about this header?
6801 case $ac_header_compiler:$ac_header_preproc in
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6815 echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 eval "$as_ac_Header=$ac_header_preproc"
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6827 cat >>confdefs.h
<<_ACEOF
6828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 for ac_func
in getpagesize
6838 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6839 echo "$as_me:$LINENO: checking for $ac_func" >&5
6840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6841 if eval "test \"\${$as_ac_var+set}\" = set"; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 cat >conftest.
$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func (); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6875 rm -f conftest.
$ac_objext conftest
$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try
='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 eval "$as_ac_var=yes"
6889 echo "$as_me: failed program was:" >&5
6890 cat conftest.
$ac_ext >&5
6891 eval "$as_ac_var=no"
6893 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6897 if test `eval echo '${'$as_ac_var'}'` = yes; then
6898 cat >>confdefs.h
<<_ACEOF
6899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6905 echo "$as_me:$LINENO: checking for working mmap" >&5
6906 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6907 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 if test "$cross_compiling" = yes; then
6911 ac_cv_func_mmap_fixed_mapped
=no
6913 cat >conftest.
$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 #include "confdefs.h"
6916 $ac_includes_default
6917 /* malloc might have been renamed as rpl_malloc. */
6920 /* Thanks to Mike Haertel and Jim Avera for this test.
6921 Here is a matrix of mmap possibilities:
6922 mmap private not fixed
6923 mmap private fixed at somewhere currently unmapped
6924 mmap private fixed at somewhere already mapped
6925 mmap shared not fixed
6926 mmap shared fixed at somewhere currently unmapped
6927 mmap shared fixed at somewhere already mapped
6928 For private mappings, we should verify that changes cannot be read()
6929 back from the file, nor mmap's back from the file at a different
6930 address. (There have been systems where private was not correctly
6931 implemented like the infamous i386 svr4.0, and systems where the
6932 VM page cache was not coherent with the file system buffer cache
6933 like early versions of FreeBSD and possibly contemporary NetBSD.)
6934 For shared mappings, we should conversely verify that changes get
6935 propagated back to all the places they're supposed to be.
6937 Grep wants private fixed already mapped.
6938 The main things grep needs to know about mmap are:
6939 * does it exist and is it safe to write into the mmap'd area
6940 * how to use it (BSD variants) */
6943 #include <sys/mman.h>
6945 #if !STDC_HEADERS && !HAVE_STDLIB_H
6949 /* This mess was copied from the GNU getpagesize.h. */
6950 #if !HAVE_GETPAGESIZE
6951 /* Assume that all systems that can run configure have sys/param.h. */
6952 # if !HAVE_SYS_PARAM_H
6953 # define HAVE_SYS_PARAM_H 1
6956 # ifdef _SC_PAGESIZE
6957 # define getpagesize() sysconf(_SC_PAGESIZE)
6958 # else /* no _SC_PAGESIZE */
6959 # if HAVE_SYS_PARAM_H
6960 # include <sys/param.h>
6961 # ifdef EXEC_PAGESIZE
6962 # define getpagesize() EXEC_PAGESIZE
6963 # else /* no EXEC_PAGESIZE */
6965 # define getpagesize() NBPG * CLSIZE
6968 # endif /* no CLSIZE */
6969 # else /* no NBPG */
6971 # define getpagesize() NBPC
6972 # else /* no NBPC */
6974 # define getpagesize() PAGESIZE
6975 # endif /* PAGESIZE */
6976 # endif /* no NBPC */
6977 # endif /* no NBPG */
6978 # endif /* no EXEC_PAGESIZE */
6979 # else /* no HAVE_SYS_PARAM_H */
6980 # define getpagesize() 8192 /* punt totally */
6981 # endif /* no HAVE_SYS_PARAM_H */
6982 # endif /* no _SC_PAGESIZE */
6984 #endif /* no HAVE_GETPAGESIZE */
6989 char *data, *data2, *data3;
6993 pagesize = getpagesize ();
6995 /* First, make a file with some known garbage in it. */
6996 data = (char *) malloc (pagesize);
6999 for (i = 0; i < pagesize; ++i)
7000 *(data + i) = rand ();
7002 fd = creat ("conftest.mmap", 0600);
7005 if (write (fd, data, pagesize) != pagesize)
7009 /* Next, try to mmap the file at a fixed address which already has
7010 something else allocated at it. If we can, also make sure that
7011 we see the same garbage. */
7012 fd = open ("conftest.mmap", O_RDWR);
7015 data2 = (char *) malloc (2 * pagesize);
7018 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7019 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7020 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7022 for (i = 0; i < pagesize; ++i)
7023 if (*(data + i) != *(data2 + i))
7026 /* Finally, make sure that changes to the mapped area do not
7027 percolate back to the file as seen by read(). (This is a bug on
7028 some variants of i386 svr4.0.) */
7029 for (i = 0; i < pagesize; ++i)
7030 *(data2 + i) = *(data2 + i) + 1;
7031 data3 = (char *) malloc (pagesize);
7034 if (read (fd, data3, pagesize) != pagesize)
7036 for (i = 0; i < pagesize; ++i)
7037 if (*(data + i) != *(data3 + i))
7043 rm -f conftest
$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_func_mmap_fixed_mapped
=yes
7056 echo "$as_me: program exited with status $ac_status" >&5
7057 echo "$as_me: failed program was:" >&5
7058 cat conftest.
$ac_ext >&5
7060 ac_cv_func_mmap_fixed_mapped
=no
7062 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7065 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7066 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7067 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7069 cat >>confdefs.h
<<\_ACEOF
7076 if test $use_mmap_for_buffers = yes; then
7080 LIBS
="$libsrc_libs $LIBS"
7083 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7084 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7085 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 ac_check_lib_save_LIBS
=$LIBS
7090 cat >conftest.
$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7094 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7109 rm -f conftest.
$ac_objext conftest
$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try
='test -s conftest$ac_exeext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_lib_dnet_dnet_ntoa
=yes
7123 echo "$as_me: failed program was:" >&5
7124 cat conftest.
$ac_ext >&5
7125 ac_cv_lib_dnet_dnet_ntoa
=no
7127 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7128 LIBS
=$ac_check_lib_save_LIBS
7130 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7131 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7132 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7133 cat >>confdefs.h
<<_ACEOF
7134 #define HAVE_LIBDNET 1
7142 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7143 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7144 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 ac_check_lib_save_LIBS
=$LIBS
7149 cat >conftest.
$ac_ext <<_ACEOF
7150 #line $LINENO "configure"
7151 #include "confdefs.h"
7162 rm -f conftest.
$ac_objext conftest
$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try
='test -s conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_lib_Xbsd_main
=yes
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.
$ac_ext >&5
7178 ac_cv_lib_Xbsd_main
=no
7180 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7181 LIBS
=$ac_check_lib_save_LIBS
7183 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7184 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7185 if test $ac_cv_lib_Xbsd_main = yes; then
7186 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7191 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7192 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7193 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 ac_check_lib_save_LIBS
=$LIBS
7197 LIBS
="-lpthreads $LIBS"
7198 cat >conftest.
$ac_ext <<_ACEOF
7199 #line $LINENO "configure"
7200 #include "confdefs.h"
7202 /* Override any gcc2 internal prototype to avoid an error. */
7206 /* We use char because int might match the return type of a gcc2
7207 builtin and then its argument prototype would still apply. */
7217 rm -f conftest.
$ac_objext conftest
$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219 (eval $ac_link) 2>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try
='test -s conftest$ac_exeext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_cv_lib_pthreads_cma_open
=yes
7231 echo "$as_me: failed program was:" >&5
7232 cat conftest.
$ac_ext >&5
7233 ac_cv_lib_pthreads_cma_open
=no
7235 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7236 LIBS
=$ac_check_lib_save_LIBS
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7239 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7240 if test $ac_cv_lib_pthreads_cma_open = yes; then
7241 cat >>confdefs.h
<<_ACEOF
7242 #define HAVE_LIBPTHREADS 1
7245 LIBS
="-lpthreads $LIBS"
7250 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7251 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7252 if test -d /usr
/X386
/include
; then
7254 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7258 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7259 echo "${ECHO_T}$HAVE_XFREE386" >&6
7264 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7265 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7266 if test "${gdb_cv_bigtoc+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
7272 *) gdb_cv_bigtoc
=-bbigtoc ;;
7275 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
7276 cat >conftest.
$ac_ext <<_ACEOF
7277 #line $LINENO "configure"
7278 #include "confdefs.h"
7288 rm -f conftest.
$ac_objext conftest
$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try
='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.
$ac_ext >&5
7306 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7309 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7310 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7314 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7315 # used for the tests that follow. We set them back to REAL_CFLAGS and
7316 # REAL_CPPFLAGS later on.
7318 REAL_CPPFLAGS
="$CPPFLAGS"
7320 if test "${HAVE_X11}" = "yes"; then
7321 DEFS
="$C_SWITCH_X_SITE $DEFS"
7322 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7324 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7325 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7327 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7328 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7329 # but it's more convenient here to set LD_RUN_PATH
7330 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7331 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7332 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7336 if test "${opsys}" = "gnu-linux"; then
7337 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7338 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7339 cat >conftest.
$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7346 XOpenDisplay ("foo");
7351 rm -f conftest.
$ac_objext conftest
$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try
='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 xlinux_first_failure
=no
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.
$ac_ext >&5
7367 xlinux_first_failure
=yes
7369 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7370 if test "${xlinux_first_failure}" = "yes"; then
7371 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7372 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7373 OLD_CPPFLAGS
="$CPPFLAGS"
7375 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7376 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7377 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7378 LIBS
="$LIBS -b i486-linuxaout"
7379 cat >conftest.
$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 #include "confdefs.h"
7386 XOpenDisplay ("foo");
7391 rm -f conftest.
$ac_objext conftest
$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } &&
7397 { ac_try
='test -s conftest$ac_exeext'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; }; then
7403 xlinux_second_failure
=no
7405 echo "$as_me: failed program was:" >&5
7406 cat conftest.
$ac_ext >&5
7407 xlinux_second_failure
=yes
7409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7410 if test "${xlinux_second_failure}" = "yes"; then
7411 # If we get the same failure with -b, there is no use adding -b.
7412 # So take it out. This plays safe.
7413 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7414 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7415 CPPFLAGS
="$OLD_CPPFLAGS"
7417 echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7420 echo "$as_me:$LINENO: result: yes" >&5
7421 echo "${ECHO_T}yes" >&6
7424 echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6
7429 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7430 # header files included from there.
7431 echo "$as_me:$LINENO: checking for Xkb" >&5
7432 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7433 cat >conftest.
$ac_ext <<_ACEOF
7434 #line $LINENO "configure"
7435 #include "confdefs.h"
7436 #include <X11/Xlib.h>
7437 #include <X11/XKBlib.h>
7441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448 (eval $ac_link) 2>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try
='test -s conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7460 echo "$as_me: failed program was:" >&5
7461 cat conftest.
$ac_ext >&5
7464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7465 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7466 echo "${ECHO_T}$emacs_xkb" >&6
7467 if test $emacs_xkb = yes; then
7469 cat >>confdefs.h
<<\_ACEOF
7470 #define HAVE_XKBGETKEYBOARD 1
7479 for ac_func
in XrmSetDatabase XScreenResourceString \
7480 XScreenNumberOfScreen XSetWMProtocols
7482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:$LINENO: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.
$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char $ac_func (); below. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7519 rm -f conftest.
$ac_objext conftest
$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try
='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 eval "$as_ac_var=yes"
7533 echo "$as_me: failed program was:" >&5
7534 cat conftest.
$ac_ext >&5
7535 eval "$as_ac_var=no"
7537 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h
<<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7551 if test "${window_system}" = "x11"; then
7552 echo "$as_me:$LINENO: checking X11 version 6" >&5
7553 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7554 if test "${emacs_cv_x11_version_6+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 cat >conftest.
$ac_ext <<_ACEOF
7558 #line $LINENO "configure"
7559 #include "confdefs.h"
7560 #include <X11/Xlib.h>
7564 #if XlibSpecificationRelease < 6
7572 rm -f conftest.
$ac_objext conftest
$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574 (eval $ac_link) 2>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try
='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 emacs_cv_x11_version_6
=yes
7586 echo "$as_me: failed program was:" >&5
7587 cat conftest.
$ac_ext >&5
7588 emacs_cv_x11_version_6
=no
7590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7593 if test $emacs_cv_x11_version_6 = yes; then
7594 echo "$as_me:$LINENO: result: 6 or newer" >&5
7595 echo "${ECHO_T}6 or newer" >&6
7597 cat >>confdefs.h
<<\_ACEOF
7598 #define HAVE_X11R6 1
7602 echo "$as_me:$LINENO: result: before 6" >&5
7603 echo "${ECHO_T}before 6" >&6
7607 if test "${window_system}" = "x11"; then
7608 echo "$as_me:$LINENO: checking X11 version 5" >&5
7609 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7610 if test "${emacs_cv_x11_version_5+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 cat >conftest.
$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 #include "confdefs.h"
7616 #include <X11/Xlib.h>
7620 #if XlibSpecificationRelease < 5
7628 rm -f conftest.
$ac_objext conftest
$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try
='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 emacs_cv_x11_version_5
=yes
7642 echo "$as_me: failed program was:" >&5
7643 cat conftest.
$ac_ext >&5
7644 emacs_cv_x11_version_5
=no
7646 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7649 if test $emacs_cv_x11_version_5 = yes; then
7650 echo "$as_me:$LINENO: result: 5 or newer" >&5
7651 echo "${ECHO_T}5 or newer" >&6
7654 cat >>confdefs.h
<<\_ACEOF
7655 #define HAVE_X11R5 1
7660 echo "$as_me:$LINENO: result: before 5" >&5
7661 echo "${ECHO_T}before 5" >&6
7668 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
7669 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
7670 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
7671 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
7672 { (exit 1); exit 1; }; };
7676 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
7678 if test "X${with_pkg_config_prog}" != X
; then
7679 PKG_CONFIG
="${with_pkg_config_prog}"
7684 if test -z "$PKG_CONFIG"; then
7685 # Extract the first word of "pkg-config", so it can be a program name with args.
7686 set dummy pkg-config
; ac_word
=$2
7687 echo "$as_me:$LINENO: checking for $ac_word" >&5
7688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7701 test -z "$as_dir" && as_dir
=.
7702 for ac_exec_ext
in '' $ac_executable_extensions; do
7703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
7715 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7717 if test -n "$PKG_CONFIG"; then
7718 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7719 echo "${ECHO_T}$PKG_CONFIG" >&6
7721 echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6
7727 if test "$PKG_CONFIG" = "no" ; then
7728 echo "*** The pkg-config script could not be found. Make sure it is"
7729 echo "*** in your path, or give the full path to pkg-config with"
7730 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
7731 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7733 PKG_CONFIG_MIN_VERSION
=0.9.0
7734 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7735 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
7736 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
7738 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740 echo "${ECHO_T}yes" >&6
7743 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
7744 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
7745 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
7746 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
7747 echo "${ECHO_T}$GTK_CFLAGS" >&6
7749 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
7750 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
7751 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
7752 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
7753 echo "${ECHO_T}$GTK_LIBS" >&6
7757 ## If we have a custom action on failure, don't print errors, but
7758 ## do set a variable so people can do so.
7759 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
7760 echo $GTK_PKG_ERRORS
7766 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7767 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7771 if test $succeeded = yes; then
7774 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7775 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7776 { (exit 1); exit 1; }; }
7781 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
7784 cat >>confdefs.h
<<\_ACEOF
7790 with_toolkit_scroll_bars
=yes
7793 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7794 if test x
"${HAVE_X11R5}" = xyes
; then
7795 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7796 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7797 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 cat >conftest.
$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7804 #include <X11/Intrinsic.h>
7805 #include <X11/Xaw/Simple.h>
7814 rm -f conftest.
$ac_objext conftest
$ac_exeext
7815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try
='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 emacs_cv_x11_version_5_with_xaw
=yes
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.
$ac_ext >&5
7830 emacs_cv_x11_version_5_with_xaw
=no
7832 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7835 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7836 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7837 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7840 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7841 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7849 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7851 if test "${USE_X_TOOLKIT}" != "none"; then
7852 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7853 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7854 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.
$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 #include "confdefs.h"
7860 #include <X11/Intrinsic.h>
7864 #if XtSpecificationRelease < 6
7872 rm -f conftest.
$ac_objext conftest
$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try
='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 emacs_cv_x11_toolkit_version_6
=yes
7886 echo "$as_me: failed program was:" >&5
7887 cat conftest.
$ac_ext >&5
7888 emacs_cv_x11_toolkit_version_6
=no
7890 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7893 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7894 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7895 echo "$as_me:$LINENO: result: 6 or newer" >&5
7896 echo "${ECHO_T}6 or newer" >&6
7898 cat >>confdefs.h
<<\_ACEOF
7899 #define HAVE_X11XTR6 1
7903 echo "$as_me:$LINENO: result: before 6" >&5
7904 echo "${ECHO_T}before 6" >&6
7908 if test x
$HAVE_X11XTR6 = xyes
; then
7909 LIBS
="-lXt -lSM -lICE $LIBS"
7914 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7915 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7916 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 ac_check_lib_save_LIBS
=$LIBS
7921 cat >conftest.
$ac_ext <<_ACEOF
7922 #line $LINENO "configure"
7923 #include "confdefs.h"
7925 /* Override any gcc2 internal prototype to avoid an error. */
7929 /* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931 char XmuConvertStandardSelection ();
7935 XmuConvertStandardSelection ();
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try
='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7954 echo "$as_me: failed program was:" >&5
7955 cat conftest.
$ac_ext >&5
7956 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7959 LIBS
=$ac_check_lib_save_LIBS
7961 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7962 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7963 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7964 cat >>confdefs.h
<<_ACEOF
7965 #define HAVE_LIBXMU 1
7972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7975 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7976 if test "${HAVE_X11}" = "yes"; then
7977 if test "${USE_X_TOOLKIT}" != "none"; then
7979 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7980 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7981 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 ac_check_lib_save_LIBS
=$LIBS
7986 cat >conftest.
$ac_ext <<_ACEOF
7987 #line $LINENO "configure"
7988 #include "confdefs.h"
7990 /* Override any gcc2 internal prototype to avoid an error. */
7994 /* We use char because int might match the return type of a gcc2
7995 builtin and then its argument prototype would still apply. */
7996 char XShapeQueryExtension ();
8000 XShapeQueryExtension ();
8005 rm -f conftest.
$ac_objext conftest
$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try
='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8019 echo "$as_me: failed program was:" >&5
8020 cat conftest.
$ac_ext >&5
8021 ac_cv_lib_Xext_XShapeQueryExtension
=no
8023 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8024 LIBS
=$ac_check_lib_save_LIBS
8026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8027 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8028 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8029 cat >>confdefs.h
<<_ACEOF
8030 #define HAVE_LIBXEXT 1
8040 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8041 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8042 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8043 if test "${emacs_cv_lesstif+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 # We put this in CFLAGS temporarily to precede other -I options
8047 # that might be in CFLAGS temporarily.
8048 # We put this in CPPFLAGS where it precedes the other -I options.
8049 OLD_CPPFLAGS
=$CPPFLAGS
8051 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8052 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8053 cat >conftest.
$ac_ext <<_ACEOF
8054 #line $LINENO "configure"
8055 #include "confdefs.h"
8056 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8065 rm -f conftest.
$ac_objext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8067 (eval $ac_compile) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try
='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 emacs_cv_lesstif
=yes
8079 echo "$as_me: failed program was:" >&5
8080 cat conftest.
$ac_ext >&5
8083 rm -f conftest.
$ac_objext conftest.
$ac_ext
8085 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8086 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8087 if test $emacs_cv_lesstif = yes; then
8088 # Make sure this -I option remains in CPPFLAGS after it is set
8089 # back to REAL_CPPFLAGS.
8090 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8091 # have those other -I options anyway. Ultimately, having this
8092 # directory ultimately in CPPFLAGS will be enough.
8093 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8094 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8097 CPPFLAGS
=$OLD_CPPFLAGS
8099 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8100 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8101 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 cat >conftest.
$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8106 #include "confdefs.h"
8111 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8114 Motif version prior to 2.1.
8120 rm -f conftest.
$ac_objext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8122 (eval $ac_compile) 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try
='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 emacs_cv_motif_version_2_1
=yes
8134 echo "$as_me: failed program was:" >&5
8135 cat conftest.
$ac_ext >&5
8136 emacs_cv_motif_version_2_1
=no
8138 rm -f conftest.
$ac_objext conftest.
$ac_ext
8140 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8141 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8142 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8143 if test $emacs_cv_motif_version_2_1 = yes; then
8146 cat >>confdefs.h
<<\_ACEOF
8147 #define HAVE_MOTIF_2_1 1
8150 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8151 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8152 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 ac_check_lib_save_LIBS
=$LIBS
8157 cat >conftest.
$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8161 /* Override any gcc2 internal prototype to avoid an error. */
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167 char XpCreateContext ();
8176 rm -f conftest.
$ac_objext conftest
$ac_exeext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178 (eval $ac_link) 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try
='test -s conftest$ac_exeext'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
8188 ac_cv_lib_Xp_XpCreateContext
=yes
8190 echo "$as_me: failed program was:" >&5
8191 cat conftest.
$ac_ext >&5
8192 ac_cv_lib_Xp_XpCreateContext
=no
8194 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8195 LIBS
=$ac_check_lib_save_LIBS
8197 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8198 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8199 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8203 if test ${HAVE_LIBXP} = yes; then
8205 cat >>confdefs.h
<<\_ACEOF
8206 #define HAVE_LIBXP 1
8213 ### Is -lXaw3d available?
8215 if test "${HAVE_X11}" = "yes"; then
8216 if test "${USE_X_TOOLKIT}" != "none"; then
8217 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8218 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8219 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 cat >conftest.
$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8225 #include <X11/Xaw3d/Scrollbar.h>
8227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8230 grep -v '^ *+' conftest.er1
>conftest.err
8232 cat conftest.err
>&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } >/dev
/null
; then
8235 if test -s conftest.err
; then
8236 ac_cpp_err
=$ac_c_preproc_warn_flag
8243 if test -z "$ac_cpp_err"; then
8244 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8246 echo "$as_me: failed program was:" >&5
8247 cat conftest.
$ac_ext >&5
8248 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8250 rm -f conftest.err conftest.
$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8253 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8254 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8255 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8256 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8257 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 ac_check_lib_save_LIBS
=$LIBS
8261 LIBS
="-lXaw3d $LIBS"
8262 cat >conftest.
$ac_ext <<_ACEOF
8263 #line $LINENO "configure"
8264 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272 char XawScrollbarSetThumb ();
8276 XawScrollbarSetThumb ();
8281 rm -f conftest.
$ac_objext conftest
$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try
='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8295 echo "$as_me: failed program was:" >&5
8296 cat conftest.
$ac_ext >&5
8297 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8299 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8300 LIBS
=$ac_check_lib_save_LIBS
8302 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8303 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8304 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8311 if test "${HAVE_XAW3D}" = "yes"; then
8313 cat >>confdefs.h
<<\_ACEOF
8314 #define HAVE_XAW3D 1
8323 USE_TOOLKIT_SCROLL_BARS
=no
8324 if test "${with_toolkit_scroll_bars}" != "no"; then
8325 if test "${USE_X_TOOLKIT}" != "none"; then
8326 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8327 cat >>confdefs.h
<<\_ACEOF
8328 #define USE_TOOLKIT_SCROLL_BARS 1
8332 USE_TOOLKIT_SCROLL_BARS
=yes
8333 elif test "${HAVE_XAW3D}" = "yes"; then
8334 cat >>confdefs.h
<<\_ACEOF
8335 #define USE_TOOLKIT_SCROLL_BARS 1
8338 USE_TOOLKIT_SCROLL_BARS
=yes
8340 elif test "${HAVE_GTK}" = "yes"; then
8341 cat >>confdefs.h
<<\_ACEOF
8342 #define USE_TOOLKIT_SCROLL_BARS 1
8345 USE_TOOLKIT_SCROLL_BARS
=yes
8350 if test "${with_xim}" != "no"; then
8352 cat >>confdefs.h
<<\_ACEOF
8357 if test "$GCC" = yes; then
8358 CFLAGS
="$CFLAGS --pedantic-errors"
8361 if test "${HAVE_X11}" = "yes"; then
8362 cat >conftest.
$ac_ext <<_ACEOF
8363 #line $LINENO "configure"
8364 #include "confdefs.h"
8366 #include <X11/Xlib.h>
8367 #include <X11/Xresource.h>
8376 XPointer *client_data;
8378 /* If we're not using GCC, it's probably not XFree86, and this is
8379 probably right, but we can't use something like --pedantic-errors. */
8380 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8381 char*, XIMProc, XPointer*);
8383 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8389 rm -f conftest.
$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try
='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 emacs_cv_arg6_star
=yes
8403 echo "$as_me: failed program was:" >&5
8404 cat conftest.
$ac_ext >&5
8406 rm -f conftest.
$ac_objext conftest.
$ac_ext
8408 if test "$emacs_cv_arg6_star" = yes; then
8409 cat >>confdefs.h
<<\_ACEOF
8410 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8414 cat >>confdefs.h
<<\_ACEOF
8415 #define XRegisterIMInstantiateCallback_arg6 XPointer
8422 ### Use -lXpm if available, unless `--with-xpm=no'.
8424 if test "${HAVE_X11}" = "yes"; then
8425 if test "${with_xpm}" != "no"; then
8426 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8427 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8428 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8429 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8433 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8435 # Is the header compilable?
8436 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8437 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8438 cat >conftest.
$ac_ext <<_ACEOF
8439 #line $LINENO "configure"
8440 #include "confdefs.h"
8441 $ac_includes_default
8442 #include <X11/xpm.h>
8444 rm -f conftest.
$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try
='test -s conftest.$ac_objext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_header_compiler
=yes
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.
$ac_ext >&5
8460 ac_header_compiler
=no
8462 rm -f conftest.
$ac_objext conftest.
$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8464 echo "${ECHO_T}$ac_header_compiler" >&6
8466 # Is the header present?
8467 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8468 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8469 cat >conftest.
$ac_ext <<_ACEOF
8470 #line $LINENO "configure"
8471 #include "confdefs.h"
8472 #include <X11/xpm.h>
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1
>conftest.err
8479 cat conftest.err
>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev
/null
; then
8482 if test -s conftest.err
; then
8483 ac_cpp_err
=$ac_c_preproc_warn_flag
8490 if test -z "$ac_cpp_err"; then
8491 ac_header_preproc
=yes
8493 echo "$as_me: failed program was:" >&5
8494 cat conftest.
$ac_ext >&5
8495 ac_header_preproc
=no
8497 rm -f conftest.err conftest.
$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8499 echo "${ECHO_T}$ac_header_preproc" >&6
8501 # So? What about this header?
8502 case $ac_header_compiler:$ac_header_preproc in
8504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8505 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8507 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8509 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8510 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8512 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8514 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8516 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8517 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8518 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8523 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8524 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8527 if test $ac_cv_header_X11_xpm_h = yes; then
8528 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8529 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8530 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 ac_check_lib_save_LIBS
=$LIBS
8534 LIBS
="-lXpm -lX11 $LIBS"
8535 cat >conftest.
$ac_ext <<_ACEOF
8536 #line $LINENO "configure"
8537 #include "confdefs.h"
8539 /* Override any gcc2 internal prototype to avoid an error. */
8543 /* We use char because int might match the return type of a gcc2
8544 builtin and then its argument prototype would still apply. */
8545 char XpmReadFileToPixmap ();
8549 XpmReadFileToPixmap ();
8554 rm -f conftest.
$ac_objext conftest
$ac_exeext
8555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8556 (eval $ac_link) 2>&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try
='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8568 echo "$as_me: failed program was:" >&5
8569 cat conftest.
$ac_ext >&5
8570 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8572 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8573 LIBS
=$ac_check_lib_save_LIBS
8575 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8576 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8577 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8584 if test "${HAVE_XPM}" = "yes"; then
8585 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8586 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8587 cat >conftest.
$ac_ext <<_ACEOF
8588 #line $LINENO "configure"
8589 #include "confdefs.h"
8590 #include "X11/xpm.h"
8591 #ifndef XpmReturnAllocPixels
8592 no_return_alloc_pixels
8596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8597 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8605 if test "${HAVE_XPM}" = "yes"; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607 echo "${ECHO_T}yes" >&6
8609 echo "$as_me:$LINENO: result: no" >&5
8610 echo "${ECHO_T}no" >&6
8615 if test "${HAVE_XPM}" = "yes"; then
8617 cat >>confdefs.h
<<\_ACEOF
8624 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8626 if test "${HAVE_X11}" = "yes"; then
8627 if test "${with_jpeg}" != "no"; then
8628 if test "${ac_cv_header_jerror_h+set}" = set; then
8629 echo "$as_me:$LINENO: checking for jerror.h" >&5
8630 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8631 if test "${ac_cv_header_jerror_h+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8635 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8637 # Is the header compilable?
8638 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8639 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8640 cat >conftest.
$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 #include "confdefs.h"
8643 $ac_includes_default
8646 rm -f conftest.
$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try
='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler
=yes
8660 echo "$as_me: failed program was:" >&5
8661 cat conftest.
$ac_ext >&5
8662 ac_header_compiler
=no
8664 rm -f conftest.
$ac_objext conftest.
$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8670 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8671 cat >conftest.
$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 #include "confdefs.h"
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev
/null
; then
8684 if test -s conftest.err
; then
8685 ac_cpp_err
=$ac_c_preproc_warn_flag
8692 if test -z "$ac_cpp_err"; then
8693 ac_header_preproc
=yes
8695 echo "$as_me: failed program was:" >&5
8696 cat conftest.
$ac_ext >&5
8697 ac_header_preproc
=no
8699 rm -f conftest.err conftest.
$ac_ext
8700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701 echo "${ECHO_T}$ac_header_preproc" >&6
8703 # So? What about this header?
8704 case $ac_header_compiler:$ac_header_preproc in
8706 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8707 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8709 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8711 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8712 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8714 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8716 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8718 echo "$as_me:$LINENO: checking for jerror.h" >&5
8719 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8720 if test "${ac_cv_header_jerror_h+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 ac_cv_header_jerror_h
=$ac_header_preproc
8725 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8729 if test $ac_cv_header_jerror_h = yes; then
8730 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8731 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8732 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 ac_check_lib_save_LIBS
=$LIBS
8737 cat >conftest.
$ac_ext <<_ACEOF
8738 #line $LINENO "configure"
8739 #include "confdefs.h"
8741 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8747 char jpeg_destroy_compress ();
8751 jpeg_destroy_compress ();
8756 rm -f conftest.
$ac_objext conftest
$ac_exeext
8757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8758 (eval $ac_link) 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try
='test -s conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8770 echo "$as_me: failed program was:" >&5
8771 cat conftest.
$ac_ext >&5
8772 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8775 LIBS
=$ac_check_lib_save_LIBS
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8778 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8779 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8789 if test "${HAVE_JPEG}" = "yes"; then
8790 cat >>confdefs.h
<<\_ACEOF
8794 cat >conftest.
$ac_ext <<_ACEOF
8795 #line $LINENO "configure"
8796 #include "confdefs.h"
8797 #include <jpeglib.h>
8798 version=JPEG_LIB_VERSION
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8803 cat >>confdefs.h
<<\_ACEOF
8808 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8809 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8817 ### Use -lpng if available, unless `--with-png=no'.
8819 if test "${HAVE_X11}" = "yes"; then
8820 if test "${with_png}" != "no"; then
8821 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
8822 # in /usr/include/libpng.
8825 for ac_header
in png.h libpng
/png.h
8827 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829 echo "$as_me:$LINENO: checking for $ac_header" >&5
8830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837 # Is the header compilable?
8838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8840 cat >conftest.
$ac_ext <<_ACEOF
8841 #line $LINENO "configure"
8842 #include "confdefs.h"
8843 $ac_includes_default
8844 #include <$ac_header>
8846 rm -f conftest.
$ac_objext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8848 (eval $ac_compile) 2>&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try
='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_header_compiler
=yes
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.
$ac_ext >&5
8862 ac_header_compiler
=no
8864 rm -f conftest.
$ac_objext conftest.
$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866 echo "${ECHO_T}$ac_header_compiler" >&6
8868 # Is the header present?
8869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8871 cat >conftest.
$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8873 #include "confdefs.h"
8874 #include <$ac_header>
8876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8879 grep -v '^ *+' conftest.er1
>conftest.err
8881 cat conftest.err
>&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } >/dev
/null
; then
8884 if test -s conftest.err
; then
8885 ac_cpp_err
=$ac_c_preproc_warn_flag
8892 if test -z "$ac_cpp_err"; then
8893 ac_header_preproc
=yes
8895 echo "$as_me: failed program was:" >&5
8896 cat conftest.
$ac_ext >&5
8897 ac_header_preproc
=no
8899 rm -f conftest.err conftest.
$ac_ext
8900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8901 echo "${ECHO_T}$ac_header_preproc" >&6
8903 # So? What about this header?
8904 case $ac_header_compiler:$ac_header_preproc in
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 eval "$as_ac_Header=$ac_header_preproc"
8925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8930 cat >>confdefs.h
<<_ACEOF
8931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8938 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
8939 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8940 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8941 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_check_lib_save_LIBS
=$LIBS
8945 LIBS
="-lpng -lz -lm $LIBS"
8946 cat >conftest.
$ac_ext <<_ACEOF
8947 #line $LINENO "configure"
8948 #include "confdefs.h"
8950 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char png_get_channels ();
8960 png_get_channels ();
8965 rm -f conftest.
$ac_objext conftest
$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try
='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_png_png_get_channels
=yes
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.
$ac_ext >&5
8981 ac_cv_lib_png_png_get_channels
=no
8983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8984 LIBS
=$ac_check_lib_save_LIBS
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8987 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8988 if test $ac_cv_lib_png_png_get_channels = yes; then
8995 if test "${HAVE_PNG}" = "yes"; then
8997 cat >>confdefs.h
<<\_ACEOF
9004 ### Use -ltiff if available, unless `--with-tiff=no'.
9006 if test "${HAVE_X11}" = "yes"; then
9007 if test "${with_tiff}" != "no"; then
9008 if test "${ac_cv_header_tiffio_h+set}" = set; then
9009 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9010 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9011 if test "${ac_cv_header_tiffio_h+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9015 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9017 # Is the header compilable?
9018 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9019 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9020 cat >conftest.
$ac_ext <<_ACEOF
9021 #line $LINENO "configure"
9022 #include "confdefs.h"
9023 $ac_includes_default
9026 rm -f conftest.
$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try
='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_header_compiler
=yes
9040 echo "$as_me: failed program was:" >&5
9041 cat conftest.
$ac_ext >&5
9042 ac_header_compiler
=no
9044 rm -f conftest.
$ac_objext conftest.
$ac_ext
9045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9046 echo "${ECHO_T}$ac_header_compiler" >&6
9048 # Is the header present?
9049 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9050 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9051 cat >conftest.
$ac_ext <<_ACEOF
9052 #line $LINENO "configure"
9053 #include "confdefs.h"
9056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev
/null
; then
9064 if test -s conftest.err
; then
9065 ac_cpp_err
=$ac_c_preproc_warn_flag
9072 if test -z "$ac_cpp_err"; then
9073 ac_header_preproc
=yes
9075 echo "$as_me: failed program was:" >&5
9076 cat conftest.
$ac_ext >&5
9077 ac_header_preproc
=no
9079 rm -f conftest.err conftest.
$ac_ext
9080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9081 echo "${ECHO_T}$ac_header_preproc" >&6
9083 # So? What about this header?
9084 case $ac_header_compiler:$ac_header_preproc in
9086 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9087 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9089 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
9091 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9092 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9094 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9096 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
9098 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9099 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9100 if test "${ac_cv_header_tiffio_h+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_cv_header_tiffio_h
=$ac_header_preproc
9105 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9109 if test $ac_cv_header_tiffio_h = yes; then
9111 # At least one tiff package requires the jpeg library.
9112 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9113 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9114 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9115 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 ac_check_lib_save_LIBS
=$LIBS
9119 LIBS
="-ltiff $tifflibs $LIBS"
9120 cat >conftest.
$ac_ext <<_ACEOF
9121 #line $LINENO "configure"
9122 #include "confdefs.h"
9124 /* Override any gcc2 internal prototype to avoid an error. */
9128 /* We use char because int might match the return type of a gcc2
9129 builtin and then its argument prototype would still apply. */
9130 char TIFFGetVersion ();
9139 rm -f conftest.
$ac_objext conftest
$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } &&
9145 { ac_try
='test -s conftest$ac_exeext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_cv_lib_tiff_TIFFGetVersion
=yes
9153 echo "$as_me: failed program was:" >&5
9154 cat conftest.
$ac_ext >&5
9155 ac_cv_lib_tiff_TIFFGetVersion
=no
9157 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9158 LIBS
=$ac_check_lib_save_LIBS
9160 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9161 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9162 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9171 if test "${HAVE_TIFF}" = "yes"; then
9173 cat >>confdefs.h
<<\_ACEOF
9180 ### Use -lgif if available, unless `--with-gif=no'.
9182 if test "${HAVE_X11}" = "yes"; then
9183 if test "${with_gif}" != "no"; then
9184 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9185 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9186 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9187 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9191 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9193 # Is the header compilable?
9194 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9195 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9196 cat >conftest.
$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9198 #include "confdefs.h"
9199 $ac_includes_default
9200 #include <gif_lib.h>
9202 rm -f conftest.
$ac_objext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9204 (eval $ac_compile) 2>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try
='test -s conftest.$ac_objext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler
=yes
9216 echo "$as_me: failed program was:" >&5
9217 cat conftest.
$ac_ext >&5
9218 ac_header_compiler
=no
9220 rm -f conftest.
$ac_objext conftest.
$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9226 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9227 cat >conftest.
$ac_ext <<_ACEOF
9228 #line $LINENO "configure"
9229 #include "confdefs.h"
9230 #include <gif_lib.h>
9232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9235 grep -v '^ *+' conftest.er1
>conftest.err
9237 cat conftest.err
>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } >/dev
/null
; then
9240 if test -s conftest.err
; then
9241 ac_cpp_err
=$ac_c_preproc_warn_flag
9248 if test -z "$ac_cpp_err"; then
9249 ac_header_preproc
=yes
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.
$ac_ext >&5
9253 ac_header_preproc
=no
9255 rm -f conftest.err conftest.
$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9257 echo "${ECHO_T}$ac_header_preproc" >&6
9259 # So? What about this header?
9260 case $ac_header_compiler:$ac_header_preproc in
9262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9263 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9265 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9268 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9270 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
9274 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9275 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9276 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 ac_cv_header_gif_lib_h
=$ac_header_preproc
9281 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9282 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9285 if test $ac_cv_header_gif_lib_h = yes; then
9286 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9287 # Earlier versions can crash Emacs.
9288 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9289 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9290 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 ac_check_lib_save_LIBS
=$LIBS
9294 LIBS
="-lungif $LIBS"
9295 cat >conftest.
$ac_ext <<_ACEOF
9296 #line $LINENO "configure"
9297 #include "confdefs.h"
9299 /* Override any gcc2 internal prototype to avoid an error. */
9303 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305 char EGifPutExtensionLast ();
9309 EGifPutExtensionLast ();
9314 rm -f conftest.
$ac_objext conftest
$ac_exeext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } &&
9320 { ac_try
='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9328 echo "$as_me: failed program was:" >&5
9329 cat conftest.
$ac_ext >&5
9330 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9333 LIBS
=$ac_check_lib_save_LIBS
9335 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9336 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9337 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9346 if test "${HAVE_GIF}" = "yes"; then
9348 cat >>confdefs.h
<<\_ACEOF
9355 ### Use Mac OS X Carbon API to implement GUI.
9357 if test "${with_carbon}" != "no"; then
9358 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9359 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9360 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9361 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9365 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9367 # Is the header compilable?
9368 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9369 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9370 cat >conftest.
$ac_ext <<_ACEOF
9371 #line $LINENO "configure"
9372 #include "confdefs.h"
9373 $ac_includes_default
9374 #include <Carbon/Carbon.h>
9376 rm -f conftest.
$ac_objext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9378 (eval $ac_compile) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try
='test -s conftest.$ac_objext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_header_compiler
=yes
9390 echo "$as_me: failed program was:" >&5
9391 cat conftest.
$ac_ext >&5
9392 ac_header_compiler
=no
9394 rm -f conftest.
$ac_objext conftest.
$ac_ext
9395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6
9398 # Is the header present?
9399 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9400 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 #include "confdefs.h"
9404 #include <Carbon/Carbon.h>
9406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9407 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9409 grep -v '^ *+' conftest.er1
>conftest.err
9411 cat conftest.err
>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } >/dev
/null
; then
9414 if test -s conftest.err
; then
9415 ac_cpp_err
=$ac_c_preproc_warn_flag
9422 if test -z "$ac_cpp_err"; then
9423 ac_header_preproc
=yes
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.
$ac_ext >&5
9427 ac_header_preproc
=no
9429 rm -f conftest.err conftest.
$ac_ext
9430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9431 echo "${ECHO_T}$ac_header_preproc" >&6
9433 # So? What about this header?
9434 case $ac_header_compiler:$ac_header_preproc in
9436 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9437 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9438 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9439 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9442 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9444 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9446 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9448 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9449 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9450 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9455 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9456 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9459 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9466 if test "${HAVE_CARBON}" = "yes"; then
9468 cat >>confdefs.h
<<\_ACEOF
9469 #define HAVE_CARBON 1
9473 ## Specify the install directory
9475 if test "${carbon_appdir_x}" != ""; then
9476 case ${carbon_appdir_x} in
9477 y | ye |
yes) carbon_appdir
=/Applications
;;
9478 * ) carbon_appdir
=${carbon_appdir_x} ;;
9481 # We also have mouse menus.
9485 ### Use session management (-lSM -lICE) if available
9487 if test "${HAVE_X11}" = "yes"; then
9488 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9489 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9490 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9491 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9495 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9497 # Is the header compilable?
9498 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9499 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9500 cat >conftest.
$ac_ext <<_ACEOF
9501 #line $LINENO "configure"
9502 #include "confdefs.h"
9503 $ac_includes_default
9504 #include <X11/SM/SMlib.h>
9506 rm -f conftest.
$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try
='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_header_compiler
=yes
9520 echo "$as_me: failed program was:" >&5
9521 cat conftest.
$ac_ext >&5
9522 ac_header_compiler
=no
9524 rm -f conftest.
$ac_objext conftest.
$ac_ext
9525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9526 echo "${ECHO_T}$ac_header_compiler" >&6
9528 # Is the header present?
9529 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9530 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9531 cat >conftest.
$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9534 #include <X11/SM/SMlib.h>
9536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9537 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } >/dev
/null
; then
9544 if test -s conftest.err
; then
9545 ac_cpp_err
=$ac_c_preproc_warn_flag
9552 if test -z "$ac_cpp_err"; then
9553 ac_header_preproc
=yes
9555 echo "$as_me: failed program was:" >&5
9556 cat conftest.
$ac_ext >&5
9557 ac_header_preproc
=no
9559 rm -f conftest.err conftest.
$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9561 echo "${ECHO_T}$ac_header_preproc" >&6
9563 # So? What about this header?
9564 case $ac_header_compiler:$ac_header_preproc in
9566 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9567 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9569 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9571 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9572 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9574 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9576 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9578 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9579 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9580 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9585 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9586 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9589 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9590 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9591 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9592 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_check_lib_save_LIBS
=$LIBS
9597 cat >conftest.
$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9601 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char SmcOpenConnection ();
9611 SmcOpenConnection ();
9616 rm -f conftest.
$ac_objext conftest
$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try
='test -s conftest$ac_exeext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 ac_cv_lib_SM_SmcOpenConnection
=yes
9630 echo "$as_me: failed program was:" >&5
9631 cat conftest.
$ac_ext >&5
9632 ac_cv_lib_SM_SmcOpenConnection
=no
9634 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9635 LIBS
=$ac_check_lib_save_LIBS
9637 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9638 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9639 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9649 if test "${HAVE_X_SM}" = "yes"; then
9651 cat >>confdefs.h
<<\_ACEOF
9657 *) LIBS
="-lSM -lICE $LIBS" ;;
9662 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9663 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9664 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9665 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.
$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9680 rm -f conftest.
$ac_objext conftest
$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try
='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 emacs_cv_netdb_declares_h_errno
=yes
9694 echo "$as_me: failed program was:" >&5
9695 cat conftest.
$ac_ext >&5
9696 emacs_cv_netdb_declares_h_errno
=no
9698 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9700 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9701 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9702 if test $emacs_cv_netdb_declares_h_errno = yes; then
9704 cat >>confdefs.h
<<\_ACEOF
9705 #define HAVE_H_ERRNO 1
9710 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9711 # for constant arguments. Useless!
9712 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9713 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9714 if test "${ac_cv_working_alloca_h+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 cat >conftest.
$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 #include "confdefs.h"
9724 char *p = (char *) alloca (2 * sizeof (int));
9729 rm -f conftest.
$ac_objext conftest
$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try
='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_working_alloca_h
=yes
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.
$ac_ext >&5
9745 ac_cv_working_alloca_h
=no
9747 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9750 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9751 if test $ac_cv_working_alloca_h = yes; then
9753 cat >>confdefs.h
<<\_ACEOF
9754 #define HAVE_ALLOCA_H 1
9759 echo "$as_me:$LINENO: checking for alloca" >&5
9760 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9761 if test "${ac_cv_func_alloca_works+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 cat >conftest.
$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 #include "confdefs.h"
9768 # define alloca __builtin_alloca
9771 # include <malloc.h>
9772 # define alloca _alloca
9775 # include <alloca.h>
9780 # ifndef alloca /* predefined by HP cc +Olibcalls */
9791 char *p = (char *) alloca (1);
9796 rm -f conftest.
$ac_objext conftest
$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
9802 { ac_try
='test -s conftest$ac_exeext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_func_alloca_works
=yes
9810 echo "$as_me: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9812 ac_cv_func_alloca_works
=no
9814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9816 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9819 if test $ac_cv_func_alloca_works = yes; then
9821 cat >>confdefs.h
<<\_ACEOF
9822 #define HAVE_ALLOCA 1
9826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9827 # that cause trouble. Some versions do not even contain alloca or
9828 # contain a buggy version. If you still want to use their alloca,
9829 # use ar to extract alloca.o from them instead of compiling alloca.c.
9831 ALLOCA
=alloca.
$ac_objext
9833 cat >>confdefs.h
<<\_ACEOF
9838 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9840 if test "${ac_cv_os_cray+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 cat >conftest.
$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 #include "confdefs.h"
9846 #if defined(CRAY) && ! defined(CRAY2)
9853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9854 $EGREP "webecray" >/dev
/null
2>&1; then
9862 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9863 echo "${ECHO_T}$ac_cv_os_cray" >&6
9864 if test $ac_cv_os_cray = yes; then
9865 for ac_func
in _getb67 GETB67 getb67
; do
9866 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9867 echo "$as_me:$LINENO: checking for $ac_func" >&5
9868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9869 if eval "test \"\${$as_ac_var+set}\" = set"; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.
$ac_ext <<_ACEOF
9873 #line $LINENO "configure"
9874 #include "confdefs.h"
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char $ac_func (); below. */
9878 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9903 rm -f conftest.
$ac_objext conftest
$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try
='test -s conftest$ac_exeext'
9910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); }; }; then
9915 eval "$as_ac_var=yes"
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.
$ac_ext >&5
9919 eval "$as_ac_var=no"
9921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9925 if test `eval echo '${'$as_ac_var'}'` = yes; then
9927 cat >>confdefs.h
<<_ACEOF
9928 #define CRAY_STACKSEG_END $ac_func
9937 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9938 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9939 if test "${ac_cv_c_stack_direction+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 if test "$cross_compiling" = yes; then
9943 ac_cv_c_stack_direction
=0
9945 cat >conftest.
$ac_ext <<_ACEOF
9946 #line $LINENO "configure"
9947 #include "confdefs.h"
9949 find_stack_direction ()
9951 static char *addr = 0;
9956 return find_stack_direction ();
9959 return (&dummy > addr) ? 1 : -1;
9965 exit (find_stack_direction () < 0);
9968 rm -f conftest
$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_c_stack_direction
=1
9981 echo "$as_me: program exited with status $ac_status" >&5
9982 echo "$as_me: failed program was:" >&5
9983 cat conftest.
$ac_ext >&5
9985 ac_cv_c_stack_direction
=-1
9987 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9991 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9993 cat >>confdefs.h
<<_ACEOF
9994 #define STACK_DIRECTION $ac_cv_c_stack_direction
10001 # fmod, logb, and frexp are found in -lm on most systems.
10002 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10004 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10005 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10006 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 ac_check_lib_save_LIBS
=$LIBS
10011 cat >conftest.
$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10015 /* Override any gcc2 internal prototype to avoid an error. */
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10030 rm -f conftest.
$ac_objext conftest
$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try
='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_m_sqrt
=yes
10044 echo "$as_me: failed program was:" >&5
10045 cat conftest.
$ac_ext >&5
10046 ac_cv_lib_m_sqrt
=no
10048 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10049 LIBS
=$ac_check_lib_save_LIBS
10051 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10052 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10053 if test $ac_cv_lib_m_sqrt = yes; then
10054 cat >>confdefs.h
<<_ACEOF
10055 #define HAVE_LIBM 1
10063 # Check for mail-locking functions in a "mail" library. Probably this should
10064 # have the same check as for liblockfile below.
10066 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10067 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10068 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS
=$LIBS
10072 LIBS
="-lmail $LIBS"
10073 cat >conftest.
$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 #include "confdefs.h"
10077 /* Override any gcc2 internal prototype to avoid an error. */
10081 /* We use char because int might match the return type of a gcc2
10082 builtin and then its argument prototype would still apply. */
10092 rm -f conftest.
$ac_objext conftest
$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try
='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_lib_mail_maillock
=yes
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.
$ac_ext >&5
10108 ac_cv_lib_mail_maillock
=no
10110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10111 LIBS
=$ac_check_lib_save_LIBS
10113 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10114 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10115 if test $ac_cv_lib_mail_maillock = yes; then
10116 cat >>confdefs.h
<<_ACEOF
10117 #define HAVE_LIBMAIL 1
10120 LIBS
="-lmail $LIBS"
10125 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10126 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10127 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_check_lib_save_LIBS
=$LIBS
10131 LIBS
="-llockfile $LIBS"
10132 cat >conftest.
$ac_ext <<_ACEOF
10133 #line $LINENO "configure"
10134 #include "confdefs.h"
10136 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try
='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 ac_cv_lib_lockfile_maillock
=yes
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.
$ac_ext >&5
10167 ac_cv_lib_lockfile_maillock
=no
10169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10170 LIBS
=$ac_check_lib_save_LIBS
10172 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10173 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10174 if test $ac_cv_lib_lockfile_maillock = yes; then
10175 cat >>confdefs.h
<<_ACEOF
10176 #define HAVE_LIBLOCKFILE 1
10179 LIBS
="-llockfile $LIBS"
10183 # If we have the shared liblockfile, assume we must use it for mail
10184 # locking (e.g. Debian). If we couldn't link against liblockfile
10185 # (no liblockfile.a installed), ensure that we don't need to.
10186 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10187 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10188 set dummy liblockfile.so
; ac_word
=$2
10189 echo "$as_me:$LINENO: checking for $ac_word" >&5
10190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10191 if test "${ac_cv_prog_liblockfile+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 if test -n "$liblockfile"; then
10195 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10198 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10199 for as_dir
in $as_dummy
10202 test -z "$as_dir" && as_dir
=.
10203 for ac_exec_ext
in '' $ac_executable_extensions; do
10204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205 ac_cv_prog_liblockfile
="yes"
10206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10215 liblockfile
=$ac_cv_prog_liblockfile
10216 if test -n "$liblockfile"; then
10217 echo "$as_me:$LINENO: result: $liblockfile" >&5
10218 echo "${ECHO_T}$liblockfile" >&6
10220 echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6
10224 if test $ac_cv_prog_liblockfile = yes; then
10225 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10226 This probably means that movemail could lose mail.
10227 There may be a \`development' package to install containing liblockfile." >&5
10228 echo "$as_me: error: Shared liblockfile found but can't link against it.
10229 This probably means that movemail could lose mail.
10230 There may be a \`development' package to install containing liblockfile." >&2;}
10231 { (exit 1); exit 1; }; }
10236 for ac_func
in touchlock
10238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_var+set}\" = set"; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 cat >conftest.
$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 #include "confdefs.h"
10247 /* System header to define __stub macros and hopefully few prototypes,
10248 which can conflict with char $ac_func (); below. */
10249 #include <assert.h>
10250 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10275 rm -f conftest.
$ac_objext conftest
$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try
='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10289 echo "$as_me: failed program was:" >&5
10290 cat conftest.
$ac_ext >&5
10291 eval "$as_ac_var=no"
10293 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h
<<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306 for ac_header
in maillock.h
10308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.
$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 #include "confdefs.h"
10324 $ac_includes_default
10325 #include <$ac_header>
10327 rm -f conftest.
$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_header_compiler
=yes
10341 echo "$as_me: failed program was:" >&5
10342 cat conftest.
$ac_ext >&5
10343 ac_header_compiler
=no
10345 rm -f conftest.
$ac_objext conftest.
$ac_ext
10346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10347 echo "${ECHO_T}$ac_header_compiler" >&6
10349 # Is the header present?
10350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10352 cat >conftest.
$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 #include "confdefs.h"
10355 #include <$ac_header>
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10360 grep -v '^ *+' conftest.er1
>conftest.err
10362 cat conftest.err
>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev
/null
; then
10365 if test -s conftest.err
; then
10366 ac_cpp_err
=$ac_c_preproc_warn_flag
10373 if test -z "$ac_cpp_err"; then
10374 ac_header_preproc
=yes
10376 echo "$as_me: failed program was:" >&5
10377 cat conftest.
$ac_ext >&5
10378 ac_header_preproc
=no
10380 rm -f conftest.err conftest.
$ac_ext
10381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10382 echo "${ECHO_T}$ac_header_preproc" >&6
10384 # So? What about this header?
10385 case $ac_header_compiler:$ac_header_preproc in
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 eval "$as_ac_Header=$ac_header_preproc"
10406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10411 cat >>confdefs.h
<<_ACEOF
10412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487 for ac_func
in gethostname getdomainname dup2 \
10488 rename closedir mkdir
rmdir sysinfo \
10489 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10490 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10491 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
10492 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10493 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10494 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
10495 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
10497 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10498 echo "$as_me:$LINENO: checking for $ac_func" >&5
10499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10500 if eval "test \"\${$as_ac_var+set}\" = set"; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 cat >conftest.
$ac_ext <<_ACEOF
10504 #line $LINENO "configure"
10505 #include "confdefs.h"
10506 /* System header to define __stub macros and hopefully few prototypes,
10507 which can conflict with char $ac_func (); below. */
10508 #include <assert.h>
10509 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10521 /* The GNU C library defines this for functions which it implements
10522 to always fail with ENOSYS. Some functions are actually named
10523 something starting with __ and the normal name is an alias. */
10524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try
='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 eval "$as_ac_var=yes"
10548 echo "$as_me: failed program was:" >&5
10549 cat conftest.
$ac_ext >&5
10550 eval "$as_ac_var=no"
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10556 if test `eval echo '${'$as_ac_var'}'` = yes; then
10557 cat >>confdefs.h
<<_ACEOF
10558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10566 for ac_header
in sys
/un.h
10568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10570 echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10578 # Is the header compilable?
10579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10581 cat >conftest.
$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 #include "confdefs.h"
10584 $ac_includes_default
10585 #include <$ac_header>
10587 rm -f conftest.
$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try
='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_header_compiler
=yes
10601 echo "$as_me: failed program was:" >&5
10602 cat conftest.
$ac_ext >&5
10603 ac_header_compiler
=no
10605 rm -f conftest.
$ac_objext conftest.
$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6
10609 # Is the header present?
10610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10612 cat >conftest.
$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 #include "confdefs.h"
10615 #include <$ac_header>
10617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10618 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
10622 cat conftest.err
>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } >/dev
/null
; then
10625 if test -s conftest.err
; then
10626 ac_cpp_err
=$ac_c_preproc_warn_flag
10633 if test -z "$ac_cpp_err"; then
10634 ac_header_preproc
=yes
10636 echo "$as_me: failed program was:" >&5
10637 cat conftest.
$ac_ext >&5
10638 ac_header_preproc
=no
10640 rm -f conftest.err conftest.
$ac_ext
10641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642 echo "${ECHO_T}$ac_header_preproc" >&6
10644 # So? What about this header?
10645 case $ac_header_compiler:$ac_header_preproc in
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10659 echo "$as_me:$LINENO: checking for $ac_header" >&5
10660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 eval "$as_ac_Header=$ac_header_preproc"
10666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10671 cat >>confdefs.h
<<_ACEOF
10672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 for ac_header
in sys
/time.h unistd.h
10684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686 echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10694 # Is the header compilable?
10695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10697 cat >conftest.
$ac_ext <<_ACEOF
10698 #line $LINENO "configure"
10699 #include "confdefs.h"
10700 $ac_includes_default
10701 #include <$ac_header>
10703 rm -f conftest.
$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try
='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_header_compiler
=yes
10717 echo "$as_me: failed program was:" >&5
10718 cat conftest.
$ac_ext >&5
10719 ac_header_compiler
=no
10721 rm -f conftest.
$ac_objext conftest.
$ac_ext
10722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10723 echo "${ECHO_T}$ac_header_compiler" >&6
10725 # Is the header present?
10726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10728 cat >conftest.
$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 #include "confdefs.h"
10731 #include <$ac_header>
10733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10736 grep -v '^ *+' conftest.er1
>conftest.err
10738 cat conftest.err
>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } >/dev
/null
; then
10741 if test -s conftest.err
; then
10742 ac_cpp_err
=$ac_c_preproc_warn_flag
10749 if test -z "$ac_cpp_err"; then
10750 ac_header_preproc
=yes
10752 echo "$as_me: failed program was:" >&5
10753 cat conftest.
$ac_ext >&5
10754 ac_header_preproc
=no
10756 rm -f conftest.err conftest.
$ac_ext
10757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10758 echo "${ECHO_T}$ac_header_preproc" >&6
10760 # So? What about this header?
10761 case $ac_header_compiler:$ac_header_preproc in
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10775 echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 eval "$as_ac_Header=$ac_header_preproc"
10782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10787 cat >>confdefs.h
<<_ACEOF
10788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10796 for ac_func
in alarm
10798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10799 echo "$as_me:$LINENO: checking for $ac_func" >&5
10800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_var+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.
$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 #include "confdefs.h"
10807 /* System header to define __stub macros and hopefully few prototypes,
10808 which can conflict with char $ac_func (); below. */
10809 #include <assert.h>
10810 /* Override any gcc2 internal prototype to avoid an error. */
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10835 rm -f conftest.
$ac_objext conftest
$ac_exeext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837 (eval $ac_link) 2>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } &&
10841 { ac_try
='test -s conftest$ac_exeext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 eval "$as_ac_var=yes"
10849 echo "$as_me: failed program was:" >&5
10850 cat conftest.
$ac_ext >&5
10851 eval "$as_ac_var=no"
10853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h
<<_ACEOF
10859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10865 echo "$as_me:$LINENO: checking for working mktime" >&5
10866 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10867 if test "${ac_cv_func_working_mktime+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 if test "$cross_compiling" = yes; then
10871 ac_cv_func_working_mktime
=no
10873 cat >conftest.
$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10875 #include "confdefs.h"
10876 /* Test program from Paul Eggert and Tony Leneis. */
10877 #if TIME_WITH_SYS_TIME
10878 # include <sys/time.h>
10881 # if HAVE_SYS_TIME_H
10882 # include <sys/time.h>
10889 # include <unistd.h>
10893 # define alarm(X) /* empty */
10896 /* Work around redefinition to rpl_putenv by other config tests. */
10899 static time_t time_t_max;
10901 /* Values we'll use to set the TZ environment variable. */
10902 static const char *const tz_strings[] = {
10903 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10904 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10906 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10908 /* Fail if mktime fails to convert a date in the spring-forward gap.
10909 Based on a problem report from Andreas Jaeger. */
10911 spring_forward_gap ()
10913 /* glibc (up to about 1998-10-07) failed this test. */
10916 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10917 instead of "TZ=America/Vancouver" in order to detect the bug even
10918 on systems that don't support the Olson extension, or don't have the
10919 full zoneinfo tables installed. */
10920 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10929 if (mktime (&tm) == (time_t)-1)
10938 if ((lt = localtime (&now)) && mktime (lt) != now)
10940 now = time_t_max - now;
10941 if ((lt = localtime (&now)) && mktime (lt) != now)
10948 /* Based on code from Ariel Faigon. */
10958 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10968 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10969 now = mktime (&tm);
10970 if (now != (time_t) -1)
10972 struct tm *lt = localtime (&now);
10974 && lt->tm_year == tm.tm_year
10975 && lt->tm_mon == tm.tm_mon
10976 && lt->tm_mday == tm.tm_mday
10977 && lt->tm_hour == tm.tm_hour
10978 && lt->tm_min == tm.tm_min
10979 && lt->tm_sec == tm.tm_sec
10980 && lt->tm_yday == tm.tm_yday
10981 && lt->tm_wday == tm.tm_wday
10982 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10983 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10994 /* This test makes some buggy mktime implementations loop.
10995 Give up after 60 seconds; a mktime slower than that
10996 isn't worth using anyway. */
10999 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11002 delta = time_t_max / 997; /* a suitable prime number */
11003 for (i = 0; i < N_STRINGS; i++)
11006 putenv (tz_strings[i]);
11008 for (t = 0; t <= time_t_max - delta; t += delta)
11010 mktime_test ((time_t) 60 * 60);
11011 mktime_test ((time_t) 60 * 60 * 24);
11013 for (j = 1; 0 < j; j *= 2)
11015 bigtime_test (j - 1);
11018 spring_forward_gap ();
11022 rm -f conftest
$ac_exeext
11023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_func_working_mktime
=yes
11035 echo "$as_me: program exited with status $ac_status" >&5
11036 echo "$as_me: failed program was:" >&5
11037 cat conftest.
$ac_ext >&5
11038 ( exit $ac_status )
11039 ac_cv_func_working_mktime
=no
11041 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11044 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11045 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11046 if test $ac_cv_func_working_mktime = no
; then
11047 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11050 if test "$ac_cv_func_working_mktime" = no
; then
11052 cat >>confdefs.h
<<\_ACEOF
11053 #define BROKEN_MKTIME 1
11058 ac_have_func
=no
# yes means we've found a way to get the load average.
11060 # Make sure getloadavg.c is where it belongs, at configure-time.
11061 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11062 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11063 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11064 { (exit 1); exit 1; }; }
11068 # Check for getloadavg, but be sure not to touch the cache variable.
11069 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11070 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11071 if test "${ac_cv_func_getloadavg+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.
$ac_ext <<_ACEOF
11075 #line $LINENO "configure"
11076 #include "confdefs.h"
11077 /* System header to define __stub macros and hopefully few prototypes,
11078 which can conflict with char getloadavg (); below. */
11079 #include <assert.h>
11080 /* Override any gcc2 internal prototype to avoid an error. */
11084 /* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086 char getloadavg ();
11092 /* The GNU C library defines this for functions which it implements
11093 to always fail with ENOSYS. Some functions are actually named
11094 something starting with __ and the normal name is an alias. */
11095 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11105 rm -f conftest.
$ac_objext conftest
$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try
='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_cv_func_getloadavg
=yes
11119 echo "$as_me: failed program was:" >&5
11120 cat conftest.
$ac_ext >&5
11121 ac_cv_func_getloadavg
=no
11123 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11125 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11126 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11127 if test $ac_cv_func_getloadavg = yes; then
11132 ) && ac_have_func
=yes
11134 # On HPUX9, an unprivileged user can get load averages through this function.
11136 for ac_func
in pstat_getdynamic
11138 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11139 echo "$as_me:$LINENO: checking for $ac_func" >&5
11140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11141 if eval "test \"\${$as_ac_var+set}\" = set"; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 cat >conftest.
$ac_ext <<_ACEOF
11145 #line $LINENO "configure"
11146 #include "confdefs.h"
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char $ac_func (); below. */
11149 #include <assert.h>
11150 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11162 /* The GNU C library defines this for functions which it implements
11163 to always fail with ENOSYS. Some functions are actually named
11164 something starting with __ and the normal name is an alias. */
11165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11175 rm -f conftest.
$ac_objext conftest
$ac_exeext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
11181 { ac_try
='test -s conftest$ac_exeext'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; }; then
11187 eval "$as_ac_var=yes"
11189 echo "$as_me: failed program was:" >&5
11190 cat conftest.
$ac_ext >&5
11191 eval "$as_ac_var=no"
11193 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11197 if test `eval echo '${'$as_ac_var'}'` = yes; then
11198 cat >>confdefs.h
<<_ACEOF
11199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11206 # Solaris has libkstat which does not require root.
11208 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11209 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11210 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 ac_check_lib_save_LIBS
=$LIBS
11214 LIBS
="-lkstat $LIBS"
11215 cat >conftest.
$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 #include "confdefs.h"
11219 /* Override any gcc2 internal prototype to avoid an error. */
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char kstat_open ();
11234 rm -f conftest.
$ac_objext conftest
$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try
='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_kstat_kstat_open
=yes
11248 echo "$as_me: failed program was:" >&5
11249 cat conftest.
$ac_ext >&5
11250 ac_cv_lib_kstat_kstat_open
=no
11252 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11253 LIBS
=$ac_check_lib_save_LIBS
11255 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11256 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11257 if test $ac_cv_lib_kstat_kstat_open = yes; then
11258 cat >>confdefs.h
<<_ACEOF
11259 #define HAVE_LIBKSTAT 1
11262 LIBS
="-lkstat $LIBS"
11266 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11268 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11269 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11270 # to get the right answer into the cache.
11271 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11272 if test $ac_have_func = no
; then
11273 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11274 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11275 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 ac_check_lib_save_LIBS
=$LIBS
11280 cat >conftest.
$ac_ext <<_ACEOF
11281 #line $LINENO "configure"
11282 #include "confdefs.h"
11284 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11299 rm -f conftest.
$ac_objext conftest
$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try
='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 ac_cv_lib_elf_elf_begin
=yes
11313 echo "$as_me: failed program was:" >&5
11314 cat conftest.
$ac_ext >&5
11315 ac_cv_lib_elf_elf_begin
=no
11317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11318 LIBS
=$ac_check_lib_save_LIBS
11320 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11321 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11322 if test $ac_cv_lib_elf_elf_begin = yes; then
11327 if test $ac_have_func = no
; then
11328 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11329 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11330 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 ac_check_lib_save_LIBS
=$LIBS
11335 cat >conftest.
$ac_ext <<_ACEOF
11336 #line $LINENO "configure"
11337 #include "confdefs.h"
11339 /* Override any gcc2 internal prototype to avoid an error. */
11343 /* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11354 rm -f conftest.
$ac_objext conftest
$ac_exeext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356 (eval $ac_link) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try
='test -s conftest$ac_exeext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 ac_cv_lib_kvm_kvm_open
=yes
11368 echo "$as_me: failed program was:" >&5
11369 cat conftest.
$ac_ext >&5
11370 ac_cv_lib_kvm_kvm_open
=no
11372 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11373 LIBS
=$ac_check_lib_save_LIBS
11375 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11376 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11377 if test $ac_cv_lib_kvm_kvm_open = yes; then
11381 # Check for the 4.4BSD definition of getloadavg.
11382 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11383 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11384 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 ac_check_lib_save_LIBS
=$LIBS
11388 LIBS
="-lutil $LIBS"
11389 cat >conftest.
$ac_ext <<_ACEOF
11390 #line $LINENO "configure"
11391 #include "confdefs.h"
11393 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11399 char getloadavg ();
11408 rm -f conftest.
$ac_objext conftest
$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_util_getloadavg
=yes
11422 echo "$as_me: failed program was:" >&5
11423 cat conftest.
$ac_ext >&5
11424 ac_cv_lib_util_getloadavg
=no
11426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11427 LIBS
=$ac_check_lib_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11430 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11431 if test $ac_cv_lib_util_getloadavg = yes; then
11432 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11437 if test $ac_have_func = no
; then
11438 # There is a commonly available library for RS/6000 AIX.
11439 # Since it is not a standard part of AIX, it might be installed locally.
11440 ac_getloadavg_LIBS
=$LIBS
11441 LIBS
="-L/usr/local/lib $LIBS"
11442 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11443 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11444 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 ac_check_lib_save_LIBS
=$LIBS
11448 LIBS
="-lgetloadavg $LIBS"
11449 cat >conftest.
$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 #include "confdefs.h"
11453 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11459 char getloadavg ();
11468 rm -f conftest.
$ac_objext conftest
$ac_exeext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try
='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_lib_getloadavg_getloadavg
=yes
11482 echo "$as_me: failed program was:" >&5
11483 cat conftest.
$ac_ext >&5
11484 ac_cv_lib_getloadavg_getloadavg
=no
11486 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11487 LIBS
=$ac_check_lib_save_LIBS
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11490 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11491 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11492 LIBS
="-lgetloadavg $LIBS"
11494 LIBS
=$ac_getloadavg_LIBS
11499 # Make sure it is really in the library, if we think we found it,
11500 # otherwise set up the replacement function.
11502 for ac_func
in getloadavg
11504 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11507 if eval "test \"\${$as_ac_var+set}\" = set"; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.
$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 #include "confdefs.h"
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below. */
11515 #include <assert.h>
11516 /* Override any gcc2 internal prototype to avoid an error. */
11520 /* We use char because int might match the return type of a gcc2
11521 builtin and then its argument prototype would still apply. */
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11541 rm -f conftest.
$ac_objext conftest
$ac_exeext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try
='test -s conftest$ac_exeext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 eval "$as_ac_var=yes"
11555 echo "$as_me: failed program was:" >&5
11556 cat conftest.
$ac_ext >&5
11557 eval "$as_ac_var=no"
11559 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11563 if test `eval echo '${'$as_ac_var'}'` = yes; then
11564 cat >>confdefs.h
<<_ACEOF
11565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11571 cat >>confdefs.h
<<\_ACEOF
11572 #define C_GETLOADAVG 1
11575 # Figure out what our getloadavg.c needs.
11577 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11578 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11579 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11580 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11584 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11586 # Is the header compilable?
11587 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11588 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11589 cat >conftest.
$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11591 #include "confdefs.h"
11592 $ac_includes_default
11593 #include <sys/dg_sys_info.h>
11595 rm -f conftest.
$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try
='test -s conftest.$ac_objext'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; }; then
11607 ac_header_compiler
=yes
11609 echo "$as_me: failed program was:" >&5
11610 cat conftest.
$ac_ext >&5
11611 ac_header_compiler
=no
11613 rm -f conftest.
$ac_objext conftest.
$ac_ext
11614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11615 echo "${ECHO_T}$ac_header_compiler" >&6
11617 # Is the header present?
11618 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11619 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11620 cat >conftest.
$ac_ext <<_ACEOF
11621 #line $LINENO "configure"
11622 #include "confdefs.h"
11623 #include <sys/dg_sys_info.h>
11625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11626 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11628 grep -v '^ *+' conftest.er1
>conftest.err
11630 cat conftest.err
>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } >/dev
/null
; then
11633 if test -s conftest.err
; then
11634 ac_cpp_err
=$ac_c_preproc_warn_flag
11641 if test -z "$ac_cpp_err"; then
11642 ac_header_preproc
=yes
11644 echo "$as_me: failed program was:" >&5
11645 cat conftest.
$ac_ext >&5
11646 ac_header_preproc
=no
11648 rm -f conftest.err conftest.
$ac_ext
11649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11650 echo "${ECHO_T}$ac_header_preproc" >&6
11652 # So? What about this header?
11653 case $ac_header_compiler:$ac_header_preproc in
11655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11656 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11658 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11660 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11661 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11663 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11665 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11667 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11668 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11669 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11675 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11678 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11681 cat >>confdefs.h
<<\_ACEOF
11686 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11687 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11688 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 ac_check_lib_save_LIBS
=$LIBS
11693 cat >conftest.
$ac_ext <<_ACEOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11697 /* Override any gcc2 internal prototype to avoid an error. */
11701 /* We use char because int might match the return type of a gcc2
11702 builtin and then its argument prototype would still apply. */
11703 char dg_sys_info ();
11712 rm -f conftest.
$ac_objext conftest
$ac_exeext
11713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
11718 { ac_try
='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_cv_lib_dgc_dg_sys_info
=yes
11726 echo "$as_me: failed program was:" >&5
11727 cat conftest.
$ac_ext >&5
11728 ac_cv_lib_dgc_dg_sys_info
=no
11730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11731 LIBS
=$ac_check_lib_save_LIBS
11733 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11734 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11735 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11736 cat >>confdefs.h
<<_ACEOF
11737 #define HAVE_LIBDGC 1
11748 if test "${ac_cv_header_locale_h+set}" = set; then
11749 echo "$as_me:$LINENO: checking for locale.h" >&5
11750 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11751 if test "${ac_cv_header_locale_h+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11755 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11757 # Is the header compilable?
11758 echo "$as_me:$LINENO: checking locale.h usability" >&5
11759 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11760 cat >conftest.
$ac_ext <<_ACEOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763 $ac_includes_default
11764 #include <locale.h>
11766 rm -f conftest.
$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try
='test -s conftest.$ac_objext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_header_compiler
=yes
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.
$ac_ext >&5
11782 ac_header_compiler
=no
11784 rm -f conftest.
$ac_objext conftest.
$ac_ext
11785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11786 echo "${ECHO_T}$ac_header_compiler" >&6
11788 # Is the header present?
11789 echo "$as_me:$LINENO: checking locale.h presence" >&5
11790 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11791 cat >conftest.
$ac_ext <<_ACEOF
11792 #line $LINENO "configure"
11793 #include "confdefs.h"
11794 #include <locale.h>
11796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11797 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1
>conftest.err
11801 cat conftest.err
>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } >/dev
/null
; then
11804 if test -s conftest.err
; then
11805 ac_cpp_err
=$ac_c_preproc_warn_flag
11812 if test -z "$ac_cpp_err"; then
11813 ac_header_preproc
=yes
11815 echo "$as_me: failed program was:" >&5
11816 cat conftest.
$ac_ext >&5
11817 ac_header_preproc
=no
11819 rm -f conftest.err conftest.
$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc in
11826 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11831 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11832 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11834 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11836 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11838 echo "$as_me:$LINENO: checking for locale.h" >&5
11839 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11840 if test "${ac_cv_header_locale_h+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 ac_cv_header_locale_h
=$ac_header_preproc
11845 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11846 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11852 for ac_func
in setlocale
11854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855 echo "$as_me:$LINENO: checking for $ac_func" >&5
11856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_var+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.
$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11870 /* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11878 /* The GNU C library defines this for functions which it implements
11879 to always fail with ENOSYS. Some functions are actually named
11880 something starting with __ and the normal name is an alias. */
11881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11891 rm -f conftest.
$ac_objext conftest
$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try
='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "$as_ac_var=yes"
11905 echo "$as_me: failed program was:" >&5
11906 cat conftest.
$ac_ext >&5
11907 eval "$as_ac_var=no"
11909 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11913 if test `eval echo '${'$as_ac_var'}'` = yes; then
11914 cat >>confdefs.h
<<_ACEOF
11915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11923 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11924 # Irix 4.0.5F has the header but not the library.
11925 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11928 cat >>confdefs.h
<<\_ACEOF
11934 if test $ac_have_func = no
; then
11935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11936 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11937 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11938 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11942 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11944 # Is the header compilable?
11945 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11946 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11947 cat >conftest.
$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 #include "confdefs.h"
11950 $ac_includes_default
11951 #include <inq_stats/cpustats.h>
11953 rm -f conftest.
$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try
='test -s conftest.$ac_objext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_header_compiler
=yes
11967 echo "$as_me: failed program was:" >&5
11968 cat conftest.
$ac_ext >&5
11969 ac_header_compiler
=no
11971 rm -f conftest.
$ac_objext conftest.
$ac_ext
11972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11973 echo "${ECHO_T}$ac_header_compiler" >&6
11975 # Is the header present?
11976 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11977 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11978 cat >conftest.
$ac_ext <<_ACEOF
11979 #line $LINENO "configure"
11980 #include "confdefs.h"
11981 #include <inq_stats/cpustats.h>
11983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11984 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } >/dev
/null
; then
11991 if test -s conftest.err
; then
11992 ac_cpp_err
=$ac_c_preproc_warn_flag
11999 if test -z "$ac_cpp_err"; then
12000 ac_header_preproc
=yes
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.
$ac_ext >&5
12004 ac_header_preproc
=no
12006 rm -f conftest.err conftest.
$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6
12010 # So? What about this header?
12011 case $ac_header_compiler:$ac_header_preproc in
12013 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12016 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12018 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12019 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12020 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12021 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12023 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12025 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12026 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12027 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
12032 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12033 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12036 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12039 cat >>confdefs.h
<<\_ACEOF
12044 cat >>confdefs.h
<<\_ACEOF
12053 if test $ac_have_func = no
; then
12054 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12055 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12056 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12057 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12060 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12061 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12063 # Is the header compilable?
12064 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12065 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12066 cat >conftest.
$ac_ext <<_ACEOF
12067 #line $LINENO "configure"
12068 #include "confdefs.h"
12069 $ac_includes_default
12070 #include <sys/cpustats.h>
12072 rm -f conftest.
$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try
='test -s conftest.$ac_objext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_header_compiler
=yes
12086 echo "$as_me: failed program was:" >&5
12087 cat conftest.
$ac_ext >&5
12088 ac_header_compiler
=no
12090 rm -f conftest.
$ac_objext conftest.
$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6
12094 # Is the header present?
12095 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12096 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12097 cat >conftest.
$ac_ext <<_ACEOF
12098 #line $LINENO "configure"
12099 #include "confdefs.h"
12100 #include <sys/cpustats.h>
12102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12105 grep -v '^ *+' conftest.er1
>conftest.err
12107 cat conftest.err
>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev
/null
; then
12110 if test -s conftest.err
; then
12111 ac_cpp_err
=$ac_c_preproc_warn_flag
12118 if test -z "$ac_cpp_err"; then
12119 ac_header_preproc
=yes
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.
$ac_ext >&5
12123 ac_header_preproc
=no
12125 rm -f conftest.err conftest.
$ac_ext
12126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12127 echo "${ECHO_T}$ac_header_preproc" >&6
12129 # So? What about this header?
12130 case $ac_header_compiler:$ac_header_preproc in
12132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12133 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12137 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12138 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12140 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12141 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12142 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
12144 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12145 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
12151 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12152 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12155 if test $ac_cv_header_sys_cpustats_h = yes; then
12156 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
12165 if test $ac_have_func = no
; then
12167 for ac_header
in mach
/mach.h
12169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12171 echo "$as_me:$LINENO: checking for $ac_header" >&5
12172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12179 # Is the header compilable?
12180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12182 cat >conftest.
$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12184 #include "confdefs.h"
12185 $ac_includes_default
12186 #include <$ac_header>
12188 rm -f conftest.
$ac_objext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190 (eval $ac_compile) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try
='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_header_compiler
=yes
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.
$ac_ext >&5
12204 ac_header_compiler
=no
12206 rm -f conftest.
$ac_objext conftest.
$ac_ext
12207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 echo "${ECHO_T}$ac_header_compiler" >&6
12210 # Is the header present?
12211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12213 cat >conftest.
$ac_ext <<_ACEOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12216 #include <$ac_header>
12218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12221 grep -v '^ *+' conftest.er1
>conftest.err
12223 cat conftest.err
>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } >/dev
/null
; then
12226 if test -s conftest.err
; then
12227 ac_cpp_err
=$ac_c_preproc_warn_flag
12234 if test -z "$ac_cpp_err"; then
12235 ac_header_preproc
=yes
12237 echo "$as_me: failed program was:" >&5
12238 cat conftest.
$ac_ext >&5
12239 ac_header_preproc
=no
12241 rm -f conftest.err conftest.
$ac_ext
12242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12243 echo "${ECHO_T}$ac_header_preproc" >&6
12245 # So? What about this header?
12246 case $ac_header_compiler:$ac_header_preproc in
12248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12260 echo "$as_me:$LINENO: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 eval "$as_ac_Header=$ac_header_preproc"
12267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12272 cat >>confdefs.h
<<_ACEOF
12273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 for ac_header
in nlist.h
12285 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12287 echo "$as_me:$LINENO: checking for $ac_header" >&5
12288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12295 # Is the header compilable?
12296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12298 cat >conftest.
$ac_ext <<_ACEOF
12299 #line $LINENO "configure"
12300 #include "confdefs.h"
12301 $ac_includes_default
12302 #include <$ac_header>
12304 rm -f conftest.
$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try
='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_header_compiler
=yes
12318 echo "$as_me: failed program was:" >&5
12319 cat conftest.
$ac_ext >&5
12320 ac_header_compiler
=no
12322 rm -f conftest.
$ac_objext conftest.
$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12324 echo "${ECHO_T}$ac_header_compiler" >&6
12326 # Is the header present?
12327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12329 cat >conftest.
$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12331 #include "confdefs.h"
12332 #include <$ac_header>
12334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12335 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12337 grep -v '^ *+' conftest.er1
>conftest.err
12339 cat conftest.err
>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } >/dev
/null
; then
12342 if test -s conftest.err
; then
12343 ac_cpp_err
=$ac_c_preproc_warn_flag
12350 if test -z "$ac_cpp_err"; then
12351 ac_header_preproc
=yes
12353 echo "$as_me: failed program was:" >&5
12354 cat conftest.
$ac_ext >&5
12355 ac_header_preproc
=no
12357 rm -f conftest.err conftest.
$ac_ext
12358 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12359 echo "${ECHO_T}$ac_header_preproc" >&6
12361 # So? What about this header?
12362 case $ac_header_compiler:$ac_header_preproc in
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12376 echo "$as_me:$LINENO: checking for $ac_header" >&5
12377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 eval "$as_ac_Header=$ac_header_preproc"
12383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12388 cat >>confdefs.h
<<_ACEOF
12389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12391 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12392 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12393 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 cat >conftest.
$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12398 #include "confdefs.h"
12404 static struct nlist ac_aggr;
12405 if (ac_aggr.n_un.n_name)
12411 rm -f conftest.
$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try
='test -s conftest.$ac_objext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_cv_member_struct_nlist_n_un_n_name
=yes
12425 echo "$as_me: failed program was:" >&5
12426 cat conftest.
$ac_ext >&5
12427 cat >conftest.
$ac_ext <<_ACEOF
12428 #line $LINENO "configure"
12429 #include "confdefs.h"
12435 static struct nlist ac_aggr;
12436 if (sizeof ac_aggr.n_un.n_name)
12442 rm -f conftest.
$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try
='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_member_struct_nlist_n_un_n_name
=yes
12456 echo "$as_me: failed program was:" >&5
12457 cat conftest.
$ac_ext >&5
12458 ac_cv_member_struct_nlist_n_un_n_name
=no
12460 rm -f conftest.
$ac_objext conftest.
$ac_ext
12462 rm -f conftest.
$ac_objext conftest.
$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12465 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12466 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12473 cat >>confdefs.h
<<\_ACEOF
12474 #define NLIST_NAME_UNION 1
12488 # Some definitions of getloadavg require that the program be installed setgid.
12489 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12490 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12491 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 cat >conftest.
$ac_ext <<_ACEOF
12495 #line $LINENO "configure"
12496 #include "confdefs.h"
12497 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12498 #ifdef LDAV_PRIVILEGED
12499 Yowza Am I SETGID yet
12502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12503 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12504 ac_cv_func_getloadavg_setgid
=yes
12506 ac_cv_func_getloadavg_setgid
=no
12511 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12512 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12513 if test $ac_cv_func_getloadavg_setgid = yes; then
12516 cat >>confdefs.h
<<\_ACEOF
12517 #define GETLOADAVG_PRIVILEGED 1
12524 if test $ac_cv_func_getloadavg_setgid = yes; then
12525 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12526 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12527 if test "${ac_cv_group_kmem+set}" = set; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12531 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12532 # If we got an error (system does not support symlinks), try without -L.
12533 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12534 ac_cv_group_kmem
=`echo $ac_ls_output \
12535 | sed -ne 's/[ ][ ]*/ /g;
12536 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12540 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12541 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12542 KMEM_GROUP
=$ac_cv_group_kmem
12544 if test "x$ac_save_LIBS" = x
; then
12545 GETLOADAVG_LIBS
=$LIBS
12547 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12553 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12554 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12555 if test "${ac_cv_sys_largefile_source+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_cv_sys_largefile_source
=no
12560 cat >conftest.
$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 #include "confdefs.h"
12572 rm -f conftest.
$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574 (eval $ac_compile) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try
='test -s conftest.$ac_objext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12586 echo "$as_me: failed program was:" >&5
12587 cat conftest.
$ac_ext >&5
12589 rm -f conftest.
$ac_objext conftest.
$ac_ext
12590 cat >conftest.
$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12592 #include "confdefs.h"
12593 #define _LARGEFILE_SOURCE 1
12603 rm -f conftest.
$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try
='test -s conftest.$ac_objext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_sys_largefile_source
=1; break
12617 echo "$as_me: failed program was:" >&5
12618 cat conftest.
$ac_ext >&5
12620 rm -f conftest.
$ac_objext conftest.
$ac_ext
12624 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12625 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12626 if test "$ac_cv_sys_largefile_source" != no
; then
12628 cat >>confdefs.h
<<_ACEOF
12629 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12635 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12636 # in glibc 2.1.3, but that breaks too many other things.
12637 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12638 echo "$as_me:$LINENO: checking for fseeko" >&5
12639 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12640 if test "${ac_cv_func_fseeko+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12643 cat >conftest.
$ac_ext <<_ACEOF
12644 #line $LINENO "configure"
12645 #include "confdefs.h"
12650 return fseeko && fseeko (stdin, 0, 0);
12655 rm -f conftest.
$ac_objext conftest
$ac_exeext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12657 (eval $ac_link) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try
='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_func_fseeko
=yes
12669 echo "$as_me: failed program was:" >&5
12670 cat conftest.
$ac_ext >&5
12671 ac_cv_func_fseeko
=no
12673 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12675 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12676 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12677 if test $ac_cv_func_fseeko = yes; then
12679 cat >>confdefs.h
<<\_ACEOF
12680 #define HAVE_FSEEKO 1
12686 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
12687 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
12688 if test "${ac_cv_func_getpgrp_void+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 # Use it with a single arg.
12692 cat >conftest.
$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 #include "confdefs.h"
12695 $ac_includes_default
12704 rm -f conftest.
$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try
='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_func_getpgrp_void
=no
12718 echo "$as_me: failed program was:" >&5
12719 cat conftest.
$ac_ext >&5
12720 ac_cv_func_getpgrp_void
=yes
12722 rm -f conftest.
$ac_objext conftest.
$ac_ext
12725 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
12726 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
12727 if test $ac_cv_func_getpgrp_void = yes; then
12729 cat >>confdefs.h
<<\_ACEOF
12730 #define GETPGRP_VOID 1
12737 for ac_func
in strftime
12739 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12740 echo "$as_me:$LINENO: checking for $ac_func" >&5
12741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12742 if eval "test \"\${$as_ac_var+set}\" = set"; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 cat >conftest.
$ac_ext <<_ACEOF
12746 #line $LINENO "configure"
12747 #include "confdefs.h"
12748 /* System header to define __stub macros and hopefully few prototypes,
12749 which can conflict with char $ac_func (); below. */
12750 #include <assert.h>
12751 /* Override any gcc2 internal prototype to avoid an error. */
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12776 rm -f conftest.
$ac_objext conftest
$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778 (eval $ac_link) 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try
='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
12790 echo "$as_me: failed program was:" >&5
12791 cat conftest.
$ac_ext >&5
12792 eval "$as_ac_var=no"
12794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12798 if test `eval echo '${'$as_ac_var'}'` = yes; then
12799 cat >>confdefs.h
<<_ACEOF
12800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12804 # strftime is in -lintl on SCO UNIX.
12805 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12806 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12807 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_check_lib_save_LIBS
=$LIBS
12811 LIBS
="-lintl $LIBS"
12812 cat >conftest.
$ac_ext <<_ACEOF
12813 #line $LINENO "configure"
12814 #include "confdefs.h"
12816 /* Override any gcc2 internal prototype to avoid an error. */
12820 /* We use char because int might match the return type of a gcc2
12821 builtin and then its argument prototype would still apply. */
12831 rm -f conftest.
$ac_objext conftest
$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833 (eval $ac_link) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try
='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_lib_intl_strftime
=yes
12845 echo "$as_me: failed program was:" >&5
12846 cat conftest.
$ac_ext >&5
12847 ac_cv_lib_intl_strftime
=no
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12850 LIBS
=$ac_check_lib_save_LIBS
12852 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12853 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12854 if test $ac_cv_lib_intl_strftime = yes; then
12855 cat >>confdefs.h
<<\_ACEOF
12856 #define HAVE_STRFTIME 1
12859 LIBS
="-lintl $LIBS"
12868 for ac_func
in grantpt
12870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_var+set}\" = set"; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 cat >conftest.
$ac_ext <<_ACEOF
12877 #line $LINENO "configure"
12878 #include "confdefs.h"
12879 /* System header to define __stub macros and hopefully few prototypes,
12880 which can conflict with char $ac_func (); below. */
12881 #include <assert.h>
12882 /* Override any gcc2 internal prototype to avoid an error. */
12886 /* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12894 /* The GNU C library defines this for functions which it implements
12895 to always fail with ENOSYS. Some functions are actually named
12896 something starting with __ and the normal name is an alias. */
12897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12907 rm -f conftest.
$ac_objext conftest
$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try
='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 eval "$as_ac_var=yes"
12921 echo "$as_me: failed program was:" >&5
12922 cat conftest.
$ac_ext >&5
12923 eval "$as_ac_var=no"
12925 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12929 if test `eval echo '${'$as_ac_var'}'` = yes; then
12930 cat >>confdefs.h
<<_ACEOF
12931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 # PTY-related GNU extensions.
12940 for ac_func
in getpt
12942 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12943 echo "$as_me:$LINENO: checking for $ac_func" >&5
12944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12945 if eval "test \"\${$as_ac_var+set}\" = set"; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 cat >conftest.
$ac_ext <<_ACEOF
12949 #line $LINENO "configure"
12950 #include "confdefs.h"
12951 /* System header to define __stub macros and hopefully few prototypes,
12952 which can conflict with char $ac_func (); below. */
12953 #include <assert.h>
12954 /* Override any gcc2 internal prototype to avoid an error. */
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12966 /* The GNU C library defines this for functions which it implements
12967 to always fail with ENOSYS. Some functions are actually named
12968 something starting with __ and the normal name is an alias. */
12969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12979 rm -f conftest.
$ac_objext conftest
$ac_exeext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12981 (eval $ac_link) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try
='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 eval "$as_ac_var=yes"
12993 echo "$as_me: failed program was:" >&5
12994 cat conftest.
$ac_ext >&5
12995 eval "$as_ac_var=no"
12997 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13001 if test `eval echo '${'$as_ac_var'}'` = yes; then
13002 cat >>confdefs.h
<<_ACEOF
13003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 # Check this now, so that we will NOT find the above functions in ncurses.
13011 # That is because we have not set up to link ncurses in lib-src.
13012 # It's better to believe a function is not available
13013 # than to expect to find it in ncurses.
13015 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13016 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13017 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 ac_check_lib_save_LIBS
=$LIBS
13021 LIBS
="-lncurses $LIBS"
13022 cat >conftest.
$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13026 /* Override any gcc2 internal prototype to avoid an error. */
13030 /* We use char because int might match the return type of a gcc2
13031 builtin and then its argument prototype would still apply. */
13041 rm -f conftest.
$ac_objext conftest
$ac_exeext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13043 (eval $ac_link) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try
='test -s conftest$ac_exeext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_lib_ncurses_tparm
=yes
13055 echo "$as_me: failed program was:" >&5
13056 cat conftest.
$ac_ext >&5
13057 ac_cv_lib_ncurses_tparm
=no
13059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13060 LIBS
=$ac_check_lib_save_LIBS
13062 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13063 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13064 if test $ac_cv_lib_ncurses_tparm = yes; then
13065 cat >>confdefs.h
<<_ACEOF
13066 #define HAVE_LIBNCURSES 1
13069 LIBS
="-lncurses $LIBS"
13074 # Do we need the Hesiod library to provide the support routines?
13075 if test "$with_hesiod" = yes ; then
13076 # Don't set $LIBS here -- see comments above.
13078 echo "$as_me:$LINENO: checking for res_send" >&5
13079 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13080 if test "${ac_cv_func_res_send+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 cat >conftest.
$ac_ext <<_ACEOF
13084 #line $LINENO "configure"
13085 #include "confdefs.h"
13086 /* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char res_send (); below. */
13088 #include <assert.h>
13089 /* Override any gcc2 internal prototype to avoid an error. */
13093 /* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13101 /* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104 #if defined (__stub_res_send) || defined (__stub___res_send)
13114 rm -f conftest.
$ac_objext conftest
$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try
='test -s conftest$ac_exeext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_func_res_send
=yes
13128 echo "$as_me: failed program was:" >&5
13129 cat conftest.
$ac_ext >&5
13130 ac_cv_func_res_send
=no
13132 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13134 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13135 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13136 if test $ac_cv_func_res_send = yes; then
13139 echo "$as_me:$LINENO: checking for __res_send" >&5
13140 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
13141 if test "${ac_cv_func___res_send+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 cat >conftest.
$ac_ext <<_ACEOF
13145 #line $LINENO "configure"
13146 #include "confdefs.h"
13147 /* System header to define __stub macros and hopefully few prototypes,
13148 which can conflict with char __res_send (); below. */
13149 #include <assert.h>
13150 /* Override any gcc2 internal prototype to avoid an error. */
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char __res_send ();
13162 /* The GNU C library defines this for functions which it implements
13163 to always fail with ENOSYS. Some functions are actually named
13164 something starting with __ and the normal name is an alias. */
13165 #if defined (__stub___res_send) || defined (__stub_____res_send)
13175 rm -f conftest.
$ac_objext conftest
$ac_exeext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13177 (eval $ac_link) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try
='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_func___res_send
=yes
13189 echo "$as_me: failed program was:" >&5
13190 cat conftest.
$ac_ext >&5
13191 ac_cv_func___res_send
=no
13193 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
13196 echo "${ECHO_T}$ac_cv_func___res_send" >&6
13197 if test $ac_cv_func___res_send = yes; then
13200 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
13201 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
13202 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_check_lib_save_LIBS
=$LIBS
13206 LIBS
="-lresolv $LIBS"
13207 cat >conftest.
$ac_ext <<_ACEOF
13208 #line $LINENO "configure"
13209 #include "confdefs.h"
13211 /* Override any gcc2 internal prototype to avoid an error. */
13215 /* We use char because int might match the return type of a gcc2
13216 builtin and then its argument prototype would still apply. */
13226 rm -f conftest.
$ac_objext conftest
$ac_exeext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228 (eval $ac_link) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try
='test -s conftest$ac_exeext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_resolv_res_send
=yes
13240 echo "$as_me: failed program was:" >&5
13241 cat conftest.
$ac_ext >&5
13242 ac_cv_lib_resolv_res_send
=no
13244 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13245 LIBS
=$ac_check_lib_save_LIBS
13247 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
13248 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
13249 if test $ac_cv_lib_resolv_res_send = yes; then
13252 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
13253 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
13254 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 ac_check_lib_save_LIBS
=$LIBS
13258 LIBS
="-lresolv $LIBS"
13259 cat >conftest.
$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13261 #include "confdefs.h"
13263 /* Override any gcc2 internal prototype to avoid an error. */
13267 /* We use char because int might match the return type of a gcc2
13268 builtin and then its argument prototype would still apply. */
13269 char __res_send ();
13278 rm -f conftest.
$ac_objext conftest
$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try
='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_lib_resolv___res_send
=yes
13292 echo "$as_me: failed program was:" >&5
13293 cat conftest.
$ac_ext >&5
13294 ac_cv_lib_resolv___res_send
=no
13296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13297 LIBS
=$ac_check_lib_save_LIBS
13299 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
13300 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
13301 if test $ac_cv_lib_resolv___res_send = yes; then
13311 if test "$resolv" = yes ; then
13314 cat >>confdefs.h
<<\_ACEOF
13315 #define HAVE_LIBRESOLV 1
13321 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13322 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13323 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 cat >conftest.
$ac_ext <<_ACEOF
13327 #line $LINENO "configure"
13328 #include "confdefs.h"
13329 /* System header to define __stub macros and hopefully few prototypes,
13330 which can conflict with char hes_getmailhost (); below. */
13331 #include <assert.h>
13332 /* Override any gcc2 internal prototype to avoid an error. */
13336 /* We use char because int might match the return type of a gcc2
13337 builtin and then its argument prototype would still apply. */
13338 char hes_getmailhost ();
13344 /* The GNU C library defines this for functions which it implements
13345 to always fail with ENOSYS. Some functions are actually named
13346 something starting with __ and the normal name is an alias. */
13347 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13350 f = hes_getmailhost;
13357 rm -f conftest.
$ac_objext conftest
$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try
='test -s conftest$ac_exeext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_func_hes_getmailhost
=yes
13371 echo "$as_me: failed program was:" >&5
13372 cat conftest.
$ac_ext >&5
13373 ac_cv_func_hes_getmailhost
=no
13375 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13377 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13378 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13379 if test $ac_cv_func_hes_getmailhost = yes; then
13382 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13383 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13384 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 ac_check_lib_save_LIBS
=$LIBS
13388 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13389 cat >conftest.
$ac_ext <<_ACEOF
13390 #line $LINENO "configure"
13391 #include "confdefs.h"
13393 /* Override any gcc2 internal prototype to avoid an error. */
13397 /* We use char because int might match the return type of a gcc2
13398 builtin and then its argument prototype would still apply. */
13399 char hes_getmailhost ();
13403 hes_getmailhost ();
13408 rm -f conftest.
$ac_objext conftest
$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410 (eval $ac_link) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try
='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_lib_hesiod_hes_getmailhost
=yes
13422 echo "$as_me: failed program was:" >&5
13423 cat conftest.
$ac_ext >&5
13424 ac_cv_lib_hesiod_hes_getmailhost
=no
13426 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13427 LIBS
=$ac_check_lib_save_LIBS
13429 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13430 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13431 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13433 cat >>confdefs.h
<<\_ACEOF
13434 #define HAVE_LIBHESIOD 1
13445 # These tell us which Kerberos-related libraries to use.
13446 if test "${with_kerberos+set}" = set; then
13448 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13449 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13450 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13454 LIBS
="-lcom_err $LIBS"
13455 cat >conftest.
$ac_ext <<_ACEOF
13456 #line $LINENO "configure"
13457 #include "confdefs.h"
13459 /* Override any gcc2 internal prototype to avoid an error. */
13463 /* We use char because int might match the return type of a gcc2
13464 builtin and then its argument prototype would still apply. */
13474 rm -f conftest.
$ac_objext conftest
$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try
='test -s conftest$ac_exeext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_lib_com_err_com_err
=yes
13488 echo "$as_me: failed program was:" >&5
13489 cat conftest.
$ac_ext >&5
13490 ac_cv_lib_com_err_com_err
=no
13492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13493 LIBS
=$ac_check_lib_save_LIBS
13495 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13496 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13497 if test $ac_cv_lib_com_err_com_err = yes; then
13498 cat >>confdefs.h
<<_ACEOF
13499 #define HAVE_LIBCOM_ERR 1
13502 LIBS
="-lcom_err $LIBS"
13507 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13508 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13509 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13510 echo $ECHO_N "(cached) $ECHO_C" >&6
13512 ac_check_lib_save_LIBS
=$LIBS
13513 LIBS
="-lk5crypto $LIBS"
13514 cat >conftest.
$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13518 /* Override any gcc2 internal prototype to avoid an error. */
13522 /* We use char because int might match the return type of a gcc2
13523 builtin and then its argument prototype would still apply. */
13524 char mit_des_cbc_encrypt ();
13528 mit_des_cbc_encrypt ();
13533 rm -f conftest.
$ac_objext conftest
$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try
='test -s conftest$ac_exeext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.
$ac_ext >&5
13549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13551 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13552 LIBS
=$ac_check_lib_save_LIBS
13554 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13555 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13556 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13557 cat >>confdefs.h
<<_ACEOF
13558 #define HAVE_LIBK5CRYPTO 1
13561 LIBS
="-lk5crypto $LIBS"
13566 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13567 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13568 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 ac_check_lib_save_LIBS
=$LIBS
13572 LIBS
="-lcrypto $LIBS"
13573 cat >conftest.
$ac_ext <<_ACEOF
13574 #line $LINENO "configure"
13575 #include "confdefs.h"
13577 /* Override any gcc2 internal prototype to avoid an error. */
13581 /* We use char because int might match the return type of a gcc2
13582 builtin and then its argument prototype would still apply. */
13583 char mit_des_cbc_encrypt ();
13587 mit_des_cbc_encrypt ();
13592 rm -f conftest.
$ac_objext conftest
$ac_exeext
13593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13594 (eval $ac_link) 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try
='test -s conftest$ac_exeext'
13599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600 (eval $ac_try) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); }; }; then
13604 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13606 echo "$as_me: failed program was:" >&5
13607 cat conftest.
$ac_ext >&5
13608 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13611 LIBS
=$ac_check_lib_save_LIBS
13613 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13614 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13615 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13616 cat >>confdefs.h
<<_ACEOF
13617 #define HAVE_LIBCRYPTO 1
13620 LIBS
="-lcrypto $LIBS"
13625 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13626 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13627 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 ac_check_lib_save_LIBS
=$LIBS
13631 LIBS
="-lkrb5 $LIBS"
13632 cat >conftest.
$ac_ext <<_ACEOF
13633 #line $LINENO "configure"
13634 #include "confdefs.h"
13636 /* Override any gcc2 internal prototype to avoid an error. */
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13642 char krb5_init_context ();
13646 krb5_init_context ();
13651 rm -f conftest.
$ac_objext conftest
$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try
='test -s conftest$ac_exeext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_cv_lib_krb5_krb5_init_context
=yes
13665 echo "$as_me: failed program was:" >&5
13666 cat conftest.
$ac_ext >&5
13667 ac_cv_lib_krb5_krb5_init_context
=no
13669 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13670 LIBS
=$ac_check_lib_save_LIBS
13672 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13673 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13674 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13675 cat >>confdefs.h
<<_ACEOF
13676 #define HAVE_LIBKRB5 1
13679 LIBS
="-lkrb5 $LIBS"
13683 if test "${with_kerberos5+set}" != set; then
13685 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13686 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13687 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 ac_check_lib_save_LIBS
=$LIBS
13691 LIBS
="-ldes425 $LIBS"
13692 cat >conftest.
$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 #include "confdefs.h"
13696 /* Override any gcc2 internal prototype to avoid an error. */
13700 /* We use char because int might match the return type of a gcc2
13701 builtin and then its argument prototype would still apply. */
13702 char des_cbc_encrypt ();
13706 des_cbc_encrypt ();
13711 rm -f conftest.
$ac_objext conftest
$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try
='test -s conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 ac_cv_lib_des425_des_cbc_encrypt
=yes
13725 echo "$as_me: failed program was:" >&5
13726 cat conftest.
$ac_ext >&5
13727 ac_cv_lib_des425_des_cbc_encrypt
=no
13729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13730 LIBS
=$ac_check_lib_save_LIBS
13732 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13733 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13734 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13735 cat >>confdefs.h
<<_ACEOF
13736 #define HAVE_LIBDES425 1
13739 LIBS
="-ldes425 $LIBS"
13743 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13744 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13745 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 ac_check_lib_save_LIBS
=$LIBS
13750 cat >conftest.
$ac_ext <<_ACEOF
13751 #line $LINENO "configure"
13752 #include "confdefs.h"
13754 /* Override any gcc2 internal prototype to avoid an error. */
13758 /* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760 char des_cbc_encrypt ();
13764 des_cbc_encrypt ();
13769 rm -f conftest.
$ac_objext conftest
$ac_exeext
13770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13771 (eval $ac_link) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
13775 { ac_try
='test -s conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_lib_des_des_cbc_encrypt
=yes
13783 echo "$as_me: failed program was:" >&5
13784 cat conftest.
$ac_ext >&5
13785 ac_cv_lib_des_des_cbc_encrypt
=no
13787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13788 LIBS
=$ac_check_lib_save_LIBS
13790 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13791 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13792 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13793 cat >>confdefs.h
<<_ACEOF
13794 #define HAVE_LIBDES 1
13804 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13805 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13806 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_check_lib_save_LIBS
=$LIBS
13810 LIBS
="-lkrb4 $LIBS"
13811 cat >conftest.
$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 #include "confdefs.h"
13815 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13821 char krb_get_cred ();
13830 rm -f conftest.
$ac_objext conftest
$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try
='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_lib_krb4_krb_get_cred
=yes
13844 echo "$as_me: failed program was:" >&5
13845 cat conftest.
$ac_ext >&5
13846 ac_cv_lib_krb4_krb_get_cred
=no
13848 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13849 LIBS
=$ac_check_lib_save_LIBS
13851 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13852 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13853 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13854 cat >>confdefs.h
<<_ACEOF
13855 #define HAVE_LIBKRB4 1
13858 LIBS
="-lkrb4 $LIBS"
13862 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13863 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13864 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 ac_check_lib_save_LIBS
=$LIBS
13869 cat >conftest.
$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 #include "confdefs.h"
13873 /* Override any gcc2 internal prototype to avoid an error. */
13877 /* We use char because int might match the return type of a gcc2
13878 builtin and then its argument prototype would still apply. */
13879 char krb_get_cred ();
13888 rm -f conftest.
$ac_objext conftest
$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try
='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_lib_krb_krb_get_cred
=yes
13902 echo "$as_me: failed program was:" >&5
13903 cat conftest.
$ac_ext >&5
13904 ac_cv_lib_krb_krb_get_cred
=no
13906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13907 LIBS
=$ac_check_lib_save_LIBS
13909 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13910 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13911 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13912 cat >>confdefs.h
<<_ACEOF
13913 #define HAVE_LIBKRB 1
13924 if test "${with_kerberos5+set}" = set; then
13926 for ac_header
in krb5.h
13928 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13938 # Is the header compilable?
13939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941 cat >conftest.
$ac_ext <<_ACEOF
13942 #line $LINENO "configure"
13943 #include "confdefs.h"
13944 $ac_includes_default
13945 #include <$ac_header>
13947 rm -f conftest.
$ac_objext
13948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try
='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_header_compiler
=yes
13961 echo "$as_me: failed program was:" >&5
13962 cat conftest.
$ac_ext >&5
13963 ac_header_compiler
=no
13965 rm -f conftest.
$ac_objext conftest.
$ac_ext
13966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13967 echo "${ECHO_T}$ac_header_compiler" >&6
13969 # Is the header present?
13970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13972 cat >conftest.
$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13974 #include "confdefs.h"
13975 #include <$ac_header>
13977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13980 grep -v '^ *+' conftest.er1
>conftest.err
13982 cat conftest.err
>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev
/null
; then
13985 if test -s conftest.err
; then
13986 ac_cpp_err
=$ac_c_preproc_warn_flag
13993 if test -z "$ac_cpp_err"; then
13994 ac_header_preproc
=yes
13996 echo "$as_me: failed program was:" >&5
13997 cat conftest.
$ac_ext >&5
13998 ac_header_preproc
=no
14000 rm -f conftest.err conftest.
$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14002 echo "${ECHO_T}$ac_header_preproc" >&6
14004 # So? What about this header?
14005 case $ac_header_compiler:$ac_header_preproc in
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14019 echo "$as_me:$LINENO: checking for $ac_header" >&5
14020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 eval "$as_ac_Header=$ac_header_preproc"
14026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031 cat >>confdefs.h
<<_ACEOF
14032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14041 for ac_header
in des.h
14043 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14045 echo "$as_me:$LINENO: checking for $ac_header" >&5
14046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 # Is the header compilable?
14054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14056 cat >conftest.
$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 #include "confdefs.h"
14059 $ac_includes_default
14060 #include <$ac_header>
14062 rm -f conftest.
$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try
='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_header_compiler
=yes
14076 echo "$as_me: failed program was:" >&5
14077 cat conftest.
$ac_ext >&5
14078 ac_header_compiler
=no
14080 rm -f conftest.
$ac_objext conftest.
$ac_ext
14081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6
14084 # Is the header present?
14085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14087 cat >conftest.
$ac_ext <<_ACEOF
14088 #line $LINENO "configure"
14089 #include "confdefs.h"
14090 #include <$ac_header>
14092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14093 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14095 grep -v '^ *+' conftest.er1
>conftest.err
14097 cat conftest.err
>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } >/dev
/null
; then
14100 if test -s conftest.err
; then
14101 ac_cpp_err
=$ac_c_preproc_warn_flag
14108 if test -z "$ac_cpp_err"; then
14109 ac_header_preproc
=yes
14111 echo "$as_me: failed program was:" >&5
14112 cat conftest.
$ac_ext >&5
14113 ac_header_preproc
=no
14115 rm -f conftest.err conftest.
$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc in
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14134 echo "$as_me:$LINENO: checking for $ac_header" >&5
14135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 eval "$as_ac_Header=$ac_header_preproc"
14141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14146 cat >>confdefs.h
<<_ACEOF
14147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14152 for ac_header
in kerberosIV
/des.h
14154 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14156 echo "$as_me:$LINENO: checking for $ac_header" >&5
14157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14164 # Is the header compilable?
14165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14167 cat >conftest.
$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170 $ac_includes_default
14171 #include <$ac_header>
14173 rm -f conftest.
$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175 (eval $ac_compile) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try
='test -s conftest.$ac_objext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_header_compiler
=yes
14187 echo "$as_me: failed program was:" >&5
14188 cat conftest.
$ac_ext >&5
14189 ac_header_compiler
=no
14191 rm -f conftest.
$ac_objext conftest.
$ac_ext
14192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14193 echo "${ECHO_T}$ac_header_compiler" >&6
14195 # Is the header present?
14196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14198 cat >conftest.
$ac_ext <<_ACEOF
14199 #line $LINENO "configure"
14200 #include "confdefs.h"
14201 #include <$ac_header>
14203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14206 grep -v '^ *+' conftest.er1
>conftest.err
14208 cat conftest.err
>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } >/dev
/null
; then
14211 if test -s conftest.err
; then
14212 ac_cpp_err
=$ac_c_preproc_warn_flag
14219 if test -z "$ac_cpp_err"; then
14220 ac_header_preproc
=yes
14222 echo "$as_me: failed program was:" >&5
14223 cat conftest.
$ac_ext >&5
14224 ac_header_preproc
=no
14226 rm -f conftest.err conftest.
$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14228 echo "${ECHO_T}$ac_header_preproc" >&6
14230 # So? What about this header?
14231 case $ac_header_compiler:$ac_header_preproc in
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 eval "$as_ac_Header=$ac_header_preproc"
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h
<<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14263 for ac_header
in kerberos
/des.h
14265 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267 echo "$as_me:$LINENO: checking for $ac_header" >&5
14268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14275 # Is the header compilable?
14276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14278 cat >conftest.
$ac_ext <<_ACEOF
14279 #line $LINENO "configure"
14280 #include "confdefs.h"
14281 $ac_includes_default
14282 #include <$ac_header>
14284 rm -f conftest.
$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try
='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_header_compiler
=yes
14298 echo "$as_me: failed program was:" >&5
14299 cat conftest.
$ac_ext >&5
14300 ac_header_compiler
=no
14302 rm -f conftest.
$ac_objext conftest.
$ac_ext
14303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14304 echo "${ECHO_T}$ac_header_compiler" >&6
14306 # Is the header present?
14307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14309 cat >conftest.
$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 #include <$ac_header>
14314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14317 grep -v '^ *+' conftest.er1
>conftest.err
14319 cat conftest.err
>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } >/dev
/null
; then
14322 if test -s conftest.err
; then
14323 ac_cpp_err
=$ac_c_preproc_warn_flag
14330 if test -z "$ac_cpp_err"; then
14331 ac_header_preproc
=yes
14333 echo "$as_me: failed program was:" >&5
14334 cat conftest.
$ac_ext >&5
14335 ac_header_preproc
=no
14337 rm -f conftest.err conftest.
$ac_ext
14338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14339 echo "${ECHO_T}$ac_header_preproc" >&6
14341 # So? What about this header?
14342 case $ac_header_compiler:$ac_header_preproc in
14344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14356 echo "$as_me:$LINENO: checking for $ac_header" >&5
14357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 eval "$as_ac_Header=$ac_header_preproc"
14363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368 cat >>confdefs.h
<<_ACEOF
14369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14385 for ac_header
in krb.h
14387 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389 echo "$as_me:$LINENO: checking for $ac_header" >&5
14390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14397 # Is the header compilable?
14398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14400 cat >conftest.
$ac_ext <<_ACEOF
14401 #line $LINENO "configure"
14402 #include "confdefs.h"
14403 $ac_includes_default
14404 #include <$ac_header>
14406 rm -f conftest.
$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try
='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_header_compiler
=yes
14420 echo "$as_me: failed program was:" >&5
14421 cat conftest.
$ac_ext >&5
14422 ac_header_compiler
=no
14424 rm -f conftest.
$ac_objext conftest.
$ac_ext
14425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6
14428 # Is the header present?
14429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14431 cat >conftest.
$ac_ext <<_ACEOF
14432 #line $LINENO "configure"
14433 #include "confdefs.h"
14434 #include <$ac_header>
14436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14439 grep -v '^ *+' conftest.er1
>conftest.err
14441 cat conftest.err
>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } >/dev
/null
; then
14444 if test -s conftest.err
; then
14445 ac_cpp_err
=$ac_c_preproc_warn_flag
14452 if test -z "$ac_cpp_err"; then
14453 ac_header_preproc
=yes
14455 echo "$as_me: failed program was:" >&5
14456 cat conftest.
$ac_ext >&5
14457 ac_header_preproc
=no
14459 rm -f conftest.err conftest.
$ac_ext
14460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14461 echo "${ECHO_T}$ac_header_preproc" >&6
14463 # So? What about this header?
14464 case $ac_header_compiler:$ac_header_preproc in
14466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14478 echo "$as_me:$LINENO: checking for $ac_header" >&5
14479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 eval "$as_ac_Header=$ac_header_preproc"
14485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14490 cat >>confdefs.h
<<_ACEOF
14491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14496 for ac_header
in kerberosIV
/krb.h
14498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14500 echo "$as_me:$LINENO: checking for $ac_header" >&5
14501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14508 # Is the header compilable?
14509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14511 cat >conftest.
$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 #include "confdefs.h"
14514 $ac_includes_default
14515 #include <$ac_header>
14517 rm -f conftest.
$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try
='test -s conftest.$ac_objext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_header_compiler
=yes
14531 echo "$as_me: failed program was:" >&5
14532 cat conftest.
$ac_ext >&5
14533 ac_header_compiler
=no
14535 rm -f conftest.
$ac_objext conftest.
$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14542 cat >conftest.
$ac_ext <<_ACEOF
14543 #line $LINENO "configure"
14544 #include "confdefs.h"
14545 #include <$ac_header>
14547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14550 grep -v '^ *+' conftest.er1
>conftest.err
14552 cat conftest.err
>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } >/dev
/null
; then
14555 if test -s conftest.err
; then
14556 ac_cpp_err
=$ac_c_preproc_warn_flag
14563 if test -z "$ac_cpp_err"; then
14564 ac_header_preproc
=yes
14566 echo "$as_me: failed program was:" >&5
14567 cat conftest.
$ac_ext >&5
14568 ac_header_preproc
=no
14570 rm -f conftest.err conftest.
$ac_ext
14571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14572 echo "${ECHO_T}$ac_header_preproc" >&6
14574 # So? What about this header?
14575 case $ac_header_compiler:$ac_header_preproc in
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14589 echo "$as_me:$LINENO: checking for $ac_header" >&5
14590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 eval "$as_ac_Header=$ac_header_preproc"
14596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14601 cat >>confdefs.h
<<_ACEOF
14602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14607 for ac_header
in kerberos
/krb.h
14609 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14619 # Is the header compilable?
14620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14622 cat >conftest.
$ac_ext <<_ACEOF
14623 #line $LINENO "configure"
14624 #include "confdefs.h"
14625 $ac_includes_default
14626 #include <$ac_header>
14628 rm -f conftest.
$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630 (eval $ac_compile) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try
='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_header_compiler
=yes
14642 echo "$as_me: failed program was:" >&5
14643 cat conftest.
$ac_ext >&5
14644 ac_header_compiler
=no
14646 rm -f conftest.
$ac_objext conftest.
$ac_ext
14647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 echo "${ECHO_T}$ac_header_compiler" >&6
14650 # Is the header present?
14651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14653 cat >conftest.
$ac_ext <<_ACEOF
14654 #line $LINENO "configure"
14655 #include "confdefs.h"
14656 #include <$ac_header>
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14661 grep -v '^ *+' conftest.er1
>conftest.err
14663 cat conftest.err
>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev
/null
; then
14666 if test -s conftest.err
; then
14667 ac_cpp_err
=$ac_c_preproc_warn_flag
14674 if test -z "$ac_cpp_err"; then
14675 ac_header_preproc
=yes
14677 echo "$as_me: failed program was:" >&5
14678 cat conftest.
$ac_ext >&5
14679 ac_header_preproc
=no
14681 rm -f conftest.err conftest.
$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14683 echo "${ECHO_T}$ac_header_preproc" >&6
14685 # So? What about this header?
14686 case $ac_header_compiler:$ac_header_preproc in
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14700 echo "$as_me:$LINENO: checking for $ac_header" >&5
14701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 eval "$as_ac_Header=$ac_header_preproc"
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14712 cat >>confdefs.h
<<_ACEOF
14713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14730 for ac_header
in com_err.h
14732 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14734 echo "$as_me:$LINENO: checking for $ac_header" >&5
14735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14742 # Is the header compilable?
14743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14745 cat >conftest.
$ac_ext <<_ACEOF
14746 #line $LINENO "configure"
14747 #include "confdefs.h"
14748 $ac_includes_default
14749 #include <$ac_header>
14751 rm -f conftest.
$ac_objext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
14757 { ac_try
='test -s conftest.$ac_objext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_header_compiler
=yes
14765 echo "$as_me: failed program was:" >&5
14766 cat conftest.
$ac_ext >&5
14767 ac_header_compiler
=no
14769 rm -f conftest.
$ac_objext conftest.
$ac_ext
14770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14771 echo "${ECHO_T}$ac_header_compiler" >&6
14773 # Is the header present?
14774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14776 cat >conftest.
$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 #include "confdefs.h"
14779 #include <$ac_header>
14781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14784 grep -v '^ *+' conftest.er1
>conftest.err
14786 cat conftest.err
>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } >/dev
/null
; then
14789 if test -s conftest.err
; then
14790 ac_cpp_err
=$ac_c_preproc_warn_flag
14797 if test -z "$ac_cpp_err"; then
14798 ac_header_preproc
=yes
14800 echo "$as_me: failed program was:" >&5
14801 cat conftest.
$ac_ext >&5
14802 ac_header_preproc
=no
14804 rm -f conftest.err conftest.
$ac_ext
14805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806 echo "${ECHO_T}$ac_header_preproc" >&6
14808 # So? What about this header?
14809 case $ac_header_compiler:$ac_header_preproc in
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14823 echo "$as_me:$LINENO: checking for $ac_header" >&5
14824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 eval "$as_ac_Header=$ac_header_preproc"
14830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14835 cat >>confdefs.h
<<_ACEOF
14836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 # Solaris requires -lintl if you want strerror (which calls dgettext)
14846 # to return localized messages.
14848 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14849 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14850 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 ac_check_lib_save_LIBS
=$LIBS
14854 LIBS
="-lintl $LIBS"
14855 cat >conftest.
$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 #include "confdefs.h"
14859 /* Override any gcc2 internal prototype to avoid an error. */
14863 /* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14874 rm -f conftest.
$ac_objext conftest
$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try
='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_intl_dgettext
=yes
14888 echo "$as_me: failed program was:" >&5
14889 cat conftest.
$ac_ext >&5
14890 ac_cv_lib_intl_dgettext
=no
14892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14893 LIBS
=$ac_check_lib_save_LIBS
14895 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14896 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14897 if test $ac_cv_lib_intl_dgettext = yes; then
14898 cat >>confdefs.h
<<_ACEOF
14899 #define HAVE_LIBINTL 1
14902 LIBS
="-lintl $LIBS"
14907 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14908 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14909 if test "${emacs_cv_localtime_cache+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 if test x
$ac_cv_func_tzset = xyes
; then
14913 if test "$cross_compiling" = yes; then
14914 # If we have tzset, assume the worst when cross-compiling.
14915 emacs_cv_localtime_cache
=yes
14917 cat >conftest.
$ac_ext <<_ACEOF
14918 #line $LINENO "configure"
14919 #include "confdefs.h"
14921 extern char **environ;
14925 for (to = from = environ; (*to = *from); from++)
14926 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14929 char TZ_GMT0[] = "TZ=GMT0";
14930 char TZ_PST8[] = "TZ=PST8";
14933 time_t now = time ((time_t *) 0);
14934 int hour_GMT0, hour_unset;
14935 if (putenv (TZ_GMT0) != 0)
14937 hour_GMT0 = localtime (&now)->tm_hour;
14939 hour_unset = localtime (&now)->tm_hour;
14940 if (putenv (TZ_PST8) != 0)
14942 if (localtime (&now)->tm_hour == hour_GMT0)
14945 if (localtime (&now)->tm_hour != hour_unset)
14950 rm -f conftest
$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957 (eval $ac_try) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); }; }; then
14961 emacs_cv_localtime_cache
=no
14963 echo "$as_me: program exited with status $ac_status" >&5
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.
$ac_ext >&5
14966 ( exit $ac_status )
14967 emacs_cv_localtime_cache
=yes
14969 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14972 # If we lack tzset, report that localtime does not cache TZ,
14973 # since we can't invalidate the cache if we don't have tzset.
14974 emacs_cv_localtime_cache
=no
14977 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14978 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14979 if test $emacs_cv_localtime_cache = yes; then
14981 cat >>confdefs.h
<<\_ACEOF
14982 #define LOCALTIME_CACHE 1
14987 if test "x$HAVE_TIMEVAL" = xyes
; then
14989 for ac_func
in gettimeofday
14991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14992 echo "$as_me:$LINENO: checking for $ac_func" >&5
14993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14994 if eval "test \"\${$as_ac_var+set}\" = set"; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 cat >conftest.
$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func (); below. */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15007 /* We use char because int might match the return type of a gcc2
15008 builtin and then its argument prototype would still apply. */
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15028 rm -f conftest.
$ac_objext conftest
$ac_exeext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15030 (eval $ac_link) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try
='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 eval "$as_ac_var=yes"
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.
$ac_ext >&5
15044 eval "$as_ac_var=no"
15046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15050 if test `eval echo '${'$as_ac_var'}'` = yes; then
15051 cat >>confdefs.h
<<_ACEOF
15052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15058 if test $ac_cv_func_gettimeofday = yes; then
15059 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
15060 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
15061 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 cat >conftest.
$ac_ext <<_ACEOF
15065 #line $LINENO "configure"
15066 #include "confdefs.h"
15068 #ifdef TIME_WITH_SYS_TIME
15069 #include <sys/time.h>
15072 #ifdef HAVE_SYS_TIME_H
15073 #include <sys/time.h>
15081 struct timeval time;
15082 gettimeofday (&time, 0);
15087 rm -f conftest.
$ac_objext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try
='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 emacs_cv_gettimeofday_two_arguments
=yes
15101 echo "$as_me: failed program was:" >&5
15102 cat conftest.
$ac_ext >&5
15103 emacs_cv_gettimeofday_two_arguments
=no
15105 rm -f conftest.
$ac_objext conftest.
$ac_ext
15107 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
15108 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
15109 if test $emacs_cv_gettimeofday_two_arguments = no
; then
15111 cat >>confdefs.h
<<\_ACEOF
15112 #define GETTIMEOFDAY_ONE_ARGUMENT 1
15119 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15120 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15121 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
15122 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 cat >conftest.
$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 #include "confdefs.h"
15128 #include <sys/types.h>
15129 #include <$ac_cv_struct_tm>
15135 static struct tm ac_aggr;
15136 if (ac_aggr.tm_zone)
15142 rm -f conftest.
$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try
='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_cv_member_struct_tm_tm_zone
=yes
15156 echo "$as_me: failed program was:" >&5
15157 cat conftest.
$ac_ext >&5
15158 cat >conftest.
$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 #include "confdefs.h"
15161 #include <sys/types.h>
15162 #include <$ac_cv_struct_tm>
15168 static struct tm ac_aggr;
15169 if (sizeof ac_aggr.tm_zone)
15175 rm -f conftest.
$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try
='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_member_struct_tm_tm_zone
=yes
15189 echo "$as_me: failed program was:" >&5
15190 cat conftest.
$ac_ext >&5
15191 ac_cv_member_struct_tm_tm_zone
=no
15193 rm -f conftest.
$ac_objext conftest.
$ac_ext
15195 rm -f conftest.
$ac_objext conftest.
$ac_ext
15197 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15198 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
15199 if test $ac_cv_member_struct_tm_tm_zone = yes; then
15201 cat >>confdefs.h
<<_ACEOF
15202 #define HAVE_STRUCT_TM_TM_ZONE 1
15208 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15210 cat >>confdefs.h
<<\_ACEOF
15211 #define HAVE_TM_ZONE 1
15215 echo "$as_me:$LINENO: checking for tzname" >&5
15216 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
15217 if test "${ac_cv_var_tzname+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 cat >conftest.
$ac_ext <<_ACEOF
15221 #line $LINENO "configure"
15222 #include "confdefs.h"
15224 #ifndef tzname /* For SGI. */
15225 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15236 rm -f conftest.
$ac_objext conftest
$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try
='test -s conftest$ac_exeext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 ac_cv_var_tzname
=yes
15250 echo "$as_me: failed program was:" >&5
15251 cat conftest.
$ac_ext >&5
15252 ac_cv_var_tzname
=no
15254 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15256 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15257 echo "${ECHO_T}$ac_cv_var_tzname" >&6
15258 if test $ac_cv_var_tzname = yes; then
15260 cat >>confdefs.h
<<\_ACEOF
15261 #define HAVE_TZNAME 1
15268 if test "$ac_cv_func_gettimeofday" = yes; then
15269 echo "$as_me:$LINENO: checking for struct timezone" >&5
15270 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
15271 if test "${emacs_cv_struct_timezone+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 cat >conftest.
$ac_ext <<_ACEOF
15275 #line $LINENO "configure"
15276 #include "confdefs.h"
15277 #include <sys/time.h>
15281 struct timezone tz;
15286 rm -f conftest.
$ac_objext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15288 (eval $ac_compile) 2>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try
='test -s conftest.$ac_objext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 if test "$cross_compiling" = yes; then
15299 emacs_cv_struct_timezone
=yes
15301 cat >conftest.
$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 #include "confdefs.h"
15305 #ifdef TIME_WITH_SYS_TIME
15306 #include <sys/time.h>
15309 #ifdef HAVE_SYS_TIME_H
15310 #include <sys/time.h>
15316 struct timeval time;
15317 struct timezone dummy;
15318 exit (gettimeofday (&time, &dummy));
15321 rm -f conftest
$ac_exeext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 emacs_cv_struct_timezone
=yes
15334 echo "$as_me: program exited with status $ac_status" >&5
15335 echo "$as_me: failed program was:" >&5
15336 cat conftest.
$ac_ext >&5
15337 ( exit $ac_status )
15338 emacs_cv_struct_timezone
=no
15340 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15343 echo "$as_me: failed program was:" >&5
15344 cat conftest.
$ac_ext >&5
15345 emacs_cv_struct_timezone
=no
15347 rm -f conftest.
$ac_objext conftest.
$ac_ext
15349 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
15350 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
15354 echo "$as_me:$LINENO: checking for socket" >&5
15355 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15356 if test "${ac_cv_func_socket+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 cat >conftest.
$ac_ext <<_ACEOF
15360 #line $LINENO "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char socket (); below. */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error. */
15369 /* We use char because int might match the return type of a gcc2
15370 builtin and then its argument prototype would still apply. */
15377 /* The GNU C library defines this for functions which it implements
15378 to always fail with ENOSYS. Some functions are actually named
15379 something starting with __ and the normal name is an alias. */
15380 #if defined (__stub_socket) || defined (__stub___socket)
15390 rm -f conftest.
$ac_objext conftest
$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392 (eval $ac_link) 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } &&
15396 { ac_try
='test -s conftest$ac_exeext'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_cv_func_socket
=yes
15404 echo "$as_me: failed program was:" >&5
15405 cat conftest.
$ac_ext >&5
15406 ac_cv_func_socket
=no
15408 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15410 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15411 echo "${ECHO_T}$ac_cv_func_socket" >&6
15412 if test $ac_cv_func_socket = yes; then
15418 if test $ok_so_far = yes; then
15419 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15420 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15421 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15422 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15426 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15428 # Is the header compilable?
15429 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15430 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15431 cat >conftest.
$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 #include "confdefs.h"
15434 $ac_includes_default
15435 #include <netinet/in.h>
15437 rm -f conftest.
$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439 (eval $ac_compile) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try
='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_header_compiler
=yes
15451 echo "$as_me: failed program was:" >&5
15452 cat conftest.
$ac_ext >&5
15453 ac_header_compiler
=no
15455 rm -f conftest.
$ac_objext conftest.
$ac_ext
15456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15457 echo "${ECHO_T}$ac_header_compiler" >&6
15459 # Is the header present?
15460 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15461 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15462 cat >conftest.
$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 #include "confdefs.h"
15465 #include <netinet/in.h>
15467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15470 grep -v '^ *+' conftest.er1
>conftest.err
15472 cat conftest.err
>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } >/dev
/null
; then
15475 if test -s conftest.err
; then
15476 ac_cpp_err
=$ac_c_preproc_warn_flag
15483 if test -z "$ac_cpp_err"; then
15484 ac_header_preproc
=yes
15486 echo "$as_me: failed program was:" >&5
15487 cat conftest.
$ac_ext >&5
15488 ac_header_preproc
=no
15490 rm -f conftest.err conftest.
$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15492 echo "${ECHO_T}$ac_header_preproc" >&6
15494 # So? What about this header?
15495 case $ac_header_compiler:$ac_header_preproc in
15497 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15498 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15500 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15503 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15505 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15509 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15510 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15511 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 ac_cv_header_netinet_in_h
=$ac_header_preproc
15516 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15517 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15520 if test $ac_cv_header_netinet_in_h = yes; then
15528 if test $ok_so_far = yes; then
15529 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15530 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15531 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15532 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15536 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15538 # Is the header compilable?
15539 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15540 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15541 cat >conftest.
$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 #include <arpa/inet.h>
15547 rm -f conftest.
$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try
='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_header_compiler
=yes
15561 echo "$as_me: failed program was:" >&5
15562 cat conftest.
$ac_ext >&5
15563 ac_header_compiler
=no
15565 rm -f conftest.
$ac_objext conftest.
$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567 echo "${ECHO_T}$ac_header_compiler" >&6
15569 # Is the header present?
15570 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15571 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15572 cat >conftest.
$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15574 #include "confdefs.h"
15575 #include <arpa/inet.h>
15577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15578 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15580 grep -v '^ *+' conftest.er1
>conftest.err
15582 cat conftest.err
>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } >/dev
/null
; then
15585 if test -s conftest.err
; then
15586 ac_cpp_err
=$ac_c_preproc_warn_flag
15593 if test -z "$ac_cpp_err"; then
15594 ac_header_preproc
=yes
15596 echo "$as_me: failed program was:" >&5
15597 cat conftest.
$ac_ext >&5
15598 ac_header_preproc
=no
15600 rm -f conftest.err conftest.
$ac_ext
15601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15602 echo "${ECHO_T}$ac_header_preproc" >&6
15604 # So? What about this header?
15605 case $ac_header_compiler:$ac_header_preproc in
15607 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15608 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15612 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15613 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15615 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15617 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15619 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15620 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15621 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 ac_cv_header_arpa_inet_h
=$ac_header_preproc
15626 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15627 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15630 if test $ac_cv_header_arpa_inet_h = yes; then
15638 if test $ok_so_far = yes; then
15640 cat >>confdefs.h
<<\_ACEOF
15641 #define HAVE_INET_SOCKETS 1
15646 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15648 cat >>confdefs.h
<<\_ACEOF
15649 #define HAVE_AIX_SMT_EXP 1
15654 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15655 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15656 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15657 echo "$as_me:$LINENO: result: yes" >&5
15658 echo "${ECHO_T}yes" >&6
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define HAVE_DEV_PTMX 1
15665 echo "$as_me:$LINENO: result: no" >&5
15666 echo "${ECHO_T}no" >&6
15669 echo "$as_me:$LINENO: checking for pid_t" >&5
15670 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15671 if test "${ac_cv_type_pid_t+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 cat >conftest.
$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15683 if (sizeof (pid_t))
15689 rm -f conftest.
$ac_objext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15691 (eval $ac_compile) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try
='test -s conftest.$ac_objext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_cv_type_pid_t
=yes
15703 echo "$as_me: failed program was:" >&5
15704 cat conftest.
$ac_ext >&5
15705 ac_cv_type_pid_t
=no
15707 rm -f conftest.
$ac_objext conftest.
$ac_ext
15709 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15710 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15711 if test $ac_cv_type_pid_t = yes; then
15715 cat >>confdefs.h
<<_ACEOF
15723 for ac_header
in unistd.h vfork.h
15725 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo "$as_me:$LINENO: checking for $ac_header" >&5
15728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15735 # Is the header compilable?
15736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15738 cat >conftest.
$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.
$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } &&
15750 { ac_try
='test -s conftest.$ac_objext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 ac_header_compiler
=yes
15758 echo "$as_me: failed program was:" >&5
15759 cat conftest.
$ac_ext >&5
15760 ac_header_compiler
=no
15762 rm -f conftest.
$ac_objext conftest.
$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6
15766 # Is the header present?
15767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15769 cat >conftest.
$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 #include "confdefs.h"
15772 #include <$ac_header>
15774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15775 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15777 grep -v '^ *+' conftest.er1
>conftest.err
15779 cat conftest.err
>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } >/dev
/null
; then
15782 if test -s conftest.err
; then
15783 ac_cpp_err
=$ac_c_preproc_warn_flag
15790 if test -z "$ac_cpp_err"; then
15791 ac_header_preproc
=yes
15793 echo "$as_me: failed program was:" >&5
15794 cat conftest.
$ac_ext >&5
15795 ac_header_preproc
=no
15797 rm -f conftest.err conftest.
$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6
15801 # So? What about this header?
15802 case $ac_header_compiler:$ac_header_preproc in
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15816 echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 eval "$as_ac_Header=$ac_header_preproc"
15823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828 cat >>confdefs.h
<<_ACEOF
15829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838 for ac_func
in fork vfork
15840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15841 echo "$as_me:$LINENO: checking for $ac_func" >&5
15842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15843 if eval "test \"\${$as_ac_var+set}\" = set"; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 cat >conftest.
$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15848 #include "confdefs.h"
15849 /* System header to define __stub macros and hopefully few prototypes,
15850 which can conflict with char $ac_func (); below. */
15851 #include <assert.h>
15852 /* Override any gcc2 internal prototype to avoid an error. */
15856 /* We use char because int might match the return type of a gcc2
15857 builtin and then its argument prototype would still apply. */
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 rm -f conftest.
$ac_objext conftest
$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879 (eval $ac_link) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try
='test -s conftest$ac_exeext'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 eval "$as_ac_var=yes"
15891 echo "$as_me: failed program was:" >&5
15892 cat conftest.
$ac_ext >&5
15893 eval "$as_ac_var=no"
15895 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15899 if test `eval echo '${'$as_ac_var'}'` = yes; then
15900 cat >>confdefs.h
<<_ACEOF
15901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15907 if test "x$ac_cv_func_fork" = xyes
; then
15908 echo "$as_me:$LINENO: checking for working fork" >&5
15909 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15910 if test "${ac_cv_func_fork_works+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 if test "$cross_compiling" = yes; then
15914 ac_cv_func_fork_works
=cross
15916 cat >conftest.
$ac_ext <<_ACEOF
15917 /* By Ruediger Kuhlmann. */
15918 #include <sys/types.h>
15920 # include <unistd.h>
15922 /* Some systems only have a dummy stub for fork() */
15930 rm -f conftest
$ac_exeext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15932 (eval $ac_link) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_cv_func_fork_works
=yes
15943 echo "$as_me: program exited with status $ac_status" >&5
15944 echo "$as_me: failed program was:" >&5
15945 cat conftest.
$ac_ext >&5
15946 ( exit $ac_status )
15947 ac_cv_func_fork_works
=no
15949 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15953 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15956 ac_cv_func_fork_works
=$ac_cv_func_fork
15958 if test "x$ac_cv_func_fork_works" = xcross
; then
15960 *-*-amigaos* |
*-*-msdosdjgpp*)
15961 # Override, as these systems have only a dummy fork() stub
15962 ac_cv_func_fork_works
=no
15965 ac_cv_func_fork_works
=yes
15968 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15969 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15971 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15972 if test "x$ac_cv_func_vfork" = xyes
; then
15973 echo "$as_me:$LINENO: checking for working vfork" >&5
15974 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15975 if test "${ac_cv_func_vfork_works+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 if test "$cross_compiling" = yes; then
15979 ac_cv_func_vfork_works
=cross
15981 cat >conftest.
$ac_ext <<_ACEOF
15982 #line $LINENO "configure"
15983 #include "confdefs.h"
15984 /* Thanks to Paul Eggert for this test. */
15986 #include <sys/types.h>
15987 #include <sys/stat.h>
15989 # include <unistd.h>
15992 # include <vfork.h>
15994 /* On some sparc systems, changes by the child to local and incoming
15995 argument registers are propagated back to the parent. The compiler
15996 is told about this with #include <vfork.h>, but some compilers
15997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15998 static variable whose address is put into a register that is
15999 clobbered by the vfork. */
16002 sparc_address_test (int arg)
16004 sparc_address_test (arg) int arg;
16007 static pid_t child;
16025 pid_t parent = getpid ();
16028 sparc_address_test ();
16033 /* Here is another test for sparc vfork register problems. This
16034 test uses lots of local variables, at least as many local
16035 variables as main has allocated so far including compiler
16036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16038 reuse the register of parent for one of the local variables,
16039 since it will think that parent can't possibly be used any more
16040 in this routine. Assigning to the local variable will thus
16041 munge parent in the parent process. */
16043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16045 /* Convince the compiler that p..p7 are live; otherwise, it might
16046 use the same hardware register for all 8 local variables. */
16047 if (p != p1 || p != p2 || p != p3 || p != p4
16048 || p != p5 || p != p6 || p != p7)
16051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16052 from child file descriptors. If the child closes a descriptor
16053 before it execs or exits, this munges the parent's descriptor
16054 as well. Test for this by closing stdout in the child. */
16055 _exit(close(fileno(stdout)) != 0);
16060 while (wait(&status) != child)
16063 /* Was there some problem with vforking? */
16066 /* Did the child fail? (This shouldn't happen.) */
16069 /* Did the vfork/compiler bug occur? */
16070 || parent != getpid()
16072 /* Did the file descriptor bug occur? */
16073 || fstat(fileno(stdout), &st) != 0
16078 rm -f conftest
$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_func_vfork_works
=yes
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 cat conftest.
$ac_ext >&5
16094 ( exit $ac_status )
16095 ac_cv_func_vfork_works
=no
16097 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16100 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16101 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16104 if test "x$ac_cv_func_fork_works" = xcross
; then
16105 ac_cv_func_vfork_works
=ac_cv_func_vfork
16106 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16107 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16110 if test "x$ac_cv_func_vfork_works" = xyes
; then
16112 cat >>confdefs.h
<<\_ACEOF
16113 #define HAVE_WORKING_VFORK 1
16118 cat >>confdefs.h
<<\_ACEOF
16123 if test "x$ac_cv_func_fork_works" = xyes
; then
16125 cat >>confdefs.h
<<\_ACEOF
16126 #define HAVE_WORKING_FORK 1
16132 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16133 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16134 if test "${emacs_cv_langinfo_codeset+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 cat >conftest.
$ac_ext <<_ACEOF
16138 #line $LINENO "configure"
16139 #include "confdefs.h"
16140 #include <langinfo.h>
16144 char* cs = nl_langinfo(CODESET);
16149 rm -f conftest.
$ac_objext conftest
$ac_exeext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try
='test -s conftest$ac_exeext'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 emacs_cv_langinfo_codeset
=yes
16163 echo "$as_me: failed program was:" >&5
16164 cat conftest.
$ac_ext >&5
16165 emacs_cv_langinfo_codeset
=no
16167 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16170 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
16171 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
16172 if test $emacs_cv_langinfo_codeset = yes; then
16174 cat >>confdefs.h
<<\_ACEOF
16175 #define HAVE_LANGINFO_CODESET 1
16180 echo "$as_me:$LINENO: checking for size_t" >&5
16181 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16182 if test "${ac_cv_type_size_t+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.
$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 $ac_includes_default
16194 if (sizeof (size_t))
16200 rm -f conftest.
$ac_objext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try
='test -s conftest.$ac_objext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_type_size_t
=yes
16214 echo "$as_me: failed program was:" >&5
16215 cat conftest.
$ac_ext >&5
16216 ac_cv_type_size_t
=no
16218 rm -f conftest.
$ac_objext conftest.
$ac_ext
16220 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16221 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16222 if test $ac_cv_type_size_t = yes; then
16224 cat >>confdefs.h
<<_ACEOF
16225 #define HAVE_SIZE_T 1
16232 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16233 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16234 if test "${ac_cv_type_mbstate_t+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.
$ac_ext <<_ACEOF
16238 #line $LINENO "configure"
16239 #include "confdefs.h"
16240 $ac_includes_default
16241 # include <wchar.h>
16245 mbstate_t x; return sizeof x;
16250 rm -f conftest.
$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252 (eval $ac_compile) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try
='test -s conftest.$ac_objext'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_cv_type_mbstate_t
=yes
16264 echo "$as_me: failed program was:" >&5
16265 cat conftest.
$ac_ext >&5
16266 ac_cv_type_mbstate_t
=no
16268 rm -f conftest.
$ac_objext conftest.
$ac_ext
16270 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
16271 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
16272 if test $ac_cv_type_mbstate_t = yes; then
16274 cat >>confdefs.h
<<\_ACEOF
16275 #define HAVE_MBSTATE_T 1
16280 cat >>confdefs.h
<<\_ACEOF
16281 #define mbstate_t int
16286 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
16287 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
16288 if test "${emacs_cv_c_restrict+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 cat >conftest.
$ac_ext <<_ACEOF
16292 #line $LINENO "configure"
16293 #include "confdefs.h"
16294 void fred (int *restrict x);
16303 rm -f conftest.
$ac_objext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try
='test -s conftest.$ac_objext'
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 emacs_cv_c_restrict
=yes
16317 echo "$as_me: failed program was:" >&5
16318 cat conftest.
$ac_ext >&5
16319 cat >conftest.
$ac_ext <<_ACEOF
16320 #line $LINENO "configure"
16321 #include "confdefs.h"
16322 void fred (int *__restrict x);
16331 rm -f conftest.
$ac_objext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16333 (eval $ac_compile) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
16337 { ac_try
='test -s conftest.$ac_objext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 emacs_cv_c_restrict
=__restrict
16345 echo "$as_me: failed program was:" >&5
16346 cat conftest.
$ac_ext >&5
16347 emacs_cv_c_restrict
=no
16349 rm -f conftest.
$ac_objext conftest.
$ac_ext
16351 rm -f conftest.
$ac_objext conftest.
$ac_ext
16353 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
16354 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
16355 case "$emacs_cv_c_restrict" in
16356 yes) emacs_restrict
=restrict
;;
16357 no
) emacs_restrict
="";;
16358 *) emacs_restrict
="$emacs_cv_c_restrict";;
16360 if test "$emacs_restrict" != __restrict
; then
16362 cat >>confdefs.h
<<_ACEOF
16363 #define __restrict $emacs_restrict
16368 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
16369 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
16370 if test "${emacs_cv_c_restrict_arr+set}" = set; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 cat >conftest.
$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16375 #include "confdefs.h"
16376 void fred (int x[__restrict]);
16385 rm -f conftest.
$ac_objext
16386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16387 (eval $ac_compile) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try
='test -s conftest.$ac_objext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397 emacs_cv_c_restrict_arr
=yes
16399 echo "$as_me: failed program was:" >&5
16400 cat conftest.
$ac_ext >&5
16401 emacs_cv_c_restrict_arr
=no
16403 rm -f conftest.
$ac_objext conftest.
$ac_ext
16405 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
16406 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
16407 if test "$emacs_cv_c_restrict_arr" = yes; then
16409 cat >>confdefs.h
<<\_ACEOF
16410 #define __restrict_arr __restrict
16417 # Set up the CFLAGS for real compilation, so we can substitute it.
16418 CFLAGS
="$REAL_CFLAGS"
16419 CPPFLAGS
="$REAL_CPPFLAGS"
16421 #### Find out which version of Emacs this is.
16422 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
16423 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
16424 if test x
"${version}" = x
; then
16425 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
16426 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
16427 { (exit 1); exit 1; }; }
16430 ### Specify what sort of things we'll be editing into Makefile and config.h.
16431 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16467 cat >>confdefs.h
<<_ACEOF
16468 #define EMACS_CONFIGURATION "${canonical}"
16472 cat >>confdefs.h
<<_ACEOF
16473 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16477 cat >>confdefs.h
<<_ACEOF
16478 #define config_machfile "${machfile}"
16482 cat >>confdefs.h
<<_ACEOF
16483 #define config_opsysfile "${opsysfile}"
16487 cat >>confdefs.h
<<_ACEOF
16488 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
16492 cat >>confdefs.h
<<_ACEOF
16493 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
16497 cat >>confdefs.h
<<_ACEOF
16498 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
16502 cat >>confdefs.h
<<_ACEOF
16503 #define UNEXEC_SRC ${UNEXEC_SRC}
16507 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16509 cat >>confdefs.h
<<\_ACEOF
16510 #define HAVE_X_WINDOWS 1
16514 if test "${USE_X_TOOLKIT}" != "none" ; then
16516 cat >>confdefs.h
<<\_ACEOF
16517 #define USE_X_TOOLKIT 1
16521 if test "${HAVE_X11}" = "yes" ; then
16523 cat >>confdefs.h
<<\_ACEOF
16528 if test "${HAVE_XFREE386}" = "yes" ; then
16530 cat >>confdefs.h
<<\_ACEOF
16531 #define HAVE_XFREE386 1
16535 if test "${HAVE_MENUS}" = "yes" ; then
16537 cat >>confdefs.h
<<\_ACEOF
16538 #define HAVE_MENUS 1
16542 if test "${GNU_MALLOC}" = "yes" ; then
16544 cat >>confdefs.h
<<\_ACEOF
16545 #define GNU_MALLOC 1
16549 if test "${REL_ALLOC}" = "yes" ; then
16551 cat >>confdefs.h
<<\_ACEOF
16552 #define REL_ALLOC 1
16561 #### Report on what we decided to do.
16562 #### Report GTK as a toolkit, even if it doesn't use Xt.
16563 #### It makes printing result more understandable as using GTK sets
16564 #### toolkit_scroll_bars to yes by default.
16565 if test "${HAVE_GTK}" = "yes"; then
16570 Configured for \`${canonical}'.
16572 Where should the build process find the source code? ${srcdir}
16573 What operating system and machine description files should Emacs use?
16574 \`${opsysfile}' and \`${machfile}'
16575 What compiler should emacs be built with? ${CC} ${CFLAGS}
16576 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16577 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16578 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16579 What window system should Emacs use? ${window_system}
16580 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
16582 if test -n "${x_includes}"; then
16583 echo " Where do we find X Windows header files? ${x_includes}"
16585 echo " Where do we find X Windows header files? Standard dirs"
16587 if test -n "${x_libraries}"; then
16588 echo " Where do we find X Windows libraries? ${x_libraries}"
16590 echo " Where do we find X Windows libraries? Standard dirs"
16593 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16594 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16595 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16596 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16597 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16598 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16599 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16602 # Remove any trailing slashes in these variables.
16603 test "${prefix}" != NONE
&&
16604 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16605 test "${exec_prefix}" != NONE
&&
16606 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16608 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16609 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16610 ## from Makefile.c can correctly provide the arg `-traditional' to the
16613 cat >conftest.
$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16619 $EGREP "yes..yes" >/dev
/null
2>&1; then
16620 CPP_NEED_TRADITIONAL
=no
16622 CPP_NEED_TRADITIONAL
=yes
16627 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
16628 ac_config_commands
="$ac_config_commands default"
16629 cat >confcache
<<\_ACEOF
16630 # This file is a shell script that caches the results of configure
16631 # tests run on this system so they can be shared between configure
16632 # scripts and configure runs, see configure's option --config-cache.
16633 # It is not useful on other systems. If it contains results you don't
16634 # want to keep, you may remove or edit it.
16636 # config.status only pays attention to the cache file if you give it
16637 # the --recheck option to rerun configure.
16639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16641 # following values.
16645 # The following way of writing the cache mishandles newlines in values,
16646 # but we know of no workaround that is simple, portable, and efficient.
16647 # So, don't put newlines in cache variables' values.
16648 # Ultrix sh set writes to stderr and can't be redirected directly,
16649 # and sets the high bit in the cache file unless we assign to the vars.
16652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16654 # `set' does not quote correctly, so add quotes (double-quote
16655 # substitution turns \\\\ into \\, and sed turns \\ into \).
16658 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16661 # `set' quotes correctly as required by POSIX, so do not add quotes.
16663 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16670 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16672 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16674 if cmp -s $cache_file confcache
; then :; else
16675 if test -w $cache_file; then
16676 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16677 cat confcache
>$cache_file
16679 echo "not updating unwritable cache $cache_file"
16684 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16685 # Let make expand exec_prefix.
16686 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16688 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16689 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16690 # trailing colons and then remove the whole line if VPATH becomes empty
16691 # (actually we leave an empty line to preserve line numbers).
16692 if test "x$srcdir" = x.
; then
16693 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16694 s/:*\$(srcdir):*/:/;
16695 s/:*\${srcdir}:*/:/;
16697 s/^\([^=]*=[ ]*\):*/\1/;
16703 DEFS
=-DHAVE_CONFIG_H
16707 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16708 # 1. Remove the extension, and $U if already installed.
16709 ac_i
=`echo "$ac_i" |
16710 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16712 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16713 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16715 LIBOBJS
=$ac_libobjs
16717 LTLIBOBJS
=$ac_ltlibobjs
16721 : ${CONFIG_STATUS=./config.status}
16722 ac_clean_files_save
=$ac_clean_files
16723 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16724 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16725 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16726 cat >$CONFIG_STATUS <<_ACEOF
16728 # Generated by $as_me.
16729 # Run this file to recreate the current configuration.
16730 # Compiler output produced by configure, useful for debugging
16731 # configure, is in config.log if it exists.
16734 SHELL=\${CONFIG_SHELL-$SHELL}
16737 cat >>$CONFIG_STATUS <<\_ACEOF
16738 ## --------------------- ##
16739 ## M4sh Initialization. ##
16740 ## --------------------- ##
16742 # Be Bourne compatible
16743 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16747 # is contrary to our usage. Disable this feature.
16748 alias -g '${1+"$@"}'='"$@"'
16749 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16753 # Support unset when possible.
16754 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16761 # Work around bugs in pre-3.0 UWIN ksh.
16762 $as_unset ENV MAIL MAILPATH
16768 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
16770 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16771 eval $as_var=C
; export $as_var
16777 # Required to use basename.
16778 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16784 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16785 as_basename
=basename
16791 # Name of the executable.
16792 as_me
=`$as_basename "$0" ||
16793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16794 X"$0" : 'X\(//\)$' \| \
16795 X"$0" : 'X\(/\)$' \| \
16796 . : '\(.\)' 2>/dev/null ||
16798 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16799 /^X\/\(\/\/\)$/{ s//\1/; q; }
16800 /^X\/\(\/\).*/{ s//\1/; q; }
16804 # PATH needs CR, and LINENO needs CR and PATH.
16805 # Avoid depending upon Character Ranges.
16806 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16807 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16808 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16809 as_cr_digits
='0123456789'
16810 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16812 # The user is always right.
16813 if test "${PATH_SEPARATOR+set}" != set; then
16814 echo "#! /bin/sh" >conftest.sh
16815 echo "exit 0" >>conftest.sh
16816 chmod +x conftest.sh
16817 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
16826 as_lineno_1
=$LINENO
16827 as_lineno_2
=$LINENO
16828 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16829 test "x$as_lineno_1" != "x$as_lineno_2" &&
16830 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16831 # Find who we are. Look in the path if we contain no path at all
16834 *[\\/]* ) as_myself
=$0 ;;
16835 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16836 for as_dir
in $PATH
16839 test -z "$as_dir" && as_dir
=.
16840 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16845 # We did not find ourselves, most probably we were run as `sh COMMAND'
16846 # in which case we are not to be found in the path.
16847 if test "x$as_myself" = x
; then
16850 if test ! -f "$as_myself"; then
16851 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16852 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16853 { (exit 1); exit 1; }; }
16855 case $CONFIG_SHELL in
16857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16858 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16861 test -z "$as_dir" && as_dir
=.
16862 for as_base
in sh bash ksh sh5
; do
16865 if ("$as_dir/$as_base" -c '
16866 as_lineno_1=$LINENO
16867 as_lineno_2=$LINENO
16868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16869 test "x$as_lineno_1" != "x$as_lineno_2" &&
16870 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16871 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16872 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16873 CONFIG_SHELL
=$as_dir/$as_base
16874 export CONFIG_SHELL
16875 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16884 # uniformly replaced by the line number. The first 'sed' inserts a
16885 # line-number line before each line; the second 'sed' does the real
16886 # work. The second script uses 'N' to pair each line-number line
16887 # with the numbered line, and appends trailing '-' during
16888 # substitution so that $LINENO is not a special case at line end.
16889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16890 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16891 sed '=' <$as_myself |
16896 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16899 s,^['$as_cr_digits']*\n,,
16900 ' >$as_me.lineno
&&
16901 chmod +x
$as_me.lineno ||
16902 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16904 { (exit 1); exit 1; }; }
16906 # Don't try to exec as it changes $[0], causing all sort of problems
16907 # (the dirname of $[0] is not the place where we might find the
16908 # original and so on. Autoconf is especially sensible to this).
16910 # Exit status is that of the last command.
16915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16916 *c
*,-n*) ECHO_N
= ECHO_C
='
16918 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16919 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16922 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16928 rm -f conf$$ conf$$.exe conf$$.
file
16930 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16931 # We could just check for DJGPP; but this test a) works b) is more generic
16932 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16933 if test -f conf$$.exe
; then
16934 # Don't use ln at all; we don't have any links
16939 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16944 rm -f conf$$ conf$$.exe conf$$.
file
16946 if mkdir
-p .
2>/dev
/null
; then
16952 as_executable_p
="test -f"
16954 # Sed expression to map a string onto a valid CPP name.
16955 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16957 # Sed expression to map a string onto a valid variable name.
16958 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16962 # We need space, tab and new line, in precisely that order.
16972 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16973 # report actual input values of CONFIG_FILES etc. instead of their
16974 # values after options handling. Logging --version etc. is OK.
16978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16979 ## Running $as_me. ##
16984 This file was extended by $as_me, which was
16985 generated by GNU Autoconf 2.54. Invocation command line was
16987 CONFIG_FILES = $CONFIG_FILES
16988 CONFIG_HEADERS = $CONFIG_HEADERS
16989 CONFIG_LINKS = $CONFIG_LINKS
16990 CONFIG_COMMANDS = $CONFIG_COMMANDS
16994 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16998 # Files that config.status was made for.
16999 if test -n "$ac_config_files"; then
17000 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17003 if test -n "$ac_config_headers"; then
17004 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17007 if test -n "$ac_config_links"; then
17008 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17011 if test -n "$ac_config_commands"; then
17012 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17015 cat >>$CONFIG_STATUS <<\_ACEOF
17018 \`$as_me' instantiates files from templates according to the
17019 current configuration.
17021 Usage: $0 [OPTIONS] [FILE]...
17023 -h, --help print this help, then exit
17024 -V, --version print version number, then exit
17025 -d, --debug don't remove temporary files
17026 --recheck update $as_me by reconfiguring in the same conditions
17027 --file=FILE[:TEMPLATE]
17028 instantiate the configuration file FILE
17029 --header=FILE[:TEMPLATE]
17030 instantiate the configuration header FILE
17032 Configuration files:
17035 Configuration headers:
17038 Configuration commands:
17041 Report bugs to <bug-autoconf@gnu.org>."
17044 cat >>$CONFIG_STATUS <<_ACEOF
17047 configured by $0, generated by GNU Autoconf 2.54,
17048 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17050 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17051 Free Software Foundation, Inc.
17052 This config.status script is free software; the Free Software Foundation
17053 gives unlimited permission to copy, distribute and modify it."
17058 cat >>$CONFIG_STATUS <<\_ACEOF
17059 # If no file are specified by the user, then we need to provide default
17060 # value. By we need to know if files were specified by the user.
17066 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17067 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17075 *) # This is not an option, so the user has probably given explicit
17078 ac_need_defaults
=false
;;
17082 # Handling of the options.
17084 cat >>$CONFIG_STATUS <<_ACEOF
17085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17086 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17087 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17089 cat >>$CONFIG_STATUS <<\_ACEOF
17090 --version |
--vers* |
-V )
17091 echo "$ac_cs_version"; exit 0 ;;
17093 # Conflict between --help and --header
17094 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17095 Try \`$0 --help' for more information." >&5
17096 echo "$as_me: error: ambiguous option: $1
17097 Try \`$0 --help' for more information." >&2;}
17098 { (exit 1); exit 1; }; };;
17099 --help |
--hel |
-h )
17100 echo "$ac_cs_usage"; exit 0 ;;
17101 --debug |
--d* |
-d )
17103 --file |
--fil |
--fi |
--f )
17105 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17106 ac_need_defaults
=false
;;
17107 --header |
--heade |
--head |
--hea )
17109 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17110 ac_need_defaults
=false
;;
17112 # This is an error.
17113 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17114 Try \`$0 --help' for more information." >&5
17115 echo "$as_me: error: unrecognized option: $1
17116 Try \`$0 --help' for more information." >&2;}
17117 { (exit 1); exit 1; }; } ;;
17119 *) ac_config_targets
="$ac_config_targets $1" ;;
17127 cat >>$CONFIG_STATUS <<_ACEOF
17129 # INIT-COMMANDS section.
17132 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
17138 cat >>$CONFIG_STATUS <<\_ACEOF
17139 for ac_config_target
in $ac_config_targets
17141 case "$ac_config_target" in
17142 # Handling of arguments.
17143 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17144 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
17145 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
17146 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
17147 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
17148 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
17149 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
17150 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
17151 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
17152 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
17153 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17154 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
17155 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17156 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17157 { (exit 1); exit 1; }; };;
17161 # If the user did not use the arguments to specify the items to instantiate,
17162 # then the envvar interface is used. Set only those that are not.
17163 # We use the long form for the default assignment because of an extremely
17164 # bizarre bug on SunOS 4.1.3.
17165 if $ac_need_defaults; then
17166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17171 # Create a temporary directory, and hook for its removal unless debugging.
17174 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17175 trap '{ (exit 1); exit 1; }' 1 2 13 15
17178 # Create a (secure) tmp directory for tmp files.
17181 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17182 test -n "$tmp" && test -d "$tmp"
17185 tmp
=$TMPDIR/cs$$
-$RANDOM
17186 (umask 077 && mkdir
$tmp)
17189 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17190 { (exit 1); exit 1; }
17195 cat >>$CONFIG_STATUS <<_ACEOF
17198 # CONFIG_FILES section.
17201 # No need to generate the scripts if there are no CONFIG_FILES.
17202 # This happens for instance when ./config.status config.h
17203 if test -n "\$CONFIG_FILES"; then
17204 # Protect against being on the right side of a sed subst in config.status.
17205 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17206 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17207 s,@SHELL@,$SHELL,;t t
17208 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17209 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17210 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17211 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17212 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17213 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17214 s,@exec_prefix@,$exec_prefix,;t t
17215 s,@prefix@,$prefix,;t t
17216 s,@program_transform_name@,$program_transform_name,;t t
17217 s,@bindir@,$bindir,;t t
17218 s,@sbindir@,$sbindir,;t t
17219 s,@libexecdir@,$libexecdir,;t t
17220 s,@datadir@,$datadir,;t t
17221 s,@sysconfdir@,$sysconfdir,;t t
17222 s,@sharedstatedir@,$sharedstatedir,;t t
17223 s,@localstatedir@,$localstatedir,;t t
17224 s,@libdir@,$libdir,;t t
17225 s,@includedir@,$includedir,;t t
17226 s,@oldincludedir@,$oldincludedir,;t t
17227 s,@infodir@,$infodir,;t t
17228 s,@mandir@,$mandir,;t t
17229 s,@build_alias@,$build_alias,;t t
17230 s,@host_alias@,$host_alias,;t t
17231 s,@target_alias@,$target_alias,;t t
17232 s,@DEFS@,$DEFS,;t t
17233 s,@ECHO_C@,$ECHO_C,;t t
17234 s,@ECHO_N@,$ECHO_N,;t t
17235 s,@ECHO_T@,$ECHO_T,;t t
17236 s,@LIBS@,$LIBS,;t t
17237 s,@build@,$build,;t t
17238 s,@build_cpu@,$build_cpu,;t t
17239 s,@build_vendor@,$build_vendor,;t t
17240 s,@build_os@,$build_os,;t t
17241 s,@host@,$host,;t t
17242 s,@host_cpu@,$host_cpu,;t t
17243 s,@host_vendor@,$host_vendor,;t t
17244 s,@host_os@,$host_os,;t t
17246 s,@CFLAGS@,$CFLAGS,;t t
17247 s,@LDFLAGS@,$LDFLAGS,;t t
17248 s,@CPPFLAGS@,$CPPFLAGS,;t t
17249 s,@ac_ct_CC@,$ac_ct_CC,;t t
17250 s,@EXEEXT@,$EXEEXT,;t t
17251 s,@OBJEXT@,$OBJEXT,;t t
17252 s,@LN_S@,$LN_S,;t t
17254 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17255 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17256 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17257 s,@RANLIB@,$RANLIB,;t t
17258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17259 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
17260 s,@EGREP@,$EGREP,;t t
17261 s,@LIBSOUND@,$LIBSOUND,;t t
17262 s,@SET_MAKE@,$SET_MAKE,;t t
17263 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17264 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17265 s,@GTK_LIBS@,$GTK_LIBS,;t t
17266 s,@ALLOCA@,$ALLOCA,;t t
17267 s,@liblockfile@,$liblockfile,;t t
17268 s,@LIBOBJS@,$LIBOBJS,;t t
17269 s,@NEED_SETGID@,$NEED_SETGID,;t t
17270 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
17271 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
17272 s,@version@,$version,;t t
17273 s,@configuration@,$configuration,;t t
17274 s,@canonical@,$canonical,;t t
17275 s,@srcdir@,$srcdir,;t t
17276 s,@lispdir@,$lispdir,;t t
17277 s,@locallisppath@,$locallisppath,;t t
17278 s,@lisppath@,$lisppath,;t t
17279 s,@x_default_search_path@,$x_default_search_path,;t t
17280 s,@etcdir@,$etcdir,;t t
17281 s,@archlibdir@,$archlibdir,;t t
17282 s,@docdir@,$docdir,;t t
17283 s,@bitmapdir@,$bitmapdir,;t t
17284 s,@gamedir@,$gamedir,;t t
17285 s,@gameuser@,$gameuser,;t t
17286 s,@c_switch_system@,$c_switch_system,;t t
17287 s,@c_switch_machine@,$c_switch_machine,;t t
17288 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
17289 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
17290 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
17291 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
17292 s,@machfile@,$machfile,;t t
17293 s,@opsysfile@,$opsysfile,;t t
17294 s,@carbon_appdir@,$carbon_appdir,;t t
17295 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17300 cat >>$CONFIG_STATUS <<\_ACEOF
17301 # Split the substitutions into bite-sized pieces for seds with
17302 # small command number limits, like on Digital OSF/1 and HP-UX.
17303 ac_max_sed_lines
=48
17304 ac_sed_frag
=1 # Number of current file.
17305 ac_beg
=1 # First line for current file.
17306 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17309 while $ac_more_lines; do
17310 if test $ac_beg -gt 1; then
17311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17313 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17315 if test ! -s $tmp/subs.frag
; then
17316 ac_more_lines
=false
17318 # The purpose of the label and of the branching condition is to
17319 # speed up the sed processing (if there are no `@' at all, there
17320 # is no need to browse any of the substitutions).
17321 # These are the two extra sed commands mentioned above.
17323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17324 if test -z "$ac_sed_cmds"; then
17325 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17327 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17329 ac_sed_frag
=`expr $ac_sed_frag + 1`
17331 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17334 if test -z "$ac_sed_cmds"; then
17337 fi # test -n "$CONFIG_FILES"
17340 cat >>$CONFIG_STATUS <<\_ACEOF
17341 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17344 - |
*:- |
*:-:* ) # input from stdin
17346 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17347 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17348 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17349 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17350 * ) ac_file_in
=$ac_file.
in ;;
17353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17354 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17356 X"$ac_file" : 'X\(//\)[^/]' \| \
17357 X"$ac_file" : 'X\(//\)$' \| \
17358 X"$ac_file" : 'X\(/\)' \| \
17359 . : '\(.\)' 2>/dev/null ||
17361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17363 /^X\(\/\/\)$/{ s//\1/; q; }
17364 /^X\(\/\).*/{ s//\1/; q; }
17366 { if $as_mkdir_p; then
17371 while test ! -d "$as_dir"; do
17372 as_dirs
="$as_dir $as_dirs"
17373 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17375 X"$as_dir" : 'X\(//\)[^/]' \| \
17376 X"$as_dir" : 'X\(//\)$' \| \
17377 X"$as_dir" : 'X\(/\)' \| \
17378 . : '\(.\)' 2>/dev/null ||
17380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17382 /^X\(\/\/\)$/{ s//\1/; q; }
17383 /^X\(\/\).*/{ s//\1/; q; }
17386 test ! -n "$as_dirs" || mkdir
$as_dirs
17387 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17388 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17389 { (exit 1); exit 1; }; }; }
17393 if test "$ac_dir" != .
; then
17394 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17395 # A "../" for each directory in $ac_dir_suffix.
17396 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17398 ac_dir_suffix
= ac_top_builddir
=
17402 .
) # No --srcdir option. We are building in place.
17404 if test -z "$ac_top_builddir"; then
17407 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17409 [\\/]* | ?
:[\\/]* ) # Absolute path.
17410 ac_srcdir
=$srcdir$ac_dir_suffix;
17411 ac_top_srcdir
=$srcdir ;;
17412 *) # Relative path.
17413 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17414 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17416 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17418 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17419 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17420 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17421 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17425 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17426 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
17429 if test x
"$ac_file" != x-
; then
17430 { echo "$as_me:$LINENO: creating $ac_file" >&5
17431 echo "$as_me: creating $ac_file" >&6;}
17434 # Let's still pretend it is `configure' which instantiates (i.e., don't
17435 # use $as_me), people would be surprised to read:
17436 # /* config.h. Generated by config.status. */
17437 if test x
"$ac_file" = x-
; then
17440 configure_input
="$ac_file. "
17442 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17443 sed 's,.*/,,'` by configure."
17445 # First look for the input files in the build tree, otherwise in the
17447 ac_file_inputs
=`IFS=:
17448 for f in $ac_file_in; do
17450 -) echo $tmp/stdin ;;
17452 # Absolute (can't be DOS-style, as IFS=:)
17453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17454 echo "$as_me: error: cannot find input file: $f" >&2;}
17455 { (exit 1); exit 1; }; }
17458 if test -f "$f"; then
17461 elif test -f "$srcdir/$f"; then
17466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468 { (exit 1); exit 1; }; }
17471 done` ||
{ (exit 1); exit 1; }
17473 cat >>$CONFIG_STATUS <<_ACEOF
17477 cat >>$CONFIG_STATUS <<\_ACEOF
17479 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17480 s
,@configure_input@
,$configure_input,;t t
17481 s
,@srcdir@
,$ac_srcdir,;t t
17482 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17483 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17484 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17485 s
,@builddir@
,$ac_builddir,;t t
17486 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17487 s
,@top_builddir@
,$ac_top_builddir,;t t
17488 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17489 s
,@INSTALL@
,$ac_INSTALL,;t t
17490 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17492 if test x"$ac_file" != x-; then
17493 mv $tmp/out $ac_file
17501 cat >>$CONFIG_STATUS <<\_ACEOF
17504 # CONFIG_HEADER section.
17507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17510 # ac_d sets the value in "#define NAME VALUE" lines.
17511 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17512 ac_dB
='[ ].*$,\1#\2'
17515 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17516 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17517 ac_uB
='$,\1#\2define\3'
17521 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17522 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17524 - |
*:- |
*:-:* ) # input from stdin
17526 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17527 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17528 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17529 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17530 * ) ac_file_in
=$ac_file.
in ;;
17533 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17534 echo "$as_me: creating $ac_file" >&6;}
17536 # First look for the input files in the build tree, otherwise in the
17538 ac_file_inputs
=`IFS=:
17539 for f in $ac_file_in; do
17541 -) echo $tmp/stdin ;;
17543 # Absolute (can't be DOS-style, as IFS=:)
17544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17545 echo "$as_me: error: cannot find input file: $f" >&2;}
17546 { (exit 1); exit 1; }; }
17549 if test -f "$f"; then
17552 elif test -f "$srcdir/$f"; then
17557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17558 echo "$as_me: error: cannot find input file: $f" >&2;}
17559 { (exit 1); exit 1; }; }
17562 done` ||
{ (exit 1); exit 1; }
17563 # Remove the trailing spaces.
17564 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17568 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17569 # `conftest.undefs', that substitutes the proper values into
17570 # config.h.in to produce config.h. The first handles `#define'
17571 # templates, and the second `#undef' templates.
17572 # And first: Protect against being on the right side of a sed subst in
17573 # config.status. Protect against being in an unquoted here document
17574 # in config.status.
17575 rm -f conftest.defines conftest.undefs
17576 # Using a here document instead of a string reduces the quoting nightmare.
17577 # Putting comments in sed scripts is not portable.
17579 # `end' is used to avoid that the second main sed command (meant for
17580 # 0-ary CPP macros) applies to n-ary macro definitions.
17581 # See the Autoconf documentation for `clear'.
17582 cat >confdef2sed.
sed <<\_ACEOF
17587 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17589 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17592 # If some macros were called several times there might be several times
17593 # the same #defines, which is useless. Nevertheless, we may not want to
17594 # sort them, since we want the *last* AC-DEFINE to be honored.
17595 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17596 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17597 rm -f confdef2sed.sed
17599 # This sed command replaces #undef with comments. This is necessary, for
17600 # example, in the case of _POSIX_SOURCE, which is predefined and required
17601 # on some systems where configure will not decide to define it.
17602 cat >>conftest.undefs <<\_ACEOF
17603 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17606 # Break up conftest.defines because some shells have a limit on the size
17607 # of here documents, and old seds have small limits too (100 cmds).
17608 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17609 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17610 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17611 echo ' :' >>$CONFIG_STATUS
17612 rm -f conftest.tail
17613 while grep . conftest.defines >/dev/null
17615 # Write a limited-size here document to $tmp/defines.sed.
17616 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17617 # Speed up: don't consider the non `#define' lines.
17618 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17619 # Work around the forget-to-reset-the-flag bug.
17620 echo 't clr' >>$CONFIG_STATUS
17621 echo ': clr' >>$CONFIG_STATUS
17622 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17624 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17626 mv $tmp/out $tmp/in
17628 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17629 rm -f conftest.defines
17630 mv conftest.
tail conftest.defines
17632 rm -f conftest.defines
17633 echo ' fi # grep' >>$CONFIG_STATUS
17634 echo >>$CONFIG_STATUS
17636 # Break up conftest.undefs because some shells have a limit on the size
17637 # of here documents, and old seds have small limits too (100 cmds).
17638 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17639 rm -f conftest.
tail
17640 while grep . conftest.undefs
>/dev
/null
17642 # Write a limited-size here document to $tmp/undefs.sed.
17643 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17644 # Speed up: don't consider the non
`#undef'
17645 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17646 # Work around the forget-to-reset-the-flag bug.
17647 echo 't clr' >>$CONFIG_STATUS
17648 echo ': clr' >>$CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17651 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17653 mv $tmp/out $tmp/in
17655 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17656 rm -f conftest.undefs
17657 mv conftest.tail conftest.undefs
17659 rm -f conftest.undefs
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17663 # use $as_me), people would be surprised to read:
17664 # /* config.h. Generated by config.status. */
17665 if test x
"$ac_file" = x-
; then
17666 echo "/* Generated by configure. */" >$tmp/config.h
17668 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17670 cat $tmp/in >>$tmp/config.h
17672 if test x
"$ac_file" != x-
; then
17673 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17674 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17675 echo "$as_me: $ac_file is unchanged" >&6;}
17677 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17679 X"$ac_file" : 'X\(//\)[^/]' \| \
17680 X"$ac_file" : 'X\(//\)$' \| \
17681 X"$ac_file" : 'X\(/\)' \| \
17682 . : '\(.\)' 2>/dev/null ||
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17686 /^X\(\/\/\)$/{ s//\1/; q; }
17687 /^X\(\/\).*/{ s//\1/; q; }
17689 { if $as_mkdir_p; then
17694 while test ! -d "$as_dir"; do
17695 as_dirs
="$as_dir $as_dirs"
17696 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$as_dir" : 'X\(//\)[^/]' \| \
17699 X"$as_dir" : 'X\(//\)$' \| \
17700 X"$as_dir" : 'X\(/\)' \| \
17701 . : '\(.\)' 2>/dev/null ||
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705 /^X\(\/\/\)$/{ s//\1/; q; }
17706 /^X\(\/\).*/{ s//\1/; q; }
17709 test ! -n "$as_dirs" || mkdir
$as_dirs
17710 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17712 { (exit 1); exit 1; }; }; }
17715 mv $tmp/config.h
$ac_file
17719 rm -f $tmp/config.h
17723 cat >>$CONFIG_STATUS <<\_ACEOF
17726 # CONFIG_COMMANDS section.
17728 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17729 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17730 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17731 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17732 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17733 X"$ac_dest" : 'X\(//\)[^/]' \| \
17734 X"$ac_dest" : 'X\(//\)$' \| \
17735 X"$ac_dest" : 'X\(/\)' \| \
17736 . : '\(.\)' 2>/dev/null ||
17738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17740 /^X\(\/\/\)$/{ s//\1/; q; }
17741 /^X\(\/\).*/{ s//\1/; q; }
17745 if test "$ac_dir" != .
; then
17746 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17747 # A "../" for each directory in $ac_dir_suffix.
17748 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17750 ac_dir_suffix
= ac_top_builddir
=
17754 .
) # No --srcdir option. We are building in place.
17756 if test -z "$ac_top_builddir"; then
17759 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17761 [\\/]* | ?
:[\\/]* ) # Absolute path.
17762 ac_srcdir
=$srcdir$ac_dir_suffix;
17763 ac_top_srcdir
=$srcdir ;;
17764 *) # Relative path.
17765 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17766 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17768 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17770 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17771 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17772 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17773 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17776 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17777 echo "$as_me: executing $ac_dest commands" >&6;}
17781 ### Make the necessary directories, if they don't exist.
17782 for dir
in etc lisp
; do
17783 test -d ${dir} || mkdir
${dir}
17786 # Build src/Makefile from ${srcdir}/src/Makefile.c
17787 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17788 # This must be done after src/config.h is built, since we rely on that file.
17790 # Now get this: Some word that is part of the ${srcdir} directory name
17791 # or the ${configuration} value might, just might, happen to be an
17792 # identifier like `sun4' or `i386' or something, and be predefined by
17793 # the C preprocessor to some helpful value like 1, or maybe the empty
17794 # string. Needless to say consequent macro substitutions are less
17795 # than conducive to the makefile finding the correct directory.
17796 undefs
="`echo $top_srcdir $configuration $canonical |
17797 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17798 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17801 echo creating src
/epaths.h
17802 ${MAKE-make} epaths-force
17804 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17805 # `..' to `. .' unless invoked with -traditional
17807 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
17808 CPPFLAGS
="$CPPFLAGS -traditional"
17811 echo creating lib-src
/Makefile
17813 rm -f junk.c junk1.c junk2.c
17814 sed -e '/start of cpp stuff/q' \
17815 < Makefile.c
> junk1.c
17816 sed -e '1,/start of cpp stuff/d'\
17817 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17818 < Makefile.c
> junk.c
17819 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17820 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17821 cat junk1.c junk2.c
> Makefile.new
17822 rm -f junk.c junk1.c junk2.c
17823 chmod 444 Makefile.new
17824 mv -f Makefile.new Makefile
17827 echo creating src
/Makefile
17829 rm -f junk.c junk1.c junk2.c
17830 sed -e '/start of cpp stuff/q' \
17831 < Makefile.c
> junk1.c
17832 sed -e '1,/start of cpp stuff/d'\
17833 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17834 < Makefile.c
> junk.c
17835 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17836 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17837 cat junk1.c junk2.c
> Makefile.new
17838 rm -f junk.c junk1.c junk2.c
17839 chmod 444 Makefile.new
17840 mv -f Makefile.new Makefile
17843 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17844 echo creating src
/.gdbinit
17845 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17848 # This is how we know whether to re-run configure in certain cases.
17849 touch src
/config.stamp
17856 cat >>$CONFIG_STATUS <<\_ACEOF
17858 { (exit 0); exit 0; }
17860 chmod +x
$CONFIG_STATUS
17861 ac_clean_files
=$ac_clean_files_save
17864 # configure is writing to config.log, and then calls config.status.
17865 # config.status does its own redirection, appending to config.log.
17866 # Unfortunately, on DOS this fails, as config.log is still kept open
17867 # by configure, so config.status won't be able to write to it; its
17868 # output is simply discarded. So we exec the FD to /dev/null,
17869 # effectively closing config.log, so it can be properly (re)opened and
17870 # appended to by config.status. When coming back to configure, we
17871 # need to make the FD available again.
17872 if test "$no_create" != yes; then
17875 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17878 # would make configure fail if this is the last instruction.
17879 $ac_cs_success ||
{ (exit 1); exit 1; }