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 EGREP LIBSOUND SET_MAKE 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 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 --disable-largefile omit support
for large files
856 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
857 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
858 --without-gcc don
't use GCC to compile Emacs if GCC is found
859 --without-pop don't support POP
mail retrieval with movemail
860 --with-kerberos support Kerberos-authenticated POP
861 --with-kerberos5 support Kerberos version
5 authenticated POP
862 --with-hesiod support Hesiod to get the POP server
host
863 --without-sound don
't compile with sound support
864 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
865 --with-xpm use -lXpm for displaying XPM images
866 --with-jpeg use -ljpeg for displaying JPEG images
867 --with-tiff use -ltiff for displaying TIFF images
868 --with-gif use -lungif for displaying GIF images
869 --with-png use -lpng for displaying PNG images
870 --without-toolkit-scroll-bars
871 don't use Motif or Xaw3d scroll bars
872 --without-xim don
't use X11 XIM
873 --without-carbon don't use Carbon GUI on Mac OS X
874 --with-x use the X Window System
876 Some influential environment variables
:
877 CC C compiler
command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
880 nonstandard directory
<lib dir
>
881 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
882 headers
in a nonstandard directory
<include dir
>
885 Use these variables to override the choices made by
`configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
963 It was created by $as_me, which was
964 generated by GNU Autoconf 2.54. Invocation command line was
975 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
976 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
977 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
978 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
979 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
981 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
982 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
984 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
985 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
986 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
987 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
988 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
989 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
990 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 test -z "$as_dir" && as_dir=.
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Also quote any args containing shell meta-characters.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n ) continue ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1030 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1031 # Get rid of the leading space.
1035 # When interrupted or exit'd, cleanup temporary files, and complete
1036 # config.log. We remove comments because anyway the quotes in there
1037 # would cause problems or look ugly.
1038 # WARNING: Be sure not to use single quotes in there, as some shells,
1039 # such as our DU 5.0 friend, will then `close
' the trap.
1040 trap 'exit_status
=$?
1041 # Save into config.log some information that might help in debugging.
1046 ## ---------------- ##
1047 ## Cache variables. ##
1048 ## ---------------- ##
1051 # The following way of writing the cache mishandles newlines in values,
1054 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1057 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1062 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 ## ----------------- ##
1070 ## Output variables. ##
1071 ## ----------------- ##
1074 for ac_var
in $ac_subst_vars
1076 eval ac_val
=$
`echo $ac_var`
1077 echo "$ac_var='"'"'$ac_val'"'"'"
1081 if test -n "$ac_subst_files"; then
1088 for ac_var
in $ac_subst_files
1090 eval ac_val
=$
`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1096 if test -s confdefs.h
; then
1103 sed "/^$/d" confdefs.h |
sort
1106 test "$ac_signal" != 0 &&
1107 echo "$as_me: caught signal $ac_signal"
1108 echo "$as_me: exit $exit_status"
1110 rm -f core core.
* *.core
&&
1111 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1114 for ac_signal in 1 2 13 15; do
1115 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1120 rm -rf conftest* confdefs.h
1121 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1124 # Predefined preprocessor variables.
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_NAME "$PACKAGE_NAME"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_STRING "$PACKAGE_STRING"
1146 cat >>confdefs.h <<_ACEOF
1147 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151 # Let the site file select an alternate cache file if it wants to.
1152 # Prefer explicitly selected file to automatically selected ones.
1153 if test -z "$CONFIG_SITE"; then
1154 if test "x$prefix" != xNONE; then
1155 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1157 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1160 for ac_site_file in $CONFIG_SITE; do
1161 if test -r "$ac_site_file"; then
1162 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1163 echo "$as_me: loading site script $ac_site_file" >&6;}
1164 sed 's
/^
/|
/' "$ac_site_file" >&5
1169 if test -r "$cache_file"; then
1170 # Some versions of bash will fail to source /dev/null (special
1171 # files actually), so we avoid doing that.
1172 if test -f "$cache_file"; then
1173 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1174 echo "$as_me: loading cache $cache_file" >&6;}
1176 [\\/]* | ?:[\\/]* ) . $cache_file;;
1177 *) . ./$cache_file;;
1181 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1182 echo "$as_me: creating cache $cache_file" >&6;}
1186 # Check that the precious variables saved in the cache have kept the same
1188 ac_cache_corrupted=false
1189 for ac_var in `(set) 2>&1 |
1190 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1192 eval ac_new_set=\$ac_env_${ac_var}_set
1193 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1194 eval ac_new_val="\$ac_env_${ac_var}_value"
1195 case $ac_old_set,$ac_new_set in
1197 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1198 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1199 ac_cache_corrupted=: ;;
1201 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1202 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1203 ac_cache_corrupted=: ;;
1206 if test "x$ac_old_val" != "x$ac_new_val"; then
1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1208 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1209 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1210 echo "$as_me: former value: $ac_old_val" >&2;}
1211 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1212 echo "$as_me: current value: $ac_new_val" >&2;}
1213 ac_cache_corrupted=:
1216 # Pass precious variables to config.status.
1217 if test "$ac_new_set" = set; then
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1221 *) ac_arg=$ac_var=$ac_new_val ;;
1223 case " $ac_configure_args " in
1224 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1225 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1229 if $ac_cache_corrupted; then
1230 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1231 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1232 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1233 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1234 { (exit 1); exit 1; }; }
1238 ac_cpp='$CPP $CPPFLAGS'
1239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1240 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1261 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1264 test "$program_prefix" != NONE &&
1265 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1266 # Use a double $ so make ignores it.
1267 test "$program_suffix" != NONE &&
1268 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1269 # Double any \ or $. echo might interpret backslashes.
1270 # By default was `s,x,x', remove it
if useless.
1271 cat <<\_ACEOF
>conftest.
sed
1272 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1274 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1278 lispdir
='${datadir}/emacs/${version}/lisp'
1279 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1280 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1281 lisppath
='${locallisppath}:${lispdir}'
1282 etcdir
='${datadir}/emacs/${version}/etc'
1283 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1284 docdir
='${datadir}/emacs/${version}/etc'
1285 gamedir
='${localstatedir}/games/emacs'
1290 # Check whether --with-gcc or --without-gcc was given.
1291 if test "${with_gcc+set}" = set; then
1296 # Check whether --with-pop or --without-pop was given.
1297 if test "${with_pop+set}" = set; then
1299 if test "$withval" = yes; then
1300 cat >>confdefs.h
<<\_ACEOF
1301 #define MAIL_USE_POP 1
1307 cat >>confdefs.h
<<\_ACEOF
1308 #define MAIL_USE_POP 1
1314 # Check whether --with-kerberos or --without-kerberos was given.
1315 if test "${with_kerberos+set}" = set; then
1316 withval
="$with_kerberos"
1317 cat >>confdefs.h
<<\_ACEOF
1324 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1325 if test "${with_kerberos5+set}" = set; then
1326 withval
="$with_kerberos5"
1327 if test "${with_kerberos5+set}" = set; then
1328 if test "${with_kerberos+set}" != set; then
1330 cat >>confdefs.h
<<\_ACEOF
1337 cat >>confdefs.h
<<\_ACEOF
1343 # Check whether --with-hesiod or --without-hesiod was given.
1344 if test "${with_hesiod+set}" = set; then
1345 withval
="$with_hesiod"
1347 cat >>confdefs.h
<<\_ACEOF
1354 # Check whether --with-sound or --without-sound was given.
1355 if test "${with_sound+set}" = set; then
1356 withval
="$with_sound"
1361 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1362 if test "${with_x_toolkit+set}" = set; then
1363 withval
="$with_x_toolkit"
1364 case "${withval}" in
1365 y | ye |
yes ) val
=athena
;;
1367 l | lu | luc | luci | lucid
) val
=lucid
;;
1368 a |
at | ath | athe | athen | athena
) val
=athena
;;
1369 m | mo | mot | moti | motif
) val
=motif
;;
1371 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1372 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1373 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1374 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1375 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1376 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1377 { (exit 1); exit 1; }; }
1384 # Check whether --with-xpm or --without-xpm was given.
1385 if test "${with_xpm+set}" = set; then
1390 # Check whether --with-jpeg or --without-jpeg was given.
1391 if test "${with_jpeg+set}" = set; then
1392 withval
="$with_jpeg"
1396 # Check whether --with-tiff or --without-tiff was given.
1397 if test "${with_tiff+set}" = set; then
1398 withval
="$with_tiff"
1402 # Check whether --with-gif or --without-gif was given.
1403 if test "${with_gif+set}" = set; then
1408 # Check whether --with-png or --without-png was given.
1409 if test "${with_png+set}" = set; then
1414 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1415 if test "${with_toolkit_scroll_bars+set}" = set; then
1416 withval
="$with_toolkit_scroll_bars"
1420 # Check whether --with-xim or --without-xim was given.
1421 if test "${with_xim+set}" = set; then
1426 # Check whether --with-carbon or --without-carbon was given.
1427 if test "${with_carbon+set}" = set; then
1428 withval
="$with_carbon"
1432 #### Make srcdir absolute, if it isn't already. It's important to
1433 #### avoid running the path through pwd unnecessarily, since pwd can
1434 #### give you automounter prefixes, which can go away. We do all this
1435 #### so Emacs can find its files when run uninstalled.
1436 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1441 ## We may be able to use the $PWD environment variable to make this
1442 ## absolute. But sometimes PWD is inaccurate.
1443 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1444 ## but that tested only for a well-formed and valid PWD,
1445 ## it did not object when PWD was well-formed and valid but just wrong.
1446 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1450 srcdir
="`(cd ${srcdir}; pwd)`"
1453 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1456 #### Check if the source directory already has a configured system in it.
1457 if test `pwd` != `(cd ${srcdir} && pwd)` \
1458 && test -f "${srcdir}/src/config.h" ; then
1459 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1460 as a build directory right now; it has been configured in its own
1461 right. To configure in another directory as well, you MUST
1462 use GNU make. If you do not have GNU make, then you must
1463 now do \`make distclean' in ${srcdir},
1464 and then run $0 again." >&5
1465 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1466 as a build directory right now; it has been configured in its own
1467 right. To configure in another directory as well, you MUST
1468 use GNU make. If you do not have GNU make, then you must
1469 now do \`make distclean' in ${srcdir},
1470 and then run $0 again." >&2;}
1472 extrasub
='/^VPATH[ ]*=/c\
1473 vpath %.c $(srcdir)\
1474 vpath %.h $(srcdir)\
1475 vpath %.y $(srcdir)\
1476 vpath %.l $(srcdir)\
1477 vpath %.s $(srcdir)\
1478 vpath %.in $(srcdir)\
1479 vpath %.texi $(srcdir)'
1482 #### Given the configuration name, set machfile and opsysfile to the
1483 #### names of the m/*.h and s/*.h files we should use.
1485 ### Canonicalize the configuration name.
1488 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1489 if test -f $ac_dir/install-sh
; then
1491 ac_install_sh
="$ac_aux_dir/install-sh -c"
1493 elif test -f $ac_dir/install.sh
; then
1495 ac_install_sh
="$ac_aux_dir/install.sh -c"
1497 elif test -f $ac_dir/shtool
; then
1499 ac_install_sh
="$ac_aux_dir/shtool install -c"
1503 if test -z "$ac_aux_dir"; then
1504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506 { (exit 1); exit 1; }; }
1508 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1514 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 ac_cv_build_alias
=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525 ac_cv_build_alias
=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529 { (exit 1); exit 1; }; }
1530 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1539 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 ac_cv_host_alias
=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551 ac_cv_host_alias
=$ac_cv_build_alias
1552 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1553 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1561 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 configuration
=${host_alias-$host}
1570 ### If you add support for a new configuration, add code to this
1571 ### switch statement to recognize your configuration name and select
1572 ### the appropriate operating system and machine description files.
1574 ### You would hope that you could choose an m/*.h file pretty much
1575 ### based on the machine portion of the configuration name, and an s-
1576 ### file based on the operating system portion. However, it turns out
1577 ### that each m/*.h file is pretty manufacturer-specific - for
1578 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1579 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1580 ### machines. So we basically have to have a special case for each
1581 ### configuration name.
1583 ### As far as handling version numbers on operating systems is
1584 ### concerned, make sure things will fail in a fixable way. If
1585 ### /etc/MACHINES doesn't say anything about version numbers, be
1586 ### prepared to handle anything reasonably. If version numbers
1587 ### matter, be sure /etc/MACHINES says something about it.
1589 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1590 ### "System V Release 4"; he writes, "The old convention encouraged
1591 ### confusion between `system' and `release' levels'."
1593 machine
='' opsys
='' unported
=no
1594 case "${canonical}" in
1599 case "${canonical}" in
1600 alpha
*-*-freebsd*) machine
=alpha
;;
1601 i
[3456]86-*-freebsd*) machine
=intel386
;;
1608 case "${canonical}" in
1609 alpha
*-*-netbsd*) machine
=alpha
;;
1610 i
[3456]86-*-netbsd*) machine
=intel386
;;
1612 # This is somewhat bogus.
1613 machine
=hp9000s300
;;
1614 powerpc-apple-netbsd
*) machine
=macppc
;;
1615 mips-
*-netbsd*) machine
=pmax
;;
1616 mipsel-
*-netbsd*) machine
=pmax
;;
1617 mipseb-
*-netbsd*) machine
=pmax
;;
1618 ns32k-
*-netbsd*) machine
=ns32000
;;
1619 powerpc-
*-netbsd*) machine
=macppc
;;
1620 sparc
*-*-netbsd*) machine
=sparc
;;
1621 vax-
*-netbsd*) machine
=vax
;;
1622 arm-
*-netbsd*) machine
=arm
;;
1629 case "${canonical}" in
1630 alpha
*-*-openbsd*) machine
=alpha
;;
1631 i386-
*-openbsd*) machine
=intel386
;;
1632 m68k-
*-openbsd*) machine
=hp9000s300
;;
1633 mipsel-
*-openbsd*) machine
=pmax
;;
1634 ns32k-
*-openbsd*) machine
=ns32000
;;
1635 sparc-
*-openbsd*) machine
=sparc
;;
1636 vax-
*-openbsd*) machine
=vax
;;
1641 arm-acorn-riscix1.1
* )
1642 machine
=acorn opsys
=riscix1-1
1644 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1645 ## This name is riscix12 instead of riscix1.2
1646 ## to avoid a file name conflict on MSDOS.
1647 machine
=acorn opsys
=riscix12
1653 case "${canonical}" in
1654 i
[345]86-*-bsdi*) machine
=intel386
;;
1655 sparc-
*-bsdi*) machine
=sparc
;;
1656 powerpc-
*-bsdi*) machine
=macppc
;;
1658 case "${canonical}" in
1659 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1660 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1661 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1662 *-*-bsdi3* ) opsys
=bsdos3
;;
1663 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1668 ## Strictly speaking, we need the version of the alliant operating
1669 ## system to choose the right machine file, but currently the
1670 ## configuration name doesn't tell us enough to choose the right
1671 ## one; we need to give alliants their own operating system name to
1672 ## do this right. When someone cares, they can help us.
1674 machine
=alliant4 opsys
=bsd4-2
1677 machine
=alliant-2800 opsys
=bsd4-3
1680 ## Alpha (DEC) machines.
1682 machine
=alpha opsys
=osf1
1683 # This is needed to find X11R6.1 libraries for certain tests.
1684 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1685 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1686 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1687 # due to non-traditional preprocessing with the current compiler
1688 # defaults. OSF 4 can also have that compiler version, and there
1689 # seems always to have been a usable /usr/bin/cpp.
1690 NON_GNU_CPP
=/usr
/bin
/cpp
1691 case "${canonical}" in
1692 alpha
*-dec-osf[5-9]*)
1697 alpha
*-*-linux-gnu* )
1698 machine
=alpha opsys
=gnu-linux
1702 machine
=arm opsys
=gnu-linux
1707 machine
=macppc opsys
=gnu-linux
1712 machine
=altos opsys
=usg5-2
1717 machine
=amdahl opsys
=usg5-2-2
1720 ## Apollo, Domain/OS
1722 machine
=apollo opsys
=bsd4-3
1725 ## AT&T 3b2, 3b5, 3b15, 3b20
1727 machine
=att3b opsys
=usg5-2-2
1730 ## AT&T 3b1 - The Mighty Unix PC!
1732 machine
=7300 opsys
=usg5-2-2
1737 machine
=ibmrs6000 opsys
=aix3-2
1742 machine
=dpx2 opsys
=usg5-3
1747 machine
=sps7 opsys
=usg5-2
1750 ## CCI 5/32, 6/32 -- see "Tahoe".
1753 ## I don't know what configuration name to use for this; config.sub
1754 ## doesn't seem to know anything about it. Hey, Celerity users, get
1755 ## in touch with us!
1756 celerity-celerity-bsd
* )
1757 machine
=celerity opsys
=bsd4-2
1761 ## What operating systems does this chip run that Emacs has been
1765 ## We'll use the catch-all code at the bottom to guess the
1766 ## operating system.
1770 mips-compaq-nonstopux
* )
1771 machine
=nonstopux opsys
=nonstopux
1775 *-convex-bsd* |
*-convex-convexos* )
1776 machine
=convex opsys
=bsd4-3
1777 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1778 NON_GNU_CPP
="cc -E -P"
1782 i
[3456]86-cubix-sysv* )
1783 machine
=intel386 opsys
=usg5-3
1787 cydra
*-cydrome-sysv* )
1788 machine
=cydra5 opsys
=usg5-3
1791 ## Data General AViiON Machines
1792 ## DG changed naming conventions with the release of 5.4.4.10, they
1793 ## dropped the initial 5.4 but left the intervening R. Because of the
1794 ## R this shouldn't conflict with older versions of the OS (which I
1795 ## think were named like dgux4.*). In addition, DG new AViiONs series
1796 ## uses either Motorola M88k or Intel Pentium CPUs.
1797 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1798 machine
=aviion opsys
=dgux4
1800 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1801 ## This name is dgux5-4-3 instead of dgux5-4r3
1802 ## to avoid a file name conflict on MSDOS.
1803 machine
=aviion opsys
=dgux5-4-3
1805 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1806 machine
=aviion opsys
=dgux5-4r2
1809 machine
=aviion opsys
=dgux
1812 ## Data General AViiON Intel (x86) Machines
1813 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1814 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1815 i
[345]86-dg-dguxR4* )
1816 machine
=aviion-intel opsys
=dgux4
1820 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1821 machine
=pmax opsys
=bsd4-2
1823 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1824 machine
=pmax opsys
=bsd4-3
1827 machine
=pmax opsys
=ultrix4-3
1830 machine
=pmax opsys
=osf1
1832 mips-dec-mach_bsd4.3
* )
1833 machine
=pmax opsys
=mach-bsd4-3
1836 ## Motorola Delta machines
1837 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1838 machine
=delta opsys
=usg5-3
1839 if test -z "`type gnucc | grep 'not found'`"
1841 if test -s /etc
/167config
1842 then CC
="gnucc -m68040"
1843 else CC
="gnucc -m68881"
1846 if test -z "`type gcc | grep 'not found'`"
1852 m88k-motorola-sysv4
* )
1853 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1854 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1855 # I hope there are not other 4.0 versions for this machine
1856 # which really need usg5-4 instead.
1857 machine
=delta88k opsys
=usg5-4-2
1859 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1860 machine
=delta88k opsys
=usg5-3
1865 machine
=dual opsys
=usg5-2
1867 m68
*-dual-uniplus* )
1868 machine
=dual opsys
=unipl5-2
1873 machine
=elxsi opsys
=usg5-2
1878 machine
=ns16000 opsys
=umax
1881 ## The GEC 63 - apparently, this port isn't really finished yet.
1882 # I'm sure we finished off the last of the machines, though. -- fx
1884 ## Gould Power Node and NP1
1886 machine
=gould opsys
=bsd4-2
1889 machine
=gould opsys
=bsd4-3
1892 machine
=gould-np1 opsys
=bsd4-3
1895 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1896 ## as far as Emacs is concerned).
1898 # Build needs to be different on 7.0 and later releases
1899 case "`uname -r`" in
1900 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1901 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1903 NON_GNU_CPP
="/lib/cpp"
1905 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1907 machine
=nh3000 opsys
=cxux
1909 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1910 powerpc-harris-powerunix
)
1911 machine
=nh6000 opsys
=powerunix
1912 NON_GNU_CPP
="cc -Xo -E -P"
1914 ## SR2001/SR2201 running HI-UX/MPP
1915 hppa1.1
-hitachi-hiuxmpp* )
1916 machine
=sr2k opsys
=hiuxmpp
1918 hppa1.1
-hitachi-hiuxwe2* )
1919 machine
=sr2k opsys
=hiuxwe2
1922 xps
*-honeywell-sysv* )
1923 machine
=xps100 opsys
=usg5-2
1926 ## HP 9000 series 200 or 300
1928 machine
=hp9000s300 opsys
=bsd4-3
1930 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1932 case "`uname -r`" in
1933 ## Someone's system reports A.B8.05 for this.
1934 ## I wonder what other possibilities there are.
1935 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1936 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1937 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1938 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1939 *) machine
=hp9000s300 opsys
=hpux
;;
1943 ## HP 9000 series 700 and 800, running HP/UX
1945 machine
=hp800 opsys
=hpux
1948 machine
=hp800 opsys
=hpux8
1950 hppa
*-hp-hpux9shr* )
1951 machine
=hp800 opsys
=hpux9shr
1954 machine
=hp800 opsys
=hpux9
1957 machine
=hp800 opsys
=hpux10
1959 hppa
*-hp-hpux1[1-9]* )
1960 machine
=hp800 opsys
=hpux11
1963 hppa
*-*-linux-gnu* )
1964 machine
=hp800 opsys
=gnu-linux
1967 ## HP 9000 series 700 and 800, running HP/UX
1969 ## Cross-compilation? Nah!
1970 case "`uname -r`" in
1971 ## Someone's system reports A.B8.05 for this.
1972 ## I wonder what other possibilities there are.
1973 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1974 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1975 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1976 *) machine
=hp800 opsys
=hpux10
;;
1980 machine
=hp800 opsys
=nextstep
1985 machine
=orion opsys
=bsd4-2
1987 clipper-orion-bsd
* )
1988 machine
=orion105 opsys
=bsd4-2
1992 i
[3456]86-ibm-aix1.1
* )
1993 machine
=ibmps2-aix opsys
=usg5-2-2
1995 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1996 machine
=ibmps2-aix opsys
=usg5-3
1999 machine
=ibm370aix opsys
=usg5-3
2002 machine
=ibms390 opsys
=gnu-linux
2004 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2005 machine
=ibmrs6000 opsys
=aix3-1
2007 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2008 machine
=ibmrs6000 opsys
=aix3-2-5
2010 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2011 machine
=ibmrs6000 opsys
=aix4-1
2013 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2014 machine
=ibmrs6000 opsys
=aix4-2
2016 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2017 machine
=ibmrs6000 opsys
=aix4-2
2019 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2020 machine
=ibmrs6000 opsys
=aix4
2022 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2023 machine
=ibmrs6000 opsys
=aix4-1
2025 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2026 machine
=ibmrs6000 opsys
=aix3-2
2029 machine
=ibmrt opsys
=bsd4-3
2032 machine
=ibmrt opsys
=bsd4-2
2035 machine
=ibmrt opsys
=bsd4-3
2038 machine
=ibmrt opsys
=bsd4-2
2041 machine
=ibmrt opsys
=bsd4-3
2044 machine
=ibmrt opsys
=bsd4-3
2047 machine
=ibmrt-aix opsys
=usg5-2-2
2050 ## Integrated Solutions `Optimum V'
2052 machine
=isi-ov opsys
=bsd4-2
2055 machine
=isi-ov opsys
=bsd4-3
2058 ## Intel 386 machines where we do care about the manufacturer
2059 i
[3456]86-intsys-sysv* )
2060 machine
=is386 opsys
=usg5-2-2
2064 i
[3456]86-prime-sysv* )
2065 machine
=i386 opsys
=usg5-3
2068 ## Sequent Symmetry running Dynix
2069 i
[3456]86-sequent-bsd* )
2070 machine
=symmetry opsys
=bsd4-3
2073 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2074 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2075 machine
=sequent-ptx opsys
=ptx4
2076 NON_GNU_CPP
=/lib
/cpp
2079 ## Sequent Symmetry running DYNIX/ptx
2080 ## Use the old cpp rather than the newer ANSI one.
2081 i
[3456]86-sequent-ptx* )
2082 machine
=sequent-ptx opsys
=ptx
2083 NON_GNU_CPP
="/lib/cpp"
2086 ## ncr machine running svr4.3.
2087 i
[3456]86-ncr-sysv4.3
)
2088 machine
=ncr386 opsys
=usg5-4-3
2091 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2092 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2093 i
[3456]86-ncr-sysv* )
2094 machine
=ncr386 opsys
=usg5-4-2
2097 ## Intel Paragon OSF/1
2099 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2104 machine
=i860 opsys
=usg5-4
2105 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2106 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2109 ## Macintosh PowerPC
2110 powerpc
*-*-linux-gnu* )
2111 machine
=macppc opsys
=gnu-linux
2114 ## Masscomp machines
2115 m68
*-masscomp-rtu* )
2116 machine
=masscomp opsys
=rtu
2119 ## Megatest machines
2120 m68
*-megatest-bsd* )
2121 machine
=mega68 opsys
=bsd4-2
2124 ## Workstations sold by MIPS
2125 ## This is not necessarily all workstations using the MIPS processor -
2126 ## Irises are produced by SGI, and DECstations by DEC.
2128 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2129 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2130 ## it gives for choosing between the alternatives seems to be "Use
2131 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2132 ## the BSD world." I'll assume that these are instructions for
2133 ## handling two odd situations, and that every other situation
2134 ## should use mips.h and usg5-2-2, they being listed first.
2137 ## Fall through to the general code at the bottom to decide on the OS.
2139 mips-mips-riscos4
* )
2140 machine
=mips4 opsys
=bsd4-3
2141 NON_GNU_CC
="cc -systype bsd43"
2142 NON_GNU_CPP
="cc -systype bsd43 -E"
2144 mips-mips-riscos5
* )
2145 machine
=mips4 opsys
=riscos5
2146 NON_GNU_CC
="cc -systype bsd43"
2147 NON_GNU_CPP
="cc -systype bsd43 -E"
2150 machine
=mips opsys
=bsd4-3
2153 machine
=mips opsys
=usg5-2-2
2157 m68
*-next-* | m68k-
*-nextstep* )
2158 machine
=m68k opsys
=nextstep
2161 ## The complete machine from National Semiconductor
2163 machine
=ns32000 opsys
=usg5-2
2167 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2168 machine
=tower32 opsys
=usg5-2-2
2170 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2171 machine
=tower32v3 opsys
=usg5-3
2176 machine
=ews4800 opsys
=ux4800
2179 ## Nixdorf Targon 31
2180 m68
*-nixdorf-sysv* )
2181 machine
=targon31 opsys
=usg5-2-2
2186 machine
=nu opsys
=usg5-2
2191 machine
=plexus opsys
=usg5-2
2194 ## PowerPC reference platform
2195 powerpcle-
*-solaris2.5
* )
2200 ## PowerPC reference platform
2201 powerpcle-
*-solaris2* )
2207 ## I don't really have any idea what sort of processor the Pyramid has,
2208 ## so I'm assuming it is its own architecture.
2209 pyramid-pyramid-bsd
* )
2210 machine
=pyramid opsys
=bsd4-2
2214 ns32k-sequent-bsd4.2
* )
2215 machine
=sequent opsys
=bsd4-2
2217 ns32k-sequent-bsd4.3
* )
2218 machine
=sequent opsys
=bsd4-3
2222 mips-siemens-sysv
* | mips-sni-sysv
*)
2223 machine
=mips-siemens opsys
=usg5-4
2224 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2225 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2228 ## Silicon Graphics machines
2229 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2231 machine
=irist opsys
=iris3-5
2233 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2234 machine
=irist opsys
=iris3-6
2238 machine
=iris4d opsys
=irix3-3
2241 machine
=iris4d opsys
=irix4-0
2244 machine
=iris4d opsys
=irix6-5
2245 # Without defining _LANGUAGE_C, things get masked out in the headers
2246 # so that, for instance, grepping for `free' in stdlib.h fails and
2247 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2248 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2249 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2252 machine
=iris4d opsys
=irix6-0
2253 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2254 # but presumably it does no harm.
2255 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2256 # -32 probably isn't necessary in later v.6s -- anyone know which?
2257 NON_GCC_TEST_OPTIONS
=-32
2259 mips-sgi-irix5.
[01]* )
2260 machine
=iris4d opsys
=irix5-0
2262 mips-sgi-irix5
* | mips-sgi-irix
* )
2263 machine
=iris4d opsys
=irix5-2
2268 machine
=news opsys
=bsd4-2
2271 machine
=news opsys
=bsd4-3
2273 m68
*-sony-newsos3* | m68
*-sony-news3*)
2274 machine
=news opsys
=bsd4-3
2276 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2277 machine
=news-risc opsys
=bsd4-3
2279 mips-sony-newsos6
* )
2280 machine
=news-r6 opsys
=newsos6
2283 machine
=news-risc opsys
=newsos5
2288 machine
=stride opsys
=usg5-2
2292 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2293 machine
=sparc opsys
=gnu-linux
2296 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2297 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2298 | rs6000-
*-solaris2*)
2299 case "${canonical}" in
2300 m68
*-sunos1* ) machine
=sun1
;;
2301 m68
*-sunos2* ) machine
=sun2
;;
2302 m68
* ) machine
=sun3
;;
2303 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2304 i
[3456]86-*-* ) machine
=intel386
;;
2305 powerpcle
* ) machine
=powerpcle
;;
2306 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2307 sparc
* ) machine
=sparc
;;
2310 case "${canonical}" in
2311 ## The Sun386 didn't get past 4.0.
2312 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2313 *-sunos4.0
* ) opsys
=sunos4-0
;;
2314 *-sunos4.1.
[3-9]*noshare
)
2315 ## This name is sunos413 instead of sunos4-1-3
2316 ## to avoid a file name conflict on MSDOS.
2318 NON_GNU_CPP
=/usr
/lib
/cpp
2319 NON_GCC_TEST_OPTIONS
=-Bstatic
2320 GCC_TEST_OPTIONS
=-static
2322 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2324 NON_GNU_CPP
=/usr
/lib
/cpp
2326 *-sunos4* |
*-sunos )
2328 NON_GCC_TEST_OPTIONS
=-Bstatic
2329 GCC_TEST_OPTIONS
=-static
2331 *-sunos5.3
* |
*-solaris2.3
* )
2333 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2335 *-sunos5.4
* |
*-solaris2.4
* )
2337 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2340 *-sunos5.5
* |
*-solaris2.5
* )
2342 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2345 *-sunos5.6
* |
*-solaris2.6
* )
2347 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2350 *-sunos5* |
*-solaris* )
2352 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2356 ## Watch out for a compiler that we know will not work.
2357 case "${canonical}" in
2358 *-solaris* |
*-sunos5* )
2359 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2360 ## /usr/ucb/cc doesn't work;
2361 ## we should find some other compiler that does work.
2369 machine
=sparc opsys
=nextstep
2373 m68
*-tadpole-sysv* )
2374 machine
=tad68k opsys
=usg5-3
2378 tahoe-tahoe-bsd4.2
* )
2379 machine
=tahoe opsys
=bsd4-2
2381 tahoe-tahoe-bsd4.3
* )
2382 machine
=tahoe opsys
=bsd4-3
2385 ## Tandem Integrity S2
2387 machine
=tandem-s2 opsys
=usg5-3
2391 m88k-tektronix-sysv3
* )
2392 machine
=tekxd88 opsys
=usg5-3
2395 ## Tektronix 16000 box (6130?)
2396 ns16k-tektronix-bsd
* )
2397 machine
=ns16000 opsys
=bsd4-2
2400 ## src/m/tek4300.h hints that this is a m68k machine.
2401 m68
*-tektronix-bsd* )
2402 machine
=tek4300 opsys
=bsd4-3
2406 ## We seem to have lost the machine-description file titan.h!
2408 machine
=titan opsys
=usg5-3
2411 ## Ustation E30 (SS5E)
2412 m68
*-unisys-uniplus* )
2413 machine
=ustation opsystem
=unipl5-2
2419 case "${canonical}" in
2420 *-bsd4.1
* ) opsys
=bsd4-1
;;
2421 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2422 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2423 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2424 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2425 *-vms* ) opsys
=vms
;;
2431 ns16k-whitechapel-
* )
2433 ## We don't know what sort of OS runs on these; we'll let the
2434 ## operating system guessing code below try.
2439 machine
=wicat opsys
=usg5-2
2444 machine
=ia64 opsys
=gnu-linux
2447 ## Intel 386 machines where we don't care about the manufacturer
2450 case "${canonical}" in
2451 *-lynxos* ) opsys
=lynxos
;;
2452 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2453 *-isc2.2
* ) opsys
=isc2-2
;;
2454 *-isc4.0
* ) opsys
=isc4-0
;;
2455 *-isc4.
* ) opsys
=isc4-1
2456 GCC_TEST_OPTIONS
=-posix
2457 NON_GCC_TEST_OPTIONS
=-Xp
2459 *-isc* ) opsys
=isc3-0
;;
2460 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2461 *-esix* ) opsys
=esix
;;
2462 *-xenix* ) opsys
=xenix
;;
2463 *-linux-gnu* ) opsys
=gnu-linux
;;
2464 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2465 *-sco3.2v5
* ) opsys
=sco5
2466 NON_GNU_CPP
=/lib
/cpp
2467 # Prevent -belf from being passed to $CPP.
2468 # /lib/cpp does not accept it.
2469 OVERRIDE_CPPFLAGS
=" "
2471 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2472 *-386bsd* ) opsys
=386bsd
;;
2473 *-nextstep* ) opsys
=nextstep
;;
2474 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2478 ## m68k Linux-based GNU system
2480 machine
=m68k opsys
=gnu-linux
2483 ## Mips Linux-based GNU system
2485 machine
=mips opsys
=gnu-linux
2489 sparc-fujitsu-sysv4
* )
2490 machine
=sparc opsys
=uxpds
2491 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2496 f301-fujitsu-uxpv4.1
)
2497 machine
=f301 opsys
=uxpv
2500 ## Darwin / Mac OS X
2501 powerpc-apple-darwin
* )
2502 machine
=powermac opsys
=darwin
2503 # Define CPP as follows to make autoconf work correctly.
2504 CPP
="cc -E -traditional-cpp"
2507 ## AMD x86-64 Linux-based GNU system
2508 x86_64-
*-linux-gnu* )
2509 machine
=amdx86-64 opsys
=gnu-linux
2517 ### If the code above didn't choose an operating system, just choose
2518 ### an operating system based on the configuration name. You really
2519 ### only want to use this when you have no idea what the right
2520 ### operating system is; if you know what operating systems a machine
2521 ### runs, it's cleaner to make it explicit in the case statement
2523 if test x
"${opsys}" = x
; then
2524 case "${canonical}" in
2525 *-gnu* ) opsys
=gnu
;;
2526 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2527 *-bsd4.2
) opsys
=bsd4-2
;;
2528 *-bsd4.3
) opsys
=bsd4-3
;;
2529 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2530 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2531 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2532 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2533 *-sysv4.2uw
* ) opsys
=unixware
;;
2534 *-sysv4.1
* |
*-sysvr4.1
* )
2535 NON_GNU_CPP
=/usr
/lib
/cpp
2537 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2538 if [ x
$NON_GNU_CPP = x
]; then
2539 if [ -f /usr
/ccs
/lib
/cpp
]; then
2540 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2542 NON_GNU_CPP
=/lib
/cpp
2546 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2554 if test $unported = yes; then
2555 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2556 Check \`etc/MACHINES' for recognized configuration names." >&5
2557 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2558 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2559 { (exit 1); exit 1; }; }
2562 machfile
="m/${machine}.h"
2563 opsysfile
="s/${opsys}.h"
2566 #### Choose a compiler.
2567 test -n "$CC" && cc_specified
=yes
2569 # Save the value of CFLAGS that the user specified.
2570 SPECIFIED_CFLAGS
="$CFLAGS"
2573 "yes" ) CC
="gcc" GCC
=yes ;;
2574 "no" ) : ${CC=cc} ;;
2578 ac_cpp
='$CPP $CPPFLAGS'
2579 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2585 echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC
="$CC" # Let the user override the test.
2593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir
=.
2598 for ac_exec_ext
in '' $ac_executable_extensions; do
2599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$CC"; then
2611 echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6
2614 echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6
2619 if test -z "$ac_cv_prog_CC"; then
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622 set dummy gcc
; ac_word
=$2
2623 echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir
=.
2636 for ac_exec_ext
in '' $ac_executable_extensions; do
2637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC
="gcc"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6
2652 echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2661 if test -z "$CC"; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2664 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC
="$CC" # Let the user override the test.
2673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir
=.
2678 for ac_exec_ext
in '' $ac_executable_extensions; do
2679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 if test -n "$CC"; then
2691 echo "$as_me:$LINENO: result: $CC" >&5
2692 echo "${ECHO_T}$CC" >&6
2694 echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6
2699 if test -z "$ac_cv_prog_CC"; then
2701 # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc
; ac_word
=$2
2703 echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if test -n "$ac_ct_CC"; then
2709 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir
=.
2716 for ac_exec_ext
in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_ac_ct_CC
="cc"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6
2732 echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2742 if test -z "$CC"; then
2743 # Extract the first word of "cc", so it can be a program name with args.
2744 set dummy cc
; ac_word
=$2
2745 echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC
="$CC" # Let the user override the test.
2754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir
=.
2759 for ac_exec_ext
in '' $ac_executable_extensions; do
2760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2762 ac_prog_rejected
=yes
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test $ac_prog_rejected = yes; then
2773 # We found a bogon in the path, so make sure we never use it.
2774 set dummy
$ac_cv_prog_CC
2776 if test $# != 0; then
2777 # We chose a different compiler from the bogus one.
2778 # However, it has the same basename, so the bogon will be chosen
2779 # first if we set CC to just the basename; use the full file name.
2781 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2787 if test -n "$CC"; then
2788 echo "$as_me:$LINENO: result: $CC" >&5
2789 echo "${ECHO_T}$CC" >&6
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2796 if test -z "$CC"; then
2797 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC
="$CC" # Let the user override the test.
2810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir
=.
2815 for ac_exec_ext
in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2835 test -n "$CC" && break
2838 if test -z "$CC"; then
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy
$ac_prog; ac_word
=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir
=.
2857 for ac_exec_ext
in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_ac_ct_CC
="$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2877 test -n "$ac_ct_CC" && break
2886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2887 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2888 { (exit 1); exit 1; }; }
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO:" \
2892 "checking for C compiler version" >&5
2893 ac_compiler
=`set X $ac_compile; echo $2`
2894 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2895 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2900 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2905 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2910 cat >conftest.
$ac_ext <<_ACEOF
2911 #line $LINENO "configure"
2912 #include "confdefs.h"
2922 ac_clean_files_save
=$ac_clean_files
2923 ac_clean_files
="$ac_clean_files a.out a.exe"
2924 # Try to create an executable without -o first, disregard a.out.
2925 # It will help us diagnose broken compilers, and finding out an intuition
2927 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2928 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2929 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2930 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2931 (eval $ac_link_default) 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; then
2935 # Find the output, starting from the most likely. This scheme is
2936 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2939 # Be careful to initialize this variable, since it used to be cached.
2940 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2942 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
*; do
2943 test -f "$ac_file" ||
continue
2945 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2946 a.out
) # We found the default executable, but exeext='' is most
2949 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2957 echo "$as_me: failed program was:" >&5
2958 cat conftest.
$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2960 check \`config.log' for details." >&5
2961 echo "$as_me: error: C compiler cannot create executables
2962 check \`config.log' for details." >&2;}
2963 { (exit 77); exit 77; }; }
2966 ac_exeext
=$ac_cv_exeext
2967 echo "$as_me:$LINENO: result: $ac_file" >&5
2968 echo "${ECHO_T}$ac_file" >&6
2970 # Check the compiler produces executables we can run. If not, either
2971 # the compiler is broken, or we cross compile.
2972 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2973 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2974 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2975 # If not cross compiling, check that we can run a simple program.
2976 if test "$cross_compiling" != yes; then
2977 if { ac_try
='./$ac_file'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 if test "$cross_compiling" = maybe
; then
2988 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2989 If you meant to cross compile, use \`--host'." >&5
2990 echo "$as_me: error: cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'." >&2;}
2992 { (exit 1); exit 1; }; }
2996 echo "$as_me:$LINENO: result: yes" >&5
2997 echo "${ECHO_T}yes" >&6
2999 rm -f a.out a.exe conftest
$ac_cv_exeext
3000 ac_clean_files
=$ac_clean_files_save
3001 # Check the compiler produces executables we can run. If not, either
3002 # the compiler is broken, or we cross compile.
3003 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3004 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3005 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3006 echo "${ECHO_T}$cross_compiling" >&6
3008 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3009 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3011 (eval $ac_link) 2>&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; then
3015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3017 # work properly (i.e., refer to `conftest.exe'), while it won't with
3019 for ac_file
in conftest.exe conftest conftest.
*; do
3020 test -f "$ac_file" ||
continue
3022 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3023 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3031 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3032 { (exit 1); exit 1; }; }
3035 rm -f conftest
$ac_cv_exeext
3036 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037 echo "${ECHO_T}$ac_cv_exeext" >&6
3039 rm -f conftest.
$ac_ext
3040 EXEEXT
=$ac_cv_exeext
3042 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3043 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3044 if test "${ac_cv_objext+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3048 #line $LINENO "configure"
3049 #include "confdefs.h"
3059 rm -f conftest.o conftest.obj
3060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061 (eval $ac_compile) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; then
3065 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3067 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3068 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3073 echo "$as_me: failed program was:" >&5
3074 cat conftest.
$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3076 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3077 { (exit 1); exit 1; }; }
3080 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3082 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3083 echo "${ECHO_T}$ac_cv_objext" >&6
3084 OBJEXT
=$ac_cv_objext
3086 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3087 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3088 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 cat >conftest.
$ac_ext <<_ACEOF
3092 #line $LINENO "configure"
3093 #include "confdefs.h"
3106 rm -f conftest.
$ac_objext
3107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3108 (eval $ac_compile) 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try
='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3120 echo "$as_me: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3124 rm -f conftest.
$ac_objext conftest.
$ac_ext
3125 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3128 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3130 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CFLAGS
=${CFLAGS+set}
3132 ac_save_CFLAGS
=$CFLAGS
3134 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3135 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3136 if test "${ac_cv_prog_cc_g+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 cat >conftest.
$ac_ext <<_ACEOF
3140 #line $LINENO "configure"
3141 #include "confdefs.h"
3151 rm -f conftest.
$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try
='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3165 echo "$as_me: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3169 rm -f conftest.
$ac_objext conftest.
$ac_ext
3171 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3173 if test "$ac_test_CFLAGS" = set; then
3174 CFLAGS
=$ac_save_CFLAGS
3175 elif test $ac_cv_prog_cc_g = yes; then
3176 if test "$GCC" = yes; then
3182 if test "$GCC" = yes; then
3188 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3189 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3190 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 ac_cv_prog_cc_stdc
=no
3195 cat >conftest.
$ac_ext <<_ACEOF
3196 #line $LINENO "configure"
3197 #include "confdefs.h"
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3216 s = g (p, va_arg (v,int));
3220 int test (int i, double x);
3221 struct s1 {int (*f) (int a);};
3222 struct s2 {int (*f) (double a);};
3223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3234 # Don't try gcc -ansi; that turns off useful extensions and
3235 # breaks some systems' header files.
3236 # AIX -qlanglvl=ansi
3237 # Ultrix and OSF/1 -std1
3238 # HP-UX 10.20 and later -Ae
3239 # HP-UX older versions -Aa -D_HPUX_SOURCE
3240 # SVR4 -Xc -D__EXTENSIONS__
3241 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3243 CC
="$ac_save_CC $ac_arg"
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cc_stdc
=$ac_arg
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 rm -f conftest.
$ac_objext
3264 rm -f conftest.
$ac_ext conftest.
$ac_objext
3269 case "x$ac_cv_prog_cc_stdc" in
3271 echo "$as_me:$LINENO: result: none needed" >&5
3272 echo "${ECHO_T}none needed" >&6 ;;
3274 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3275 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3276 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3279 # Some people use a C++ compiler to compile C. Since we use `exit',
3280 # in C++ we need to declare it. In case someone uses the same compiler
3281 # for both compiling C and C++ we need to have the C++ compiler decide
3282 # the declaration of exit, since it's the most demanding environment.
3283 cat >conftest.
$ac_ext <<_ACEOF
3288 rm -f conftest.
$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } &&
3294 { ac_try
='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 for ac_declaration
in \
3302 '#include <stdlib.h>' \
3303 'extern "C" void std::exit (int) throw (); using std::exit;' \
3304 'extern "C" void std::exit (int); using std::exit;' \
3305 'extern "C" void exit (int) throw ();' \
3306 'extern "C" void exit (int);' \
3309 cat >conftest.
$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 #include "confdefs.h"
3322 rm -f conftest.
$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try
='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3336 echo "$as_me: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3340 rm -f conftest.
$ac_objext conftest.
$ac_ext
3341 cat >conftest.
$ac_ext <<_ACEOF
3342 #line $LINENO "configure"
3343 #include "confdefs.h"
3353 rm -f conftest.
$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try
='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3367 echo "$as_me: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 rm -f conftest.
$ac_objext conftest.
$ac_ext
3373 if test -n "$ac_declaration"; then
3374 echo '#ifdef __cplusplus' >>confdefs.h
3375 echo $ac_declaration >>confdefs.h
3376 echo '#endif' >>confdefs.h
3380 echo "$as_me: failed program was:" >&5
3381 cat conftest.
$ac_ext >&5
3383 rm -f conftest.
$ac_objext conftest.
$ac_ext
3385 ac_cpp
='$CPP $CPPFLAGS'
3386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3391 # On Suns, sometimes $CPP names a directory.
3392 if test -n "$CPP" && test -d "$CPP"; then
3396 #### Some systems specify a CPP to use unless we are using GCC.
3397 #### Now that we know whether we are using GCC, we can decide whether
3398 #### to use that one.
3399 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3404 #### Some systems specify a CC to use unless we are using GCC.
3405 #### Now that we know whether we are using GCC, we can decide whether
3406 #### to use that one.
3407 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3408 test x
$cc_specified != xyes
3413 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3415 CC
="$CC $GCC_TEST_OPTIONS"
3418 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3420 CC
="$CC $NON_GCC_TEST_OPTIONS"
3423 #### Some other nice autoconf tests. If you add a test here which
3424 #### should make an entry in src/config.h, don't forget to add an
3425 #### #undef clause to src/config.h.in for autoconf to modify.
3427 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3428 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3430 if test "$LN_S" = "ln -s"; then
3431 echo "$as_me:$LINENO: result: yes" >&5
3432 echo "${ECHO_T}yes" >&6
3434 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3435 echo "${ECHO_T}no, using $LN_S" >&6
3439 ac_cpp
='$CPP $CPPFLAGS'
3440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3443 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3444 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3445 # On Suns, sometimes $CPP names a directory.
3446 if test -n "$CPP" && test -d "$CPP"; then
3449 if test -z "$CPP"; then
3450 if test "${ac_cv_prog_CPP+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 # Double quotes because CPP needs to be expanded
3454 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457 for ac_c_preproc_warn_flag
in '' yes
3459 # Use a header file that comes with gcc, so configuring glibc
3460 # with a fresh cross-compiler works.
3461 # On the NeXT, cc -E runs the code through the compiler's parser,
3462 # not just through cpp. "Syntax error" is here to catch this case.
3463 cat >conftest.
$ac_ext <<_ACEOF
3464 #line $LINENO "configure"
3465 #include "confdefs.h"
3469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1
>conftest.err
3474 cat conftest.err
>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev
/null
; then
3477 if test -s conftest.err
; then
3478 ac_cpp_err
=$ac_c_preproc_warn_flag
3485 if test -z "$ac_cpp_err"; then
3488 echo "$as_me: failed program was:" >&5
3489 cat conftest.
$ac_ext >&5
3490 # Broken: fails on valid input.
3493 rm -f conftest.err conftest.
$ac_ext
3495 # OK, works on sane cases. Now check whether non-existent headers
3496 # can be detected and how.
3497 cat >conftest.
$ac_ext <<_ACEOF
3498 #line $LINENO "configure"
3499 #include "confdefs.h"
3500 #include <ac_nonexistent.h>
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev
/null
; then
3510 if test -s conftest.err
; then
3511 ac_cpp_err
=$ac_c_preproc_warn_flag
3518 if test -z "$ac_cpp_err"; then
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 cat conftest.
$ac_ext >&5
3524 # Passes both tests.
3528 rm -f conftest.err conftest.
$ac_ext
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.
$ac_ext
3533 if $ac_preproc_ok; then
3545 echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6
3548 for ac_c_preproc_warn_flag
in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.
$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1
>conftest.err
3565 cat conftest.err
>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev
/null
; then
3568 if test -s conftest.err
; then
3569 ac_cpp_err
=$ac_c_preproc_warn_flag
3576 if test -z "$ac_cpp_err"; then
3579 echo "$as_me: failed program was:" >&5
3580 cat conftest.
$ac_ext >&5
3581 # Broken: fails on valid input.
3584 rm -f conftest.err conftest.
$ac_ext
3586 # OK, works on sane cases. Now check whether non-existent headers
3587 # can be detected and how.
3588 cat >conftest.
$ac_ext <<_ACEOF
3589 #line $LINENO "configure"
3590 #include "confdefs.h"
3591 #include <ac_nonexistent.h>
3593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3596 grep -v '^ *+' conftest.er1
>conftest.err
3598 cat conftest.err
>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev
/null
; then
3601 if test -s conftest.err
; then
3602 ac_cpp_err
=$ac_c_preproc_warn_flag
3609 if test -z "$ac_cpp_err"; then
3610 # Broken: success on invalid input.
3613 echo "$as_me: failed program was:" >&5
3614 cat conftest.
$ac_ext >&5
3615 # Passes both tests.
3619 rm -f conftest.err conftest.
$ac_ext
3622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3623 rm -f conftest.err conftest.
$ac_ext
3624 if $ac_preproc_ok; then
3627 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3628 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3629 { (exit 1); exit 1; }; }
3633 ac_cpp
='$CPP $CPPFLAGS'
3634 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3638 # Find a good install program. We prefer a C program (faster),
3639 # so one script is as good as another. But avoid the broken or
3640 # incompatible versions:
3641 # SysV /etc/install, /usr/sbin/install
3642 # SunOS /usr/etc/install
3643 # IRIX /sbin/install
3645 # AmigaOS /C/install, which installs bootblocks on floppy discs
3646 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3649 # ./install, which can be erroneously created by make from ./install.sh.
3650 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3651 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3652 if test -z "$INSTALL"; then
3653 if test "${ac_cv_path_install+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir
=.
3661 # Account for people who put trailing slashes in PATH elements.
3663 .
/ | .
// |
/cC
/* | \
3664 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3667 # OSF1 and SCO ODT 3.0 have their own names for install.
3668 # Don't use installbsd from OSF since it installs stuff as root
3670 for ac_prog
in ginstall scoinst
install; do
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3673 if test $ac_prog = install &&
3674 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3675 # AIX install. It has an incompatible calling convention.
3677 elif test $ac_prog = install &&
3678 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3679 # program-specific install script used by HP pwplus--don't use.
3682 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3694 if test "${ac_cv_path_install+set}" = set; then
3695 INSTALL
=$ac_cv_path_install
3697 # As a last resort, use the slow shell script. We don't cache a
3698 # path for INSTALL within a source directory, because that will
3699 # break other packages using the cache if that directory is
3700 # removed, or if the path is relative.
3701 INSTALL
=$ac_install_sh
3704 echo "$as_me:$LINENO: result: $INSTALL" >&5
3705 echo "${ECHO_T}$INSTALL" >&6
3707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3708 # It thinks the first close brace ends the variable substitution.
3709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3713 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3715 if test "x$RANLIB" = x
; then
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3718 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3719 echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721 if test "${ac_cv_prog_RANLIB+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test -n "$RANLIB"; then
3725 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir
=.
3732 for ac_exec_ext
in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 RANLIB
=$ac_cv_prog_RANLIB
3744 if test -n "$RANLIB"; then
3745 echo "$as_me:$LINENO: result: $RANLIB" >&5
3746 echo "${ECHO_T}$RANLIB" >&6
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3753 if test -z "$ac_cv_prog_RANLIB"; then
3754 ac_ct_RANLIB
=$RANLIB
3755 # Extract the first word of "ranlib", so it can be a program name with args.
3756 set dummy ranlib
; ac_word
=$2
3757 echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test -n "$ac_ct_RANLIB"; then
3763 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_exec_ext
in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3782 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3783 if test -n "$ac_ct_RANLIB"; then
3784 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3785 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3791 RANLIB
=$ac_ct_RANLIB
3793 RANLIB
="$ac_cv_prog_RANLIB"
3799 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3801 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3804 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3806 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3811 echo "$as_me:$LINENO: checking for egrep" >&5
3812 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3813 if test "${ac_cv_prog_egrep+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3817 then ac_cv_prog_egrep
='grep -E'
3818 else ac_cv_prog_egrep
='egrep'
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3822 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3823 EGREP
=$ac_cv_prog_egrep
3827 echo "$as_me:$LINENO: checking for AIX" >&5
3828 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3829 cat >conftest.
$ac_ext <<_ACEOF
3830 #line $LINENO "configure"
3831 #include "confdefs.h"
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 $EGREP "yes" >/dev
/null
2>&1; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6
3841 cat >>confdefs.h
<<\_ACEOF
3842 #define _ALL_SOURCE 1
3846 echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3853 #### Extract some information from the operating system and machine files.
3855 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3856 - which libraries the lib-src programs will want, and
3857 - whether the GNU malloc routines are usable..." >&5
3858 echo "$as_me: checking the machine- and system-dependent files to find out
3859 - which libraries the lib-src programs will want, and
3860 - whether the GNU malloc routines are usable..." >&6;}
3862 ### First figure out CFLAGS (which we use for running the compiler here)
3863 ### and REAL_CFLAGS (which we use for real compilation).
3864 ### The two are the same except on a few systems, where they are made
3865 ### different to work around various lossages. For example,
3866 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3867 ### as implying static linking.
3869 ### If the CFLAGS env var is specified, we use that value
3870 ### instead of the default.
3872 ### It's not important that this name contain the PID; you can't run
3873 ### two configures in the same directory and have anything work
3875 tempcname
="conftest.c"
3878 #include "'${srcdir}'/src/'${opsysfile}'"
3879 #include "'${srcdir}'/src/'${machfile}'"
3880 #ifndef LIBS_MACHINE
3881 #define LIBS_MACHINE
3886 #ifndef C_SWITCH_SYSTEM
3887 #define C_SWITCH_SYSTEM
3889 #ifndef C_SWITCH_MACHINE
3890 #define C_SWITCH_MACHINE
3892 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3893 configure___ c_switch_system=C_SWITCH_SYSTEM
3894 configure___ c_switch_machine=C_SWITCH_MACHINE
3897 #define LIB_X11_LIB -lX11
3900 #ifndef LIBX11_MACHINE
3901 #define LIBX11_MACHINE
3904 #ifndef LIBX11_SYSTEM
3905 #define LIBX11_SYSTEM
3907 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3910 configure___ unexec=UNEXEC
3912 configure___ unexec=unexec.o
3915 #ifdef SYSTEM_MALLOC
3916 configure___ system_malloc=yes
3918 configure___ system_malloc=no
3921 #ifdef USE_MMAP_FOR_BUFFERS
3922 configure___ use_mmap_for_buffers=yes
3924 configure___ use_mmap_for_buffers=no
3927 #ifndef C_DEBUG_SWITCH
3928 #define C_DEBUG_SWITCH -g
3931 #ifndef C_OPTIMIZE_SWITCH
3933 #define C_OPTIMIZE_SWITCH -O2
3935 #define C_OPTIMIZE_SWITCH -O
3939 #ifndef LD_SWITCH_MACHINE
3940 #define LD_SWITCH_MACHINE
3943 #ifndef LD_SWITCH_SYSTEM
3944 #define LD_SWITCH_SYSTEM
3947 #ifndef LD_SWITCH_X_SITE_AUX
3948 #define LD_SWITCH_X_SITE_AUX
3951 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3952 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3954 #ifdef THIS_IS_CONFIGURE
3956 /* Get the CFLAGS for tests in configure. */
3958 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3960 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3963 #else /* not THIS_IS_CONFIGURE */
3965 /* Get the CFLAGS for real compilation. */
3967 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3969 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3972 #endif /* not THIS_IS_CONFIGURE */
3975 # The value of CPP is a quoted variable reference, so we need to do this
3976 # to get its actual value...
3977 CPP
=`eval "echo $CPP"`
3978 eval `${CPP} -Isrc ${tempcname} \
3979 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3980 if test "x$SPECIFIED_CFLAGS" = x
; then
3981 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3982 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3984 REAL_CFLAGS
="$CFLAGS"
3988 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3990 ### Make sure subsequent tests use flags consistent with the build flags.
3992 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3993 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3995 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4000 # Check whether --enable-largefile or --disable-largefile was given.
4001 if test "${enable_largefile+set}" = set; then
4002 enableval
="$enable_largefile"
4005 if test "$enable_largefile" != no
; then
4007 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4008 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 ac_cv_sys_largefile_CC
=no
4013 if test "$GCC" != yes; then
4016 # IRIX 6.2 and later do not support large files by default,
4017 # so use the C compiler's -n32 option if that helps.
4018 cat >conftest.
$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4038 rm -f conftest.
$ac_objext
4039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040 (eval $ac_compile) 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try
='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4052 echo "$as_me: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4055 rm -f conftest.
$ac_objext
4057 rm -f conftest.
$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -s conftest.$ac_objext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 ac_cv_sys_largefile_CC
=' -n32'; break
4071 echo "$as_me: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 rm -f conftest.
$ac_objext
4078 rm -f conftest.
$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4082 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4083 if test "$ac_cv_sys_largefile_CC" != no
; then
4084 CC
=$CC$ac_cv_sys_largefile_CC
4087 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4088 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4089 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 ac_cv_sys_file_offset_bits
=no
4094 cat >conftest.
$ac_ext <<_ACEOF
4095 #line $LINENO "configure"
4096 #include "confdefs.h"
4097 #include <sys/types.h>
4098 /* Check that off_t can represent 2**63 - 1 correctly.
4099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4100 since some C++ compilers masquerading as C compilers
4101 incorrectly reject 9223372036854775807. */
4102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4104 && LARGE_OFF_T % 2147483647 == 1)
4114 rm -f conftest.
$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } &&
4120 { ac_try
='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4128 echo "$as_me: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 rm -f conftest.
$ac_objext conftest.
$ac_ext
4132 cat >conftest.
$ac_ext <<_ACEOF
4133 #line $LINENO "configure"
4134 #include "confdefs.h"
4135 #define _FILE_OFFSET_BITS 64
4136 #include <sys/types.h>
4137 /* Check that off_t can represent 2**63 - 1 correctly.
4138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4139 since some C++ compilers masquerading as C compilers
4140 incorrectly reject 9223372036854775807. */
4141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4143 && LARGE_OFF_T % 2147483647 == 1)
4153 rm -f conftest.
$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try
='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_sys_file_offset_bits
=64; break
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 rm -f conftest.
$ac_objext conftest.
$ac_ext
4174 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4175 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4176 if test "$ac_cv_sys_file_offset_bits" != no
; then
4178 cat >>confdefs.h
<<_ACEOF
4179 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4184 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4185 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4186 if test "${ac_cv_sys_large_files+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 ac_cv_sys_large_files
=no
4191 cat >conftest.
$ac_ext <<_ACEOF
4192 #line $LINENO "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4195 /* Check that off_t can represent 2**63 - 1 correctly.
4196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4197 since some C++ compilers masquerading as C compilers
4198 incorrectly reject 9223372036854775807. */
4199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4201 && LARGE_OFF_T % 2147483647 == 1)
4211 rm -f conftest.
$ac_objext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4213 (eval $ac_compile) 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try
='test -s conftest.$ac_objext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4225 echo "$as_me: failed program was:" >&5
4226 cat conftest.
$ac_ext >&5
4228 rm -f conftest.
$ac_objext conftest.
$ac_ext
4229 cat >conftest.
$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4231 #include "confdefs.h"
4232 #define _LARGE_FILES 1
4233 #include <sys/types.h>
4234 /* Check that off_t can represent 2**63 - 1 correctly.
4235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4236 since some C++ compilers masquerading as C compilers
4237 incorrectly reject 9223372036854775807. */
4238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4240 && LARGE_OFF_T % 2147483647 == 1)
4250 rm -f conftest.
$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try
='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_sys_large_files
=1; break
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4267 rm -f conftest.
$ac_objext conftest.
$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4272 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4273 if test "$ac_cv_sys_large_files" != no
; then
4275 cat >>confdefs.h
<<_ACEOF
4276 #define _LARGE_FILES $ac_cv_sys_large_files
4284 if test "${with_sound}" != "no"; then
4285 # Sound support for GNU/Linux and the free BSDs.
4286 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4288 if test "${ac_cv_header_stdc+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 cat >conftest.
$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 #include "confdefs.h"
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4303 grep -v '^ *+' conftest.er1
>conftest.err
4305 cat conftest.err
>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev
/null
; then
4308 if test -s conftest.err
; then
4309 ac_cpp_err
=$ac_c_preproc_warn_flag
4316 if test -z "$ac_cpp_err"; then
4317 ac_cv_header_stdc
=yes
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4321 ac_cv_header_stdc
=no
4323 rm -f conftest.err conftest.
$ac_ext
4325 if test $ac_cv_header_stdc = yes; then
4326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4327 cat >conftest.
$ac_ext <<_ACEOF
4328 #line $LINENO "configure"
4329 #include "confdefs.h"
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 $EGREP "memchr" >/dev
/null
2>&1; then
4337 ac_cv_header_stdc
=no
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat >conftest.
$ac_ext <<_ACEOF
4346 #line $LINENO "configure"
4347 #include "confdefs.h"
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 $EGREP "free" >/dev
/null
2>&1; then
4355 ac_cv_header_stdc
=no
4361 if test $ac_cv_header_stdc = yes; then
4362 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4363 if test "$cross_compiling" = yes; then
4366 cat >conftest.
$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 #include "confdefs.h"
4370 #if ((' ' & 0x0FF) == 0x020)
4371 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4372 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4374 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4392 rm -f conftest
$ac_exeext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4394 (eval $ac_link) 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4405 echo "$as_me: program exited with status $ac_status" >&5
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 ac_cv_header_stdc
=no
4411 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4419 cat >>confdefs.h
<<\_ACEOF
4420 #define STDC_HEADERS 1
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4435 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4436 inttypes.h stdint.h unistd.h
4438 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.
$ac_ext <<_ACEOF
4445 #line $LINENO "configure"
4446 #include "confdefs.h"
4447 $ac_includes_default
4449 #include <$ac_header>
4451 rm -f conftest.
$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try
='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 eval "$as_ac_Header=yes"
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4467 eval "$as_ac_Header=no"
4469 rm -f conftest.
$ac_objext conftest.
$ac_ext
4471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474 cat >>confdefs.h
<<_ACEOF
4475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4488 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo "$as_me:$LINENO: checking for $ac_header" >&5
4491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4498 # Is the header compilable?
4499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 #include "confdefs.h"
4504 $ac_includes_default
4505 #include <$ac_header>
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try
='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_header_compiler
=yes
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4523 ac_header_compiler
=no
4525 rm -f conftest.
$ac_objext conftest.
$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4527 echo "${ECHO_T}$ac_header_compiler" >&6
4529 # Is the header present?
4530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4532 cat >conftest.
$ac_ext <<_ACEOF
4533 #line $LINENO "configure"
4534 #include "confdefs.h"
4535 #include <$ac_header>
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev
/null
; then
4545 if test -s conftest.err
; then
4546 ac_cpp_err
=$ac_c_preproc_warn_flag
4553 if test -z "$ac_cpp_err"; then
4554 ac_header_preproc
=yes
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.
$ac_ext >&5
4558 ac_header_preproc
=no
4560 rm -f conftest.err conftest.
$ac_ext
4561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4562 echo "${ECHO_T}$ac_header_preproc" >&6
4564 # So? What about this header?
4565 case $ac_header_compiler:$ac_header_preproc in
4567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
4580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 eval "$as_ac_Header=$ac_header_preproc"
4586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4591 cat >>confdefs.h
<<_ACEOF
4592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4599 # Emulation library used on NetBSD.
4600 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4601 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4602 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 ac_check_lib_save_LIBS
=$LIBS
4606 LIBS
="-lossaudio $LIBS"
4607 cat >conftest.
$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 #include "confdefs.h"
4611 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4626 rm -f conftest.
$ac_objext conftest
$ac_exeext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628 (eval $ac_link) 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try
='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_lib_ossaudio__oss_ioctl
=yes
4640 echo "$as_me: failed program was:" >&5
4641 cat conftest.
$ac_ext >&5
4642 ac_cv_lib_ossaudio__oss_ioctl
=no
4644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4645 LIBS
=$ac_check_lib_save_LIBS
4647 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4648 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4649 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4678 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4679 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4680 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
4683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4685 echo "$as_me:$LINENO: checking for $ac_header" >&5
4686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693 # Is the header compilable?
4694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4696 cat >conftest.
$ac_ext <<_ACEOF
4697 #line $LINENO "configure"
4698 #include "confdefs.h"
4699 $ac_includes_default
4700 #include <$ac_header>
4702 rm -f conftest.
$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try
='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_header_compiler
=yes
4716 echo "$as_me: failed program was:" >&5
4717 cat conftest.
$ac_ext >&5
4718 ac_header_compiler
=no
4720 rm -f conftest.
$ac_objext conftest.
$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 echo "${ECHO_T}$ac_header_compiler" >&6
4724 # Is the header present?
4725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4727 cat >conftest.
$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4730 #include <$ac_header>
4732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4733 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev
/null
; then
4740 if test -s conftest.err
; then
4741 ac_cpp_err
=$ac_c_preproc_warn_flag
4748 if test -z "$ac_cpp_err"; then
4749 ac_header_preproc
=yes
4751 echo "$as_me: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4753 ac_header_preproc
=no
4755 rm -f conftest.err conftest.
$ac_ext
4756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4757 echo "${ECHO_T}$ac_header_preproc" >&6
4759 # So? What about this header?
4760 case $ac_header_compiler:$ac_header_preproc in
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 eval "$as_ac_Header=$ac_header_preproc"
4781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h
<<_ACEOF
4787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4796 if test "${ac_cv_header_stdc+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 cat >conftest.
$ac_ext <<_ACEOF
4800 #line $LINENO "configure"
4801 #include "confdefs.h"
4808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1
>conftest.err
4813 cat conftest.err
>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev
/null
; then
4816 if test -s conftest.err
; then
4817 ac_cpp_err
=$ac_c_preproc_warn_flag
4824 if test -z "$ac_cpp_err"; then
4825 ac_cv_header_stdc
=yes
4827 echo "$as_me: failed program was:" >&5
4828 cat conftest.
$ac_ext >&5
4829 ac_cv_header_stdc
=no
4831 rm -f conftest.err conftest.
$ac_ext
4833 if test $ac_cv_header_stdc = yes; then
4834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4835 cat >conftest.
$ac_ext <<_ACEOF
4836 #line $LINENO "configure"
4837 #include "confdefs.h"
4841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4842 $EGREP "memchr" >/dev
/null
2>&1; then
4845 ac_cv_header_stdc
=no
4851 if test $ac_cv_header_stdc = yes; then
4852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4853 cat >conftest.
$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 #include "confdefs.h"
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 $EGREP "free" >/dev
/null
2>&1; then
4863 ac_cv_header_stdc
=no
4869 if test $ac_cv_header_stdc = yes; then
4870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4871 if test "$cross_compiling" = yes; then
4874 cat >conftest.
$ac_ext <<_ACEOF
4875 #line $LINENO "configure"
4876 #include "confdefs.h"
4878 #if ((' ' & 0x0FF) == 0x020)
4879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4882 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4883 || ('j' <= (c) && (c) <= 'r') \
4884 || ('s' <= (c) && (c) <= 'z'))
4885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4893 for (i = 0; i < 256; i++)
4894 if (XOR (islower (i), ISLOWER (i))
4895 || toupper (i) != TOUPPER (i))
4900 rm -f conftest
$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4917 ac_cv_header_stdc
=no
4919 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4924 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4925 if test $ac_cv_header_stdc = yes; then
4927 cat >>confdefs.h
<<\_ACEOF
4928 #define STDC_HEADERS 1
4933 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4934 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4935 if test "${ac_cv_header_time+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 cat >conftest.
$ac_ext <<_ACEOF
4939 #line $LINENO "configure"
4940 #include "confdefs.h"
4941 #include <sys/types.h>
4942 #include <sys/time.h>
4948 if ((struct tm *) 0)
4954 rm -f conftest.
$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try
='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_header_time
=yes
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4970 ac_cv_header_time
=no
4972 rm -f conftest.
$ac_objext conftest.
$ac_ext
4974 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4975 echo "${ECHO_T}$ac_cv_header_time" >&6
4976 if test $ac_cv_header_time = yes; then
4978 cat >>confdefs.h
<<\_ACEOF
4979 #define TIME_WITH_SYS_TIME 1
4984 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4985 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4986 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 cat >conftest.
$ac_ext <<_ACEOF
4990 #line $LINENO "configure"
4991 #include "confdefs.h"
4992 #include <sys/types.h>
4994 /* NetBSD declares sys_siglist in unistd.h. */
4996 # include <unistd.h>
5002 char *msg = *(sys_siglist + 1);
5007 rm -f conftest.
$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try
='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 ac_cv_decl_sys_siglist
=yes
5021 echo "$as_me: failed program was:" >&5
5022 cat conftest.
$ac_ext >&5
5023 ac_cv_decl_sys_siglist
=no
5025 rm -f conftest.
$ac_objext conftest.
$ac_ext
5027 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5028 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5029 if test $ac_cv_decl_sys_siglist = yes; then
5031 cat >>confdefs.h
<<\_ACEOF
5032 #define SYS_SIGLIST_DECLARED 1
5037 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5038 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5039 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 cat >conftest.
$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5045 #include <sys/types.h>
5046 #include <sys/wait.h>
5048 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5051 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5059 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5064 rm -f conftest.
$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try
='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_header_sys_wait_h
=yes
5078 echo "$as_me: failed program was:" >&5
5079 cat conftest.
$ac_ext >&5
5080 ac_cv_header_sys_wait_h
=no
5082 rm -f conftest.
$ac_objext conftest.
$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5085 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5086 if test $ac_cv_header_sys_wait_h = yes; then
5088 cat >>confdefs.h
<<\_ACEOF
5089 #define HAVE_SYS_WAIT_H 1
5095 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5096 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5097 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.
$ac_ext <<_ACEOF
5101 #line $LINENO "configure"
5102 #include "confdefs.h"
5103 #ifdef TIME_WITH_SYS_TIME
5104 #include <sys/time.h>
5107 #ifdef HAVE_SYS_TIME_H
5108 #include <sys/time.h>
5119 static struct utimbuf x; x.actime = x.modtime;
5124 rm -f conftest.
$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try
='test -s conftest.$ac_objext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 emacs_cv_struct_utimbuf
=yes
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.
$ac_ext >&5
5140 emacs_cv_struct_utimbuf
=no
5142 rm -f conftest.
$ac_objext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5145 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5146 if test $emacs_cv_struct_utimbuf = yes; then
5148 cat >>confdefs.h
<<\_ACEOF
5149 #define HAVE_STRUCT_UTIMBUF 1
5154 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5155 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5156 if test "${ac_cv_type_signal+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 cat >conftest.
$ac_ext <<_ACEOF
5160 #line $LINENO "configure"
5161 #include "confdefs.h"
5162 #include <sys/types.h>
5168 extern "C" void (*signal (int, void (*)(int)))(int);
5170 void (*signal ()) ();
5181 rm -f conftest.
$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } &&
5187 { ac_try
='test -s conftest.$ac_objext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_type_signal
=void
5195 echo "$as_me: failed program was:" >&5
5196 cat conftest.
$ac_ext >&5
5197 ac_cv_type_signal
=int
5199 rm -f conftest.
$ac_objext conftest.
$ac_ext
5201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5202 echo "${ECHO_T}$ac_cv_type_signal" >&6
5204 cat >>confdefs.h
<<_ACEOF
5205 #define RETSIGTYPE $ac_cv_type_signal
5210 echo "$as_me:$LINENO: checking for speed_t" >&5
5211 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5212 if test "${emacs_cv_speed_t+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.
$ac_ext <<_ACEOF
5216 #line $LINENO "configure"
5217 #include "confdefs.h"
5218 #include <termios.h>
5227 rm -f conftest.
$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 emacs_cv_speed_t
=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.
$ac_ext >&5
5245 rm -f conftest.
$ac_objext conftest.
$ac_ext
5247 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5248 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5249 if test $emacs_cv_speed_t = yes; then
5251 cat >>confdefs.h
<<\_ACEOF
5252 #define HAVE_SPEED_T 1
5257 echo "$as_me:$LINENO: checking for struct timeval" >&5
5258 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5259 if test "${emacs_cv_struct_timeval+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 cat >conftest.
$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5264 #include "confdefs.h"
5265 #ifdef TIME_WITH_SYS_TIME
5266 #include <sys/time.h>
5269 #ifdef HAVE_SYS_TIME_H
5270 #include <sys/time.h>
5278 static struct timeval x; x.tv_sec = x.tv_usec;
5283 rm -f conftest.
$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try
='test -s conftest.$ac_objext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 emacs_cv_struct_timeval
=yes
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.
$ac_ext >&5
5299 emacs_cv_struct_timeval
=no
5301 rm -f conftest.
$ac_objext conftest.
$ac_ext
5303 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5304 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5305 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5306 if test $emacs_cv_struct_timeval = yes; then
5308 cat >>confdefs.h
<<\_ACEOF
5309 #define HAVE_TIMEVAL 1
5314 echo "$as_me:$LINENO: checking for struct exception" >&5
5315 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5316 if test "${emacs_cv_struct_exception+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.
$ac_ext <<_ACEOF
5320 #line $LINENO "configure"
5321 #include "confdefs.h"
5326 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5331 rm -f conftest.
$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try
='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 emacs_cv_struct_exception
=yes
5345 echo "$as_me: failed program was:" >&5
5346 cat conftest.
$ac_ext >&5
5347 emacs_cv_struct_exception
=no
5349 rm -f conftest.
$ac_objext conftest.
$ac_ext
5351 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5352 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5353 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5354 if test $emacs_cv_struct_exception != yes; then
5356 cat >>confdefs.h
<<\_ACEOF
5357 #define NO_MATHERR 1
5362 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5364 if test "${ac_cv_struct_tm+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 cat >conftest.
$ac_ext <<_ACEOF
5368 #line $LINENO "configure"
5369 #include "confdefs.h"
5370 #include <sys/types.h>
5376 struct tm *tp; tp->tm_sec;
5381 rm -f conftest.
$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383 (eval $ac_compile) 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -s conftest.$ac_objext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_struct_tm
=time.h
5395 echo "$as_me: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5397 ac_cv_struct_tm
=sys
/time.h
5399 rm -f conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5402 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5403 if test $ac_cv_struct_tm = sys
/time.h
; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define TM_IN_SYS_TIME 1
5411 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5412 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5413 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 cat >conftest.
$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5418 #include "confdefs.h"
5419 #include <sys/types.h>
5420 #include <$ac_cv_struct_tm>
5426 static struct tm ac_aggr;
5427 if (ac_aggr.tm_zone)
5433 rm -f conftest.
$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try
='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_member_struct_tm_tm_zone
=yes
5447 echo "$as_me: failed program was:" >&5
5448 cat conftest.
$ac_ext >&5
5449 cat >conftest.
$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452 #include <sys/types.h>
5453 #include <$ac_cv_struct_tm>
5459 static struct tm ac_aggr;
5460 if (sizeof ac_aggr.tm_zone)
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try
='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_member_struct_tm_tm_zone
=yes
5480 echo "$as_me: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5482 ac_cv_member_struct_tm_tm_zone
=no
5484 rm -f conftest.
$ac_objext conftest.
$ac_ext
5486 rm -f conftest.
$ac_objext conftest.
$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5492 cat >>confdefs.h
<<_ACEOF
5493 #define HAVE_STRUCT_TM_TM_ZONE 1
5499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5501 cat >>confdefs.h
<<\_ACEOF
5502 #define HAVE_TM_ZONE 1
5506 echo "$as_me:$LINENO: checking for tzname" >&5
5507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5508 if test "${ac_cv_var_tzname+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 #include "confdefs.h"
5515 #ifndef tzname /* For SGI. */
5516 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5527 rm -f conftest.
$ac_objext conftest
$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try
='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_var_tzname
=yes
5541 echo "$as_me: failed program was:" >&5
5542 cat conftest.
$ac_ext >&5
5545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5548 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5549 if test $ac_cv_var_tzname = yes; then
5551 cat >>confdefs.h
<<\_ACEOF
5552 #define HAVE_TZNAME 1
5558 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5559 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5560 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.
$ac_ext <<_ACEOF
5564 #line $LINENO "configure"
5565 #include "confdefs.h"
5571 static struct tm ac_aggr;
5572 if (ac_aggr.tm_gmtoff)
5578 rm -f conftest.
$ac_objext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580 (eval $ac_compile) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try
='test -s conftest.$ac_objext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_member_struct_tm_tm_gmtoff
=yes
5592 echo "$as_me: failed program was:" >&5
5593 cat conftest.
$ac_ext >&5
5594 cat >conftest.
$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 #include "confdefs.h"
5602 static struct tm ac_aggr;
5603 if (sizeof ac_aggr.tm_gmtoff)
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 ac_cv_member_struct_tm_tm_gmtoff
=yes
5623 echo "$as_me: failed program was:" >&5
5624 cat conftest.
$ac_ext >&5
5625 ac_cv_member_struct_tm_tm_gmtoff
=no
5627 rm -f conftest.
$ac_objext conftest.
$ac_ext
5629 rm -f conftest.
$ac_objext conftest.
$ac_ext
5631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5633 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5635 cat >>confdefs.h
<<\_ACEOF
5636 #define HAVE_TM_GMTOFF 1
5643 echo "$as_me:$LINENO: checking for function prototypes" >&5
5644 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5645 if test "$ac_cv_prog_cc_stdc" != no
; then
5646 echo "$as_me:$LINENO: result: yes" >&5
5647 echo "${ECHO_T}yes" >&6
5649 cat >>confdefs.h
<<\_ACEOF
5650 #define PROTOTYPES 1
5654 cat >>confdefs.h
<<\_ACEOF
5655 #define __PROTOTYPES 1
5659 echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6
5663 echo "$as_me:$LINENO: checking for working volatile" >&5
5664 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5665 if test "${ac_cv_c_volatile+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.
$ac_ext <<_ACEOF
5669 #line $LINENO "configure"
5670 #include "confdefs.h"
5682 rm -f conftest.
$ac_objext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684 (eval $ac_compile) 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_c_volatile
=yes
5696 echo "$as_me: failed program was:" >&5
5697 cat conftest.
$ac_ext >&5
5700 rm -f conftest.
$ac_objext conftest.
$ac_ext
5702 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5703 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5704 if test $ac_cv_c_volatile = no
; then
5706 cat >>confdefs.h
<<\_ACEOF
5712 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5713 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5714 if test "${ac_cv_c_const+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.
$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 #include "confdefs.h"
5724 /* FIXME: Include the comments suggested by Paul. */
5726 /* Ultrix mips cc rejects this. */
5727 typedef int charset[2];
5729 /* SunOS 4.1.1 cc rejects this. */
5730 char const *const *ccp;
5732 /* NEC SVR4.0.2 mips cc rejects this. */
5733 struct point {int x, y;};
5734 static struct point const zero = {0,0};
5735 /* AIX XL C 1.02.0.0 rejects this.
5736 It does not let you subtract one const X* pointer from another in
5737 an arm of an if-expression whose if-part is not a constant
5739 const char *g = "string";
5740 ccp = &g + (g ? g-g : 0);
5741 /* HPUX 7.0 cc rejects these. */
5744 ccp = (char const *const *) p;
5745 { /* SCO 3.2v4 cc rejects this. */
5747 char const *s = 0 ? (char *) 0 : (char const *) 0;
5751 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5753 const int *foo = &x[0];
5756 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5757 typedef const int *iptr;
5761 { /* AIX XL C 1.02.0.0 rejects this saying
5762 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5763 struct s { int j; const int *ap[3]; };
5764 struct s *b; b->j = 5;
5766 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5775 rm -f conftest.
$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try
='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5789 echo "$as_me: failed program was:" >&5
5790 cat conftest.
$ac_ext >&5
5793 rm -f conftest.
$ac_objext conftest.
$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5796 echo "${ECHO_T}$ac_cv_c_const" >&6
5797 if test $ac_cv_c_const = no
; then
5799 cat >>confdefs.h
<<\_ACEOF
5805 echo "$as_me:$LINENO: checking for void * support" >&5
5806 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5807 if test "${emacs_cv_void_star+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 cat >conftest.
$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 #include "confdefs.h"
5822 rm -f conftest.
$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try
='test -s conftest.$ac_objext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
5834 emacs_cv_void_star
=yes
5836 echo "$as_me: failed program was:" >&5
5837 cat conftest.
$ac_ext >&5
5838 emacs_cv_void_star
=no
5840 rm -f conftest.
$ac_objext conftest.
$ac_ext
5842 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5843 echo "${ECHO_T}$emacs_cv_void_star" >&6
5844 if test $emacs_cv_void_star = yes; then
5845 cat >>confdefs.h
<<\_ACEOF
5846 #define POINTER_TYPE void
5850 cat >>confdefs.h
<<\_ACEOF
5851 #define POINTER_TYPE char
5857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5858 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5859 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 cat >conftest.
make <<\_ACEOF
5865 @
echo 'ac_maketemp="${MAKE}"'
5867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5869 if test -n "$ac_maketemp"; then
5870 eval ac_cv_prog_make_
${ac_make}_set
=yes
5872 eval ac_cv_prog_make_
${ac_make}_set
=no
5876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878 echo "${ECHO_T}yes" >&6
5881 echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5883 SET_MAKE
="MAKE=${MAKE-make}"
5887 echo "$as_me:$LINENO: checking for long file names" >&5
5888 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5889 if test "${ac_cv_sys_long_file_names+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_sys_long_file_names
=yes
5893 # Test for long file names in all the places we know might matter:
5894 # . the current directory, where building will happen
5895 # $prefix/lib where we will be installing things
5896 # $exec_prefix/lib likewise
5897 # eval it to expand exec_prefix.
5898 # $TMPDIR if set, where it might want to write temporary files
5899 # if $TMPDIR is not set:
5900 # /tmp where it might want to write temporary files
5903 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5906 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5908 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5909 test -d $ac_dir ||
continue
5910 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5911 ac_xdir
=$ac_dir/cf$$
5912 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5913 ac_tf1
=$ac_xdir/conftest9012345
5914 ac_tf2
=$ac_xdir/conftest9012346
5915 (echo 1 >$ac_tf1) 2>/dev
/null
5916 (echo 2 >$ac_tf2) 2>/dev
/null
5917 ac_val
=`cat $ac_tf1 2>/dev/null`
5918 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5919 ac_cv_sys_long_file_names
=no
5920 rm -rf $ac_xdir 2>/dev
/null
5923 rm -rf $ac_xdir 2>/dev
/null
5926 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
5927 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5928 if test $ac_cv_sys_long_file_names = yes; then
5930 cat >>confdefs.h
<<\_ACEOF
5931 #define HAVE_LONG_FILE_NAMES 1
5937 #### Choose a window system.
5939 echo "$as_me:$LINENO: checking for X" >&5
5940 echo $ECHO_N "checking for X... $ECHO_C" >&6
5943 # Check whether --with-x or --without-x was given.
5944 if test "${with_x+set}" = set; then
5948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5949 if test "x$with_x" = xno
; then
5950 # The user explicitly disabled X.
5953 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5954 # Both variables are already set.
5957 if test "${ac_cv_have_x+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 # One or both of the vars are not set, and there is no cached value.
5961 ac_x_includes
=no ac_x_libraries
=no
5963 if mkdir conftest.dir
; then
5965 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5966 cat >Imakefile
<<'_ACEOF'
5968 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5970 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5972 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5973 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5974 for ac_extension
in a so sl
; do
5975 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5976 test -f $ac_im_libdir/libX11.
$ac_extension; then
5977 ac_im_usrlibdir
=$ac_im_libdir; break
5980 # Screen out bogus values from the imake configuration. They are
5981 # bogus both because they are the default anyway, and because
5982 # using them would break gcc on systems where it needs fixed includes.
5983 case $ac_im_incroot in
5985 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5987 case $ac_im_usrlibdir in
5989 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5996 # Standard set of common directories for X headers.
5997 # Check X11 before X11Rn because it is often a symlink to the current release.
6009 /usr/local/X11/include
6010 /usr/local/X11R6/include
6011 /usr/local/X11R5/include
6012 /usr/local/X11R4/include
6014 /usr/local/include/X11
6015 /usr/local/include/X11R6
6016 /usr/local/include/X11R5
6017 /usr/local/include/X11R4
6021 /usr/XFree86/include/X11
6025 /usr/unsupported/include
6027 /usr/local/x11r5/include
6028 /usr/lpp/Xamples/include
6030 /usr/openwin/include
6031 /usr/openwin/share/include'
6033 if test "$ac_x_includes" = no
; then
6034 # Guess where to find include files, by looking for Intrinsic.h.
6035 # First, try using that file with no special directory specified.
6036 cat >conftest.
$ac_ext <<_ACEOF
6037 #line $LINENO "configure"
6038 #include "confdefs.h"
6039 #include <X11/Intrinsic.h>
6041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } >/dev
/null
; then
6049 if test -s conftest.err
; then
6050 ac_cpp_err
=$ac_c_preproc_warn_flag
6057 if test -z "$ac_cpp_err"; then
6058 # We can compile using X headers with no special include directory.
6061 echo "$as_me: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6063 for ac_dir
in $ac_x_header_dirs; do
6064 if test -r "$ac_dir/X11/Intrinsic.h"; then
6065 ac_x_includes
=$ac_dir
6070 rm -f conftest.err conftest.
$ac_ext
6071 fi # $ac_x_includes = no
6073 if test "$ac_x_libraries" = no
; then
6074 # Check for the libraries.
6075 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently.
6079 cat >conftest.
$ac_ext <<_ACEOF
6080 #line $LINENO "configure"
6081 #include "confdefs.h"
6082 #include <X11/Intrinsic.h>
6091 rm -f conftest.
$ac_objext conftest
$ac_exeext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093 (eval $ac_link) 2>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try
='test -s conftest$ac_exeext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6104 # We can link X programs with no special library path.
6107 echo "$as_me: failed program was:" >&5
6108 cat conftest.
$ac_ext >&5
6110 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6112 # Don't even attempt the hair of trying to link an X program!
6113 for ac_extension
in a so sl
; do
6114 if test -r $ac_dir/libXt.
$ac_extension; then
6115 ac_x_libraries
=$ac_dir
6121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6122 fi # $ac_x_libraries = no
6124 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6125 # Didn't find X anywhere. Cache the known absence of X.
6126 ac_cv_have_x
="have_x=no"
6128 # Record where we found X for the cache.
6129 ac_cv_have_x
="have_x=yes \
6130 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6135 eval "$ac_cv_have_x"
6138 if test "$have_x" != yes; then
6139 echo "$as_me:$LINENO: result: $have_x" >&5
6140 echo "${ECHO_T}$have_x" >&6
6143 # If each of the values was on the command line, it overrides each guess.
6144 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6145 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6146 # Update the cache value to reflect the command line values.
6147 ac_cv_have_x
="have_x=yes \
6148 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6149 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6150 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6153 if test "$no_x" = yes; then
6159 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6160 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6161 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6162 x_default_search_path
=""
6163 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6165 ${x_library}/X11/%L/%T/%N%C%S:\
6166 ${x_library}/X11/%l/%T/%N%C%S:\
6167 ${x_library}/X11/%T/%N%C%S:\
6168 ${x_library}/X11/%L/%T/%N%S:\
6169 ${x_library}/X11/%l/%T/%N%S:\
6170 ${x_library}/X11/%T/%N%S"
6171 if test x
"${x_default_search_path}" = x
; then
6172 x_default_search_path
=${x_search_path}
6174 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6178 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6179 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6182 if test x
"${x_includes}" = x
; then
6183 bitmapdir
=/usr
/include
/X11
/bitmaps
6185 # accumulate include directories that have X11 bitmap subdirectories
6187 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6188 if test -d "${bmd}/X11/bitmaps"; then
6189 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6191 if test -d "${bmd}/bitmaps"; then
6192 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6195 if test ${bmd_acc} != "dummyval"; then
6196 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6200 case "${window_system}" in
6204 case "${with_x_toolkit}" in
6205 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6206 motif
) USE_X_TOOLKIT
=MOTIF
;;
6207 no
) USE_X_TOOLKIT
=none
;;
6208 * ) USE_X_TOOLKIT
=maybe
;;
6218 ### If we're using X11, we should use the X menu package.
6221 yes ) HAVE_MENUS
=yes ;;
6224 if test "${opsys}" = "hpux9"; then
6225 case "${x_libraries}" in
6227 opsysfile
="s/hpux9-x11r4.h"
6232 if test "${opsys}" = "hpux9shr"; then
6233 case "${x_libraries}" in
6235 opsysfile
="s/hpux9shxr4.h"
6240 ### Compute the unexec source name from the object name.
6241 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6243 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6244 # Assume not, until told otherwise.
6247 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6248 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6249 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 cat >conftest.
$ac_ext <<_ACEOF
6253 #line $LINENO "configure"
6254 #include "confdefs.h"
6255 /* System header to define __stub macros and hopefully few prototypes,
6256 which can conflict with char malloc_get_state (); below. */
6258 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6264 char malloc_get_state ();
6270 /* The GNU C library defines this for functions which it implements
6271 to always fail with ENOSYS. Some functions are actually named
6272 something starting with __ and the normal name is an alias. */
6273 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6276 f = malloc_get_state;
6283 rm -f conftest.
$ac_objext conftest
$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try
='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_func_malloc_get_state
=yes
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.
$ac_ext >&5
6299 ac_cv_func_malloc_get_state
=no
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6303 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6304 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6305 if test $ac_cv_func_malloc_get_state = yes; then
6311 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6312 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6313 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 cat >conftest.
$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320 which can conflict with char malloc_set_state (); below. */
6322 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328 char malloc_set_state ();
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6340 f = malloc_set_state;
6347 rm -f conftest.
$ac_objext conftest
$ac_exeext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349 (eval $ac_link) 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try
='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_func_malloc_set_state
=yes
6361 echo "$as_me: failed program was:" >&5
6362 cat conftest.
$ac_ext >&5
6363 ac_cv_func_malloc_set_state
=no
6365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6367 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6368 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6369 if test $ac_cv_func_malloc_set_state = yes; then
6375 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6376 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6377 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.
$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 #include "confdefs.h"
6383 extern void (* __after_morecore_hook)();
6387 __after_morecore_hook = 0
6392 rm -f conftest.
$ac_objext conftest
$ac_exeext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6394 (eval $ac_link) 2>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 emacs_cv_var___after_morecore_hook
=yes
6406 echo "$as_me: failed program was:" >&5
6407 cat conftest.
$ac_ext >&5
6408 emacs_cv_var___after_morecore_hook
=no
6410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6412 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6413 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6414 if test $emacs_cv_var___after_morecore_hook = no
; then
6417 if test "${system_malloc}" = "yes"; then
6420 (The GNU allocators don't work with this system configuration.)"
6422 if test "$doug_lea_malloc" = "yes" ; then
6423 if test "$GNU_MALLOC" = yes ; then
6425 (Using Doug Lea's new malloc from the GNU C Library.)"
6428 cat >>confdefs.h
<<\_ACEOF
6429 #define DOUG_LEA_MALLOC 1
6434 if test x
"${REL_ALLOC}" = x
; then
6435 REL_ALLOC
=${GNU_MALLOC}
6441 for ac_header
in stdlib.h unistd.h
6443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6453 # Is the header compilable?
6454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456 cat >conftest.
$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 #include "confdefs.h"
6459 $ac_includes_default
6460 #include <$ac_header>
6462 rm -f conftest.
$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try
='test -s conftest.$ac_objext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_header_compiler
=yes
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.
$ac_ext >&5
6478 ac_header_compiler
=no
6480 rm -f conftest.
$ac_objext conftest.
$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.
$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 #include "confdefs.h"
6490 #include <$ac_header>
6492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6495 grep -v '^ *+' conftest.er1
>conftest.err
6497 cat conftest.err
>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } >/dev
/null
; then
6500 if test -s conftest.err
; then
6501 ac_cpp_err
=$ac_c_preproc_warn_flag
6508 if test -z "$ac_cpp_err"; then
6509 ac_header_preproc
=yes
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6513 ac_header_preproc
=no
6515 rm -f conftest.err conftest.
$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6517 echo "${ECHO_T}$ac_header_preproc" >&6
6519 # So? What about this header?
6520 case $ac_header_compiler:$ac_header_preproc in
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 eval "$as_ac_Header=$ac_header_preproc"
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h
<<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555 for ac_func
in getpagesize
6557 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558 echo "$as_me:$LINENO: checking for $ac_func" >&5
6559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6560 if eval "test \"\${$as_ac_var+set}\" = set"; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.
$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 #include "confdefs.h"
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char $ac_func (); below. */
6569 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6581 /* The GNU C library defines this for functions which it implements
6582 to always fail with ENOSYS. Some functions are actually named
6583 something starting with __ and the normal name is an alias. */
6584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6594 rm -f conftest.
$ac_objext conftest
$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try
='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 eval "$as_ac_var=yes"
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6610 eval "$as_ac_var=no"
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6616 if test `eval echo '${'$as_ac_var'}'` = yes; then
6617 cat >>confdefs.h
<<_ACEOF
6618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6624 echo "$as_me:$LINENO: checking for working mmap" >&5
6625 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6626 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test "$cross_compiling" = yes; then
6630 ac_cv_func_mmap_fixed_mapped
=no
6632 cat >conftest.
$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 #include "confdefs.h"
6635 $ac_includes_default
6636 /* malloc might have been renamed as rpl_malloc. */
6639 /* Thanks to Mike Haertel and Jim Avera for this test.
6640 Here is a matrix of mmap possibilities:
6641 mmap private not fixed
6642 mmap private fixed at somewhere currently unmapped
6643 mmap private fixed at somewhere already mapped
6644 mmap shared not fixed
6645 mmap shared fixed at somewhere currently unmapped
6646 mmap shared fixed at somewhere already mapped
6647 For private mappings, we should verify that changes cannot be read()
6648 back from the file, nor mmap's back from the file at a different
6649 address. (There have been systems where private was not correctly
6650 implemented like the infamous i386 svr4.0, and systems where the
6651 VM page cache was not coherent with the file system buffer cache
6652 like early versions of FreeBSD and possibly contemporary NetBSD.)
6653 For shared mappings, we should conversely verify that changes get
6654 propagated back to all the places they're supposed to be.
6656 Grep wants private fixed already mapped.
6657 The main things grep needs to know about mmap are:
6658 * does it exist and is it safe to write into the mmap'd area
6659 * how to use it (BSD variants) */
6662 #include <sys/mman.h>
6664 #if !STDC_HEADERS && !HAVE_STDLIB_H
6668 /* This mess was copied from the GNU getpagesize.h. */
6669 #if !HAVE_GETPAGESIZE
6670 /* Assume that all systems that can run configure have sys/param.h. */
6671 # if !HAVE_SYS_PARAM_H
6672 # define HAVE_SYS_PARAM_H 1
6675 # ifdef _SC_PAGESIZE
6676 # define getpagesize() sysconf(_SC_PAGESIZE)
6677 # else /* no _SC_PAGESIZE */
6678 # if HAVE_SYS_PARAM_H
6679 # include <sys/param.h>
6680 # ifdef EXEC_PAGESIZE
6681 # define getpagesize() EXEC_PAGESIZE
6682 # else /* no EXEC_PAGESIZE */
6684 # define getpagesize() NBPG * CLSIZE
6687 # endif /* no CLSIZE */
6688 # else /* no NBPG */
6690 # define getpagesize() NBPC
6691 # else /* no NBPC */
6693 # define getpagesize() PAGESIZE
6694 # endif /* PAGESIZE */
6695 # endif /* no NBPC */
6696 # endif /* no NBPG */
6697 # endif /* no EXEC_PAGESIZE */
6698 # else /* no HAVE_SYS_PARAM_H */
6699 # define getpagesize() 8192 /* punt totally */
6700 # endif /* no HAVE_SYS_PARAM_H */
6701 # endif /* no _SC_PAGESIZE */
6703 #endif /* no HAVE_GETPAGESIZE */
6708 char *data, *data2, *data3;
6712 pagesize = getpagesize ();
6714 /* First, make a file with some known garbage in it. */
6715 data = (char *) malloc (pagesize);
6718 for (i = 0; i < pagesize; ++i)
6719 *(data + i) = rand ();
6721 fd = creat ("conftest.mmap", 0600);
6724 if (write (fd, data, pagesize) != pagesize)
6728 /* Next, try to mmap the file at a fixed address which already has
6729 something else allocated at it. If we can, also make sure that
6730 we see the same garbage. */
6731 fd = open ("conftest.mmap", O_RDWR);
6734 data2 = (char *) malloc (2 * pagesize);
6737 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6741 for (i = 0; i < pagesize; ++i)
6742 if (*(data + i) != *(data2 + i))
6745 /* Finally, make sure that changes to the mapped area do not
6746 percolate back to the file as seen by read(). (This is a bug on
6747 some variants of i386 svr4.0.) */
6748 for (i = 0; i < pagesize; ++i)
6749 *(data2 + i) = *(data2 + i) + 1;
6750 data3 = (char *) malloc (pagesize);
6753 if (read (fd, data3, pagesize) != pagesize)
6755 for (i = 0; i < pagesize; ++i)
6756 if (*(data + i) != *(data3 + i))
6762 rm -f conftest
$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_cv_func_mmap_fixed_mapped
=yes
6775 echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 cat conftest.
$ac_ext >&5
6779 ac_cv_func_mmap_fixed_mapped
=no
6781 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6785 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6786 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6788 cat >>confdefs.h
<<\_ACEOF
6795 if test $use_mmap_for_buffers = yes; then
6799 LIBS
="$libsrc_libs $LIBS"
6802 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6803 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6804 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_check_lib_save_LIBS
=$LIBS
6809 cat >conftest.
$ac_ext <<_ACEOF
6810 #line $LINENO "configure"
6811 #include "confdefs.h"
6813 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6828 rm -f conftest.
$ac_objext conftest
$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try
='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_lib_dnet_dnet_ntoa
=yes
6842 echo "$as_me: failed program was:" >&5
6843 cat conftest.
$ac_ext >&5
6844 ac_cv_lib_dnet_dnet_ntoa
=no
6846 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6847 LIBS
=$ac_check_lib_save_LIBS
6849 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6850 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6851 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6852 cat >>confdefs.h
<<_ACEOF
6853 #define HAVE_LIBDNET 1
6861 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6862 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6863 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_check_lib_save_LIBS
=$LIBS
6868 cat >conftest.
$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6881 rm -f conftest.
$ac_objext conftest
$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try
='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_lib_Xbsd_main
=yes
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.
$ac_ext >&5
6897 ac_cv_lib_Xbsd_main
=no
6899 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6900 LIBS
=$ac_check_lib_save_LIBS
6902 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
6903 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6904 if test $ac_cv_lib_Xbsd_main = yes; then
6905 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6910 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
6911 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6912 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_check_lib_save_LIBS
=$LIBS
6916 LIBS
="-lpthreads $LIBS"
6917 cat >conftest.
$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6921 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6936 rm -f conftest.
$ac_objext conftest
$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } &&
6942 { ac_try
='test -s conftest$ac_exeext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6948 ac_cv_lib_pthreads_cma_open
=yes
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.
$ac_ext >&5
6952 ac_cv_lib_pthreads_cma_open
=no
6954 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6955 LIBS
=$ac_check_lib_save_LIBS
6957 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
6958 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6959 if test $ac_cv_lib_pthreads_cma_open = yes; then
6960 cat >>confdefs.h
<<_ACEOF
6961 #define HAVE_LIBPTHREADS 1
6964 LIBS
="-lpthreads $LIBS"
6969 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
6970 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6971 if test -d /usr
/X386
/include
; then
6973 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6977 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
6978 echo "${ECHO_T}$HAVE_XFREE386" >&6
6980 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
6981 # used for the tests that follow. We set them back to REAL_CFLAGS and
6982 # REAL_CPPFLAGS later on.
6984 REAL_CPPFLAGS
="$CPPFLAGS"
6986 if test "${HAVE_X11}" = "yes"; then
6987 DEFS
="$C_SWITCH_X_SITE $DEFS"
6988 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6990 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6991 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6993 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6994 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6995 # but it's more convenient here to set LD_RUN_PATH
6996 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6997 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6998 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7002 if test "${opsys}" = "gnu-linux"; then
7003 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7004 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7005 cat >conftest.
$ac_ext <<_ACEOF
7006 #line $LINENO "configure"
7007 #include "confdefs.h"
7012 XOpenDisplay ("foo");
7017 rm -f conftest.
$ac_objext conftest
$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try
='test -s conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 xlinux_first_failure
=no
7031 echo "$as_me: failed program was:" >&5
7032 cat conftest.
$ac_ext >&5
7033 xlinux_first_failure
=yes
7035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7036 if test "${xlinux_first_failure}" = "yes"; then
7037 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7038 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7039 OLD_CPPFLAGS
="$CPPFLAGS"
7041 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7042 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7043 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7044 LIBS
="$LIBS -b i486-linuxaout"
7045 cat >conftest.
$ac_ext <<_ACEOF
7046 #line $LINENO "configure"
7047 #include "confdefs.h"
7052 XOpenDisplay ("foo");
7057 rm -f conftest.
$ac_objext conftest
$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 xlinux_second_failure
=no
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7073 xlinux_second_failure
=yes
7075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7076 if test "${xlinux_second_failure}" = "yes"; then
7077 # If we get the same failure with -b, there is no use adding -b.
7078 # So take it out. This plays safe.
7079 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7080 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7081 CPPFLAGS
="$OLD_CPPFLAGS"
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7086 echo "$as_me:$LINENO: result: yes" >&5
7087 echo "${ECHO_T}yes" >&6
7090 echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6
7095 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7096 # header files included from there.
7097 echo "$as_me:$LINENO: checking for Xkb" >&5
7098 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7099 cat >conftest.
$ac_ext <<_ACEOF
7100 #line $LINENO "configure"
7101 #include "confdefs.h"
7102 #include <X11/Xlib.h>
7103 #include <X11/XKBlib.h>
7107 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7112 rm -f conftest.
$ac_objext conftest
$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try
='test -s conftest$ac_exeext'
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then
7126 echo "$as_me: failed program was:" >&5
7127 cat conftest.
$ac_ext >&5
7130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7131 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7132 echo "${ECHO_T}$emacs_xkb" >&6
7133 if test $emacs_xkb = yes; then
7135 cat >>confdefs.h
<<\_ACEOF
7136 #define HAVE_XKBGETKEYBOARD 1
7145 for ac_func
in XrmSetDatabase XScreenResourceString \
7146 XScreenNumberOfScreen XSetWMProtocols
7148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7149 echo "$as_me:$LINENO: checking for $ac_func" >&5
7150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7151 if eval "test \"\${$as_ac_var+set}\" = set"; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.
$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 #include "confdefs.h"
7157 /* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char $ac_func (); below. */
7160 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7185 rm -f conftest.
$ac_objext conftest
$ac_exeext
7186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try
='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 eval "$as_ac_var=yes"
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.
$ac_ext >&5
7201 eval "$as_ac_var=no"
7203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7207 if test `eval echo '${'$as_ac_var'}'` = yes; then
7208 cat >>confdefs.h
<<_ACEOF
7209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7217 if test "${window_system}" = "x11"; then
7218 echo "$as_me:$LINENO: checking X11 version 6" >&5
7219 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7220 if test "${emacs_cv_x11_version_6+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 cat >conftest.
$ac_ext <<_ACEOF
7224 #line $LINENO "configure"
7225 #include "confdefs.h"
7226 #include <X11/Xlib.h>
7230 #if XlibSpecificationRelease < 6
7238 rm -f conftest.
$ac_objext conftest
$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try
='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 emacs_cv_x11_version_6
=yes
7252 echo "$as_me: failed program was:" >&5
7253 cat conftest.
$ac_ext >&5
7254 emacs_cv_x11_version_6
=no
7256 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7259 if test $emacs_cv_x11_version_6 = yes; then
7260 echo "$as_me:$LINENO: result: 6 or newer" >&5
7261 echo "${ECHO_T}6 or newer" >&6
7263 cat >>confdefs.h
<<\_ACEOF
7264 #define HAVE_X11R6 1
7268 echo "$as_me:$LINENO: result: before 6" >&5
7269 echo "${ECHO_T}before 6" >&6
7273 if test "${window_system}" = "x11"; then
7274 echo "$as_me:$LINENO: checking X11 version 5" >&5
7275 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7276 if test "${emacs_cv_x11_version_5+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 cat >conftest.
$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 #include <X11/Xlib.h>
7286 #if XlibSpecificationRelease < 5
7294 rm -f conftest.
$ac_objext conftest
$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try
='test -s conftest$ac_exeext'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 emacs_cv_x11_version_5
=yes
7308 echo "$as_me: failed program was:" >&5
7309 cat conftest.
$ac_ext >&5
7310 emacs_cv_x11_version_5
=no
7312 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7315 if test $emacs_cv_x11_version_5 = yes; then
7316 echo "$as_me:$LINENO: result: 5 or newer" >&5
7317 echo "${ECHO_T}5 or newer" >&6
7320 cat >>confdefs.h
<<\_ACEOF
7321 #define HAVE_X11R5 1
7326 echo "$as_me:$LINENO: result: before 5" >&5
7327 echo "${ECHO_T}before 5" >&6
7331 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7332 if test x
"${HAVE_X11R5}" = xyes
; then
7333 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7334 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7335 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 cat >conftest.
$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7342 #include <X11/Intrinsic.h>
7343 #include <X11/Xaw/Simple.h>
7352 rm -f conftest.
$ac_objext conftest
$ac_exeext
7353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7354 (eval $ac_link) 2>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try
='test -s conftest$ac_exeext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 emacs_cv_x11_version_5_with_xaw
=yes
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.
$ac_ext >&5
7368 emacs_cv_x11_version_5_with_xaw
=no
7370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7373 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7374 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7375 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7378 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7379 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7387 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7389 if test "${USE_X_TOOLKIT}" != "none"; then
7390 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7391 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7392 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 cat >conftest.
$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398 #include <X11/Intrinsic.h>
7402 #if XtSpecificationRelease < 6
7410 rm -f conftest.
$ac_objext conftest
$ac_exeext
7411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7412 (eval $ac_link) 2>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try
='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 emacs_cv_x11_toolkit_version_6
=yes
7424 echo "$as_me: failed program was:" >&5
7425 cat conftest.
$ac_ext >&5
7426 emacs_cv_x11_toolkit_version_6
=no
7428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7431 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7432 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7433 echo "$as_me:$LINENO: result: 6 or newer" >&5
7434 echo "${ECHO_T}6 or newer" >&6
7436 cat >>confdefs.h
<<\_ACEOF
7437 #define HAVE_X11XTR6 1
7441 echo "$as_me:$LINENO: result: before 6" >&5
7442 echo "${ECHO_T}before 6" >&6
7446 if test x
$HAVE_X11XTR6 = xyes
; then
7447 LIBS
="-lXt -lSM -lICE $LIBS"
7452 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7453 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7454 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_check_lib_save_LIBS
=$LIBS
7459 cat >conftest.
$ac_ext <<_ACEOF
7460 #line $LINENO "configure"
7461 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7467 /* We use char because int might match the return type of a gcc2
7468 builtin and then its argument prototype would still apply. */
7469 char XmuConvertStandardSelection ();
7473 XmuConvertStandardSelection ();
7478 rm -f conftest.
$ac_objext conftest
$ac_exeext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7480 (eval $ac_link) 2>&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -s conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7494 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7497 LIBS
=$ac_check_lib_save_LIBS
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7500 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7501 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7502 cat >>confdefs.h
<<_ACEOF
7503 #define HAVE_LIBXMU 1
7510 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7513 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7514 if test "${HAVE_X11}" = "yes"; then
7515 if test "${USE_X_TOOLKIT}" != "none"; then
7517 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7518 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7519 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 ac_check_lib_save_LIBS
=$LIBS
7524 cat >conftest.
$ac_ext <<_ACEOF
7525 #line $LINENO "configure"
7526 #include "confdefs.h"
7528 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7534 char XShapeQueryExtension ();
7538 XShapeQueryExtension ();
7543 rm -f conftest.
$ac_objext conftest
$ac_exeext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try
='test -s conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
7555 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7557 echo "$as_me: failed program was:" >&5
7558 cat conftest.
$ac_ext >&5
7559 ac_cv_lib_Xext_XShapeQueryExtension
=no
7561 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7562 LIBS
=$ac_check_lib_save_LIBS
7564 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7565 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7566 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7567 cat >>confdefs.h
<<_ACEOF
7568 #define HAVE_LIBXEXT 1
7578 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7579 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
7580 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
7581 if test "${emacs_cv_lesstif+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 # We put this in CFLAGS temporarily to precede other -I options
7585 # that might be in CFLAGS temporarily.
7586 # We put this in CPPFLAGS where it precedes the other -I options.
7587 OLD_CPPFLAGS
=$CPPFLAGS
7589 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
7590 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
7591 cat >conftest.
$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7593 #include "confdefs.h"
7594 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
7603 rm -f conftest.
$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try
='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 emacs_cv_lesstif
=yes
7617 echo "$as_me: failed program was:" >&5
7618 cat conftest.
$ac_ext >&5
7621 rm -f conftest.
$ac_objext conftest.
$ac_ext
7623 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
7624 echo "${ECHO_T}$emacs_cv_lesstif" >&6
7625 if test $emacs_cv_lesstif = yes; then
7626 # Make sure this -I option remains in CPPFLAGS after it is set
7627 # back to REAL_CPPFLAGS.
7628 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
7629 # have those other -I options anyway. Ultimately, having this
7630 # directory ultimately in CPPFLAGS will be enough.
7631 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
7632 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
7635 CPPFLAGS
=$OLD_CPPFLAGS
7637 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7638 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7639 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.
$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7649 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7652 Motif version prior to 2.1.
7658 rm -f conftest.
$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try
='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 emacs_cv_motif_version_2_1
=yes
7672 echo "$as_me: failed program was:" >&5
7673 cat conftest.
$ac_ext >&5
7674 emacs_cv_motif_version_2_1
=no
7676 rm -f conftest.
$ac_objext conftest.
$ac_ext
7678 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7679 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7680 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7681 if test $emacs_cv_motif_version_2_1 = yes; then
7684 cat >>confdefs.h
<<\_ACEOF
7685 #define HAVE_MOTIF_2_1 1
7688 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7689 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7690 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 ac_check_lib_save_LIBS
=$LIBS
7695 cat >conftest.
$ac_ext <<_ACEOF
7696 #line $LINENO "configure"
7697 #include "confdefs.h"
7699 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char XpCreateContext ();
7714 rm -f conftest.
$ac_objext conftest
$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try
='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_lib_Xp_XpCreateContext
=yes
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7730 ac_cv_lib_Xp_XpCreateContext
=no
7732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7733 LIBS
=$ac_check_lib_save_LIBS
7735 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7736 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7737 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7741 if test ${HAVE_LIBXP} = yes; then
7743 cat >>confdefs.h
<<\_ACEOF
7744 #define HAVE_LIBXP 1
7751 ### Is -lXaw3d available?
7753 if test "${HAVE_X11}" = "yes"; then
7754 if test "${USE_X_TOOLKIT}" != "none"; then
7755 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7756 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7757 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7758 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7762 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7764 # Is the header compilable?
7765 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7766 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7767 cat >conftest.
$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 $ac_includes_default
7771 #include <X11/Xaw3d/Scrollbar.h>
7773 rm -f conftest.
$ac_objext
7774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7775 (eval $ac_compile) 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try
='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_header_compiler
=yes
7787 echo "$as_me: failed program was:" >&5
7788 cat conftest.
$ac_ext >&5
7789 ac_header_compiler
=no
7791 rm -f conftest.
$ac_objext conftest.
$ac_ext
7792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7793 echo "${ECHO_T}$ac_header_compiler" >&6
7795 # Is the header present?
7796 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7797 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7798 cat >conftest.
$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7800 #include "confdefs.h"
7801 #include <X11/Xaw3d/Scrollbar.h>
7803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7804 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7806 grep -v '^ *+' conftest.er1
>conftest.err
7808 cat conftest.err
>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } >/dev
/null
; then
7811 if test -s conftest.err
; then
7812 ac_cpp_err
=$ac_c_preproc_warn_flag
7819 if test -z "$ac_cpp_err"; then
7820 ac_header_preproc
=yes
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7824 ac_header_preproc
=no
7826 rm -f conftest.err conftest.
$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828 echo "${ECHO_T}$ac_header_preproc" >&6
7830 # So? What about this header?
7831 case $ac_header_compiler:$ac_header_preproc in
7833 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7834 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7836 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7838 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7839 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7841 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7843 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7845 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7846 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7847 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
7852 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7853 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7856 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7857 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7858 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7859 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 ac_check_lib_save_LIBS
=$LIBS
7863 LIBS
="-lXaw3d $LIBS"
7864 cat >conftest.
$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7868 /* Override any gcc2 internal prototype to avoid an error. */
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7874 char XawScrollbarSetThumb ();
7878 XawScrollbarSetThumb ();
7883 rm -f conftest.
$ac_objext conftest
$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try
='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
7897 echo "$as_me: failed program was:" >&5
7898 cat conftest.
$ac_ext >&5
7899 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7902 LIBS
=$ac_check_lib_save_LIBS
7904 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7905 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7906 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7913 if test "${HAVE_XAW3D}" = "yes"; then
7915 cat >>confdefs.h
<<\_ACEOF
7916 #define HAVE_XAW3D 1
7925 USE_TOOLKIT_SCROLL_BARS
=no
7926 if test "${with_toolkit_scroll_bars}" != "no"; then
7927 if test "${USE_X_TOOLKIT}" != "none"; then
7928 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7929 cat >>confdefs.h
<<\_ACEOF
7930 #define USE_TOOLKIT_SCROLL_BARS 1
7934 USE_TOOLKIT_SCROLL_BARS
=yes
7935 elif test "${HAVE_XAW3D}" = "yes"; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define USE_TOOLKIT_SCROLL_BARS 1
7940 USE_TOOLKIT_SCROLL_BARS
=yes
7946 if test "${with_xim}" != "no"; then
7948 cat >>confdefs.h
<<\_ACEOF
7954 ### Use -lXpm if available, unless `--with-xpm=no'.
7956 if test "${HAVE_X11}" = "yes"; then
7957 if test "${with_xpm}" != "no"; then
7958 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7959 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
7960 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7961 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
7965 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7967 # Is the header compilable?
7968 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
7969 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
7970 cat >conftest.
$ac_ext <<_ACEOF
7971 #line $LINENO "configure"
7972 #include "confdefs.h"
7973 $ac_includes_default
7974 #include <X11/xpm.h>
7976 rm -f conftest.
$ac_objext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try
='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_header_compiler
=yes
7990 echo "$as_me: failed program was:" >&5
7991 cat conftest.
$ac_ext >&5
7992 ac_header_compiler
=no
7994 rm -f conftest.
$ac_objext conftest.
$ac_ext
7995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7996 echo "${ECHO_T}$ac_header_compiler" >&6
7998 # Is the header present?
7999 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8000 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8001 cat >conftest.
$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8003 #include "confdefs.h"
8004 #include <X11/xpm.h>
8006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8009 grep -v '^ *+' conftest.er1
>conftest.err
8011 cat conftest.err
>&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } >/dev
/null
; then
8014 if test -s conftest.err
; then
8015 ac_cpp_err
=$ac_c_preproc_warn_flag
8022 if test -z "$ac_cpp_err"; then
8023 ac_header_preproc
=yes
8025 echo "$as_me: failed program was:" >&5
8026 cat conftest.
$ac_ext >&5
8027 ac_header_preproc
=no
8029 rm -f conftest.err conftest.
$ac_ext
8030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8031 echo "${ECHO_T}$ac_header_preproc" >&6
8033 # So? What about this header?
8034 case $ac_header_compiler:$ac_header_preproc in
8036 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8037 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8041 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8042 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8044 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8046 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8048 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8049 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8050 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8055 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8056 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8059 if test $ac_cv_header_X11_xpm_h = yes; then
8060 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8061 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8062 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 ac_check_lib_save_LIBS
=$LIBS
8066 LIBS
="-lXpm -lX11 $LIBS"
8067 cat >conftest.
$ac_ext <<_ACEOF
8068 #line $LINENO "configure"
8069 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8075 /* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8077 char XpmReadFileToPixmap ();
8081 XpmReadFileToPixmap ();
8086 rm -f conftest.
$ac_objext conftest
$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088 (eval $ac_link) 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try
='test -s conftest$ac_exeext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8100 echo "$as_me: failed program was:" >&5
8101 cat conftest.
$ac_ext >&5
8102 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8104 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8105 LIBS
=$ac_check_lib_save_LIBS
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8108 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8109 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8116 if test "${HAVE_XPM}" = "yes"; then
8117 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8118 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8119 cat >conftest.
$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 #include "X11/xpm.h"
8123 #ifndef XpmReturnAllocPixels
8124 no_return_alloc_pixels
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8137 if test "${HAVE_XPM}" = "yes"; then
8138 echo "$as_me:$LINENO: result: yes" >&5
8139 echo "${ECHO_T}yes" >&6
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8147 if test "${HAVE_XPM}" = "yes"; then
8149 cat >>confdefs.h
<<\_ACEOF
8156 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8158 if test "${HAVE_X11}" = "yes"; then
8159 if test "${with_jpeg}" != "no"; then
8160 if test "${ac_cv_header_jerror_h+set}" = set; then
8161 echo "$as_me:$LINENO: checking for jerror.h" >&5
8162 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8163 if test "${ac_cv_header_jerror_h+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8167 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8169 # Is the header compilable?
8170 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8171 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8172 cat >conftest.
$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 #include "confdefs.h"
8175 $ac_includes_default
8178 rm -f conftest.
$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try
='test -s conftest.$ac_objext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_header_compiler
=yes
8192 echo "$as_me: failed program was:" >&5
8193 cat conftest.
$ac_ext >&5
8194 ac_header_compiler
=no
8196 rm -f conftest.
$ac_objext conftest.
$ac_ext
8197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8198 echo "${ECHO_T}$ac_header_compiler" >&6
8200 # Is the header present?
8201 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8202 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8203 cat >conftest.
$ac_ext <<_ACEOF
8204 #line $LINENO "configure"
8205 #include "confdefs.h"
8208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8211 grep -v '^ *+' conftest.er1
>conftest.err
8213 cat conftest.err
>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } >/dev
/null
; then
8216 if test -s conftest.err
; then
8217 ac_cpp_err
=$ac_c_preproc_warn_flag
8224 if test -z "$ac_cpp_err"; then
8225 ac_header_preproc
=yes
8227 echo "$as_me: failed program was:" >&5
8228 cat conftest.
$ac_ext >&5
8229 ac_header_preproc
=no
8231 rm -f conftest.err conftest.
$ac_ext
8232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8233 echo "${ECHO_T}$ac_header_preproc" >&6
8235 # So? What about this header?
8236 case $ac_header_compiler:$ac_header_preproc in
8238 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8239 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8241 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8243 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8244 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8245 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8246 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8250 echo "$as_me:$LINENO: checking for jerror.h" >&5
8251 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8252 if test "${ac_cv_header_jerror_h+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_cv_header_jerror_h
=$ac_header_preproc
8257 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8258 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8261 if test $ac_cv_header_jerror_h = yes; then
8262 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8263 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8264 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 ac_check_lib_save_LIBS
=$LIBS
8269 cat >conftest.
$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 #include "confdefs.h"
8273 /* Override any gcc2 internal prototype to avoid an error. */
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8279 char jpeg_destroy_compress ();
8283 jpeg_destroy_compress ();
8288 rm -f conftest.
$ac_objext conftest
$ac_exeext
8289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8290 (eval $ac_link) 2>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try
='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8302 echo "$as_me: failed program was:" >&5
8303 cat conftest.
$ac_ext >&5
8304 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8306 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8307 LIBS
=$ac_check_lib_save_LIBS
8309 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8310 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8311 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8321 if test "${HAVE_JPEG}" = "yes"; then
8322 cat >>confdefs.h
<<\_ACEOF
8326 cat >conftest.
$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 #include "confdefs.h"
8329 #include <jpeglib.h>
8330 version=JPEG_LIB_VERSION
8333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8334 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8335 cat >>confdefs.h
<<\_ACEOF
8340 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8341 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8349 ### Use -lpng if available, unless `--with-png=no'.
8351 if test "${HAVE_X11}" = "yes"; then
8352 if test "${with_png}" != "no"; then
8353 if test "${ac_cv_header_png_h+set}" = set; then
8354 echo "$as_me:$LINENO: checking for png.h" >&5
8355 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8356 if test "${ac_cv_header_png_h+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8360 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8362 # Is the header compilable?
8363 echo "$as_me:$LINENO: checking png.h usability" >&5
8364 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8366 #line $LINENO "configure"
8367 #include "confdefs.h"
8368 $ac_includes_default
8371 rm -f conftest.
$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try
='test -s conftest.$ac_objext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_header_compiler
=yes
8385 echo "$as_me: failed program was:" >&5
8386 cat conftest.
$ac_ext >&5
8387 ac_header_compiler
=no
8389 rm -f conftest.
$ac_objext conftest.
$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8391 echo "${ECHO_T}$ac_header_compiler" >&6
8393 # Is the header present?
8394 echo "$as_me:$LINENO: checking png.h presence" >&5
8395 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8396 cat >conftest.
$ac_ext <<_ACEOF
8397 #line $LINENO "configure"
8398 #include "confdefs.h"
8401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8402 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8404 grep -v '^ *+' conftest.er1
>conftest.err
8406 cat conftest.err
>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } >/dev
/null
; then
8409 if test -s conftest.err
; then
8410 ac_cpp_err
=$ac_c_preproc_warn_flag
8417 if test -z "$ac_cpp_err"; then
8418 ac_header_preproc
=yes
8420 echo "$as_me: failed program was:" >&5
8421 cat conftest.
$ac_ext >&5
8422 ac_header_preproc
=no
8424 rm -f conftest.err conftest.
$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8426 echo "${ECHO_T}$ac_header_preproc" >&6
8428 # So? What about this header?
8429 case $ac_header_compiler:$ac_header_preproc in
8431 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8432 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8433 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8434 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8436 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8437 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8439 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8441 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8443 echo "$as_me:$LINENO: checking for png.h" >&5
8444 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8445 if test "${ac_cv_header_png_h+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_cv_header_png_h
=$ac_header_preproc
8450 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8451 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8454 if test $ac_cv_header_png_h = yes; then
8455 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8456 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8457 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_check_lib_save_LIBS
=$LIBS
8461 LIBS
="-lpng -lz -lm $LIBS"
8462 cat >conftest.
$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8464 #include "confdefs.h"
8466 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char png_get_channels ();
8476 png_get_channels ();
8481 rm -f conftest.
$ac_objext conftest
$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try
='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_png_png_get_channels
=yes
8495 echo "$as_me: failed program was:" >&5
8496 cat conftest.
$ac_ext >&5
8497 ac_cv_lib_png_png_get_channels
=no
8499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8500 LIBS
=$ac_check_lib_save_LIBS
8502 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8503 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8504 if test $ac_cv_lib_png_png_get_channels = yes; then
8513 if test "${HAVE_PNG}" = "yes"; then
8515 cat >>confdefs.h
<<\_ACEOF
8522 ### Use -ltiff if available, unless `--with-tiff=no'.
8524 if test "${HAVE_X11}" = "yes"; then
8525 if test "${with_tiff}" != "no"; then
8526 if test "${ac_cv_header_tiffio_h+set}" = set; then
8527 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8528 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8529 if test "${ac_cv_header_tiffio_h+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8533 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8535 # Is the header compilable?
8536 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8537 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8538 cat >conftest.
$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8541 $ac_includes_default
8544 rm -f conftest.
$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
8550 { ac_try
='test -s conftest.$ac_objext'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_header_compiler
=yes
8558 echo "$as_me: failed program was:" >&5
8559 cat conftest.
$ac_ext >&5
8560 ac_header_compiler
=no
8562 rm -f conftest.
$ac_objext conftest.
$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8564 echo "${ECHO_T}$ac_header_compiler" >&6
8566 # Is the header present?
8567 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8568 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8569 cat >conftest.
$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 #include "confdefs.h"
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } >/dev
/null
; then
8582 if test -s conftest.err
; then
8583 ac_cpp_err
=$ac_c_preproc_warn_flag
8590 if test -z "$ac_cpp_err"; then
8591 ac_header_preproc
=yes
8593 echo "$as_me: failed program was:" >&5
8594 cat conftest.
$ac_ext >&5
8595 ac_header_preproc
=no
8597 rm -f conftest.err conftest.
$ac_ext
8598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8599 echo "${ECHO_T}$ac_header_preproc" >&6
8601 # So? What about this header?
8602 case $ac_header_compiler:$ac_header_preproc in
8604 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8605 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8609 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8614 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8616 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8617 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8618 if test "${ac_cv_header_tiffio_h+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_cv_header_tiffio_h
=$ac_header_preproc
8623 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8624 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8627 if test $ac_cv_header_tiffio_h = yes; then
8629 # At least one tiff package requires the jpeg library.
8630 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8631 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8632 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8633 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 ac_check_lib_save_LIBS
=$LIBS
8637 LIBS
="-ltiff $tifflibs $LIBS"
8638 cat >conftest.
$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 #include "confdefs.h"
8642 /* Override any gcc2 internal prototype to avoid an error. */
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8648 char TIFFGetVersion ();
8657 rm -f conftest.
$ac_objext conftest
$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try
='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_tiff_TIFFGetVersion
=yes
8671 echo "$as_me: failed program was:" >&5
8672 cat conftest.
$ac_ext >&5
8673 ac_cv_lib_tiff_TIFFGetVersion
=no
8675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8676 LIBS
=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8679 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8680 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8689 if test "${HAVE_TIFF}" = "yes"; then
8691 cat >>confdefs.h
<<\_ACEOF
8698 ### Use -lgif if available, unless `--with-gif=no'.
8700 if test "${HAVE_X11}" = "yes"; then
8701 if test "${with_gif}" != "no"; then
8702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8703 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8704 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8709 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8711 # Is the header compilable?
8712 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8713 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8714 cat >conftest.
$ac_ext <<_ACEOF
8715 #line $LINENO "configure"
8716 #include "confdefs.h"
8717 $ac_includes_default
8718 #include <gif_lib.h>
8720 rm -f conftest.
$ac_objext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8722 (eval $ac_compile) 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try
='test -s conftest.$ac_objext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_header_compiler
=yes
8734 echo "$as_me: failed program was:" >&5
8735 cat conftest.
$ac_ext >&5
8736 ac_header_compiler
=no
8738 rm -f conftest.
$ac_objext conftest.
$ac_ext
8739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8740 echo "${ECHO_T}$ac_header_compiler" >&6
8742 # Is the header present?
8743 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8744 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748 #include <gif_lib.h>
8750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8753 grep -v '^ *+' conftest.er1
>conftest.err
8755 cat conftest.err
>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev
/null
; then
8758 if test -s conftest.err
; then
8759 ac_cpp_err
=$ac_c_preproc_warn_flag
8766 if test -z "$ac_cpp_err"; then
8767 ac_header_preproc
=yes
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8771 ac_header_preproc
=no
8773 rm -f conftest.err conftest.
$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8775 echo "${ECHO_T}$ac_header_preproc" >&6
8777 # So? What about this header?
8778 case $ac_header_compiler:$ac_header_preproc in
8780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8781 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8783 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8785 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8786 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8788 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8790 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8792 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8793 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 ac_cv_header_gif_lib_h
=$ac_header_preproc
8799 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8800 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8803 if test $ac_cv_header_gif_lib_h = yes; then
8804 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8805 # Earlier versions can crash Emacs.
8806 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8807 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8808 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 ac_check_lib_save_LIBS
=$LIBS
8812 LIBS
="-lungif $LIBS"
8813 cat >conftest.
$ac_ext <<_ACEOF
8814 #line $LINENO "configure"
8815 #include "confdefs.h"
8817 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8823 char EGifPutExtensionLast ();
8827 EGifPutExtensionLast ();
8832 rm -f conftest.
$ac_objext conftest
$ac_exeext
8833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8834 (eval $ac_link) 2>&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try
='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
8846 echo "$as_me: failed program was:" >&5
8847 cat conftest.
$ac_ext >&5
8848 ac_cv_lib_ungif_EGifPutExtensionLast
=no
8850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8851 LIBS
=$ac_check_lib_save_LIBS
8853 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
8854 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
8855 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
8864 if test "${HAVE_GIF}" = "yes"; then
8866 cat >>confdefs.h
<<\_ACEOF
8873 ### Use Mac OS X Carbon API to implement GUI.
8875 if test "${with_carbon}" != "no"; then
8876 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8877 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8878 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8879 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8883 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8885 # Is the header compilable?
8886 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8887 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8888 cat >conftest.
$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8891 $ac_includes_default
8892 #include <Carbon/Carbon.h>
8894 rm -f conftest.
$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try
='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_header_compiler
=yes
8908 echo "$as_me: failed program was:" >&5
8909 cat conftest.
$ac_ext >&5
8910 ac_header_compiler
=no
8912 rm -f conftest.
$ac_objext conftest.
$ac_ext
8913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8914 echo "${ECHO_T}$ac_header_compiler" >&6
8916 # Is the header present?
8917 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8918 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8919 cat >conftest.
$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 #include "confdefs.h"
8922 #include <Carbon/Carbon.h>
8924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1
>conftest.err
8929 cat conftest.err
>&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } >/dev
/null
; then
8932 if test -s conftest.err
; then
8933 ac_cpp_err
=$ac_c_preproc_warn_flag
8940 if test -z "$ac_cpp_err"; then
8941 ac_header_preproc
=yes
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.
$ac_ext >&5
8945 ac_header_preproc
=no
8947 rm -f conftest.err conftest.
$ac_ext
8948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8949 echo "${ECHO_T}$ac_header_preproc" >&6
8951 # So? What about this header?
8952 case $ac_header_compiler:$ac_header_preproc in
8954 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8955 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8957 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8959 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8960 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8962 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8964 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
8966 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8967 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8968 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8973 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8974 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8977 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8984 if test "${HAVE_CARBON}" = "yes"; then
8986 cat >>confdefs.h
<<\_ACEOF
8987 #define HAVE_CARBON 1
8992 ### Use session management (-lSM -lICE) if available
8994 if test "${HAVE_X11}" = "yes"; then
8995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8996 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
8997 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
8998 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9002 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9004 # Is the header compilable?
9005 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9006 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9007 cat >conftest.
$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 #include "confdefs.h"
9010 $ac_includes_default
9011 #include <X11/SM/SMlib.h>
9013 rm -f conftest.
$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try
='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_header_compiler
=yes
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.
$ac_ext >&5
9029 ac_header_compiler
=no
9031 rm -f conftest.
$ac_objext conftest.
$ac_ext
9032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9033 echo "${ECHO_T}$ac_header_compiler" >&6
9035 # Is the header present?
9036 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9037 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9038 cat >conftest.
$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041 #include <X11/SM/SMlib.h>
9043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9046 grep -v '^ *+' conftest.er1
>conftest.err
9048 cat conftest.err
>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } >/dev
/null
; then
9051 if test -s conftest.err
; then
9052 ac_cpp_err
=$ac_c_preproc_warn_flag
9059 if test -z "$ac_cpp_err"; then
9060 ac_header_preproc
=yes
9062 echo "$as_me: failed program was:" >&5
9063 cat conftest.
$ac_ext >&5
9064 ac_header_preproc
=no
9066 rm -f conftest.err conftest.
$ac_ext
9067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 echo "${ECHO_T}$ac_header_preproc" >&6
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc in
9073 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9074 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9076 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9078 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9079 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9081 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9083 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9085 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9086 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9087 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9092 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9093 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9096 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9097 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9098 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9099 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_check_lib_save_LIBS
=$LIBS
9104 cat >conftest.
$ac_ext <<_ACEOF
9105 #line $LINENO "configure"
9106 #include "confdefs.h"
9108 /* Override any gcc2 internal prototype to avoid an error. */
9112 /* We use char because int might match the return type of a gcc2
9113 builtin and then its argument prototype would still apply. */
9114 char SmcOpenConnection ();
9118 SmcOpenConnection ();
9123 rm -f conftest.
$ac_objext conftest
$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try
='test -s conftest$ac_exeext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_lib_SM_SmcOpenConnection
=yes
9137 echo "$as_me: failed program was:" >&5
9138 cat conftest.
$ac_ext >&5
9139 ac_cv_lib_SM_SmcOpenConnection
=no
9141 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9142 LIBS
=$ac_check_lib_save_LIBS
9144 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9145 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9146 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9156 if test "${HAVE_X_SM}" = "yes"; then
9158 cat >>confdefs.h
<<\_ACEOF
9164 *) LIBS
="-lSM -lICE $LIBS" ;;
9169 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9170 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9171 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9172 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.
$ac_ext <<_ACEOF
9176 #line $LINENO "configure"
9177 #include "confdefs.h"
9187 rm -f conftest.
$ac_objext conftest
$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try
='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 emacs_cv_netdb_declares_h_errno
=yes
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.
$ac_ext >&5
9203 emacs_cv_netdb_declares_h_errno
=no
9205 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9207 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9208 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9209 if test $emacs_cv_netdb_declares_h_errno = yes; then
9211 cat >>confdefs.h
<<\_ACEOF
9212 #define HAVE_H_ERRNO 1
9217 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9218 # for constant arguments. Useless!
9219 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9220 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9221 if test "${ac_cv_working_alloca_h+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.
$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9231 char *p = (char *) alloca (2 * sizeof (int));
9236 rm -f conftest.
$ac_objext conftest
$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try
='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_working_alloca_h
=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.
$ac_ext >&5
9252 ac_cv_working_alloca_h
=no
9254 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9257 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9258 if test $ac_cv_working_alloca_h = yes; then
9260 cat >>confdefs.h
<<\_ACEOF
9261 #define HAVE_ALLOCA_H 1
9266 echo "$as_me:$LINENO: checking for alloca" >&5
9267 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9268 if test "${ac_cv_func_alloca_works+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.
$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 #include "confdefs.h"
9275 # define alloca __builtin_alloca
9278 # include <malloc.h>
9279 # define alloca _alloca
9282 # include <alloca.h>
9287 # ifndef alloca /* predefined by HP cc +Olibcalls */
9298 char *p = (char *) alloca (1);
9303 rm -f conftest.
$ac_objext conftest
$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305 (eval $ac_link) 2>&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } &&
9309 { ac_try
='test -s conftest$ac_exeext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_cv_func_alloca_works
=yes
9317 echo "$as_me: failed program was:" >&5
9318 cat conftest.
$ac_ext >&5
9319 ac_cv_func_alloca_works
=no
9321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9326 if test $ac_cv_func_alloca_works = yes; then
9328 cat >>confdefs.h
<<\_ACEOF
9329 #define HAVE_ALLOCA 1
9333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9334 # that cause trouble. Some versions do not even contain alloca or
9335 # contain a buggy version. If you still want to use their alloca,
9336 # use ar to extract alloca.o from them instead of compiling alloca.c.
9338 ALLOCA
=alloca.
$ac_objext
9340 cat >>confdefs.h
<<\_ACEOF
9345 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9347 if test "${ac_cv_os_cray+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 cat >conftest.
$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9352 #include "confdefs.h"
9353 #if defined(CRAY) && ! defined(CRAY2)
9360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9361 $EGREP "webecray" >/dev
/null
2>&1; then
9369 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9370 echo "${ECHO_T}$ac_cv_os_cray" >&6
9371 if test $ac_cv_os_cray = yes; then
9372 for ac_func
in _getb67 GETB67 getb67
; do
9373 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9374 echo "$as_me:$LINENO: checking for $ac_func" >&5
9375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9376 if eval "test \"\${$as_ac_var+set}\" = set"; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 cat >conftest.
$ac_ext <<_ACEOF
9380 #line $LINENO "configure"
9381 #include "confdefs.h"
9382 /* System header to define __stub macros and hopefully few prototypes,
9383 which can conflict with char $ac_func (); below. */
9385 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9397 /* The GNU C library defines this for functions which it implements
9398 to always fail with ENOSYS. Some functions are actually named
9399 something starting with __ and the normal name is an alias. */
9400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9410 rm -f conftest.
$ac_objext conftest
$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try
='test -s conftest$ac_exeext'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 eval "$as_ac_var=yes"
9424 echo "$as_me: failed program was:" >&5
9425 cat conftest.
$ac_ext >&5
9426 eval "$as_ac_var=no"
9428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9432 if test `eval echo '${'$as_ac_var'}'` = yes; then
9434 cat >>confdefs.h
<<_ACEOF
9435 #define CRAY_STACKSEG_END $ac_func
9444 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9445 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9446 if test "${ac_cv_c_stack_direction+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 if test "$cross_compiling" = yes; then
9450 ac_cv_c_stack_direction
=0
9452 cat >conftest.
$ac_ext <<_ACEOF
9453 #line $LINENO "configure"
9454 #include "confdefs.h"
9456 find_stack_direction ()
9458 static char *addr = 0;
9463 return find_stack_direction ();
9466 return (&dummy > addr) ? 1 : -1;
9472 exit (find_stack_direction () < 0);
9475 rm -f conftest
$ac_exeext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_c_stack_direction
=1
9488 echo "$as_me: program exited with status $ac_status" >&5
9489 echo "$as_me: failed program was:" >&5
9490 cat conftest.
$ac_ext >&5
9492 ac_cv_c_stack_direction
=-1
9494 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9497 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9498 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9500 cat >>confdefs.h
<<_ACEOF
9501 #define STACK_DIRECTION $ac_cv_c_stack_direction
9508 # fmod, logb, and frexp are found in -lm on most systems.
9509 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9511 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9512 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9513 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_check_lib_save_LIBS
=$LIBS
9518 cat >conftest.
$ac_ext <<_ACEOF
9519 #line $LINENO "configure"
9520 #include "confdefs.h"
9522 /* Override any gcc2 internal prototype to avoid an error. */
9526 /* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
9537 rm -f conftest.
$ac_objext conftest
$ac_exeext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try
='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9549 ac_cv_lib_m_sqrt
=yes
9551 echo "$as_me: failed program was:" >&5
9552 cat conftest.
$ac_ext >&5
9555 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9556 LIBS
=$ac_check_lib_save_LIBS
9558 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9559 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9560 if test $ac_cv_lib_m_sqrt = yes; then
9561 cat >>confdefs.h
<<_ACEOF
9570 # Check for mail-locking functions in a "mail" library
9572 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9573 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9574 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 ac_check_lib_save_LIBS
=$LIBS
9579 cat >conftest.
$ac_ext <<_ACEOF
9580 #line $LINENO "configure"
9581 #include "confdefs.h"
9583 /* Override any gcc2 internal prototype to avoid an error. */
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9598 rm -f conftest.
$ac_objext conftest
$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try
='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_lib_mail_maillock
=yes
9612 echo "$as_me: failed program was:" >&5
9613 cat conftest.
$ac_ext >&5
9614 ac_cv_lib_mail_maillock
=no
9616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9617 LIBS
=$ac_check_lib_save_LIBS
9619 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9620 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9621 if test $ac_cv_lib_mail_maillock = yes; then
9622 cat >>confdefs.h
<<_ACEOF
9623 #define HAVE_LIBMAIL 1
9631 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9632 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9633 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_check_lib_save_LIBS
=$LIBS
9637 LIBS
="-llockfile $LIBS"
9638 cat >conftest.
$ac_ext <<_ACEOF
9639 #line $LINENO "configure"
9640 #include "confdefs.h"
9642 /* Override any gcc2 internal prototype to avoid an error. */
9646 /* We use char because int might match the return type of a gcc2
9647 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.
$ac_objext conftest
$ac_exeext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try
='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_lockfile_maillock
=yes
9671 echo "$as_me: failed program was:" >&5
9672 cat conftest.
$ac_ext >&5
9673 ac_cv_lib_lockfile_maillock
=no
9675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9676 LIBS
=$ac_check_lib_save_LIBS
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9679 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9680 if test $ac_cv_lib_lockfile_maillock = yes; then
9681 cat >>confdefs.h
<<_ACEOF
9682 #define HAVE_LIBLOCKFILE 1
9685 LIBS
="-llockfile $LIBS"
9689 # If we have the shared liblockfile, assume we must use it for mail
9690 # locking (e.g. Debian). If we couldn't link against liblockfile
9691 # (no liblockfile.a installed), ensure that we don't need to.
9692 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9693 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9694 set dummy liblockfile.so
; ac_word
=$2
9695 echo "$as_me:$LINENO: checking for $ac_word" >&5
9696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9697 if test "${ac_cv_prog_liblockfile+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 if test -n "$liblockfile"; then
9701 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9704 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
9705 for as_dir
in $as_dummy
9708 test -z "$as_dir" && as_dir
=.
9709 for ac_exec_ext
in '' $ac_executable_extensions; do
9710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9711 ac_cv_prog_liblockfile
="yes"
9712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9721 liblockfile
=$ac_cv_prog_liblockfile
9722 if test -n "$liblockfile"; then
9723 echo "$as_me:$LINENO: result: $liblockfile" >&5
9724 echo "${ECHO_T}$liblockfile" >&6
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9730 if test $ac_cv_prog_liblockfile = yes; then
9731 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9732 This probably means that movemail could lose mail.
9733 There may be a \`development' package to install containing liblockfile." >&5
9734 echo "$as_me: error: Shared liblockfile found but can't link against it.
9735 This probably means that movemail could lose mail.
9736 There may be a \`development' package to install containing liblockfile." >&2;}
9737 { (exit 1); exit 1; }; }
9739 cat >>confdefs.h
<<\_ACEOF
9740 #define LIBMAIL -llockfile
9747 for ac_func
in touchlock
9749 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9750 echo "$as_me:$LINENO: checking for $ac_func" >&5
9751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_var+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.
$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 #include "confdefs.h"
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char $ac_func (); below. */
9761 /* Override any gcc2 internal prototype to avoid an error. */
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9773 /* The GNU C library defines this for functions which it implements
9774 to always fail with ENOSYS. Some functions are actually named
9775 something starting with __ and the normal name is an alias. */
9776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9786 rm -f conftest.
$ac_objext conftest
$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } &&
9792 { ac_try
='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 eval "$as_ac_var=yes"
9800 echo "$as_me: failed program was:" >&5
9801 cat conftest.
$ac_ext >&5
9802 eval "$as_ac_var=no"
9804 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9808 if test `eval echo '${'$as_ac_var'}'` = yes; then
9809 cat >>confdefs.h
<<_ACEOF
9810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9817 for ac_header
in maillock.h
9819 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.
$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9834 #include "confdefs.h"
9835 $ac_includes_default
9836 #include <$ac_header>
9838 rm -f conftest.
$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840 (eval $ac_compile) 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try
='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_header_compiler
=yes
9852 echo "$as_me: failed program was:" >&5
9853 cat conftest.
$ac_ext >&5
9854 ac_header_compiler
=no
9856 rm -f conftest.
$ac_objext conftest.
$ac_ext
9857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9858 echo "${ECHO_T}$ac_header_compiler" >&6
9860 # Is the header present?
9861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9863 cat >conftest.
$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9866 #include <$ac_header>
9868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9871 grep -v '^ *+' conftest.er1
>conftest.err
9873 cat conftest.err
>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev
/null
; then
9876 if test -s conftest.err
; then
9877 ac_cpp_err
=$ac_c_preproc_warn_flag
9884 if test -z "$ac_cpp_err"; then
9885 ac_header_preproc
=yes
9887 echo "$as_me: failed program was:" >&5
9888 cat conftest.
$ac_ext >&5
9889 ac_header_preproc
=no
9891 rm -f conftest.err conftest.
$ac_ext
9892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 echo "${ECHO_T}$ac_header_preproc" >&6
9895 # So? What about this header?
9896 case $ac_header_compiler:$ac_header_preproc in
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9910 echo "$as_me:$LINENO: checking for $ac_header" >&5
9911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 eval "$as_ac_Header=$ac_header_preproc"
9917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9922 cat >>confdefs.h
<<_ACEOF
9923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9988 for ac_func
in gethostname getdomainname dup2 \
9989 rename closedir mkdir
rmdir sysinfo \
9990 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
9991 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
9992 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
9993 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
9994 sendto recvfrom getsockopt setsockopt getsockname getpeername \
9995 gai_strerror mkstemp getline getdelim mremap memmove
9997 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9998 echo "$as_me:$LINENO: checking for $ac_func" >&5
9999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10000 if eval "test \"\${$as_ac_var+set}\" = set"; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 cat >conftest.
$ac_ext <<_ACEOF
10004 #line $LINENO "configure"
10005 #include "confdefs.h"
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func (); below. */
10008 #include <assert.h>
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10021 /* The GNU C library defines this for functions which it implements
10022 to always fail with ENOSYS. Some functions are actually named
10023 something starting with __ and the normal name is an alias. */
10024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10034 rm -f conftest.
$ac_objext conftest
$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try
='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 eval "$as_ac_var=yes"
10048 echo "$as_me: failed program was:" >&5
10049 cat conftest.
$ac_ext >&5
10050 eval "$as_ac_var=no"
10052 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10056 if test `eval echo '${'$as_ac_var'}'` = yes; then
10057 cat >>confdefs.h
<<_ACEOF
10058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10066 for ac_header
in sys
/un.h
10068 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10070 echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10078 # Is the header compilable?
10079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10081 cat >conftest.
$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10083 #include "confdefs.h"
10084 $ac_includes_default
10085 #include <$ac_header>
10087 rm -f conftest.
$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try
='test -s conftest.$ac_objext'
10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_header_compiler
=yes
10101 echo "$as_me: failed program was:" >&5
10102 cat conftest.
$ac_ext >&5
10103 ac_header_compiler
=no
10105 rm -f conftest.
$ac_objext conftest.
$ac_ext
10106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10107 echo "${ECHO_T}$ac_header_compiler" >&6
10109 # Is the header present?
10110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10112 cat >conftest.
$ac_ext <<_ACEOF
10113 #line $LINENO "configure"
10114 #include "confdefs.h"
10115 #include <$ac_header>
10117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10120 grep -v '^ *+' conftest.er1
>conftest.err
10122 cat conftest.err
>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } >/dev
/null
; then
10125 if test -s conftest.err
; then
10126 ac_cpp_err
=$ac_c_preproc_warn_flag
10133 if test -z "$ac_cpp_err"; then
10134 ac_header_preproc
=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.
$ac_ext >&5
10138 ac_header_preproc
=no
10140 rm -f conftest.err conftest.
$ac_ext
10141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10142 echo "${ECHO_T}$ac_header_preproc" >&6
10144 # So? What about this header?
10145 case $ac_header_compiler:$ac_header_preproc in
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10159 echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 eval "$as_ac_Header=$ac_header_preproc"
10166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10171 cat >>confdefs.h
<<_ACEOF
10172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10182 for ac_header
in sys
/time.h unistd.h
10184 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10194 # Is the header compilable?
10195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10197 cat >conftest.
$ac_ext <<_ACEOF
10198 #line $LINENO "configure"
10199 #include "confdefs.h"
10200 $ac_includes_default
10201 #include <$ac_header>
10203 rm -f conftest.
$ac_objext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_header_compiler
=yes
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.
$ac_ext >&5
10219 ac_header_compiler
=no
10221 rm -f conftest.
$ac_objext conftest.
$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223 echo "${ECHO_T}$ac_header_compiler" >&6
10225 # Is the header present?
10226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10228 cat >conftest.
$ac_ext <<_ACEOF
10229 #line $LINENO "configure"
10230 #include "confdefs.h"
10231 #include <$ac_header>
10233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10236 grep -v '^ *+' conftest.er1
>conftest.err
10238 cat conftest.err
>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev
/null
; then
10241 if test -s conftest.err
; then
10242 ac_cpp_err
=$ac_c_preproc_warn_flag
10249 if test -z "$ac_cpp_err"; then
10250 ac_header_preproc
=yes
10252 echo "$as_me: failed program was:" >&5
10253 cat conftest.
$ac_ext >&5
10254 ac_header_preproc
=no
10256 rm -f conftest.err conftest.
$ac_ext
10257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10258 echo "${ECHO_T}$ac_header_preproc" >&6
10260 # So? What about this header?
10261 case $ac_header_compiler:$ac_header_preproc in
10263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 eval "$as_ac_Header=$ac_header_preproc"
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10287 cat >>confdefs.h
<<_ACEOF
10288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10296 for ac_func
in alarm
10298 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10299 echo "$as_me:$LINENO: checking for $ac_func" >&5
10300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10301 if eval "test \"\${$as_ac_var+set}\" = set"; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.
$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10306 #include "confdefs.h"
10307 /* System header to define __stub macros and hopefully few prototypes,
10308 which can conflict with char $ac_func (); below. */
10309 #include <assert.h>
10310 /* Override any gcc2 internal prototype to avoid an error. */
10314 /* We use char because int might match the return type of a gcc2
10315 builtin and then its argument prototype would still apply. */
10322 /* The GNU C library defines this for functions which it implements
10323 to always fail with ENOSYS. Some functions are actually named
10324 something starting with __ and the normal name is an alias. */
10325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10335 rm -f conftest.
$ac_objext conftest
$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try
='test -s conftest$ac_exeext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 eval "$as_ac_var=yes"
10349 echo "$as_me: failed program was:" >&5
10350 cat conftest.
$ac_ext >&5
10351 eval "$as_ac_var=no"
10353 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10357 if test `eval echo '${'$as_ac_var'}'` = yes; then
10358 cat >>confdefs.h
<<_ACEOF
10359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10365 echo "$as_me:$LINENO: checking for working mktime" >&5
10366 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10367 if test "${ac_cv_func_working_mktime+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 if test "$cross_compiling" = yes; then
10371 ac_cv_func_working_mktime
=no
10373 cat >conftest.
$ac_ext <<_ACEOF
10374 #line $LINENO "configure"
10375 #include "confdefs.h"
10376 /* Test program from Paul Eggert and Tony Leneis. */
10377 #if TIME_WITH_SYS_TIME
10378 # include <sys/time.h>
10381 # if HAVE_SYS_TIME_H
10382 # include <sys/time.h>
10389 # include <unistd.h>
10393 # define alarm(X) /* empty */
10396 /* Work around redefinition to rpl_putenv by other config tests. */
10399 static time_t time_t_max;
10401 /* Values we'll use to set the TZ environment variable. */
10402 static const char *const tz_strings[] = {
10403 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10404 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10406 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10408 /* Fail if mktime fails to convert a date in the spring-forward gap.
10409 Based on a problem report from Andreas Jaeger. */
10411 spring_forward_gap ()
10413 /* glibc (up to about 1998-10-07) failed this test. */
10416 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10417 instead of "TZ=America/Vancouver" in order to detect the bug even
10418 on systems that don't support the Olson extension, or don't have the
10419 full zoneinfo tables installed. */
10420 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10429 if (mktime (&tm) == (time_t)-1)
10438 if ((lt = localtime (&now)) && mktime (lt) != now)
10440 now = time_t_max - now;
10441 if ((lt = localtime (&now)) && mktime (lt) != now)
10448 /* Based on code from Ariel Faigon. */
10458 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10468 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10469 now = mktime (&tm);
10470 if (now != (time_t) -1)
10472 struct tm *lt = localtime (&now);
10474 && lt->tm_year == tm.tm_year
10475 && lt->tm_mon == tm.tm_mon
10476 && lt->tm_mday == tm.tm_mday
10477 && lt->tm_hour == tm.tm_hour
10478 && lt->tm_min == tm.tm_min
10479 && lt->tm_sec == tm.tm_sec
10480 && lt->tm_yday == tm.tm_yday
10481 && lt->tm_wday == tm.tm_wday
10482 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10483 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10494 /* This test makes some buggy mktime implementations loop.
10495 Give up after 60 seconds; a mktime slower than that
10496 isn't worth using anyway. */
10499 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10502 delta = time_t_max / 997; /* a suitable prime number */
10503 for (i = 0; i < N_STRINGS; i++)
10506 putenv (tz_strings[i]);
10508 for (t = 0; t <= time_t_max - delta; t += delta)
10510 mktime_test ((time_t) 60 * 60);
10511 mktime_test ((time_t) 60 * 60 * 24);
10513 for (j = 1; 0 < j; j *= 2)
10515 bigtime_test (j - 1);
10518 spring_forward_gap ();
10522 rm -f conftest
$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_func_working_mktime
=yes
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 cat conftest.
$ac_ext >&5
10538 ( exit $ac_status )
10539 ac_cv_func_working_mktime
=no
10541 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10544 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10545 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10546 if test $ac_cv_func_working_mktime = no
; then
10547 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10550 if test "$ac_cv_func_working_mktime" = no
; then
10552 cat >>confdefs.h
<<\_ACEOF
10553 #define BROKEN_MKTIME 1
10558 ac_have_func
=no
# yes means we've found a way to get the load average.
10560 # Make sure getloadavg.c is where it belongs, at configure-time.
10561 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10562 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
10563 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
10564 { (exit 1); exit 1; }; }
10568 # Check for getloadavg, but be sure not to touch the cache variable.
10569 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10570 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10571 if test "${ac_cv_func_getloadavg+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.
$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 #include "confdefs.h"
10577 /* System header to define __stub macros and hopefully few prototypes,
10578 which can conflict with char getloadavg (); below. */
10579 #include <assert.h>
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10586 char getloadavg ();
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10605 rm -f conftest.
$ac_objext conftest
$ac_exeext
10606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try
='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_func_getloadavg
=yes
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.
$ac_ext >&5
10621 ac_cv_func_getloadavg
=no
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10625 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10626 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10627 if test $ac_cv_func_getloadavg = yes; then
10632 ) && ac_have_func
=yes
10634 # On HPUX9, an unprivileged user can get load averages through this function.
10636 for ac_func
in pstat_getdynamic
10638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $ac_func" >&5
10640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_var+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.
$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char $ac_func (); below. */
10649 #include <assert.h>
10650 /* Override any gcc2 internal prototype to avoid an error. */
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10662 /* The GNU C library defines this for functions which it implements
10663 to always fail with ENOSYS. Some functions are actually named
10664 something starting with __ and the normal name is an alias. */
10665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 rm -f conftest.
$ac_objext conftest
$ac_exeext
10676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677 (eval $ac_link) 2>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try
='test -s conftest$ac_exeext'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 eval "$as_ac_var=yes"
10689 echo "$as_me: failed program was:" >&5
10690 cat conftest.
$ac_ext >&5
10691 eval "$as_ac_var=no"
10693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10697 if test `eval echo '${'$as_ac_var'}'` = yes; then
10698 cat >>confdefs.h
<<_ACEOF
10699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706 # Solaris has libkstat which does not require root.
10708 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10709 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10710 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 ac_check_lib_save_LIBS
=$LIBS
10714 LIBS
="-lkstat $LIBS"
10715 cat >conftest.
$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 #include "confdefs.h"
10719 /* Override any gcc2 internal prototype to avoid an error. */
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10725 char kstat_open ();
10734 rm -f conftest.
$ac_objext conftest
$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try
='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_kstat_kstat_open
=yes
10748 echo "$as_me: failed program was:" >&5
10749 cat conftest.
$ac_ext >&5
10750 ac_cv_lib_kstat_kstat_open
=no
10752 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10753 LIBS
=$ac_check_lib_save_LIBS
10755 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10756 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
10757 if test $ac_cv_lib_kstat_kstat_open = yes; then
10758 cat >>confdefs.h
<<_ACEOF
10759 #define HAVE_LIBKSTAT 1
10762 LIBS
="-lkstat $LIBS"
10766 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
10768 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10769 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10770 # to get the right answer into the cache.
10771 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
10772 if test $ac_have_func = no
; then
10773 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10774 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
10775 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 ac_check_lib_save_LIBS
=$LIBS
10780 cat >conftest.
$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10784 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10799 rm -f conftest.
$ac_objext conftest
$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try
='test -s conftest$ac_exeext'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; }; then
10811 ac_cv_lib_elf_elf_begin
=yes
10813 echo "$as_me: failed program was:" >&5
10814 cat conftest.
$ac_ext >&5
10815 ac_cv_lib_elf_elf_begin
=no
10817 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10818 LIBS
=$ac_check_lib_save_LIBS
10820 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
10821 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
10822 if test $ac_cv_lib_elf_elf_begin = yes; then
10827 if test $ac_have_func = no
; then
10828 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
10829 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
10830 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 ac_check_lib_save_LIBS
=$LIBS
10835 cat >conftest.
$ac_ext <<_ACEOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10839 /* Override any gcc2 internal prototype to avoid an error. */
10843 /* We use char because int might match the return type of a gcc2
10844 builtin and then its argument prototype would still apply. */
10854 rm -f conftest.
$ac_objext conftest
$ac_exeext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856 (eval $ac_link) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try
='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_lib_kvm_kvm_open
=yes
10868 echo "$as_me: failed program was:" >&5
10869 cat conftest.
$ac_ext >&5
10870 ac_cv_lib_kvm_kvm_open
=no
10872 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10873 LIBS
=$ac_check_lib_save_LIBS
10875 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
10876 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
10877 if test $ac_cv_lib_kvm_kvm_open = yes; then
10881 # Check for the 4.4BSD definition of getloadavg.
10882 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
10883 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
10884 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 ac_check_lib_save_LIBS
=$LIBS
10888 LIBS
="-lutil $LIBS"
10889 cat >conftest.
$ac_ext <<_ACEOF
10890 #line $LINENO "configure"
10891 #include "confdefs.h"
10893 /* Override any gcc2 internal prototype to avoid an error. */
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char getloadavg ();
10908 rm -f conftest.
$ac_objext conftest
$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
10914 { ac_try
='test -s conftest$ac_exeext'
10915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10916 (eval $ac_try) 2>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); }; }; then
10920 ac_cv_lib_util_getloadavg
=yes
10922 echo "$as_me: failed program was:" >&5
10923 cat conftest.
$ac_ext >&5
10924 ac_cv_lib_util_getloadavg
=no
10926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10927 LIBS
=$ac_check_lib_save_LIBS
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
10930 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
10931 if test $ac_cv_lib_util_getloadavg = yes; then
10932 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
10937 if test $ac_have_func = no
; then
10938 # There is a commonly available library for RS/6000 AIX.
10939 # Since it is not a standard part of AIX, it might be installed locally.
10940 ac_getloadavg_LIBS
=$LIBS
10941 LIBS
="-L/usr/local/lib $LIBS"
10942 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
10943 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
10944 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 ac_check_lib_save_LIBS
=$LIBS
10948 LIBS
="-lgetloadavg $LIBS"
10949 cat >conftest.
$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 #include "confdefs.h"
10953 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char getloadavg ();
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try
='test -s conftest$ac_exeext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_lib_getloadavg_getloadavg
=yes
10982 echo "$as_me: failed program was:" >&5
10983 cat conftest.
$ac_ext >&5
10984 ac_cv_lib_getloadavg_getloadavg
=no
10986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10987 LIBS
=$ac_check_lib_save_LIBS
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10990 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
10991 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
10992 LIBS
="-lgetloadavg $LIBS"
10994 LIBS
=$ac_getloadavg_LIBS
10999 # Make sure it is really in the library, if we think we found it,
11000 # otherwise set up the replacement function.
11002 for ac_func
in getloadavg
11004 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11005 echo "$as_me:$LINENO: checking for $ac_func" >&5
11006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11007 if eval "test \"\${$as_ac_var+set}\" = set"; then
11008 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 cat >conftest.
$ac_ext <<_ACEOF
11011 #line $LINENO "configure"
11012 #include "confdefs.h"
11013 /* System header to define __stub macros and hopefully few prototypes,
11014 which can conflict with char $ac_func (); below. */
11015 #include <assert.h>
11016 /* Override any gcc2 internal prototype to avoid an error. */
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11028 /* The GNU C library defines this for functions which it implements
11029 to always fail with ENOSYS. Some functions are actually named
11030 something starting with __ and the normal name is an alias. */
11031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041 rm -f conftest.
$ac_objext conftest
$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043 (eval $ac_link) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try
='test -s conftest$ac_exeext'
11048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049 (eval $ac_try) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); }; }; then
11053 eval "$as_ac_var=yes"
11055 echo "$as_me: failed program was:" >&5
11056 cat conftest.
$ac_ext >&5
11057 eval "$as_ac_var=no"
11059 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11063 if test `eval echo '${'$as_ac_var'}'` = yes; then
11064 cat >>confdefs.h
<<_ACEOF
11065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11069 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11071 cat >>confdefs.h
<<\_ACEOF
11072 #define C_GETLOADAVG 1
11075 # Figure out what our getloadavg.c needs.
11077 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11078 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11079 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11080 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11084 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11086 # Is the header compilable?
11087 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11088 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11089 cat >conftest.
$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 #include "confdefs.h"
11092 $ac_includes_default
11093 #include <sys/dg_sys_info.h>
11095 rm -f conftest.
$ac_objext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try
='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler
=yes
11109 echo "$as_me: failed program was:" >&5
11110 cat conftest.
$ac_ext >&5
11111 ac_header_compiler
=no
11113 rm -f conftest.
$ac_objext conftest.
$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11119 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11120 cat >conftest.
$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 #include "confdefs.h"
11123 #include <sys/dg_sys_info.h>
11125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11128 grep -v '^ *+' conftest.er1
>conftest.err
11130 cat conftest.err
>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } >/dev
/null
; then
11133 if test -s conftest.err
; then
11134 ac_cpp_err
=$ac_c_preproc_warn_flag
11141 if test -z "$ac_cpp_err"; then
11142 ac_header_preproc
=yes
11144 echo "$as_me: failed program was:" >&5
11145 cat conftest.
$ac_ext >&5
11146 ac_header_preproc
=no
11148 rm -f conftest.err conftest.
$ac_ext
11149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150 echo "${ECHO_T}$ac_header_preproc" >&6
11152 # So? What about this header?
11153 case $ac_header_compiler:$ac_header_preproc in
11155 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11156 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11158 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11160 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11161 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11163 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11167 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11168 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11169 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11174 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11175 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11178 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11181 cat >>confdefs.h
<<\_ACEOF
11186 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11187 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11188 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 ac_check_lib_save_LIBS
=$LIBS
11193 cat >conftest.
$ac_ext <<_ACEOF
11194 #line $LINENO "configure"
11195 #include "confdefs.h"
11197 /* Override any gcc2 internal prototype to avoid an error. */
11201 /* We use char because int might match the return type of a gcc2
11202 builtin and then its argument prototype would still apply. */
11203 char dg_sys_info ();
11212 rm -f conftest.
$ac_objext conftest
$ac_exeext
11213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11214 (eval $ac_link) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } &&
11218 { ac_try
='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_lib_dgc_dg_sys_info
=yes
11226 echo "$as_me: failed program was:" >&5
11227 cat conftest.
$ac_ext >&5
11228 ac_cv_lib_dgc_dg_sys_info
=no
11230 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11231 LIBS
=$ac_check_lib_save_LIBS
11233 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11234 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11235 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11236 cat >>confdefs.h
<<_ACEOF
11237 #define HAVE_LIBDGC 1
11248 if test "${ac_cv_header_locale_h+set}" = set; then
11249 echo "$as_me:$LINENO: checking for locale.h" >&5
11250 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11251 if test "${ac_cv_header_locale_h+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11255 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11257 # Is the header compilable?
11258 echo "$as_me:$LINENO: checking locale.h usability" >&5
11259 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11260 cat >conftest.
$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 #include "confdefs.h"
11263 $ac_includes_default
11264 #include <locale.h>
11266 rm -f conftest.
$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268 (eval $ac_compile) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try
='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler
=yes
11280 echo "$as_me: failed program was:" >&5
11281 cat conftest.
$ac_ext >&5
11282 ac_header_compiler
=no
11284 rm -f conftest.
$ac_objext conftest.
$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286 echo "${ECHO_T}$ac_header_compiler" >&6
11288 # Is the header present?
11289 echo "$as_me:$LINENO: checking locale.h presence" >&5
11290 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11291 cat >conftest.
$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11293 #include "confdefs.h"
11294 #include <locale.h>
11296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1
>conftest.err
11301 cat conftest.err
>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } >/dev
/null
; then
11304 if test -s conftest.err
; then
11305 ac_cpp_err
=$ac_c_preproc_warn_flag
11312 if test -z "$ac_cpp_err"; then
11313 ac_header_preproc
=yes
11315 echo "$as_me: failed program was:" >&5
11316 cat conftest.
$ac_ext >&5
11317 ac_header_preproc
=no
11319 rm -f conftest.err conftest.
$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6
11323 # So? What about this header?
11324 case $ac_header_compiler:$ac_header_preproc in
11326 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11327 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11329 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11331 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11333 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11335 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11336 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11338 echo "$as_me:$LINENO: checking for locale.h" >&5
11339 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11340 if test "${ac_cv_header_locale_h+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 ac_cv_header_locale_h
=$ac_header_preproc
11345 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11346 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11352 for ac_func
in setlocale
11354 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 cat >conftest.
$ac_ext <<_ACEOF
11361 #line $LINENO "configure"
11362 #include "confdefs.h"
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func (); below. */
11365 #include <assert.h>
11366 /* Override any gcc2 internal prototype to avoid an error. */
11370 /* We use char because int might match the return type of a gcc2
11371 builtin and then its argument prototype would still apply. */
11378 /* The GNU C library defines this for functions which it implements
11379 to always fail with ENOSYS. Some functions are actually named
11380 something starting with __ and the normal name is an alias. */
11381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11391 rm -f conftest.
$ac_objext conftest
$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try
='test -s conftest$ac_exeext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 eval "$as_ac_var=yes"
11405 echo "$as_me: failed program was:" >&5
11406 cat conftest.
$ac_ext >&5
11407 eval "$as_ac_var=no"
11409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11413 if test `eval echo '${'$as_ac_var'}'` = yes; then
11414 cat >>confdefs.h
<<_ACEOF
11415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11423 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11424 # Irix 4.0.5F has the header but not the library.
11425 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11428 cat >>confdefs.h
<<\_ACEOF
11434 if test $ac_have_func = no
; then
11435 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11436 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11437 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11438 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11442 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11444 # Is the header compilable?
11445 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11446 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11447 cat >conftest.
$ac_ext <<_ACEOF
11448 #line $LINENO "configure"
11449 #include "confdefs.h"
11450 $ac_includes_default
11451 #include <inq_stats/cpustats.h>
11453 rm -f conftest.
$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try
='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_header_compiler
=yes
11467 echo "$as_me: failed program was:" >&5
11468 cat conftest.
$ac_ext >&5
11469 ac_header_compiler
=no
11471 rm -f conftest.
$ac_objext conftest.
$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 echo "${ECHO_T}$ac_header_compiler" >&6
11475 # Is the header present?
11476 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11477 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11478 cat >conftest.
$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11480 #include "confdefs.h"
11481 #include <inq_stats/cpustats.h>
11483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11486 grep -v '^ *+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev
/null
; then
11491 if test -s conftest.err
; then
11492 ac_cpp_err
=$ac_c_preproc_warn_flag
11499 if test -z "$ac_cpp_err"; then
11500 ac_header_preproc
=yes
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.
$ac_ext >&5
11504 ac_header_preproc
=no
11506 rm -f conftest.err conftest.
$ac_ext
11507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11508 echo "${ECHO_T}$ac_header_preproc" >&6
11510 # So? What about this header?
11511 case $ac_header_compiler:$ac_header_preproc in
11513 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11514 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11516 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11518 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11523 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11525 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11526 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11527 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11532 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11533 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11536 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11539 cat >>confdefs.h
<<\_ACEOF
11544 cat >>confdefs.h
<<\_ACEOF
11553 if test $ac_have_func = no
; then
11554 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11555 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11556 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11557 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11561 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11563 # Is the header compilable?
11564 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11565 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11566 cat >conftest.
$ac_ext <<_ACEOF
11567 #line $LINENO "configure"
11568 #include "confdefs.h"
11569 $ac_includes_default
11570 #include <sys/cpustats.h>
11572 rm -f conftest.
$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try
='test -s conftest.$ac_objext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 ac_header_compiler
=yes
11586 echo "$as_me: failed program was:" >&5
11587 cat conftest.
$ac_ext >&5
11588 ac_header_compiler
=no
11590 rm -f conftest.
$ac_objext conftest.
$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11596 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11597 cat >conftest.
$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 #include "confdefs.h"
11600 #include <sys/cpustats.h>
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11605 grep -v '^ *+' conftest.er1
>conftest.err
11607 cat conftest.err
>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev
/null
; then
11610 if test -s conftest.err
; then
11611 ac_cpp_err
=$ac_c_preproc_warn_flag
11618 if test -z "$ac_cpp_err"; then
11619 ac_header_preproc
=yes
11621 echo "$as_me: failed program was:" >&5
11622 cat conftest.
$ac_ext >&5
11623 ac_header_preproc
=no
11625 rm -f conftest.err conftest.
$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11627 echo "${ECHO_T}$ac_header_preproc" >&6
11629 # So? What about this header?
11630 case $ac_header_compiler:$ac_header_preproc in
11632 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11633 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11635 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11637 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11638 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11640 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11642 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11644 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11645 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11646 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11655 if test $ac_cv_header_sys_cpustats_h = yes; then
11656 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
11665 if test $ac_have_func = no
; then
11667 for ac_header
in mach
/mach.h
11669 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11679 # Is the header compilable?
11680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11682 cat >conftest.
$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 $ac_includes_default
11686 #include <$ac_header>
11688 rm -f conftest.
$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try
='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_header_compiler
=yes
11702 echo "$as_me: failed program was:" >&5
11703 cat conftest.
$ac_ext >&5
11704 ac_header_compiler
=no
11706 rm -f conftest.
$ac_objext conftest.
$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.
$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 #include <$ac_header>
11718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1
>conftest.err
11723 cat conftest.err
>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev
/null
; then
11726 if test -s conftest.err
; then
11727 ac_cpp_err
=$ac_c_preproc_warn_flag
11734 if test -z "$ac_cpp_err"; then
11735 ac_header_preproc
=yes
11737 echo "$as_me: failed program was:" >&5
11738 cat conftest.
$ac_ext >&5
11739 ac_header_preproc
=no
11741 rm -f conftest.err conftest.
$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc in
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11760 echo "$as_me:$LINENO: checking for $ac_header" >&5
11761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 eval "$as_ac_Header=$ac_header_preproc"
11767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h
<<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11783 for ac_header
in nlist.h
11785 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11787 echo "$as_me:$LINENO: checking for $ac_header" >&5
11788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11795 # Is the header compilable?
11796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11798 cat >conftest.
$ac_ext <<_ACEOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11801 $ac_includes_default
11802 #include <$ac_header>
11804 rm -f conftest.
$ac_objext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try
='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler
=yes
11818 echo "$as_me: failed program was:" >&5
11819 cat conftest.
$ac_ext >&5
11820 ac_header_compiler
=no
11822 rm -f conftest.
$ac_objext conftest.
$ac_ext
11823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6
11826 # Is the header present?
11827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11829 cat >conftest.
$ac_ext <<_ACEOF
11830 #line $LINENO "configure"
11831 #include "confdefs.h"
11832 #include <$ac_header>
11834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11835 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1
>conftest.err
11839 cat conftest.err
>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } >/dev
/null
; then
11842 if test -s conftest.err
; then
11843 ac_cpp_err
=$ac_c_preproc_warn_flag
11850 if test -z "$ac_cpp_err"; then
11851 ac_header_preproc
=yes
11853 echo "$as_me: failed program was:" >&5
11854 cat conftest.
$ac_ext >&5
11855 ac_header_preproc
=no
11857 rm -f conftest.err conftest.
$ac_ext
11858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11859 echo "${ECHO_T}$ac_header_preproc" >&6
11861 # So? What about this header?
11862 case $ac_header_compiler:$ac_header_preproc in
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11876 echo "$as_me:$LINENO: checking for $ac_header" >&5
11877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 eval "$as_ac_Header=$ac_header_preproc"
11883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11888 cat >>confdefs.h
<<_ACEOF
11889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11891 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11892 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
11893 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.
$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11904 static struct nlist ac_aggr;
11905 if (ac_aggr.n_un.n_name)
11911 rm -f conftest.
$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913 (eval $ac_compile) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try
='test -s conftest.$ac_objext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 ac_cv_member_struct_nlist_n_un_n_name
=yes
11925 echo "$as_me: failed program was:" >&5
11926 cat conftest.
$ac_ext >&5
11927 cat >conftest.
$ac_ext <<_ACEOF
11928 #line $LINENO "configure"
11929 #include "confdefs.h"
11935 static struct nlist ac_aggr;
11936 if (sizeof ac_aggr.n_un.n_name)
11942 rm -f conftest.
$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try
='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_member_struct_nlist_n_un_n_name
=yes
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.
$ac_ext >&5
11958 ac_cv_member_struct_nlist_n_un_n_name
=no
11960 rm -f conftest.
$ac_objext conftest.
$ac_ext
11962 rm -f conftest.
$ac_objext conftest.
$ac_ext
11964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
11965 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
11966 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11968 cat >>confdefs.h
<<_ACEOF
11969 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11973 cat >>confdefs.h
<<\_ACEOF
11974 #define NLIST_NAME_UNION 1
11988 # Some definitions of getloadavg require that the program be installed setgid.
11989 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11990 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
11991 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 cat >conftest.
$ac_ext <<_ACEOF
11995 #line $LINENO "configure"
11996 #include "confdefs.h"
11997 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11998 #ifdef LDAV_PRIVILEGED
11999 Yowza Am I SETGID yet
12002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12003 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12004 ac_cv_func_getloadavg_setgid
=yes
12006 ac_cv_func_getloadavg_setgid
=no
12011 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12012 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12013 if test $ac_cv_func_getloadavg_setgid = yes; then
12016 cat >>confdefs.h
<<\_ACEOF
12017 #define GETLOADAVG_PRIVILEGED 1
12024 if test $ac_cv_func_getloadavg_setgid = yes; then
12025 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12026 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12027 if test "${ac_cv_group_kmem+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12031 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12032 # If we got an error (system does not support symlinks), try without -L.
12033 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12034 ac_cv_group_kmem
=`echo $ac_ls_output \
12035 | sed -ne 's/[ ][ ]*/ /g;
12036 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12040 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12041 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12042 KMEM_GROUP
=$ac_cv_group_kmem
12044 if test "x$ac_save_LIBS" = x
; then
12045 GETLOADAVG_LIBS
=$LIBS
12047 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12053 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12054 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12055 if test "${ac_cv_sys_largefile_source+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 ac_cv_sys_largefile_source
=no
12060 cat >conftest.
$ac_ext <<_ACEOF
12061 #line $LINENO "configure"
12062 #include "confdefs.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
12086 echo "$as_me: failed program was:" >&5
12087 cat conftest.
$ac_ext >&5
12089 rm -f conftest.
$ac_objext conftest.
$ac_ext
12090 cat >conftest.
$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12093 #define _LARGEFILE_SOURCE 1
12103 rm -f conftest.
$ac_objext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12105 (eval $ac_compile) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 ac_cv_sys_largefile_source
=1; break
12117 echo "$as_me: failed program was:" >&5
12118 cat conftest.
$ac_ext >&5
12120 rm -f conftest.
$ac_objext conftest.
$ac_ext
12124 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12125 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12126 if test "$ac_cv_sys_largefile_source" != no
; then
12128 cat >>confdefs.h
<<_ACEOF
12129 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12135 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12136 # in glibc 2.1.3, but that breaks too many other things.
12137 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12138 echo "$as_me:$LINENO: checking for fseeko" >&5
12139 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12140 if test "${ac_cv_func_fseeko+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 cat >conftest.
$ac_ext <<_ACEOF
12144 #line $LINENO "configure"
12145 #include "confdefs.h"
12150 return fseeko && fseeko (stdin, 0, 0);
12155 rm -f conftest.
$ac_objext conftest
$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try
='test -s conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 ac_cv_func_fseeko
=yes
12169 echo "$as_me: failed program was:" >&5
12170 cat conftest.
$ac_ext >&5
12171 ac_cv_func_fseeko
=no
12173 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12176 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12177 if test $ac_cv_func_fseeko = yes; then
12179 cat >>confdefs.h
<<\_ACEOF
12180 #define HAVE_FSEEKO 1
12188 for ac_func
in grantpt
12190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 echo "$as_me:$LINENO: checking for $ac_func" >&5
12192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12193 if eval "test \"\${$as_ac_var+set}\" = set"; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 cat >conftest.
$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12198 #include "confdefs.h"
12199 /* System header to define __stub macros and hopefully few prototypes,
12200 which can conflict with char $ac_func (); below. */
12201 #include <assert.h>
12202 /* Override any gcc2 internal prototype to avoid an error. */
12206 /* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12214 /* The GNU C library defines this for functions which it implements
12215 to always fail with ENOSYS. Some functions are actually named
12216 something starting with __ and the normal name is an alias. */
12217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12227 rm -f conftest.
$ac_objext conftest
$ac_exeext
12228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12229 (eval $ac_link) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try
='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 eval "$as_ac_var=yes"
12241 echo "$as_me: failed program was:" >&5
12242 cat conftest.
$ac_ext >&5
12243 eval "$as_ac_var=no"
12245 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12249 if test `eval echo '${'$as_ac_var'}'` = yes; then
12250 cat >>confdefs.h
<<_ACEOF
12251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12258 # PTY-related GNU extensions.
12260 for ac_func
in getpt
12262 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12263 echo "$as_me:$LINENO: checking for $ac_func" >&5
12264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12265 if eval "test \"\${$as_ac_var+set}\" = set"; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.
$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 #include "confdefs.h"
12271 /* System header to define __stub macros and hopefully few prototypes,
12272 which can conflict with char $ac_func (); below. */
12273 #include <assert.h>
12274 /* Override any gcc2 internal prototype to avoid an error. */
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12299 rm -f conftest.
$ac_objext conftest
$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try
='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 eval "$as_ac_var=yes"
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.
$ac_ext >&5
12315 eval "$as_ac_var=no"
12317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12321 if test `eval echo '${'$as_ac_var'}'` = yes; then
12322 cat >>confdefs.h
<<_ACEOF
12323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12330 # Check this now, so that we will NOT find the above functions in ncurses.
12331 # That is because we have not set up to link ncurses in lib-src.
12332 # It's better to believe a function is not available
12333 # than to expect to find it in ncurses.
12335 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12336 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12337 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_check_lib_save_LIBS
=$LIBS
12341 LIBS
="-lncurses $LIBS"
12342 cat >conftest.
$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 #include "confdefs.h"
12346 /* Override any gcc2 internal prototype to avoid an error. */
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12361 rm -f conftest.
$ac_objext conftest
$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try
='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_lib_ncurses_tparm
=yes
12375 echo "$as_me: failed program was:" >&5
12376 cat conftest.
$ac_ext >&5
12377 ac_cv_lib_ncurses_tparm
=no
12379 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12380 LIBS
=$ac_check_lib_save_LIBS
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12383 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12384 if test $ac_cv_lib_ncurses_tparm = yes; then
12385 cat >>confdefs.h
<<_ACEOF
12386 #define HAVE_LIBNCURSES 1
12389 LIBS
="-lncurses $LIBS"
12394 # Do we need the Hesiod library to provide the support routines?
12395 if test "$with_hesiod" = yes ; then
12396 # Don't set $LIBS here -- see comments above.
12398 echo "$as_me:$LINENO: checking for res_send" >&5
12399 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12400 if test "${ac_cv_func_res_send+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.
$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char res_send (); below. */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */
12421 /* The GNU C library defines this for functions which it implements
12422 to always fail with ENOSYS. Some functions are actually named
12423 something starting with __ and the normal name is an alias. */
12424 #if defined (__stub_res_send) || defined (__stub___res_send)
12434 rm -f conftest.
$ac_objext conftest
$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } &&
12440 { ac_try
='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_func_res_send
=yes
12448 echo "$as_me: failed program was:" >&5
12449 cat conftest.
$ac_ext >&5
12450 ac_cv_func_res_send
=no
12452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12455 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12456 if test $ac_cv_func_res_send = yes; then
12459 echo "$as_me:$LINENO: checking for __res_send" >&5
12460 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12461 if test "${ac_cv_func___res_send+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 cat >conftest.
$ac_ext <<_ACEOF
12465 #line $LINENO "configure"
12466 #include "confdefs.h"
12467 /* System header to define __stub macros and hopefully few prototypes,
12468 which can conflict with char __res_send (); below. */
12469 #include <assert.h>
12470 /* Override any gcc2 internal prototype to avoid an error. */
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char __res_send ();
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub___res_send) || defined (__stub_____res_send)
12495 rm -f conftest.
$ac_objext conftest
$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try
='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_func___res_send
=yes
12509 echo "$as_me: failed program was:" >&5
12510 cat conftest.
$ac_ext >&5
12511 ac_cv_func___res_send
=no
12513 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12515 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12516 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12517 if test $ac_cv_func___res_send = yes; then
12520 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12521 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12522 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS
=$LIBS
12526 LIBS
="-lresolv $LIBS"
12527 cat >conftest.
$ac_ext <<_ACEOF
12528 #line $LINENO "configure"
12529 #include "confdefs.h"
12531 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12546 rm -f conftest.
$ac_objext conftest
$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try
='test -s conftest$ac_exeext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_lib_resolv_res_send
=yes
12560 echo "$as_me: failed program was:" >&5
12561 cat conftest.
$ac_ext >&5
12562 ac_cv_lib_resolv_res_send
=no
12564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12565 LIBS
=$ac_check_lib_save_LIBS
12567 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12568 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12569 if test $ac_cv_lib_resolv_res_send = yes; then
12572 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12573 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12574 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 ac_check_lib_save_LIBS
=$LIBS
12578 LIBS
="-lresolv $LIBS"
12579 cat >conftest.
$ac_ext <<_ACEOF
12580 #line $LINENO "configure"
12581 #include "confdefs.h"
12583 /* Override any gcc2 internal prototype to avoid an error. */
12587 /* We use char because int might match the return type of a gcc2
12588 builtin and then its argument prototype would still apply. */
12589 char __res_send ();
12598 rm -f conftest.
$ac_objext conftest
$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600 (eval $ac_link) 2>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try
='test -s conftest$ac_exeext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_lib_resolv___res_send
=yes
12612 echo "$as_me: failed program was:" >&5
12613 cat conftest.
$ac_ext >&5
12614 ac_cv_lib_resolv___res_send
=no
12616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12617 LIBS
=$ac_check_lib_save_LIBS
12619 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12620 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12621 if test $ac_cv_lib_resolv___res_send = yes; then
12631 if test "$resolv" = yes ; then
12634 cat >>confdefs.h
<<\_ACEOF
12635 #define HAVE_LIBRESOLV 1
12641 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12642 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12643 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 cat >conftest.
$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12649 /* System header to define __stub macros and hopefully few prototypes,
12650 which can conflict with char hes_getmailhost (); below. */
12651 #include <assert.h>
12652 /* Override any gcc2 internal prototype to avoid an error. */
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658 char hes_getmailhost ();
12664 /* The GNU C library defines this for functions which it implements
12665 to always fail with ENOSYS. Some functions are actually named
12666 something starting with __ and the normal name is an alias. */
12667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
12670 f = hes_getmailhost;
12677 rm -f conftest.
$ac_objext conftest
$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679 (eval $ac_link) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
12683 { ac_try
='test -s conftest$ac_exeext'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; }; then
12689 ac_cv_func_hes_getmailhost
=yes
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.
$ac_ext >&5
12693 ac_cv_func_hes_getmailhost
=no
12695 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
12698 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
12699 if test $ac_cv_func_hes_getmailhost = yes; then
12702 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12703 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
12704 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 ac_check_lib_save_LIBS
=$LIBS
12708 LIBS
="-lhesiod $RESOLVLIB $LIBS"
12709 cat >conftest.
$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 #include "confdefs.h"
12713 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char hes_getmailhost ();
12723 hes_getmailhost ();
12728 rm -f conftest.
$ac_objext conftest
$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try
='test -s conftest$ac_exeext'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; }; then
12740 ac_cv_lib_hesiod_hes_getmailhost
=yes
12742 echo "$as_me: failed program was:" >&5
12743 cat conftest.
$ac_ext >&5
12744 ac_cv_lib_hesiod_hes_getmailhost
=no
12746 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12747 LIBS
=$ac_check_lib_save_LIBS
12749 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12750 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
12751 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12753 cat >>confdefs.h
<<\_ACEOF
12754 #define HAVE_LIBHESIOD 1
12765 # These tell us which Kerberos-related libraries to use.
12766 if test "${with_kerberos+set}" = set; then
12768 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12769 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
12770 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 ac_check_lib_save_LIBS
=$LIBS
12774 LIBS
="-lcom_err $LIBS"
12775 cat >conftest.
$ac_ext <<_ACEOF
12776 #line $LINENO "configure"
12777 #include "confdefs.h"
12779 /* Override any gcc2 internal prototype to avoid an error. */
12783 /* We use char because int might match the return type of a gcc2
12784 builtin and then its argument prototype would still apply. */
12794 rm -f conftest.
$ac_objext conftest
$ac_exeext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try
='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_lib_com_err_com_err
=yes
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.
$ac_ext >&5
12810 ac_cv_lib_com_err_com_err
=no
12812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12813 LIBS
=$ac_check_lib_save_LIBS
12815 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12816 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
12817 if test $ac_cv_lib_com_err_com_err = yes; then
12818 cat >>confdefs.h
<<_ACEOF
12819 #define HAVE_LIBCOM_ERR 1
12822 LIBS
="-lcom_err $LIBS"
12827 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12828 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
12829 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 ac_check_lib_save_LIBS
=$LIBS
12833 LIBS
="-lk5crypto $LIBS"
12834 cat >conftest.
$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12836 #include "confdefs.h"
12838 /* Override any gcc2 internal prototype to avoid an error. */
12842 /* We use char because int might match the return type of a gcc2
12843 builtin and then its argument prototype would still apply. */
12844 char mit_des_cbc_encrypt ();
12848 mit_des_cbc_encrypt ();
12853 rm -f conftest.
$ac_objext conftest
$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855 (eval $ac_link) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try
='test -s conftest$ac_exeext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
12867 echo "$as_me: failed program was:" >&5
12868 cat conftest.
$ac_ext >&5
12869 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
12871 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12872 LIBS
=$ac_check_lib_save_LIBS
12874 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12875 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
12876 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12877 cat >>confdefs.h
<<_ACEOF
12878 #define HAVE_LIBK5CRYPTO 1
12881 LIBS
="-lk5crypto $LIBS"
12886 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12887 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
12888 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 ac_check_lib_save_LIBS
=$LIBS
12892 LIBS
="-lcrypto $LIBS"
12893 cat >conftest.
$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12895 #include "confdefs.h"
12897 /* Override any gcc2 internal prototype to avoid an error. */
12901 /* We use char because int might match the return type of a gcc2
12902 builtin and then its argument prototype would still apply. */
12903 char mit_des_cbc_encrypt ();
12907 mit_des_cbc_encrypt ();
12912 rm -f conftest.
$ac_objext conftest
$ac_exeext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12914 (eval $ac_link) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try
='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.
$ac_ext >&5
12928 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
12930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12931 LIBS
=$ac_check_lib_save_LIBS
12933 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12934 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
12935 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12936 cat >>confdefs.h
<<_ACEOF
12937 #define HAVE_LIBCRYPTO 1
12940 LIBS
="-lcrypto $LIBS"
12945 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12946 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
12947 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 ac_check_lib_save_LIBS
=$LIBS
12951 LIBS
="-lkrb5 $LIBS"
12952 cat >conftest.
$ac_ext <<_ACEOF
12953 #line $LINENO "configure"
12954 #include "confdefs.h"
12956 /* Override any gcc2 internal prototype to avoid an error. */
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char krb5_init_context ();
12966 krb5_init_context ();
12971 rm -f conftest.
$ac_objext conftest
$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try
='test -s conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_lib_krb5_krb5_init_context
=yes
12985 echo "$as_me: failed program was:" >&5
12986 cat conftest.
$ac_ext >&5
12987 ac_cv_lib_krb5_krb5_init_context
=no
12989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12990 LIBS
=$ac_check_lib_save_LIBS
12992 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12993 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
12994 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12995 cat >>confdefs.h
<<_ACEOF
12996 #define HAVE_LIBKRB5 1
12999 LIBS
="-lkrb5 $LIBS"
13003 if test "${with_kerberos5+set}" != set; then
13005 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13006 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13007 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 ac_check_lib_save_LIBS
=$LIBS
13011 LIBS
="-ldes425 $LIBS"
13012 cat >conftest.
$ac_ext <<_ACEOF
13013 #line $LINENO "configure"
13014 #include "confdefs.h"
13016 /* Override any gcc2 internal prototype to avoid an error. */
13020 /* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13022 char des_cbc_encrypt ();
13026 des_cbc_encrypt ();
13031 rm -f conftest.
$ac_objext conftest
$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try
='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_lib_des425_des_cbc_encrypt
=yes
13045 echo "$as_me: failed program was:" >&5
13046 cat conftest.
$ac_ext >&5
13047 ac_cv_lib_des425_des_cbc_encrypt
=no
13049 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13050 LIBS
=$ac_check_lib_save_LIBS
13052 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13053 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13054 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13055 cat >>confdefs.h
<<_ACEOF
13056 #define HAVE_LIBDES425 1
13059 LIBS
="-ldes425 $LIBS"
13063 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13064 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13065 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_check_lib_save_LIBS
=$LIBS
13070 cat >conftest.
$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 #include "confdefs.h"
13074 /* Override any gcc2 internal prototype to avoid an error. */
13078 /* We use char because int might match the return type of a gcc2
13079 builtin and then its argument prototype would still apply. */
13080 char des_cbc_encrypt ();
13084 des_cbc_encrypt ();
13089 rm -f conftest.
$ac_objext conftest
$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091 (eval $ac_link) 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try
='test -s conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_lib_des_des_cbc_encrypt
=yes
13103 echo "$as_me: failed program was:" >&5
13104 cat conftest.
$ac_ext >&5
13105 ac_cv_lib_des_des_cbc_encrypt
=no
13107 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13108 LIBS
=$ac_check_lib_save_LIBS
13110 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13111 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13112 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_LIBDES 1
13124 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13125 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13126 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13129 ac_check_lib_save_LIBS
=$LIBS
13130 LIBS
="-lkrb4 $LIBS"
13131 cat >conftest.
$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 #include "confdefs.h"
13135 /* Override any gcc2 internal prototype to avoid an error. */
13139 /* We use char because int might match the return type of a gcc2
13140 builtin and then its argument prototype would still apply. */
13141 char krb_get_cred ();
13150 rm -f conftest.
$ac_objext conftest
$ac_exeext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13152 (eval $ac_link) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try
='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_krb4_krb_get_cred
=yes
13164 echo "$as_me: failed program was:" >&5
13165 cat conftest.
$ac_ext >&5
13166 ac_cv_lib_krb4_krb_get_cred
=no
13168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13169 LIBS
=$ac_check_lib_save_LIBS
13171 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13172 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13173 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13174 cat >>confdefs.h
<<_ACEOF
13175 #define HAVE_LIBKRB4 1
13178 LIBS
="-lkrb4 $LIBS"
13182 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13183 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13184 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_check_lib_save_LIBS
=$LIBS
13189 cat >conftest.
$ac_ext <<_ACEOF
13190 #line $LINENO "configure"
13191 #include "confdefs.h"
13193 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char krb_get_cred ();
13208 rm -f conftest.
$ac_objext conftest
$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try
='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_krb_krb_get_cred
=yes
13222 echo "$as_me: failed program was:" >&5
13223 cat conftest.
$ac_ext >&5
13224 ac_cv_lib_krb_krb_get_cred
=no
13226 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13227 LIBS
=$ac_check_lib_save_LIBS
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13230 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13231 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13232 cat >>confdefs.h
<<_ACEOF
13233 #define HAVE_LIBKRB 1
13244 if test "${with_kerberos5+set}" = set; then
13246 for ac_header
in krb5.h
13248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250 echo "$as_me:$LINENO: checking for $ac_header" >&5
13251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13258 # Is the header compilable?
13259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13261 cat >conftest.
$ac_ext <<_ACEOF
13262 #line $LINENO "configure"
13263 #include "confdefs.h"
13264 $ac_includes_default
13265 #include <$ac_header>
13267 rm -f conftest.
$ac_objext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13269 (eval $ac_compile) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try
='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler
=yes
13281 echo "$as_me: failed program was:" >&5
13282 cat conftest.
$ac_ext >&5
13283 ac_header_compiler
=no
13285 rm -f conftest.
$ac_objext conftest.
$ac_ext
13286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13287 echo "${ECHO_T}$ac_header_compiler" >&6
13289 # Is the header present?
13290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13292 cat >conftest.
$ac_ext <<_ACEOF
13293 #line $LINENO "configure"
13294 #include "confdefs.h"
13295 #include <$ac_header>
13297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13300 grep -v '^ *+' conftest.er1
>conftest.err
13302 cat conftest.err
>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev
/null
; then
13305 if test -s conftest.err
; then
13306 ac_cpp_err
=$ac_c_preproc_warn_flag
13313 if test -z "$ac_cpp_err"; then
13314 ac_header_preproc
=yes
13316 echo "$as_me: failed program was:" >&5
13317 cat conftest.
$ac_ext >&5
13318 ac_header_preproc
=no
13320 rm -f conftest.err conftest.
$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc in
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 eval "$as_ac_Header=$ac_header_preproc"
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13351 cat >>confdefs.h
<<_ACEOF
13352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13361 for ac_header
in des.h
13363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo "$as_me:$LINENO: checking for $ac_header" >&5
13366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13373 # Is the header compilable?
13374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13376 cat >conftest.
$ac_ext <<_ACEOF
13377 #line $LINENO "configure"
13378 #include "confdefs.h"
13379 $ac_includes_default
13380 #include <$ac_header>
13382 rm -f conftest.
$ac_objext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try
='test -s conftest.$ac_objext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_header_compiler
=yes
13396 echo "$as_me: failed program was:" >&5
13397 cat conftest.
$ac_ext >&5
13398 ac_header_compiler
=no
13400 rm -f conftest.
$ac_objext conftest.
$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402 echo "${ECHO_T}$ac_header_compiler" >&6
13404 # Is the header present?
13405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13407 cat >conftest.
$ac_ext <<_ACEOF
13408 #line $LINENO "configure"
13409 #include "confdefs.h"
13410 #include <$ac_header>
13412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13415 grep -v '^ *+' conftest.er1
>conftest.err
13417 cat conftest.err
>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } >/dev
/null
; then
13420 if test -s conftest.err
; then
13421 ac_cpp_err
=$ac_c_preproc_warn_flag
13428 if test -z "$ac_cpp_err"; then
13429 ac_header_preproc
=yes
13431 echo "$as_me: failed program was:" >&5
13432 cat conftest.
$ac_ext >&5
13433 ac_header_preproc
=no
13435 rm -f conftest.err conftest.
$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13437 echo "${ECHO_T}$ac_header_preproc" >&6
13439 # So? What about this header?
13440 case $ac_header_compiler:$ac_header_preproc in
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13454 echo "$as_me:$LINENO: checking for $ac_header" >&5
13455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 eval "$as_ac_Header=$ac_header_preproc"
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h
<<_ACEOF
13467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13472 for ac_header
in kerberosIV
/des.h
13474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13484 # Is the header compilable?
13485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13487 cat >conftest.
$ac_ext <<_ACEOF
13488 #line $LINENO "configure"
13489 #include "confdefs.h"
13490 $ac_includes_default
13491 #include <$ac_header>
13493 rm -f conftest.
$ac_objext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try
='test -s conftest.$ac_objext'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13505 ac_header_compiler
=yes
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.
$ac_ext >&5
13509 ac_header_compiler
=no
13511 rm -f conftest.
$ac_objext conftest.
$ac_ext
13512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 echo "${ECHO_T}$ac_header_compiler" >&6
13515 # Is the header present?
13516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13518 cat >conftest.
$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13520 #include "confdefs.h"
13521 #include <$ac_header>
13523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13526 grep -v '^ *+' conftest.er1
>conftest.err
13528 cat conftest.err
>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev
/null
; then
13531 if test -s conftest.err
; then
13532 ac_cpp_err
=$ac_c_preproc_warn_flag
13539 if test -z "$ac_cpp_err"; then
13540 ac_header_preproc
=yes
13542 echo "$as_me: failed program was:" >&5
13543 cat conftest.
$ac_ext >&5
13544 ac_header_preproc
=no
13546 rm -f conftest.err conftest.
$ac_ext
13547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13548 echo "${ECHO_T}$ac_header_preproc" >&6
13550 # So? What about this header?
13551 case $ac_header_compiler:$ac_header_preproc in
13553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13565 echo "$as_me:$LINENO: checking for $ac_header" >&5
13566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 eval "$as_ac_Header=$ac_header_preproc"
13572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13577 cat >>confdefs.h
<<_ACEOF
13578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13583 for ac_header
in kerberos
/des.h
13585 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13587 echo "$as_me:$LINENO: checking for $ac_header" >&5
13588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13595 # Is the header compilable?
13596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13598 cat >conftest.
$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 $ac_includes_default
13602 #include <$ac_header>
13604 rm -f conftest.
$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606 (eval $ac_compile) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } &&
13610 { ac_try
='test -s conftest.$ac_objext'
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_header_compiler
=yes
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.
$ac_ext >&5
13620 ac_header_compiler
=no
13622 rm -f conftest.
$ac_objext conftest.
$ac_ext
13623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13624 echo "${ECHO_T}$ac_header_compiler" >&6
13626 # Is the header present?
13627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13629 cat >conftest.
$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13631 #include "confdefs.h"
13632 #include <$ac_header>
13634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13635 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13637 grep -v '^ *+' conftest.er1
>conftest.err
13639 cat conftest.err
>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } >/dev
/null
; then
13642 if test -s conftest.err
; then
13643 ac_cpp_err
=$ac_c_preproc_warn_flag
13650 if test -z "$ac_cpp_err"; then
13651 ac_header_preproc
=yes
13653 echo "$as_me: failed program was:" >&5
13654 cat conftest.
$ac_ext >&5
13655 ac_header_preproc
=no
13657 rm -f conftest.err conftest.
$ac_ext
13658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13659 echo "${ECHO_T}$ac_header_preproc" >&6
13661 # So? What about this header?
13662 case $ac_header_compiler:$ac_header_preproc in
13664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13676 echo "$as_me:$LINENO: checking for $ac_header" >&5
13677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
13681 eval "$as_ac_Header=$ac_header_preproc"
13683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13688 cat >>confdefs.h
<<_ACEOF
13689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13705 for ac_header
in krb.h
13707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13709 echo "$as_me:$LINENO: checking for $ac_header" >&5
13710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13717 # Is the header compilable?
13718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13720 cat >conftest.
$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13722 #include "confdefs.h"
13723 $ac_includes_default
13724 #include <$ac_header>
13726 rm -f conftest.
$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728 (eval $ac_compile) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try
='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_header_compiler
=yes
13740 echo "$as_me: failed program was:" >&5
13741 cat conftest.
$ac_ext >&5
13742 ac_header_compiler
=no
13744 rm -f conftest.
$ac_objext conftest.
$ac_ext
13745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13746 echo "${ECHO_T}$ac_header_compiler" >&6
13748 # Is the header present?
13749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13751 cat >conftest.
$ac_ext <<_ACEOF
13752 #line $LINENO "configure"
13753 #include "confdefs.h"
13754 #include <$ac_header>
13756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13759 grep -v '^ *+' conftest.er1
>conftest.err
13761 cat conftest.err
>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } >/dev
/null
; then
13764 if test -s conftest.err
; then
13765 ac_cpp_err
=$ac_c_preproc_warn_flag
13772 if test -z "$ac_cpp_err"; then
13773 ac_header_preproc
=yes
13775 echo "$as_me: failed program was:" >&5
13776 cat conftest.
$ac_ext >&5
13777 ac_header_preproc
=no
13779 rm -f conftest.err conftest.
$ac_ext
13780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13781 echo "${ECHO_T}$ac_header_preproc" >&6
13783 # So? What about this header?
13784 case $ac_header_compiler:$ac_header_preproc in
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13798 echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 eval "$as_ac_Header=$ac_header_preproc"
13805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13810 cat >>confdefs.h
<<_ACEOF
13811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13816 for ac_header
in kerberosIV
/krb.h
13818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13820 echo "$as_me:$LINENO: checking for $ac_header" >&5
13821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13828 # Is the header compilable?
13829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13831 cat >conftest.
$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13833 #include "confdefs.h"
13834 $ac_includes_default
13835 #include <$ac_header>
13837 rm -f conftest.
$ac_objext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try
='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_header_compiler
=yes
13851 echo "$as_me: failed program was:" >&5
13852 cat conftest.
$ac_ext >&5
13853 ac_header_compiler
=no
13855 rm -f conftest.
$ac_objext conftest.
$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13857 echo "${ECHO_T}$ac_header_compiler" >&6
13859 # Is the header present?
13860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13862 cat >conftest.
$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 #include "confdefs.h"
13865 #include <$ac_header>
13867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13870 grep -v '^ *+' conftest.er1
>conftest.err
13872 cat conftest.err
>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev
/null
; then
13875 if test -s conftest.err
; then
13876 ac_cpp_err
=$ac_c_preproc_warn_flag
13883 if test -z "$ac_cpp_err"; then
13884 ac_header_preproc
=yes
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.
$ac_ext >&5
13888 ac_header_preproc
=no
13890 rm -f conftest.err conftest.
$ac_ext
13891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13892 echo "${ECHO_T}$ac_header_preproc" >&6
13894 # So? What about this header?
13895 case $ac_header_compiler:$ac_header_preproc in
13897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13909 echo "$as_me:$LINENO: checking for $ac_header" >&5
13910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 eval "$as_ac_Header=$ac_header_preproc"
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13921 cat >>confdefs.h
<<_ACEOF
13922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13927 for ac_header
in kerberos
/krb.h
13929 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931 echo "$as_me:$LINENO: checking for $ac_header" >&5
13932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13939 # Is the header compilable?
13940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13942 cat >conftest.
$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13944 #include "confdefs.h"
13945 $ac_includes_default
13946 #include <$ac_header>
13948 rm -f conftest.
$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try
='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler
=yes
13962 echo "$as_me: failed program was:" >&5
13963 cat conftest.
$ac_ext >&5
13964 ac_header_compiler
=no
13966 rm -f conftest.
$ac_objext conftest.
$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13968 echo "${ECHO_T}$ac_header_compiler" >&6
13970 # Is the header present?
13971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13973 cat >conftest.
$ac_ext <<_ACEOF
13974 #line $LINENO "configure"
13975 #include "confdefs.h"
13976 #include <$ac_header>
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13981 grep -v '^ *+' conftest.er1
>conftest.err
13983 cat conftest.err
>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev
/null
; then
13986 if test -s conftest.err
; then
13987 ac_cpp_err
=$ac_c_preproc_warn_flag
13994 if test -z "$ac_cpp_err"; then
13995 ac_header_preproc
=yes
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.
$ac_ext >&5
13999 ac_header_preproc
=no
14001 rm -f conftest.err conftest.
$ac_ext
14002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 echo "${ECHO_T}$ac_header_preproc" >&6
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc in
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 eval "$as_ac_Header=$ac_header_preproc"
14027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14032 cat >>confdefs.h
<<_ACEOF
14033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14050 for ac_header
in com_err.h
14052 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14054 echo "$as_me:$LINENO: checking for $ac_header" >&5
14055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14062 # Is the header compilable?
14063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14065 cat >conftest.
$ac_ext <<_ACEOF
14066 #line $LINENO "configure"
14067 #include "confdefs.h"
14068 $ac_includes_default
14069 #include <$ac_header>
14071 rm -f conftest.
$ac_objext
14072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14073 (eval $ac_compile) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try
='test -s conftest.$ac_objext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 ac_header_compiler
=yes
14085 echo "$as_me: failed program was:" >&5
14086 cat conftest.
$ac_ext >&5
14087 ac_header_compiler
=no
14089 rm -f conftest.
$ac_objext conftest.
$ac_ext
14090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14091 echo "${ECHO_T}$ac_header_compiler" >&6
14093 # Is the header present?
14094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14096 cat >conftest.
$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 #include <$ac_header>
14101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14104 grep -v '^ *+' conftest.er1
>conftest.err
14106 cat conftest.err
>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } >/dev
/null
; then
14109 if test -s conftest.err
; then
14110 ac_cpp_err
=$ac_c_preproc_warn_flag
14117 if test -z "$ac_cpp_err"; then
14118 ac_header_preproc
=yes
14120 echo "$as_me: failed program was:" >&5
14121 cat conftest.
$ac_ext >&5
14122 ac_header_preproc
=no
14124 rm -f conftest.err conftest.
$ac_ext
14125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14126 echo "${ECHO_T}$ac_header_preproc" >&6
14128 # So? What about this header?
14129 case $ac_header_compiler:$ac_header_preproc in
14131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14143 echo "$as_me:$LINENO: checking for $ac_header" >&5
14144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 eval "$as_ac_Header=$ac_header_preproc"
14150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14155 cat >>confdefs.h
<<_ACEOF
14156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14165 # Solaris requires -lintl if you want strerror (which calls dgettext)
14166 # to return localized messages.
14168 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14169 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14170 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 ac_check_lib_save_LIBS
=$LIBS
14174 LIBS
="-lintl $LIBS"
14175 cat >conftest.
$ac_ext <<_ACEOF
14176 #line $LINENO "configure"
14177 #include "confdefs.h"
14179 /* Override any gcc2 internal prototype to avoid an error. */
14183 /* We use char because int might match the return type of a gcc2
14184 builtin and then its argument prototype would still apply. */
14194 rm -f conftest.
$ac_objext conftest
$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try
='test -s conftest$ac_exeext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_lib_intl_dgettext
=yes
14208 echo "$as_me: failed program was:" >&5
14209 cat conftest.
$ac_ext >&5
14210 ac_cv_lib_intl_dgettext
=no
14212 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14213 LIBS
=$ac_check_lib_save_LIBS
14215 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14216 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14217 if test $ac_cv_lib_intl_dgettext = yes; then
14218 cat >>confdefs.h
<<_ACEOF
14219 #define HAVE_LIBINTL 1
14222 LIBS
="-lintl $LIBS"
14227 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14228 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14229 if test "${emacs_cv_localtime_cache+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 if test x
$ac_cv_func_tzset = xyes
; then
14233 if test "$cross_compiling" = yes; then
14234 # If we have tzset, assume the worst when cross-compiling.
14235 emacs_cv_localtime_cache
=yes
14237 cat >conftest.
$ac_ext <<_ACEOF
14238 #line $LINENO "configure"
14239 #include "confdefs.h"
14241 extern char **environ;
14245 for (to = from = environ; (*to = *from); from++)
14246 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14249 char TZ_GMT0[] = "TZ=GMT0";
14250 char TZ_PST8[] = "TZ=PST8";
14253 time_t now = time ((time_t *) 0);
14254 int hour_GMT0, hour_unset;
14255 if (putenv (TZ_GMT0) != 0)
14257 hour_GMT0 = localtime (&now)->tm_hour;
14259 hour_unset = localtime (&now)->tm_hour;
14260 if (putenv (TZ_PST8) != 0)
14262 if (localtime (&now)->tm_hour == hour_GMT0)
14265 if (localtime (&now)->tm_hour != hour_unset)
14270 rm -f conftest
$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 emacs_cv_localtime_cache
=no
14283 echo "$as_me: program exited with status $ac_status" >&5
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.
$ac_ext >&5
14286 ( exit $ac_status )
14287 emacs_cv_localtime_cache
=yes
14289 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14292 # If we lack tzset, report that localtime does not cache TZ,
14293 # since we can't invalidate the cache if we don't have tzset.
14294 emacs_cv_localtime_cache
=no
14297 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14298 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14299 if test $emacs_cv_localtime_cache = yes; then
14301 cat >>confdefs.h
<<\_ACEOF
14302 #define LOCALTIME_CACHE 1
14307 if test "x$HAVE_TIMEVAL" = xyes
; then
14309 for ac_func
in gettimeofday
14311 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14312 echo "$as_me:$LINENO: checking for $ac_func" >&5
14313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14314 if eval "test \"\${$as_ac_var+set}\" = set"; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >conftest.
$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14319 #include "confdefs.h"
14320 /* System header to define __stub macros and hopefully few prototypes,
14321 which can conflict with char $ac_func (); below. */
14322 #include <assert.h>
14323 /* Override any gcc2 internal prototype to avoid an error. */
14327 /* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14335 /* The GNU C library defines this for functions which it implements
14336 to always fail with ENOSYS. Some functions are actually named
14337 something starting with __ and the normal name is an alias. */
14338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14348 rm -f conftest.
$ac_objext conftest
$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try
='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 eval "$as_ac_var=yes"
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.
$ac_ext >&5
14364 eval "$as_ac_var=no"
14366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14370 if test `eval echo '${'$as_ac_var'}'` = yes; then
14371 cat >>confdefs.h
<<_ACEOF
14372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14378 if test $ac_cv_func_gettimeofday = yes; then
14379 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14380 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14381 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 cat >conftest.
$ac_ext <<_ACEOF
14385 #line $LINENO "configure"
14386 #include "confdefs.h"
14388 #ifdef TIME_WITH_SYS_TIME
14389 #include <sys/time.h>
14392 #ifdef HAVE_SYS_TIME_H
14393 #include <sys/time.h>
14401 struct timeval time;
14402 gettimeofday (&time, 0);
14407 rm -f conftest.
$ac_objext
14408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14409 (eval $ac_compile) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try
='test -s conftest.$ac_objext'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 emacs_cv_gettimeofday_two_arguments
=yes
14421 echo "$as_me: failed program was:" >&5
14422 cat conftest.
$ac_ext >&5
14423 emacs_cv_gettimeofday_two_arguments
=no
14425 rm -f conftest.
$ac_objext conftest.
$ac_ext
14427 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14428 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14429 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14431 cat >>confdefs.h
<<\_ACEOF
14432 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14439 if test "$ac_cv_func_gettimeofday" = yes; then
14440 echo "$as_me:$LINENO: checking for struct timezone" >&5
14441 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14442 if test "${emacs_cv_struct_timezone+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 cat >conftest.
$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14448 #include <sys/time.h>
14452 struct timezone tz;
14457 rm -f conftest.
$ac_objext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try
='test -s conftest.$ac_objext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 if test "$cross_compiling" = yes; then
14470 emacs_cv_struct_timezone
=yes
14472 cat >conftest.
$ac_ext <<_ACEOF
14473 #line $LINENO "configure"
14474 #include "confdefs.h"
14476 #ifdef TIME_WITH_SYS_TIME
14477 #include <sys/time.h>
14480 #ifdef HAVE_SYS_TIME_H
14481 #include <sys/time.h>
14487 struct timeval time;
14488 struct timezone dummy;
14489 exit (gettimeofday (&time, &dummy));
14492 rm -f conftest
$ac_exeext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14494 (eval $ac_link) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 emacs_cv_struct_timezone
=yes
14505 echo "$as_me: program exited with status $ac_status" >&5
14506 echo "$as_me: failed program was:" >&5
14507 cat conftest.
$ac_ext >&5
14508 ( exit $ac_status )
14509 emacs_cv_struct_timezone
=no
14511 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.
$ac_ext >&5
14516 emacs_cv_struct_timezone
=no
14518 rm -f conftest.
$ac_objext conftest.
$ac_ext
14520 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14521 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14525 echo "$as_me:$LINENO: checking for socket" >&5
14526 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14527 if test "${ac_cv_func_socket+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.
$ac_ext <<_ACEOF
14531 #line $LINENO "configure"
14532 #include "confdefs.h"
14533 /* System header to define __stub macros and hopefully few prototypes,
14534 which can conflict with char socket (); below. */
14535 #include <assert.h>
14536 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14548 /* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551 #if defined (__stub_socket) || defined (__stub___socket)
14561 rm -f conftest.
$ac_objext conftest
$ac_exeext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
14567 { ac_try
='test -s conftest$ac_exeext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14573 ac_cv_func_socket
=yes
14575 echo "$as_me: failed program was:" >&5
14576 cat conftest.
$ac_ext >&5
14577 ac_cv_func_socket
=no
14579 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14581 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14582 echo "${ECHO_T}$ac_cv_func_socket" >&6
14583 if test $ac_cv_func_socket = yes; then
14589 if test $ok_so_far = yes; then
14590 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14591 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14592 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14593 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14597 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14599 # Is the header compilable?
14600 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
14601 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
14602 cat >conftest.
$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 #include "confdefs.h"
14605 $ac_includes_default
14606 #include <netinet/in.h>
14608 rm -f conftest.
$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try
='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_header_compiler
=yes
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.
$ac_ext >&5
14624 ac_header_compiler
=no
14626 rm -f conftest.
$ac_objext conftest.
$ac_ext
14627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14628 echo "${ECHO_T}$ac_header_compiler" >&6
14630 # Is the header present?
14631 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
14632 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
14633 cat >conftest.
$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 #include <netinet/in.h>
14638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14639 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14641 grep -v '^ *+' conftest.er1
>conftest.err
14643 cat conftest.err
>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } >/dev
/null
; then
14646 if test -s conftest.err
; then
14647 ac_cpp_err
=$ac_c_preproc_warn_flag
14654 if test -z "$ac_cpp_err"; then
14655 ac_header_preproc
=yes
14657 echo "$as_me: failed program was:" >&5
14658 cat conftest.
$ac_ext >&5
14659 ac_header_preproc
=no
14661 rm -f conftest.err conftest.
$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc in
14668 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14671 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14673 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
14678 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
14680 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
14681 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
14682 if test "${ac_cv_header_netinet_in_h+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 ac_cv_header_netinet_in_h
=$ac_header_preproc
14687 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
14688 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
14691 if test $ac_cv_header_netinet_in_h = yes; then
14699 if test $ok_so_far = yes; then
14700 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14701 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14702 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14703 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14707 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14709 # Is the header compilable?
14710 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
14711 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
14712 cat >conftest.
$ac_ext <<_ACEOF
14713 #line $LINENO "configure"
14714 #include "confdefs.h"
14715 $ac_includes_default
14716 #include <arpa/inet.h>
14718 rm -f conftest.
$ac_objext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try
='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 ac_header_compiler
=yes
14732 echo "$as_me: failed program was:" >&5
14733 cat conftest.
$ac_ext >&5
14734 ac_header_compiler
=no
14736 rm -f conftest.
$ac_objext conftest.
$ac_ext
14737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14738 echo "${ECHO_T}$ac_header_compiler" >&6
14740 # Is the header present?
14741 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
14742 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
14743 cat >conftest.
$ac_ext <<_ACEOF
14744 #line $LINENO "configure"
14745 #include "confdefs.h"
14746 #include <arpa/inet.h>
14748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14751 grep -v '^ *+' conftest.er1
>conftest.err
14753 cat conftest.err
>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } >/dev
/null
; then
14756 if test -s conftest.err
; then
14757 ac_cpp_err
=$ac_c_preproc_warn_flag
14764 if test -z "$ac_cpp_err"; then
14765 ac_header_preproc
=yes
14767 echo "$as_me: failed program was:" >&5
14768 cat conftest.
$ac_ext >&5
14769 ac_header_preproc
=no
14771 rm -f conftest.err conftest.
$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773 echo "${ECHO_T}$ac_header_preproc" >&6
14775 # So? What about this header?
14776 case $ac_header_compiler:$ac_header_preproc in
14778 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14783 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
14784 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
14786 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
14788 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
14790 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
14791 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
14792 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 ac_cv_header_arpa_inet_h
=$ac_header_preproc
14797 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
14798 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
14801 if test $ac_cv_header_arpa_inet_h = yes; then
14809 if test $ok_so_far = yes; then
14811 cat >>confdefs.h
<<\_ACEOF
14812 #define HAVE_INET_SOCKETS 1
14817 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
14819 cat >>confdefs.h
<<\_ACEOF
14820 #define HAVE_AIX_SMT_EXP 1
14825 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
14826 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
14827 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
14828 echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6
14831 cat >>confdefs.h
<<\_ACEOF
14832 #define HAVE_DEV_PTMX 1
14836 echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6
14840 echo "$as_me:$LINENO: checking for pid_t" >&5
14841 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14842 if test "${ac_cv_type_pid_t+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 cat >conftest.
$ac_ext <<_ACEOF
14846 #line $LINENO "configure"
14847 #include "confdefs.h"
14848 $ac_includes_default
14854 if (sizeof (pid_t))
14860 rm -f conftest.
$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try
='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_type_pid_t
=yes
14874 echo "$as_me: failed program was:" >&5
14875 cat conftest.
$ac_ext >&5
14876 ac_cv_type_pid_t
=no
14878 rm -f conftest.
$ac_objext conftest.
$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14881 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14882 if test $ac_cv_type_pid_t = yes; then
14886 cat >>confdefs.h
<<_ACEOF
14894 for ac_header
in unistd.h vfork.h
14896 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14898 echo "$as_me:$LINENO: checking for $ac_header" >&5
14899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14906 # Is the header compilable?
14907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14909 cat >conftest.
$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 #include "confdefs.h"
14912 $ac_includes_default
14913 #include <$ac_header>
14915 rm -f conftest.
$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try
='test -s conftest.$ac_objext'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_header_compiler
=yes
14929 echo "$as_me: failed program was:" >&5
14930 cat conftest.
$ac_ext >&5
14931 ac_header_compiler
=no
14933 rm -f conftest.
$ac_objext conftest.
$ac_ext
14934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14935 echo "${ECHO_T}$ac_header_compiler" >&6
14937 # Is the header present?
14938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14940 cat >conftest.
$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 #include "confdefs.h"
14943 #include <$ac_header>
14945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14948 grep -v '^ *+' conftest.er1
>conftest.err
14950 cat conftest.err
>&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } >/dev
/null
; then
14953 if test -s conftest.err
; then
14954 ac_cpp_err
=$ac_c_preproc_warn_flag
14961 if test -z "$ac_cpp_err"; then
14962 ac_header_preproc
=yes
14964 echo "$as_me: failed program was:" >&5
14965 cat conftest.
$ac_ext >&5
14966 ac_header_preproc
=no
14968 rm -f conftest.err conftest.
$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14970 echo "${ECHO_T}$ac_header_preproc" >&6
14972 # So? What about this header?
14973 case $ac_header_compiler:$ac_header_preproc in
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14987 echo "$as_me:$LINENO: checking for $ac_header" >&5
14988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 eval "$as_ac_Header=$ac_header_preproc"
14994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14999 cat >>confdefs.h
<<_ACEOF
15000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15009 for ac_func
in fork vfork
15011 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15012 echo "$as_me:$LINENO: checking for $ac_func" >&5
15013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15014 if eval "test \"\${$as_ac_var+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 cat >conftest.
$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15019 #include "confdefs.h"
15020 /* System header to define __stub macros and hopefully few prototypes,
15021 which can conflict with char $ac_func (); below. */
15022 #include <assert.h>
15023 /* Override any gcc2 internal prototype to avoid an error. */
15027 /* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15048 rm -f conftest.
$ac_objext conftest
$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try
='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 eval "$as_ac_var=yes"
15062 echo "$as_me: failed program was:" >&5
15063 cat conftest.
$ac_ext >&5
15064 eval "$as_ac_var=no"
15066 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h
<<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15078 if test "x$ac_cv_func_fork" = xyes
; then
15079 echo "$as_me:$LINENO: checking for working fork" >&5
15080 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15081 if test "${ac_cv_func_fork_works+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 if test "$cross_compiling" = yes; then
15085 ac_cv_func_fork_works
=cross
15087 cat >conftest.
$ac_ext <<_ACEOF
15088 /* By Ruediger Kuhlmann. */
15089 #include <sys/types.h>
15091 # include <unistd.h>
15093 /* Some systems only have a dummy stub for fork() */
15101 rm -f conftest
$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_cv_func_fork_works
=yes
15114 echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 cat conftest.
$ac_ext >&5
15117 ( exit $ac_status )
15118 ac_cv_func_fork_works
=no
15120 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15123 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15124 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15127 ac_cv_func_fork_works
=$ac_cv_func_fork
15129 if test "x$ac_cv_func_fork_works" = xcross
; then
15131 *-*-amigaos* |
*-*-msdosdjgpp*)
15132 # Override, as these systems have only a dummy fork() stub
15133 ac_cv_func_fork_works
=no
15136 ac_cv_func_fork_works
=yes
15139 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15140 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15142 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15143 if test "x$ac_cv_func_vfork" = xyes
; then
15144 echo "$as_me:$LINENO: checking for working vfork" >&5
15145 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15146 if test "${ac_cv_func_vfork_works+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 if test "$cross_compiling" = yes; then
15150 ac_cv_func_vfork_works
=cross
15152 cat >conftest.
$ac_ext <<_ACEOF
15153 #line $LINENO "configure"
15154 #include "confdefs.h"
15155 /* Thanks to Paul Eggert for this test. */
15157 #include <sys/types.h>
15158 #include <sys/stat.h>
15160 # include <unistd.h>
15163 # include <vfork.h>
15165 /* On some sparc systems, changes by the child to local and incoming
15166 argument registers are propagated back to the parent. The compiler
15167 is told about this with #include <vfork.h>, but some compilers
15168 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15169 static variable whose address is put into a register that is
15170 clobbered by the vfork. */
15173 sparc_address_test (int arg)
15175 sparc_address_test (arg) int arg;
15178 static pid_t child;
15196 pid_t parent = getpid ();
15199 sparc_address_test ();
15204 /* Here is another test for sparc vfork register problems. This
15205 test uses lots of local variables, at least as many local
15206 variables as main has allocated so far including compiler
15207 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15208 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15209 reuse the register of parent for one of the local variables,
15210 since it will think that parent can't possibly be used any more
15211 in this routine. Assigning to the local variable will thus
15212 munge parent in the parent process. */
15214 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15215 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15216 /* Convince the compiler that p..p7 are live; otherwise, it might
15217 use the same hardware register for all 8 local variables. */
15218 if (p != p1 || p != p2 || p != p3 || p != p4
15219 || p != p5 || p != p6 || p != p7)
15222 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15223 from child file descriptors. If the child closes a descriptor
15224 before it execs or exits, this munges the parent's descriptor
15225 as well. Test for this by closing stdout in the child. */
15226 _exit(close(fileno(stdout)) != 0);
15231 while (wait(&status) != child)
15234 /* Was there some problem with vforking? */
15237 /* Did the child fail? (This shouldn't happen.) */
15240 /* Did the vfork/compiler bug occur? */
15241 || parent != getpid()
15243 /* Did the file descriptor bug occur? */
15244 || fstat(fileno(stdout), &st) != 0
15249 rm -f conftest
$ac_exeext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15251 (eval $ac_link) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15260 ac_cv_func_vfork_works
=yes
15262 echo "$as_me: program exited with status $ac_status" >&5
15263 echo "$as_me: failed program was:" >&5
15264 cat conftest.
$ac_ext >&5
15265 ( exit $ac_status )
15266 ac_cv_func_vfork_works
=no
15268 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15271 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15272 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15275 if test "x$ac_cv_func_fork_works" = xcross
; then
15276 ac_cv_func_vfork_works
=ac_cv_func_vfork
15277 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15278 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15281 if test "x$ac_cv_func_vfork_works" = xyes
; then
15283 cat >>confdefs.h
<<\_ACEOF
15284 #define HAVE_WORKING_VFORK 1
15289 cat >>confdefs.h
<<\_ACEOF
15294 if test "x$ac_cv_func_fork_works" = xyes
; then
15296 cat >>confdefs.h
<<\_ACEOF
15297 #define HAVE_WORKING_FORK 1
15303 echo "$as_me:$LINENO: checking for size_t" >&5
15304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15305 if test "${ac_cv_type_size_t+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.
$ac_ext <<_ACEOF
15309 #line $LINENO "configure"
15310 #include "confdefs.h"
15311 $ac_includes_default
15317 if (sizeof (size_t))
15323 rm -f conftest.
$ac_objext
15324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15325 (eval $ac_compile) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try
='test -s conftest.$ac_objext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_type_size_t
=yes
15337 echo "$as_me: failed program was:" >&5
15338 cat conftest.
$ac_ext >&5
15339 ac_cv_type_size_t
=no
15341 rm -f conftest.
$ac_objext conftest.
$ac_ext
15343 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15344 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15345 if test $ac_cv_type_size_t = yes; then
15347 cat >>confdefs.h
<<_ACEOF
15348 #define HAVE_SIZE_T 1
15355 # Set up the CFLAGS for real compilation, so we can substitute it.
15356 CFLAGS
="$REAL_CFLAGS"
15357 CPPFLAGS
="$REAL_CPPFLAGS"
15359 #### Find out which version of Emacs this is.
15360 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15361 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15362 if test x
"${version}" = x
; then
15363 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15364 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15365 { (exit 1); exit 1; }; }
15368 ### Specify what sort of things we'll be editing into Makefile and config.h.
15369 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15404 cat >>confdefs.h
<<_ACEOF
15405 #define EMACS_CONFIGURATION "${canonical}"
15409 cat >>confdefs.h
<<_ACEOF
15410 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15414 cat >>confdefs.h
<<_ACEOF
15415 #define config_machfile "${machfile}"
15419 cat >>confdefs.h
<<_ACEOF
15420 #define config_opsysfile "${opsysfile}"
15424 cat >>confdefs.h
<<_ACEOF
15425 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15429 cat >>confdefs.h
<<_ACEOF
15430 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15434 cat >>confdefs.h
<<_ACEOF
15435 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15439 cat >>confdefs.h
<<_ACEOF
15440 #define UNEXEC_SRC ${UNEXEC_SRC}
15444 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15446 cat >>confdefs.h
<<\_ACEOF
15447 #define HAVE_X_WINDOWS 1
15451 if test "${USE_X_TOOLKIT}" != "none" ; then
15453 cat >>confdefs.h
<<\_ACEOF
15454 #define USE_X_TOOLKIT 1
15458 if test "${HAVE_X11}" = "yes" ; then
15460 cat >>confdefs.h
<<\_ACEOF
15465 if test "${HAVE_XFREE386}" = "yes" ; then
15467 cat >>confdefs.h
<<\_ACEOF
15468 #define HAVE_XFREE386 1
15472 if test "${HAVE_MENUS}" = "yes" ; then
15474 cat >>confdefs.h
<<\_ACEOF
15475 #define HAVE_MENUS 1
15479 if test "${GNU_MALLOC}" = "yes" ; then
15481 cat >>confdefs.h
<<\_ACEOF
15482 #define GNU_MALLOC 1
15486 if test "${REL_ALLOC}" = "yes" ; then
15488 cat >>confdefs.h
<<\_ACEOF
15489 #define REL_ALLOC 1
15495 for ac_header
in nlist.h
15497 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15499 echo "$as_me:$LINENO: checking for $ac_header" >&5
15500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15507 # Is the header compilable?
15508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15510 cat >conftest.
$ac_ext <<_ACEOF
15511 #line $LINENO "configure"
15512 #include "confdefs.h"
15513 $ac_includes_default
15514 #include <$ac_header>
15516 rm -f conftest.
$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518 (eval $ac_compile) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
15522 { ac_try
='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler
=yes
15530 echo "$as_me: failed program was:" >&5
15531 cat conftest.
$ac_ext >&5
15532 ac_header_compiler
=no
15534 rm -f conftest.
$ac_objext conftest.
$ac_ext
15535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6
15538 # Is the header present?
15539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15541 cat >conftest.
$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 #include <$ac_header>
15546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15549 grep -v '^ *+' conftest.er1
>conftest.err
15551 cat conftest.err
>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } >/dev
/null
; then
15554 if test -s conftest.err
; then
15555 ac_cpp_err
=$ac_c_preproc_warn_flag
15562 if test -z "$ac_cpp_err"; then
15563 ac_header_preproc
=yes
15565 echo "$as_me: failed program was:" >&5
15566 cat conftest.
$ac_ext >&5
15567 ac_header_preproc
=no
15569 rm -f conftest.err conftest.
$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 echo "${ECHO_T}$ac_header_preproc" >&6
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc in
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=$ac_header_preproc"
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h
<<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15604 cat >>confdefs.h
<<\_ACEOF
15605 #define NLIST_STRUCT 1
15617 #### Report on what we decided to do.
15619 Configured for \`${canonical}'.
15621 Where should the build process find the source code? ${srcdir}
15622 What operating system and machine description files should Emacs use?
15623 \`${opsysfile}' and \`${machfile}'
15624 What compiler should emacs be built with? ${CC} ${CFLAGS}
15625 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
15626 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
15627 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
15628 What window system should Emacs use? ${window_system}
15629 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
15631 if test -n "${x_includes}"; then
15632 echo " Where do we find X Windows header files? ${x_includes}"
15634 echo " Where do we find X Windows header files? Standard dirs"
15636 if test -n "${x_libraries}"; then
15637 echo " Where do we find X Windows libraries? ${x_libraries}"
15639 echo " Where do we find X Windows libraries? Standard dirs"
15642 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
15643 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
15644 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
15645 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
15646 echo " Does Emacs use -lungif? ${HAVE_GIF}"
15647 echo " Does Emacs use -lpng? ${HAVE_PNG}"
15648 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
15651 # Remove any trailing slashes in these variables.
15652 test "${prefix}" != NONE
&&
15653 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
15654 test "${exec_prefix}" != NONE
&&
15655 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
15657 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
15658 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
15659 ## from Makefile.c can correctly provide the arg `-traditional' to the
15662 cat >conftest.
$ac_ext <<_ACEOF
15663 #line $LINENO "configure"
15664 #include "confdefs.h"
15667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15668 $EGREP "yes..yes" >/dev
/null
2>&1; then
15669 CPP_NEED_TRADITIONAL
=no
15671 CPP_NEED_TRADITIONAL
=yes
15676 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"
15677 ac_config_commands
="$ac_config_commands default"
15678 cat >confcache
<<\_ACEOF
15679 # This file is a shell script that caches the results of configure
15680 # tests run on this system so they can be shared between configure
15681 # scripts and configure runs, see configure's option --config-cache.
15682 # It is not useful on other systems. If it contains results you don't
15683 # want to keep, you may remove or edit it.
15685 # config.status only pays attention to the cache file if you give it
15686 # the --recheck option to rerun configure.
15688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15690 # following values.
15694 # The following way of writing the cache mishandles newlines in values,
15695 # but we know of no workaround that is simple, portable, and efficient.
15696 # So, don't put newlines in cache variables' values.
15697 # Ultrix sh set writes to stderr and can't be redirected directly,
15698 # and sets the high bit in the cache file unless we assign to the vars.
15701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15703 # `set' does not quote correctly, so add quotes (double-quote
15704 # substitution turns \\\\ into \\, and sed turns \\ into \).
15707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15710 # `set' quotes correctly as required by POSIX, so do not add quotes.
15712 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15721 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15723 if cmp -s $cache_file confcache
; then :; else
15724 if test -w $cache_file; then
15725 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15726 cat confcache
>$cache_file
15728 echo "not updating unwritable cache $cache_file"
15733 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15734 # Let make expand exec_prefix.
15735 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15739 # trailing colons and then remove the whole line if VPATH becomes empty
15740 # (actually we leave an empty line to preserve line numbers).
15741 if test "x$srcdir" = x.
; then
15742 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15743 s/:*\$(srcdir):*/:/;
15744 s/:*\${srcdir}:*/:/;
15746 s/^\([^=]*=[ ]*\):*/\1/;
15752 DEFS
=-DHAVE_CONFIG_H
15756 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15757 # 1. Remove the extension, and $U if already installed.
15758 ac_i
=`echo "$ac_i" |
15759 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15761 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15762 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15764 LIBOBJS
=$ac_libobjs
15766 LTLIBOBJS
=$ac_ltlibobjs
15770 : ${CONFIG_STATUS=./config.status}
15771 ac_clean_files_save
=$ac_clean_files
15772 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15773 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15774 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15775 cat >$CONFIG_STATUS <<_ACEOF
15777 # Generated by $as_me.
15778 # Run this file to recreate the current configuration.
15779 # Compiler output produced by configure, useful for debugging
15780 # configure, is in config.log if it exists.
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15786 cat >>$CONFIG_STATUS <<\_ACEOF
15787 ## --------------------- ##
15788 ## M4sh Initialization. ##
15789 ## --------------------- ##
15791 # Be Bourne compatible
15792 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15796 # is contrary to our usage. Disable this feature.
15797 alias -g '${1+"$@"}'='"$@"'
15798 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15802 # Support unset when possible.
15803 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
15810 # Work around bugs in pre-3.0 UWIN ksh.
15811 $as_unset ENV MAIL MAILPATH
15817 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
15819 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15820 eval $as_var=C
; export $as_var
15826 # Required to use basename.
15827 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15833 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15834 as_basename
=basename
15840 # Name of the executable.
15841 as_me
=`$as_basename "$0" ||
15842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15843 X"$0" : 'X\(//\)$' \| \
15844 X"$0" : 'X\(/\)$' \| \
15845 . : '\(.\)' 2>/dev/null ||
15847 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15848 /^X\/\(\/\/\)$/{ s//\1/; q; }
15849 /^X\/\(\/\).*/{ s//\1/; q; }
15853 # PATH needs CR, and LINENO needs CR and PATH.
15854 # Avoid depending upon Character Ranges.
15855 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15856 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15857 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15858 as_cr_digits
='0123456789'
15859 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15861 # The user is always right.
15862 if test "${PATH_SEPARATOR+set}" != set; then
15863 echo "#! /bin/sh" >conftest.sh
15864 echo "exit 0" >>conftest.sh
15865 chmod +x conftest.sh
15866 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
15875 as_lineno_1
=$LINENO
15876 as_lineno_2
=$LINENO
15877 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15878 test "x$as_lineno_1" != "x$as_lineno_2" &&
15879 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15880 # Find who we are. Look in the path if we contain no path at all
15883 *[\\/]* ) as_myself
=$0 ;;
15884 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15885 for as_dir
in $PATH
15888 test -z "$as_dir" && as_dir
=.
15889 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15894 # We did not find ourselves, most probably we were run as `sh COMMAND'
15895 # in which case we are not to be found in the path.
15896 if test "x$as_myself" = x
; then
15899 if test ! -f "$as_myself"; then
15900 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15901 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15902 { (exit 1); exit 1; }; }
15904 case $CONFIG_SHELL in
15906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15907 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15910 test -z "$as_dir" && as_dir
=.
15911 for as_base
in sh bash ksh sh5
; do
15914 if ("$as_dir/$as_base" -c '
15915 as_lineno_1=$LINENO
15916 as_lineno_2=$LINENO
15917 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15918 test "x$as_lineno_1" != "x$as_lineno_2" &&
15919 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15920 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15921 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15922 CONFIG_SHELL
=$as_dir/$as_base
15923 export CONFIG_SHELL
15924 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15932 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15933 # uniformly replaced by the line number. The first 'sed' inserts a
15934 # line-number line before each line; the second 'sed' does the real
15935 # work. The second script uses 'N' to pair each line-number line
15936 # with the numbered line, and appends trailing '-' during
15937 # substitution so that $LINENO is not a special case at line end.
15938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15939 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15940 sed '=' <$as_myself |
15945 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15948 s,^['$as_cr_digits']*\n,,
15949 ' >$as_me.lineno
&&
15950 chmod +x
$as_me.lineno ||
15951 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15952 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15953 { (exit 1); exit 1; }; }
15955 # Don't try to exec as it changes $[0], causing all sort of problems
15956 # (the dirname of $[0] is not the place where we might find the
15957 # original and so on. Autoconf is especially sensible to this).
15959 # Exit status is that of the last command.
15964 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15965 *c
*,-n*) ECHO_N
= ECHO_C
='
15967 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15968 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15971 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15977 rm -f conf$$ conf$$.exe conf$$.
file
15979 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15980 # We could just check for DJGPP; but this test a) works b) is more generic
15981 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15982 if test -f conf$$.exe
; then
15983 # Don't use ln at all; we don't have any links
15988 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15993 rm -f conf$$ conf$$.exe conf$$.
file
15995 if mkdir
-p .
2>/dev
/null
; then
16001 as_executable_p
="test -f"
16003 # Sed expression to map a string onto a valid CPP name.
16004 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16006 # Sed expression to map a string onto a valid variable name.
16007 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16011 # We need space, tab and new line, in precisely that order.
16021 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16022 # report actual input values of CONFIG_FILES etc. instead of their
16023 # values after options handling. Logging --version etc. is OK.
16027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16028 ## Running $as_me. ##
16033 This file was extended by $as_me, which was
16034 generated by GNU Autoconf 2.54. Invocation command line was
16036 CONFIG_FILES = $CONFIG_FILES
16037 CONFIG_HEADERS = $CONFIG_HEADERS
16038 CONFIG_LINKS = $CONFIG_LINKS
16039 CONFIG_COMMANDS = $CONFIG_COMMANDS
16043 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16047 # Files that config.status was made for.
16048 if test -n "$ac_config_files"; then
16049 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16052 if test -n "$ac_config_headers"; then
16053 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16056 if test -n "$ac_config_links"; then
16057 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16060 if test -n "$ac_config_commands"; then
16061 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16064 cat >>$CONFIG_STATUS <<\_ACEOF
16067 \`$as_me' instantiates files from templates according to the
16068 current configuration.
16070 Usage: $0 [OPTIONS] [FILE]...
16072 -h, --help print this help, then exit
16073 -V, --version print version number, then exit
16074 -d, --debug don't remove temporary files
16075 --recheck update $as_me by reconfiguring in the same conditions
16076 --file=FILE[:TEMPLATE]
16077 instantiate the configuration file FILE
16078 --header=FILE[:TEMPLATE]
16079 instantiate the configuration header FILE
16081 Configuration files:
16084 Configuration headers:
16087 Configuration commands:
16090 Report bugs to <bug-autoconf@gnu.org>."
16093 cat >>$CONFIG_STATUS <<_ACEOF
16096 configured by $0, generated by GNU Autoconf 2.54,
16097 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16099 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16100 Free Software Foundation, Inc.
16101 This config.status script is free software; the Free Software Foundation
16102 gives unlimited permission to copy, distribute and modify it."
16107 cat >>$CONFIG_STATUS <<\_ACEOF
16108 # If no file are specified by the user, then we need to provide default
16109 # value. By we need to know if files were specified by the user.
16115 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16116 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16124 *) # This is not an option, so the user has probably given explicit
16127 ac_need_defaults
=false
;;
16131 # Handling of the options.
16133 cat >>$CONFIG_STATUS <<_ACEOF
16134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16135 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16136 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16138 cat >>$CONFIG_STATUS <<\_ACEOF
16139 --version |
--vers* |
-V )
16140 echo "$ac_cs_version"; exit 0 ;;
16142 # Conflict between --help and --header
16143 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16144 Try \`$0 --help' for more information." >&5
16145 echo "$as_me: error: ambiguous option: $1
16146 Try \`$0 --help' for more information." >&2;}
16147 { (exit 1); exit 1; }; };;
16148 --help |
--hel |
-h )
16149 echo "$ac_cs_usage"; exit 0 ;;
16150 --debug |
--d* |
-d )
16152 --file |
--fil |
--fi |
--f )
16154 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16155 ac_need_defaults
=false
;;
16156 --header |
--heade |
--head |
--hea )
16158 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16159 ac_need_defaults
=false
;;
16161 # This is an error.
16162 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16163 Try \`$0 --help' for more information." >&5
16164 echo "$as_me: error: unrecognized option: $1
16165 Try \`$0 --help' for more information." >&2;}
16166 { (exit 1); exit 1; }; } ;;
16168 *) ac_config_targets
="$ac_config_targets $1" ;;
16176 cat >>$CONFIG_STATUS <<_ACEOF
16178 # INIT-COMMANDS section.
16181 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16187 cat >>$CONFIG_STATUS <<\_ACEOF
16188 for ac_config_target
in $ac_config_targets
16190 case "$ac_config_target" in
16191 # Handling of arguments.
16192 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16193 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16194 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16195 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16196 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16197 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16198 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16199 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16200 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16201 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16202 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16203 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16204 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16205 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16206 { (exit 1); exit 1; }; };;
16210 # If the user did not use the arguments to specify the items to instantiate,
16211 # then the envvar interface is used. Set only those that are not.
16212 # We use the long form for the default assignment because of an extremely
16213 # bizarre bug on SunOS 4.1.3.
16214 if $ac_need_defaults; then
16215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16217 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16220 # Create a temporary directory, and hook for its removal unless debugging.
16223 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16224 trap '{ (exit 1); exit 1; }' 1 2 13 15
16227 # Create a (secure) tmp directory for tmp files.
16230 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16231 test -n "$tmp" && test -d "$tmp"
16234 tmp
=$TMPDIR/cs$$
-$RANDOM
16235 (umask 077 && mkdir
$tmp)
16238 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16239 { (exit 1); exit 1; }
16244 cat >>$CONFIG_STATUS <<_ACEOF
16247 # CONFIG_FILES section.
16250 # No need to generate the scripts if there are no CONFIG_FILES.
16251 # This happens for instance when ./config.status config.h
16252 if test -n "\$CONFIG_FILES"; then
16253 # Protect against being on the right side of a sed subst in config.status.
16254 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16255 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16256 s,@SHELL@,$SHELL,;t t
16257 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16258 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16259 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16260 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16261 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16262 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16263 s,@exec_prefix@,$exec_prefix,;t t
16264 s,@prefix@,$prefix,;t t
16265 s,@program_transform_name@,$program_transform_name,;t t
16266 s,@bindir@,$bindir,;t t
16267 s,@sbindir@,$sbindir,;t t
16268 s,@libexecdir@,$libexecdir,;t t
16269 s,@datadir@,$datadir,;t t
16270 s,@sysconfdir@,$sysconfdir,;t t
16271 s,@sharedstatedir@,$sharedstatedir,;t t
16272 s,@localstatedir@,$localstatedir,;t t
16273 s,@libdir@,$libdir,;t t
16274 s,@includedir@,$includedir,;t t
16275 s,@oldincludedir@,$oldincludedir,;t t
16276 s,@infodir@,$infodir,;t t
16277 s,@mandir@,$mandir,;t t
16278 s,@build_alias@,$build_alias,;t t
16279 s,@host_alias@,$host_alias,;t t
16280 s,@target_alias@,$target_alias,;t t
16281 s,@DEFS@,$DEFS,;t t
16282 s,@ECHO_C@,$ECHO_C,;t t
16283 s,@ECHO_N@,$ECHO_N,;t t
16284 s,@ECHO_T@,$ECHO_T,;t t
16285 s,@LIBS@,$LIBS,;t t
16286 s,@build@,$build,;t t
16287 s,@build_cpu@,$build_cpu,;t t
16288 s,@build_vendor@,$build_vendor,;t t
16289 s,@build_os@,$build_os,;t t
16290 s,@host@,$host,;t t
16291 s,@host_cpu@,$host_cpu,;t t
16292 s,@host_vendor@,$host_vendor,;t t
16293 s,@host_os@,$host_os,;t t
16295 s,@CFLAGS@,$CFLAGS,;t t
16296 s,@LDFLAGS@,$LDFLAGS,;t t
16297 s,@CPPFLAGS@,$CPPFLAGS,;t t
16298 s,@ac_ct_CC@,$ac_ct_CC,;t t
16299 s,@EXEEXT@,$EXEEXT,;t t
16300 s,@OBJEXT@,$OBJEXT,;t t
16301 s,@LN_S@,$LN_S,;t t
16303 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16304 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16305 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16306 s,@RANLIB@,$RANLIB,;t t
16307 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16308 s,@EGREP@,$EGREP,;t t
16309 s,@LIBSOUND@,$LIBSOUND,;t t
16310 s,@SET_MAKE@,$SET_MAKE,;t t
16311 s,@ALLOCA@,$ALLOCA,;t t
16312 s,@liblockfile@,$liblockfile,;t t
16313 s,@LIBOBJS@,$LIBOBJS,;t t
16314 s,@NEED_SETGID@,$NEED_SETGID,;t t
16315 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16316 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16317 s,@version@,$version,;t t
16318 s,@configuration@,$configuration,;t t
16319 s,@canonical@,$canonical,;t t
16320 s,@srcdir@,$srcdir,;t t
16321 s,@lispdir@,$lispdir,;t t
16322 s,@locallisppath@,$locallisppath,;t t
16323 s,@lisppath@,$lisppath,;t t
16324 s,@x_default_search_path@,$x_default_search_path,;t t
16325 s,@etcdir@,$etcdir,;t t
16326 s,@archlibdir@,$archlibdir,;t t
16327 s,@docdir@,$docdir,;t t
16328 s,@bitmapdir@,$bitmapdir,;t t
16329 s,@gamedir@,$gamedir,;t t
16330 s,@gameuser@,$gameuser,;t t
16331 s,@c_switch_system@,$c_switch_system,;t t
16332 s,@c_switch_machine@,$c_switch_machine,;t t
16333 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16334 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16335 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16336 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16337 s,@machfile@,$machfile,;t t
16338 s,@opsysfile@,$opsysfile,;t t
16339 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16344 cat >>$CONFIG_STATUS <<\_ACEOF
16345 # Split the substitutions into bite-sized pieces for seds with
16346 # small command number limits, like on Digital OSF/1 and HP-UX.
16347 ac_max_sed_lines
=48
16348 ac_sed_frag
=1 # Number of current file.
16349 ac_beg
=1 # First line for current file.
16350 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16353 while $ac_more_lines; do
16354 if test $ac_beg -gt 1; then
16355 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16357 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16359 if test ! -s $tmp/subs.frag
; then
16360 ac_more_lines
=false
16362 # The purpose of the label and of the branching condition is to
16363 # speed up the sed processing (if there are no `@' at all, there
16364 # is no need to browse any of the substitutions).
16365 # These are the two extra sed commands mentioned above.
16367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16368 if test -z "$ac_sed_cmds"; then
16369 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16371 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16373 ac_sed_frag
=`expr $ac_sed_frag + 1`
16375 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16378 if test -z "$ac_sed_cmds"; then
16381 fi # test -n "$CONFIG_FILES"
16384 cat >>$CONFIG_STATUS <<\_ACEOF
16385 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16388 - |
*:- |
*:-:* ) # input from stdin
16390 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16391 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16392 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16393 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16394 * ) ac_file_in
=$ac_file.
in ;;
16397 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16398 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400 X"$ac_file" : 'X\(//\)[^/]' \| \
16401 X"$ac_file" : 'X\(//\)$' \| \
16402 X"$ac_file" : 'X\(/\)' \| \
16403 . : '\(.\)' 2>/dev/null ||
16405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16407 /^X\(\/\/\)$/{ s//\1/; q; }
16408 /^X\(\/\).*/{ s//\1/; q; }
16410 { if $as_mkdir_p; then
16415 while test ! -d "$as_dir"; do
16416 as_dirs
="$as_dir $as_dirs"
16417 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$as_dir" : 'X\(//\)[^/]' \| \
16420 X"$as_dir" : 'X\(//\)$' \| \
16421 X"$as_dir" : 'X\(/\)' \| \
16422 . : '\(.\)' 2>/dev/null ||
16424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16425 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16426 /^X\(\/\/\)$/{ s//\1/; q; }
16427 /^X\(\/\).*/{ s//\1/; q; }
16430 test ! -n "$as_dirs" || mkdir
$as_dirs
16431 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16432 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16433 { (exit 1); exit 1; }; }; }
16437 if test "$ac_dir" != .
; then
16438 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16439 # A "../" for each directory in $ac_dir_suffix.
16440 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16442 ac_dir_suffix
= ac_top_builddir
=
16446 .
) # No --srcdir option. We are building in place.
16448 if test -z "$ac_top_builddir"; then
16451 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16453 [\\/]* | ?
:[\\/]* ) # Absolute path.
16454 ac_srcdir
=$srcdir$ac_dir_suffix;
16455 ac_top_srcdir
=$srcdir ;;
16456 *) # Relative path.
16457 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16458 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16460 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16462 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16463 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16464 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16465 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16469 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16470 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16473 if test x
"$ac_file" != x-
; then
16474 { echo "$as_me:$LINENO: creating $ac_file" >&5
16475 echo "$as_me: creating $ac_file" >&6;}
16478 # Let's still pretend it is `configure' which instantiates (i.e., don't
16479 # use $as_me), people would be surprised to read:
16480 # /* config.h. Generated by config.status. */
16481 if test x
"$ac_file" = x-
; then
16484 configure_input
="$ac_file. "
16486 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16487 sed 's,.*/,,'` by configure."
16489 # First look for the input files in the build tree, otherwise in the
16491 ac_file_inputs
=`IFS=:
16492 for f in $ac_file_in; do
16494 -) echo $tmp/stdin ;;
16496 # Absolute (can't be DOS-style, as IFS=:)
16497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16498 echo "$as_me: error: cannot find input file: $f" >&2;}
16499 { (exit 1); exit 1; }; }
16502 if test -f "$f"; then
16505 elif test -f "$srcdir/$f"; then
16510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16511 echo "$as_me: error: cannot find input file: $f" >&2;}
16512 { (exit 1); exit 1; }; }
16515 done` ||
{ (exit 1); exit 1; }
16517 cat >>$CONFIG_STATUS <<_ACEOF
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16523 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16524 s
,@configure_input@
,$configure_input,;t t
16525 s
,@srcdir@
,$ac_srcdir,;t t
16526 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16527 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16528 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16529 s
,@builddir@
,$ac_builddir,;t t
16530 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16531 s
,@top_builddir@
,$ac_top_builddir,;t t
16532 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16533 s
,@INSTALL@
,$ac_INSTALL,;t t
16534 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16536 if test x"$ac_file" != x-; then
16537 mv $tmp/out $ac_file
16545 cat >>$CONFIG_STATUS <<\_ACEOF
16548 # CONFIG_HEADER section.
16551 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16552 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16554 # ac_d sets the value in "#define NAME VALUE" lines.
16555 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16556 ac_dB
='[ ].*$,\1#\2'
16559 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16560 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16561 ac_uB
='$,\1#\2define\3'
16565 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16568 - |
*:- |
*:-:* ) # input from stdin
16570 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16571 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16572 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16573 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16574 * ) ac_file_in
=$ac_file.
in ;;
16577 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16578 echo "$as_me: creating $ac_file" >&6;}
16580 # First look for the input files in the build tree, otherwise in the
16582 ac_file_inputs
=`IFS=:
16583 for f in $ac_file_in; do
16585 -) echo $tmp/stdin ;;
16587 # Absolute (can't be DOS-style, as IFS=:)
16588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16589 echo "$as_me: error: cannot find input file: $f" >&2;}
16590 { (exit 1); exit 1; }; }
16593 if test -f "$f"; then
16596 elif test -f "$srcdir/$f"; then
16601 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16602 echo "$as_me: error: cannot find input file: $f" >&2;}
16603 { (exit 1); exit 1; }; }
16606 done` ||
{ (exit 1); exit 1; }
16607 # Remove the trailing spaces.
16608 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16613 # `conftest.undefs', that substitutes the proper values into
16614 # config.h.in to produce config.h. The first handles `#define'
16615 # templates, and the second `#undef' templates.
16616 # And first: Protect against being on the right side of a sed subst in
16617 # config.status. Protect against being in an unquoted here document
16618 # in config.status.
16619 rm -f conftest.defines conftest.undefs
16620 # Using a here document instead of a string reduces the quoting nightmare.
16621 # Putting comments in sed scripts is not portable.
16623 # `end' is used to avoid that the second main sed command (meant for
16624 # 0-ary CPP macros) applies to n-ary macro definitions.
16625 # See the Autoconf documentation for `clear'.
16626 cat >confdef2sed.
sed <<\_ACEOF
16631 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16633 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16636 # If some macros were called several times there might be several times
16637 # the same #defines, which is useless. Nevertheless, we may not want to
16638 # sort them, since we want the *last* AC-DEFINE to be honored.
16639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16641 rm -f confdef2sed.sed
16643 # This sed command replaces #undef with comments. This is necessary, for
16644 # example, in the case of _POSIX_SOURCE, which is predefined and required
16645 # on some systems where configure will not decide to define it.
16646 cat >>conftest.undefs <<\_ACEOF
16647 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16650 # Break up conftest.defines because some shells have a limit on the size
16651 # of here documents, and old seds have small limits too (100 cmds).
16652 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16653 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16654 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16655 echo ' :' >>$CONFIG_STATUS
16656 rm -f conftest.tail
16657 while grep . conftest.defines >/dev/null
16659 # Write a limited-size here document to $tmp/defines.sed.
16660 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16661 # Speed up: don't consider the non `#define' lines.
16662 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16663 # Work around the forget-to-reset-the-flag bug.
16664 echo 't clr' >>$CONFIG_STATUS
16665 echo ': clr' >>$CONFIG_STATUS
16666 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16668 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16670 mv $tmp/out $tmp/in
16672 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16673 rm -f conftest.defines
16674 mv conftest.
tail conftest.defines
16676 rm -f conftest.defines
16677 echo ' fi # grep' >>$CONFIG_STATUS
16678 echo >>$CONFIG_STATUS
16680 # Break up conftest.undefs because some shells have a limit on the size
16681 # of here documents, and old seds have small limits too (100 cmds).
16682 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16683 rm -f conftest.
tail
16684 while grep . conftest.undefs
>/dev
/null
16686 # Write a limited-size here document to $tmp/undefs.sed.
16687 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16688 # Speed up: don't consider the non
`#undef'
16689 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16690 # Work around the forget-to-reset-the-flag bug.
16691 echo 't clr' >>$CONFIG_STATUS
16692 echo ': clr' >>$CONFIG_STATUS
16693 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16695 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16697 mv $tmp/out $tmp/in
16699 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16700 rm -f conftest.undefs
16701 mv conftest.tail conftest.undefs
16703 rm -f conftest.undefs
16705 cat >>$CONFIG_STATUS <<\_ACEOF
16706 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16707 # use $as_me), people would be surprised to read:
16708 # /* config.h. Generated by config.status. */
16709 if test x
"$ac_file" = x-
; then
16710 echo "/* Generated by configure. */" >$tmp/config.h
16712 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16714 cat $tmp/in >>$tmp/config.h
16716 if test x
"$ac_file" != x-
; then
16717 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
16718 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16719 echo "$as_me: $ac_file is unchanged" >&6;}
16721 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16723 X"$ac_file" : 'X\(//\)[^/]' \| \
16724 X"$ac_file" : 'X\(//\)$' \| \
16725 X"$ac_file" : 'X\(/\)' \| \
16726 . : '\(.\)' 2>/dev/null ||
16728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16730 /^X\(\/\/\)$/{ s//\1/; q; }
16731 /^X\(\/\).*/{ s//\1/; q; }
16733 { if $as_mkdir_p; then
16738 while test ! -d "$as_dir"; do
16739 as_dirs
="$as_dir $as_dirs"
16740 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16742 X"$as_dir" : 'X\(//\)[^/]' \| \
16743 X"$as_dir" : 'X\(//\)$' \| \
16744 X"$as_dir" : 'X\(/\)' \| \
16745 . : '\(.\)' 2>/dev/null ||
16747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16749 /^X\(\/\/\)$/{ s//\1/; q; }
16750 /^X\(\/\).*/{ s//\1/; q; }
16753 test ! -n "$as_dirs" || mkdir
$as_dirs
16754 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16756 { (exit 1); exit 1; }; }; }
16759 mv $tmp/config.h
$ac_file
16763 rm -f $tmp/config.h
16767 cat >>$CONFIG_STATUS <<\_ACEOF
16770 # CONFIG_COMMANDS section.
16772 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16773 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16774 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16775 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$ac_dest" : 'X\(//\)[^/]' \| \
16778 X"$ac_dest" : 'X\(//\)$' \| \
16779 X"$ac_dest" : 'X\(/\)' \| \
16780 . : '\(.\)' 2>/dev/null ||
16782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16784 /^X\(\/\/\)$/{ s//\1/; q; }
16785 /^X\(\/\).*/{ s//\1/; q; }
16789 if test "$ac_dir" != .
; then
16790 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16791 # A "../" for each directory in $ac_dir_suffix.
16792 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16794 ac_dir_suffix
= ac_top_builddir
=
16798 .
) # No --srcdir option. We are building in place.
16800 if test -z "$ac_top_builddir"; then
16803 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16805 [\\/]* | ?
:[\\/]* ) # Absolute path.
16806 ac_srcdir
=$srcdir$ac_dir_suffix;
16807 ac_top_srcdir
=$srcdir ;;
16808 *) # Relative path.
16809 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16810 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16812 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16814 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16815 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16816 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16817 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16820 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16821 echo "$as_me: executing $ac_dest commands" >&6;}
16825 ### Make the necessary directories, if they don't exist.
16826 for dir
in etc lisp
; do
16827 test -d ${dir} || mkdir
${dir}
16830 # Build src/Makefile from ${srcdir}/src/Makefile.c
16831 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
16832 # This must be done after src/config.h is built, since we rely on that file.
16834 # Now get this: Some word that is part of the ${srcdir} directory name
16835 # or the ${configuration} value might, just might, happen to be an
16836 # identifier like `sun4' or `i386' or something, and be predefined by
16837 # the C preprocessor to some helpful value like 1, or maybe the empty
16838 # string. Needless to say consequent macro substitutions are less
16839 # than conducive to the makefile finding the correct directory.
16840 undefs
="`echo $top_srcdir $configuration $canonical |
16841 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
16842 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
16845 echo creating src
/epaths.h
16846 ${MAKE-make} epaths-force
16848 # As of 2000-11-19, newest development versions of GNU cpp preprocess
16849 # `..' to `. .' unless invoked with -traditional
16851 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
16852 CPPFLAGS
="$CPPFLAGS -traditional"
16855 echo creating lib-src
/Makefile
16857 rm -f junk.c junk1.c junk2.c
16858 sed -e '/start of cpp stuff/q' \
16859 < Makefile.c
> junk1.c
16860 sed -e '1,/start of cpp stuff/d'\
16861 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16862 < Makefile.c
> junk.c
16863 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
16864 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16865 cat junk1.c junk2.c
> Makefile.new
16866 rm -f junk.c junk1.c junk2.c
16867 chmod 444 Makefile.new
16868 mv -f Makefile.new Makefile
16871 echo creating src
/Makefile
16873 rm -f junk.c junk1.c junk2.c
16874 sed -e '/start of cpp stuff/q' \
16875 < Makefile.c
> junk1.c
16876 sed -e '1,/start of cpp stuff/d'\
16877 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
16878 < Makefile.c
> junk.c
16879 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
16880 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
16881 cat junk1.c junk2.c
> Makefile.new
16882 rm -f junk.c junk1.c junk2.c
16883 chmod 444 Makefile.new
16884 mv -f Makefile.new Makefile
16887 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
16888 echo creating src
/.gdbinit
16889 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
16892 # This is how we know whether to re-run configure in certain cases.
16893 touch src
/config.stamp
16900 cat >>$CONFIG_STATUS <<\_ACEOF
16902 { (exit 0); exit 0; }
16904 chmod +x
$CONFIG_STATUS
16905 ac_clean_files
=$ac_clean_files_save
16908 # configure is writing to config.log, and then calls config.status.
16909 # config.status does its own redirection, appending to config.log.
16910 # Unfortunately, on DOS this fails, as config.log is still kept open
16911 # by configure, so config.status won't be able to write to it; its
16912 # output is simply discarded. So we exec the FD to /dev/null,
16913 # effectively closing config.log, so it can be properly (re)opened and
16914 # appended to by config.status. When coming back to configure, we
16915 # need to make the FD available again.
16916 if test "$no_create" != yes; then
16919 $SHELL $CONFIG_STATUS || ac_cs_success
=false
16921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16922 # would make configure fail if this is the last instruction.
16923 $ac_cs_success ||
{ (exit 1); exit 1; }