2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-largefile omit support
for large files
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --with-game-dir use a shared game directory
if possible
685 --with-game-user use specified user
for game directory
686 --without-gcc don
't use GCC to compile Emacs if GCC is found
687 --without-pop don't support POP
mail retrieval with movemail
688 --with-kerberos support Kerberos-authenticated POP
689 --with-kerberos5 support Kerberos version
5 authenticated POP
690 --with-hesiod support Hesiod to get the POP server
host
691 --without-sound don
't compile with sound support
692 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
693 --with-xpm use -lXpm for displaying XPM images
694 --with-jpeg use -ljpeg for displaying JPEG images
695 --with-tiff use -ltiff for displaying TIFF images
696 --with-gif use -lungif for displaying GIF images
697 --with-png use -lpng for displaying PNG images
698 --without-toolkit-scroll-bars
699 don't use Motif or Xaw3d scroll bars
700 --without-xim don
't use X11 XIM
701 --without-carbon don't use Carbon GUI on Mac OS X
702 --with-x use the X Window System
704 Some influential environment variables
:
705 CC C compiler
command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
708 nonstandard directory
<lib dir
>
709 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
710 headers
in a nonstandard directory
<include dir
>
713 Use these variables to override the choices made by
`configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
783 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
784 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
785 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
786 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
787 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
789 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
790 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
792 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
793 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
794 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
795 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
796 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
797 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
798 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
831 # Get rid of the leading space.
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
838 # Save into config.log some information that might help in debugging.
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
844 # The following way of writing the cache mishandles newlines in values,
847 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
920 # Check that the precious variables saved in the cache have kept the same
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
935 { echo "$as_me:935: error: \`$ac_var' was not
set in the previous run
" >&5
936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
943 { echo "$as_me:943: former value
: $ac_old_val" >&5
944 echo "$as_me: former value
: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value
: $ac_new_val" >&5
946 echo "$as_me: current value
: $ac_new_val" >&2;}
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error
: changes
in the environment can compromise the build
" >&5
965 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
966 { { echo "$as_me:966: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1000 test "$program_prefix" != NONE &&
1001 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1002 # Use a double $ so make ignores it.
1003 test "$program_suffix" != NONE &&
1004 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1005 # Double any \ or $. echo might interpret backslashes.
1006 # By default was `s
,x
,x
', remove it if useless.
1007 cat <<\_ACEOF >conftest.sed
1008 s/[\\$]/&&/g;s/;s,x,x,$//
1010 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1013 lispdir='${datadir}/emacs
/${version}/lisp
'
1014 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1015 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1016 lisppath='${locallisppath}:${lispdir}'
1017 etcdir='${datadir}/emacs
/${version}/etc
'
1018 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1019 docdir='${datadir}/emacs
/${version}/etc
'
1022 # Check whether --with-game-dir or --without-game-dir was given.
1023 if test "${with_game_dir+set}" = set; then
1024 withval="$with_game_dir"
1029 if test "$gamedir" = yes; then
1030 gamedir="${localstatedir}/games/emacs"
1032 eval tgamedir=\"$gamedir\"
1033 if test "$gamedir" != no; then
1035 cat >>confdefs.h <<EOF
1036 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1043 # Check whether --with-game-user or --without-game-user was given.
1044 if test "${with_game_user+set}" = set; then
1045 withval="$with_game_user"
1049 # Check whether --with-gcc or --without-gcc was given.
1050 if test "${with_gcc+set}" = set; then
1055 # Check whether --with-pop or --without-pop was given.
1056 if test "${with_pop+set}" = set; then
1058 if test "$withval" = yes; then
1059 cat >>confdefs.h <<\EOF
1060 #define MAIL_USE_POP 1
1066 cat >>confdefs.h <<\EOF
1067 #define MAIL_USE_POP 1
1072 # Check whether --with-kerberos or --without-kerberos was given.
1073 if test "${with_kerberos+set}" = set; then
1074 withval="$with_kerberos"
1075 cat >>confdefs.h <<\EOF
1081 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1082 if test "${with_kerberos5+set}" = set; then
1083 withval="$with_kerberos5"
1084 if test "${with_kerberos5+set}" = set; then
1085 if test "${with_kerberos+set}" != set; then
1087 cat >>confdefs.h <<\EOF
1094 cat >>confdefs.h <<\EOF
1100 # Check whether --with-hesiod or --without-hesiod was given.
1101 if test "${with_hesiod+set}" = set; then
1102 withval="$with_hesiod"
1104 cat >>confdefs.h <<\EOF
1110 # Check whether --with-sound or --without-sound was given.
1111 if test "${with_sound+set}" = set; then
1112 withval="$with_sound"
1116 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1117 if test "${with_x_toolkit+set}" = set; then
1118 withval="$with_x_toolkit"
1119 case "${withval}" in
1120 y | ye | yes ) val=athena ;;
1122 l | lu | luc | luci | lucid ) val=lucid ;;
1123 a | at | ath | athe | athen | athena ) val=athena ;;
1124 m | mo | mot | moti | motif ) val=motif ;;
1126 { { echo "$as_me:1126: error: \`--with-x-toolkit=$withval' is invalid\
;
1127 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1128 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1129 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1130 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1131 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1132 { (exit 1); exit 1; }; }
1139 # Check whether --with-xpm or --without-xpm was given.
1140 if test "${with_xpm+set}" = set; then
1145 # Check whether --with-jpeg or --without-jpeg was given.
1146 if test "${with_jpeg+set}" = set; then
1147 withval="$with_jpeg"
1151 # Check whether --with-tiff or --without-tiff was given.
1152 if test "${with_tiff+set}" = set; then
1153 withval="$with_tiff"
1157 # Check whether --with-gif or --without-gif was given.
1158 if test "${with_gif+set}" = set; then
1163 # Check whether --with-png or --without-png was given.
1164 if test "${with_png+set}" = set; then
1169 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1170 if test "${with_toolkit_scroll_bars+set}" = set; then
1171 withval="$with_toolkit_scroll_bars"
1175 # Check whether --with-xim or --without-xim was given.
1176 if test "${with_xim+set}" = set; then
1181 # Check whether --with-carbon or --without-carbon was given.
1182 if test "${with_carbon+set}" = set; then
1183 withval="$with_carbon"
1187 #### Make srcdir absolute, if it isn't already. It
's important to
1188 #### avoid running the path through pwd unnecessarily, since pwd can
1189 #### give you automounter prefixes, which can go away. We do all this
1190 #### so Emacs can find its files when run uninstalled.
1191 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1196 ## We may be able to use the $PWD environment variable to make this
1197 ## absolute. But sometimes PWD is inaccurate.
1198 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1199 ## but that tested only for a well-formed and valid PWD,
1200 ## it did not object when PWD was well-formed and valid but just wrong.
1201 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1205 srcdir
="`(cd ${srcdir}; pwd)`"
1208 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1211 #### Check if the source directory already has a configured system in it.
1212 if test `pwd` != `(cd ${srcdir} && pwd)` \
1213 && test -f "${srcdir}/src/config.h" ; then
1214 { echo "$as_me:1214: WARNING: The directory tree \`${srcdir}' is being used
1215 as a build directory right now; it has been configured in its own
1216 right. To configure in another directory as well, you MUST
1217 use GNU make. If you do not have GNU make, then you must
1218 now do \`make distclean' in ${srcdir},
1219 and then run $0 again." >&5
1220 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1221 as a build directory right now; it has been configured in its own
1222 right. To configure in another directory as well, you MUST
1223 use GNU make. If you do not have GNU make, then you must
1224 now do \`make distclean' in ${srcdir},
1225 and then run $0 again." >&2;}
1227 extrasub
='/^VPATH[ ]*=/c\
1228 vpath %.c $(srcdir)\
1229 vpath %.h $(srcdir)\
1230 vpath %.y $(srcdir)\
1231 vpath %.l $(srcdir)\
1232 vpath %.s $(srcdir)\
1233 vpath %.in $(srcdir)\
1234 vpath %.texi $(srcdir)'
1237 #### Given the configuration name, set machfile and opsysfile to the
1238 #### names of the m/*.h and s/*.h files we should use.
1240 ### Canonicalize the configuration name.
1243 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1244 if test -f $ac_dir/install-sh
; then
1246 ac_install_sh
="$ac_aux_dir/install-sh -c"
1248 elif test -f $ac_dir/install.sh
; then
1250 ac_install_sh
="$ac_aux_dir/install.sh -c"
1252 elif test -f $ac_dir/shtool
; then
1254 ac_install_sh
="$ac_aux_dir/shtool install -c"
1258 if test -z "$ac_aux_dir"; then
1259 { { echo "$as_me:1259: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1260 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1261 { (exit 1); exit 1; }; }
1263 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1264 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1265 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1267 # Make sure we can run config.sub.
1268 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1269 { { echo "$as_me:1269: error: cannot run $ac_config_sub" >&5
1270 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1271 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: checking build system type" >&5
1274 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1275 if test "${ac_cv_build+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1278 ac_cv_build_alias
=$build_alias
1279 test -z "$ac_cv_build_alias" &&
1280 ac_cv_build_alias
=`$ac_config_guess`
1281 test -z "$ac_cv_build_alias" &&
1282 { { echo "$as_me:1282: error: cannot guess build type; you must specify one" >&5
1283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1284 { (exit 1); exit 1; }; }
1285 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1286 { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: $ac_cv_build" >&5
1292 echo "${ECHO_T}$ac_cv_build" >&6
1294 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1298 echo "$as_me:1298: checking host system type" >&5
1299 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1300 if test "${ac_cv_host+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_host_alias
=$host_alias
1304 test -z "$ac_cv_host_alias" &&
1305 ac_cv_host_alias
=$ac_cv_build_alias
1306 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_host" >&5
1313 echo "${ECHO_T}$ac_cv_host" >&6
1315 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 configuration
=${host_alias-$host}
1322 ### If you add support for a new configuration, add code to this
1323 ### switch statement to recognize your configuration name and select
1324 ### the appropriate operating system and machine description files.
1326 ### You would hope that you could choose an m/*.h file pretty much
1327 ### based on the machine portion of the configuration name, and an s-
1328 ### file based on the operating system portion. However, it turns out
1329 ### that each m/*.h file is pretty manufacturer-specific - for
1330 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1331 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1332 ### machines. So we basically have to have a special case for each
1333 ### configuration name.
1335 ### As far as handling version numbers on operating systems is
1336 ### concerned, make sure things will fail in a fixable way. If
1337 ### /etc/MACHINES doesn't say anything about version numbers, be
1338 ### prepared to handle anything reasonably. If version numbers
1339 ### matter, be sure /etc/MACHINES says something about it.
1341 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1342 ### "System V Release 4"; he writes, "The old convention encouraged
1343 ### confusion between `system' and `release' levels'."
1345 machine
='' opsys
='' unported
=no
1346 case "${canonical}" in
1351 case "${canonical}" in
1352 alpha
*-*-freebsd*) machine
=alpha
;;
1353 i
[3456]86-*-freebsd*) machine
=intel386
;;
1360 case "${canonical}" in
1361 alpha
*-*-netbsd*) machine
=alpha
;;
1362 i
[3456]86-*-netbsd*) machine
=intel386
;;
1364 # This is somewhat bogus.
1365 machine
=hp9000s300
;;
1366 powerpc-apple-netbsd
*) machine
=macppc
;;
1367 mips-
*-netbsd*) machine
=pmax
;;
1368 mipsel-
*-netbsd*) machine
=pmax
;;
1369 mipseb-
*-netbsd*) machine
=pmax
;;
1370 ns32k-
*-netbsd*) machine
=ns32000
;;
1371 powerpc-
*-netbsd*) machine
=macppc
;;
1372 sparc
*-*-netbsd*) machine
=sparc
;;
1373 vax-
*-netbsd*) machine
=vax
;;
1374 arm-
*-netbsd*) machine
=arm
;;
1381 case "${canonical}" in
1382 alpha
*-*-openbsd*) machine
=alpha
;;
1383 i386-
*-openbsd*) machine
=intel386
;;
1384 m68k-
*-openbsd*) machine
=hp9000s300
;;
1385 mipsel-
*-openbsd*) machine
=pmax
;;
1386 ns32k-
*-openbsd*) machine
=ns32000
;;
1387 sparc-
*-openbsd*) machine
=sparc
;;
1388 vax-
*-openbsd*) machine
=vax
;;
1393 arm-acorn-riscix1.1
* )
1394 machine
=acorn opsys
=riscix1-1
1396 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1397 ## This name is riscix12 instead of riscix1.2
1398 ## to avoid a file name conflict on MSDOS.
1399 machine
=acorn opsys
=riscix12
1405 case "${canonical}" in
1406 i
[345]86-*-bsdi*) machine
=intel386
;;
1407 sparc-
*-bsdi*) machine
=sparc
;;
1408 powerpc-
*-bsdi*) machine
=macppc
;;
1410 case "${canonical}" in
1411 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1412 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1413 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1414 *-*-bsdi3* ) opsys
=bsdos3
;;
1415 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1420 ## Strictly speaking, we need the version of the alliant operating
1421 ## system to choose the right machine file, but currently the
1422 ## configuration name doesn't tell us enough to choose the right
1423 ## one; we need to give alliants their own operating system name to
1424 ## do this right. When someone cares, they can help us.
1426 machine
=alliant4 opsys
=bsd4-2
1429 machine
=alliant-2800 opsys
=bsd4-3
1432 ## Alpha (DEC) machines.
1434 machine
=alpha opsys
=osf1
1435 # This is needed to find X11R6.1 libraries for certain tests.
1436 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1437 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1438 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1439 # due to non-traditional preprocessing with the current compiler
1440 # defaults. OSF 4 can also have that compiler version, and there
1441 # seems always to have been a usable /usr/bin/cpp.
1442 NON_GNU_CPP
=/usr
/bin
/cpp
1443 case "${canonical}" in
1444 alpha
*-dec-osf[5-9]*)
1449 alpha
*-*-linux-gnu* )
1450 machine
=alpha opsys
=gnu-linux
1454 machine
=arm opsys
=gnu-linux
1459 machine
=macppc opsys
=gnu-linux
1464 machine
=altos opsys
=usg5-2
1469 machine
=amdahl opsys
=usg5-2-2
1472 ## Apollo, Domain/OS
1474 machine
=apollo opsys
=bsd4-3
1477 ## AT&T 3b2, 3b5, 3b15, 3b20
1479 machine
=att3b opsys
=usg5-2-2
1482 ## AT&T 3b1 - The Mighty Unix PC!
1484 machine
=7300 opsys
=usg5-2-2
1489 machine
=ibmrs6000 opsys
=aix3-2
1494 machine
=dpx2 opsys
=usg5-3
1499 machine
=sps7 opsys
=usg5-2
1502 ## CCI 5/32, 6/32 -- see "Tahoe".
1505 ## I don't know what configuration name to use for this; config.sub
1506 ## doesn't seem to know anything about it. Hey, Celerity users, get
1507 ## in touch with us!
1508 celerity-celerity-bsd
* )
1509 machine
=celerity opsys
=bsd4-2
1513 ## What operating systems does this chip run that Emacs has been
1517 ## We'll use the catch-all code at the bottom to guess the
1518 ## operating system.
1522 mips-compaq-nonstopux
* )
1523 machine
=nonstopux opsys
=nonstopux
1527 *-convex-bsd* |
*-convex-convexos* )
1528 machine
=convex opsys
=bsd4-3
1529 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1530 NON_GNU_CPP
="cc -E -P"
1534 i
[3456]86-cubix-sysv* )
1535 machine
=intel386 opsys
=usg5-3
1539 cydra
*-cydrome-sysv* )
1540 machine
=cydra5 opsys
=usg5-3
1543 ## Data General AViiON Machines
1544 ## DG changed naming conventions with the release of 5.4.4.10, they
1545 ## dropped the initial 5.4 but left the intervening R. Because of the
1546 ## R this shouldn't conflict with older versions of the OS (which I
1547 ## think were named like dgux4.*). In addition, DG new AViiONs series
1548 ## uses either Motorola M88k or Intel Pentium CPUs.
1549 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1550 machine
=aviion opsys
=dgux4
1552 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1553 ## This name is dgux5-4-3 instead of dgux5-4r3
1554 ## to avoid a file name conflict on MSDOS.
1555 machine
=aviion opsys
=dgux5-4-3
1557 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1558 machine
=aviion opsys
=dgux5-4r2
1561 machine
=aviion opsys
=dgux
1564 ## Data General AViiON Intel (x86) Machines
1565 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1566 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1567 i
[345]86-dg-dguxR4* )
1568 machine
=aviion-intel opsys
=dgux4
1572 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1573 machine
=pmax opsys
=bsd4-2
1575 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1576 machine
=pmax opsys
=bsd4-3
1579 machine
=pmax opsys
=ultrix4-3
1582 machine
=pmax opsys
=osf1
1584 mips-dec-mach_bsd4.3
* )
1585 machine
=pmax opsys
=mach-bsd4-3
1588 ## Motorola Delta machines
1589 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1590 machine
=delta opsys
=usg5-3
1591 if test -z "`type gnucc | grep 'not found'`"
1593 if test -s /etc
/167config
1594 then CC
="gnucc -m68040"
1595 else CC
="gnucc -m68881"
1598 if test -z "`type gcc | grep 'not found'`"
1604 m88k-motorola-sysv4
* )
1605 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1606 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1607 # I hope there are not other 4.0 versions for this machine
1608 # which really need usg5-4 instead.
1609 machine
=delta88k opsys
=usg5-4-2
1611 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1612 machine
=delta88k opsys
=usg5-3
1617 machine
=dual opsys
=usg5-2
1619 m68
*-dual-uniplus* )
1620 machine
=dual opsys
=unipl5-2
1625 machine
=elxsi opsys
=usg5-2
1630 machine
=ns16000 opsys
=umax
1633 ## The GEC 63 - apparently, this port isn't really finished yet.
1634 # I'm sure we finished off the last of the machines, though. -- fx
1636 ## Gould Power Node and NP1
1638 machine
=gould opsys
=bsd4-2
1641 machine
=gould opsys
=bsd4-3
1644 machine
=gould-np1 opsys
=bsd4-3
1647 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1648 ## as far as Emacs is concerned).
1650 # Build needs to be different on 7.0 and later releases
1651 case "`uname -r`" in
1652 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1653 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1655 NON_GNU_CPP
="/lib/cpp"
1657 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1659 machine
=nh3000 opsys
=cxux
1661 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1662 powerpc-harris-powerunix
)
1663 machine
=nh6000 opsys
=powerunix
1664 NON_GNU_CPP
="cc -Xo -E -P"
1666 ## SR2001/SR2201 running HI-UX/MPP
1667 hppa1.1
-hitachi-hiuxmpp* )
1668 machine
=sr2k opsys
=hiuxmpp
1670 hppa1.1
-hitachi-hiuxwe2* )
1671 machine
=sr2k opsys
=hiuxwe2
1674 xps
*-honeywell-sysv* )
1675 machine
=xps100 opsys
=usg5-2
1678 ## HP 9000 series 200 or 300
1680 machine
=hp9000s300 opsys
=bsd4-3
1682 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1684 case "`uname -r`" in
1685 ## Someone's system reports A.B8.05 for this.
1686 ## I wonder what other possibilities there are.
1687 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1688 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1689 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1690 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1691 *) machine
=hp9000s300 opsys
=hpux
;;
1695 ## HP 9000 series 700 and 800, running HP/UX
1697 machine
=hp800 opsys
=hpux
1700 machine
=hp800 opsys
=hpux8
1702 hppa
*-hp-hpux9shr* )
1703 machine
=hp800 opsys
=hpux9shr
1706 machine
=hp800 opsys
=hpux9
1709 machine
=hp800 opsys
=hpux10
1711 hppa
*-hp-hpux1[1-9]* )
1712 machine
=hp800 opsys
=hpux11
1715 hppa
*-*-linux-gnu* )
1716 machine
=hp800 opsys
=gnu-linux
1719 ## HP 9000 series 700 and 800, running HP/UX
1721 ## Cross-compilation? Nah!
1722 case "`uname -r`" in
1723 ## Someone's system reports A.B8.05 for this.
1724 ## I wonder what other possibilities there are.
1725 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1726 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1727 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1728 *) machine
=hp800 opsys
=hpux10
;;
1732 machine
=hp800 opsys
=nextstep
1737 machine
=orion opsys
=bsd4-2
1739 clipper-orion-bsd
* )
1740 machine
=orion105 opsys
=bsd4-2
1744 i
[3456]86-ibm-aix1.1
* )
1745 machine
=ibmps2-aix opsys
=usg5-2-2
1747 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1748 machine
=ibmps2-aix opsys
=usg5-3
1751 machine
=ibm370aix opsys
=usg5-3
1754 machine
=ibms390 opsys
=gnu-linux
1756 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1757 machine
=ibmrs6000 opsys
=aix3-1
1759 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1760 machine
=ibmrs6000 opsys
=aix3-2-5
1762 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1763 machine
=ibmrs6000 opsys
=aix4-1
1765 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1766 machine
=ibmrs6000 opsys
=aix4-2
1768 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1769 machine
=ibmrs6000 opsys
=aix4-2
1771 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1772 machine
=ibmrs6000 opsys
=aix4
1774 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1775 machine
=ibmrs6000 opsys
=aix4-1
1777 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1778 machine
=ibmrs6000 opsys
=aix3-2
1781 machine
=ibmrt opsys
=bsd4-3
1784 machine
=ibmrt opsys
=bsd4-2
1787 machine
=ibmrt opsys
=bsd4-3
1790 machine
=ibmrt opsys
=bsd4-2
1793 machine
=ibmrt opsys
=bsd4-3
1796 machine
=ibmrt opsys
=bsd4-3
1799 machine
=ibmrt-aix opsys
=usg5-2-2
1802 ## Integrated Solutions `Optimum V'
1804 machine
=isi-ov opsys
=bsd4-2
1807 machine
=isi-ov opsys
=bsd4-3
1810 ## Intel 386 machines where we do care about the manufacturer
1811 i
[3456]86-intsys-sysv* )
1812 machine
=is386 opsys
=usg5-2-2
1816 i
[3456]86-prime-sysv* )
1817 machine
=i386 opsys
=usg5-3
1820 ## Sequent Symmetry running Dynix
1821 i
[3456]86-sequent-bsd* )
1822 machine
=symmetry opsys
=bsd4-3
1825 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1826 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1827 machine
=sequent-ptx opsys
=ptx4
1828 NON_GNU_CPP
=/lib
/cpp
1831 ## Sequent Symmetry running DYNIX/ptx
1832 ## Use the old cpp rather than the newer ANSI one.
1833 i
[3456]86-sequent-ptx* )
1834 machine
=sequent-ptx opsys
=ptx
1835 NON_GNU_CPP
="/lib/cpp"
1838 ## ncr machine running svr4.3.
1839 i
[3456]86-ncr-sysv4.3
)
1840 machine
=ncr386 opsys
=usg5-4-3
1843 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1844 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1845 i
[3456]86-ncr-sysv* )
1846 machine
=ncr386 opsys
=usg5-4-2
1849 ## Intel Paragon OSF/1
1851 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1856 machine
=i860 opsys
=usg5-4
1857 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1858 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1861 ## Macintosh PowerPC
1862 powerpc
*-*-linux-gnu* )
1863 machine
=macppc opsys
=gnu-linux
1866 ## Masscomp machines
1867 m68
*-masscomp-rtu* )
1868 machine
=masscomp opsys
=rtu
1871 ## Megatest machines
1872 m68
*-megatest-bsd* )
1873 machine
=mega68 opsys
=bsd4-2
1876 ## Workstations sold by MIPS
1877 ## This is not necessarily all workstations using the MIPS processor -
1878 ## Irises are produced by SGI, and DECstations by DEC.
1880 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1881 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1882 ## it gives for choosing between the alternatives seems to be "Use
1883 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1884 ## the BSD world." I'll assume that these are instructions for
1885 ## handling two odd situations, and that every other situation
1886 ## should use mips.h and usg5-2-2, they being listed first.
1889 ## Fall through to the general code at the bottom to decide on the OS.
1891 mips-mips-riscos4
* )
1892 machine
=mips4 opsys
=bsd4-3
1893 NON_GNU_CC
="cc -systype bsd43"
1894 NON_GNU_CPP
="cc -systype bsd43 -E"
1896 mips-mips-riscos5
* )
1897 machine
=mips4 opsys
=riscos5
1898 NON_GNU_CC
="cc -systype bsd43"
1899 NON_GNU_CPP
="cc -systype bsd43 -E"
1902 machine
=mips opsys
=bsd4-3
1905 machine
=mips opsys
=usg5-2-2
1909 m68
*-next-* | m68k-
*-nextstep* )
1910 machine
=m68k opsys
=nextstep
1913 ## The complete machine from National Semiconductor
1915 machine
=ns32000 opsys
=usg5-2
1919 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1920 machine
=tower32 opsys
=usg5-2-2
1922 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1923 machine
=tower32v3 opsys
=usg5-3
1928 machine
=ews4800 opsys
=ux4800
1931 ## Nixdorf Targon 31
1932 m68
*-nixdorf-sysv* )
1933 machine
=targon31 opsys
=usg5-2-2
1938 machine
=nu opsys
=usg5-2
1943 machine
=plexus opsys
=usg5-2
1946 ## PowerPC reference platform
1947 powerpcle-
*-solaris2* )
1953 ## I don't really have any idea what sort of processor the Pyramid has,
1954 ## so I'm assuming it is its own architecture.
1955 pyramid-pyramid-bsd
* )
1956 machine
=pyramid opsys
=bsd4-2
1960 ns32k-sequent-bsd4.2
* )
1961 machine
=sequent opsys
=bsd4-2
1963 ns32k-sequent-bsd4.3
* )
1964 machine
=sequent opsys
=bsd4-3
1968 mips-siemens-sysv
* | mips-sni-sysv
*)
1969 machine
=mips-siemens opsys
=usg5-4
1970 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1971 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1974 ## Silicon Graphics machines
1975 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1977 machine
=irist opsys
=iris3-5
1979 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1980 machine
=irist opsys
=iris3-6
1984 machine
=iris4d opsys
=irix3-3
1987 machine
=iris4d opsys
=irix4-0
1990 machine
=iris4d opsys
=irix6-5
1991 # Without defining _LANGUAGE_C, things get masked out in the headers
1992 # so that, for instance, grepping for `free' in stdlib.h fails and
1993 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1994 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1995 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1998 machine
=iris4d opsys
=irix6-0
1999 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2000 # but presumably it does no harm.
2001 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2002 # -32 probably isn't necessary in later v.6s -- anyone know which?
2003 NON_GCC_TEST_OPTIONS
=-32
2005 mips-sgi-irix5.
[01]* )
2006 machine
=iris4d opsys
=irix5-0
2008 mips-sgi-irix5
* | mips-sgi-irix
* )
2009 machine
=iris4d opsys
=irix5-2
2014 machine
=news opsys
=bsd4-2
2017 machine
=news opsys
=bsd4-3
2019 m68
*-sony-newsos3* | m68
*-sony-news3*)
2020 machine
=news opsys
=bsd4-3
2022 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2023 machine
=news-risc opsys
=bsd4-3
2025 mips-sony-newsos6
* )
2026 machine
=news-r6 opsys
=newsos6
2029 machine
=news-risc opsys
=newsos5
2034 machine
=stride opsys
=usg5-2
2038 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2039 machine
=sparc opsys
=gnu-linux
2042 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2043 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2044 | rs6000-
*-solaris2*)
2045 case "${canonical}" in
2046 m68
*-sunos1* ) machine
=sun1
;;
2047 m68
*-sunos2* ) machine
=sun2
;;
2048 m68
* ) machine
=sun3
;;
2049 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2050 i
[3456]86-*-* ) machine
=intel386
;;
2051 powerpcle
* ) machine
=powerpcle
;;
2052 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2053 sparc
* ) machine
=sparc
;;
2056 case "${canonical}" in
2057 ## The Sun386 didn't get past 4.0.
2058 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2059 *-sunos4.0
* ) opsys
=sunos4-0
;;
2060 *-sunos4.1.
[3-9]*noshare
)
2061 ## This name is sunos413 instead of sunos4-1-3
2062 ## to avoid a file name conflict on MSDOS.
2064 NON_GNU_CPP
=/usr
/lib
/cpp
2065 NON_GCC_TEST_OPTIONS
=-Bstatic
2066 GCC_TEST_OPTIONS
=-static
2068 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2070 NON_GNU_CPP
=/usr
/lib
/cpp
2072 *-sunos4* |
*-sunos )
2074 NON_GCC_TEST_OPTIONS
=-Bstatic
2075 GCC_TEST_OPTIONS
=-static
2077 *-sunos5.3
* |
*-solaris2.3
* )
2079 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2081 *-sunos5.4
* |
*-solaris2.4
* )
2083 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2086 *-sunos5.5
* |
*-solaris2.5
* )
2088 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2091 *-sunos5* |
*-solaris* )
2093 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2097 ## Watch out for a compiler that we know will not work.
2098 case "${canonical}" in
2099 *-solaris* |
*-sunos5* )
2100 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2101 ## /usr/ucb/cc doesn't work;
2102 ## we should find some other compiler that does work.
2110 machine
=sparc opsys
=nextstep
2114 m68
*-tadpole-sysv* )
2115 machine
=tad68k opsys
=usg5-3
2119 tahoe-tahoe-bsd4.2
* )
2120 machine
=tahoe opsys
=bsd4-2
2122 tahoe-tahoe-bsd4.3
* )
2123 machine
=tahoe opsys
=bsd4-3
2126 ## Tandem Integrity S2
2128 machine
=tandem-s2 opsys
=usg5-3
2132 m88k-tektronix-sysv3
* )
2133 machine
=tekxd88 opsys
=usg5-3
2136 ## Tektronix 16000 box (6130?)
2137 ns16k-tektronix-bsd
* )
2138 machine
=ns16000 opsys
=bsd4-2
2141 ## src/m/tek4300.h hints that this is a m68k machine.
2142 m68
*-tektronix-bsd* )
2143 machine
=tek4300 opsys
=bsd4-3
2147 ## We seem to have lost the machine-description file titan.h!
2149 machine
=titan opsys
=usg5-3
2152 ## Ustation E30 (SS5E)
2153 m68
*-unisys-uniplus* )
2154 machine
=ustation opsystem
=unipl5-2
2160 case "${canonical}" in
2161 *-bsd4.1
* ) opsys
=bsd4-1
;;
2162 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2163 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2164 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2165 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2166 *-vms* ) opsys
=vms
;;
2172 ns16k-whitechapel-
* )
2174 ## We don't know what sort of OS runs on these; we'll let the
2175 ## operating system guessing code below try.
2180 machine
=wicat opsys
=usg5-2
2185 machine
=ia64 opsys
=gnu-linux
2188 ## Intel 386 machines where we don't care about the manufacturer
2191 case "${canonical}" in
2192 *-lynxos* ) opsys
=lynxos
;;
2193 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2194 *-isc2.2
* ) opsys
=isc2-2
;;
2195 *-isc4.0
* ) opsys
=isc4-0
;;
2196 *-isc4.
* ) opsys
=isc4-1
2197 GCC_TEST_OPTIONS
=-posix
2198 NON_GCC_TEST_OPTIONS
=-Xp
2200 *-isc* ) opsys
=isc3-0
;;
2201 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2202 *-esix* ) opsys
=esix
;;
2203 *-xenix* ) opsys
=xenix
;;
2204 *-linux-gnu* ) opsys
=gnu-linux
;;
2205 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2206 *-sco3.2v5
* ) opsys
=sco5
2207 NON_GNU_CPP
=/lib
/cpp
2208 # Prevent -belf from being passed to $CPP.
2209 # /lib/cpp does not accept it.
2210 OVERRIDE_CPPFLAGS
=" "
2212 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2213 *-386bsd* ) opsys
=386bsd
;;
2214 *-nextstep* ) opsys
=nextstep
;;
2215 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2219 ## m68k Linux-based GNU system
2221 machine
=m68k opsys
=gnu-linux
2224 ## Mips Linux-based GNU system
2226 machine
=mips opsys
=gnu-linux
2230 sparc-fujitsu-sysv4
* )
2231 machine
=sparc opsys
=uxpds
2232 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2237 f301-fujitsu-uxpv4.1
)
2238 machine
=f301 opsys
=uxpv
2241 ## Darwin / Mac OS X
2242 powerpc-apple-darwin
* )
2243 machine
=powermac opsys
=darwin
2244 # Define CPP as follows to make autoconf work correctly.
2245 CPP
="cc -E -traditional-cpp"
2248 ## AMD x86-64 Linux-based GNU system
2249 x86_64-
*-linux-gnu* )
2250 machine
=amdx86-64 opsys
=gnu-linux
2258 ### If the code above didn't choose an operating system, just choose
2259 ### an operating system based on the configuration name. You really
2260 ### only want to use this when you have no idea what the right
2261 ### operating system is; if you know what operating systems a machine
2262 ### runs, it's cleaner to make it explicit in the case statement
2264 if test x
"${opsys}" = x
; then
2265 case "${canonical}" in
2266 *-gnu* ) opsys
=gnu
;;
2267 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2268 *-bsd4.2
) opsys
=bsd4-2
;;
2269 *-bsd4.3
) opsys
=bsd4-3
;;
2270 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2271 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2272 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2273 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2274 *-sysv4.2uw
* ) opsys
=unixware
;;
2275 *-sysv4.1
* |
*-sysvr4.1
* )
2276 NON_GNU_CPP
=/usr
/lib
/cpp
2278 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2279 if [ x
$NON_GNU_CPP = x
]; then
2280 if [ -f /usr
/ccs
/lib
/cpp
]; then
2281 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2283 NON_GNU_CPP
=/lib
/cpp
2287 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2294 if test $unported = yes; then
2295 { { echo "$as_me:2294: error: Emacs hasn't been ported to \`${canonical}' systems.
2296 Check \`etc/MACHINES' for recognized configuration names." >&5
2297 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2298 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2299 { (exit 1); exit 1; }; }
2302 machfile
="m/${machine}.h"
2303 opsysfile
="s/${opsys}.h"
2305 #### Choose a compiler.
2306 test -n "$CC" && cc_specified
=yes
2308 # Save the value of CFLAGS that the user specified.
2309 SPECIFIED_CFLAGS
="$CFLAGS"
2312 "yes" ) CC
="gcc" GCC
=yes ;;
2313 "no" ) : ${CC=cc} ;;
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2324 echo "$as_me:2323: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC
="$CC" # Let the user override the test.
2332 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2334 for ac_dir
in $ac_dummy; do
2336 test -z "$ac_dir" && ac_dir
=.
2337 $as_executable_p "$ac_dir/$ac_word" ||
continue
2338 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2339 echo "$as_me:2338: found $ac_dir/$ac_word" >&5
2346 if test -n "$CC"; then
2347 echo "$as_me:2346: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2350 echo "$as_me:2349: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2355 if test -z "$ac_cv_prog_CC"; then
2357 # Extract the first word of "gcc", so it can be a program name with args.
2358 set dummy gcc
; ac_word
=$2
2359 echo "$as_me:2358: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2367 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2369 for ac_dir
in $ac_dummy; do
2371 test -z "$ac_dir" && ac_dir
=.
2372 $as_executable_p "$ac_dir/$ac_word" ||
continue
2373 ac_cv_prog_ac_ct_CC
="gcc"
2374 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2380 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 echo "$as_me:2381: result: $ac_ct_CC" >&5
2383 echo "${ECHO_T}$ac_ct_CC" >&6
2385 echo "$as_me:2384: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2394 if test -z "$CC"; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2397 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2398 echo "$as_me:2397: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC
="$CC" # Let the user override the test.
2406 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2408 for ac_dir
in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir
=.
2411 $as_executable_p "$ac_dir/$ac_word" ||
continue
2412 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2413 echo "$as_me:2412: found $ac_dir/$ac_word" >&5
2420 if test -n "$CC"; then
2421 echo "$as_me:2420: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6
2424 echo "$as_me:2423: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "cc", so it can be a program name with args.
2432 set dummy cc
; ac_word
=$2
2433 echo "$as_me:2432: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2441 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2443 for ac_dir
in $ac_dummy; do
2445 test -z "$ac_dir" && ac_dir
=.
2446 $as_executable_p "$ac_dir/$ac_word" ||
continue
2447 ac_cv_prog_ac_ct_CC
="cc"
2448 echo "$as_me:2447: found $ac_dir/$ac_word" >&5
2454 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456 echo "$as_me:2455: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6
2459 echo "$as_me:2458: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc
; ac_word
=$2
2472 echo "$as_me:2471: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2481 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2483 for ac_dir
in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir
=.
2486 $as_executable_p "$ac_dir/$ac_word" ||
continue
2487 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2488 ac_prog_rejected
=yes
2492 echo "$as_me:2491: found $ac_dir/$ac_word" >&5
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy
$ac_cv_prog_CC
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2505 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2513 if test -n "$CC"; then
2514 echo "$as_me:2513: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6
2517 echo "$as_me:2516: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2528 echo "$as_me:2527: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC
="$CC" # Let the user override the test.
2536 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2538 for ac_dir
in $ac_dummy; do
2540 test -z "$ac_dir" && ac_dir
=.
2541 $as_executable_p "$ac_dir/$ac_word" ||
continue
2542 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2543 echo "$as_me:2542: found $ac_dir/$ac_word" >&5
2550 if test -n "$CC"; then
2551 echo "$as_me:2550: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6
2554 echo "$as_me:2553: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2558 test -n "$CC" && break
2561 if test -z "$CC"; then
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy
$ac_prog; ac_word
=$2
2567 echo "$as_me:2566: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2575 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2577 for ac_dir
in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir
=.
2580 $as_executable_p "$ac_dir/$ac_word" ||
continue
2581 ac_cv_prog_ac_ct_CC
="$ac_prog"
2582 echo "$as_me:2581: found $ac_dir/$ac_word" >&5
2588 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590 echo "$as_me:2589: result: $ac_ct_CC" >&5
2591 echo "${ECHO_T}$ac_ct_CC" >&6
2593 echo "$as_me:2592: result: no" >&5
2594 echo "${ECHO_T}no" >&6
2597 test -n "$ac_ct_CC" && break
2605 test -z "$CC" && { { echo "$as_me:2604: error: no acceptable cc found in \$PATH" >&5
2606 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2607 { (exit 1); exit 1; }; }
2609 # Provide some information about the compiler.
2610 echo "$as_me:2609:" \
2611 "checking for C compiler version" >&5
2612 ac_compiler
=`set X $ac_compile; echo $2`
2613 { (eval echo "$as_me:2612: \"$ac_compiler --version </dev/null >&5\"") >&5
2614 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2616 echo "$as_me:2615: \$? = $ac_status" >&5
2617 (exit $ac_status); }
2618 { (eval echo "$as_me:2617: \"$ac_compiler -v </dev/null >&5\"") >&5
2619 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2621 echo "$as_me:2620: \$? = $ac_status" >&5
2622 (exit $ac_status); }
2623 { (eval echo "$as_me:2622: \"$ac_compiler -V </dev/null >&5\"") >&5
2624 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2626 echo "$as_me:2625: \$? = $ac_status" >&5
2627 (exit $ac_status); }
2629 cat >conftest.
$ac_ext <<_ACEOF
2630 #line 2624 "configure"
2631 #include "confdefs.h"
2641 ac_clean_files_save
=$ac_clean_files
2642 ac_clean_files
="$ac_clean_files a.out a.exe"
2643 # Try to create an executable without -o first, disregard a.out.
2644 # It will help us diagnose broken compilers, and finding out an intuition
2646 echo "$as_me:2645: checking for C compiler default output" >&5
2647 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2648 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2649 if { (eval echo "$as_me:2648: \"$ac_link_default\"") >&5
2650 (eval $ac_link_default) 2>&5
2652 echo "$as_me:2651: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 # Find the output, starting from the most likely. This scheme is
2655 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2657 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2658 ls a.out conftest 2>/dev/null;
2659 ls a.* conftest.* 2>/dev/null`; do
2661 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2662 a.out
) # We found the default executable, but exeext='' is most
2665 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2675 { { echo "$as_me:2674: error: C compiler cannot create executables" >&5
2676 echo "$as_me: error: C compiler cannot create executables" >&2;}
2677 { (exit 77); exit 77; }; }
2680 ac_exeext
=$ac_cv_exeext
2681 echo "$as_me:2680: result: $ac_file" >&5
2682 echo "${ECHO_T}$ac_file" >&6
2684 # Check the compiler produces executables we can run. If not, either
2685 # the compiler is broken, or we cross compile.
2686 echo "$as_me:2685: checking whether the C compiler works" >&5
2687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2689 # If not cross compiling, check that we can run a simple program.
2690 if test "$cross_compiling" != yes; then
2691 if { ac_try
='./$ac_file'
2692 { (eval echo "$as_me:2691: \"$ac_try\"") >&5
2695 echo "$as_me:2694: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2699 if test "$cross_compiling" = maybe
; then
2702 { { echo "$as_me:2701: error: cannot run C compiled programs.
2703 If you meant to cross compile, use \`--host'." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'." >&2;}
2706 { (exit 1); exit 1; }; }
2710 echo "$as_me:2709: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2713 rm -f a.out a.exe conftest
$ac_cv_exeext
2714 ac_clean_files
=$ac_clean_files_save
2715 # Check the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 echo "$as_me:2716: checking whether we are cross compiling" >&5
2718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2719 echo "$as_me:2718: result: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6
2722 echo "$as_me:2721: checking for executable suffix" >&5
2723 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2724 if { (eval echo "$as_me:2723: \"$ac_link\"") >&5
2725 (eval $ac_link) 2>&5
2727 echo "$as_me:2726: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2731 # work properly (i.e., refer to `conftest.exe'), while it won't with
2733 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2735 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2736 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 { { echo "$as_me:2742: error: cannot compute EXEEXT: cannot compile and link" >&5
2744 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2745 { (exit 1); exit 1; }; }
2748 rm -f conftest
$ac_cv_exeext
2749 echo "$as_me:2748: result: $ac_cv_exeext" >&5
2750 echo "${ECHO_T}$ac_cv_exeext" >&6
2752 rm -f conftest.
$ac_ext
2753 EXEEXT
=$ac_cv_exeext
2755 echo "$as_me:2754: checking for object suffix" >&5
2756 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2757 if test "${ac_cv_objext+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 cat >conftest.
$ac_ext <<_ACEOF
2761 #line 2755 "configure"
2762 #include "confdefs.h"
2772 rm -f conftest.o conftest.obj
2773 if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2776 echo "$as_me:2775: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2780 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2781 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2786 echo "$as_me: failed program was:" >&5
2787 cat conftest.
$ac_ext >&5
2788 { { echo "$as_me:2787: error: cannot compute OBJEXT: cannot compile" >&5
2789 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2790 { (exit 1); exit 1; }; }
2793 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2795 echo "$as_me:2794: result: $ac_cv_objext" >&5
2796 echo "${ECHO_T}$ac_cv_objext" >&6
2797 OBJEXT
=$ac_cv_objext
2799 echo "$as_me:2798: checking whether we are using the GNU C compiler" >&5
2800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 cat >conftest.
$ac_ext <<_ACEOF
2805 #line 2799 "configure"
2806 #include "confdefs.h"
2819 rm -f conftest.
$ac_objext
2820 if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>&5
2823 echo "$as_me:2822: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try
='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2829 echo "$as_me:2828: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2833 echo "$as_me: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2837 rm -f conftest.
$ac_objext conftest.
$ac_ext
2838 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2841 echo "$as_me:2840: result: $ac_cv_c_compiler_gnu" >&5
2842 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2843 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2844 ac_test_CFLAGS
=${CFLAGS+set}
2845 ac_save_CFLAGS
=$CFLAGS
2847 echo "$as_me:2846: checking whether $CC accepts -g" >&5
2848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_g+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.
$ac_ext <<_ACEOF
2853 #line 2847 "configure"
2854 #include "confdefs.h"
2864 rm -f conftest.
$ac_objext
2865 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2868 echo "$as_me:2867: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try
='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2874 echo "$as_me:2873: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2878 echo "$as_me: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2882 rm -f conftest.
$ac_objext conftest.
$ac_ext
2884 echo "$as_me:2883: result: $ac_cv_prog_cc_g" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2886 if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS
=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2895 if test "$GCC" = yes; then
2901 # Some people use a C++ compiler to compile C. Since we use `exit',
2902 # in C++ we need to declare it. In case someone uses the same compiler
2903 # for both compiling C and C++ we need to have the C++ compiler decide
2904 # the declaration of exit, since it's the most demanding environment.
2905 cat >conftest.
$ac_ext <<_ACEOF
2910 rm -f conftest.
$ac_objext
2911 if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2914 echo "$as_me:2913: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try
='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:2916: \"$ac_try\"") >&5
2920 echo "$as_me:2919: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 for ac_declaration
in \
2924 '#include <stdlib.h>' \
2925 'extern "C" void std::exit (int) throw (); using std::exit;' \
2926 'extern "C" void std::exit (int); using std::exit;' \
2927 'extern "C" void exit (int) throw ();' \
2928 'extern "C" void exit (int);' \
2931 cat >conftest.
$ac_ext <<_ACEOF
2932 #line 2926 "configure"
2933 #include "confdefs.h"
2944 rm -f conftest.
$ac_objext
2945 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2948 echo "$as_me:2947: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try
='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2954 echo "$as_me:2953: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2962 rm -f conftest.
$ac_objext conftest.
$ac_ext
2963 cat >conftest.
$ac_ext <<_ACEOF
2964 #line 2958 "configure"
2965 #include "confdefs.h"
2975 rm -f conftest.
$ac_objext
2976 if { (eval echo "$as_me:2975: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>&5
2979 echo "$as_me:2978: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try
='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2985 echo "$as_me:2984: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2989 echo "$as_me: failed program was:" >&5
2990 cat conftest.
$ac_ext >&5
2992 rm -f conftest.
$ac_objext conftest.
$ac_ext
2995 if test -n "$ac_declaration"; then
2996 echo '#ifdef __cplusplus' >>confdefs.h
2997 echo $ac_declaration >>confdefs.h
2998 echo '#endif' >>confdefs.h
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 rm -f conftest.
$ac_objext conftest.
$ac_ext
3007 ac_cpp
='$CPP $CPPFLAGS'
3008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3017 #### Some systems specify a CPP to use unless we are using GCC.
3018 #### Now that we know whether we are using GCC, we can decide whether
3019 #### to use that one.
3020 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3025 #### Some systems specify a CC to use unless we are using GCC.
3026 #### Now that we know whether we are using GCC, we can decide whether
3027 #### to use that one.
3028 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3029 test x
$cc_specified != xyes
3034 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3036 CC
="$CC $GCC_TEST_OPTIONS"
3039 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3041 CC
="$CC $NON_GCC_TEST_OPTIONS"
3044 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3046 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3049 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3051 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3054 #### Some other nice autoconf tests. If you add a test here which
3055 #### should make an entry in src/config.h, don't forget to add an
3056 #### #undef clause to src/config.h.in for autoconf to modify.
3058 echo "$as_me:3057: checking whether ln -s works" >&5
3059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3061 if test "$LN_S" = "ln -s"; then
3062 echo "$as_me:3061: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3065 echo "$as_me:3064: result: no, using $LN_S" >&5
3066 echo "${ECHO_T}no, using $LN_S" >&6
3070 ac_cpp
='$CPP $CPPFLAGS'
3071 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3074 echo "$as_me:3073: checking how to run the C preprocessor" >&5
3075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3076 # On Suns, sometimes $CPP names a directory.
3077 if test -n "$CPP" && test -d "$CPP"; then
3080 if test -z "$CPP"; then
3081 if test "${ac_cv_prog_CPP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 # Double quotes because CPP needs to be expanded
3085 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3088 for ac_c_preproc_warn_flag
in '' yes
3090 # Use a header file that comes with gcc, so configuring glibc
3091 # with a fresh cross-compiler works.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.
$ac_ext <<_ACEOF
3095 #line 3089 "configure"
3096 #include "confdefs.h"
3100 if { (eval echo "$as_me:3099: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3103 egrep -v '^ *\+' conftest.er1
>conftest.err
3105 cat conftest.err
>&5
3106 echo "$as_me:3105: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev
/null
; then
3108 if test -s conftest.err
; then
3109 ac_cpp_err
=$ac_c_preproc_warn_flag
3116 if test -z "$ac_cpp_err"; then
3119 echo "$as_me: failed program was:" >&5
3120 cat conftest.
$ac_ext >&5
3121 # Broken: fails on valid input.
3124 rm -f conftest.err conftest.
$ac_ext
3126 # OK, works on sane cases. Now check whether non-existent headers
3127 # can be detected and how.
3128 cat >conftest.
$ac_ext <<_ACEOF
3129 #line 3123 "configure"
3130 #include "confdefs.h"
3131 #include <ac_nonexistent.h>
3133 if { (eval echo "$as_me:3132: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3136 egrep -v '^ *\+' conftest.er1
>conftest.err
3138 cat conftest.err
>&5
3139 echo "$as_me:3138: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev
/null
; then
3141 if test -s conftest.err
; then
3142 ac_cpp_err
=$ac_c_preproc_warn_flag
3149 if test -z "$ac_cpp_err"; then
3150 # Broken: success on invalid input.
3153 echo "$as_me: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3155 # Passes both tests.
3159 rm -f conftest.err conftest.
$ac_ext
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.
$ac_ext
3164 if $ac_preproc_ok; then
3176 echo "$as_me:3175: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6
3179 for ac_c_preproc_warn_flag
in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.
$ac_ext <<_ACEOF
3186 #line 3180 "configure"
3187 #include "confdefs.h"
3191 if { (eval echo "$as_me:3190: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3194 egrep -v '^ *\+' conftest.er1
>conftest.err
3196 cat conftest.err
>&5
3197 echo "$as_me:3196: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev
/null
; then
3199 if test -s conftest.err
; then
3200 ac_cpp_err
=$ac_c_preproc_warn_flag
3207 if test -z "$ac_cpp_err"; then
3210 echo "$as_me: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3212 # Broken: fails on valid input.
3215 rm -f conftest.err conftest.
$ac_ext
3217 # OK, works on sane cases. Now check whether non-existent headers
3218 # can be detected and how.
3219 cat >conftest.
$ac_ext <<_ACEOF
3220 #line 3214 "configure"
3221 #include "confdefs.h"
3222 #include <ac_nonexistent.h>
3224 if { (eval echo "$as_me:3223: \"$ac_cpp conftest.$ac_ext\"") >&5
3225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3227 egrep -v '^ *\+' conftest.er1
>conftest.err
3229 cat conftest.err
>&5
3230 echo "$as_me:3229: \$? = $ac_status" >&5
3231 (exit $ac_status); } >/dev
/null
; then
3232 if test -s conftest.err
; then
3233 ac_cpp_err
=$ac_c_preproc_warn_flag
3240 if test -z "$ac_cpp_err"; then
3241 # Broken: success on invalid input.
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3246 # Passes both tests.
3250 rm -f conftest.err conftest.
$ac_ext
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.
$ac_ext
3255 if $ac_preproc_ok; then
3258 { { echo "$as_me:3257: error: C preprocessor \"$CPP\" fails sanity check" >&5
3259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3260 { (exit 1); exit 1; }; }
3264 ac_cpp
='$CPP $CPPFLAGS'
3265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3269 # Find a good install program. We prefer a C program (faster),
3270 # so one script is as good as another. But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 echo "$as_me:3280: checking for a BSD compatible install" >&5
3282 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3288 for ac_dir
in $PATH; do
3290 # Account for people who put trailing slashes in PATH elements.
3292 / | .
/ | .
// |
/cC
/* \
3293 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3296 # OSF1 and SCO ODT 3.0 have their own names for install.
3297 # Don't use installbsd from OSF since it installs stuff as root
3299 for ac_prog
in ginstall scoinst
install; do
3300 if $as_executable_p "$ac_dir/$ac_prog"; then
3301 if test $ac_prog = install &&
3302 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3305 elif test $ac_prog = install &&
3306 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3310 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3320 if test "${ac_cv_path_install+set}" = set; then
3321 INSTALL
=$ac_cv_path_install
3323 # As a last resort, use the slow shell script. We don't cache a
3324 # path for INSTALL within a source directory, because that will
3325 # break other packages using the cache if that directory is
3326 # removed, or if the path is relative.
3327 INSTALL
=$ac_install_sh
3330 echo "$as_me:3329: result: $INSTALL" >&5
3331 echo "${ECHO_T}$INSTALL" >&6
3333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3334 # It thinks the first close brace ends the variable substitution.
3335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3341 for ac_prog
in 'bison -y' byacc
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy
$ac_prog; ac_word
=$2
3345 echo "$as_me:3344: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_prog_YACC+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 if test -n "$YACC"; then
3351 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3353 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3355 for ac_dir
in $ac_dummy; do
3357 test -z "$ac_dir" && ac_dir
=.
3358 $as_executable_p "$ac_dir/$ac_word" ||
continue
3359 ac_cv_prog_YACC
="$ac_prog"
3360 echo "$as_me:3359: found $ac_dir/$ac_word" >&5
3366 YACC
=$ac_cv_prog_YACC
3367 if test -n "$YACC"; then
3368 echo "$as_me:3367: result: $YACC" >&5
3369 echo "${ECHO_T}$YACC" >&6
3371 echo "$as_me:3370: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 test -n "$YACC" && break
3377 test -n "$YACC" || YACC
="yacc"
3379 if test "x$RANLIB" = x
; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3382 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3383 echo "$as_me:3382: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_RANLIB+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$RANLIB"; then
3389 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3391 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3393 for ac_dir
in $ac_dummy; do
3395 test -z "$ac_dir" && ac_dir
=.
3396 $as_executable_p "$ac_dir/$ac_word" ||
continue
3397 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3398 echo "$as_me:3397: found $ac_dir/$ac_word" >&5
3404 RANLIB
=$ac_cv_prog_RANLIB
3405 if test -n "$RANLIB"; then
3406 echo "$as_me:3405: result: $RANLIB" >&5
3407 echo "${ECHO_T}$RANLIB" >&6
3409 echo "$as_me:3408: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3414 if test -z "$ac_cv_prog_RANLIB"; then
3415 ac_ct_RANLIB
=$RANLIB
3416 # Extract the first word of "ranlib", so it can be a program name with args.
3417 set dummy ranlib
; ac_word
=$2
3418 echo "$as_me:3417: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 if test -n "$ac_ct_RANLIB"; then
3424 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3426 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3428 for ac_dir
in $ac_dummy; do
3430 test -z "$ac_dir" && ac_dir
=.
3431 $as_executable_p "$ac_dir/$ac_word" ||
continue
3432 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3433 echo "$as_me:3432: found $ac_dir/$ac_word" >&5
3437 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3440 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3441 if test -n "$ac_ct_RANLIB"; then
3442 echo "$as_me:3441: result: $ac_ct_RANLIB" >&5
3443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3445 echo "$as_me:3444: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 RANLIB
=$ac_ct_RANLIB
3451 RANLIB
="$ac_cv_prog_RANLIB"
3456 echo "$as_me:3455: checking for AIX" >&5
3457 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3458 cat >conftest.
$ac_ext <<_ACEOF
3459 #line 3453 "configure"
3460 #include "confdefs.h"
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 egrep "yes" >/dev
/null
2>&1; then
3468 echo "$as_me:3467: result: yes" >&5
3469 echo "${ECHO_T}yes" >&6
3470 cat >>confdefs.h
<<\EOF
3471 #define _ALL_SOURCE 1
3475 echo "$as_me:3474: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3480 #### Extract some information from the operating system and machine files.
3482 { echo "$as_me:3481: checking the machine- and system-dependent files to find out
3483 - which libraries the lib-src programs will want, and
3484 - whether the GNU malloc routines are usable..." >&5
3485 echo "$as_me: checking the machine- and system-dependent files to find out
3486 - which libraries the lib-src programs will want, and
3487 - whether the GNU malloc routines are usable..." >&6;}
3489 ### First figure out CFLAGS (which we use for running the compiler here)
3490 ### and REAL_CFLAGS (which we use for real compilation).
3491 ### The two are the same except on a few systems, where they are made
3492 ### different to work around various lossages. For example,
3493 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3494 ### as implying static linking.
3496 ### If the CFLAGS env var is specified, we use that value
3497 ### instead of the default.
3499 ### It's not important that this name contain the PID; you can't run
3500 ### two configures in the same directory and have anything work
3502 tempcname
="conftest.c"
3505 #include "'${srcdir}'/src/'${opsysfile}'"
3506 #include "'${srcdir}'/src/'${machfile}'"
3507 #ifndef LIBS_MACHINE
3508 #define LIBS_MACHINE
3513 #ifndef C_SWITCH_SYSTEM
3514 #define C_SWITCH_SYSTEM
3516 #ifndef C_SWITCH_MACHINE
3517 #define C_SWITCH_MACHINE
3519 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3520 configure___ c_switch_system=C_SWITCH_SYSTEM
3521 configure___ c_switch_machine=C_SWITCH_MACHINE
3524 #define LIB_X11_LIB -lX11
3527 #ifndef LIBX11_MACHINE
3528 #define LIBX11_MACHINE
3531 #ifndef LIBX11_SYSTEM
3532 #define LIBX11_SYSTEM
3534 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3537 configure___ unexec=UNEXEC
3539 configure___ unexec=unexec.o
3542 #ifdef SYSTEM_MALLOC
3543 configure___ system_malloc=yes
3545 configure___ system_malloc=no
3548 #ifdef USE_MMAP_FOR_BUFFERS
3549 configure___ use_mmap_for_buffers=yes
3551 configure___ use_mmap_for_buffers=no
3554 #ifndef C_DEBUG_SWITCH
3555 #define C_DEBUG_SWITCH -g
3558 #ifndef C_OPTIMIZE_SWITCH
3560 #define C_OPTIMIZE_SWITCH -O2
3562 #define C_OPTIMIZE_SWITCH -O
3566 #ifndef LD_SWITCH_MACHINE
3567 #define LD_SWITCH_MACHINE
3570 #ifndef LD_SWITCH_SYSTEM
3571 #define LD_SWITCH_SYSTEM
3574 #ifndef LD_SWITCH_X_SITE_AUX
3575 #define LD_SWITCH_X_SITE_AUX
3578 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3579 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3581 #ifdef THIS_IS_CONFIGURE
3583 /* Get the CFLAGS for tests in configure. */
3585 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3587 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3590 #else /* not THIS_IS_CONFIGURE */
3592 /* Get the CFLAGS for real compilation. */
3594 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3596 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3599 #endif /* not THIS_IS_CONFIGURE */
3602 # The value of CPP is a quoted variable reference, so we need to do this
3603 # to get its actual value...
3604 CPP
=`eval "echo $CPP"`
3605 eval `${CPP} -Isrc ${tempcname} \
3606 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3607 if test "x$SPECIFIED_CFLAGS" = x
; then
3608 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3609 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3611 REAL_CFLAGS
="$CFLAGS"
3615 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3617 ### Make sure subsequent tests use flags consistent with the build flags.
3619 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3620 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3622 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3625 # Check whether --enable-largefile or --disable-largefile was given.
3626 if test "${enable_largefile+set}" = set; then
3627 enableval
="$enable_largefile"
3630 if test "$enable_largefile" != no
; then
3632 echo "$as_me:3631: checking for special C compiler options needed for large files" >&5
3633 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3634 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_sys_largefile_CC
=no
3638 if test "$GCC" != yes; then
3641 # IRIX 6.2 and later do not support large files by default,
3642 # so use the C compiler's -n32 option if that helps.
3643 cat >conftest.
$ac_ext <<_ACEOF
3644 #line 3638 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 /* Check that off_t can represent 2**63 - 1 correctly.
3648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649 since some C++ compilers masquerading as C compilers
3650 incorrectly reject 9223372036854775807. */
3651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653 && LARGE_OFF_T % 2147483647 == 1)
3663 rm -f conftest.
$ac_objext
3664 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>&5
3667 echo "$as_me:3666: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try
='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3673 echo "$as_me:3672: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.
$ac_ext >&5
3680 rm -f conftest.
$ac_objext
3682 rm -f conftest.
$ac_objext
3683 if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3686 echo "$as_me:3685: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try
='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:3688: \"$ac_try\"") >&5
3692 echo "$as_me:3691: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_sys_largefile_CC
=' -n32'; break
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 rm -f conftest.
$ac_objext
3703 rm -f conftest.
$ac_ext
3706 echo "$as_me:3705: result: $ac_cv_sys_largefile_CC" >&5
3707 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3708 if test "$ac_cv_sys_largefile_CC" != no
; then
3709 CC
=$CC$ac_cv_sys_largefile_CC
3712 echo "$as_me:3711: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3713 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3714 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_sys_file_offset_bits
=no
3719 cat >conftest.
$ac_ext <<_ACEOF
3720 #line 3714 "configure"
3721 #include "confdefs.h"
3722 #include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725 since some C++ compilers masquerading as C compilers
3726 incorrectly reject 9223372036854775807. */
3727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729 && LARGE_OFF_T % 2147483647 == 1)
3739 rm -f conftest.
$ac_objext
3740 if { (eval echo "$as_me:3739: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3743 echo "$as_me:3742: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try
='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3749 echo "$as_me:3748: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.
$ac_ext >&5
3756 rm -f conftest.
$ac_objext conftest.
$ac_ext
3757 cat >conftest.
$ac_ext <<_ACEOF
3758 #line 3752 "configure"
3759 #include "confdefs.h"
3760 #define _FILE_OFFSET_BITS 64
3761 #include <sys/types.h>
3762 /* Check that off_t can represent 2**63 - 1 correctly.
3763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3764 since some C++ compilers masquerading as C compilers
3765 incorrectly reject 9223372036854775807. */
3766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3768 && LARGE_OFF_T % 2147483647 == 1)
3778 rm -f conftest.
$ac_objext
3779 if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>&5
3782 echo "$as_me:3781: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try
='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:3784: \"$ac_try\"") >&5
3788 echo "$as_me:3787: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_cv_sys_file_offset_bits
=64; break
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.
$ac_ext >&5
3795 rm -f conftest.
$ac_objext conftest.
$ac_ext
3799 echo "$as_me:3798: result: $ac_cv_sys_file_offset_bits" >&5
3800 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3801 if test "$ac_cv_sys_file_offset_bits" != no
; then
3803 cat >>confdefs.h
<<EOF
3804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3809 echo "$as_me:3808: checking for _LARGE_FILES value needed for large files" >&5
3810 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3811 if test "${ac_cv_sys_large_files+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 ac_cv_sys_large_files
=no
3816 cat >conftest.
$ac_ext <<_ACEOF
3817 #line 3811 "configure"
3818 #include "confdefs.h"
3819 #include <sys/types.h>
3820 /* Check that off_t can represent 2**63 - 1 correctly.
3821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3822 since some C++ compilers masquerading as C compilers
3823 incorrectly reject 9223372036854775807. */
3824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3826 && LARGE_OFF_T % 2147483647 == 1)
3836 rm -f conftest.
$ac_objext
3837 if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3840 echo "$as_me:3839: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try
='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3846 echo "$as_me:3845: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3850 echo "$as_me: failed program was:" >&5
3851 cat conftest.
$ac_ext >&5
3853 rm -f conftest.
$ac_objext conftest.
$ac_ext
3854 cat >conftest.
$ac_ext <<_ACEOF
3855 #line 3849 "configure"
3856 #include "confdefs.h"
3857 #define _LARGE_FILES 1
3858 #include <sys/types.h>
3859 /* Check that off_t can represent 2**63 - 1 correctly.
3860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3861 since some C++ compilers masquerading as C compilers
3862 incorrectly reject 9223372036854775807. */
3863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3865 && LARGE_OFF_T % 2147483647 == 1)
3875 rm -f conftest.
$ac_objext
3876 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>&5
3879 echo "$as_me:3878: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try
='test -s conftest.$ac_objext'
3882 { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3885 echo "$as_me:3884: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_sys_large_files
=1; break
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.
$ac_ext >&5
3892 rm -f conftest.
$ac_objext conftest.
$ac_ext
3896 echo "$as_me:3895: result: $ac_cv_sys_large_files" >&5
3897 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3898 if test "$ac_cv_sys_large_files" != no
; then
3900 cat >>confdefs.h
<<EOF
3901 #define _LARGE_FILES $ac_cv_sys_large_files
3908 if test "${with_sound}" != "no"; then
3909 # Sound support for GNU/Linux and the free BSDs.
3911 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3913 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3914 echo "$as_me:3913: checking for $ac_header" >&5
3915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 cat >conftest.
$ac_ext <<_ACEOF
3920 #line 3914 "configure"
3921 #include "confdefs.h"
3922 #include <$ac_header>
3924 if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5
3925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3927 egrep -v '^ *\+' conftest.er1
>conftest.err
3929 cat conftest.err
>&5
3930 echo "$as_me:3929: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev
/null
; then
3932 if test -s conftest.err
; then
3933 ac_cpp_err
=$ac_c_preproc_warn_flag
3940 if test -z "$ac_cpp_err"; then
3941 eval "$as_ac_Header=yes"
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3945 eval "$as_ac_Header=no"
3947 rm -f conftest.err conftest.
$ac_ext
3949 echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952 cat >>confdefs.h
<<EOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3959 # Emulation library used on NetBSD.
3960 echo "$as_me:3959: checking for _oss_ioctl in -lossaudio" >&5
3961 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3962 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 ac_check_lib_save_LIBS
=$LIBS
3966 LIBS
="-lossaudio $LIBS"
3967 cat >conftest.
$ac_ext <<_ACEOF
3968 #line 3962 "configure"
3969 #include "confdefs.h"
3971 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3986 rm -f conftest.
$ac_objext conftest
$ac_exeext
3987 if { (eval echo "$as_me:3986: \"$ac_link\"") >&5
3988 (eval $ac_link) 2>&5
3990 echo "$as_me:3989: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try
='test -s conftest$ac_exeext'
3993 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3996 echo "$as_me:3995: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_lib_ossaudio__oss_ioctl
=yes
4000 echo "$as_me: failed program was:" >&5
4001 cat conftest.
$ac_ext >&5
4002 ac_cv_lib_ossaudio__oss_ioctl
=no
4004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4005 LIBS
=$ac_check_lib_save_LIBS
4007 echo "$as_me:4006: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4008 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4009 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4017 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4018 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4019 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4021 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 echo "$as_me:4021: checking for $ac_header" >&5
4023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.
$ac_ext <<_ACEOF
4028 #line 4022 "configure"
4029 #include "confdefs.h"
4030 #include <$ac_header>
4032 if { (eval echo "$as_me:4031: \"$ac_cpp conftest.$ac_ext\"") >&5
4033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4035 egrep -v '^ *\+' conftest.er1
>conftest.err
4037 cat conftest.err
>&5
4038 echo "$as_me:4037: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev
/null
; then
4040 if test -s conftest.err
; then
4041 ac_cpp_err
=$ac_c_preproc_warn_flag
4048 if test -z "$ac_cpp_err"; then
4049 eval "$as_ac_Header=yes"
4051 echo "$as_me: failed program was:" >&5
4052 cat conftest.
$ac_ext >&5
4053 eval "$as_ac_Header=no"
4055 rm -f conftest.err conftest.
$ac_ext
4057 echo "$as_me:4056: result: `eval echo '${'$as_ac_Header'}'`" >&5
4058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h
<<EOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067 echo "$as_me:4066: checking for ANSI C header files" >&5
4068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4069 if test "${ac_cv_header_stdc+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 cat >conftest.
$ac_ext <<_ACEOF
4073 #line 4067 "configure"
4074 #include "confdefs.h"
4081 if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4084 egrep -v '^ *\+' conftest.er1
>conftest.err
4086 cat conftest.err
>&5
4087 echo "$as_me:4086: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev
/null
; then
4089 if test -s conftest.err
; then
4090 ac_cpp_err
=$ac_c_preproc_warn_flag
4097 if test -z "$ac_cpp_err"; then
4098 ac_cv_header_stdc
=yes
4100 echo "$as_me: failed program was:" >&5
4101 cat conftest.
$ac_ext >&5
4102 ac_cv_header_stdc
=no
4104 rm -f conftest.err conftest.
$ac_ext
4106 if test $ac_cv_header_stdc = yes; then
4107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108 cat >conftest.
$ac_ext <<_ACEOF
4109 #line 4103 "configure"
4110 #include "confdefs.h"
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "memchr" >/dev
/null
2>&1; then
4118 ac_cv_header_stdc
=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat >conftest.
$ac_ext <<_ACEOF
4127 #line 4121 "configure"
4128 #include "confdefs.h"
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 egrep "free" >/dev
/null
2>&1; then
4136 ac_cv_header_stdc
=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4147 cat >conftest.
$ac_ext <<_ACEOF
4148 #line 4142 "configure"
4149 #include "confdefs.h"
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4173 rm -f conftest
$ac_exeext
4174 if { (eval echo "$as_me:4173: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>&5
4177 echo "$as_me:4176: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4179 { (eval echo "$as_me:4178: \"$ac_try\"") >&5
4182 echo "$as_me:4181: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4186 echo "$as_me: program exited with status $ac_status" >&5
4187 echo "$as_me: failed program was:" >&5
4188 cat conftest.
$ac_ext >&5
4189 ac_cv_header_stdc
=no
4191 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4195 echo "$as_me:4194: result: $ac_cv_header_stdc" >&5
4196 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4197 if test $ac_cv_header_stdc = yes; then
4199 cat >>confdefs.h
<<\EOF
4200 #define STDC_HEADERS 1
4205 echo "$as_me:4204: checking whether time.h and sys/time.h may both be included" >&5
4206 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4207 if test "${ac_cv_header_time+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 cat >conftest.
$ac_ext <<_ACEOF
4211 #line 4205 "configure"
4212 #include "confdefs.h"
4213 #include <sys/types.h>
4214 #include <sys/time.h>
4220 if ((struct tm *) 0)
4226 rm -f conftest.
$ac_objext
4227 if { (eval echo "$as_me:4226: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4230 echo "$as_me:4229: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try
='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:4232: \"$ac_try\"") >&5
4236 echo "$as_me:4235: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_cv_header_time
=yes
4240 echo "$as_me: failed program was:" >&5
4241 cat conftest.
$ac_ext >&5
4242 ac_cv_header_time
=no
4244 rm -f conftest.
$ac_objext conftest.
$ac_ext
4246 echo "$as_me:4245: result: $ac_cv_header_time" >&5
4247 echo "${ECHO_T}$ac_cv_header_time" >&6
4248 if test $ac_cv_header_time = yes; then
4250 cat >>confdefs.h
<<\EOF
4251 #define TIME_WITH_SYS_TIME 1
4256 echo "$as_me:4255: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4257 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4258 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 cat >conftest.
$ac_ext <<_ACEOF
4262 #line 4256 "configure"
4263 #include "confdefs.h"
4264 #include <sys/types.h>
4266 /* NetBSD declares sys_siglist in unistd.h. */
4268 # include <unistd.h>
4274 char *msg = *(sys_siglist + 1);
4279 rm -f conftest.
$ac_objext
4280 if { (eval echo "$as_me:4279: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
4283 echo "$as_me:4282: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try
='test -s conftest.$ac_objext'
4286 { (eval echo "$as_me:4285: \"$ac_try\"") >&5
4289 echo "$as_me:4288: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_decl_sys_siglist
=yes
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4295 ac_cv_decl_sys_siglist
=no
4297 rm -f conftest.
$ac_objext conftest.
$ac_ext
4299 echo "$as_me:4298: result: $ac_cv_decl_sys_siglist" >&5
4300 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4301 if test $ac_cv_decl_sys_siglist = yes; then
4303 cat >>confdefs.h
<<\EOF
4304 #define SYS_SIGLIST_DECLARED 1
4309 echo "$as_me:4308: checking for sys/wait.h that is POSIX.1 compatible" >&5
4310 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4311 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 cat >conftest.
$ac_ext <<_ACEOF
4315 #line 4309 "configure"
4316 #include "confdefs.h"
4317 #include <sys/types.h>
4318 #include <sys/wait.h>
4320 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4323 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4331 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4336 rm -f conftest.
$ac_objext
4337 if { (eval echo "$as_me:4336: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4340 echo "$as_me:4339: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:4342: \"$ac_try\"") >&5
4346 echo "$as_me:4345: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_header_sys_wait_h
=yes
4350 echo "$as_me: failed program was:" >&5
4351 cat conftest.
$ac_ext >&5
4352 ac_cv_header_sys_wait_h
=no
4354 rm -f conftest.
$ac_objext conftest.
$ac_ext
4356 echo "$as_me:4355: result: $ac_cv_header_sys_wait_h" >&5
4357 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4358 if test $ac_cv_header_sys_wait_h = yes; then
4360 cat >>confdefs.h
<<\EOF
4361 #define HAVE_SYS_WAIT_H 1
4366 echo "$as_me:4365: checking for struct utimbuf" >&5
4367 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4368 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.
$ac_ext <<_ACEOF
4372 #line 4366 "configure"
4373 #include "confdefs.h"
4374 #ifdef TIME_WITH_SYS_TIME
4375 #include <sys/time.h>
4378 #ifdef HAVE_SYS_TIME_H
4379 #include <sys/time.h>
4390 static struct utimbuf x; x.actime = x.modtime;
4395 rm -f conftest.
$ac_objext
4396 if { (eval echo "$as_me:4395: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4399 echo "$as_me:4398: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try
='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:4401: \"$ac_try\"") >&5
4405 echo "$as_me:4404: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 emacs_cv_struct_utimbuf
=yes
4409 echo "$as_me: failed program was:" >&5
4410 cat conftest.
$ac_ext >&5
4411 emacs_cv_struct_utimbuf
=no
4413 rm -f conftest.
$ac_objext conftest.
$ac_ext
4415 echo "$as_me:4414: result: $emacs_cv_struct_utimbuf" >&5
4416 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4417 if test $emacs_cv_struct_utimbuf = yes; then
4419 cat >>confdefs.h
<<\EOF
4420 #define HAVE_STRUCT_UTIMBUF 1
4425 echo "$as_me:4424: checking return type of signal handlers" >&5
4426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4427 if test "${ac_cv_type_signal+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 cat >conftest.
$ac_ext <<_ACEOF
4431 #line 4425 "configure"
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4439 extern "C" void (*signal (int, void (*)(int)))(int);
4441 void (*signal ()) ();
4452 rm -f conftest.
$ac_objext
4453 if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>&5
4456 echo "$as_me:4455: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try
='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:4458: \"$ac_try\"") >&5
4462 echo "$as_me:4461: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_type_signal
=void
4466 echo "$as_me: failed program was:" >&5
4467 cat conftest.
$ac_ext >&5
4468 ac_cv_type_signal
=int
4470 rm -f conftest.
$ac_objext conftest.
$ac_ext
4472 echo "$as_me:4471: result: $ac_cv_type_signal" >&5
4473 echo "${ECHO_T}$ac_cv_type_signal" >&6
4475 cat >>confdefs.h
<<EOF
4476 #define RETSIGTYPE $ac_cv_type_signal
4479 echo "$as_me:4478: checking for speed_t" >&5
4480 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4481 if test "${emacs_cv_speed_t+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 cat >conftest.
$ac_ext <<_ACEOF
4485 #line 4479 "configure"
4486 #include "confdefs.h"
4487 #include <termios.h>
4496 rm -f conftest.
$ac_objext
4497 if { (eval echo "$as_me:4496: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4500 echo "$as_me:4499: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:4502: \"$ac_try\"") >&5
4506 echo "$as_me:4505: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 emacs_cv_speed_t
=yes
4510 echo "$as_me: failed program was:" >&5
4511 cat conftest.
$ac_ext >&5
4514 rm -f conftest.
$ac_objext conftest.
$ac_ext
4516 echo "$as_me:4515: result: $emacs_cv_speed_t" >&5
4517 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4518 if test $emacs_cv_speed_t = yes; then
4520 cat >>confdefs.h
<<\EOF
4521 #define HAVE_SPEED_T 1
4526 echo "$as_me:4525: checking for struct timeval" >&5
4527 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4528 if test "${emacs_cv_struct_timeval+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.
$ac_ext <<_ACEOF
4532 #line 4526 "configure"
4533 #include "confdefs.h"
4534 #ifdef TIME_WITH_SYS_TIME
4535 #include <sys/time.h>
4538 #ifdef HAVE_SYS_TIME_H
4539 #include <sys/time.h>
4547 static struct timeval x; x.tv_sec = x.tv_usec;
4552 rm -f conftest.
$ac_objext
4553 if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>&5
4556 echo "$as_me:4555: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try
='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:4558: \"$ac_try\"") >&5
4562 echo "$as_me:4561: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 emacs_cv_struct_timeval
=yes
4566 echo "$as_me: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4568 emacs_cv_struct_timeval
=no
4570 rm -f conftest.
$ac_objext conftest.
$ac_ext
4572 echo "$as_me:4571: result: $emacs_cv_struct_timeval" >&5
4573 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4574 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4575 if test $emacs_cv_struct_timeval = yes; then
4577 cat >>confdefs.h
<<\EOF
4578 #define HAVE_TIMEVAL 1
4583 echo "$as_me:4582: checking for struct exception" >&5
4584 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4585 if test "${emacs_cv_struct_exception+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.
$ac_ext <<_ACEOF
4589 #line 4583 "configure"
4590 #include "confdefs.h"
4595 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:4600: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4604 echo "$as_me:4603: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try
='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:4606: \"$ac_try\"") >&5
4610 echo "$as_me:4609: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 emacs_cv_struct_exception
=yes
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4616 emacs_cv_struct_exception
=no
4618 rm -f conftest.
$ac_objext conftest.
$ac_ext
4620 echo "$as_me:4619: result: $emacs_cv_struct_exception" >&5
4621 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4622 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4623 if test $emacs_cv_struct_exception != yes; then
4625 cat >>confdefs.h
<<\EOF
4626 #define NO_MATHERR 1
4631 echo "$as_me:4630: checking whether struct tm is in sys/time.h or time.h" >&5
4632 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4633 if test "${ac_cv_struct_tm+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 cat >conftest.
$ac_ext <<_ACEOF
4637 #line 4631 "configure"
4638 #include "confdefs.h"
4639 #include <sys/types.h>
4645 struct tm *tp; tp->tm_sec;
4650 rm -f conftest.
$ac_objext
4651 if { (eval echo "$as_me:4650: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>&5
4654 echo "$as_me:4653: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try
='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:4656: \"$ac_try\"") >&5
4660 echo "$as_me:4659: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_struct_tm
=time.h
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.
$ac_ext >&5
4666 ac_cv_struct_tm
=sys
/time.h
4668 rm -f conftest.
$ac_objext conftest.
$ac_ext
4670 echo "$as_me:4669: result: $ac_cv_struct_tm" >&5
4671 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4672 if test $ac_cv_struct_tm = sys
/time.h
; then
4674 cat >>confdefs.h
<<\EOF
4675 #define TM_IN_SYS_TIME 1
4680 echo "$as_me:4679: checking for struct tm.tm_zone" >&5
4681 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4682 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 cat >conftest.
$ac_ext <<_ACEOF
4686 #line 4680 "configure"
4687 #include "confdefs.h"
4688 #include <sys/types.h>
4689 #include <$ac_cv_struct_tm>
4694 static struct tm ac_aggr;
4695 if (ac_aggr.tm_zone)
4701 rm -f conftest.
$ac_objext
4702 if { (eval echo "$as_me:4701: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4705 echo "$as_me:4704: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:4707: \"$ac_try\"") >&5
4711 echo "$as_me:4710: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_member_struct_tm_tm_zone
=yes
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4717 ac_cv_member_struct_tm_tm_zone
=no
4719 rm -f conftest.
$ac_objext conftest.
$ac_ext
4721 echo "$as_me:4720: result: $ac_cv_member_struct_tm_tm_zone" >&5
4722 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4723 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4725 cat >>confdefs.h
<<EOF
4726 #define HAVE_STRUCT_TM_TM_ZONE 1
4731 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4733 cat >>confdefs.h
<<\EOF
4734 #define HAVE_TM_ZONE 1
4738 echo "$as_me:4737: checking for tzname" >&5
4739 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4740 if test "${ac_cv_var_tzname+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 cat >conftest.
$ac_ext <<_ACEOF
4744 #line 4738 "configure"
4745 #include "confdefs.h"
4747 #ifndef tzname /* For SGI. */
4748 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4759 rm -f conftest.
$ac_objext conftest
$ac_exeext
4760 if { (eval echo "$as_me:4759: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>&5
4763 echo "$as_me:4762: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try
='test -s conftest$ac_exeext'
4766 { (eval echo "$as_me:4765: \"$ac_try\"") >&5
4769 echo "$as_me:4768: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_var_tzname
=yes
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.
$ac_ext >&5
4777 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4779 echo "$as_me:4778: result: $ac_cv_var_tzname" >&5
4780 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4781 if test $ac_cv_var_tzname = yes; then
4783 cat >>confdefs.h
<<\EOF
4784 #define HAVE_TZNAME 1
4790 echo "$as_me:4789: checking for struct tm.tm_gmtoff" >&5
4791 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4792 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 cat >conftest.
$ac_ext <<_ACEOF
4796 #line 4790 "configure"
4797 #include "confdefs.h"
4803 static struct tm ac_aggr;
4804 if (ac_aggr.tm_gmtoff)
4810 rm -f conftest.
$ac_objext
4811 if { (eval echo "$as_me:4810: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4814 echo "$as_me:4813: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try
='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:4816: \"$ac_try\"") >&5
4820 echo "$as_me:4819: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_member_struct_tm_tm_gmtoff
=yes
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.
$ac_ext >&5
4826 ac_cv_member_struct_tm_tm_gmtoff
=no
4828 rm -f conftest.
$ac_objext conftest.
$ac_ext
4830 echo "$as_me:4829: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4832 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4834 cat >>confdefs.h
<<\EOF
4835 #define HAVE_TM_GMTOFF 1
4840 echo "$as_me:4839: checking for $CC option to accept ANSI C" >&5
4841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 ac_cv_prog_cc_stdc
=no
4847 cat >conftest.
$ac_ext <<_ACEOF
4848 #line 4842 "configure"
4849 #include "confdefs.h"
4852 #include <sys/types.h>
4853 #include <sys/stat.h>
4854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4855 struct buf { int x; };
4856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4857 static char *e (p, i)
4863 static char *f (char * (*g) (char **, int), char **p, ...)
4868 s = g (p, va_arg (v,int));
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 # Don't try gcc -ansi; that turns off useful extensions and
4887 # breaks some systems' header files.
4888 # AIX -qlanglvl=ansi
4889 # Ultrix and OSF/1 -std1
4890 # HP-UX 10.20 and later -Ae
4891 # HP-UX older versions -Aa -D_HPUX_SOURCE
4892 # SVR4 -Xc -D__EXTENSIONS__
4893 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4895 CC
="$ac_save_CC $ac_arg"
4896 rm -f conftest.
$ac_objext
4897 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>&5
4900 echo "$as_me:4899: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try
='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4906 echo "$as_me:4905: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_cv_prog_cc_stdc
=$ac_arg
4911 echo "$as_me: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4914 rm -f conftest.
$ac_objext
4916 rm -f conftest.
$ac_ext conftest.
$ac_objext
4921 case "x$ac_cv_prog_cc_stdc" in
4923 echo "$as_me:4922: result: none needed" >&5
4924 echo "${ECHO_T}none needed" >&6 ;;
4926 echo "$as_me:4925: result: $ac_cv_prog_cc_stdc" >&5
4927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4928 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4931 echo "$as_me:4930: checking for function prototypes" >&5
4932 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4933 if test "$ac_cv_prog_cc_stdc" != no
; then
4934 echo "$as_me:4933: result: yes" >&5
4935 echo "${ECHO_T}yes" >&6
4937 cat >>confdefs.h
<<\EOF
4938 #define PROTOTYPES 1
4942 echo "$as_me:4941: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 echo "$as_me:4945: checking for working volatile" >&5
4947 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4948 if test "${ac_cv_c_volatile+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 cat >conftest.
$ac_ext <<_ACEOF
4952 #line 4946 "configure"
4953 #include "confdefs.h"
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:4965: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 echo "$as_me:4968: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try
='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:4971: \"$ac_try\"") >&5
4975 echo "$as_me:4974: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_c_volatile
=yes
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4983 rm -f conftest.
$ac_objext conftest.
$ac_ext
4985 echo "$as_me:4984: result: $ac_cv_c_volatile" >&5
4986 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4987 if test $ac_cv_c_volatile = no
; then
4989 cat >>confdefs.h
<<\EOF
4995 echo "$as_me:4994: checking for an ANSI C-conforming const" >&5
4996 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4997 if test "${ac_cv_c_const+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5001 #line 4995 "configure"
5002 #include "confdefs.h"
5007 /* FIXME: Include the comments suggested by Paul. */
5009 /* Ultrix mips cc rejects this. */
5010 typedef int charset[2];
5012 /* SunOS 4.1.1 cc rejects this. */
5013 char const *const *ccp;
5015 /* NEC SVR4.0.2 mips cc rejects this. */
5016 struct point {int x, y;};
5017 static struct point const zero = {0,0};
5018 /* AIX XL C 1.02.0.0 rejects this.
5019 It does not let you subtract one const X* pointer from another in
5020 an arm of an if-expression whose if-part is not a constant
5022 const char *g = "string";
5023 ccp = &g + (g ? g-g : 0);
5024 /* HPUX 7.0 cc rejects these. */
5027 ccp = (char const *const *) p;
5028 { /* SCO 3.2v4 cc rejects this. */
5030 char const *s = 0 ? (char *) 0 : (char const *) 0;
5034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5036 const int *foo = &x[0];
5039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5040 typedef const int *iptr;
5044 { /* AIX XL C 1.02.0.0 rejects this saying
5045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5046 struct s { int j; const int *ap[3]; };
5047 struct s *b; b->j = 5;
5049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5058 rm -f conftest.
$ac_objext
5059 if { (eval echo "$as_me:5058: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5062 echo "$as_me:5061: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try
='test -s conftest.$ac_objext'
5065 { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5068 echo "$as_me:5067: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5072 echo "$as_me: failed program was:" >&5
5073 cat conftest.
$ac_ext >&5
5076 rm -f conftest.
$ac_objext conftest.
$ac_ext
5078 echo "$as_me:5077: result: $ac_cv_c_const" >&5
5079 echo "${ECHO_T}$ac_cv_c_const" >&6
5080 if test $ac_cv_c_const = no
; then
5082 cat >>confdefs.h
<<\EOF
5088 echo "$as_me:5087: checking for void * support" >&5
5089 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5090 if test "${emacs_cv_void_star+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 cat >conftest.
$ac_ext <<_ACEOF
5094 #line 5088 "configure"
5095 #include "confdefs.h"
5105 rm -f conftest.
$ac_objext
5106 if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>&5
5109 echo "$as_me:5108: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:5111: \"$ac_try\"") >&5
5115 echo "$as_me:5114: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 emacs_cv_void_star
=yes
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.
$ac_ext >&5
5121 emacs_cv_void_star
=no
5123 rm -f conftest.
$ac_objext conftest.
$ac_ext
5125 echo "$as_me:5124: result: $emacs_cv_void_star" >&5
5126 echo "${ECHO_T}$emacs_cv_void_star" >&6
5127 if test $emacs_cv_void_star = yes; then
5128 cat >>confdefs.h
<<\EOF
5129 #define POINTER_TYPE void
5133 cat >>confdefs.h
<<\EOF
5134 #define POINTER_TYPE char
5139 echo "$as_me:5138: checking whether ${MAKE-make} sets \${MAKE}" >&5
5140 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5141 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5142 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 cat >conftest.
make <<\EOF
5147 @
echo 'ac_maketemp="${MAKE}"'
5149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5150 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5151 if test -n "$ac_maketemp"; then
5152 eval ac_cv_prog_make_
${ac_make}_set
=yes
5154 eval ac_cv_prog_make_
${ac_make}_set
=no
5158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5159 echo "$as_me:5158: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5163 echo "$as_me:5162: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165 SET_MAKE
="MAKE=${MAKE-make}"
5168 echo "$as_me:5167: checking for long file names" >&5
5169 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5170 if test "${ac_cv_sys_long_file_names+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_cv_sys_long_file_names
=yes
5174 # Test for long file names in all the places we know might matter:
5175 # . the current directory, where building will happen
5176 # $prefix/lib where we will be installing things
5177 # $exec_prefix/lib likewise
5178 # eval it to expand exec_prefix.
5179 # $TMPDIR if set, where it might want to write temporary files
5180 # if $TMPDIR is not set:
5181 # /tmp where it might want to write temporary files
5184 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5187 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5189 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5190 test -d $ac_dir ||
continue
5191 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5192 ac_xdir
=$ac_dir/cf$$
5193 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5194 ac_tf1
=$ac_xdir/conftest9012345
5195 ac_tf2
=$ac_xdir/conftest9012346
5196 (echo 1 >$ac_tf1) 2>/dev
/null
5197 (echo 2 >$ac_tf2) 2>/dev
/null
5198 ac_val
=`cat $ac_tf1 2>/dev/null`
5199 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5200 ac_cv_sys_long_file_names
=no
5201 rm -rf $ac_xdir 2>/dev
/null
5204 rm -rf $ac_xdir 2>/dev
/null
5207 echo "$as_me:5206: result: $ac_cv_sys_long_file_names" >&5
5208 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5209 if test $ac_cv_sys_long_file_names = yes; then
5211 cat >>confdefs.h
<<\EOF
5212 #define HAVE_LONG_FILE_NAMES 1
5217 #### Choose a window system.
5219 echo "$as_me:5218: checking for X" >&5
5220 echo $ECHO_N "checking for X... $ECHO_C" >&6
5222 # Check whether --with-x or --without-x was given.
5223 if test "${with_x+set}" = set; then
5227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5228 if test "x$with_x" = xno
; then
5229 # The user explicitly disabled X.
5232 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5233 # Both variables are already set.
5236 if test "${ac_cv_have_x+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 # One or both of the vars are not set, and there is no cached value.
5240 ac_x_includes
=no ac_x_libraries
=no
5242 if mkdir conftest.dir
; then
5244 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5245 cat >Imakefile
<<'EOF'
5247 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5249 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5251 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5252 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5253 for ac_extension
in a so sl
; do
5254 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5255 test -f $ac_im_libdir/libX11.
$ac_extension; then
5256 ac_im_usrlibdir
=$ac_im_libdir; break
5259 # Screen out bogus values from the imake configuration. They are
5260 # bogus both because they are the default anyway, and because
5261 # using them would break gcc on systems where it needs fixed includes.
5262 case $ac_im_incroot in
5264 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5266 case $ac_im_usrlibdir in
5268 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5275 # Standard set of common directories for X headers.
5276 # Check X11 before X11Rn because it is often a symlink to the current release.
5288 /usr/local/X11/include
5289 /usr/local/X11R6/include
5290 /usr/local/X11R5/include
5291 /usr/local/X11R4/include
5293 /usr/local/include/X11
5294 /usr/local/include/X11R6
5295 /usr/local/include/X11R5
5296 /usr/local/include/X11R4
5300 /usr/XFree86/include/X11
5304 /usr/unsupported/include
5306 /usr/local/x11r5/include
5307 /usr/lpp/Xamples/include
5309 /usr/openwin/include
5310 /usr/openwin/share/include'
5312 if test "$ac_x_includes" = no
; then
5313 # Guess where to find include files, by looking for Intrinsic.h.
5314 # First, try using that file with no special directory specified.
5315 cat >conftest.
$ac_ext <<_ACEOF
5316 #line 5310 "configure"
5317 #include "confdefs.h"
5318 #include <X11/Intrinsic.h>
5320 if { (eval echo "$as_me:5319: \"$ac_cpp conftest.$ac_ext\"") >&5
5321 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5323 egrep -v '^ *\+' conftest.er1
>conftest.err
5325 cat conftest.err
>&5
5326 echo "$as_me:5325: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev
/null
; then
5328 if test -s conftest.err
; then
5329 ac_cpp_err
=$ac_c_preproc_warn_flag
5336 if test -z "$ac_cpp_err"; then
5337 # We can compile using X headers with no special include directory.
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.
$ac_ext >&5
5342 for ac_dir
in $ac_x_header_dirs; do
5343 if test -r "$ac_dir/X11/Intrinsic.h"; then
5344 ac_x_includes
=$ac_dir
5349 rm -f conftest.err conftest.
$ac_ext
5350 fi # $ac_x_includes = no
5352 if test "$ac_x_libraries" = no
; then
5353 # Check for the libraries.
5354 # See if we find them without any special options.
5355 # Don't add to $LIBS permanently.
5358 cat >conftest.
$ac_ext <<_ACEOF
5359 #line 5353 "configure"
5360 #include "confdefs.h"
5361 #include <X11/Intrinsic.h>
5370 rm -f conftest.
$ac_objext conftest
$ac_exeext
5371 if { (eval echo "$as_me:5370: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5374 echo "$as_me:5373: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try
='test -s conftest$ac_exeext'
5377 { (eval echo "$as_me:5376: \"$ac_try\"") >&5
5380 echo "$as_me:5379: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5383 # We can link X programs with no special library path.
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.
$ac_ext >&5
5389 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5391 # Don't even attempt the hair of trying to link an X program!
5392 for ac_extension
in a so sl
; do
5393 if test -r $ac_dir/libXt.
$ac_extension; then
5394 ac_x_libraries
=$ac_dir
5400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5401 fi # $ac_x_libraries = no
5403 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5404 # Didn't find X anywhere. Cache the known absence of X.
5405 ac_cv_have_x
="have_x=no"
5407 # Record where we found X for the cache.
5408 ac_cv_have_x
="have_x=yes \
5409 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5414 eval "$ac_cv_have_x"
5417 if test "$have_x" != yes; then
5418 echo "$as_me:5417: result: $have_x" >&5
5419 echo "${ECHO_T}$have_x" >&6
5422 # If each of the values was on the command line, it overrides each guess.
5423 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5424 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5425 # Update the cache value to reflect the command line values.
5426 ac_cv_have_x
="have_x=yes \
5427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5428 echo "$as_me:5427: result: libraries $x_libraries, headers $x_includes" >&5
5429 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5432 if test "$no_x" = yes; then
5438 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5439 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5440 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5441 x_default_search_path
=""
5442 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5444 ${x_library}/X11/%L/%T/%N%C%S:\
5445 ${x_library}/X11/%l/%T/%N%C%S:\
5446 ${x_library}/X11/%T/%N%C%S:\
5447 ${x_library}/X11/%L/%T/%N%S:\
5448 ${x_library}/X11/%l/%T/%N%S:\
5449 ${x_library}/X11/%T/%N%S"
5450 if test x
"${x_default_search_path}" = x
; then
5451 x_default_search_path
=${x_search_path}
5453 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5457 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5458 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5461 if test x
"${x_includes}" = x
; then
5462 bitmapdir
=/usr
/include
/X11
/bitmaps
5464 # accumulate include directories that have X11 bitmap subdirectories
5466 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5467 if test -d "${bmd}/X11/bitmaps"; then
5468 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5470 if test -d "${bmd}/bitmaps"; then
5471 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5474 if test ${bmd_acc} != "dummyval"; then
5475 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5479 case "${window_system}" in
5483 case "${with_x_toolkit}" in
5484 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5485 motif
) USE_X_TOOLKIT
=MOTIF
;;
5486 no
) USE_X_TOOLKIT
=none
;;
5487 * ) USE_X_TOOLKIT
=maybe
;;
5497 ### If we're using X11, we should use the X menu package.
5500 yes ) HAVE_MENUS
=yes ;;
5503 if test "${opsys}" = "hpux9"; then
5504 case "${x_libraries}" in
5506 opsysfile
="s/hpux9-x11r4.h"
5511 if test "${opsys}" = "hpux9shr"; then
5512 case "${x_libraries}" in
5514 opsysfile
="s/hpux9shxr4.h"
5519 ### Compute the unexec source name from the object name.
5520 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5522 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5523 # Assume not, until told otherwise.
5526 echo "$as_me:5525: checking for malloc_get_state" >&5
5527 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5528 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 cat >conftest.
$ac_ext <<_ACEOF
5532 #line 5526 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char malloc_get_state (); below. */
5537 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5543 char malloc_get_state ();
5549 /* The GNU C library defines this for functions which it implements
5550 to always fail with ENOSYS. Some functions are actually named
5551 something starting with __ and the normal name is an alias. */
5552 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5555 f = malloc_get_state;
5562 rm -f conftest.
$ac_objext conftest
$ac_exeext
5563 if { (eval echo "$as_me:5562: \"$ac_link\"") >&5
5564 (eval $ac_link) 2>&5
5566 echo "$as_me:5565: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try
='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5572 echo "$as_me:5571: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_func_malloc_get_state
=yes
5576 echo "$as_me: failed program was:" >&5
5577 cat conftest.
$ac_ext >&5
5578 ac_cv_func_malloc_get_state
=no
5580 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5582 echo "$as_me:5581: result: $ac_cv_func_malloc_get_state" >&5
5583 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5584 if test $ac_cv_func_malloc_get_state = yes; then
5590 echo "$as_me:5589: checking for malloc_set_state" >&5
5591 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5592 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.
$ac_ext <<_ACEOF
5596 #line 5590 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char malloc_set_state (); below. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char malloc_set_state ();
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5619 f = malloc_set_state;
5626 rm -f conftest.
$ac_objext conftest
$ac_exeext
5627 if { (eval echo "$as_me:5626: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>&5
5630 echo "$as_me:5629: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try
='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:5632: \"$ac_try\"") >&5
5636 echo "$as_me:5635: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_cv_func_malloc_set_state
=yes
5640 echo "$as_me: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5642 ac_cv_func_malloc_set_state
=no
5644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5646 echo "$as_me:5645: result: $ac_cv_func_malloc_set_state" >&5
5647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5648 if test $ac_cv_func_malloc_set_state = yes; then
5654 echo "$as_me:5653: checking whether __after_morecore_hook exists" >&5
5655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 cat >conftest.
$ac_ext <<_ACEOF
5660 #line 5654 "configure"
5661 #include "confdefs.h"
5662 extern void (* __after_morecore_hook)();
5666 __after_morecore_hook = 0
5671 rm -f conftest.
$ac_objext conftest
$ac_exeext
5672 if { (eval echo "$as_me:5671: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>&5
5675 echo "$as_me:5674: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try
='test -s conftest$ac_exeext'
5678 { (eval echo "$as_me:5677: \"$ac_try\"") >&5
5681 echo "$as_me:5680: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 emacs_cv_var___after_morecore_hook
=yes
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5687 emacs_cv_var___after_morecore_hook
=no
5689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5691 echo "$as_me:5690: result: $emacs_cv_var___after_morecore_hook" >&5
5692 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5693 if test $emacs_cv_var___after_morecore_hook = no
; then
5696 if test "${system_malloc}" = "yes"; then
5699 (The GNU allocators don't work with this system configuration.)"
5701 if test "$doug_lea_malloc" = "yes" ; then
5702 if test "$GNU_MALLOC" = yes ; then
5704 (Using Doug Lea's new malloc from the GNU C Library.)"
5707 cat >>confdefs.h
<<\EOF
5708 #define DOUG_LEA_MALLOC 1
5713 if test x
"${REL_ALLOC}" = x
; then
5714 REL_ALLOC
=${GNU_MALLOC}
5717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5719 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5720 inttypes.h stdint.h unistd.h
5722 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 echo "$as_me:5722: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cat >conftest.
$ac_ext <<_ACEOF
5729 #line 5723 "configure"
5730 #include "confdefs.h"
5731 $ac_includes_default
5732 #include <$ac_header>
5734 rm -f conftest.
$ac_objext
5735 if { (eval echo "$as_me:5734: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5738 echo "$as_me:5737: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try
='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:5740: \"$ac_try\"") >&5
5744 echo "$as_me:5743: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 eval "$as_ac_Header=yes"
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.
$ac_ext >&5
5750 eval "$as_ac_Header=no"
5752 rm -f conftest.
$ac_objext conftest.
$ac_ext
5754 echo "$as_me:5753: result: `eval echo '${'$as_ac_Header'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5757 cat >>confdefs.h
<<EOF
5758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5764 for ac_header
in stdlib.h unistd.h
5766 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 echo "$as_me:5766: checking for $ac_header" >&5
5768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.
$ac_ext <<_ACEOF
5773 #line 5767 "configure"
5774 #include "confdefs.h"
5775 #include <$ac_header>
5777 if { (eval echo "$as_me:5776: \"$ac_cpp conftest.$ac_ext\"") >&5
5778 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5780 egrep -v '^ *\+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:5782: \$? = $ac_status" >&5
5784 (exit $ac_status); } >/dev
/null
; then
5785 if test -s conftest.err
; then
5786 ac_cpp_err
=$ac_c_preproc_warn_flag
5793 if test -z "$ac_cpp_err"; then
5794 eval "$as_ac_Header=yes"
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.
$ac_ext >&5
5798 eval "$as_ac_Header=no"
5800 rm -f conftest.err conftest.
$ac_ext
5802 echo "$as_me:5801: result: `eval echo '${'$as_ac_Header'}'`" >&5
5803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805 cat >>confdefs.h
<<EOF
5806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5812 for ac_func
in getpagesize
5814 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5815 echo "$as_me:5814: checking for $ac_func" >&5
5816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5817 if eval "test \"\${$as_ac_var+set}\" = set"; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 cat >conftest.
$ac_ext <<_ACEOF
5821 #line 5815 "configure"
5822 #include "confdefs.h"
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func (); below. */
5826 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5838 /* The GNU C library defines this for functions which it implements
5839 to always fail with ENOSYS. Some functions are actually named
5840 something starting with __ and the normal name is an alias. */
5841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5851 rm -f conftest.
$ac_objext conftest
$ac_exeext
5852 if { (eval echo "$as_me:5851: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>&5
5855 echo "$as_me:5854: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try
='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:5857: \"$ac_try\"") >&5
5861 echo "$as_me:5860: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 eval "$as_ac_var=yes"
5865 echo "$as_me: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5867 eval "$as_ac_var=no"
5869 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5871 echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5
5872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5873 if test `eval echo '${'$as_ac_var'}'` = yes; then
5874 cat >>confdefs.h
<<EOF
5875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5881 echo "$as_me:5880: checking for working mmap" >&5
5882 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5883 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 if test "$cross_compiling" = yes; then
5887 ac_cv_func_mmap_fixed_mapped
=no
5889 cat >conftest.
$ac_ext <<_ACEOF
5890 #line 5884 "configure"
5891 #include "confdefs.h"
5892 $ac_includes_default
5893 /* Thanks to Mike Haertel and Jim Avera for this test.
5894 Here is a matrix of mmap possibilities:
5895 mmap private not fixed
5896 mmap private fixed at somewhere currently unmapped
5897 mmap private fixed at somewhere already mapped
5898 mmap shared not fixed
5899 mmap shared fixed at somewhere currently unmapped
5900 mmap shared fixed at somewhere already mapped
5901 For private mappings, we should verify that changes cannot be read()
5902 back from the file, nor mmap's back from the file at a different
5903 address. (There have been systems where private was not correctly
5904 implemented like the infamous i386 svr4.0, and systems where the
5905 VM page cache was not coherent with the file system buffer cache
5906 like early versions of FreeBSD and possibly contemporary NetBSD.)
5907 For shared mappings, we should conversely verify that changes get
5908 propogated back to all the places they're supposed to be.
5910 Grep wants private fixed already mapped.
5911 The main things grep needs to know about mmap are:
5912 * does it exist and is it safe to write into the mmap'd area
5913 * how to use it (BSD variants) */
5916 #include <sys/mman.h>
5918 #if !STDC_HEADERS && !HAVE_STDLIB_H
5922 /* This mess was copied from the GNU getpagesize.h. */
5923 #if !HAVE_GETPAGESIZE
5924 /* Assume that all systems that can run configure have sys/param.h. */
5925 # if !HAVE_SYS_PARAM_H
5926 # define HAVE_SYS_PARAM_H 1
5929 # ifdef _SC_PAGESIZE
5930 # define getpagesize() sysconf(_SC_PAGESIZE)
5931 # else /* no _SC_PAGESIZE */
5932 # if HAVE_SYS_PARAM_H
5933 # include <sys/param.h>
5934 # ifdef EXEC_PAGESIZE
5935 # define getpagesize() EXEC_PAGESIZE
5936 # else /* no EXEC_PAGESIZE */
5938 # define getpagesize() NBPG * CLSIZE
5941 # endif /* no CLSIZE */
5942 # else /* no NBPG */
5944 # define getpagesize() NBPC
5945 # else /* no NBPC */
5947 # define getpagesize() PAGESIZE
5948 # endif /* PAGESIZE */
5949 # endif /* no NBPC */
5950 # endif /* no NBPG */
5951 # endif /* no EXEC_PAGESIZE */
5952 # else /* no HAVE_SYS_PARAM_H */
5953 # define getpagesize() 8192 /* punt totally */
5954 # endif /* no HAVE_SYS_PARAM_H */
5955 # endif /* no _SC_PAGESIZE */
5957 #endif /* no HAVE_GETPAGESIZE */
5962 char *data, *data2, *data3;
5966 pagesize = getpagesize ();
5968 /* First, make a file with some known garbage in it. */
5969 data = (char *) malloc (pagesize);
5972 for (i = 0; i < pagesize; ++i)
5973 *(data + i) = rand ();
5975 fd = creat ("conftest.mmap", 0600);
5978 if (write (fd, data, pagesize) != pagesize)
5982 /* Next, try to mmap the file at a fixed address which already has
5983 something else allocated at it. If we can, also make sure that
5984 we see the same garbage. */
5985 fd = open ("conftest.mmap", O_RDWR);
5988 data2 = (char *) malloc (2 * pagesize);
5991 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5992 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5993 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5995 for (i = 0; i < pagesize; ++i)
5996 if (*(data + i) != *(data2 + i))
5999 /* Finally, make sure that changes to the mapped area do not
6000 percolate back to the file as seen by read(). (This is a bug on
6001 some variants of i386 svr4.0.) */
6002 for (i = 0; i < pagesize; ++i)
6003 *(data2 + i) = *(data2 + i) + 1;
6004 data3 = (char *) malloc (pagesize);
6007 if (read (fd, data3, pagesize) != pagesize)
6009 for (i = 0; i < pagesize; ++i)
6010 if (*(data + i) != *(data3 + i))
6016 rm -f conftest
$ac_exeext
6017 if { (eval echo "$as_me:6016: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:6019: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6022 { (eval echo "$as_me:6021: \"$ac_try\"") >&5
6025 echo "$as_me:6024: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_func_mmap_fixed_mapped
=yes
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6032 ac_cv_func_mmap_fixed_mapped
=no
6034 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6037 echo "$as_me:6036: result: $ac_cv_func_mmap_fixed_mapped" >&5
6038 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6039 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6041 cat >>confdefs.h
<<\EOF
6048 if test $use_mmap_for_buffers = yes; then
6052 LIBS
="$libsrc_libs $LIBS"
6054 echo "$as_me:6053: checking for dnet_ntoa in -ldnet" >&5
6055 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6056 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_check_lib_save_LIBS
=$LIBS
6061 cat >conftest.
$ac_ext <<_ACEOF
6062 #line 6056 "configure"
6063 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6080 rm -f conftest.
$ac_objext conftest
$ac_exeext
6081 if { (eval echo "$as_me:6080: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6084 echo "$as_me:6083: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try
='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:6086: \"$ac_try\"") >&5
6090 echo "$as_me:6089: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_lib_dnet_dnet_ntoa
=yes
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.
$ac_ext >&5
6096 ac_cv_lib_dnet_dnet_ntoa
=no
6098 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6099 LIBS
=$ac_check_lib_save_LIBS
6101 echo "$as_me:6100: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6102 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6103 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6104 cat >>confdefs.h
<<EOF
6105 #define HAVE_LIBDNET 1
6112 echo "$as_me:6111: checking for main in -lXbsd" >&5
6113 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6114 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_check_lib_save_LIBS
=$LIBS
6119 cat >conftest.
$ac_ext <<_ACEOF
6120 #line 6114 "configure"
6121 #include "confdefs.h"
6131 rm -f conftest.
$ac_objext conftest
$ac_exeext
6132 if { (eval echo "$as_me:6131: \"$ac_link\"") >&5
6133 (eval $ac_link) 2>&5
6135 echo "$as_me:6134: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try
='test -s conftest$ac_exeext'
6138 { (eval echo "$as_me:6137: \"$ac_try\"") >&5
6141 echo "$as_me:6140: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_cv_lib_Xbsd_main
=yes
6145 echo "$as_me: failed program was:" >&5
6146 cat conftest.
$ac_ext >&5
6147 ac_cv_lib_Xbsd_main
=no
6149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6150 LIBS
=$ac_check_lib_save_LIBS
6152 echo "$as_me:6151: result: $ac_cv_lib_Xbsd_main" >&5
6153 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6154 if test $ac_cv_lib_Xbsd_main = yes; then
6155 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6158 echo "$as_me:6157: checking for cma_open in -lpthreads" >&5
6159 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6160 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 ac_check_lib_save_LIBS
=$LIBS
6164 LIBS
="-lpthreads $LIBS"
6165 cat >conftest.
$ac_ext <<_ACEOF
6166 #line 6160 "configure"
6167 #include "confdefs.h"
6169 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6184 rm -f conftest.
$ac_objext conftest
$ac_exeext
6185 if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:6187: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try
='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6194 echo "$as_me:6193: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_pthreads_cma_open
=yes
6198 echo "$as_me: failed program was:" >&5
6199 cat conftest.
$ac_ext >&5
6200 ac_cv_lib_pthreads_cma_open
=no
6202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6203 LIBS
=$ac_check_lib_save_LIBS
6205 echo "$as_me:6204: result: $ac_cv_lib_pthreads_cma_open" >&5
6206 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6207 if test $ac_cv_lib_pthreads_cma_open = yes; then
6208 cat >>confdefs.h
<<EOF
6209 #define HAVE_LIBPTHREADS 1
6212 LIBS
="-lpthreads $LIBS"
6216 echo "$as_me:6215: checking for XFree86 in /usr/X386" >&5
6217 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6218 if test -d /usr
/X386
/include
; then
6220 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6224 echo "$as_me:6223: result: $HAVE_XFREE386" >&5
6225 echo "${ECHO_T}$HAVE_XFREE386" >&6
6227 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6228 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6230 REAL_CPPFLAGS
="$CPPFLAGS"
6232 if test "${HAVE_X11}" = "yes"; then
6233 DEFS
="$C_SWITCH_X_SITE $DEFS"
6234 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6236 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6237 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6239 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6240 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6241 # but it's more convenient here to set LD_RUN_PATH
6242 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6243 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6244 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6248 if test "${opsys}" = "gnu-linux"; then
6249 echo "$as_me:6248: checking whether X on GNU/Linux needs -b to link" >&5
6250 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6251 cat >conftest.
$ac_ext <<_ACEOF
6252 #line 6246 "configure"
6253 #include "confdefs.h"
6258 XOpenDisplay ("foo");
6263 rm -f conftest.
$ac_objext conftest
$ac_exeext
6264 if { (eval echo "$as_me:6263: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6267 echo "$as_me:6266: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try
='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6273 echo "$as_me:6272: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 xlinux_first_failure
=no
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.
$ac_ext >&5
6279 xlinux_first_failure
=yes
6281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6282 if test "${xlinux_first_failure}" = "yes"; then
6283 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6284 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6285 OLD_CPPFLAGS
="$CPPFLAGS"
6287 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6288 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6289 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6290 LIBS
="$LIBS -b i486-linuxaout"
6291 cat >conftest.
$ac_ext <<_ACEOF
6292 #line 6286 "configure"
6293 #include "confdefs.h"
6298 XOpenDisplay ("foo");
6303 rm -f conftest.
$ac_objext conftest
$ac_exeext
6304 if { (eval echo "$as_me:6303: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6307 echo "$as_me:6306: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:6309: \"$ac_try\"") >&5
6313 echo "$as_me:6312: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 xlinux_second_failure
=no
6317 echo "$as_me: failed program was:" >&5
6318 cat conftest.
$ac_ext >&5
6319 xlinux_second_failure
=yes
6321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6322 if test "${xlinux_second_failure}" = "yes"; then
6323 # If we get the same failure with -b, there is no use adding -b.
6324 # So take it out. This plays safe.
6325 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6326 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6327 CPPFLAGS
="$OLD_CPPFLAGS"
6329 echo "$as_me:6328: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6332 echo "$as_me:6331: result: yes" >&5
6333 echo "${ECHO_T}yes" >&6
6336 echo "$as_me:6335: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6341 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6342 # header files included from there.
6343 echo "$as_me:6342: checking for Xkb" >&5
6344 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6345 cat >conftest.
$ac_ext <<_ACEOF
6346 #line 6340 "configure"
6347 #include "confdefs.h"
6348 #include <X11/Xlib.h>
6349 #include <X11/XKBlib.h>
6353 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6358 rm -f conftest.
$ac_objext conftest
$ac_exeext
6359 if { (eval echo "$as_me:6358: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:6361: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try
='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:6364: \"$ac_try\"") >&5
6368 echo "$as_me:6367: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.
$ac_ext >&5
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6377 echo "$as_me:6376: result: $emacs_xkb" >&5
6378 echo "${ECHO_T}$emacs_xkb" >&6
6379 if test $emacs_xkb = yes; then
6381 cat >>confdefs.h
<<\EOF
6382 #define HAVE_XKBGETKEYBOARD 1
6387 for ac_func
in XrmSetDatabase XScreenResourceString \
6388 XScreenNumberOfScreen XSetWMProtocols
6390 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6391 echo "$as_me:6390: checking for $ac_func" >&5
6392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_var+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 cat >conftest.
$ac_ext <<_ACEOF
6397 #line 6391 "configure"
6398 #include "confdefs.h"
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char $ac_func (); below. */
6402 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 rm -f conftest.
$ac_objext conftest
$ac_exeext
6428 if { (eval echo "$as_me:6427: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:6430: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try
='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:6433: \"$ac_try\"") >&5
6437 echo "$as_me:6436: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_var=yes"
6441 echo "$as_me: failed program was:" >&5
6442 cat conftest.
$ac_ext >&5
6443 eval "$as_ac_var=no"
6445 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6447 echo "$as_me:6446: result: `eval echo '${'$as_ac_var'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6449 if test `eval echo '${'$as_ac_var'}'` = yes; then
6450 cat >>confdefs.h
<<EOF
6451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6459 if test "${window_system}" = "x11"; then
6460 echo "$as_me:6459: checking X11 version 6" >&5
6461 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6462 if test "${emacs_cv_x11_version_6+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
$ac_ext <<_ACEOF
6466 #line 6460 "configure"
6467 #include "confdefs.h"
6468 #include <X11/Xlib.h>
6472 #if XlibSpecificationRelease < 6
6480 rm -f conftest.
$ac_objext conftest
$ac_exeext
6481 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>&5
6484 echo "$as_me:6483: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try
='test -s conftest$ac_exeext'
6487 { (eval echo "$as_me:6486: \"$ac_try\"") >&5
6490 echo "$as_me:6489: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 emacs_cv_x11_version_6
=yes
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.
$ac_ext >&5
6496 emacs_cv_x11_version_6
=no
6498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6501 if test $emacs_cv_x11_version_6 = yes; then
6502 echo "$as_me:6501: result: 6 or newer" >&5
6503 echo "${ECHO_T}6 or newer" >&6
6505 cat >>confdefs.h
<<\EOF
6506 #define HAVE_X11R6 1
6510 echo "$as_me:6509: result: before 6" >&5
6511 echo "${ECHO_T}before 6" >&6
6515 if test "${window_system}" = "x11"; then
6516 echo "$as_me:6515: checking X11 version 5" >&5
6517 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6518 if test "${emacs_cv_x11_version_5+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6522 #line 6516 "configure"
6523 #include "confdefs.h"
6524 #include <X11/Xlib.h>
6528 #if XlibSpecificationRelease < 5
6536 rm -f conftest.
$ac_objext conftest
$ac_exeext
6537 if { (eval echo "$as_me:6536: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6540 echo "$as_me:6539: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6542: \"$ac_try\"") >&5
6546 echo "$as_me:6545: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 emacs_cv_x11_version_5
=yes
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6552 emacs_cv_x11_version_5
=no
6554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6557 if test $emacs_cv_x11_version_5 = yes; then
6558 echo "$as_me:6557: result: 5 or newer" >&5
6559 echo "${ECHO_T}5 or newer" >&6
6562 cat >>confdefs.h
<<\EOF
6563 #define HAVE_X11R5 1
6568 echo "$as_me:6567: result: before 5" >&5
6569 echo "${ECHO_T}before 5" >&6
6573 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6574 if test x
"${HAVE_X11R5}" = xyes
; then
6575 echo "$as_me:6574: checking X11 version 5 with Xaw" >&5
6576 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6577 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.
$ac_ext <<_ACEOF
6581 #line 6575 "configure"
6582 #include "confdefs.h"
6584 #include <X11/Intrinsic.h>
6585 #include <X11/Xaw/Simple.h>
6594 rm -f conftest.
$ac_objext conftest
$ac_exeext
6595 if { (eval echo "$as_me:6594: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:6597: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try
='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:6600: \"$ac_try\"") >&5
6604 echo "$as_me:6603: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 emacs_cv_x11_version_5_with_xaw
=yes
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6610 emacs_cv_x11_version_5_with_xaw
=no
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6615 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6616 echo "$as_me:6615: result: 5 or newer, with Xaw; use toolkit by default" >&5
6617 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6620 echo "$as_me:6619: result: before 5 or no Xaw; do not use toolkit by default" >&5
6621 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6629 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6631 if test "${USE_X_TOOLKIT}" != "none"; then
6632 echo "$as_me:6631: checking X11 toolkit version" >&5
6633 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6634 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 cat >conftest.
$ac_ext <<_ACEOF
6638 #line 6632 "configure"
6639 #include "confdefs.h"
6640 #include <X11/Intrinsic.h>
6644 #if XtSpecificationRelease < 6
6652 rm -f conftest.
$ac_objext conftest
$ac_exeext
6653 if { (eval echo "$as_me:6652: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6656 echo "$as_me:6655: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try
='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:6658: \"$ac_try\"") >&5
6662 echo "$as_me:6661: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 emacs_cv_x11_toolkit_version_6
=yes
6666 echo "$as_me: failed program was:" >&5
6667 cat conftest.
$ac_ext >&5
6668 emacs_cv_x11_toolkit_version_6
=no
6670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6673 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6674 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6675 echo "$as_me:6674: result: 6 or newer" >&5
6676 echo "${ECHO_T}6 or newer" >&6
6678 cat >>confdefs.h
<<\EOF
6679 #define HAVE_X11XTR6 1
6683 echo "$as_me:6682: result: before 6" >&5
6684 echo "${ECHO_T}before 6" >&6
6688 if test x
$HAVE_X11XTR6 = xyes
; then
6689 LIBS
="-lXt -lSM -lICE $LIBS"
6694 echo "$as_me:6693: checking for XmuConvertStandardSelection in -lXmu" >&5
6695 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6696 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_check_lib_save_LIBS
=$LIBS
6701 cat >conftest.
$ac_ext <<_ACEOF
6702 #line 6696 "configure"
6703 #include "confdefs.h"
6705 /* Override any gcc2 internal prototype to avoid an error. */
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6711 char XmuConvertStandardSelection ();
6715 XmuConvertStandardSelection ();
6720 rm -f conftest.
$ac_objext conftest
$ac_exeext
6721 if { (eval echo "$as_me:6720: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6724 echo "$as_me:6723: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try
='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:6726: \"$ac_try\"") >&5
6730 echo "$as_me:6729: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6734 echo "$as_me: failed program was:" >&5
6735 cat conftest.
$ac_ext >&5
6736 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6738 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6739 LIBS
=$ac_check_lib_save_LIBS
6741 echo "$as_me:6740: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6742 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6743 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6744 cat >>confdefs.h
<<EOF
6745 #define HAVE_LIBXMU 1
6752 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6755 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6756 if test "${HAVE_X11}" = "yes"; then
6757 if test "${USE_X_TOOLKIT}" != "none"; then
6759 echo "$as_me:6758: checking for XShapeQueryExtension in -lXext" >&5
6760 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6761 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_check_lib_save_LIBS
=$LIBS
6766 cat >conftest.
$ac_ext <<_ACEOF
6767 #line 6761 "configure"
6768 #include "confdefs.h"
6770 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char XShapeQueryExtension ();
6780 XShapeQueryExtension ();
6785 rm -f conftest.
$ac_objext conftest
$ac_exeext
6786 if { (eval echo "$as_me:6785: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6789 echo "$as_me:6788: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:6791: \"$ac_try\"") >&5
6795 echo "$as_me:6794: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6799 echo "$as_me: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6801 ac_cv_lib_Xext_XShapeQueryExtension
=no
6803 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6804 LIBS
=$ac_check_lib_save_LIBS
6806 echo "$as_me:6805: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6807 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6808 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6809 cat >>confdefs.h
<<EOF
6810 #define HAVE_LIBXEXT 1
6820 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6821 echo "$as_me:6820: checking for Motif version 2.1" >&5
6822 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6823 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.
$ac_ext <<_ACEOF
6827 #line 6821 "configure"
6828 #include "confdefs.h"
6833 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6836 Motif version prior to 2.1.
6842 rm -f conftest.
$ac_objext
6843 if { (eval echo "$as_me:6842: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>&5
6846 echo "$as_me:6845: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try
='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:6848: \"$ac_try\"") >&5
6852 echo "$as_me:6851: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 emacs_cv_motif_version_2_1
=yes
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.
$ac_ext >&5
6858 emacs_cv_motif_version_2_1
=no
6860 rm -f conftest.
$ac_objext conftest.
$ac_ext
6862 echo "$as_me:6861: result: $emacs_cv_motif_version_2_1" >&5
6863 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6864 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6865 if test $emacs_cv_motif_version_2_1 = yes; then
6868 cat >>confdefs.h
<<\EOF
6869 #define HAVE_MOTIF_2_1 1
6872 echo "$as_me:6871: checking for XpCreateContext in -lXp" >&5
6873 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6874 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 ac_check_lib_save_LIBS
=$LIBS
6879 cat >conftest.
$ac_ext <<_ACEOF
6880 #line 6874 "configure"
6881 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char XpCreateContext ();
6898 rm -f conftest.
$ac_objext conftest
$ac_exeext
6899 if { (eval echo "$as_me:6898: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6902 echo "$as_me:6901: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try
='test -s conftest$ac_exeext'
6905 { (eval echo "$as_me:6904: \"$ac_try\"") >&5
6908 echo "$as_me:6907: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_lib_Xp_XpCreateContext
=yes
6912 echo "$as_me: failed program was:" >&5
6913 cat conftest.
$ac_ext >&5
6914 ac_cv_lib_Xp_XpCreateContext
=no
6916 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6917 LIBS
=$ac_check_lib_save_LIBS
6919 echo "$as_me:6918: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6920 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6921 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6925 if test ${HAVE_LIBXP} = yes; then
6927 cat >>confdefs.h
<<\EOF
6928 #define HAVE_LIBXP 1
6935 ### Is -lXaw3d available?
6937 if test "${HAVE_X11}" = "yes"; then
6938 if test "${USE_X_TOOLKIT}" != "none"; then
6939 echo "$as_me:6938: checking for X11/Xaw3d/Scrollbar.h" >&5
6940 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6941 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 cat >conftest.
$ac_ext <<_ACEOF
6945 #line 6939 "configure"
6946 #include "confdefs.h"
6947 #include <X11/Xaw3d/Scrollbar.h>
6949 if { (eval echo "$as_me:6948: \"$ac_cpp conftest.$ac_ext\"") >&5
6950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6952 egrep -v '^ *\+' conftest.er1
>conftest.err
6954 cat conftest.err
>&5
6955 echo "$as_me:6954: \$? = $ac_status" >&5
6956 (exit $ac_status); } >/dev
/null
; then
6957 if test -s conftest.err
; then
6958 ac_cpp_err
=$ac_c_preproc_warn_flag
6965 if test -z "$ac_cpp_err"; then
6966 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6968 echo "$as_me: failed program was:" >&5
6969 cat conftest.
$ac_ext >&5
6970 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6972 rm -f conftest.err conftest.
$ac_ext
6974 echo "$as_me:6973: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6975 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6976 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6977 echo "$as_me:6976: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6978 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6979 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 ac_check_lib_save_LIBS
=$LIBS
6983 LIBS
="-lXaw3d $LIBS"
6984 cat >conftest.
$ac_ext <<_ACEOF
6985 #line 6979 "configure"
6986 #include "confdefs.h"
6988 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char XawScrollbarSetThumb ();
6998 XawScrollbarSetThumb ();
7003 rm -f conftest.
$ac_objext conftest
$ac_exeext
7004 if { (eval echo "$as_me:7003: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:7006: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try
='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:7009: \"$ac_try\"") >&5
7013 echo "$as_me:7012: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7019 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7022 LIBS
=$ac_check_lib_save_LIBS
7024 echo "$as_me:7023: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7025 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7026 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7032 if test "${HAVE_XAW3D}" = "yes"; then
7034 cat >>confdefs.h
<<\EOF
7035 #define HAVE_XAW3D 1
7042 USE_TOOLKIT_SCROLL_BARS
=no
7043 if test "${with_toolkit_scroll_bars}" != "no"; then
7044 if test "${USE_X_TOOLKIT}" != "none"; then
7045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7046 cat >>confdefs.h
<<\EOF
7047 #define USE_TOOLKIT_SCROLL_BARS 1
7051 USE_TOOLKIT_SCROLL_BARS
=yes
7052 elif test "${HAVE_XAW3D}" = "yes"; then
7053 cat >>confdefs.h
<<\EOF
7054 #define USE_TOOLKIT_SCROLL_BARS 1
7057 USE_TOOLKIT_SCROLL_BARS
=yes
7062 if test "${with_xim}" != "no"; then
7064 cat >>confdefs.h
<<\EOF
7070 ### Use -lXpm if available, unless `--with-xpm=no'.
7072 if test "${HAVE_X11}" = "yes"; then
7073 if test "${with_xpm}" != "no"; then
7074 echo "$as_me:7073: checking for X11/xpm.h" >&5
7075 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7076 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 cat >conftest.
$ac_ext <<_ACEOF
7080 #line 7074 "configure"
7081 #include "confdefs.h"
7082 #include <X11/xpm.h>
7084 if { (eval echo "$as_me:7083: \"$ac_cpp conftest.$ac_ext\"") >&5
7085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7087 egrep -v '^ *\+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:7089: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev
/null
; then
7092 if test -s conftest.err
; then
7093 ac_cpp_err
=$ac_c_preproc_warn_flag
7100 if test -z "$ac_cpp_err"; then
7101 ac_cv_header_X11_xpm_h
=yes
7103 echo "$as_me: failed program was:" >&5
7104 cat conftest.
$ac_ext >&5
7105 ac_cv_header_X11_xpm_h
=no
7107 rm -f conftest.err conftest.
$ac_ext
7109 echo "$as_me:7108: result: $ac_cv_header_X11_xpm_h" >&5
7110 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7111 if test $ac_cv_header_X11_xpm_h = yes; then
7112 echo "$as_me:7111: checking for XpmReadFileToPixmap in -lXpm" >&5
7113 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7114 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 ac_check_lib_save_LIBS
=$LIBS
7118 LIBS
="-lXpm -lX11 $LIBS"
7119 cat >conftest.
$ac_ext <<_ACEOF
7120 #line 7114 "configure"
7121 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7129 char XpmReadFileToPixmap ();
7133 XpmReadFileToPixmap ();
7138 rm -f conftest.
$ac_objext conftest
$ac_exeext
7139 if { (eval echo "$as_me:7138: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>&5
7142 echo "$as_me:7141: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try
='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:7144: \"$ac_try\"") >&5
7148 echo "$as_me:7147: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7152 echo "$as_me: failed program was:" >&5
7153 cat conftest.
$ac_ext >&5
7154 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7156 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7157 LIBS
=$ac_check_lib_save_LIBS
7159 echo "$as_me:7158: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7160 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7161 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7167 if test "${HAVE_XPM}" = "yes"; then
7168 echo "$as_me:7167: checking for XpmReturnAllocPixels preprocessor define" >&5
7169 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7170 cat >conftest.
$ac_ext <<_ACEOF
7171 #line 7165 "configure"
7172 #include "confdefs.h"
7173 #include "X11/xpm.h"
7174 #ifndef XpmReturnAllocPixels
7175 no_return_alloc_pixels
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7187 if test "${HAVE_XPM}" = "yes"; then
7188 echo "$as_me:7187: result: yes" >&5
7189 echo "${ECHO_T}yes" >&6
7191 echo "$as_me:7190: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7197 if test "${HAVE_XPM}" = "yes"; then
7199 cat >>confdefs.h
<<\EOF
7206 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7208 if test "${HAVE_X11}" = "yes"; then
7209 if test "${with_jpeg}" != "no"; then
7210 echo "$as_me:7209: checking for jerror.h" >&5
7211 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7212 if test "${ac_cv_header_jerror_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 cat >conftest.
$ac_ext <<_ACEOF
7216 #line 7210 "configure"
7217 #include "confdefs.h"
7220 if { (eval echo "$as_me:7219: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7223 egrep -v '^ *\+' conftest.er1
>conftest.err
7225 cat conftest.err
>&5
7226 echo "$as_me:7225: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev
/null
; then
7228 if test -s conftest.err
; then
7229 ac_cpp_err
=$ac_c_preproc_warn_flag
7236 if test -z "$ac_cpp_err"; then
7237 ac_cv_header_jerror_h
=yes
7239 echo "$as_me: failed program was:" >&5
7240 cat conftest.
$ac_ext >&5
7241 ac_cv_header_jerror_h
=no
7243 rm -f conftest.err conftest.
$ac_ext
7245 echo "$as_me:7244: result: $ac_cv_header_jerror_h" >&5
7246 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7247 if test $ac_cv_header_jerror_h = yes; then
7248 echo "$as_me:7247: checking for jpeg_destroy_compress in -ljpeg" >&5
7249 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7250 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_check_lib_save_LIBS
=$LIBS
7255 cat >conftest.
$ac_ext <<_ACEOF
7256 #line 7250 "configure"
7257 #include "confdefs.h"
7259 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7265 char jpeg_destroy_compress ();
7269 jpeg_destroy_compress ();
7274 rm -f conftest.
$ac_objext conftest
$ac_exeext
7275 if { (eval echo "$as_me:7274: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7278 echo "$as_me:7277: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try
='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7284 echo "$as_me:7283: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7288 echo "$as_me: failed program was:" >&5
7289 cat conftest.
$ac_ext >&5
7290 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7292 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7293 LIBS
=$ac_check_lib_save_LIBS
7295 echo "$as_me:7294: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7296 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7297 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7305 if test "${HAVE_JPEG}" = "yes"; then
7306 cat >>confdefs.h
<<\EOF
7310 cat >conftest.
$ac_ext <<_ACEOF
7311 #line 7305 "configure"
7312 #include "confdefs.h"
7313 #include <jpeglib.h>
7314 version=JPEG_LIB_VERSION
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7319 cat >>confdefs.h
<<\EOF
7324 { echo "$as_me:7323: WARNING: libjpeg found, but not version 6b or later" >&5
7325 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7333 ### Use -lpng if available, unless `--with-png=no'.
7335 if test "${HAVE_X11}" = "yes"; then
7336 if test "${with_png}" != "no"; then
7337 echo "$as_me:7336: checking for png.h" >&5
7338 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_png_h+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.
$ac_ext <<_ACEOF
7343 #line 7337 "configure"
7344 #include "confdefs.h"
7347 if { (eval echo "$as_me:7346: \"$ac_cpp conftest.$ac_ext\"") >&5
7348 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7350 egrep -v '^ *\+' conftest.er1
>conftest.err
7352 cat conftest.err
>&5
7353 echo "$as_me:7352: \$? = $ac_status" >&5
7354 (exit $ac_status); } >/dev
/null
; then
7355 if test -s conftest.err
; then
7356 ac_cpp_err
=$ac_c_preproc_warn_flag
7363 if test -z "$ac_cpp_err"; then
7364 ac_cv_header_png_h
=yes
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.
$ac_ext >&5
7368 ac_cv_header_png_h
=no
7370 rm -f conftest.err conftest.
$ac_ext
7372 echo "$as_me:7371: result: $ac_cv_header_png_h" >&5
7373 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7374 if test $ac_cv_header_png_h = yes; then
7375 echo "$as_me:7374: checking for png_get_channels in -lpng" >&5
7376 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7377 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_check_lib_save_LIBS
=$LIBS
7381 LIBS
="-lpng -lz -lm $LIBS"
7382 cat >conftest.
$ac_ext <<_ACEOF
7383 #line 7377 "configure"
7384 #include "confdefs.h"
7386 /* Override any gcc2 internal prototype to avoid an error. */
7390 /* We use char because int might match the return type of a gcc2
7391 builtin and then its argument prototype would still apply. */
7392 char png_get_channels ();
7396 png_get_channels ();
7401 rm -f conftest.
$ac_objext conftest
$ac_exeext
7402 if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7405 echo "$as_me:7404: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try
='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:7407: \"$ac_try\"") >&5
7411 echo "$as_me:7410: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_lib_png_png_get_channels
=yes
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.
$ac_ext >&5
7417 ac_cv_lib_png_png_get_channels
=no
7419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7420 LIBS
=$ac_check_lib_save_LIBS
7422 echo "$as_me:7421: result: $ac_cv_lib_png_png_get_channels" >&5
7423 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7424 if test $ac_cv_lib_png_png_get_channels = yes; then
7432 if test "${HAVE_PNG}" = "yes"; then
7434 cat >>confdefs.h
<<\EOF
7441 ### Use -ltiff if available, unless `--with-tiff=no'.
7443 if test "${HAVE_X11}" = "yes"; then
7444 if test "${with_tiff}" != "no"; then
7445 echo "$as_me:7444: checking for tiffio.h" >&5
7446 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7447 if test "${ac_cv_header_tiffio_h+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 cat >conftest.
$ac_ext <<_ACEOF
7451 #line 7445 "configure"
7452 #include "confdefs.h"
7455 if { (eval echo "$as_me:7454: \"$ac_cpp conftest.$ac_ext\"") >&5
7456 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7458 egrep -v '^ *\+' conftest.er1
>conftest.err
7460 cat conftest.err
>&5
7461 echo "$as_me:7460: \$? = $ac_status" >&5
7462 (exit $ac_status); } >/dev
/null
; then
7463 if test -s conftest.err
; then
7464 ac_cpp_err
=$ac_c_preproc_warn_flag
7471 if test -z "$ac_cpp_err"; then
7472 ac_cv_header_tiffio_h
=yes
7474 echo "$as_me: failed program was:" >&5
7475 cat conftest.
$ac_ext >&5
7476 ac_cv_header_tiffio_h
=no
7478 rm -f conftest.err conftest.
$ac_ext
7480 echo "$as_me:7479: result: $ac_cv_header_tiffio_h" >&5
7481 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7482 if test $ac_cv_header_tiffio_h = yes; then
7484 # At least one tiff package requires the jpeg library.
7485 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7486 echo "$as_me:7485: checking for TIFFGetVersion in -ltiff" >&5
7487 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7488 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_check_lib_save_LIBS
=$LIBS
7492 LIBS
="-ltiff $tifflibs $LIBS"
7493 cat >conftest.
$ac_ext <<_ACEOF
7494 #line 7488 "configure"
7495 #include "confdefs.h"
7497 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char TIFFGetVersion ();
7512 rm -f conftest.
$ac_objext conftest
$ac_exeext
7513 if { (eval echo "$as_me:7512: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>&5
7516 echo "$as_me:7515: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try
='test -s conftest$ac_exeext'
7519 { (eval echo "$as_me:7518: \"$ac_try\"") >&5
7522 echo "$as_me:7521: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_lib_tiff_TIFFGetVersion
=yes
7526 echo "$as_me: failed program was:" >&5
7527 cat conftest.
$ac_ext >&5
7528 ac_cv_lib_tiff_TIFFGetVersion
=no
7530 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7531 LIBS
=$ac_check_lib_save_LIBS
7533 echo "$as_me:7532: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7534 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7535 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7543 if test "${HAVE_TIFF}" = "yes"; then
7545 cat >>confdefs.h
<<\EOF
7552 ### Use -lgif if available, unless `--with-gif=no'.
7554 if test "${HAVE_X11}" = "yes"; then
7555 if test "${with_gif}" != "no"; then
7556 echo "$as_me:7555: checking for gif_lib.h" >&5
7557 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7558 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.
$ac_ext <<_ACEOF
7562 #line 7556 "configure"
7563 #include "confdefs.h"
7564 #include <gif_lib.h>
7566 if { (eval echo "$as_me:7565: \"$ac_cpp conftest.$ac_ext\"") >&5
7567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7569 egrep -v '^ *\+' conftest.er1
>conftest.err
7571 cat conftest.err
>&5
7572 echo "$as_me:7571: \$? = $ac_status" >&5
7573 (exit $ac_status); } >/dev
/null
; then
7574 if test -s conftest.err
; then
7575 ac_cpp_err
=$ac_c_preproc_warn_flag
7582 if test -z "$ac_cpp_err"; then
7583 ac_cv_header_gif_lib_h
=yes
7585 echo "$as_me: failed program was:" >&5
7586 cat conftest.
$ac_ext >&5
7587 ac_cv_header_gif_lib_h
=no
7589 rm -f conftest.err conftest.
$ac_ext
7591 echo "$as_me:7590: result: $ac_cv_header_gif_lib_h" >&5
7592 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7593 if test $ac_cv_header_gif_lib_h = yes; then
7594 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7595 # Earlier versions can crash Emacs.
7596 echo "$as_me:7595: checking for EGifPutExtensionLast in -lungif" >&5
7597 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7598 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_check_lib_save_LIBS
=$LIBS
7602 LIBS
="-lungif $LIBS"
7603 cat >conftest.
$ac_ext <<_ACEOF
7604 #line 7598 "configure"
7605 #include "confdefs.h"
7607 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7613 char EGifPutExtensionLast ();
7617 EGifPutExtensionLast ();
7622 rm -f conftest.
$ac_objext conftest
$ac_exeext
7623 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7626 echo "$as_me:7625: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try
='test -s conftest$ac_exeext'
7629 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7632 echo "$as_me:7631: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.
$ac_ext >&5
7638 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7640 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7641 LIBS
=$ac_check_lib_save_LIBS
7643 echo "$as_me:7642: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7644 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7645 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7653 if test "${HAVE_GIF}" = "yes"; then
7655 cat >>confdefs.h
<<\EOF
7662 ### Use Mac OS X Carbon API to implement GUI.
7664 if test "${with_carbon}" != "no"; then
7665 echo "$as_me:7664: checking for Carbon/Carbon.h" >&5
7666 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7667 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 cat >conftest.
$ac_ext <<_ACEOF
7671 #line 7665 "configure"
7672 #include "confdefs.h"
7673 #include <Carbon/Carbon.h>
7675 if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5
7676 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7678 egrep -v '^ *\+' conftest.er1
>conftest.err
7680 cat conftest.err
>&5
7681 echo "$as_me:7680: \$? = $ac_status" >&5
7682 (exit $ac_status); } >/dev
/null
; then
7683 if test -s conftest.err
; then
7684 ac_cpp_err
=$ac_c_preproc_warn_flag
7691 if test -z "$ac_cpp_err"; then
7692 ac_cv_header_Carbon_Carbon_h
=yes
7694 echo "$as_me: failed program was:" >&5
7695 cat conftest.
$ac_ext >&5
7696 ac_cv_header_Carbon_Carbon_h
=no
7698 rm -f conftest.err conftest.
$ac_ext
7700 echo "$as_me:7699: result: $ac_cv_header_Carbon_Carbon_h" >&5
7701 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7702 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7708 if test "${HAVE_CARBON}" = "yes"; then
7710 cat >>confdefs.h
<<\EOF
7711 #define HAVE_CARBON 1
7716 ### Use session management (-lSM -lICE) if available
7718 if test "${HAVE_X11}" = "yes"; then
7719 echo "$as_me:7718: checking for X11/SM/SMlib.h" >&5
7720 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7721 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 cat >conftest.
$ac_ext <<_ACEOF
7725 #line 7719 "configure"
7726 #include "confdefs.h"
7727 #include <X11/SM/SMlib.h>
7729 if { (eval echo "$as_me:7728: \"$ac_cpp conftest.$ac_ext\"") >&5
7730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7732 egrep -v '^ *\+' conftest.er1
>conftest.err
7734 cat conftest.err
>&5
7735 echo "$as_me:7734: \$? = $ac_status" >&5
7736 (exit $ac_status); } >/dev
/null
; then
7737 if test -s conftest.err
; then
7738 ac_cpp_err
=$ac_c_preproc_warn_flag
7745 if test -z "$ac_cpp_err"; then
7746 ac_cv_header_X11_SM_SMlib_h
=yes
7748 echo "$as_me: failed program was:" >&5
7749 cat conftest.
$ac_ext >&5
7750 ac_cv_header_X11_SM_SMlib_h
=no
7752 rm -f conftest.err conftest.
$ac_ext
7754 echo "$as_me:7753: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7755 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7756 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7757 echo "$as_me:7756: checking for SmcOpenConnection in -lSM" >&5
7758 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7759 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 ac_check_lib_save_LIBS
=$LIBS
7764 cat >conftest.
$ac_ext <<_ACEOF
7765 #line 7759 "configure"
7766 #include "confdefs.h"
7768 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7774 char SmcOpenConnection ();
7778 SmcOpenConnection ();
7783 rm -f conftest.
$ac_objext conftest
$ac_exeext
7784 if { (eval echo "$as_me:7783: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7787 echo "$as_me:7786: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try
='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:7789: \"$ac_try\"") >&5
7793 echo "$as_me:7792: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_lib_SM_SmcOpenConnection
=yes
7797 echo "$as_me: failed program was:" >&5
7798 cat conftest.
$ac_ext >&5
7799 ac_cv_lib_SM_SmcOpenConnection
=no
7801 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7802 LIBS
=$ac_check_lib_save_LIBS
7804 echo "$as_me:7803: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7805 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7806 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7814 if test "${HAVE_X_SM}" = "yes"; then
7816 cat >>confdefs.h
<<\EOF
7822 *) LIBS
="-lSM -lICE $LIBS" ;;
7827 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7828 echo "$as_me:7827: checking whether netdb declares h_errno" >&5
7829 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7830 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 cat >conftest.
$ac_ext <<_ACEOF
7834 #line 7828 "configure"
7835 #include "confdefs.h"
7845 rm -f conftest.
$ac_objext conftest
$ac_exeext
7846 if { (eval echo "$as_me:7845: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>&5
7849 echo "$as_me:7848: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try
='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7855 echo "$as_me:7854: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 emacs_cv_netdb_declares_h_errno
=yes
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7861 emacs_cv_netdb_declares_h_errno
=no
7863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7865 echo "$as_me:7864: result: $emacs_cv_netdb_declares_h_errno" >&5
7866 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7867 if test $emacs_cv_netdb_declares_h_errno = yes; then
7869 cat >>confdefs.h
<<\EOF
7870 #define HAVE_H_ERRNO 1
7875 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7876 # for constant arguments. Useless!
7877 echo "$as_me:7876: checking for working alloca.h" >&5
7878 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7879 if test "${ac_cv_working_alloca_h+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.
$ac_ext <<_ACEOF
7883 #line 7877 "configure"
7884 #include "confdefs.h"
7889 char *p = (char *) alloca (2 * sizeof (int));
7894 rm -f conftest.
$ac_objext conftest
$ac_exeext
7895 if { (eval echo "$as_me:7894: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7898 echo "$as_me:7897: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try
='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:7900: \"$ac_try\"") >&5
7904 echo "$as_me:7903: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 ac_cv_working_alloca_h
=yes
7908 echo "$as_me: failed program was:" >&5
7909 cat conftest.
$ac_ext >&5
7910 ac_cv_working_alloca_h
=no
7912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7914 echo "$as_me:7913: result: $ac_cv_working_alloca_h" >&5
7915 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7916 if test $ac_cv_working_alloca_h = yes; then
7918 cat >>confdefs.h
<<\EOF
7919 #define HAVE_ALLOCA_H 1
7924 echo "$as_me:7923: checking for alloca" >&5
7925 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7926 if test "${ac_cv_func_alloca_works+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7930 #line 7924 "configure"
7931 #include "confdefs.h"
7933 # define alloca __builtin_alloca
7936 # include <malloc.h>
7937 # define alloca _alloca
7940 # include <alloca.h>
7945 # ifndef alloca /* predefined by HP cc +Olibcalls */
7956 char *p = (char *) alloca (1);
7961 rm -f conftest.
$ac_objext conftest
$ac_exeext
7962 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:7964: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7971 echo "$as_me:7970: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_func_alloca_works
=yes
7975 echo "$as_me: failed program was:" >&5
7976 cat conftest.
$ac_ext >&5
7977 ac_cv_func_alloca_works
=no
7979 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7981 echo "$as_me:7980: result: $ac_cv_func_alloca_works" >&5
7982 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7984 if test $ac_cv_func_alloca_works = yes; then
7986 cat >>confdefs.h
<<\EOF
7987 #define HAVE_ALLOCA 1
7991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7992 # that cause trouble. Some versions do not even contain alloca or
7993 # contain a buggy version. If you still want to use their alloca,
7994 # use ar to extract alloca.o from them instead of compiling alloca.c.
7996 ALLOCA
=alloca.
$ac_objext
7998 cat >>confdefs.h
<<\EOF
8002 echo "$as_me:8001: checking whether \`alloca.c' needs Cray hooks" >&5
8003 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8004 if test "${ac_cv_os_cray+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.
$ac_ext <<_ACEOF
8008 #line 8002 "configure"
8009 #include "confdefs.h"
8010 #if defined(CRAY) && ! defined(CRAY2)
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018 egrep "webecray" >/dev
/null
2>&1; then
8026 echo "$as_me:8025: result: $ac_cv_os_cray" >&5
8027 echo "${ECHO_T}$ac_cv_os_cray" >&6
8028 if test $ac_cv_os_cray = yes; then
8029 for ac_func
in _getb67 GETB67 getb67
; do
8030 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8031 echo "$as_me:8030: checking for $ac_func" >&5
8032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_var+set}\" = set"; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 cat >conftest.
$ac_ext <<_ACEOF
8037 #line 8031 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func (); below. */
8042 /* Override any gcc2 internal prototype to avoid an error. */
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8054 /* The GNU C library defines this for functions which it implements
8055 to always fail with ENOSYS. Some functions are actually named
8056 something starting with __ and the normal name is an alias. */
8057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 rm -f conftest.
$ac_objext conftest
$ac_exeext
8068 if { (eval echo "$as_me:8067: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>&5
8071 echo "$as_me:8070: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try
='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:8073: \"$ac_try\"") >&5
8077 echo "$as_me:8076: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 eval "$as_ac_var=yes"
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.
$ac_ext >&5
8083 eval "$as_ac_var=no"
8085 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8087 echo "$as_me:8086: result: `eval echo '${'$as_ac_var'}'`" >&5
8088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8089 if test `eval echo '${'$as_ac_var'}'` = yes; then
8091 cat >>confdefs.h
<<EOF
8092 #define CRAY_STACKSEG_END $ac_func
8101 echo "$as_me:8100: checking stack direction for C alloca" >&5
8102 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8103 if test "${ac_cv_c_stack_direction+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 if test "$cross_compiling" = yes; then
8107 ac_cv_c_stack_direction
=0
8109 cat >conftest.
$ac_ext <<_ACEOF
8110 #line 8104 "configure"
8111 #include "confdefs.h"
8113 find_stack_direction ()
8115 static char *addr = 0;
8120 return find_stack_direction ();
8123 return (&dummy > addr) ? 1 : -1;
8129 exit (find_stack_direction () < 0);
8132 rm -f conftest
$ac_exeext
8133 if { (eval echo "$as_me:8132: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8136 echo "$as_me:8135: \$? = $ac_status" >&5
8137 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8138 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8141 echo "$as_me:8140: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 ac_cv_c_stack_direction
=1
8145 echo "$as_me: program exited with status $ac_status" >&5
8146 echo "$as_me: failed program was:" >&5
8147 cat conftest.
$ac_ext >&5
8148 ac_cv_c_stack_direction
=-1
8150 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8153 echo "$as_me:8152: result: $ac_cv_c_stack_direction" >&5
8154 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8156 cat >>confdefs.h
<<EOF
8157 #define STACK_DIRECTION $ac_cv_c_stack_direction
8162 # fmod, logb, and frexp are found in -lm on most systems.
8163 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8165 echo "$as_me:8164: checking for sqrt in -lm" >&5
8166 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8167 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 ac_check_lib_save_LIBS
=$LIBS
8172 cat >conftest.
$ac_ext <<_ACEOF
8173 #line 8167 "configure"
8174 #include "confdefs.h"
8176 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8191 rm -f conftest.
$ac_objext conftest
$ac_exeext
8192 if { (eval echo "$as_me:8191: \"$ac_link\"") >&5
8193 (eval $ac_link) 2>&5
8195 echo "$as_me:8194: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try
='test -s conftest$ac_exeext'
8198 { (eval echo "$as_me:8197: \"$ac_try\"") >&5
8201 echo "$as_me:8200: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_cv_lib_m_sqrt
=yes
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.
$ac_ext >&5
8209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8210 LIBS
=$ac_check_lib_save_LIBS
8212 echo "$as_me:8211: result: $ac_cv_lib_m_sqrt" >&5
8213 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8214 if test $ac_cv_lib_m_sqrt = yes; then
8215 cat >>confdefs.h
<<EOF
8223 # Check for mail-locking functions in a "mail" library
8225 echo "$as_me:8224: checking for maillock in -lmail" >&5
8226 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8227 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 ac_check_lib_save_LIBS
=$LIBS
8232 cat >conftest.
$ac_ext <<_ACEOF
8233 #line 8227 "configure"
8234 #include "confdefs.h"
8236 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8251 rm -f conftest.
$ac_objext conftest
$ac_exeext
8252 if { (eval echo "$as_me:8251: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:8254: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try
='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:8257: \"$ac_try\"") >&5
8261 echo "$as_me:8260: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_lib_mail_maillock
=yes
8265 echo "$as_me: failed program was:" >&5
8266 cat conftest.
$ac_ext >&5
8267 ac_cv_lib_mail_maillock
=no
8269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8270 LIBS
=$ac_check_lib_save_LIBS
8272 echo "$as_me:8271: result: $ac_cv_lib_mail_maillock" >&5
8273 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8274 if test $ac_cv_lib_mail_maillock = yes; then
8275 cat >>confdefs.h
<<EOF
8276 #define HAVE_LIBMAIL 1
8283 echo "$as_me:8282: checking for maillock in -llockfile" >&5
8284 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8285 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_check_lib_save_LIBS
=$LIBS
8289 LIBS
="-llockfile $LIBS"
8290 cat >conftest.
$ac_ext <<_ACEOF
8291 #line 8285 "configure"
8292 #include "confdefs.h"
8294 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8309 rm -f conftest.
$ac_objext conftest
$ac_exeext
8310 if { (eval echo "$as_me:8309: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8313 echo "$as_me:8312: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try
='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:8315: \"$ac_try\"") >&5
8319 echo "$as_me:8318: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_lib_lockfile_maillock
=yes
8323 echo "$as_me: failed program was:" >&5
8324 cat conftest.
$ac_ext >&5
8325 ac_cv_lib_lockfile_maillock
=no
8327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8328 LIBS
=$ac_check_lib_save_LIBS
8330 echo "$as_me:8329: result: $ac_cv_lib_lockfile_maillock" >&5
8331 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8332 if test $ac_cv_lib_lockfile_maillock = yes; then
8333 cat >>confdefs.h
<<EOF
8334 #define HAVE_LIBLOCKFILE 1
8337 LIBS
="-llockfile $LIBS"
8341 # If we have the shared liblockfile, assume we must use it for mail
8342 # locking (e.g. Debian). If we couldn't link against liblockfile
8343 # (no liblockfile.a installed), ensure that we don't need to.
8344 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8345 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8346 set dummy liblockfile.so
; ac_word
=$2
8347 echo "$as_me:8346: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8349 if test "${ac_cv_prog_liblockfile+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 if test -n "$liblockfile"; then
8353 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8355 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8356 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8357 for ac_dir
in $ac_dummy; do
8359 test -z "$ac_dir" && ac_dir
=.
8360 $as_executable_p "$ac_dir/$ac_word" ||
continue
8361 ac_cv_prog_liblockfile
="yes"
8362 echo "$as_me:8361: found $ac_dir/$ac_word" >&5
8366 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8369 liblockfile
=$ac_cv_prog_liblockfile
8370 if test -n "$liblockfile"; then
8371 echo "$as_me:8370: result: $liblockfile" >&5
8372 echo "${ECHO_T}$liblockfile" >&6
8374 echo "$as_me:8373: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8378 if test $ac_cv_prog_liblockfile = yes; then
8379 { { echo "$as_me:8378: error: Shared liblockfile found but can't link against it.
8380 This probably means that movemail could lose mail.
8381 There may be a \`development' package to install containing liblockfile." >&5
8382 echo "$as_me: error: Shared liblockfile found but can't link against it.
8383 This probably means that movemail could lose mail.
8384 There may be a \`development' package to install containing liblockfile." >&2;}
8385 { (exit 1); exit 1; }; }
8387 cat >>confdefs.h
<<\EOF
8388 #define LIBMAIL -llockfile
8395 for ac_func
in touchlock
8397 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8398 echo "$as_me:8397: checking for $ac_func" >&5
8399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8400 if eval "test \"\${$as_ac_var+set}\" = set"; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.
$ac_ext <<_ACEOF
8404 #line 8398 "configure"
8405 #include "confdefs.h"
8406 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char $ac_func (); below. */
8409 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8434 rm -f conftest.
$ac_objext conftest
$ac_exeext
8435 if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8438 echo "$as_me:8437: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try
='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:8440: \"$ac_try\"") >&5
8444 echo "$as_me:8443: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 eval "$as_ac_var=yes"
8448 echo "$as_me: failed program was:" >&5
8449 cat conftest.
$ac_ext >&5
8450 eval "$as_ac_var=no"
8452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8454 echo "$as_me:8453: result: `eval echo '${'$as_ac_var'}'`" >&5
8455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8456 if test `eval echo '${'$as_ac_var'}'` = yes; then
8457 cat >>confdefs.h
<<EOF
8458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8464 for ac_header
in maillock.h
8466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 echo "$as_me:8466: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.
$ac_ext <<_ACEOF
8473 #line 8467 "configure"
8474 #include "confdefs.h"
8475 #include <$ac_header>
8477 if { (eval echo "$as_me:8476: \"$ac_cpp conftest.$ac_ext\"") >&5
8478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8480 egrep -v '^ *\+' conftest.er1
>conftest.err
8482 cat conftest.err
>&5
8483 echo "$as_me:8482: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev
/null
; then
8485 if test -s conftest.err
; then
8486 ac_cpp_err
=$ac_c_preproc_warn_flag
8493 if test -z "$ac_cpp_err"; then
8494 eval "$as_ac_Header=yes"
8496 echo "$as_me: failed program was:" >&5
8497 cat conftest.
$ac_ext >&5
8498 eval "$as_ac_Header=no"
8500 rm -f conftest.err conftest.
$ac_ext
8502 echo "$as_me:8501: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505 cat >>confdefs.h
<<EOF
8506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512 for ac_func
in gethostname getdomainname dup2 \
8513 rename closedir mkdir
rmdir sysinfo \
8514 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8515 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8516 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8517 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8518 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8519 gai_strerror mkstemp getline getdelim
8521 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8522 echo "$as_me:8521: checking for $ac_func" >&5
8523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_var+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 cat >conftest.
$ac_ext <<_ACEOF
8528 #line 8522 "configure"
8529 #include "confdefs.h"
8530 /* System header to define __stub macros and hopefully few prototypes,
8531 which can conflict with char $ac_func (); below. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8545 /* The GNU C library defines this for functions which it implements
8546 to always fail with ENOSYS. Some functions are actually named
8547 something starting with __ and the normal name is an alias. */
8548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8558 rm -f conftest.
$ac_objext conftest
$ac_exeext
8559 if { (eval echo "$as_me:8558: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>&5
8562 echo "$as_me:8561: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try
='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:8564: \"$ac_try\"") >&5
8568 echo "$as_me:8567: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 eval "$as_ac_var=yes"
8572 echo "$as_me: failed program was:" >&5
8573 cat conftest.
$ac_ext >&5
8574 eval "$as_ac_var=no"
8576 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8578 echo "$as_me:8577: result: `eval echo '${'$as_ac_var'}'`" >&5
8579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8580 if test `eval echo '${'$as_ac_var'}'` = yes; then
8581 cat >>confdefs.h
<<EOF
8582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8588 for ac_header
in sys
/un.h
8590 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8591 echo "$as_me:8590: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 cat >conftest.
$ac_ext <<_ACEOF
8597 #line 8591 "configure"
8598 #include "confdefs.h"
8599 #include <$ac_header>
8601 if { (eval echo "$as_me:8600: \"$ac_cpp conftest.$ac_ext\"") >&5
8602 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8604 egrep -v '^ *\+' conftest.er1
>conftest.err
8606 cat conftest.err
>&5
8607 echo "$as_me:8606: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev
/null
; then
8609 if test -s conftest.err
; then
8610 ac_cpp_err
=$ac_c_preproc_warn_flag
8617 if test -z "$ac_cpp_err"; then
8618 eval "$as_ac_Header=yes"
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.
$ac_ext >&5
8622 eval "$as_ac_Header=no"
8624 rm -f conftest.err conftest.
$ac_ext
8626 echo "$as_me:8625: result: `eval echo '${'$as_ac_Header'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h
<<EOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8636 for ac_header
in sys
/time.h unistd.h
8638 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 echo "$as_me:8638: checking for $ac_header" >&5
8640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.
$ac_ext <<_ACEOF
8645 #line 8639 "configure"
8646 #include "confdefs.h"
8647 #include <$ac_header>
8649 if { (eval echo "$as_me:8648: \"$ac_cpp conftest.$ac_ext\"") >&5
8650 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8652 egrep -v '^ *\+' conftest.er1
>conftest.err
8654 cat conftest.err
>&5
8655 echo "$as_me:8654: \$? = $ac_status" >&5
8656 (exit $ac_status); } >/dev
/null
; then
8657 if test -s conftest.err
; then
8658 ac_cpp_err
=$ac_c_preproc_warn_flag
8665 if test -z "$ac_cpp_err"; then
8666 eval "$as_ac_Header=yes"
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.
$ac_ext >&5
8670 eval "$as_ac_Header=no"
8672 rm -f conftest.err conftest.
$ac_ext
8674 echo "$as_me:8673: result: `eval echo '${'$as_ac_Header'}'`" >&5
8675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8677 cat >>confdefs.h
<<EOF
8678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8684 for ac_func
in alarm
8686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:8686: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 cat >conftest.
$ac_ext <<_ACEOF
8693 #line 8687 "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char $ac_func (); below. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8723 rm -f conftest.
$ac_objext conftest
$ac_exeext
8724 if { (eval echo "$as_me:8723: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8727 echo "$as_me:8726: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try
='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:8729: \"$ac_try\"") >&5
8733 echo "$as_me:8732: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 eval "$as_ac_var=yes"
8737 echo "$as_me: failed program was:" >&5
8738 cat conftest.
$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8743 echo "$as_me:8742: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h
<<EOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753 echo "$as_me:8752: checking for working mktime" >&5
8754 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8755 if test "${ac_cv_func_working_mktime+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_working_mktime
=no
8761 cat >conftest.
$ac_ext <<_ACEOF
8762 #line 8756 "configure"
8763 #include "confdefs.h"
8764 /* Test program from Paul Eggert and Tony Leneis. */
8765 #if TIME_WITH_SYS_TIME
8766 # include <sys/time.h>
8769 # if HAVE_SYS_TIME_H
8770 # include <sys/time.h>
8777 # include <unistd.h>
8781 # define alarm(X) /* empty */
8784 /* Work around redefinition to rpl_putenv by other config tests. */
8787 static time_t time_t_max;
8789 /* Values we'll use to set the TZ environment variable. */
8790 static const char *const tz_strings[] = {
8791 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8792 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8794 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8796 /* Fail if mktime fails to convert a date in the spring-forward gap.
8797 Based on a problem report from Andreas Jaeger. */
8799 spring_forward_gap ()
8801 /* glibc (up to about 1998-10-07) failed this test. */
8804 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8805 instead of "TZ=America/Vancouver" in order to detect the bug even
8806 on systems that don't support the Olson extension, or don't have the
8807 full zoneinfo tables installed. */
8808 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8817 if (mktime (&tm) == (time_t)-1)
8826 if ((lt = localtime (&now)) && mktime (lt) != now)
8828 now = time_t_max - now;
8829 if ((lt = localtime (&now)) && mktime (lt) != now)
8836 /* Based on code from Ariel Faigon. */
8846 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8856 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8858 if (now != (time_t) -1)
8860 struct tm *lt = localtime (&now);
8862 && lt->tm_year == tm.tm_year
8863 && lt->tm_mon == tm.tm_mon
8864 && lt->tm_mday == tm.tm_mday
8865 && lt->tm_hour == tm.tm_hour
8866 && lt->tm_min == tm.tm_min
8867 && lt->tm_sec == tm.tm_sec
8868 && lt->tm_yday == tm.tm_yday
8869 && lt->tm_wday == tm.tm_wday
8870 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8871 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8882 /* This test makes some buggy mktime implementations loop.
8883 Give up after 60 seconds; a mktime slower than that
8884 isn't worth using anyway. */
8887 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8890 delta = time_t_max / 997; /* a suitable prime number */
8891 for (i = 0; i < N_STRINGS; i++)
8894 putenv (tz_strings[i]);
8896 for (t = 0; t <= time_t_max - delta; t += delta)
8898 mktime_test ((time_t) 60 * 60);
8899 mktime_test ((time_t) 60 * 60 * 24);
8901 for (j = 1; 0 < j; j *= 2)
8903 bigtime_test (j - 1);
8906 spring_forward_gap ();
8910 rm -f conftest
$ac_exeext
8911 if { (eval echo "$as_me:8910: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8914 echo "$as_me:8913: \$? = $ac_status" >&5
8915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8916 { (eval echo "$as_me:8915: \"$ac_try\"") >&5
8919 echo "$as_me:8918: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_func_working_mktime
=yes
8923 echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 cat conftest.
$ac_ext >&5
8926 ac_cv_func_working_mktime
=no
8928 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8931 echo "$as_me:8930: result: $ac_cv_func_working_mktime" >&5
8932 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8933 if test $ac_cv_func_working_mktime = no
; then
8934 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8937 if test "$ac_cv_func_working_mktime" = no
; then
8939 cat >>confdefs.h
<<\EOF
8940 #define BROKEN_MKTIME 1
8945 ac_have_func
=no
# yes means we've found a way to get the load average.
8949 # Check for getloadavg, but be sure not to touch the cache variable.
8950 (echo "$as_me:8949: checking for getloadavg" >&5
8951 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8952 if test "${ac_cv_func_getloadavg+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.
$ac_ext <<_ACEOF
8956 #line 8950 "configure"
8957 #include "confdefs.h"
8958 /* System header to define __stub macros and hopefully few prototypes,
8959 which can conflict with char getloadavg (); below. */
8961 /* Override any gcc2 internal prototype to avoid an error. */
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8986 rm -f conftest.
$ac_objext conftest
$ac_exeext
8987 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>&5
8990 echo "$as_me:8989: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try
='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8996 echo "$as_me:8995: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_func_getloadavg
=yes
9000 echo "$as_me: failed program was:" >&5
9001 cat conftest.
$ac_ext >&5
9002 ac_cv_func_getloadavg
=no
9004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9006 echo "$as_me:9005: result: $ac_cv_func_getloadavg" >&5
9007 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9008 if test $ac_cv_func_getloadavg = yes; then
9013 ) && ac_have_func
=yes
9015 # On HPUX9, an unprivileged user can get load averages through this function.
9017 for ac_func
in pstat_getdynamic
9019 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9020 echo "$as_me:9019: checking for $ac_func" >&5
9021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_var+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9025 cat >conftest.
$ac_ext <<_ACEOF
9026 #line 9020 "configure"
9027 #include "confdefs.h"
9028 /* System header to define __stub macros and hopefully few prototypes,
9029 which can conflict with char $ac_func (); below. */
9031 /* Override any gcc2 internal prototype to avoid an error. */
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9043 /* The GNU C library defines this for functions which it implements
9044 to always fail with ENOSYS. Some functions are actually named
9045 something starting with __ and the normal name is an alias. */
9046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9056 rm -f conftest.
$ac_objext conftest
$ac_exeext
9057 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9060 echo "$as_me:9059: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try
='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9066 echo "$as_me:9065: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 eval "$as_ac_var=yes"
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.
$ac_ext >&5
9072 eval "$as_ac_var=no"
9074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9076 echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9078 if test `eval echo '${'$as_ac_var'}'` = yes; then
9079 cat >>confdefs.h
<<EOF
9080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9086 # Solaris has libkstat which does not require root.
9088 echo "$as_me:9087: checking for kstat_open in -lkstat" >&5
9089 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9090 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 ac_check_lib_save_LIBS
=$LIBS
9094 LIBS
="-lkstat $LIBS"
9095 cat >conftest.
$ac_ext <<_ACEOF
9096 #line 9090 "configure"
9097 #include "confdefs.h"
9099 /* Override any gcc2 internal prototype to avoid an error. */
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9114 rm -f conftest.
$ac_objext conftest
$ac_exeext
9115 if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9118 echo "$as_me:9117: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try
='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9124 echo "$as_me:9123: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_kstat_kstat_open
=yes
9128 echo "$as_me: failed program was:" >&5
9129 cat conftest.
$ac_ext >&5
9130 ac_cv_lib_kstat_kstat_open
=no
9132 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9133 LIBS
=$ac_check_lib_save_LIBS
9135 echo "$as_me:9134: result: $ac_cv_lib_kstat_kstat_open" >&5
9136 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9137 if test $ac_cv_lib_kstat_kstat_open = yes; then
9138 cat >>confdefs.h
<<EOF
9139 #define HAVE_LIBKSTAT 1
9142 LIBS
="-lkstat $LIBS"
9146 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
9148 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9149 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9150 # to get the right answer into the cache.
9151 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9152 if test $ac_have_func = no
; then
9153 echo "$as_me:9152: checking for elf_begin in -lelf" >&5
9154 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9155 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 ac_check_lib_save_LIBS
=$LIBS
9160 cat >conftest.
$ac_ext <<_ACEOF
9161 #line 9155 "configure"
9162 #include "confdefs.h"
9164 /* Override any gcc2 internal prototype to avoid an error. */
9168 /* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9179 rm -f conftest.
$ac_objext conftest
$ac_exeext
9180 if { (eval echo "$as_me:9179: \"$ac_link\"") >&5
9181 (eval $ac_link) 2>&5
9183 echo "$as_me:9182: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try
='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:9185: \"$ac_try\"") >&5
9189 echo "$as_me:9188: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_lib_elf_elf_begin
=yes
9193 echo "$as_me: failed program was:" >&5
9194 cat conftest.
$ac_ext >&5
9195 ac_cv_lib_elf_elf_begin
=no
9197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9198 LIBS
=$ac_check_lib_save_LIBS
9200 echo "$as_me:9199: result: $ac_cv_lib_elf_elf_begin" >&5
9201 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9202 if test $ac_cv_lib_elf_elf_begin = yes; then
9207 if test $ac_have_func = no
; then
9208 echo "$as_me:9207: checking for kvm_open in -lkvm" >&5
9209 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9210 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 ac_check_lib_save_LIBS
=$LIBS
9215 cat >conftest.
$ac_ext <<_ACEOF
9216 #line 9210 "configure"
9217 #include "confdefs.h"
9219 /* Override any gcc2 internal prototype to avoid an error. */
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9234 rm -f conftest.
$ac_objext conftest
$ac_exeext
9235 if { (eval echo "$as_me:9234: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9238 echo "$as_me:9237: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try
='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:9240: \"$ac_try\"") >&5
9244 echo "$as_me:9243: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 ac_cv_lib_kvm_kvm_open
=yes
9248 echo "$as_me: failed program was:" >&5
9249 cat conftest.
$ac_ext >&5
9250 ac_cv_lib_kvm_kvm_open
=no
9252 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9253 LIBS
=$ac_check_lib_save_LIBS
9255 echo "$as_me:9254: result: $ac_cv_lib_kvm_kvm_open" >&5
9256 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9257 if test $ac_cv_lib_kvm_kvm_open = yes; then
9261 # Check for the 4.4BSD definition of getloadavg.
9262 echo "$as_me:9261: checking for getloadavg in -lutil" >&5
9263 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9264 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 ac_check_lib_save_LIBS
=$LIBS
9269 cat >conftest.
$ac_ext <<_ACEOF
9270 #line 9264 "configure"
9271 #include "confdefs.h"
9273 /* Override any gcc2 internal prototype to avoid an error. */
9277 /* We use char because int might match the return type of a gcc2
9278 builtin and then its argument prototype would still apply. */
9288 rm -f conftest.
$ac_objext conftest
$ac_exeext
9289 if { (eval echo "$as_me:9288: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>&5
9292 echo "$as_me:9291: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try
='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:9294: \"$ac_try\"") >&5
9298 echo "$as_me:9297: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_lib_util_getloadavg
=yes
9302 echo "$as_me: failed program was:" >&5
9303 cat conftest.
$ac_ext >&5
9304 ac_cv_lib_util_getloadavg
=no
9306 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9307 LIBS
=$ac_check_lib_save_LIBS
9309 echo "$as_me:9308: result: $ac_cv_lib_util_getloadavg" >&5
9310 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9311 if test $ac_cv_lib_util_getloadavg = yes; then
9312 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9317 if test $ac_have_func = no
; then
9318 # There is a commonly available library for RS/6000 AIX.
9319 # Since it is not a standard part of AIX, it might be installed locally.
9320 ac_getloadavg_LIBS
=$LIBS
9321 LIBS
="-L/usr/local/lib $LIBS"
9322 echo "$as_me:9321: checking for getloadavg in -lgetloadavg" >&5
9323 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9324 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 ac_check_lib_save_LIBS
=$LIBS
9328 LIBS
="-lgetloadavg $LIBS"
9329 cat >conftest.
$ac_ext <<_ACEOF
9330 #line 9324 "configure"
9331 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9348 rm -f conftest.
$ac_objext conftest
$ac_exeext
9349 if { (eval echo "$as_me:9348: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>&5
9352 echo "$as_me:9351: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try
='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:9354: \"$ac_try\"") >&5
9358 echo "$as_me:9357: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_getloadavg_getloadavg
=yes
9362 echo "$as_me: failed program was:" >&5
9363 cat conftest.
$ac_ext >&5
9364 ac_cv_lib_getloadavg_getloadavg
=no
9366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9367 LIBS
=$ac_check_lib_save_LIBS
9369 echo "$as_me:9368: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9370 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9371 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9372 LIBS
="-lgetloadavg $LIBS"
9374 LIBS
=$ac_getloadavg_LIBS
9379 # Make sure it is really in the library, if we think we found it,
9380 # otherwise set up the replacement function.
9382 for ac_func
in getloadavg
9384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9385 echo "$as_me:9384: checking for $ac_func" >&5
9386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_var+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.
$ac_ext <<_ACEOF
9391 #line 9385 "configure"
9392 #include "confdefs.h"
9393 /* System header to define __stub macros and hopefully few prototypes,
9394 which can conflict with char $ac_func (); below. */
9396 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9408 /* The GNU C library defines this for functions which it implements
9409 to always fail with ENOSYS. Some functions are actually named
9410 something starting with __ and the normal name is an alias. */
9411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (eval echo "$as_me:9421: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9425 echo "$as_me:9424: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try
='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:9427: \"$ac_try\"") >&5
9431 echo "$as_me:9430: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 eval "$as_ac_var=yes"
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.
$ac_ext >&5
9437 eval "$as_ac_var=no"
9439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9441 echo "$as_me:9440: result: `eval echo '${'$as_ac_var'}'`" >&5
9442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9443 if test `eval echo '${'$as_ac_var'}'` = yes; then
9444 cat >>confdefs.h
<<EOF
9445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9449 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9451 cat >>confdefs.h
<<\EOF
9452 #define C_GETLOADAVG 1
9455 # Figure out what our getloadavg.c needs.
9457 echo "$as_me:9456: checking for sys/dg_sys_info.h" >&5
9458 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9459 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 cat >conftest.
$ac_ext <<_ACEOF
9463 #line 9457 "configure"
9464 #include "confdefs.h"
9465 #include <sys/dg_sys_info.h>
9467 if { (eval echo "$as_me:9466: \"$ac_cpp conftest.$ac_ext\"") >&5
9468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9470 egrep -v '^ *\+' conftest.er1
>conftest.err
9472 cat conftest.err
>&5
9473 echo "$as_me:9472: \$? = $ac_status" >&5
9474 (exit $ac_status); } >/dev
/null
; then
9475 if test -s conftest.err
; then
9476 ac_cpp_err
=$ac_c_preproc_warn_flag
9483 if test -z "$ac_cpp_err"; then
9484 ac_cv_header_sys_dg_sys_info_h
=yes
9486 echo "$as_me: failed program was:" >&5
9487 cat conftest.
$ac_ext >&5
9488 ac_cv_header_sys_dg_sys_info_h
=no
9490 rm -f conftest.err conftest.
$ac_ext
9492 echo "$as_me:9491: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9493 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9494 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9497 cat >>confdefs.h
<<\EOF
9501 echo "$as_me:9500: checking for dg_sys_info in -ldgc" >&5
9502 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9503 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 ac_check_lib_save_LIBS
=$LIBS
9508 cat >conftest.
$ac_ext <<_ACEOF
9509 #line 9503 "configure"
9510 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518 char dg_sys_info ();
9527 rm -f conftest.
$ac_objext conftest
$ac_exeext
9528 if { (eval echo "$as_me:9527: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:9530: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try
='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:9533: \"$ac_try\"") >&5
9537 echo "$as_me:9536: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_dgc_dg_sys_info
=yes
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.
$ac_ext >&5
9543 ac_cv_lib_dgc_dg_sys_info
=no
9545 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9546 LIBS
=$ac_check_lib_save_LIBS
9548 echo "$as_me:9547: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9551 cat >>confdefs.h
<<EOF
9552 #define HAVE_LIBDGC 1
9561 echo "$as_me:9560: checking for locale.h" >&5
9562 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9563 if test "${ac_cv_header_locale_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.
$ac_ext <<_ACEOF
9567 #line 9561 "configure"
9568 #include "confdefs.h"
9571 if { (eval echo "$as_me:9570: \"$ac_cpp conftest.$ac_ext\"") >&5
9572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9574 egrep -v '^ *\+' conftest.er1
>conftest.err
9576 cat conftest.err
>&5
9577 echo "$as_me:9576: \$? = $ac_status" >&5
9578 (exit $ac_status); } >/dev
/null
; then
9579 if test -s conftest.err
; then
9580 ac_cpp_err
=$ac_c_preproc_warn_flag
9587 if test -z "$ac_cpp_err"; then
9588 ac_cv_header_locale_h
=yes
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.
$ac_ext >&5
9592 ac_cv_header_locale_h
=no
9594 rm -f conftest.err conftest.
$ac_ext
9596 echo "$as_me:9595: result: $ac_cv_header_locale_h" >&5
9597 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9599 for ac_func
in setlocale
9601 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 echo "$as_me:9601: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_var+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 cat >conftest.
$ac_ext <<_ACEOF
9608 #line 9602 "configure"
9609 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below. */
9613 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 rm -f conftest.
$ac_objext conftest
$ac_exeext
9639 if { (eval echo "$as_me:9638: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9642 echo "$as_me:9641: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try
='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:9644: \"$ac_try\"") >&5
9648 echo "$as_me:9647: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 eval "$as_ac_var=yes"
9652 echo "$as_me: failed program was:" >&5
9653 cat conftest.
$ac_ext >&5
9654 eval "$as_ac_var=no"
9656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9658 echo "$as_me:9657: result: `eval echo '${'$as_ac_var'}'`" >&5
9659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9660 if test `eval echo '${'$as_ac_var'}'` = yes; then
9661 cat >>confdefs.h
<<EOF
9662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9669 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9670 # Irix 4.0.5F has the header but not the library.
9671 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9674 cat >>confdefs.h
<<\EOF
9680 if test $ac_have_func = no
; then
9681 echo "$as_me:9680: checking for inq_stats/cpustats.h" >&5
9682 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9683 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 cat >conftest.
$ac_ext <<_ACEOF
9687 #line 9681 "configure"
9688 #include "confdefs.h"
9689 #include <inq_stats/cpustats.h>
9691 if { (eval echo "$as_me:9690: \"$ac_cpp conftest.$ac_ext\"") >&5
9692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9694 egrep -v '^ *\+' conftest.er1
>conftest.err
9696 cat conftest.err
>&5
9697 echo "$as_me:9696: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev
/null
; then
9699 if test -s conftest.err
; then
9700 ac_cpp_err
=$ac_c_preproc_warn_flag
9707 if test -z "$ac_cpp_err"; then
9708 ac_cv_header_inq_stats_cpustats_h
=yes
9710 echo "$as_me: failed program was:" >&5
9711 cat conftest.
$ac_ext >&5
9712 ac_cv_header_inq_stats_cpustats_h
=no
9714 rm -f conftest.err conftest.
$ac_ext
9716 echo "$as_me:9715: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9717 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9718 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9721 cat >>confdefs.h
<<\EOF
9725 cat >>confdefs.h
<<\EOF
9733 if test $ac_have_func = no
; then
9734 echo "$as_me:9733: checking for sys/cpustats.h" >&5
9735 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9736 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 cat >conftest.
$ac_ext <<_ACEOF
9740 #line 9734 "configure"
9741 #include "confdefs.h"
9742 #include <sys/cpustats.h>
9744 if { (eval echo "$as_me:9743: \"$ac_cpp conftest.$ac_ext\"") >&5
9745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9747 egrep -v '^ *\+' conftest.er1
>conftest.err
9749 cat conftest.err
>&5
9750 echo "$as_me:9749: \$? = $ac_status" >&5
9751 (exit $ac_status); } >/dev
/null
; then
9752 if test -s conftest.err
; then
9753 ac_cpp_err
=$ac_c_preproc_warn_flag
9760 if test -z "$ac_cpp_err"; then
9761 ac_cv_header_sys_cpustats_h
=yes
9763 echo "$as_me: failed program was:" >&5
9764 cat conftest.
$ac_ext >&5
9765 ac_cv_header_sys_cpustats_h
=no
9767 rm -f conftest.err conftest.
$ac_ext
9769 echo "$as_me:9768: result: $ac_cv_header_sys_cpustats_h" >&5
9770 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9771 if test $ac_cv_header_sys_cpustats_h = yes; then
9772 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9780 if test $ac_have_func = no
; then
9782 for ac_header
in mach
/mach.h
9784 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9785 echo "$as_me:9784: checking for $ac_header" >&5
9786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 cat >conftest.
$ac_ext <<_ACEOF
9791 #line 9785 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_header>
9795 if { (eval echo "$as_me:9794: \"$ac_cpp conftest.$ac_ext\"") >&5
9796 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9798 egrep -v '^ *\+' conftest.er1
>conftest.err
9800 cat conftest.err
>&5
9801 echo "$as_me:9800: \$? = $ac_status" >&5
9802 (exit $ac_status); } >/dev
/null
; then
9803 if test -s conftest.err
; then
9804 ac_cpp_err
=$ac_c_preproc_warn_flag
9811 if test -z "$ac_cpp_err"; then
9812 eval "$as_ac_Header=yes"
9814 echo "$as_me: failed program was:" >&5
9815 cat conftest.
$ac_ext >&5
9816 eval "$as_ac_Header=no"
9818 rm -f conftest.err conftest.
$ac_ext
9820 echo "$as_me:9819: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h
<<EOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832 for ac_header
in nlist.h
9834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9835 echo "$as_me:9834: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 cat >conftest.
$ac_ext <<_ACEOF
9841 #line 9835 "configure"
9842 #include "confdefs.h"
9843 #include <$ac_header>
9845 if { (eval echo "$as_me:9844: \"$ac_cpp conftest.$ac_ext\"") >&5
9846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9848 egrep -v '^ *\+' conftest.er1
>conftest.err
9850 cat conftest.err
>&5
9851 echo "$as_me:9850: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev
/null
; then
9853 if test -s conftest.err
; then
9854 ac_cpp_err
=$ac_c_preproc_warn_flag
9861 if test -z "$ac_cpp_err"; then
9862 eval "$as_ac_Header=yes"
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.
$ac_ext >&5
9866 eval "$as_ac_Header=no"
9868 rm -f conftest.err conftest.
$ac_ext
9870 echo "$as_me:9869: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h
<<EOF
9874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9876 echo "$as_me:9875: checking for struct nlist.n_un.n_name" >&5
9877 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9878 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 cat >conftest.
$ac_ext <<_ACEOF
9882 #line 9876 "configure"
9883 #include "confdefs.h"
9889 static struct nlist ac_aggr;
9890 if (ac_aggr.n_un.n_name)
9896 rm -f conftest.
$ac_objext
9897 if { (eval echo "$as_me:9896: \"$ac_compile\"") >&5
9898 (eval $ac_compile) 2>&5
9900 echo "$as_me:9899: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try
='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:9902: \"$ac_try\"") >&5
9906 echo "$as_me:9905: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_cv_member_struct_nlist_n_un_n_name
=yes
9910 echo "$as_me: failed program was:" >&5
9911 cat conftest.
$ac_ext >&5
9912 ac_cv_member_struct_nlist_n_un_n_name
=no
9914 rm -f conftest.
$ac_objext conftest.
$ac_ext
9916 echo "$as_me:9915: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9917 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9918 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9920 cat >>confdefs.h
<<EOF
9921 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9924 cat >>confdefs.h
<<\EOF
9925 #define NLIST_NAME_UNION 1
9936 # Some definitions of getloadavg require that the program be installed setgid.
9937 echo "$as_me:9936: checking whether getloadavg requires setgid" >&5
9938 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9939 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 cat >conftest.
$ac_ext <<_ACEOF
9943 #line 9937 "configure"
9944 #include "confdefs.h"
9945 #include "$srcdir/getloadavg.c"
9946 #ifdef LDAV_PRIVILEGED
9947 Yowza Am I SETGID yet
9950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9951 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9952 ac_cv_func_getloadavg_setgid
=yes
9954 ac_cv_func_getloadavg_setgid
=no
9959 echo "$as_me:9958: result: $ac_cv_func_getloadavg_setgid" >&5
9960 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9961 if test $ac_cv_func_getloadavg_setgid = yes; then
9964 cat >>confdefs.h
<<\EOF
9965 #define GETLOADAVG_PRIVILEGED 1
9972 if test $ac_cv_func_getloadavg_setgid = yes; then
9973 echo "$as_me:9972: checking group of /dev/kmem" >&5
9974 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9975 if test "${ac_cv_group_kmem+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9979 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9980 # If we got an error (system does not support symlinks), try without -L.
9981 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9982 ac_cv_group_kmem
=`echo $ac_ls_output \
9983 | sed -ne 's/[ ][ ]*/ /g;
9984 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9988 echo "$as_me:9987: result: $ac_cv_group_kmem" >&5
9989 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9990 KMEM_GROUP
=$ac_cv_group_kmem
9992 if test "x$ac_save_LIBS" = x
; then
9993 GETLOADAVG_LIBS
=$LIBS
9995 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9999 echo "$as_me:9998: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10000 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10001 if test "${ac_cv_sys_largefile_source+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 ac_cv_sys_largefile_source
=no
10006 cat >conftest.
$ac_ext <<_ACEOF
10007 #line 10001 "configure"
10008 #include "confdefs.h"
10018 rm -f conftest.
$ac_objext
10019 if { (eval echo "$as_me:10018: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>&5
10022 echo "$as_me:10021: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try
='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:10024: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10028 echo "$as_me:10027: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10032 echo "$as_me: failed program was:" >&5
10033 cat conftest.
$ac_ext >&5
10035 rm -f conftest.
$ac_objext conftest.
$ac_ext
10036 cat >conftest.
$ac_ext <<_ACEOF
10037 #line 10031 "configure"
10038 #include "confdefs.h"
10039 #define _LARGEFILE_SOURCE 1
10049 rm -f conftest.
$ac_objext
10050 if { (eval echo "$as_me:10049: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10053 echo "$as_me:10052: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try
='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:10055: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:10058: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_sys_largefile_source
=1; break
10063 echo "$as_me: failed program was:" >&5
10064 cat conftest.
$ac_ext >&5
10066 rm -f conftest.
$ac_objext conftest.
$ac_ext
10070 echo "$as_me:10069: result: $ac_cv_sys_largefile_source" >&5
10071 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10072 if test "$ac_cv_sys_largefile_source" != no
; then
10074 cat >>confdefs.h
<<EOF
10075 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10081 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10082 # in glibc 2.1.3, but that breaks too many other things.
10083 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10084 echo "$as_me:10083: checking for fseeko" >&5
10085 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10086 if test "${ac_cv_func_fseeko+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >conftest.
$ac_ext <<_ACEOF
10090 #line 10084 "configure"
10091 #include "confdefs.h"
10096 return fseeko && fseeko (stdin, 0, 0);
10101 rm -f conftest.
$ac_objext conftest
$ac_exeext
10102 if { (eval echo "$as_me:10101: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10105 echo "$as_me:10104: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try
='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:10107: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:10110: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_func_fseeko
=yes
10115 echo "$as_me: failed program was:" >&5
10116 cat conftest.
$ac_ext >&5
10117 ac_cv_func_fseeko
=no
10119 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10121 echo "$as_me:10120: result: $ac_cv_func_fseeko" >&5
10122 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10123 if test $ac_cv_func_fseeko = yes; then
10125 cat >>confdefs.h
<<\EOF
10126 #define HAVE_FSEEKO 1
10133 for ac_func
in grantpt
10135 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10136 echo "$as_me:10135: checking for $ac_func" >&5
10137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10138 if eval "test \"\${$as_ac_var+set}\" = set"; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 cat >conftest.
$ac_ext <<_ACEOF
10142 #line 10136 "configure"
10143 #include "confdefs.h"
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func (); below. */
10146 #include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10159 /* The GNU C library defines this for functions which it implements
10160 to always fail with ENOSYS. Some functions are actually named
10161 something starting with __ and the normal name is an alias. */
10162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10172 rm -f conftest.
$ac_objext conftest
$ac_exeext
10173 if { (eval echo "$as_me:10172: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10176 echo "$as_me:10175: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try
='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:10178: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:10181: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 eval "$as_ac_var=yes"
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.
$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10192 echo "$as_me:10191: result: `eval echo '${'$as_ac_var'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h
<<EOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10202 # PTY-related GNU extensions.
10204 for ac_func
in getpt
10206 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 echo "$as_me:10206: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_var+set}\" = set"; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 cat >conftest.
$ac_ext <<_ACEOF
10213 #line 10207 "configure"
10214 #include "confdefs.h"
10215 /* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func (); below. */
10217 #include <assert.h>
10218 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10230 /* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
10233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10243 rm -f conftest.
$ac_objext conftest
$ac_exeext
10244 if { (eval echo "$as_me:10243: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10247 echo "$as_me:10246: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try
='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:10249: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10253 echo "$as_me:10252: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 eval "$as_ac_var=yes"
10257 echo "$as_me: failed program was:" >&5
10258 cat conftest.
$ac_ext >&5
10259 eval "$as_ac_var=no"
10261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10263 echo "$as_me:10262: result: `eval echo '${'$as_ac_var'}'`" >&5
10264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266 cat >>confdefs.h
<<EOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10273 # Check this now, so that we will NOT find the above functions in ncurses.
10274 # That is because we have not set up to link ncurses in lib-src.
10275 # It's better to believe a function is not available
10276 # than to expect to find it in ncurses.
10278 echo "$as_me:10277: checking for tparm in -lncurses" >&5
10279 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10280 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS
=$LIBS
10284 LIBS
="-lncurses $LIBS"
10285 cat >conftest.
$ac_ext <<_ACEOF
10286 #line 10280 "configure"
10287 #include "confdefs.h"
10289 /* Override any gcc2 internal prototype to avoid an error. */
10293 /* We use char because int might match the return type of a gcc2
10294 builtin and then its argument prototype would still apply. */
10304 rm -f conftest.
$ac_objext conftest
$ac_exeext
10305 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>&5
10308 echo "$as_me:10307: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try
='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:10313: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_lib_ncurses_tparm
=yes
10318 echo "$as_me: failed program was:" >&5
10319 cat conftest.
$ac_ext >&5
10320 ac_cv_lib_ncurses_tparm
=no
10322 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10323 LIBS
=$ac_check_lib_save_LIBS
10325 echo "$as_me:10324: result: $ac_cv_lib_ncurses_tparm" >&5
10326 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10327 if test $ac_cv_lib_ncurses_tparm = yes; then
10328 cat >>confdefs.h
<<EOF
10329 #define HAVE_LIBNCURSES 1
10332 LIBS
="-lncurses $LIBS"
10336 # Do we need the Hesiod library to provide the support routines?
10337 if test "$with_hesiod" = yes ; then
10338 # Don't set $LIBS here -- see comments above.
10340 echo "$as_me:10339: checking for res_send" >&5
10341 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10342 if test "${ac_cv_func_res_send+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 cat >conftest.
$ac_ext <<_ACEOF
10346 #line 10340 "configure"
10347 #include "confdefs.h"
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char res_send (); below. */
10350 #include <assert.h>
10351 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10363 /* The GNU C library defines this for functions which it implements
10364 to always fail with ENOSYS. Some functions are actually named
10365 something starting with __ and the normal name is an alias. */
10366 #if defined (__stub_res_send) || defined (__stub___res_send)
10376 rm -f conftest.
$ac_objext conftest
$ac_exeext
10377 if { (eval echo "$as_me:10376: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>&5
10380 echo "$as_me:10379: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try
='test -s conftest$ac_exeext'
10383 { (eval echo "$as_me:10382: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:10385: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_func_res_send
=yes
10390 echo "$as_me: failed program was:" >&5
10391 cat conftest.
$ac_ext >&5
10392 ac_cv_func_res_send
=no
10394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10396 echo "$as_me:10395: result: $ac_cv_func_res_send" >&5
10397 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10398 if test $ac_cv_func_res_send = yes; then
10401 echo "$as_me:10400: checking for __res_send" >&5
10402 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10403 if test "${ac_cv_func___res_send+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.
$ac_ext <<_ACEOF
10407 #line 10401 "configure"
10408 #include "confdefs.h"
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char __res_send (); below. */
10411 #include <assert.h>
10412 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10418 char __res_send ();
10424 /* The GNU C library defines this for functions which it implements
10425 to always fail with ENOSYS. Some functions are actually named
10426 something starting with __ and the normal name is an alias. */
10427 #if defined (__stub___res_send) || defined (__stub_____res_send)
10437 rm -f conftest.
$ac_objext conftest
$ac_exeext
10438 if { (eval echo "$as_me:10437: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>&5
10441 echo "$as_me:10440: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try
='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:10443: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:10446: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_func___res_send
=yes
10451 echo "$as_me: failed program was:" >&5
10452 cat conftest.
$ac_ext >&5
10453 ac_cv_func___res_send
=no
10455 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10457 echo "$as_me:10456: result: $ac_cv_func___res_send" >&5
10458 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10459 if test $ac_cv_func___res_send = yes; then
10462 echo "$as_me:10461: checking for res_send in -lresolv" >&5
10463 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10464 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 ac_check_lib_save_LIBS
=$LIBS
10468 LIBS
="-lresolv $LIBS"
10469 cat >conftest.
$ac_ext <<_ACEOF
10470 #line 10464 "configure"
10471 #include "confdefs.h"
10473 /* Override any gcc2 internal prototype to avoid an error. */
10477 /* We use char because int might match the return type of a gcc2
10478 builtin and then its argument prototype would still apply. */
10488 rm -f conftest.
$ac_objext conftest
$ac_exeext
10489 if { (eval echo "$as_me:10488: \"$ac_link\"") >&5
10490 (eval $ac_link) 2>&5
10492 echo "$as_me:10491: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try
='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:10497: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_resolv_res_send
=yes
10502 echo "$as_me: failed program was:" >&5
10503 cat conftest.
$ac_ext >&5
10504 ac_cv_lib_resolv_res_send
=no
10506 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10507 LIBS
=$ac_check_lib_save_LIBS
10509 echo "$as_me:10508: result: $ac_cv_lib_resolv_res_send" >&5
10510 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10511 if test $ac_cv_lib_resolv_res_send = yes; then
10514 echo "$as_me:10513: checking for __res_send in -lresolv" >&5
10515 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10516 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 ac_check_lib_save_LIBS
=$LIBS
10520 LIBS
="-lresolv $LIBS"
10521 cat >conftest.
$ac_ext <<_ACEOF
10522 #line 10516 "configure"
10523 #include "confdefs.h"
10525 /* Override any gcc2 internal prototype to avoid an error. */
10529 /* We use char because int might match the return type of a gcc2
10530 builtin and then its argument prototype would still apply. */
10531 char __res_send ();
10540 rm -f conftest.
$ac_objext conftest
$ac_exeext
10541 if { (eval echo "$as_me:10540: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10544 echo "$as_me:10543: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try
='test -s conftest$ac_exeext'
10547 { (eval echo "$as_me:10546: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:10549: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_lib_resolv___res_send
=yes
10554 echo "$as_me: failed program was:" >&5
10555 cat conftest.
$ac_ext >&5
10556 ac_cv_lib_resolv___res_send
=no
10558 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10559 LIBS
=$ac_check_lib_save_LIBS
10561 echo "$as_me:10560: result: $ac_cv_lib_resolv___res_send" >&5
10562 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10563 if test $ac_cv_lib_resolv___res_send = yes; then
10573 if test "$resolv" = yes ; then
10576 cat >>confdefs.h
<<\EOF
10577 #define HAVE_LIBRESOLV 1
10583 echo "$as_me:10582: checking for hes_getmailhost" >&5
10584 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10585 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 cat >conftest.
$ac_ext <<_ACEOF
10589 #line 10583 "configure"
10590 #include "confdefs.h"
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char hes_getmailhost (); below. */
10593 #include <assert.h>
10594 /* Override any gcc2 internal prototype to avoid an error. */
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10600 char hes_getmailhost ();
10606 /* The GNU C library defines this for functions which it implements
10607 to always fail with ENOSYS. Some functions are actually named
10608 something starting with __ and the normal name is an alias. */
10609 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10612 f = hes_getmailhost;
10619 rm -f conftest.
$ac_objext conftest
$ac_exeext
10620 if { (eval echo "$as_me:10619: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>&5
10623 echo "$as_me:10622: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try
='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:10625: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:10628: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_func_hes_getmailhost
=yes
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.
$ac_ext >&5
10635 ac_cv_func_hes_getmailhost
=no
10637 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10639 echo "$as_me:10638: result: $ac_cv_func_hes_getmailhost" >&5
10640 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10641 if test $ac_cv_func_hes_getmailhost = yes; then
10644 echo "$as_me:10643: checking for hes_getmailhost in -lhesiod" >&5
10645 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10646 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 ac_check_lib_save_LIBS
=$LIBS
10650 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10651 cat >conftest.
$ac_ext <<_ACEOF
10652 #line 10646 "configure"
10653 #include "confdefs.h"
10655 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661 char hes_getmailhost ();
10665 hes_getmailhost ();
10670 rm -f conftest.
$ac_objext conftest
$ac_exeext
10671 if { (eval echo "$as_me:10670: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>&5
10674 echo "$as_me:10673: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try
='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:10676: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:10679: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_lib_hesiod_hes_getmailhost
=yes
10684 echo "$as_me: failed program was:" >&5
10685 cat conftest.
$ac_ext >&5
10686 ac_cv_lib_hesiod_hes_getmailhost
=no
10688 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10689 LIBS
=$ac_check_lib_save_LIBS
10691 echo "$as_me:10690: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10692 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10693 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10695 cat >>confdefs.h
<<\EOF
10696 #define HAVE_LIBHESIOD 1
10707 # These tell us which Kerberos-related libraries to use.
10708 if test "${with_kerberos+set}" = set; then
10710 echo "$as_me:10709: checking for com_err in -lcom_err" >&5
10711 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10712 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 ac_check_lib_save_LIBS
=$LIBS
10716 LIBS
="-lcom_err $LIBS"
10717 cat >conftest.
$ac_ext <<_ACEOF
10718 #line 10712 "configure"
10719 #include "confdefs.h"
10721 /* Override any gcc2 internal prototype to avoid an error. */
10725 /* We use char because int might match the return type of a gcc2
10726 builtin and then its argument prototype would still apply. */
10736 rm -f conftest.
$ac_objext conftest
$ac_exeext
10737 if { (eval echo "$as_me:10736: \"$ac_link\"") >&5
10738 (eval $ac_link) 2>&5
10740 echo "$as_me:10739: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try
='test -s conftest$ac_exeext'
10743 { (eval echo "$as_me:10742: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10746 echo "$as_me:10745: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_lib_com_err_com_err
=yes
10750 echo "$as_me: failed program was:" >&5
10751 cat conftest.
$ac_ext >&5
10752 ac_cv_lib_com_err_com_err
=no
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10755 LIBS
=$ac_check_lib_save_LIBS
10757 echo "$as_me:10756: result: $ac_cv_lib_com_err_com_err" >&5
10758 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10759 if test $ac_cv_lib_com_err_com_err = yes; then
10760 cat >>confdefs.h
<<EOF
10761 #define HAVE_LIBCOM_ERR 1
10764 LIBS
="-lcom_err $LIBS"
10768 echo "$as_me:10767: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10769 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10770 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_check_lib_save_LIBS
=$LIBS
10774 LIBS
="-lk5crypto $LIBS"
10775 cat >conftest.
$ac_ext <<_ACEOF
10776 #line 10770 "configure"
10777 #include "confdefs.h"
10779 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10785 char mit_des_cbc_encrypt ();
10789 mit_des_cbc_encrypt ();
10794 rm -f conftest.
$ac_objext conftest
$ac_exeext
10795 if { (eval echo "$as_me:10794: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>&5
10798 echo "$as_me:10797: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try
='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:10800: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10804 echo "$as_me:10803: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10808 echo "$as_me: failed program was:" >&5
10809 cat conftest.
$ac_ext >&5
10810 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10813 LIBS
=$ac_check_lib_save_LIBS
10815 echo "$as_me:10814: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10816 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10817 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10818 cat >>confdefs.h
<<EOF
10819 #define HAVE_LIBK5CRYPTO 1
10822 LIBS
="-lk5crypto $LIBS"
10826 echo "$as_me:10825: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10828 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 ac_check_lib_save_LIBS
=$LIBS
10832 LIBS
="-lcrypto $LIBS"
10833 cat >conftest.
$ac_ext <<_ACEOF
10834 #line 10828 "configure"
10835 #include "confdefs.h"
10837 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843 char mit_des_cbc_encrypt ();
10847 mit_des_cbc_encrypt ();
10852 rm -f conftest.
$ac_objext conftest
$ac_exeext
10853 if { (eval echo "$as_me:10852: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10856 echo "$as_me:10855: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try
='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:10858: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:10861: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10866 echo "$as_me: failed program was:" >&5
10867 cat conftest.
$ac_ext >&5
10868 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10870 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10871 LIBS
=$ac_check_lib_save_LIBS
10873 echo "$as_me:10872: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10874 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10875 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10876 cat >>confdefs.h
<<EOF
10877 #define HAVE_LIBCRYPTO 1
10880 LIBS
="-lcrypto $LIBS"
10884 echo "$as_me:10883: checking for krb5_init_context in -lkrb5" >&5
10885 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10886 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 ac_check_lib_save_LIBS
=$LIBS
10890 LIBS
="-lkrb5 $LIBS"
10891 cat >conftest.
$ac_ext <<_ACEOF
10892 #line 10886 "configure"
10893 #include "confdefs.h"
10895 /* Override any gcc2 internal prototype to avoid an error. */
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10901 char krb5_init_context ();
10905 krb5_init_context ();
10910 rm -f conftest.
$ac_objext conftest
$ac_exeext
10911 if { (eval echo "$as_me:10910: \"$ac_link\"") >&5
10912 (eval $ac_link) 2>&5
10914 echo "$as_me:10913: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try
='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:10916: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:10919: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_krb5_krb5_init_context
=yes
10924 echo "$as_me: failed program was:" >&5
10925 cat conftest.
$ac_ext >&5
10926 ac_cv_lib_krb5_krb5_init_context
=no
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10929 LIBS
=$ac_check_lib_save_LIBS
10931 echo "$as_me:10930: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10932 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10933 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10934 cat >>confdefs.h
<<EOF
10935 #define HAVE_LIBKRB5 1
10938 LIBS
="-lkrb5 $LIBS"
10942 if test "${with_kerberos5+set}" != set; then
10944 echo "$as_me:10943: checking for des_cbc_encrypt in -ldes425" >&5
10945 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10946 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 ac_check_lib_save_LIBS
=$LIBS
10950 LIBS
="-ldes425 $LIBS"
10951 cat >conftest.
$ac_ext <<_ACEOF
10952 #line 10946 "configure"
10953 #include "confdefs.h"
10955 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char des_cbc_encrypt ();
10965 des_cbc_encrypt ();
10970 rm -f conftest.
$ac_objext conftest
$ac_exeext
10971 if { (eval echo "$as_me:10970: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10974 echo "$as_me:10973: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try
='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:10976: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:10979: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_lib_des425_des_cbc_encrypt
=yes
10984 echo "$as_me: failed program was:" >&5
10985 cat conftest.
$ac_ext >&5
10986 ac_cv_lib_des425_des_cbc_encrypt
=no
10988 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10989 LIBS
=$ac_check_lib_save_LIBS
10991 echo "$as_me:10990: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10992 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10993 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10994 cat >>confdefs.h
<<EOF
10995 #define HAVE_LIBDES425 1
10998 LIBS
="-ldes425 $LIBS"
11002 echo "$as_me:11001: checking for des_cbc_encrypt in -ldes" >&5
11003 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11004 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 ac_check_lib_save_LIBS
=$LIBS
11009 cat >conftest.
$ac_ext <<_ACEOF
11010 #line 11004 "configure"
11011 #include "confdefs.h"
11013 /* Override any gcc2 internal prototype to avoid an error. */
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11019 char des_cbc_encrypt ();
11023 des_cbc_encrypt ();
11028 rm -f conftest.
$ac_objext conftest
$ac_exeext
11029 if { (eval echo "$as_me:11028: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>&5
11032 echo "$as_me:11031: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try
='test -s conftest$ac_exeext'
11035 { (eval echo "$as_me:11034: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:11037: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_lib_des_des_cbc_encrypt
=yes
11042 echo "$as_me: failed program was:" >&5
11043 cat conftest.
$ac_ext >&5
11044 ac_cv_lib_des_des_cbc_encrypt
=no
11046 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11047 LIBS
=$ac_check_lib_save_LIBS
11049 echo "$as_me:11048: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11050 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11051 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11052 cat >>confdefs.h
<<EOF
11053 #define HAVE_LIBDES 1
11062 echo "$as_me:11061: checking for krb_get_cred in -lkrb4" >&5
11063 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11064 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 ac_check_lib_save_LIBS
=$LIBS
11068 LIBS
="-lkrb4 $LIBS"
11069 cat >conftest.
$ac_ext <<_ACEOF
11070 #line 11064 "configure"
11071 #include "confdefs.h"
11073 /* Override any gcc2 internal prototype to avoid an error. */
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11079 char krb_get_cred ();
11088 rm -f conftest.
$ac_objext conftest
$ac_exeext
11089 if { (eval echo "$as_me:11088: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11092 echo "$as_me:11091: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try
='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:11094: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:11097: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_cv_lib_krb4_krb_get_cred
=yes
11102 echo "$as_me: failed program was:" >&5
11103 cat conftest.
$ac_ext >&5
11104 ac_cv_lib_krb4_krb_get_cred
=no
11106 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11107 LIBS
=$ac_check_lib_save_LIBS
11109 echo "$as_me:11108: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11110 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11111 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11112 cat >>confdefs.h
<<EOF
11113 #define HAVE_LIBKRB4 1
11116 LIBS
="-lkrb4 $LIBS"
11120 echo "$as_me:11119: checking for krb_get_cred in -lkrb" >&5
11121 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11122 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 ac_check_lib_save_LIBS
=$LIBS
11127 cat >conftest.
$ac_ext <<_ACEOF
11128 #line 11122 "configure"
11129 #include "confdefs.h"
11131 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char krb_get_cred ();
11146 rm -f conftest.
$ac_objext conftest
$ac_exeext
11147 if { (eval echo "$as_me:11146: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>&5
11150 echo "$as_me:11149: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try
='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:11155: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_lib_krb_krb_get_cred
=yes
11160 echo "$as_me: failed program was:" >&5
11161 cat conftest.
$ac_ext >&5
11162 ac_cv_lib_krb_krb_get_cred
=no
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11165 LIBS
=$ac_check_lib_save_LIBS
11167 echo "$as_me:11166: result: $ac_cv_lib_krb_krb_get_cred" >&5
11168 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11169 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11170 cat >>confdefs.h
<<EOF
11171 #define HAVE_LIBKRB 1
11182 if test "${with_kerberos5+set}" = set; then
11184 for ac_header
in krb5.h
11186 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 echo "$as_me:11186: checking for $ac_header" >&5
11188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 cat >conftest.
$ac_ext <<_ACEOF
11193 #line 11187 "configure"
11194 #include "confdefs.h"
11195 #include <$ac_header>
11197 if { (eval echo "$as_me:11196: \"$ac_cpp conftest.$ac_ext\"") >&5
11198 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11200 egrep -v '^ *\+' conftest.er1
>conftest.err
11202 cat conftest.err
>&5
11203 echo "$as_me:11202: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev
/null
; then
11205 if test -s conftest.err
; then
11206 ac_cpp_err
=$ac_c_preproc_warn_flag
11213 if test -z "$ac_cpp_err"; then
11214 eval "$as_ac_Header=yes"
11216 echo "$as_me: failed program was:" >&5
11217 cat conftest.
$ac_ext >&5
11218 eval "$as_ac_Header=no"
11220 rm -f conftest.err conftest.
$ac_ext
11222 echo "$as_me:11221: result: `eval echo '${'$as_ac_Header'}'`" >&5
11223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225 cat >>confdefs.h
<<EOF
11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11234 for ac_header
in des.h
11236 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 echo "$as_me:11236: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.
$ac_ext <<_ACEOF
11243 #line 11237 "configure"
11244 #include "confdefs.h"
11245 #include <$ac_header>
11247 if { (eval echo "$as_me:11246: \"$ac_cpp conftest.$ac_ext\"") >&5
11248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11250 egrep -v '^ *\+' conftest.er1
>conftest.err
11252 cat conftest.err
>&5
11253 echo "$as_me:11252: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev
/null
; then
11255 if test -s conftest.err
; then
11256 ac_cpp_err
=$ac_c_preproc_warn_flag
11263 if test -z "$ac_cpp_err"; then
11264 eval "$as_ac_Header=yes"
11266 echo "$as_me: failed program was:" >&5
11267 cat conftest.
$ac_ext >&5
11268 eval "$as_ac_Header=no"
11270 rm -f conftest.err conftest.
$ac_ext
11272 echo "$as_me:11271: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11275 cat >>confdefs.h
<<EOF
11276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11281 for ac_header
in kerberosIV
/des.h
11283 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11284 echo "$as_me:11283: checking for $ac_header" >&5
11285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 cat >conftest.
$ac_ext <<_ACEOF
11290 #line 11284 "configure"
11291 #include "confdefs.h"
11292 #include <$ac_header>
11294 if { (eval echo "$as_me:11293: \"$ac_cpp conftest.$ac_ext\"") >&5
11295 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11297 egrep -v '^ *\+' conftest.er1
>conftest.err
11299 cat conftest.err
>&5
11300 echo "$as_me:11299: \$? = $ac_status" >&5
11301 (exit $ac_status); } >/dev
/null
; then
11302 if test -s conftest.err
; then
11303 ac_cpp_err
=$ac_c_preproc_warn_flag
11310 if test -z "$ac_cpp_err"; then
11311 eval "$as_ac_Header=yes"
11313 echo "$as_me: failed program was:" >&5
11314 cat conftest.
$ac_ext >&5
11315 eval "$as_ac_Header=no"
11317 rm -f conftest.err conftest.
$ac_ext
11319 echo "$as_me:11318: result: `eval echo '${'$as_ac_Header'}'`" >&5
11320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11322 cat >>confdefs.h
<<EOF
11323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 for ac_header
in kerberos
/des.h
11330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11331 echo "$as_me:11330: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.
$ac_ext <<_ACEOF
11337 #line 11331 "configure"
11338 #include "confdefs.h"
11339 #include <$ac_header>
11341 if { (eval echo "$as_me:11340: \"$ac_cpp conftest.$ac_ext\"") >&5
11342 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11344 egrep -v '^ *\+' conftest.er1
>conftest.err
11346 cat conftest.err
>&5
11347 echo "$as_me:11346: \$? = $ac_status" >&5
11348 (exit $ac_status); } >/dev
/null
; then
11349 if test -s conftest.err
; then
11350 ac_cpp_err
=$ac_c_preproc_warn_flag
11357 if test -z "$ac_cpp_err"; then
11358 eval "$as_ac_Header=yes"
11360 echo "$as_me: failed program was:" >&5
11361 cat conftest.
$ac_ext >&5
11362 eval "$as_ac_Header=no"
11364 rm -f conftest.err conftest.
$ac_ext
11366 echo "$as_me:11365: result: `eval echo '${'$as_ac_Header'}'`" >&5
11367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11369 cat >>confdefs.h
<<EOF
11370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 for ac_header
in krb.h
11384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11385 echo "$as_me:11384: checking for $ac_header" >&5
11386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.
$ac_ext <<_ACEOF
11391 #line 11385 "configure"
11392 #include "confdefs.h"
11393 #include <$ac_header>
11395 if { (eval echo "$as_me:11394: \"$ac_cpp conftest.$ac_ext\"") >&5
11396 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11398 egrep -v '^ *\+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:11400: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev
/null
; then
11403 if test -s conftest.err
; then
11404 ac_cpp_err
=$ac_c_preproc_warn_flag
11411 if test -z "$ac_cpp_err"; then
11412 eval "$as_ac_Header=yes"
11414 echo "$as_me: failed program was:" >&5
11415 cat conftest.
$ac_ext >&5
11416 eval "$as_ac_Header=no"
11418 rm -f conftest.err conftest.
$ac_ext
11420 echo "$as_me:11419: result: `eval echo '${'$as_ac_Header'}'`" >&5
11421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h
<<EOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11429 for ac_header
in kerberosIV
/krb.h
11431 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11432 echo "$as_me:11431: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.
$ac_ext <<_ACEOF
11438 #line 11432 "configure"
11439 #include "confdefs.h"
11440 #include <$ac_header>
11442 if { (eval echo "$as_me:11441: \"$ac_cpp conftest.$ac_ext\"") >&5
11443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11445 egrep -v '^ *\+' conftest.er1
>conftest.err
11447 cat conftest.err
>&5
11448 echo "$as_me:11447: \$? = $ac_status" >&5
11449 (exit $ac_status); } >/dev
/null
; then
11450 if test -s conftest.err
; then
11451 ac_cpp_err
=$ac_c_preproc_warn_flag
11458 if test -z "$ac_cpp_err"; then
11459 eval "$as_ac_Header=yes"
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.
$ac_ext >&5
11463 eval "$as_ac_Header=no"
11465 rm -f conftest.err conftest.
$ac_ext
11467 echo "$as_me:11466: result: `eval echo '${'$as_ac_Header'}'`" >&5
11468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h
<<EOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11476 for ac_header
in kerberos
/krb.h
11478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479 echo "$as_me:11478: checking for $ac_header" >&5
11480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 cat >conftest.
$ac_ext <<_ACEOF
11485 #line 11479 "configure"
11486 #include "confdefs.h"
11487 #include <$ac_header>
11489 if { (eval echo "$as_me:11488: \"$ac_cpp conftest.$ac_ext\"") >&5
11490 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11492 egrep -v '^ *\+' conftest.er1
>conftest.err
11494 cat conftest.err
>&5
11495 echo "$as_me:11494: \$? = $ac_status" >&5
11496 (exit $ac_status); } >/dev
/null
; then
11497 if test -s conftest.err
; then
11498 ac_cpp_err
=$ac_c_preproc_warn_flag
11505 if test -z "$ac_cpp_err"; then
11506 eval "$as_ac_Header=yes"
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.
$ac_ext >&5
11510 eval "$as_ac_Header=no"
11512 rm -f conftest.err conftest.
$ac_ext
11514 echo "$as_me:11513: result: `eval echo '${'$as_ac_Header'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11517 cat >>confdefs.h
<<EOF
11518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11532 for ac_header
in com_err.h
11534 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 echo "$as_me:11534: checking for $ac_header" >&5
11536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.
$ac_ext <<_ACEOF
11541 #line 11535 "configure"
11542 #include "confdefs.h"
11543 #include <$ac_header>
11545 if { (eval echo "$as_me:11544: \"$ac_cpp conftest.$ac_ext\"") >&5
11546 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11548 egrep -v '^ *\+' conftest.er1
>conftest.err
11550 cat conftest.err
>&5
11551 echo "$as_me:11550: \$? = $ac_status" >&5
11552 (exit $ac_status); } >/dev
/null
; then
11553 if test -s conftest.err
; then
11554 ac_cpp_err
=$ac_c_preproc_warn_flag
11561 if test -z "$ac_cpp_err"; then
11562 eval "$as_ac_Header=yes"
11564 echo "$as_me: failed program was:" >&5
11565 cat conftest.
$ac_ext >&5
11566 eval "$as_ac_Header=no"
11568 rm -f conftest.err conftest.
$ac_ext
11570 echo "$as_me:11569: result: `eval echo '${'$as_ac_Header'}'`" >&5
11571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11573 cat >>confdefs.h
<<EOF
11574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11582 # Solaris requires -lintl if you want strerror (which calls dgettext)
11583 # to return localized messages.
11585 echo "$as_me:11584: checking for dgettext in -lintl" >&5
11586 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11587 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 ac_check_lib_save_LIBS
=$LIBS
11591 LIBS
="-lintl $LIBS"
11592 cat >conftest.
$ac_ext <<_ACEOF
11593 #line 11587 "configure"
11594 #include "confdefs.h"
11596 /* Override any gcc2 internal prototype to avoid an error. */
11600 /* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11611 rm -f conftest.
$ac_objext conftest
$ac_exeext
11612 if { (eval echo "$as_me:11611: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11615 echo "$as_me:11614: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try
='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:11617: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11621 echo "$as_me:11620: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_lib_intl_dgettext
=yes
11625 echo "$as_me: failed program was:" >&5
11626 cat conftest.
$ac_ext >&5
11627 ac_cv_lib_intl_dgettext
=no
11629 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11630 LIBS
=$ac_check_lib_save_LIBS
11632 echo "$as_me:11631: result: $ac_cv_lib_intl_dgettext" >&5
11633 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11634 if test $ac_cv_lib_intl_dgettext = yes; then
11635 cat >>confdefs.h
<<EOF
11636 #define HAVE_LIBINTL 1
11639 LIBS
="-lintl $LIBS"
11643 echo "$as_me:11642: checking whether localtime caches TZ" >&5
11644 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11645 if test "${emacs_cv_localtime_cache+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 if test x
$ac_cv_func_tzset = xyes
; then
11649 if test "$cross_compiling" = yes; then
11650 # If we have tzset, assume the worst when cross-compiling.
11651 emacs_cv_localtime_cache
=yes
11653 cat >conftest.
$ac_ext <<_ACEOF
11654 #line 11648 "configure"
11655 #include "confdefs.h"
11657 extern char **environ;
11661 for (to = from = environ; (*to = *from); from++)
11662 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11665 char TZ_GMT0[] = "TZ=GMT0";
11666 char TZ_PST8[] = "TZ=PST8";
11669 time_t now = time ((time_t *) 0);
11670 int hour_GMT0, hour_unset;
11671 if (putenv (TZ_GMT0) != 0)
11673 hour_GMT0 = localtime (&now)->tm_hour;
11675 hour_unset = localtime (&now)->tm_hour;
11676 if (putenv (TZ_PST8) != 0)
11678 if (localtime (&now)->tm_hour == hour_GMT0)
11681 if (localtime (&now)->tm_hour != hour_unset)
11686 rm -f conftest
$ac_exeext
11687 if { (eval echo "$as_me:11686: \"$ac_link\"") >&5
11688 (eval $ac_link) 2>&5
11690 echo "$as_me:11689: \$? = $ac_status" >&5
11691 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11692 { (eval echo "$as_me:11691: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11695 echo "$as_me:11694: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 emacs_cv_localtime_cache
=no
11699 echo "$as_me: program exited with status $ac_status" >&5
11700 echo "$as_me: failed program was:" >&5
11701 cat conftest.
$ac_ext >&5
11702 emacs_cv_localtime_cache
=yes
11704 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11707 # If we lack tzset, report that localtime does not cache TZ,
11708 # since we can't invalidate the cache if we don't have tzset.
11709 emacs_cv_localtime_cache
=no
11712 echo "$as_me:11711: result: $emacs_cv_localtime_cache" >&5
11713 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11714 if test $emacs_cv_localtime_cache = yes; then
11716 cat >>confdefs.h
<<\EOF
11717 #define LOCALTIME_CACHE 1
11722 if test "x$HAVE_TIMEVAL" = xyes
; then
11724 for ac_func
in gettimeofday
11726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727 echo "$as_me:11726: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11729 if eval "test \"\${$as_ac_var+set}\" = set"; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 cat >conftest.
$ac_ext <<_ACEOF
11733 #line 11727 "configure"
11734 #include "confdefs.h"
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below. */
11737 #include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error. */
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11763 rm -f conftest.
$ac_objext conftest
$ac_exeext
11764 if { (eval echo "$as_me:11763: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>&5
11767 echo "$as_me:11766: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try
='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:11769: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:11772: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 eval "$as_ac_var=yes"
11777 echo "$as_me: failed program was:" >&5
11778 cat conftest.
$ac_ext >&5
11779 eval "$as_ac_var=no"
11781 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11783 echo "$as_me:11782: result: `eval echo '${'$as_ac_var'}'`" >&5
11784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11785 if test `eval echo '${'$as_ac_var'}'` = yes; then
11786 cat >>confdefs.h
<<EOF
11787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 if test $ac_cv_func_gettimeofday = yes; then
11794 echo "$as_me:11793: checking whether gettimeofday can accept two arguments" >&5
11795 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11796 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.
$ac_ext <<_ACEOF
11800 #line 11794 "configure"
11801 #include "confdefs.h"
11803 #ifdef TIME_WITH_SYS_TIME
11804 #include <sys/time.h>
11807 #ifdef HAVE_SYS_TIME_H
11808 #include <sys/time.h>
11816 struct timeval time;
11817 gettimeofday (&time, 0);
11822 rm -f conftest.
$ac_objext
11823 if { (eval echo "$as_me:11822: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:11825: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try
='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:11828: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:11831: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 emacs_cv_gettimeofday_two_arguments
=yes
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.
$ac_ext >&5
11838 emacs_cv_gettimeofday_two_arguments
=no
11840 rm -f conftest.
$ac_objext conftest.
$ac_ext
11842 echo "$as_me:11841: result: $emacs_cv_gettimeofday_two_arguments" >&5
11843 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11844 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11846 cat >>confdefs.h
<<\EOF
11847 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11854 if test "$ac_cv_func_gettimeofday" = yes; then
11855 echo "$as_me:11854: checking for struct timezone" >&5
11856 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11857 if test "${emacs_cv_struct_timezone+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.
$ac_ext <<_ACEOF
11861 #line 11855 "configure"
11862 #include "confdefs.h"
11863 #include <sys/time.h>
11867 struct timezone tz;
11872 rm -f conftest.
$ac_objext
11873 if { (eval echo "$as_me:11872: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11876 echo "$as_me:11875: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try
='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:11878: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:11881: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 if test "$cross_compiling" = yes; then
11885 emacs_cv_struct_timezone
=yes
11887 cat >conftest.
$ac_ext <<_ACEOF
11888 #line 11882 "configure"
11889 #include "confdefs.h"
11891 #ifdef TIME_WITH_SYS_TIME
11892 #include <sys/time.h>
11895 #ifdef HAVE_SYS_TIME_H
11896 #include <sys/time.h>
11902 struct timeval time;
11903 struct timezone dummy;
11904 exit (gettimeofday (&time, &dummy));
11907 rm -f conftest
$ac_exeext
11908 if { (eval echo "$as_me:11907: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11911 echo "$as_me:11910: \$? = $ac_status" >&5
11912 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11913 { (eval echo "$as_me:11912: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:11915: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 emacs_cv_struct_timezone
=yes
11920 echo "$as_me: program exited with status $ac_status" >&5
11921 echo "$as_me: failed program was:" >&5
11922 cat conftest.
$ac_ext >&5
11923 emacs_cv_struct_timezone
=no
11925 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11928 echo "$as_me: failed program was:" >&5
11929 cat conftest.
$ac_ext >&5
11930 emacs_cv_struct_timezone
=no
11932 rm -f conftest.
$ac_objext conftest.
$ac_ext
11934 echo "$as_me:11933: result: $emacs_cv_struct_timezone" >&5
11935 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11939 echo "$as_me:11938: checking for socket" >&5
11940 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11941 if test "${ac_cv_func_socket+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.
$ac_ext <<_ACEOF
11945 #line 11939 "configure"
11946 #include "confdefs.h"
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char socket (); below. */
11949 #include <assert.h>
11950 /* Override any gcc2 internal prototype to avoid an error. */
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11962 /* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965 #if defined (__stub_socket) || defined (__stub___socket)
11975 rm -f conftest.
$ac_objext conftest
$ac_exeext
11976 if { (eval echo "$as_me:11975: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11979 echo "$as_me:11978: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try
='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:11984: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_func_socket
=yes
11989 echo "$as_me: failed program was:" >&5
11990 cat conftest.
$ac_ext >&5
11991 ac_cv_func_socket
=no
11993 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11995 echo "$as_me:11994: result: $ac_cv_func_socket" >&5
11996 echo "${ECHO_T}$ac_cv_func_socket" >&6
11997 if test $ac_cv_func_socket = yes; then
12003 if test $ok_so_far = yes; then
12004 echo "$as_me:12003: checking for netinet/in.h" >&5
12005 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12010 #line 12004 "configure"
12011 #include "confdefs.h"
12012 #include <netinet/in.h>
12014 if { (eval echo "$as_me:12013: \"$ac_cpp conftest.$ac_ext\"") >&5
12015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12017 egrep -v '^ *\+' conftest.er1
>conftest.err
12019 cat conftest.err
>&5
12020 echo "$as_me:12019: \$? = $ac_status" >&5
12021 (exit $ac_status); } >/dev
/null
; then
12022 if test -s conftest.err
; then
12023 ac_cpp_err
=$ac_c_preproc_warn_flag
12030 if test -z "$ac_cpp_err"; then
12031 ac_cv_header_netinet_in_h
=yes
12033 echo "$as_me: failed program was:" >&5
12034 cat conftest.
$ac_ext >&5
12035 ac_cv_header_netinet_in_h
=no
12037 rm -f conftest.err conftest.
$ac_ext
12039 echo "$as_me:12038: result: $ac_cv_header_netinet_in_h" >&5
12040 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12041 if test $ac_cv_header_netinet_in_h = yes; then
12048 if test $ok_so_far = yes; then
12049 echo "$as_me:12048: checking for arpa/inet.h" >&5
12050 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12051 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.
$ac_ext <<_ACEOF
12055 #line 12049 "configure"
12056 #include "confdefs.h"
12057 #include <arpa/inet.h>
12059 if { (eval echo "$as_me:12058: \"$ac_cpp conftest.$ac_ext\"") >&5
12060 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12062 egrep -v '^ *\+' conftest.er1
>conftest.err
12064 cat conftest.err
>&5
12065 echo "$as_me:12064: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev
/null
; then
12067 if test -s conftest.err
; then
12068 ac_cpp_err
=$ac_c_preproc_warn_flag
12075 if test -z "$ac_cpp_err"; then
12076 ac_cv_header_arpa_inet_h
=yes
12078 echo "$as_me: failed program was:" >&5
12079 cat conftest.
$ac_ext >&5
12080 ac_cv_header_arpa_inet_h
=no
12082 rm -f conftest.err conftest.
$ac_ext
12084 echo "$as_me:12083: result: $ac_cv_header_arpa_inet_h" >&5
12085 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12086 if test $ac_cv_header_arpa_inet_h = yes; then
12093 if test $ok_so_far = yes; then
12095 cat >>confdefs.h
<<\EOF
12096 #define HAVE_INET_SOCKETS 1
12101 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12103 cat >>confdefs.h
<<\EOF
12104 #define HAVE_AIX_SMT_EXP 1
12109 echo "$as_me:12108: checking whether system supports dynamic ptys" >&5
12110 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12111 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12112 echo "$as_me:12111: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6
12115 cat >>confdefs.h
<<\EOF
12116 #define HAVE_DEV_PTMX 1
12120 echo "$as_me:12119: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12124 echo "$as_me:12123: checking for pid_t" >&5
12125 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12126 if test "${ac_cv_type_pid_t+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 cat >conftest.
$ac_ext <<_ACEOF
12130 #line 12124 "configure"
12131 #include "confdefs.h"
12132 $ac_includes_default
12138 if (sizeof (pid_t))
12144 rm -f conftest.
$ac_objext
12145 if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12148 echo "$as_me:12147: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try
='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:12153: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_type_pid_t
=yes
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.
$ac_ext >&5
12160 ac_cv_type_pid_t
=no
12162 rm -f conftest.
$ac_objext conftest.
$ac_ext
12164 echo "$as_me:12163: result: $ac_cv_type_pid_t" >&5
12165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12166 if test $ac_cv_type_pid_t = yes; then
12170 cat >>confdefs.h
<<EOF
12176 for ac_header
in unistd.h vfork.h
12178 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179 echo "$as_me:12178: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 cat >conftest.
$ac_ext <<_ACEOF
12185 #line 12179 "configure"
12186 #include "confdefs.h"
12187 #include <$ac_header>
12189 if { (eval echo "$as_me:12188: \"$ac_cpp conftest.$ac_ext\"") >&5
12190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12192 egrep -v '^ *\+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 echo "$as_me:12194: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev
/null
; then
12197 if test -s conftest.err
; then
12198 ac_cpp_err
=$ac_c_preproc_warn_flag
12205 if test -z "$ac_cpp_err"; then
12206 eval "$as_ac_Header=yes"
12208 echo "$as_me: failed program was:" >&5
12209 cat conftest.
$ac_ext >&5
12210 eval "$as_ac_Header=no"
12212 rm -f conftest.err conftest.
$ac_ext
12214 echo "$as_me:12213: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h
<<EOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 for ac_func
in fork vfork
12226 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12227 echo "$as_me:12226: checking for $ac_func" >&5
12228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12229 if eval "test \"\${$as_ac_var+set}\" = set"; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 cat >conftest.
$ac_ext <<_ACEOF
12233 #line 12227 "configure"
12234 #include "confdefs.h"
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below. */
12237 #include <assert.h>
12238 /* Override any gcc2 internal prototype to avoid an error. */
12242 /* We use char because int might match the return type of a gcc2
12243 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 rm -f conftest.
$ac_objext conftest
$ac_exeext
12264 if { (eval echo "$as_me:12263: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12267 echo "$as_me:12266: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try
='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:12269: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:12272: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 eval "$as_ac_var=yes"
12277 echo "$as_me: failed program was:" >&5
12278 cat conftest.
$ac_ext >&5
12279 eval "$as_ac_var=no"
12281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12283 echo "$as_me:12282: result: `eval echo '${'$as_ac_var'}'`" >&5
12284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12285 if test `eval echo '${'$as_ac_var'}'` = yes; then
12286 cat >>confdefs.h
<<EOF
12287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12293 ac_cv_func_fork_works
=$ac_cv_func_fork
12294 if test "x$ac_cv_func_fork" = xyes
; then
12295 echo "$as_me:12294: checking for working fork" >&5
12296 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12297 if test "${ac_cv_func_fork_works+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 if test "$cross_compiling" = yes; then
12301 ac_cv_func_fork_works
=cross
12303 cat >conftest.
$ac_ext <<_ACEOF
12304 /* By Rüdiger Kuhlmann. */
12305 #include <sys/types.h>
12307 # include <unistd.h>
12309 /* Some systems only have a dummy stub for fork() */
12317 rm -f conftest
$ac_exeext
12318 if { (eval echo "$as_me:12317: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>&5
12321 echo "$as_me:12320: \$? = $ac_status" >&5
12322 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12323 { (eval echo "$as_me:12322: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12326 echo "$as_me:12325: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ac_cv_func_fork_works
=yes
12330 echo "$as_me: program exited with status $ac_status" >&5
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.
$ac_ext >&5
12333 ac_cv_func_fork_works
=no
12335 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12338 echo "$as_me:12337: result: $ac_cv_func_fork_works" >&5
12339 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12342 if test "x$ac_cv_func_fork_works" = xcross
; then
12344 *-*-amigaos* |
*-*-msdosdjgpp*)
12345 # Override, as these systems have only a dummy fork() stub
12346 ac_cv_func_fork_works
=no
12349 ac_cv_func_fork_works
=yes
12352 { echo "$as_me:12351: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12353 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12355 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12356 if test "x$ac_cv_func_vfork" = xyes
; then
12357 echo "$as_me:12356: checking for working vfork" >&5
12358 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12359 if test "${ac_cv_func_vfork_works+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 if test "$cross_compiling" = yes; then
12363 ac_cv_func_vfork_works
=cross
12365 cat >conftest.
$ac_ext <<_ACEOF
12366 #line 12360 "configure"
12367 #include "confdefs.h"
12368 /* Thanks to Paul Eggert for this test. */
12370 #include <sys/types.h>
12371 #include <sys/stat.h>
12373 # include <unistd.h>
12376 # include <vfork.h>
12378 /* On some sparc systems, changes by the child to local and incoming
12379 argument registers are propagated back to the parent. The compiler
12380 is told about this with #include <vfork.h>, but some compilers
12381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12382 static variable whose address is put into a register that is
12383 clobbered by the vfork. */
12386 sparc_address_test (int arg)
12388 sparc_address_test (arg) int arg;
12391 static pid_t child;
12409 pid_t parent = getpid ();
12412 sparc_address_test ();
12417 /* Here is another test for sparc vfork register problems. This
12418 test uses lots of local variables, at least as many local
12419 variables as main has allocated so far including compiler
12420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12422 reuse the register of parent for one of the local variables,
12423 since it will think that parent can't possibly be used any more
12424 in this routine. Assigning to the local variable will thus
12425 munge parent in the parent process. */
12427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12429 /* Convince the compiler that p..p7 are live; otherwise, it might
12430 use the same hardware register for all 8 local variables. */
12431 if (p != p1 || p != p2 || p != p3 || p != p4
12432 || p != p5 || p != p6 || p != p7)
12435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12436 from child file descriptors. If the child closes a descriptor
12437 before it execs or exits, this munges the parent's descriptor
12438 as well. Test for this by closing stdout in the child. */
12439 _exit(close(fileno(stdout)) != 0);
12444 while (wait(&status) != child)
12447 /* Was there some problem with vforking? */
12450 /* Did the child fail? (This shouldn't happen.) */
12453 /* Did the vfork/compiler bug occur? */
12454 || parent != getpid()
12456 /* Did the file descriptor bug occur? */
12457 || fstat(fileno(stdout), &st) != 0
12462 rm -f conftest
$ac_exeext
12463 if { (eval echo "$as_me:12462: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12466 echo "$as_me:12465: \$? = $ac_status" >&5
12467 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12468 { (eval echo "$as_me:12467: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:12470: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_func_vfork_works
=yes
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 cat conftest.
$ac_ext >&5
12478 ac_cv_func_vfork_works
=no
12480 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12483 echo "$as_me:12482: result: $ac_cv_func_vfork_works" >&5
12484 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12487 if test "x$ac_cv_func_fork_works" = xcross
; then
12488 ac_cv_func_vfork_works
=ac_cv_func_vfork
12489 { echo "$as_me:12488: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12490 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12493 if test "x$ac_cv_func_vfork_works" = xyes
; then
12495 cat >>confdefs.h
<<\EOF
12496 #define HAVE_WORKING_VFORK 1
12501 cat >>confdefs.h
<<\EOF
12506 if test "x$ac_cv_func_fork_works" = xyes
; then
12508 cat >>confdefs.h
<<\EOF
12509 #define HAVE_WORKING_FORK 1
12514 # Fixme: This should be replaced when we have autoconf 2.14.
12515 echo "$as_me:12514: checking for size_t" >&5
12516 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12517 if test "${ac_cv_type_size_t+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 cat >conftest.
$ac_ext <<_ACEOF
12521 #line 12515 "configure"
12522 #include "confdefs.h"
12523 $ac_includes_default
12529 if (sizeof (size_t))
12535 rm -f conftest.
$ac_objext
12536 if { (eval echo "$as_me:12535: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12539 echo "$as_me:12538: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try
='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:12541: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:12544: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_type_size_t
=yes
12549 echo "$as_me: failed program was:" >&5
12550 cat conftest.
$ac_ext >&5
12551 ac_cv_type_size_t
=no
12553 rm -f conftest.
$ac_objext conftest.
$ac_ext
12555 echo "$as_me:12554: result: $ac_cv_type_size_t" >&5
12556 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12557 if test $ac_cv_type_size_t = yes; then
12561 cat >>confdefs.h
<<EOF
12562 #define size_t unsigned
12567 # Set up the CFLAGS for real compilation, so we can substitute it.
12568 CFLAGS
="$REAL_CFLAGS"
12569 CPPFLAGS
="$REAL_CPPFLAGS"
12571 #### Find out which version of Emacs this is.
12572 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12573 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12574 if test x
"${version}" = x
; then
12575 { { echo "$as_me:12574: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12576 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12577 { (exit 1); exit 1; }; }
12580 ### Specify what sort of things we'll be editing into Makefile and config.h.
12581 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12583 cat >>confdefs.h
<<EOF
12584 #define EMACS_CONFIGURATION "${canonical}"
12587 cat >>confdefs.h
<<EOF
12588 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12591 cat >>confdefs.h
<<EOF
12592 #define config_machfile "${machfile}"
12595 cat >>confdefs.h
<<EOF
12596 #define config_opsysfile "${opsysfile}"
12599 cat >>confdefs.h
<<EOF
12600 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12603 cat >>confdefs.h
<<EOF
12604 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12607 cat >>confdefs.h
<<EOF
12608 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12611 cat >>confdefs.h
<<EOF
12612 #define UNEXEC_SRC ${UNEXEC_SRC}
12615 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12617 cat >>confdefs.h
<<\EOF
12618 #define HAVE_X_WINDOWS 1
12622 if test "${USE_X_TOOLKIT}" != "none" ; then
12624 cat >>confdefs.h
<<\EOF
12625 #define USE_X_TOOLKIT 1
12629 if test "${HAVE_X11}" = "yes" ; then
12631 cat >>confdefs.h
<<\EOF
12636 if test "${HAVE_XFREE386}" = "yes" ; then
12638 cat >>confdefs.h
<<\EOF
12639 #define HAVE_XFREE386 1
12643 if test "${HAVE_MENUS}" = "yes" ; then
12645 cat >>confdefs.h
<<\EOF
12646 #define HAVE_MENUS 1
12650 if test "${GNU_MALLOC}" = "yes" ; then
12652 cat >>confdefs.h
<<\EOF
12653 #define GNU_MALLOC 1
12657 if test "${REL_ALLOC}" = "yes" ; then
12659 cat >>confdefs.h
<<\EOF
12660 #define REL_ALLOC 1
12665 for ac_header
in nlist.h
12667 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12668 echo "$as_me:12667: checking for $ac_header" >&5
12669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 cat >conftest.
$ac_ext <<_ACEOF
12674 #line 12668 "configure"
12675 #include "confdefs.h"
12676 #include <$ac_header>
12678 if { (eval echo "$as_me:12677: \"$ac_cpp conftest.$ac_ext\"") >&5
12679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12681 egrep -v '^ *\+' conftest.er1
>conftest.err
12683 cat conftest.err
>&5
12684 echo "$as_me:12683: \$? = $ac_status" >&5
12685 (exit $ac_status); } >/dev
/null
; then
12686 if test -s conftest.err
; then
12687 ac_cpp_err
=$ac_c_preproc_warn_flag
12694 if test -z "$ac_cpp_err"; then
12695 eval "$as_ac_Header=yes"
12697 echo "$as_me: failed program was:" >&5
12698 cat conftest.
$ac_ext >&5
12699 eval "$as_ac_Header=no"
12701 rm -f conftest.err conftest.
$ac_ext
12703 echo "$as_me:12702: result: `eval echo '${'$as_ac_Header'}'`" >&5
12704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12706 cat >>confdefs.h
<<EOF
12707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12710 cat >>confdefs.h
<<\EOF
12711 #define NLIST_STRUCT 1
12717 #### Report on what we decided to do.
12719 Configured for \`${canonical}'.
12721 Where should the build process find the source code? ${srcdir}
12722 What operating system and machine description files should Emacs use?
12723 \`${opsysfile}' and \`${machfile}'
12724 What compiler should emacs be built with? ${CC} ${CFLAGS}
12725 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12726 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12727 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12728 What window system should Emacs use? ${window_system}
12729 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12730 Should Emacs use a shared game state directory? ${gamedir}"
12732 if test -n "${x_includes}"; then
12733 echo " Where do we find X Windows header files? ${x_includes}"
12735 echo " Where do we find X Windows header files? Standard dirs"
12737 if test -n "${x_libraries}"; then
12738 echo " Where do we find X Windows libraries? ${x_libraries}"
12740 echo " Where do we find X Windows libraries? Standard dirs"
12743 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12744 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12745 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12746 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12747 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12748 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12749 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12752 # Remove any trailing slashes in these variables.
12753 test "${prefix}" != NONE
&&
12754 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12755 test "${exec_prefix}" != NONE
&&
12756 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12758 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12759 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12760 ## from Makefile.c can correctly provide the arg `-traditional' to the
12763 cat >conftest.
$ac_ext <<_ACEOF
12764 #line 12758 "configure"
12765 #include "confdefs.h"
12768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12769 egrep "yes..yes" >/dev
/null
2>&1; then
12770 CPP_NEED_TRADITIONAL
=no
12772 CPP_NEED_TRADITIONAL
=yes
12776 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"
12777 ac_config_commands
="$ac_config_commands default"
12778 cat >confcache
<<\_ACEOF
12779 # This file is a shell script that caches the results of configure
12780 # tests run on this system so they can be shared between configure
12781 # scripts and configure runs, see configure's option --config-cache.
12782 # It is not useful on other systems. If it contains results you don't
12783 # want to keep, you may remove or edit it.
12785 # config.status only pays attention to the cache file if you give it
12786 # the --recheck option to rerun configure.
12788 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12790 # following values.
12794 # The following way of writing the cache mishandles newlines in values,
12795 # but we know of no workaround that is simple, portable, and efficient.
12796 # So, don't put newlines in cache variables' values.
12797 # Ultrix sh set writes to stderr and can't be redirected directly,
12798 # and sets the high bit in the cache file unless we assign to the vars.
12801 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12803 # `set' does not quote correctly, so add quotes (double-quote
12804 # substitution turns \\\\ into \\, and sed turns \\ into \).
12807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12810 # `set' quotes correctly as required by POSIX, so do not add quotes.
12812 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12821 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12823 if cmp -s $cache_file confcache
; then :; else
12824 if test -w $cache_file; then
12825 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12826 cat confcache
>$cache_file
12828 echo "not updating unwritable cache $cache_file"
12833 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12834 # Let make expand exec_prefix.
12835 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12837 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12838 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12839 # trailing colons and then remove the whole line if VPATH becomes empty
12840 # (actually we leave an empty line to preserve line numbers).
12841 if test "x$srcdir" = x.
; then
12842 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12843 s/:*\$(srcdir):*/:/;
12844 s/:*\${srcdir}:*/:/;
12846 s/^\([^=]*=[ ]*\):*/\1/;
12852 DEFS
=-DHAVE_CONFIG_H
12854 : ${CONFIG_STATUS=./config.status}
12855 ac_clean_files_save
=$ac_clean_files
12856 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12857 { echo "$as_me:12856: creating $CONFIG_STATUS" >&5
12858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12859 cat >$CONFIG_STATUS <<_ACEOF
12861 # Generated automatically by configure.
12862 # Run this file to recreate the current configuration.
12863 # Compiler output produced by configure, useful for debugging
12864 # configure, is in config.log if it exists.
12867 SHELL=\${CONFIG_SHELL-$SHELL}
12868 ac_cs_invocation="\$0 \$@"
12872 cat >>$CONFIG_STATUS <<\_ACEOF
12873 # Be Bourne compatible
12874 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12877 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12881 # Name of the executable.
12882 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12884 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12890 rm -f conf$$ conf$$.exe conf$$.
file
12892 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12893 # We could just check for DJGPP; but this test a) works b) is more generic
12894 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12895 if test -f conf$$.exe
; then
12896 # Don't use ln at all; we don't have any links
12901 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12906 rm -f conf$$ conf$$.exe conf$$.
file
12908 as_executable_p
="test -f"
12910 # Support unset when possible.
12911 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12918 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12919 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12920 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12921 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12922 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12923 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12924 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12925 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12928 # We need space, tab and new line, in precisely that order.
12934 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12940 # Files that config.status was made for.
12941 if test -n "$ac_config_files"; then
12942 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12945 if test -n "$ac_config_headers"; then
12946 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12949 if test -n "$ac_config_links"; then
12950 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12953 if test -n "$ac_config_commands"; then
12954 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12957 cat >>$CONFIG_STATUS <<\EOF
12960 \`$as_me' instantiates files from templates according to the
12961 current configuration.
12963 Usage: $0 [OPTIONS] [FILE]...
12965 -h, --help print this help, then exit
12966 -V, --version print version number, then exit
12967 -d, --debug don't remove temporary files
12968 --recheck update $as_me by reconfiguring in the same conditions
12969 --file=FILE[:TEMPLATE]
12970 instantiate the configuration file FILE
12971 --header=FILE[:TEMPLATE]
12972 instantiate the configuration header FILE
12974 Configuration files:
12977 Configuration headers:
12980 Configuration commands:
12983 Report bugs to <bug-autoconf@gnu.org>."
12986 cat >>$CONFIG_STATUS <<EOF
12989 configured by $0, generated by GNU Autoconf 2.52,
12990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12993 Free Software Foundation, Inc.
12994 This config.status script is free software; the Free Software Foundation
12995 gives unlimited permission to copy, distribute and modify it."
13000 cat >>$CONFIG_STATUS <<\EOF
13001 # If no file are specified by the user, then we need to provide default
13002 # value. By we need to know if files were specified by the user.
13008 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13009 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13011 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
13015 *) # This is not an option, so the user has probably given explicit
13017 ac_need_defaults
=false
;;
13021 # Handling of the options.
13023 cat >>$CONFIG_STATUS <<EOF
13024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13025 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13026 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13028 cat >>$CONFIG_STATUS <<\EOF
13029 --version |
--vers* |
-V )
13030 echo "$ac_cs_version"; exit 0 ;;
13032 # Conflict between --help and --header
13033 { { echo "$as_me:13032: error: ambiguous option: $1
13034 Try \`$0 --help' for more information." >&5
13035 echo "$as_me: error: ambiguous option: $1
13036 Try \`$0 --help' for more information." >&2;}
13037 { (exit 1); exit 1; }; };;
13038 --help |
--hel |
-h )
13039 echo "$ac_cs_usage"; exit 0 ;;
13040 --debug |
--d* |
-d )
13042 --file |
--fil |
--fi |
--f )
13044 CONFIG_FILES
="$CONFIG_FILES $1"
13045 ac_need_defaults
=false
;;
13046 --header |
--heade |
--head |
--hea )
13048 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
13049 ac_need_defaults
=false
;;
13051 # This is an error.
13052 -*) { { echo "$as_me:13051: error: unrecognized option: $1
13053 Try \`$0 --help' for more information." >&5
13054 echo "$as_me: error: unrecognized option: $1
13055 Try \`$0 --help' for more information." >&2;}
13056 { (exit 1); exit 1; }; } ;;
13058 *) ac_config_targets
="$ac_config_targets $1" ;;
13067 ## ----------------------- ##
13068 ## Running config.status. ##
13069 ## ----------------------- ##
13071 This file was extended by $as_me 2.52, executed with
13072 CONFIG_FILES = $CONFIG_FILES
13073 CONFIG_HEADERS = $CONFIG_HEADERS
13074 CONFIG_LINKS = $CONFIG_LINKS
13075 CONFIG_COMMANDS = $CONFIG_COMMANDS
13076 > $ac_cs_invocation
13077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13082 cat >>$CONFIG_STATUS <<EOF
13084 # INIT-COMMANDS section.
13087 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13091 cat >>$CONFIG_STATUS <<\EOF
13092 for ac_config_target
in $ac_config_targets
13094 case "$ac_config_target" in
13095 # Handling of arguments.
13096 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13097 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13098 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
13099 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13100 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
13101 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13102 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
13103 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
13104 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
13105 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
13106 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13107 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13108 *) { { echo "$as_me:13107: error: invalid argument: $ac_config_target" >&5
13109 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13110 { (exit 1); exit 1; }; };;
13114 # If the user did not use the arguments to specify the items to instantiate,
13115 # then the envvar interface is used. Set only those that are not.
13116 # We use the long form for the default assignment because of an extremely
13117 # bizarre bug on SunOS 4.1.3.
13118 if $ac_need_defaults; then
13119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13124 # Create a temporary directory, and hook for its removal unless debugging.
13127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13128 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131 # Create a (secure) tmp directory for tmp files.
13134 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13135 test -n "$tmp" && test -d "$tmp"
13138 tmp
=$TMPDIR/cs$$
-$RANDOM
13139 (umask 077 && mkdir
$tmp)
13142 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13143 { (exit 1); exit 1; }
13148 cat >>$CONFIG_STATUS <<EOF
13151 # CONFIG_FILES section.
13154 # No need to generate the scripts if there are no CONFIG_FILES.
13155 # This happens for instance when ./config.status config.h
13156 if test -n "\$CONFIG_FILES"; then
13157 # Protect against being on the right side of a sed subst in config.status.
13158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13160 s,@SHELL@,$SHELL,;t t
13161 s,@exec_prefix@,$exec_prefix,;t t
13162 s,@prefix@,$prefix,;t t
13163 s,@program_transform_name@,$program_transform_name,;t t
13164 s,@bindir@,$bindir,;t t
13165 s,@sbindir@,$sbindir,;t t
13166 s,@libexecdir@,$libexecdir,;t t
13167 s,@datadir@,$datadir,;t t
13168 s,@sysconfdir@,$sysconfdir,;t t
13169 s,@sharedstatedir@,$sharedstatedir,;t t
13170 s,@localstatedir@,$localstatedir,;t t
13171 s,@libdir@,$libdir,;t t
13172 s,@includedir@,$includedir,;t t
13173 s,@oldincludedir@,$oldincludedir,;t t
13174 s,@infodir@,$infodir,;t t
13175 s,@mandir@,$mandir,;t t
13176 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13177 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13178 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13179 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13180 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13181 s,@build_alias@,$build_alias,;t t
13182 s,@host_alias@,$host_alias,;t t
13183 s,@target_alias@,$target_alias,;t t
13184 s,@ECHO_C@,$ECHO_C,;t t
13185 s,@ECHO_N@,$ECHO_N,;t t
13186 s,@ECHO_T@,$ECHO_T,;t t
13187 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13188 s,@DEFS@,$DEFS,;t t
13189 s,@LIBS@,$LIBS,;t t
13190 s,@build@,$build,;t t
13191 s,@build_cpu@,$build_cpu,;t t
13192 s,@build_vendor@,$build_vendor,;t t
13193 s,@build_os@,$build_os,;t t
13194 s,@host@,$host,;t t
13195 s,@host_cpu@,$host_cpu,;t t
13196 s,@host_vendor@,$host_vendor,;t t
13197 s,@host_os@,$host_os,;t t
13199 s,@CFLAGS@,$CFLAGS,;t t
13200 s,@LDFLAGS@,$LDFLAGS,;t t
13201 s,@CPPFLAGS@,$CPPFLAGS,;t t
13202 s,@ac_ct_CC@,$ac_ct_CC,;t t
13203 s,@EXEEXT@,$EXEEXT,;t t
13204 s,@OBJEXT@,$OBJEXT,;t t
13205 s,@LN_S@,$LN_S,;t t
13207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13210 s,@YACC@,$YACC,;t t
13211 s,@RANLIB@,$RANLIB,;t t
13212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13213 s,@LIBSOUND@,$LIBSOUND,;t t
13214 s,@SET_MAKE@,$SET_MAKE,;t t
13215 s,@ALLOCA@,$ALLOCA,;t t
13216 s,@liblockfile@,$liblockfile,;t t
13217 s,@LIBOBJS@,$LIBOBJS,;t t
13218 s,@NEED_SETGID@,$NEED_SETGID,;t t
13219 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13220 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13221 s,@version@,$version,;t t
13222 s,@configuration@,$configuration,;t t
13223 s,@canonical@,$canonical,;t t
13224 s,@srcdir@,$srcdir,;t t
13225 s,@lispdir@,$lispdir,;t t
13226 s,@locallisppath@,$locallisppath,;t t
13227 s,@lisppath@,$lisppath,;t t
13228 s,@x_default_search_path@,$x_default_search_path,;t t
13229 s,@etcdir@,$etcdir,;t t
13230 s,@archlibdir@,$archlibdir,;t t
13231 s,@docdir@,$docdir,;t t
13232 s,@bitmapdir@,$bitmapdir,;t t
13233 s,@gamedir@,$gamedir,;t t
13234 s,@gameuser@,$gameuser,;t t
13235 s,@c_switch_system@,$c_switch_system,;t t
13236 s,@c_switch_machine@,$c_switch_machine,;t t
13237 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13238 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13239 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13240 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13241 s,@machfile@,$machfile,;t t
13242 s,@opsysfile@,$opsysfile,;t t
13247 cat >>$CONFIG_STATUS <<\EOF
13248 # Split the substitutions into bite-sized pieces for seds with
13249 # small command number limits, like on Digital OSF/1 and HP-UX.
13250 ac_max_sed_lines
=48
13251 ac_sed_frag
=1 # Number of current file.
13252 ac_beg
=1 # First line for current file.
13253 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13256 while $ac_more_lines; do
13257 if test $ac_beg -gt 1; then
13258 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13260 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13262 if test ! -s $tmp/subs.frag
; then
13263 ac_more_lines
=false
13265 # The purpose of the label and of the branching condition is to
13266 # speed up the sed processing (if there are no `@' at all, there
13267 # is no need to browse any of the substitutions).
13268 # These are the two extra sed commands mentioned above.
13270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13271 if test -z "$ac_sed_cmds"; then
13272 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13274 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13276 ac_sed_frag
=`expr $ac_sed_frag + 1`
13278 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13281 if test -z "$ac_sed_cmds"; then
13284 fi # test -n "$CONFIG_FILES"
13287 cat >>$CONFIG_STATUS <<\EOF
13288 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13291 - |
*:- |
*:-:* ) # input from stdin
13293 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13294 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13295 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13297 * ) ac_file_in
=$ac_file.
in ;;
13300 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13301 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13302 X"$ac_file" : 'X\(//\)[^/]' \| \
13303 X"$ac_file" : 'X\(//\)$' \| \
13304 X"$ac_file" : 'X\(/\)' \| \
13305 . : '\(.\)' 2>/dev/null ||
13307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13309 /^X\(\/\/\)$/{ s//\1/; q; }
13310 /^X\(\/\).*/{ s//\1/; q; }
13312 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13313 { case "$ac_dir" in
13314 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13318 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13319 case $as_mkdir_dir in
13320 # Skip DOS drivespec
13321 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13323 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13324 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13329 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13330 # A "../" for each directory in $ac_dir_suffix.
13331 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13333 ac_dir_suffix
= ac_dots
=
13338 if test -z "$ac_dots"; then
13341 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13343 [\\/]* | ?
:[\\/]* )
13344 ac_srcdir
=$srcdir$ac_dir_suffix;
13345 ac_top_srcdir
=$srcdir ;;
13346 *) # Relative path.
13347 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13348 ac_top_srcdir
=$ac_dots$srcdir ;;
13352 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13353 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13356 if test x
"$ac_file" != x-
; then
13357 { echo "$as_me:13356: creating $ac_file" >&5
13358 echo "$as_me: creating $ac_file" >&6;}
13361 # Let's still pretend it is `configure' which instantiates (i.e., don't
13362 # use $as_me), people would be surprised to read:
13363 # /* config.h. Generated automatically by config.status. */
13364 configure_input
="Generated automatically from `echo $ac_file_in |
13365 sed 's,.*/,,'` by configure."
13367 # First look for the input files in the build tree, otherwise in the
13369 ac_file_inputs
=`IFS=:
13370 for f in $ac_file_in; do
13372 -) echo $tmp/stdin ;;
13374 # Absolute (can't be DOS-style, as IFS=:)
13375 test -f "$f" || { { echo "$as_me:13374: error: cannot find input file: $f" >&5
13376 echo "$as_me: error: cannot find input file: $f" >&2;}
13377 { (exit 1); exit 1; }; }
13380 if test -f "$f"; then
13383 elif test -f "$srcdir/$f"; then
13388 { { echo "$as_me:13387: error: cannot find input file: $f" >&5
13389 echo "$as_me: error: cannot find input file: $f" >&2;}
13390 { (exit 1); exit 1; }; }
13393 done` ||
{ (exit 1); exit 1; }
13395 cat >>$CONFIG_STATUS <<EOF
13399 cat >>$CONFIG_STATUS <<\EOF
13401 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13402 s
,@configure_input@
,$configure_input,;t t
13403 s
,@srcdir@
,$ac_srcdir,;t t
13404 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13405 s
,@INSTALL@
,$ac_INSTALL,;t t
13406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13408 if test x"$ac_file" != x-; then
13409 mv $tmp/out $ac_file
13417 cat >>$CONFIG_STATUS <<\EOF
13420 # CONFIG_HEADER section.
13423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13426 # ac_d sets the value in "#define NAME VALUE" lines.
13427 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13428 ac_dB
='[ ].*$,\1#\2'
13431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13432 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13433 ac_uB
='$,\1#\2define\3'
13437 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13440 - |
*:- |
*:-:* ) # input from stdin
13442 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13443 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13444 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13445 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13446 * ) ac_file_in
=$ac_file.
in ;;
13449 test x
"$ac_file" != x-
&& { echo "$as_me:13448: creating $ac_file" >&5
13450 echo "$as_me: creating $ac_file" >&6;}
13452 # First look for the input files in the build tree, otherwise in the
13454 ac_file_inputs
=`IFS=:
13455 for f in $ac_file_in; do
13457 -) echo $tmp/stdin ;;
13459 # Absolute (can't be DOS-style, as IFS=:)
13460 test -f "$f" || { { echo "$as_me:13459: error: cannot find input file: $f" >&5
13461 echo "$as_me: error: cannot find input file: $f" >&2;}
13462 { (exit 1); exit 1; }; }
13465 if test -f "$f"; then
13468 elif test -f "$srcdir/$f"; then
13473 { { echo "$as_me:13472: error: cannot find input file: $f" >&5
13474 echo "$as_me: error: cannot find input file: $f" >&2;}
13475 { (exit 1); exit 1; }; }
13478 done` ||
{ (exit 1); exit 1; }
13479 # Remove the trailing spaces.
13480 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13485 # `conftest.undefs', that substitutes the proper values into
13486 # config.h.in to produce config.h. The first handles `#define'
13487 # templates, and the second `#undef' templates.
13488 # And first: Protect against being on the right side of a sed subst in
13489 # config.status. Protect against being in an unquoted here document
13490 # in config.status.
13491 rm -f conftest.defines conftest.undefs
13492 # Using a here document instead of a string reduces the quoting nightmare.
13493 # Putting comments in sed scripts is not portable.
13495 # `end' is used to avoid that the second main sed command (meant for
13496 # 0-ary CPP macros) applies to n-ary macro definitions.
13497 # See the Autoconf documentation for `clear'.
13498 cat >confdef2sed.
sed <<\EOF
13503 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13505 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13508 # If some macros were called several times there might be several times
13509 # the same #defines, which is useless. Nevertheless, we may not want to
13510 # sort them, since we want the *last* AC-DEFINE to be honored.
13511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13513 rm -f confdef2sed.sed
13515 # This sed command replaces #undef with comments. This is necessary, for
13516 # example, in the case of _POSIX_SOURCE, which is predefined and required
13517 # on some systems where configure will not decide to define it.
13518 cat >>conftest.undefs <<\EOF
13519 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13522 # Break up conftest.defines because some shells have a limit on the size
13523 # of here documents, and old seds have small limits too (100 cmds).
13524 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13525 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13526 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13527 echo ' :' >>$CONFIG_STATUS
13528 rm -f conftest.tail
13529 while grep . conftest.defines >/dev/null
13531 # Write a limited-size here document to $tmp/defines.sed.
13532 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13533 # Speed up: don't consider the non `#define' lines.
13534 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13535 # Work around the forget-to-reset-the-flag bug.
13536 echo 't clr' >>$CONFIG_STATUS
13537 echo ': clr' >>$CONFIG_STATUS
13538 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13540 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13542 mv $tmp/out $tmp/in
13544 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13545 rm -f conftest.defines
13546 mv conftest.
tail conftest.defines
13548 rm -f conftest.defines
13549 echo ' fi # egrep' >>$CONFIG_STATUS
13550 echo >>$CONFIG_STATUS
13552 # Break up conftest.undefs because some shells have a limit on the size
13553 # of here documents, and old seds have small limits too (100 cmds).
13554 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13555 rm -f conftest.
tail
13556 while grep . conftest.undefs
>/dev
/null
13558 # Write a limited-size here document to $tmp/undefs.sed.
13559 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13560 # Speed up: don't consider the non
`#undef'
13561 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13562 # Work around the forget-to-reset-the-flag bug.
13563 echo 't clr' >>$CONFIG_STATUS
13564 echo ': clr' >>$CONFIG_STATUS
13565 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13567 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13569 mv $tmp/out $tmp/in
13571 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13572 rm -f conftest.undefs
13573 mv conftest.tail conftest.undefs
13575 rm -f conftest.undefs
13577 cat >>$CONFIG_STATUS <<\EOF
13578 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13579 # use $as_me), people would be surprised to read:
13580 # /* config.h. Generated automatically by config.status. */
13581 if test x
"$ac_file" = x-
; then
13582 echo "/* Generated automatically by configure. */" >$tmp/config.h
13584 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13586 cat $tmp/in >>$tmp/config.h
13588 if test x
"$ac_file" != x-
; then
13589 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13590 { echo "$as_me:13589: $ac_file is unchanged" >&5
13591 echo "$as_me: $ac_file is unchanged" >&6;}
13593 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13594 X"$ac_file" : 'X\(//\)[^/]' \| \
13595 X"$ac_file" : 'X\(//\)$' \| \
13596 X"$ac_file" : 'X\(/\)' \| \
13597 . : '\(.\)' 2>/dev/null ||
13599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13601 /^X\(\/\/\)$/{ s//\1/; q; }
13602 /^X\(\/\).*/{ s//\1/; q; }
13604 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13605 { case "$ac_dir" in
13606 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13610 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13611 case $as_mkdir_dir in
13612 # Skip DOS drivespec
13613 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13615 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13616 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13623 mv $tmp/config.h
$ac_file
13627 rm -f $tmp/config.h
13631 cat >>$CONFIG_STATUS <<\EOF
13634 # CONFIG_COMMANDS section.
13636 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13637 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13638 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13643 ### Make the necessary directories, if they don't exist.
13644 for dir
in etc lisp
; do
13645 test -d ${dir} || mkdir
${dir}
13648 # Build src/Makefile from ${srcdir}/src/Makefile.c
13649 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13650 # This must be done after src/config.h is built, since we rely on that file.
13652 # Now get this: Some word that is part of the ${srcdir} directory name
13653 # or the ${configuration} value might, just might, happen to be an
13654 # identifier like `sun4' or `i386' or something, and be predefined by
13655 # the C preprocessor to some helpful value like 1, or maybe the empty
13656 # string. Needless to say consequent macro substitutions are less
13657 # than conducive to the makefile finding the correct directory.
13658 undefs
="`echo $top_srcdir $configuration $canonical |
13659 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13660 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13663 echo creating src
/epaths.h
13664 ${MAKE-make} epaths-force
13666 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13667 # `..' to `. .' unless invoked with -traditional
13669 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13670 CPPFLAGS
="$CPPFLAGS -traditional"
13673 echo creating lib-src
/Makefile
13675 rm -f junk.c junk1.c junk2.c
13676 sed -e '/start of cpp stuff/q' \
13677 < Makefile.c
> junk1.c
13678 sed -e '1,/start of cpp stuff/d'\
13679 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13680 < Makefile.c
> junk.c
13681 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13682 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13683 cat junk1.c junk2.c
> Makefile.new
13684 rm -f junk.c junk1.c junk2.c
13685 chmod 444 Makefile.new
13686 mv -f Makefile.new Makefile
13689 echo creating src
/Makefile
13691 rm -f junk.c junk1.c junk2.c
13692 sed -e '/start of cpp stuff/q' \
13693 < Makefile.c
> junk1.c
13694 sed -e '1,/start of cpp stuff/d'\
13695 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13696 < Makefile.c
> junk.c
13697 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13698 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13699 cat junk1.c junk2.c
> Makefile.new
13700 rm -f junk.c junk1.c junk2.c
13701 chmod 444 Makefile.new
13702 mv -f Makefile.new Makefile
13705 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13706 echo creating src
/.gdbinit
13707 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13710 # This is how we know whether to re-run configure in certain cases.
13711 touch src
/config.stamp
13718 cat >>$CONFIG_STATUS <<\EOF
13720 { (exit 0); exit 0; }
13722 chmod +x
$CONFIG_STATUS
13723 ac_clean_files
=$ac_clean_files_save
13725 # configure is writing to config.log, and then calls config.status.
13726 # config.status does its own redirection, appending to config.log.
13727 # Unfortunately, on DOS this fails, as config.log is still kept open
13728 # by configure, so config.status won't be able to write to it; its
13729 # output is simply discarded. So we exec the FD to /dev/null,
13730 # effectively closing config.log, so it can be properly (re)opened and
13731 # appended to by config.status. When coming back to configure, we
13732 # need to make the FD available again.
13733 if test "$no_create" != yes; then
13736 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13739 # would make configure fail if this is the last instruction.
13740 $ac_cs_success ||
{ (exit 1); exit 1; }