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-user use specified user
for game directory
685 --without-gcc don
't use GCC to compile Emacs if GCC is found
686 --without-pop don't support POP
mail retrieval with movemail
687 --with-kerberos support Kerberos-authenticated POP
688 --with-kerberos5 support Kerberos version
5 authenticated POP
689 --with-hesiod support Hesiod to get the POP server
host
690 --without-sound don
't compile with sound support
691 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
692 --with-xpm use -lXpm for displaying XPM images
693 --with-jpeg use -ljpeg for displaying JPEG images
694 --with-tiff use -ltiff for displaying TIFF images
695 --with-gif use -lungif for displaying GIF images
696 --with-png use -lpng for displaying PNG images
697 --without-toolkit-scroll-bars
698 don't use Motif or Xaw3d scroll bars
699 --without-xim don
't use X11 XIM
700 --without-carbon don't use Carbon GUI on Mac OS X
701 --with-x use the X Window System
703 Some influential environment variables
:
704 CC C compiler
command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
707 nonstandard directory
<lib dir
>
708 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
709 headers
in a nonstandard directory
<include dir
>
712 Use these variables to override the choices made by
`configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52. Invocation command line was
782 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
783 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
784 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
785 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
786 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
788 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
789 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
791 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
792 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
793 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
794 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
795 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
796 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
797 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
931 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not
set in the previous run
" >&5
935 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
942 { echo "$as_me:942: former value
: $ac_old_val" >&5
943 echo "$as_me: former value
: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value
: $ac_new_val" >&5
945 echo "$as_me: current value
: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error
: changes
in the environment can compromise the build
" >&5
964 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
965 { { echo "$as_me:965: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
977 *c*,-n*) ECHO_N= ECHO_C='
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 echo "#! $SHELL" >conftest.sh
983 echo "exit 0" >>conftest.sh
985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
986 (PATH=".;."; conftest.sh) 2>&5
988 echo "$as_me:988: \$? = $ac_status" >&5
989 (exit $ac_status); }; then
990 ac_path_separator=';'
994 PATH_SEPARATOR="$ac_path_separator"
997 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
999 test "$program_prefix" != NONE &&
1000 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1001 # Use a double $ so make ignores it.
1002 test "$program_suffix" != NONE &&
1003 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1004 # Double any \ or $. echo might interpret backslashes.
1005 # By default was `s
,x
,x
', remove it if useless.
1006 cat <<\_ACEOF >conftest.sed
1007 s/[\\$]/&&/g;s/;s,x,x,$//
1009 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1012 lispdir='${datadir}/emacs
/${version}/lisp
'
1013 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1014 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1015 lisppath='${locallisppath}:${lispdir}'
1016 etcdir='${datadir}/emacs
/${version}/etc
'
1017 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1018 docdir='${datadir}/emacs
/${version}/etc
'
1019 gamedir='${localstatedir}/games
/emacs
'
1023 # Check whether --with-game-user or --without-game-user was given.
1024 if test "${with_game_user+set}" = set; then
1025 withval="$with_game_user"
1029 # Check whether --with-gcc or --without-gcc was given.
1030 if test "${with_gcc+set}" = set; then
1035 # Check whether --with-pop or --without-pop was given.
1036 if test "${with_pop+set}" = set; then
1038 if test "$withval" = yes; then
1039 cat >>confdefs.h <<\EOF
1040 #define MAIL_USE_POP 1
1046 cat >>confdefs.h <<\EOF
1047 #define MAIL_USE_POP 1
1052 # Check whether --with-kerberos or --without-kerberos was given.
1053 if test "${with_kerberos+set}" = set; then
1054 withval="$with_kerberos"
1055 cat >>confdefs.h <<\EOF
1061 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1062 if test "${with_kerberos5+set}" = set; then
1063 withval="$with_kerberos5"
1064 if test "${with_kerberos5+set}" = set; then
1065 if test "${with_kerberos+set}" != set; then
1067 cat >>confdefs.h <<\EOF
1074 cat >>confdefs.h <<\EOF
1080 # Check whether --with-hesiod or --without-hesiod was given.
1081 if test "${with_hesiod+set}" = set; then
1082 withval="$with_hesiod"
1084 cat >>confdefs.h <<\EOF
1090 # Check whether --with-sound or --without-sound was given.
1091 if test "${with_sound+set}" = set; then
1092 withval="$with_sound"
1096 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1097 if test "${with_x_toolkit+set}" = set; then
1098 withval="$with_x_toolkit"
1099 case "${withval}" in
1100 y | ye | yes ) val=athena ;;
1102 l | lu | luc | luci | lucid ) val=lucid ;;
1103 a | at | ath | athe | athen | athena ) val=athena ;;
1104 m | mo | mot | moti | motif ) val=motif ;;
1106 { { echo "$as_me:1106: error: \`--with-x-toolkit=$withval' is invalid\
;
1107 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1108 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1109 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1110 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1111 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1112 { (exit 1); exit 1; }; }
1119 # Check whether --with-xpm or --without-xpm was given.
1120 if test "${with_xpm+set}" = set; then
1125 # Check whether --with-jpeg or --without-jpeg was given.
1126 if test "${with_jpeg+set}" = set; then
1127 withval="$with_jpeg"
1131 # Check whether --with-tiff or --without-tiff was given.
1132 if test "${with_tiff+set}" = set; then
1133 withval="$with_tiff"
1137 # Check whether --with-gif or --without-gif was given.
1138 if test "${with_gif+set}" = set; then
1143 # Check whether --with-png or --without-png was given.
1144 if test "${with_png+set}" = set; then
1149 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1150 if test "${with_toolkit_scroll_bars+set}" = set; then
1151 withval="$with_toolkit_scroll_bars"
1155 # Check whether --with-xim or --without-xim was given.
1156 if test "${with_xim+set}" = set; then
1161 # Check whether --with-carbon or --without-carbon was given.
1162 if test "${with_carbon+set}" = set; then
1163 withval="$with_carbon"
1167 #### Make srcdir absolute, if it isn't already. It
's important to
1168 #### avoid running the path through pwd unnecessarily, since pwd can
1169 #### give you automounter prefixes, which can go away. We do all this
1170 #### so Emacs can find its files when run uninstalled.
1171 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1176 ## We may be able to use the $PWD environment variable to make this
1177 ## absolute. But sometimes PWD is inaccurate.
1178 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1179 ## but that tested only for a well-formed and valid PWD,
1180 ## it did not object when PWD was well-formed and valid but just wrong.
1181 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1185 srcdir
="`(cd ${srcdir}; pwd)`"
1188 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1191 #### Check if the source directory already has a configured system in it.
1192 if test `pwd` != `(cd ${srcdir} && pwd)` \
1193 && test -f "${srcdir}/src/config.h" ; then
1194 { echo "$as_me:1194: WARNING: The directory tree \`${srcdir}' is being used
1195 as a build directory right now; it has been configured in its own
1196 right. To configure in another directory as well, you MUST
1197 use GNU make. If you do not have GNU make, then you must
1198 now do \`make distclean' in ${srcdir},
1199 and then run $0 again." >&5
1200 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1201 as a build directory right now; it has been configured in its own
1202 right. To configure in another directory as well, you MUST
1203 use GNU make. If you do not have GNU make, then you must
1204 now do \`make distclean' in ${srcdir},
1205 and then run $0 again." >&2;}
1207 extrasub
='/^VPATH[ ]*=/c\
1208 vpath %.c $(srcdir)\
1209 vpath %.h $(srcdir)\
1210 vpath %.y $(srcdir)\
1211 vpath %.l $(srcdir)\
1212 vpath %.s $(srcdir)\
1213 vpath %.in $(srcdir)\
1214 vpath %.texi $(srcdir)'
1217 #### Given the configuration name, set machfile and opsysfile to the
1218 #### names of the m/*.h and s/*.h files we should use.
1220 ### Canonicalize the configuration name.
1223 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1224 if test -f $ac_dir/install-sh
; then
1226 ac_install_sh
="$ac_aux_dir/install-sh -c"
1228 elif test -f $ac_dir/install.sh
; then
1230 ac_install_sh
="$ac_aux_dir/install.sh -c"
1232 elif test -f $ac_dir/shtool
; then
1234 ac_install_sh
="$ac_aux_dir/shtool install -c"
1238 if test -z "$ac_aux_dir"; then
1239 { { echo "$as_me:1239: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1240 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1241 { (exit 1); exit 1; }; }
1243 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1244 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1245 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1247 # Make sure we can run config.sub.
1248 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1249 { { echo "$as_me:1249: error: cannot run $ac_config_sub" >&5
1250 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1251 { (exit 1); exit 1; }; }
1253 echo "$as_me:1253: checking build system type" >&5
1254 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1255 if test "${ac_cv_build+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 ac_cv_build_alias
=$build_alias
1259 test -z "$ac_cv_build_alias" &&
1260 ac_cv_build_alias
=`$ac_config_guess`
1261 test -z "$ac_cv_build_alias" &&
1262 { { echo "$as_me:1262: error: cannot guess build type; you must specify one" >&5
1263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1264 { (exit 1); exit 1; }; }
1265 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1266 { { echo "$as_me:1266: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1267 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1268 { (exit 1); exit 1; }; }
1271 echo "$as_me:1271: result: $ac_cv_build" >&5
1272 echo "${ECHO_T}$ac_cv_build" >&6
1274 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1275 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1276 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1278 echo "$as_me:1278: checking host system type" >&5
1279 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1280 if test "${ac_cv_host+set}" = set; then
1281 echo $ECHO_N "(cached) $ECHO_C" >&6
1283 ac_cv_host_alias
=$host_alias
1284 test -z "$ac_cv_host_alias" &&
1285 ac_cv_host_alias
=$ac_cv_build_alias
1286 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1287 { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1288 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1289 { (exit 1); exit 1; }; }
1292 echo "$as_me:1292: result: $ac_cv_host" >&5
1293 echo "${ECHO_T}$ac_cv_host" >&6
1295 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1296 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1297 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1300 configuration
=${host_alias-$host}
1302 ### If you add support for a new configuration, add code to this
1303 ### switch statement to recognize your configuration name and select
1304 ### the appropriate operating system and machine description files.
1306 ### You would hope that you could choose an m/*.h file pretty much
1307 ### based on the machine portion of the configuration name, and an s-
1308 ### file based on the operating system portion. However, it turns out
1309 ### that each m/*.h file is pretty manufacturer-specific - for
1310 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1311 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1312 ### machines. So we basically have to have a special case for each
1313 ### configuration name.
1315 ### As far as handling version numbers on operating systems is
1316 ### concerned, make sure things will fail in a fixable way. If
1317 ### /etc/MACHINES doesn't say anything about version numbers, be
1318 ### prepared to handle anything reasonably. If version numbers
1319 ### matter, be sure /etc/MACHINES says something about it.
1321 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1322 ### "System V Release 4"; he writes, "The old convention encouraged
1323 ### confusion between `system' and `release' levels'."
1325 machine
='' opsys
='' unported
=no
1326 case "${canonical}" in
1331 case "${canonical}" in
1332 alpha
*-*-freebsd*) machine
=alpha
;;
1333 i
[3456]86-*-freebsd*) machine
=intel386
;;
1340 case "${canonical}" in
1341 alpha
*-*-netbsd*) machine
=alpha
;;
1342 i
[3456]86-*-netbsd*) machine
=intel386
;;
1344 # This is somewhat bogus.
1345 machine
=hp9000s300
;;
1346 powerpc-apple-netbsd
*) machine
=macppc
;;
1347 mips-
*-netbsd*) machine
=pmax
;;
1348 mipsel-
*-netbsd*) machine
=pmax
;;
1349 mipseb-
*-netbsd*) machine
=pmax
;;
1350 ns32k-
*-netbsd*) machine
=ns32000
;;
1351 powerpc-
*-netbsd*) machine
=macppc
;;
1352 sparc
*-*-netbsd*) machine
=sparc
;;
1353 vax-
*-netbsd*) machine
=vax
;;
1354 arm-
*-netbsd*) machine
=arm
;;
1361 case "${canonical}" in
1362 alpha
*-*-openbsd*) machine
=alpha
;;
1363 i386-
*-openbsd*) machine
=intel386
;;
1364 m68k-
*-openbsd*) machine
=hp9000s300
;;
1365 mipsel-
*-openbsd*) machine
=pmax
;;
1366 ns32k-
*-openbsd*) machine
=ns32000
;;
1367 sparc-
*-openbsd*) machine
=sparc
;;
1368 vax-
*-openbsd*) machine
=vax
;;
1373 arm-acorn-riscix1.1
* )
1374 machine
=acorn opsys
=riscix1-1
1376 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1377 ## This name is riscix12 instead of riscix1.2
1378 ## to avoid a file name conflict on MSDOS.
1379 machine
=acorn opsys
=riscix12
1385 case "${canonical}" in
1386 i
[345]86-*-bsdi*) machine
=intel386
;;
1387 sparc-
*-bsdi*) machine
=sparc
;;
1388 powerpc-
*-bsdi*) machine
=macppc
;;
1390 case "${canonical}" in
1391 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1392 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1393 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1394 *-*-bsdi3* ) opsys
=bsdos3
;;
1395 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1400 ## Strictly speaking, we need the version of the alliant operating
1401 ## system to choose the right machine file, but currently the
1402 ## configuration name doesn't tell us enough to choose the right
1403 ## one; we need to give alliants their own operating system name to
1404 ## do this right. When someone cares, they can help us.
1406 machine
=alliant4 opsys
=bsd4-2
1409 machine
=alliant-2800 opsys
=bsd4-3
1412 ## Alpha (DEC) machines.
1414 machine
=alpha opsys
=osf1
1415 # This is needed to find X11R6.1 libraries for certain tests.
1416 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1417 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1418 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1419 # due to non-traditional preprocessing with the current compiler
1420 # defaults. OSF 4 can also have that compiler version, and there
1421 # seems always to have been a usable /usr/bin/cpp.
1422 NON_GNU_CPP
=/usr
/bin
/cpp
1423 case "${canonical}" in
1424 alpha
*-dec-osf[5-9]*)
1429 alpha
*-*-linux-gnu* )
1430 machine
=alpha opsys
=gnu-linux
1434 machine
=arm opsys
=gnu-linux
1439 machine
=macppc opsys
=gnu-linux
1444 machine
=altos opsys
=usg5-2
1449 machine
=amdahl opsys
=usg5-2-2
1452 ## Apollo, Domain/OS
1454 machine
=apollo opsys
=bsd4-3
1457 ## AT&T 3b2, 3b5, 3b15, 3b20
1459 machine
=att3b opsys
=usg5-2-2
1462 ## AT&T 3b1 - The Mighty Unix PC!
1464 machine
=7300 opsys
=usg5-2-2
1469 machine
=ibmrs6000 opsys
=aix3-2
1474 machine
=dpx2 opsys
=usg5-3
1479 machine
=sps7 opsys
=usg5-2
1482 ## CCI 5/32, 6/32 -- see "Tahoe".
1485 ## I don't know what configuration name to use for this; config.sub
1486 ## doesn't seem to know anything about it. Hey, Celerity users, get
1487 ## in touch with us!
1488 celerity-celerity-bsd
* )
1489 machine
=celerity opsys
=bsd4-2
1493 ## What operating systems does this chip run that Emacs has been
1497 ## We'll use the catch-all code at the bottom to guess the
1498 ## operating system.
1502 mips-compaq-nonstopux
* )
1503 machine
=nonstopux opsys
=nonstopux
1507 *-convex-bsd* |
*-convex-convexos* )
1508 machine
=convex opsys
=bsd4-3
1509 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1510 NON_GNU_CPP
="cc -E -P"
1514 i
[3456]86-cubix-sysv* )
1515 machine
=intel386 opsys
=usg5-3
1519 cydra
*-cydrome-sysv* )
1520 machine
=cydra5 opsys
=usg5-3
1523 ## Data General AViiON Machines
1524 ## DG changed naming conventions with the release of 5.4.4.10, they
1525 ## dropped the initial 5.4 but left the intervening R. Because of the
1526 ## R this shouldn't conflict with older versions of the OS (which I
1527 ## think were named like dgux4.*). In addition, DG new AViiONs series
1528 ## uses either Motorola M88k or Intel Pentium CPUs.
1529 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1530 machine
=aviion opsys
=dgux4
1532 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1533 ## This name is dgux5-4-3 instead of dgux5-4r3
1534 ## to avoid a file name conflict on MSDOS.
1535 machine
=aviion opsys
=dgux5-4-3
1537 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1538 machine
=aviion opsys
=dgux5-4r2
1541 machine
=aviion opsys
=dgux
1544 ## Data General AViiON Intel (x86) Machines
1545 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1546 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1547 i
[345]86-dg-dguxR4* )
1548 machine
=aviion-intel opsys
=dgux4
1552 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1553 machine
=pmax opsys
=bsd4-2
1555 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1556 machine
=pmax opsys
=bsd4-3
1559 machine
=pmax opsys
=ultrix4-3
1562 machine
=pmax opsys
=osf1
1564 mips-dec-mach_bsd4.3
* )
1565 machine
=pmax opsys
=mach-bsd4-3
1568 ## Motorola Delta machines
1569 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1570 machine
=delta opsys
=usg5-3
1571 if test -z "`type gnucc | grep 'not found'`"
1573 if test -s /etc
/167config
1574 then CC
="gnucc -m68040"
1575 else CC
="gnucc -m68881"
1578 if test -z "`type gcc | grep 'not found'`"
1584 m88k-motorola-sysv4
* )
1585 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1586 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1587 # I hope there are not other 4.0 versions for this machine
1588 # which really need usg5-4 instead.
1589 machine
=delta88k opsys
=usg5-4-2
1591 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1592 machine
=delta88k opsys
=usg5-3
1597 machine
=dual opsys
=usg5-2
1599 m68
*-dual-uniplus* )
1600 machine
=dual opsys
=unipl5-2
1605 machine
=elxsi opsys
=usg5-2
1610 machine
=ns16000 opsys
=umax
1613 ## The GEC 63 - apparently, this port isn't really finished yet.
1614 # I'm sure we finished off the last of the machines, though. -- fx
1616 ## Gould Power Node and NP1
1618 machine
=gould opsys
=bsd4-2
1621 machine
=gould opsys
=bsd4-3
1624 machine
=gould-np1 opsys
=bsd4-3
1627 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1628 ## as far as Emacs is concerned).
1630 # Build needs to be different on 7.0 and later releases
1631 case "`uname -r`" in
1632 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1633 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1635 NON_GNU_CPP
="/lib/cpp"
1637 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1639 machine
=nh3000 opsys
=cxux
1641 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1642 powerpc-harris-powerunix
)
1643 machine
=nh6000 opsys
=powerunix
1644 NON_GNU_CPP
="cc -Xo -E -P"
1646 ## SR2001/SR2201 running HI-UX/MPP
1647 hppa1.1
-hitachi-hiuxmpp* )
1648 machine
=sr2k opsys
=hiuxmpp
1650 hppa1.1
-hitachi-hiuxwe2* )
1651 machine
=sr2k opsys
=hiuxwe2
1654 xps
*-honeywell-sysv* )
1655 machine
=xps100 opsys
=usg5-2
1658 ## HP 9000 series 200 or 300
1660 machine
=hp9000s300 opsys
=bsd4-3
1662 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1664 case "`uname -r`" in
1665 ## Someone's system reports A.B8.05 for this.
1666 ## I wonder what other possibilities there are.
1667 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1668 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1669 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1670 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1671 *) machine
=hp9000s300 opsys
=hpux
;;
1675 ## HP 9000 series 700 and 800, running HP/UX
1677 machine
=hp800 opsys
=hpux
1680 machine
=hp800 opsys
=hpux8
1682 hppa
*-hp-hpux9shr* )
1683 machine
=hp800 opsys
=hpux9shr
1686 machine
=hp800 opsys
=hpux9
1689 machine
=hp800 opsys
=hpux10
1691 hppa
*-hp-hpux1[1-9]* )
1692 machine
=hp800 opsys
=hpux11
1695 hppa
*-*-linux-gnu* )
1696 machine
=hp800 opsys
=gnu-linux
1699 ## HP 9000 series 700 and 800, running HP/UX
1701 ## Cross-compilation? Nah!
1702 case "`uname -r`" in
1703 ## Someone's system reports A.B8.05 for this.
1704 ## I wonder what other possibilities there are.
1705 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1706 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1707 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1708 *) machine
=hp800 opsys
=hpux10
;;
1712 machine
=hp800 opsys
=nextstep
1717 machine
=orion opsys
=bsd4-2
1719 clipper-orion-bsd
* )
1720 machine
=orion105 opsys
=bsd4-2
1724 i
[3456]86-ibm-aix1.1
* )
1725 machine
=ibmps2-aix opsys
=usg5-2-2
1727 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1728 machine
=ibmps2-aix opsys
=usg5-3
1731 machine
=ibm370aix opsys
=usg5-3
1734 machine
=ibms390 opsys
=gnu-linux
1736 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1737 machine
=ibmrs6000 opsys
=aix3-1
1739 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1740 machine
=ibmrs6000 opsys
=aix3-2-5
1742 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1743 machine
=ibmrs6000 opsys
=aix4-1
1745 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1746 machine
=ibmrs6000 opsys
=aix4-2
1748 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1749 machine
=ibmrs6000 opsys
=aix4-2
1751 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1752 machine
=ibmrs6000 opsys
=aix4
1754 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1755 machine
=ibmrs6000 opsys
=aix4-1
1757 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1758 machine
=ibmrs6000 opsys
=aix3-2
1761 machine
=ibmrt opsys
=bsd4-3
1764 machine
=ibmrt opsys
=bsd4-2
1767 machine
=ibmrt opsys
=bsd4-3
1770 machine
=ibmrt opsys
=bsd4-2
1773 machine
=ibmrt opsys
=bsd4-3
1776 machine
=ibmrt opsys
=bsd4-3
1779 machine
=ibmrt-aix opsys
=usg5-2-2
1782 ## Integrated Solutions `Optimum V'
1784 machine
=isi-ov opsys
=bsd4-2
1787 machine
=isi-ov opsys
=bsd4-3
1790 ## Intel 386 machines where we do care about the manufacturer
1791 i
[3456]86-intsys-sysv* )
1792 machine
=is386 opsys
=usg5-2-2
1796 i
[3456]86-prime-sysv* )
1797 machine
=i386 opsys
=usg5-3
1800 ## Sequent Symmetry running Dynix
1801 i
[3456]86-sequent-bsd* )
1802 machine
=symmetry opsys
=bsd4-3
1805 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1806 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1807 machine
=sequent-ptx opsys
=ptx4
1808 NON_GNU_CPP
=/lib
/cpp
1811 ## Sequent Symmetry running DYNIX/ptx
1812 ## Use the old cpp rather than the newer ANSI one.
1813 i
[3456]86-sequent-ptx* )
1814 machine
=sequent-ptx opsys
=ptx
1815 NON_GNU_CPP
="/lib/cpp"
1818 ## ncr machine running svr4.3.
1819 i
[3456]86-ncr-sysv4.3
)
1820 machine
=ncr386 opsys
=usg5-4-3
1823 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1824 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1825 i
[3456]86-ncr-sysv* )
1826 machine
=ncr386 opsys
=usg5-4-2
1829 ## Intel Paragon OSF/1
1831 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1836 machine
=i860 opsys
=usg5-4
1837 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1838 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1841 ## Macintosh PowerPC
1842 powerpc
*-*-linux-gnu* )
1843 machine
=macppc opsys
=gnu-linux
1846 ## Masscomp machines
1847 m68
*-masscomp-rtu* )
1848 machine
=masscomp opsys
=rtu
1851 ## Megatest machines
1852 m68
*-megatest-bsd* )
1853 machine
=mega68 opsys
=bsd4-2
1856 ## Workstations sold by MIPS
1857 ## This is not necessarily all workstations using the MIPS processor -
1858 ## Irises are produced by SGI, and DECstations by DEC.
1860 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1861 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1862 ## it gives for choosing between the alternatives seems to be "Use
1863 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1864 ## the BSD world." I'll assume that these are instructions for
1865 ## handling two odd situations, and that every other situation
1866 ## should use mips.h and usg5-2-2, they being listed first.
1869 ## Fall through to the general code at the bottom to decide on the OS.
1871 mips-mips-riscos4
* )
1872 machine
=mips4 opsys
=bsd4-3
1873 NON_GNU_CC
="cc -systype bsd43"
1874 NON_GNU_CPP
="cc -systype bsd43 -E"
1876 mips-mips-riscos5
* )
1877 machine
=mips4 opsys
=riscos5
1878 NON_GNU_CC
="cc -systype bsd43"
1879 NON_GNU_CPP
="cc -systype bsd43 -E"
1882 machine
=mips opsys
=bsd4-3
1885 machine
=mips opsys
=usg5-2-2
1889 m68
*-next-* | m68k-
*-nextstep* )
1890 machine
=m68k opsys
=nextstep
1893 ## The complete machine from National Semiconductor
1895 machine
=ns32000 opsys
=usg5-2
1899 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1900 machine
=tower32 opsys
=usg5-2-2
1902 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1903 machine
=tower32v3 opsys
=usg5-3
1908 machine
=ews4800 opsys
=ux4800
1911 ## Nixdorf Targon 31
1912 m68
*-nixdorf-sysv* )
1913 machine
=targon31 opsys
=usg5-2-2
1918 machine
=nu opsys
=usg5-2
1923 machine
=plexus opsys
=usg5-2
1926 ## PowerPC reference platform
1927 powerpcle-
*-solaris2* )
1933 ## I don't really have any idea what sort of processor the Pyramid has,
1934 ## so I'm assuming it is its own architecture.
1935 pyramid-pyramid-bsd
* )
1936 machine
=pyramid opsys
=bsd4-2
1940 ns32k-sequent-bsd4.2
* )
1941 machine
=sequent opsys
=bsd4-2
1943 ns32k-sequent-bsd4.3
* )
1944 machine
=sequent opsys
=bsd4-3
1948 mips-siemens-sysv
* | mips-sni-sysv
*)
1949 machine
=mips-siemens opsys
=usg5-4
1950 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1951 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1954 ## Silicon Graphics machines
1955 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1957 machine
=irist opsys
=iris3-5
1959 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1960 machine
=irist opsys
=iris3-6
1964 machine
=iris4d opsys
=irix3-3
1967 machine
=iris4d opsys
=irix4-0
1970 machine
=iris4d opsys
=irix6-5
1971 # Without defining _LANGUAGE_C, things get masked out in the headers
1972 # so that, for instance, grepping for `free' in stdlib.h fails and
1973 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1974 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1975 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1978 machine
=iris4d opsys
=irix6-0
1979 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1980 # but presumably it does no harm.
1981 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1982 # -32 probably isn't necessary in later v.6s -- anyone know which?
1983 NON_GCC_TEST_OPTIONS
=-32
1985 mips-sgi-irix5.
[01]* )
1986 machine
=iris4d opsys
=irix5-0
1988 mips-sgi-irix5
* | mips-sgi-irix
* )
1989 machine
=iris4d opsys
=irix5-2
1994 machine
=news opsys
=bsd4-2
1997 machine
=news opsys
=bsd4-3
1999 m68
*-sony-newsos3* | m68
*-sony-news3*)
2000 machine
=news opsys
=bsd4-3
2002 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2003 machine
=news-risc opsys
=bsd4-3
2005 mips-sony-newsos6
* )
2006 machine
=news-r6 opsys
=newsos6
2009 machine
=news-risc opsys
=newsos5
2014 machine
=stride opsys
=usg5-2
2018 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2019 machine
=sparc opsys
=gnu-linux
2022 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2023 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2024 | rs6000-
*-solaris2*)
2025 case "${canonical}" in
2026 m68
*-sunos1* ) machine
=sun1
;;
2027 m68
*-sunos2* ) machine
=sun2
;;
2028 m68
* ) machine
=sun3
;;
2029 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2030 i
[3456]86-*-* ) machine
=intel386
;;
2031 powerpcle
* ) machine
=powerpcle
;;
2032 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2033 sparc
* ) machine
=sparc
;;
2036 case "${canonical}" in
2037 ## The Sun386 didn't get past 4.0.
2038 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2039 *-sunos4.0
* ) opsys
=sunos4-0
;;
2040 *-sunos4.1.
[3-9]*noshare
)
2041 ## This name is sunos413 instead of sunos4-1-3
2042 ## to avoid a file name conflict on MSDOS.
2044 NON_GNU_CPP
=/usr
/lib
/cpp
2045 NON_GCC_TEST_OPTIONS
=-Bstatic
2046 GCC_TEST_OPTIONS
=-static
2048 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2050 NON_GNU_CPP
=/usr
/lib
/cpp
2052 *-sunos4* |
*-sunos )
2054 NON_GCC_TEST_OPTIONS
=-Bstatic
2055 GCC_TEST_OPTIONS
=-static
2057 *-sunos5.3
* |
*-solaris2.3
* )
2059 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2061 *-sunos5.4
* |
*-solaris2.4
* )
2063 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2066 *-sunos5.5
* |
*-solaris2.5
* )
2068 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2071 *-sunos5* |
*-solaris* )
2073 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2077 ## Watch out for a compiler that we know will not work.
2078 case "${canonical}" in
2079 *-solaris* |
*-sunos5* )
2080 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2081 ## /usr/ucb/cc doesn't work;
2082 ## we should find some other compiler that does work.
2090 machine
=sparc opsys
=nextstep
2094 m68
*-tadpole-sysv* )
2095 machine
=tad68k opsys
=usg5-3
2099 tahoe-tahoe-bsd4.2
* )
2100 machine
=tahoe opsys
=bsd4-2
2102 tahoe-tahoe-bsd4.3
* )
2103 machine
=tahoe opsys
=bsd4-3
2106 ## Tandem Integrity S2
2108 machine
=tandem-s2 opsys
=usg5-3
2112 m88k-tektronix-sysv3
* )
2113 machine
=tekxd88 opsys
=usg5-3
2116 ## Tektronix 16000 box (6130?)
2117 ns16k-tektronix-bsd
* )
2118 machine
=ns16000 opsys
=bsd4-2
2121 ## src/m/tek4300.h hints that this is a m68k machine.
2122 m68
*-tektronix-bsd* )
2123 machine
=tek4300 opsys
=bsd4-3
2127 ## We seem to have lost the machine-description file titan.h!
2129 machine
=titan opsys
=usg5-3
2132 ## Ustation E30 (SS5E)
2133 m68
*-unisys-uniplus* )
2134 machine
=ustation opsystem
=unipl5-2
2140 case "${canonical}" in
2141 *-bsd4.1
* ) opsys
=bsd4-1
;;
2142 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2143 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2144 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2145 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2146 *-vms* ) opsys
=vms
;;
2152 ns16k-whitechapel-
* )
2154 ## We don't know what sort of OS runs on these; we'll let the
2155 ## operating system guessing code below try.
2160 machine
=wicat opsys
=usg5-2
2165 machine
=ia64 opsys
=gnu-linux
2168 ## Intel 386 machines where we don't care about the manufacturer
2171 case "${canonical}" in
2172 *-lynxos* ) opsys
=lynxos
;;
2173 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2174 *-isc2.2
* ) opsys
=isc2-2
;;
2175 *-isc4.0
* ) opsys
=isc4-0
;;
2176 *-isc4.
* ) opsys
=isc4-1
2177 GCC_TEST_OPTIONS
=-posix
2178 NON_GCC_TEST_OPTIONS
=-Xp
2180 *-isc* ) opsys
=isc3-0
;;
2181 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2182 *-esix* ) opsys
=esix
;;
2183 *-xenix* ) opsys
=xenix
;;
2184 *-linux-gnu* ) opsys
=gnu-linux
;;
2185 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2186 *-sco3.2v5
* ) opsys
=sco5
2187 NON_GNU_CPP
=/lib
/cpp
2188 # Prevent -belf from being passed to $CPP.
2189 # /lib/cpp does not accept it.
2190 OVERRIDE_CPPFLAGS
=" "
2192 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2193 *-386bsd* ) opsys
=386bsd
;;
2194 *-nextstep* ) opsys
=nextstep
;;
2195 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2199 ## m68k Linux-based GNU system
2201 machine
=m68k opsys
=gnu-linux
2204 ## Mips Linux-based GNU system
2206 machine
=mips opsys
=gnu-linux
2210 sparc-fujitsu-sysv4
* )
2211 machine
=sparc opsys
=uxpds
2212 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2217 f301-fujitsu-uxpv4.1
)
2218 machine
=f301 opsys
=uxpv
2221 ## Darwin / Mac OS X
2222 powerpc-apple-darwin
* )
2223 machine
=powermac opsys
=darwin
2224 # Define CPP as follows to make autoconf work correctly.
2225 CPP
="cc -E -traditional-cpp"
2228 ## AMD x86-64 Linux-based GNU system
2229 x86_64-
*-linux-gnu* )
2230 machine
=amdx86-64 opsys
=gnu-linux
2238 ### If the code above didn't choose an operating system, just choose
2239 ### an operating system based on the configuration name. You really
2240 ### only want to use this when you have no idea what the right
2241 ### operating system is; if you know what operating systems a machine
2242 ### runs, it's cleaner to make it explicit in the case statement
2244 if test x
"${opsys}" = x
; then
2245 case "${canonical}" in
2246 *-gnu* ) opsys
=gnu
;;
2247 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2248 *-bsd4.2
) opsys
=bsd4-2
;;
2249 *-bsd4.3
) opsys
=bsd4-3
;;
2250 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2251 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2252 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2253 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2254 *-sysv4.2uw
* ) opsys
=unixware
;;
2255 *-sysv4.1
* |
*-sysvr4.1
* )
2256 NON_GNU_CPP
=/usr
/lib
/cpp
2258 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2259 if [ x
$NON_GNU_CPP = x
]; then
2260 if [ -f /usr
/ccs
/lib
/cpp
]; then
2261 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2263 NON_GNU_CPP
=/lib
/cpp
2267 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2274 if test $unported = yes; then
2275 { { echo "$as_me:2275: error: Emacs hasn't been ported to \`${canonical}' systems.
2276 Check \`etc/MACHINES' for recognized configuration names." >&5
2277 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2278 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2279 { (exit 1); exit 1; }; }
2282 machfile
="m/${machine}.h"
2283 opsysfile
="s/${opsys}.h"
2285 #### Choose a compiler.
2286 test -n "$CC" && cc_specified
=yes
2288 # Save the value of CFLAGS that the user specified.
2289 SPECIFIED_CFLAGS
="$CFLAGS"
2292 "yes" ) CC
="gcc" GCC
=yes ;;
2293 "no" ) : ${CC=cc} ;;
2297 ac_cpp
='$CPP $CPPFLAGS'
2298 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2303 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2304 echo "$as_me:2304: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC
="$CC" # Let the user override the test.
2312 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2314 for ac_dir
in $ac_dummy; do
2316 test -z "$ac_dir" && ac_dir
=.
2317 $as_executable_p "$ac_dir/$ac_word" ||
continue
2318 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2319 echo "$as_me:2319: found $ac_dir/$ac_word" >&5
2326 if test -n "$CC"; then
2327 echo "$as_me:2327: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6
2330 echo "$as_me:2330: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2335 if test -z "$ac_cv_prog_CC"; then
2337 # Extract the first word of "gcc", so it can be a program name with args.
2338 set dummy gcc
; ac_word
=$2
2339 echo "$as_me:2339: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$ac_ct_CC"; then
2345 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2347 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2349 for ac_dir
in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir
=.
2352 $as_executable_p "$ac_dir/$ac_word" ||
continue
2353 ac_cv_prog_ac_ct_CC
="gcc"
2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2360 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 echo "$as_me:2362: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6
2365 echo "$as_me:2365: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2374 if test -z "$CC"; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2377 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2378 echo "$as_me:2378: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC
="$CC" # Let the user override the test.
2386 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2388 for ac_dir
in $ac_dummy; do
2390 test -z "$ac_dir" && ac_dir
=.
2391 $as_executable_p "$ac_dir/$ac_word" ||
continue
2392 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2393 echo "$as_me:2393: found $ac_dir/$ac_word" >&5
2400 if test -n "$CC"; then
2401 echo "$as_me:2401: result: $CC" >&5
2402 echo "${ECHO_T}$CC" >&6
2404 echo "$as_me:2404: result: no" >&5
2405 echo "${ECHO_T}no" >&6
2409 if test -z "$ac_cv_prog_CC"; then
2411 # Extract the first word of "cc", so it can be a program name with args.
2412 set dummy cc
; ac_word
=$2
2413 echo "$as_me:2413: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2421 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2423 for ac_dir
in $ac_dummy; do
2425 test -z "$ac_dir" && ac_dir
=.
2426 $as_executable_p "$ac_dir/$ac_word" ||
continue
2427 ac_cv_prog_ac_ct_CC
="cc"
2428 echo "$as_me:2428: found $ac_dir/$ac_word" >&5
2434 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2435 if test -n "$ac_ct_CC"; then
2436 echo "$as_me:2436: result: $ac_ct_CC" >&5
2437 echo "${ECHO_T}$ac_ct_CC" >&6
2439 echo "$as_me:2439: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2449 if test -z "$CC"; then
2450 # Extract the first word of "cc", so it can be a program name with args.
2451 set dummy cc
; ac_word
=$2
2452 echo "$as_me:2452: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CC+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CC"; then
2458 ac_cv_prog_CC
="$CC" # Let the user override the test.
2461 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2463 for ac_dir
in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir
=.
2466 $as_executable_p "$ac_dir/$ac_word" ||
continue
2467 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2468 ac_prog_rejected
=yes
2472 echo "$as_me:2472: found $ac_dir/$ac_word" >&5
2476 if test $ac_prog_rejected = yes; then
2477 # We found a bogon in the path, so make sure we never use it.
2478 set dummy
$ac_cv_prog_CC
2480 if test $# != 0; then
2481 # We chose a different compiler from the bogus one.
2482 # However, it has the same basename, so the bogon will be chosen
2483 # first if we set CC to just the basename; use the full file name.
2485 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2493 if test -n "$CC"; then
2494 echo "$as_me:2494: result: $CC" >&5
2495 echo "${ECHO_T}$CC" >&6
2497 echo "$as_me:2497: result: no" >&5
2498 echo "${ECHO_T}no" >&6
2502 if test -z "$CC"; then
2503 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2507 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2508 echo "$as_me:2508: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC
="$CC" # Let the user override the test.
2516 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2518 for ac_dir
in $ac_dummy; do
2520 test -z "$ac_dir" && ac_dir
=.
2521 $as_executable_p "$ac_dir/$ac_word" ||
continue
2522 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2523 echo "$as_me:2523: found $ac_dir/$ac_word" >&5
2530 if test -n "$CC"; then
2531 echo "$as_me:2531: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6
2534 echo "$as_me:2534: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$CC" && break
2541 if test -z "$CC"; then
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy
$ac_prog; ac_word
=$2
2547 echo "$as_me:2547: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2555 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2557 for ac_dir
in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir
=.
2560 $as_executable_p "$ac_dir/$ac_word" ||
continue
2561 ac_cv_prog_ac_ct_CC
="$ac_prog"
2562 echo "$as_me:2562: found $ac_dir/$ac_word" >&5
2568 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2569 if test -n "$ac_ct_CC"; then
2570 echo "$as_me:2570: result: $ac_ct_CC" >&5
2571 echo "${ECHO_T}$ac_ct_CC" >&6
2573 echo "$as_me:2573: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 test -n "$ac_ct_CC" && break
2585 test -z "$CC" && { { echo "$as_me:2585: error: no acceptable cc found in \$PATH" >&5
2586 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2587 { (exit 1); exit 1; }; }
2589 # Provide some information about the compiler.
2590 echo "$as_me:2590:" \
2591 "checking for C compiler version" >&5
2592 ac_compiler
=`set X $ac_compile; echo $2`
2593 { (eval echo "$as_me:2593: \"$ac_compiler --version </dev/null >&5\"") >&5
2594 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); }
2598 { (eval echo "$as_me:2598: \"$ac_compiler -v </dev/null >&5\"") >&5
2599 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2601 echo "$as_me:2601: \$? = $ac_status" >&5
2602 (exit $ac_status); }
2603 { (eval echo "$as_me:2603: \"$ac_compiler -V </dev/null >&5\"") >&5
2604 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); }
2609 cat >conftest.
$ac_ext <<_ACEOF
2610 #line 2610 "configure"
2611 #include "confdefs.h"
2621 ac_clean_files_save
=$ac_clean_files
2622 ac_clean_files
="$ac_clean_files a.out a.exe"
2623 # Try to create an executable without -o first, disregard a.out.
2624 # It will help us diagnose broken compilers, and finding out an intuition
2626 echo "$as_me:2626: checking for C compiler default output" >&5
2627 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2628 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 if { (eval echo "$as_me:2629: \"$ac_link_default\"") >&5
2630 (eval $ac_link_default) 2>&5
2632 echo "$as_me:2632: \$? = $ac_status" >&5
2633 (exit $ac_status); }; then
2634 # Find the output, starting from the most likely. This scheme is
2635 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2637 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2638 ls a.out conftest 2>/dev/null;
2639 ls a.* conftest.* 2>/dev/null`; do
2641 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2642 a.out
) # We found the default executable, but exeext='' is most
2645 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2653 echo "$as_me: failed program was:" >&5
2654 cat conftest.
$ac_ext >&5
2655 { { echo "$as_me:2655: error: C compiler cannot create executables" >&5
2656 echo "$as_me: error: C compiler cannot create executables" >&2;}
2657 { (exit 77); exit 77; }; }
2660 ac_exeext
=$ac_cv_exeext
2661 echo "$as_me:2661: result: $ac_file" >&5
2662 echo "${ECHO_T}$ac_file" >&6
2664 # Check the compiler produces executables we can run. If not, either
2665 # the compiler is broken, or we cross compile.
2666 echo "$as_me:2666: checking whether the C compiler works" >&5
2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671 if { ac_try
='./$ac_file'
2672 { (eval echo "$as_me:2672: \"$ac_try\"") >&5
2675 echo "$as_me:2675: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 if test "$cross_compiling" = maybe
; then
2682 { { echo "$as_me:2682: error: cannot run C compiled programs.
2683 If you meant to cross compile, use \`--host'." >&5
2684 echo "$as_me: error: cannot run C compiled programs.
2685 If you meant to cross compile, use \`--host'." >&2;}
2686 { (exit 1); exit 1; }; }
2690 echo "$as_me:2690: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2693 rm -f a.out a.exe conftest
$ac_cv_exeext
2694 ac_clean_files
=$ac_clean_files_save
2695 # Check the compiler produces executables we can run. If not, either
2696 # the compiler is broken, or we cross compile.
2697 echo "$as_me:2697: checking whether we are cross compiling" >&5
2698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699 echo "$as_me:2699: result: $cross_compiling" >&5
2700 echo "${ECHO_T}$cross_compiling" >&6
2702 echo "$as_me:2702: checking for executable suffix" >&5
2703 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2704 if { (eval echo "$as_me:2704: \"$ac_link\"") >&5
2705 (eval $ac_link) 2>&5
2707 echo "$as_me:2707: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2711 # work properly (i.e., refer to `conftest.exe'), while it won't with
2713 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2715 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2716 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2723 { { echo "$as_me:2723: error: cannot compute EXEEXT: cannot compile and link" >&5
2724 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2725 { (exit 1); exit 1; }; }
2728 rm -f conftest
$ac_cv_exeext
2729 echo "$as_me:2729: result: $ac_cv_exeext" >&5
2730 echo "${ECHO_T}$ac_cv_exeext" >&6
2732 rm -f conftest.
$ac_ext
2733 EXEEXT
=$ac_cv_exeext
2735 echo "$as_me:2735: checking for object suffix" >&5
2736 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2737 if test "${ac_cv_objext+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 cat >conftest.
$ac_ext <<_ACEOF
2741 #line 2741 "configure"
2742 #include "confdefs.h"
2752 rm -f conftest.o conftest.obj
2753 if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); }; then
2758 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2760 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2761 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2766 echo "$as_me: failed program was:" >&5
2767 cat conftest.
$ac_ext >&5
2768 { { echo "$as_me:2768: error: cannot compute OBJEXT: cannot compile" >&5
2769 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2770 { (exit 1); exit 1; }; }
2773 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2775 echo "$as_me:2775: result: $ac_cv_objext" >&5
2776 echo "${ECHO_T}$ac_cv_objext" >&6
2777 OBJEXT
=$ac_cv_objext
2779 echo "$as_me:2779: checking whether we are using the GNU C compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.
$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2799 rm -f conftest.
$ac_objext
2800 if { (eval echo "$as_me:2800: \"$ac_compile\"") >&5
2801 (eval $ac_compile) 2>&5
2803 echo "$as_me:2803: \$? = $ac_status" >&5
2804 (exit $ac_status); } &&
2805 { ac_try
='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:2806: \"$ac_try\"") >&5
2809 echo "$as_me:2809: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.
$ac_ext >&5
2817 rm -f conftest.
$ac_objext conftest.
$ac_ext
2818 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2821 echo "$as_me:2821: result: $ac_cv_c_compiler_gnu" >&5
2822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2823 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2824 ac_test_CFLAGS
=${CFLAGS+set}
2825 ac_save_CFLAGS
=$CFLAGS
2827 echo "$as_me:2827: checking whether $CC accepts -g" >&5
2828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2829 if test "${ac_cv_prog_cc_g+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 cat >conftest.
$ac_ext <<_ACEOF
2833 #line 2833 "configure"
2834 #include "confdefs.h"
2844 rm -f conftest.
$ac_objext
2845 if { (eval echo "$as_me:2845: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>&5
2848 echo "$as_me:2848: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try
='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:2851: \"$ac_try\"") >&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2858 echo "$as_me: failed program was:" >&5
2859 cat conftest.
$ac_ext >&5
2862 rm -f conftest.
$ac_objext conftest.
$ac_ext
2864 echo "$as_me:2864: result: $ac_cv_prog_cc_g" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2866 if test "$ac_test_CFLAGS" = set; then
2867 CFLAGS
=$ac_save_CFLAGS
2868 elif test $ac_cv_prog_cc_g = yes; then
2869 if test "$GCC" = yes; then
2875 if test "$GCC" = yes; then
2881 # Some people use a C++ compiler to compile C. Since we use `exit',
2882 # in C++ we need to declare it. In case someone uses the same compiler
2883 # for both compiling C and C++ we need to have the C++ compiler decide
2884 # the declaration of exit, since it's the most demanding environment.
2885 cat >conftest.
$ac_ext <<_ACEOF
2890 rm -f conftest.
$ac_objext
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try
='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2900 echo "$as_me:2900: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 for ac_declaration
in \
2904 '#include <stdlib.h>' \
2905 'extern "C" void std::exit (int) throw (); using std::exit;' \
2906 'extern "C" void std::exit (int); using std::exit;' \
2907 'extern "C" void exit (int) throw ();' \
2908 'extern "C" void exit (int);' \
2911 cat >conftest.
$ac_ext <<_ACEOF
2912 #line 2912 "configure"
2913 #include "confdefs.h"
2924 rm -f conftest.
$ac_objext
2925 if { (eval echo "$as_me:2925: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try
='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:2931: \"$ac_try\"") >&5
2934 echo "$as_me:2934: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2942 rm -f conftest.
$ac_objext conftest.
$ac_ext
2943 cat >conftest.
$ac_ext <<_ACEOF
2944 #line 2944 "configure"
2945 #include "confdefs.h"
2955 rm -f conftest.
$ac_objext
2956 if { (eval echo "$as_me:2956: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try
='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:2962: \"$ac_try\"") >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2969 echo "$as_me: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 rm -f conftest.
$ac_objext conftest.
$ac_ext
2975 if test -n "$ac_declaration"; then
2976 echo '#ifdef __cplusplus' >>confdefs.h
2977 echo $ac_declaration >>confdefs.h
2978 echo '#endif' >>confdefs.h
2982 echo "$as_me: failed program was:" >&5
2983 cat conftest.
$ac_ext >&5
2985 rm -f conftest.
$ac_objext conftest.
$ac_ext
2987 ac_cpp
='$CPP $CPPFLAGS'
2988 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2997 #### Some systems specify a CPP to use unless we are using GCC.
2998 #### Now that we know whether we are using GCC, we can decide whether
2999 #### to use that one.
3000 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3005 #### Some systems specify a CC to use unless we are using GCC.
3006 #### Now that we know whether we are using GCC, we can decide whether
3007 #### to use that one.
3008 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3009 test x
$cc_specified != xyes
3014 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3016 CC
="$CC $GCC_TEST_OPTIONS"
3019 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3021 CC
="$CC $NON_GCC_TEST_OPTIONS"
3024 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3026 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3029 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3031 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3034 #### Some other nice autoconf tests. If you add a test here which
3035 #### should make an entry in src/config.h, don't forget to add an
3036 #### #undef clause to src/config.h.in for autoconf to modify.
3038 echo "$as_me:3038: checking whether ln -s works" >&5
3039 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3041 if test "$LN_S" = "ln -s"; then
3042 echo "$as_me:3042: result: yes" >&5
3043 echo "${ECHO_T}yes" >&6
3045 echo "$as_me:3045: result: no, using $LN_S" >&5
3046 echo "${ECHO_T}no, using $LN_S" >&6
3050 ac_cpp
='$CPP $CPPFLAGS'
3051 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3054 echo "$as_me:3054: checking how to run the C preprocessor" >&5
3055 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3056 # On Suns, sometimes $CPP names a directory.
3057 if test -n "$CPP" && test -d "$CPP"; then
3060 if test -z "$CPP"; then
3061 if test "${ac_cv_prog_CPP+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 # Double quotes because CPP needs to be expanded
3065 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3068 for ac_c_preproc_warn_flag
in '' yes
3070 # Use a header file that comes with gcc, so configuring glibc
3071 # with a fresh cross-compiler works.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.
$ac_ext <<_ACEOF
3075 #line 3075 "configure"
3076 #include "confdefs.h"
3080 if { (eval echo "$as_me:3080: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3083 egrep -v '^ *\+' conftest.er1
>conftest.err
3085 cat conftest.err
>&5
3086 echo "$as_me:3086: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev
/null
; then
3088 if test -s conftest.err
; then
3089 ac_cpp_err
=$ac_c_preproc_warn_flag
3096 if test -z "$ac_cpp_err"; then
3099 echo "$as_me: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3101 # Broken: fails on valid input.
3104 rm -f conftest.err conftest.
$ac_ext
3106 # OK, works on sane cases. Now check whether non-existent headers
3107 # can be detected and how.
3108 cat >conftest.
$ac_ext <<_ACEOF
3109 #line 3109 "configure"
3110 #include "confdefs.h"
3111 #include <ac_nonexistent.h>
3113 if { (eval echo "$as_me:3113: \"$ac_cpp conftest.$ac_ext\"") >&5
3114 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3116 egrep -v '^ *\+' conftest.er1
>conftest.err
3118 cat conftest.err
>&5
3119 echo "$as_me:3119: \$? = $ac_status" >&5
3120 (exit $ac_status); } >/dev
/null
; then
3121 if test -s conftest.err
; then
3122 ac_cpp_err
=$ac_c_preproc_warn_flag
3129 if test -z "$ac_cpp_err"; then
3130 # Broken: success on invalid input.
3133 echo "$as_me: failed program was:" >&5
3134 cat conftest.
$ac_ext >&5
3135 # Passes both tests.
3139 rm -f conftest.err conftest.
$ac_ext
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.
$ac_ext
3144 if $ac_preproc_ok; then
3156 echo "$as_me:3156: result: $CPP" >&5
3157 echo "${ECHO_T}$CPP" >&6
3159 for ac_c_preproc_warn_flag
in '' yes
3161 # Use a header file that comes with gcc, so configuring glibc
3162 # with a fresh cross-compiler works.
3163 # On the NeXT, cc -E runs the code through the compiler's parser,
3164 # not just through cpp. "Syntax error" is here to catch this case.
3165 cat >conftest.
$ac_ext <<_ACEOF
3166 #line 3166 "configure"
3167 #include "confdefs.h"
3171 if { (eval echo "$as_me:3171: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3174 egrep -v '^ *\+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:3177: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev
/null
; then
3179 if test -s conftest.err
; then
3180 ac_cpp_err
=$ac_c_preproc_warn_flag
3187 if test -z "$ac_cpp_err"; then
3190 echo "$as_me: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3192 # Broken: fails on valid input.
3195 rm -f conftest.err conftest.
$ac_ext
3197 # OK, works on sane cases. Now check whether non-existent headers
3198 # can be detected and how.
3199 cat >conftest.
$ac_ext <<_ACEOF
3200 #line 3200 "configure"
3201 #include "confdefs.h"
3202 #include <ac_nonexistent.h>
3204 if { (eval echo "$as_me:3204: \"$ac_cpp conftest.$ac_ext\"") >&5
3205 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3207 egrep -v '^ *\+' conftest.er1
>conftest.err
3209 cat conftest.err
>&5
3210 echo "$as_me:3210: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev
/null
; then
3212 if test -s conftest.err
; then
3213 ac_cpp_err
=$ac_c_preproc_warn_flag
3220 if test -z "$ac_cpp_err"; then
3221 # Broken: success on invalid input.
3224 echo "$as_me: failed program was:" >&5
3225 cat conftest.
$ac_ext >&5
3226 # Passes both tests.
3230 rm -f conftest.err conftest.
$ac_ext
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.
$ac_ext
3235 if $ac_preproc_ok; then
3238 { { echo "$as_me:3238: error: C preprocessor \"$CPP\" fails sanity check" >&5
3239 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3240 { (exit 1); exit 1; }; }
3244 ac_cpp
='$CPP $CPPFLAGS'
3245 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # ./install, which can be erroneously created by make from ./install.sh.
3261 echo "$as_me:3261: checking for a BSD compatible install" >&5
3262 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3263 if test -z "$INSTALL"; then
3264 if test "${ac_cv_path_install+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3268 for ac_dir
in $PATH; do
3270 # Account for people who put trailing slashes in PATH elements.
3272 / | .
/ | .
// |
/cC
/* \
3273 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3276 # OSF1 and SCO ODT 3.0 have their own names for install.
3277 # Don't use installbsd from OSF since it installs stuff as root
3279 for ac_prog
in ginstall scoinst
install; do
3280 if $as_executable_p "$ac_dir/$ac_prog"; then
3281 if test $ac_prog = install &&
3282 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3285 elif test $ac_prog = install &&
3286 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3290 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3300 if test "${ac_cv_path_install+set}" = set; then
3301 INSTALL
=$ac_cv_path_install
3303 # As a last resort, use the slow shell script. We don't cache a
3304 # path for INSTALL within a source directory, because that will
3305 # break other packages using the cache if that directory is
3306 # removed, or if the path is relative.
3307 INSTALL
=$ac_install_sh
3310 echo "$as_me:3310: result: $INSTALL" >&5
3311 echo "${ECHO_T}$INSTALL" >&6
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3314 # It thinks the first close brace ends the variable substitution.
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3319 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3321 for ac_prog
in 'bison -y' byacc
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy
$ac_prog; ac_word
=$2
3325 echo "$as_me:3325: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327 if test "${ac_cv_prog_YACC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$YACC"; then
3331 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3333 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3335 for ac_dir
in $ac_dummy; do
3337 test -z "$ac_dir" && ac_dir
=.
3338 $as_executable_p "$ac_dir/$ac_word" ||
continue
3339 ac_cv_prog_YACC
="$ac_prog"
3340 echo "$as_me:3340: found $ac_dir/$ac_word" >&5
3346 YACC
=$ac_cv_prog_YACC
3347 if test -n "$YACC"; then
3348 echo "$as_me:3348: result: $YACC" >&5
3349 echo "${ECHO_T}$YACC" >&6
3351 echo "$as_me:3351: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3355 test -n "$YACC" && break
3357 test -n "$YACC" || YACC
="yacc"
3359 if test "x$RANLIB" = x
; then
3360 if test -n "$ac_tool_prefix"; then
3361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3363 echo "$as_me:3363: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_prog_RANLIB+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -n "$RANLIB"; then
3369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3371 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3373 for ac_dir
in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir
=.
3376 $as_executable_p "$ac_dir/$ac_word" ||
continue
3377 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3378 echo "$as_me:3378: found $ac_dir/$ac_word" >&5
3384 RANLIB
=$ac_cv_prog_RANLIB
3385 if test -n "$RANLIB"; then
3386 echo "$as_me:3386: result: $RANLIB" >&5
3387 echo "${ECHO_T}$RANLIB" >&6
3389 echo "$as_me:3389: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3394 if test -z "$ac_cv_prog_RANLIB"; then
3395 ac_ct_RANLIB
=$RANLIB
3396 # Extract the first word of "ranlib", so it can be a program name with args.
3397 set dummy ranlib
; ac_word
=$2
3398 echo "$as_me:3398: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 if test -n "$ac_ct_RANLIB"; then
3404 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3406 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3408 for ac_dir
in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir
=.
3411 $as_executable_p "$ac_dir/$ac_word" ||
continue
3412 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3413 echo "$as_me:3413: found $ac_dir/$ac_word" >&5
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3421 if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:3422: result: $ac_ct_RANLIB" >&5
3423 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 echo "$as_me:3425: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3429 RANLIB
=$ac_ct_RANLIB
3431 RANLIB
="$ac_cv_prog_RANLIB"
3436 echo "$as_me:3436: checking for AIX" >&5
3437 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3438 cat >conftest.
$ac_ext <<_ACEOF
3439 #line 3439 "configure"
3440 #include "confdefs.h"
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "yes" >/dev
/null
2>&1; then
3448 echo "$as_me:3448: result: yes" >&5
3449 echo "${ECHO_T}yes" >&6
3450 cat >>confdefs.h
<<\EOF
3451 #define _ALL_SOURCE 1
3455 echo "$as_me:3455: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3460 #### Extract some information from the operating system and machine files.
3462 { echo "$as_me:3462: checking the machine- and system-dependent files to find out
3463 - which libraries the lib-src programs will want, and
3464 - whether the GNU malloc routines are usable..." >&5
3465 echo "$as_me: checking the machine- and system-dependent files to find out
3466 - which libraries the lib-src programs will want, and
3467 - whether the GNU malloc routines are usable..." >&6;}
3469 ### First figure out CFLAGS (which we use for running the compiler here)
3470 ### and REAL_CFLAGS (which we use for real compilation).
3471 ### The two are the same except on a few systems, where they are made
3472 ### different to work around various lossages. For example,
3473 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3474 ### as implying static linking.
3476 ### If the CFLAGS env var is specified, we use that value
3477 ### instead of the default.
3479 ### It's not important that this name contain the PID; you can't run
3480 ### two configures in the same directory and have anything work
3482 tempcname
="conftest.c"
3485 #include "'${srcdir}'/src/'${opsysfile}'"
3486 #include "'${srcdir}'/src/'${machfile}'"
3487 #ifndef LIBS_MACHINE
3488 #define LIBS_MACHINE
3493 #ifndef C_SWITCH_SYSTEM
3494 #define C_SWITCH_SYSTEM
3496 #ifndef C_SWITCH_MACHINE
3497 #define C_SWITCH_MACHINE
3499 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3500 configure___ c_switch_system=C_SWITCH_SYSTEM
3501 configure___ c_switch_machine=C_SWITCH_MACHINE
3504 #define LIB_X11_LIB -lX11
3507 #ifndef LIBX11_MACHINE
3508 #define LIBX11_MACHINE
3511 #ifndef LIBX11_SYSTEM
3512 #define LIBX11_SYSTEM
3514 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3517 configure___ unexec=UNEXEC
3519 configure___ unexec=unexec.o
3522 #ifdef SYSTEM_MALLOC
3523 configure___ system_malloc=yes
3525 configure___ system_malloc=no
3528 #ifdef USE_MMAP_FOR_BUFFERS
3529 configure___ use_mmap_for_buffers=yes
3531 configure___ use_mmap_for_buffers=no
3534 #ifndef C_DEBUG_SWITCH
3535 #define C_DEBUG_SWITCH -g
3538 #ifndef C_OPTIMIZE_SWITCH
3540 #define C_OPTIMIZE_SWITCH -O2
3542 #define C_OPTIMIZE_SWITCH -O
3546 #ifndef LD_SWITCH_MACHINE
3547 #define LD_SWITCH_MACHINE
3550 #ifndef LD_SWITCH_SYSTEM
3551 #define LD_SWITCH_SYSTEM
3554 #ifndef LD_SWITCH_X_SITE_AUX
3555 #define LD_SWITCH_X_SITE_AUX
3558 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3559 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3561 #ifdef THIS_IS_CONFIGURE
3563 /* Get the CFLAGS for tests in configure. */
3565 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3567 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3570 #else /* not THIS_IS_CONFIGURE */
3572 /* Get the CFLAGS for real compilation. */
3574 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3576 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3579 #endif /* not THIS_IS_CONFIGURE */
3582 # The value of CPP is a quoted variable reference, so we need to do this
3583 # to get its actual value...
3584 CPP
=`eval "echo $CPP"`
3585 eval `${CPP} -Isrc ${tempcname} \
3586 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3587 if test "x$SPECIFIED_CFLAGS" = x
; then
3588 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3589 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3591 REAL_CFLAGS
="$CFLAGS"
3595 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3597 ### Make sure subsequent tests use flags consistent with the build flags.
3599 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3600 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3602 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3605 # Check whether --enable-largefile or --disable-largefile was given.
3606 if test "${enable_largefile+set}" = set; then
3607 enableval
="$enable_largefile"
3610 if test "$enable_largefile" != no
; then
3612 echo "$as_me:3612: checking for special C compiler options needed for large files" >&5
3613 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3614 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 ac_cv_sys_largefile_CC
=no
3618 if test "$GCC" != yes; then
3621 # IRIX 6.2 and later do not support large files by default,
3622 # so use the C compiler's -n32 option if that helps.
3623 cat >conftest.
$ac_ext <<_ACEOF
3624 #line 3624 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3627 /* Check that off_t can represent 2**63 - 1 correctly.
3628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3629 since some C++ compilers masquerading as C compilers
3630 incorrectly reject 9223372036854775807. */
3631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3633 && LARGE_OFF_T % 2147483647 == 1)
3643 rm -f conftest.
$ac_objext
3644 if { (eval echo "$as_me:3644: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>&5
3647 echo "$as_me:3647: \$? = $ac_status" >&5
3648 (exit $ac_status); } &&
3649 { ac_try
='test -s conftest.$ac_objext'
3650 { (eval echo "$as_me:3650: \"$ac_try\"") >&5
3653 echo "$as_me:3653: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3657 echo "$as_me: failed program was:" >&5
3658 cat conftest.
$ac_ext >&5
3660 rm -f conftest.
$ac_objext
3662 rm -f conftest.
$ac_objext
3663 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>&5
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try
='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3672 echo "$as_me:3672: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_sys_largefile_CC
=' -n32'; break
3676 echo "$as_me: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 rm -f conftest.
$ac_objext
3683 rm -f conftest.
$ac_ext
3686 echo "$as_me:3686: result: $ac_cv_sys_largefile_CC" >&5
3687 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3688 if test "$ac_cv_sys_largefile_CC" != no
; then
3689 CC
=$CC$ac_cv_sys_largefile_CC
3692 echo "$as_me:3692: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3693 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3694 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_sys_file_offset_bits
=no
3699 cat >conftest.
$ac_ext <<_ACEOF
3700 #line 3700 "configure"
3701 #include "confdefs.h"
3702 #include <sys/types.h>
3703 /* Check that off_t can represent 2**63 - 1 correctly.
3704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3705 since some C++ compilers masquerading as C compilers
3706 incorrectly reject 9223372036854775807. */
3707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3709 && LARGE_OFF_T % 2147483647 == 1)
3719 rm -f conftest.
$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try
='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3736 rm -f conftest.
$ac_objext conftest.
$ac_ext
3737 cat >conftest.
$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3740 #define _FILE_OFFSET_BITS 64
3741 #include <sys/types.h>
3742 /* Check that off_t can represent 2**63 - 1 correctly.
3743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3744 since some C++ compilers masquerading as C compilers
3745 incorrectly reject 9223372036854775807. */
3746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3748 && LARGE_OFF_T % 2147483647 == 1)
3758 rm -f conftest.
$ac_objext
3759 if { (eval echo "$as_me:3759: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>&5
3762 echo "$as_me:3762: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try
='test -s conftest.$ac_objext'
3765 { (eval echo "$as_me:3765: \"$ac_try\"") >&5
3768 echo "$as_me:3768: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3770 ac_cv_sys_file_offset_bits
=64; break
3772 echo "$as_me: failed program was:" >&5
3773 cat conftest.
$ac_ext >&5
3775 rm -f conftest.
$ac_objext conftest.
$ac_ext
3779 echo "$as_me:3779: result: $ac_cv_sys_file_offset_bits" >&5
3780 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3781 if test "$ac_cv_sys_file_offset_bits" != no
; then
3783 cat >>confdefs.h
<<EOF
3784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3789 echo "$as_me:3789: checking for _LARGE_FILES value needed for large files" >&5
3790 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3791 if test "${ac_cv_sys_large_files+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 ac_cv_sys_large_files
=no
3796 cat >conftest.
$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3799 #include <sys/types.h>
3800 /* Check that off_t can represent 2**63 - 1 correctly.
3801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802 since some C++ compilers masquerading as C compilers
3803 incorrectly reject 9223372036854775807. */
3804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806 && LARGE_OFF_T % 2147483647 == 1)
3816 rm -f conftest.
$ac_objext
3817 if { (eval echo "$as_me:3817: \"$ac_compile\"") >&5
3818 (eval $ac_compile) 2>&5
3820 echo "$as_me:3820: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try
='test -s conftest.$ac_objext'
3823 { (eval echo "$as_me:3823: \"$ac_try\"") >&5
3826 echo "$as_me:3826: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 rm -f conftest.
$ac_objext conftest.
$ac_ext
3834 cat >conftest.
$ac_ext <<_ACEOF
3835 #line 3835 "configure"
3836 #include "confdefs.h"
3837 #define _LARGE_FILES 1
3838 #include <sys/types.h>
3839 /* Check that off_t can represent 2**63 - 1 correctly.
3840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3841 since some C++ compilers masquerading as C compilers
3842 incorrectly reject 9223372036854775807. */
3843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3845 && LARGE_OFF_T % 2147483647 == 1)
3855 rm -f conftest.
$ac_objext
3856 if { (eval echo "$as_me:3856: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try
='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:3862: \"$ac_try\"") >&5
3865 echo "$as_me:3865: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_sys_large_files
=1; break
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 rm -f conftest.
$ac_objext conftest.
$ac_ext
3876 echo "$as_me:3876: result: $ac_cv_sys_large_files" >&5
3877 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3878 if test "$ac_cv_sys_large_files" != no
; then
3880 cat >>confdefs.h
<<EOF
3881 #define _LARGE_FILES $ac_cv_sys_large_files
3888 if test "${with_sound}" != "no"; then
3889 # Sound support for GNU/Linux and the free BSDs.
3891 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3893 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3894 echo "$as_me:3894: checking for $ac_header" >&5
3895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 cat >conftest.
$ac_ext <<_ACEOF
3900 #line 3900 "configure"
3901 #include "confdefs.h"
3902 #include <$ac_header>
3904 if { (eval echo "$as_me:3904: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3907 egrep -v '^ *\+' conftest.er1
>conftest.err
3909 cat conftest.err
>&5
3910 echo "$as_me:3910: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev
/null
; then
3912 if test -s conftest.err
; then
3913 ac_cpp_err
=$ac_c_preproc_warn_flag
3920 if test -z "$ac_cpp_err"; then
3921 eval "$as_ac_Header=yes"
3923 echo "$as_me: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3925 eval "$as_ac_Header=no"
3927 rm -f conftest.err conftest.
$ac_ext
3929 echo "$as_me:3929: result: `eval echo '${'$as_ac_Header'}'`" >&5
3930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3932 cat >>confdefs.h
<<EOF
3933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3939 # Emulation library used on NetBSD.
3940 echo "$as_me:3940: checking for _oss_ioctl in -lossaudio" >&5
3941 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3942 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_check_lib_save_LIBS
=$LIBS
3946 LIBS
="-lossaudio $LIBS"
3947 cat >conftest.
$ac_ext <<_ACEOF
3948 #line 3948 "configure"
3949 #include "confdefs.h"
3951 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3966 rm -f conftest.
$ac_objext conftest
$ac_exeext
3967 if { (eval echo "$as_me:3967: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3970 echo "$as_me:3970: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try
='test -s conftest$ac_exeext'
3973 { (eval echo "$as_me:3973: \"$ac_try\"") >&5
3976 echo "$as_me:3976: \$? = $ac_status" >&5
3977 (exit $ac_status); }; }; then
3978 ac_cv_lib_ossaudio__oss_ioctl
=yes
3980 echo "$as_me: failed program was:" >&5
3981 cat conftest.
$ac_ext >&5
3982 ac_cv_lib_ossaudio__oss_ioctl
=no
3984 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3985 LIBS
=$ac_check_lib_save_LIBS
3987 echo "$as_me:3987: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3988 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3989 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3997 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3998 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3999 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 echo "$as_me:4002: checking for $ac_header" >&5
4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.
$ac_ext <<_ACEOF
4008 #line 4008 "configure"
4009 #include "confdefs.h"
4010 #include <$ac_header>
4012 if { (eval echo "$as_me:4012: \"$ac_cpp conftest.$ac_ext\"") >&5
4013 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4015 egrep -v '^ *\+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:4018: \$? = $ac_status" >&5
4019 (exit $ac_status); } >/dev
/null
; then
4020 if test -s conftest.err
; then
4021 ac_cpp_err
=$ac_c_preproc_warn_flag
4028 if test -z "$ac_cpp_err"; then
4029 eval "$as_ac_Header=yes"
4031 echo "$as_me: failed program was:" >&5
4032 cat conftest.
$ac_ext >&5
4033 eval "$as_ac_Header=no"
4035 rm -f conftest.err conftest.
$ac_ext
4037 echo "$as_me:4037: result: `eval echo '${'$as_ac_Header'}'`" >&5
4038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4040 cat >>confdefs.h
<<EOF
4041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4047 echo "$as_me:4047: checking for ANSI C header files" >&5
4048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4049 if test "${ac_cv_header_stdc+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 cat >conftest.
$ac_ext <<_ACEOF
4053 #line 4053 "configure"
4054 #include "confdefs.h"
4061 if { (eval echo "$as_me:4061: \"$ac_cpp conftest.$ac_ext\"") >&5
4062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4064 egrep -v '^ *\+' conftest.er1
>conftest.err
4066 cat conftest.err
>&5
4067 echo "$as_me:4067: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev
/null
; then
4069 if test -s conftest.err
; then
4070 ac_cpp_err
=$ac_c_preproc_warn_flag
4077 if test -z "$ac_cpp_err"; then
4078 ac_cv_header_stdc
=yes
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.
$ac_ext >&5
4082 ac_cv_header_stdc
=no
4084 rm -f conftest.err conftest.
$ac_ext
4086 if test $ac_cv_header_stdc = yes; then
4087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4088 cat >conftest.
$ac_ext <<_ACEOF
4089 #line 4089 "configure"
4090 #include "confdefs.h"
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 egrep "memchr" >/dev
/null
2>&1; then
4098 ac_cv_header_stdc
=no
4104 if test $ac_cv_header_stdc = yes; then
4105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4106 cat >conftest.
$ac_ext <<_ACEOF
4107 #line 4107 "configure"
4108 #include "confdefs.h"
4112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113 egrep "free" >/dev
/null
2>&1; then
4116 ac_cv_header_stdc
=no
4122 if test $ac_cv_header_stdc = yes; then
4123 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4124 if test "$cross_compiling" = yes; then
4127 cat >conftest.
$ac_ext <<_ACEOF
4128 #line 4128 "configure"
4129 #include "confdefs.h"
4131 #if ((' ' & 0x0FF) == 0x020)
4132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4135 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4136 || ('j' <= (c) && (c) <= 'r') \
4137 || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4146 for (i = 0; i < 256; i++)
4147 if (XOR (islower (i), ISLOWER (i))
4148 || toupper (i) != TOUPPER (i))
4153 rm -f conftest
$ac_exeext
4154 if { (eval echo "$as_me:4154: \"$ac_link\"") >&5
4155 (eval $ac_link) 2>&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5
4162 echo "$as_me:4162: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4169 ac_cv_header_stdc
=no
4171 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4175 echo "$as_me:4175: result: $ac_cv_header_stdc" >&5
4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4177 if test $ac_cv_header_stdc = yes; then
4179 cat >>confdefs.h
<<\EOF
4180 #define STDC_HEADERS 1
4185 echo "$as_me:4185: checking whether time.h and sys/time.h may both be included" >&5
4186 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4187 if test "${ac_cv_header_time+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 cat >conftest.
$ac_ext <<_ACEOF
4191 #line 4191 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4194 #include <sys/time.h>
4200 if ((struct tm *) 0)
4206 rm -f conftest.
$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try
='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_header_time
=yes
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4222 ac_cv_header_time
=no
4224 rm -f conftest.
$ac_objext conftest.
$ac_ext
4226 echo "$as_me:4226: result: $ac_cv_header_time" >&5
4227 echo "${ECHO_T}$ac_cv_header_time" >&6
4228 if test $ac_cv_header_time = yes; then
4230 cat >>confdefs.h
<<\EOF
4231 #define TIME_WITH_SYS_TIME 1
4236 echo "$as_me:4236: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4237 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4238 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 cat >conftest.
$ac_ext <<_ACEOF
4242 #line 4242 "configure"
4243 #include "confdefs.h"
4244 #include <sys/types.h>
4246 /* NetBSD declares sys_siglist in unistd.h. */
4248 # include <unistd.h>
4254 char *msg = *(sys_siglist + 1);
4259 rm -f conftest.
$ac_objext
4260 if { (eval echo "$as_me:4260: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4263 echo "$as_me:4263: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try
='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:4266: \"$ac_try\"") >&5
4269 echo "$as_me:4269: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_decl_sys_siglist
=yes
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.
$ac_ext >&5
4275 ac_cv_decl_sys_siglist
=no
4277 rm -f conftest.
$ac_objext conftest.
$ac_ext
4279 echo "$as_me:4279: result: $ac_cv_decl_sys_siglist" >&5
4280 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4281 if test $ac_cv_decl_sys_siglist = yes; then
4283 cat >>confdefs.h
<<\EOF
4284 #define SYS_SIGLIST_DECLARED 1
4289 echo "$as_me:4289: checking for sys/wait.h that is POSIX.1 compatible" >&5
4290 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4291 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 cat >conftest.
$ac_ext <<_ACEOF
4295 #line 4295 "configure"
4296 #include "confdefs.h"
4297 #include <sys/types.h>
4298 #include <sys/wait.h>
4300 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4303 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4311 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4316 rm -f conftest.
$ac_objext
4317 if { (eval echo "$as_me:4317: \"$ac_compile\"") >&5
4318 (eval $ac_compile) 2>&5
4320 echo "$as_me:4320: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try
='test -s conftest.$ac_objext'
4323 { (eval echo "$as_me:4323: \"$ac_try\"") >&5
4326 echo "$as_me:4326: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_header_sys_wait_h
=yes
4330 echo "$as_me: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4332 ac_cv_header_sys_wait_h
=no
4334 rm -f conftest.
$ac_objext conftest.
$ac_ext
4336 echo "$as_me:4336: result: $ac_cv_header_sys_wait_h" >&5
4337 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4338 if test $ac_cv_header_sys_wait_h = yes; then
4340 cat >>confdefs.h
<<\EOF
4341 #define HAVE_SYS_WAIT_H 1
4346 echo "$as_me:4346: checking for struct utimbuf" >&5
4347 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4348 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 cat >conftest.
$ac_ext <<_ACEOF
4352 #line 4352 "configure"
4353 #include "confdefs.h"
4354 #ifdef TIME_WITH_SYS_TIME
4355 #include <sys/time.h>
4358 #ifdef HAVE_SYS_TIME_H
4359 #include <sys/time.h>
4370 static struct utimbuf x; x.actime = x.modtime;
4375 rm -f conftest.
$ac_objext
4376 if { (eval echo "$as_me:4376: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4379 echo "$as_me:4379: \$? = $ac_status" >&5
4380 (exit $ac_status); } &&
4381 { ac_try
='test -s conftest.$ac_objext'
4382 { (eval echo "$as_me:4382: \"$ac_try\"") >&5
4385 echo "$as_me:4385: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4387 emacs_cv_struct_utimbuf
=yes
4389 echo "$as_me: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4391 emacs_cv_struct_utimbuf
=no
4393 rm -f conftest.
$ac_objext conftest.
$ac_ext
4395 echo "$as_me:4395: result: $emacs_cv_struct_utimbuf" >&5
4396 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4397 if test $emacs_cv_struct_utimbuf = yes; then
4399 cat >>confdefs.h
<<\EOF
4400 #define HAVE_STRUCT_UTIMBUF 1
4405 echo "$as_me:4405: checking return type of signal handlers" >&5
4406 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4407 if test "${ac_cv_type_signal+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.
$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4413 #include <sys/types.h>
4419 extern "C" void (*signal (int, void (*)(int)))(int);
4421 void (*signal ()) ();
4432 rm -f conftest.
$ac_objext
4433 if { (eval echo "$as_me:4433: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>&5
4436 echo "$as_me:4436: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try
='test -s conftest.$ac_objext'
4439 { (eval echo "$as_me:4439: \"$ac_try\"") >&5
4442 echo "$as_me:4442: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 ac_cv_type_signal
=void
4446 echo "$as_me: failed program was:" >&5
4447 cat conftest.
$ac_ext >&5
4448 ac_cv_type_signal
=int
4450 rm -f conftest.
$ac_objext conftest.
$ac_ext
4452 echo "$as_me:4452: result: $ac_cv_type_signal" >&5
4453 echo "${ECHO_T}$ac_cv_type_signal" >&6
4455 cat >>confdefs.h
<<EOF
4456 #define RETSIGTYPE $ac_cv_type_signal
4459 echo "$as_me:4459: checking for speed_t" >&5
4460 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4461 if test "${emacs_cv_speed_t+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 cat >conftest.
$ac_ext <<_ACEOF
4465 #line 4465 "configure"
4466 #include "confdefs.h"
4467 #include <termios.h>
4476 rm -f conftest.
$ac_objext
4477 if { (eval echo "$as_me:4477: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>&5
4480 echo "$as_me:4480: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try
='test -s conftest.$ac_objext'
4483 { (eval echo "$as_me:4483: \"$ac_try\"") >&5
4486 echo "$as_me:4486: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 emacs_cv_speed_t
=yes
4490 echo "$as_me: failed program was:" >&5
4491 cat conftest.
$ac_ext >&5
4494 rm -f conftest.
$ac_objext conftest.
$ac_ext
4496 echo "$as_me:4496: result: $emacs_cv_speed_t" >&5
4497 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4498 if test $emacs_cv_speed_t = yes; then
4500 cat >>confdefs.h
<<\EOF
4501 #define HAVE_SPEED_T 1
4506 echo "$as_me:4506: checking for struct timeval" >&5
4507 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4508 if test "${emacs_cv_struct_timeval+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 cat >conftest.
$ac_ext <<_ACEOF
4512 #line 4512 "configure"
4513 #include "confdefs.h"
4514 #ifdef TIME_WITH_SYS_TIME
4515 #include <sys/time.h>
4518 #ifdef HAVE_SYS_TIME_H
4519 #include <sys/time.h>
4527 static struct timeval x; x.tv_sec = x.tv_usec;
4532 rm -f conftest.
$ac_objext
4533 if { (eval echo "$as_me:4533: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>&5
4536 echo "$as_me:4536: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:4539: \"$ac_try\"") >&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 emacs_cv_struct_timeval
=yes
4546 echo "$as_me: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4548 emacs_cv_struct_timeval
=no
4550 rm -f conftest.
$ac_objext conftest.
$ac_ext
4552 echo "$as_me:4552: result: $emacs_cv_struct_timeval" >&5
4553 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4554 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4555 if test $emacs_cv_struct_timeval = yes; then
4557 cat >>confdefs.h
<<\EOF
4558 #define HAVE_TIMEVAL 1
4563 echo "$as_me:4563: checking for struct exception" >&5
4564 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4565 if test "${emacs_cv_struct_exception+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 cat >conftest.
$ac_ext <<_ACEOF
4569 #line 4569 "configure"
4570 #include "confdefs.h"
4575 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4580 rm -f conftest.
$ac_objext
4581 if { (eval echo "$as_me:4581: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
4584 echo "$as_me:4584: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try
='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:4587: \"$ac_try\"") >&5
4590 echo "$as_me:4590: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592 emacs_cv_struct_exception
=yes
4594 echo "$as_me: failed program was:" >&5
4595 cat conftest.
$ac_ext >&5
4596 emacs_cv_struct_exception
=no
4598 rm -f conftest.
$ac_objext conftest.
$ac_ext
4600 echo "$as_me:4600: result: $emacs_cv_struct_exception" >&5
4601 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4602 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4603 if test $emacs_cv_struct_exception != yes; then
4605 cat >>confdefs.h
<<\EOF
4606 #define NO_MATHERR 1
4611 echo "$as_me:4611: checking whether struct tm is in sys/time.h or time.h" >&5
4612 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4613 if test "${ac_cv_struct_tm+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.
$ac_ext <<_ACEOF
4617 #line 4617 "configure"
4618 #include "confdefs.h"
4619 #include <sys/types.h>
4625 struct tm *tp; tp->tm_sec;
4630 rm -f conftest.
$ac_objext
4631 if { (eval echo "$as_me:4631: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try
='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:4637: \"$ac_try\"") >&5
4640 echo "$as_me:4640: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_struct_tm
=time.h
4644 echo "$as_me: failed program was:" >&5
4645 cat conftest.
$ac_ext >&5
4646 ac_cv_struct_tm
=sys
/time.h
4648 rm -f conftest.
$ac_objext conftest.
$ac_ext
4650 echo "$as_me:4650: result: $ac_cv_struct_tm" >&5
4651 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4652 if test $ac_cv_struct_tm = sys
/time.h
; then
4654 cat >>confdefs.h
<<\EOF
4655 #define TM_IN_SYS_TIME 1
4660 echo "$as_me:4660: checking for struct tm.tm_zone" >&5
4661 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4662 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 cat >conftest.
$ac_ext <<_ACEOF
4666 #line 4666 "configure"
4667 #include "confdefs.h"
4668 #include <sys/types.h>
4669 #include <$ac_cv_struct_tm>
4674 static struct tm ac_aggr;
4675 if (ac_aggr.tm_zone)
4681 rm -f conftest.
$ac_objext
4682 if { (eval echo "$as_me:4682: \"$ac_compile\"") >&5
4683 (eval $ac_compile) 2>&5
4685 echo "$as_me:4685: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try
='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:4688: \"$ac_try\"") >&5
4691 echo "$as_me:4691: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_cv_member_struct_tm_tm_zone
=yes
4695 echo "$as_me: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4697 ac_cv_member_struct_tm_tm_zone
=no
4699 rm -f conftest.
$ac_objext conftest.
$ac_ext
4701 echo "$as_me:4701: result: $ac_cv_member_struct_tm_tm_zone" >&5
4702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4703 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4705 cat >>confdefs.h
<<EOF
4706 #define HAVE_STRUCT_TM_TM_ZONE 1
4711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4713 cat >>confdefs.h
<<\EOF
4714 #define HAVE_TM_ZONE 1
4718 echo "$as_me:4718: checking for tzname" >&5
4719 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4720 if test "${ac_cv_var_tzname+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.
$ac_ext <<_ACEOF
4724 #line 4724 "configure"
4725 #include "confdefs.h"
4727 #ifndef tzname /* For SGI. */
4728 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4739 rm -f conftest.
$ac_objext conftest
$ac_exeext
4740 if { (eval echo "$as_me:4740: \"$ac_link\"") >&5
4741 (eval $ac_link) 2>&5
4743 echo "$as_me:4743: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try
='test -s conftest$ac_exeext'
4746 { (eval echo "$as_me:4746: \"$ac_try\"") >&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_var_tzname
=yes
4753 echo "$as_me: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4759 echo "$as_me:4759: result: $ac_cv_var_tzname" >&5
4760 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4761 if test $ac_cv_var_tzname = yes; then
4763 cat >>confdefs.h
<<\EOF
4764 #define HAVE_TZNAME 1
4770 echo "$as_me:4770: checking for struct tm.tm_gmtoff" >&5
4771 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4772 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 cat >conftest.
$ac_ext <<_ACEOF
4776 #line 4776 "configure"
4777 #include "confdefs.h"
4783 static struct tm ac_aggr;
4784 if (ac_aggr.tm_gmtoff)
4790 rm -f conftest.
$ac_objext
4791 if { (eval echo "$as_me:4791: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>&5
4794 echo "$as_me:4794: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try
='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:4797: \"$ac_try\"") >&5
4800 echo "$as_me:4800: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_cv_member_struct_tm_tm_gmtoff
=yes
4804 echo "$as_me: failed program was:" >&5
4805 cat conftest.
$ac_ext >&5
4806 ac_cv_member_struct_tm_tm_gmtoff
=no
4808 rm -f conftest.
$ac_objext conftest.
$ac_ext
4810 echo "$as_me:4810: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4811 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4812 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4814 cat >>confdefs.h
<<\EOF
4815 #define HAVE_TM_GMTOFF 1
4820 echo "$as_me:4820: checking for $CC option to accept ANSI C" >&5
4821 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4822 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_prog_cc_stdc
=no
4827 cat >conftest.
$ac_ext <<_ACEOF
4828 #line 4828 "configure"
4829 #include "confdefs.h"
4832 #include <sys/types.h>
4833 #include <sys/stat.h>
4834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4835 struct buf { int x; };
4836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4837 static char *e (p, i)
4843 static char *f (char * (*g) (char **, int), char **p, ...)
4848 s = g (p, va_arg (v,int));
4852 int test (int i, double x);
4853 struct s1 {int (*f) (int a);};
4854 struct s2 {int (*f) (double a);};
4855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4866 # Don't try gcc -ansi; that turns off useful extensions and
4867 # breaks some systems' header files.
4868 # AIX -qlanglvl=ansi
4869 # Ultrix and OSF/1 -std1
4870 # HP-UX 10.20 and later -Ae
4871 # HP-UX older versions -Aa -D_HPUX_SOURCE
4872 # SVR4 -Xc -D__EXTENSIONS__
4873 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 CC
="$ac_save_CC $ac_arg"
4876 rm -f conftest.
$ac_objext
4877 if { (eval echo "$as_me:4877: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>&5
4880 echo "$as_me:4880: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try
='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:4883: \"$ac_try\"") >&5
4886 echo "$as_me:4886: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_cv_prog_cc_stdc
=$ac_arg
4891 echo "$as_me: failed program was:" >&5
4892 cat conftest.
$ac_ext >&5
4894 rm -f conftest.
$ac_objext
4896 rm -f conftest.
$ac_ext conftest.
$ac_objext
4901 case "x$ac_cv_prog_cc_stdc" in
4903 echo "$as_me:4903: result: none needed" >&5
4904 echo "${ECHO_T}none needed" >&6 ;;
4906 echo "$as_me:4906: result: $ac_cv_prog_cc_stdc" >&5
4907 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4908 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4911 echo "$as_me:4911: checking for function prototypes" >&5
4912 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4913 if test "$ac_cv_prog_cc_stdc" != no
; then
4914 echo "$as_me:4914: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6
4917 cat >>confdefs.h
<<\EOF
4918 #define PROTOTYPES 1
4922 echo "$as_me:4922: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4926 echo "$as_me:4926: checking for working volatile" >&5
4927 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4928 if test "${ac_cv_c_volatile+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 cat >conftest.
$ac_ext <<_ACEOF
4932 #line 4932 "configure"
4933 #include "confdefs.h"
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:4946: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4949 echo "$as_me:4949: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:4952: \"$ac_try\"") >&5
4955 echo "$as_me:4955: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_c_volatile
=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.
$ac_ext >&5
4963 rm -f conftest.
$ac_objext conftest.
$ac_ext
4965 echo "$as_me:4965: result: $ac_cv_c_volatile" >&5
4966 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4967 if test $ac_cv_c_volatile = no
; then
4969 cat >>confdefs.h
<<\EOF
4975 echo "$as_me:4975: checking for an ANSI C-conforming const" >&5
4976 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4977 if test "${ac_cv_c_const+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 cat >conftest.
$ac_ext <<_ACEOF
4981 #line 4981 "configure"
4982 #include "confdefs.h"
4987 /* FIXME: Include the comments suggested by Paul. */
4989 /* Ultrix mips cc rejects this. */
4990 typedef int charset[2];
4992 /* SunOS 4.1.1 cc rejects this. */
4993 char const *const *ccp;
4995 /* NEC SVR4.0.2 mips cc rejects this. */
4996 struct point {int x, y;};
4997 static struct point const zero = {0,0};
4998 /* AIX XL C 1.02.0.0 rejects this.
4999 It does not let you subtract one const X* pointer from another in
5000 an arm of an if-expression whose if-part is not a constant
5002 const char *g = "string";
5003 ccp = &g + (g ? g-g : 0);
5004 /* HPUX 7.0 cc rejects these. */
5007 ccp = (char const *const *) p;
5008 { /* SCO 3.2v4 cc rejects this. */
5010 char const *s = 0 ? (char *) 0 : (char const *) 0;
5014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5016 const int *foo = &x[0];
5019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5020 typedef const int *iptr;
5024 { /* AIX XL C 1.02.0.0 rejects this saying
5025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5026 struct s { int j; const int *ap[3]; };
5027 struct s *b; b->j = 5;
5029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5038 rm -f conftest.
$ac_objext
5039 if { (eval echo "$as_me:5039: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:5042: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try
='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:5045: \"$ac_try\"") >&5
5048 echo "$as_me:5048: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5052 echo "$as_me: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5056 rm -f conftest.
$ac_objext conftest.
$ac_ext
5058 echo "$as_me:5058: result: $ac_cv_c_const" >&5
5059 echo "${ECHO_T}$ac_cv_c_const" >&6
5060 if test $ac_cv_c_const = no
; then
5062 cat >>confdefs.h
<<\EOF
5068 echo "$as_me:5068: checking for void * support" >&5
5069 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5070 if test "${emacs_cv_void_star+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 cat >conftest.
$ac_ext <<_ACEOF
5074 #line 5074 "configure"
5075 #include "confdefs.h"
5085 rm -f conftest.
$ac_objext
5086 if { (eval echo "$as_me:5086: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>&5
5089 echo "$as_me:5089: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try
='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:5092: \"$ac_try\"") >&5
5095 echo "$as_me:5095: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 emacs_cv_void_star
=yes
5099 echo "$as_me: failed program was:" >&5
5100 cat conftest.
$ac_ext >&5
5101 emacs_cv_void_star
=no
5103 rm -f conftest.
$ac_objext conftest.
$ac_ext
5105 echo "$as_me:5105: result: $emacs_cv_void_star" >&5
5106 echo "${ECHO_T}$emacs_cv_void_star" >&6
5107 if test $emacs_cv_void_star = yes; then
5108 cat >>confdefs.h
<<\EOF
5109 #define POINTER_TYPE void
5113 cat >>confdefs.h
<<\EOF
5114 #define POINTER_TYPE char
5119 echo "$as_me:5119: checking whether ${MAKE-make} sets \${MAKE}" >&5
5120 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5121 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5122 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 cat >conftest.
make <<\EOF
5127 @
echo 'ac_maketemp="${MAKE}"'
5129 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5130 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5131 if test -n "$ac_maketemp"; then
5132 eval ac_cv_prog_make_
${ac_make}_set
=yes
5134 eval ac_cv_prog_make_
${ac_make}_set
=no
5138 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5139 echo "$as_me:5139: result: yes" >&5
5140 echo "${ECHO_T}yes" >&6
5143 echo "$as_me:5143: result: no" >&5
5144 echo "${ECHO_T}no" >&6
5145 SET_MAKE
="MAKE=${MAKE-make}"
5148 echo "$as_me:5148: checking for long file names" >&5
5149 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5150 if test "${ac_cv_sys_long_file_names+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_cv_sys_long_file_names
=yes
5154 # Test for long file names in all the places we know might matter:
5155 # . the current directory, where building will happen
5156 # $prefix/lib where we will be installing things
5157 # $exec_prefix/lib likewise
5158 # eval it to expand exec_prefix.
5159 # $TMPDIR if set, where it might want to write temporary files
5160 # if $TMPDIR is not set:
5161 # /tmp where it might want to write temporary files
5164 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5167 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5169 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5170 test -d $ac_dir ||
continue
5171 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5172 ac_xdir
=$ac_dir/cf$$
5173 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5174 ac_tf1
=$ac_xdir/conftest9012345
5175 ac_tf2
=$ac_xdir/conftest9012346
5176 (echo 1 >$ac_tf1) 2>/dev
/null
5177 (echo 2 >$ac_tf2) 2>/dev
/null
5178 ac_val
=`cat $ac_tf1 2>/dev/null`
5179 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5180 ac_cv_sys_long_file_names
=no
5181 rm -rf $ac_xdir 2>/dev
/null
5184 rm -rf $ac_xdir 2>/dev
/null
5187 echo "$as_me:5187: result: $ac_cv_sys_long_file_names" >&5
5188 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5189 if test $ac_cv_sys_long_file_names = yes; then
5191 cat >>confdefs.h
<<\EOF
5192 #define HAVE_LONG_FILE_NAMES 1
5197 #### Choose a window system.
5199 echo "$as_me:5199: checking for X" >&5
5200 echo $ECHO_N "checking for X... $ECHO_C" >&6
5202 # Check whether --with-x or --without-x was given.
5203 if test "${with_x+set}" = set; then
5207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5208 if test "x$with_x" = xno
; then
5209 # The user explicitly disabled X.
5212 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5213 # Both variables are already set.
5216 if test "${ac_cv_have_x+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 # One or both of the vars are not set, and there is no cached value.
5220 ac_x_includes
=no ac_x_libraries
=no
5222 if mkdir conftest.dir
; then
5224 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5225 cat >Imakefile
<<'EOF'
5227 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5229 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5230 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5231 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5233 for ac_extension
in a so sl
; do
5234 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5235 test -f $ac_im_libdir/libX11.
$ac_extension; then
5236 ac_im_usrlibdir
=$ac_im_libdir; break
5239 # Screen out bogus values from the imake configuration. They are
5240 # bogus both because they are the default anyway, and because
5241 # using them would break gcc on systems where it needs fixed includes.
5242 case $ac_im_incroot in
5244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5246 case $ac_im_usrlibdir in
5248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5255 # Standard set of common directories for X headers.
5256 # Check X11 before X11Rn because it is often a symlink to the current release.
5268 /usr/local/X11/include
5269 /usr/local/X11R6/include
5270 /usr/local/X11R5/include
5271 /usr/local/X11R4/include
5273 /usr/local/include/X11
5274 /usr/local/include/X11R6
5275 /usr/local/include/X11R5
5276 /usr/local/include/X11R4
5280 /usr/XFree86/include/X11
5284 /usr/unsupported/include
5286 /usr/local/x11r5/include
5287 /usr/lpp/Xamples/include
5289 /usr/openwin/include
5290 /usr/openwin/share/include'
5292 if test "$ac_x_includes" = no
; then
5293 # Guess where to find include files, by looking for Intrinsic.h.
5294 # First, try using that file with no special directory specified.
5295 cat >conftest.
$ac_ext <<_ACEOF
5296 #line 5296 "configure"
5297 #include "confdefs.h"
5298 #include <X11/Intrinsic.h>
5300 if { (eval echo "$as_me:5300: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5303 egrep -v '^ *\+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev
/null
; then
5308 if test -s conftest.err
; then
5309 ac_cpp_err
=$ac_c_preproc_warn_flag
5316 if test -z "$ac_cpp_err"; then
5317 # We can compile using X headers with no special include directory.
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5322 for ac_dir
in $ac_x_header_dirs; do
5323 if test -r "$ac_dir/X11/Intrinsic.h"; then
5324 ac_x_includes
=$ac_dir
5329 rm -f conftest.err conftest.
$ac_ext
5330 fi # $ac_x_includes = no
5332 if test "$ac_x_libraries" = no
; then
5333 # Check for the libraries.
5334 # See if we find them without any special options.
5335 # Don't add to $LIBS permanently.
5338 cat >conftest.
$ac_ext <<_ACEOF
5339 #line 5339 "configure"
5340 #include "confdefs.h"
5341 #include <X11/Intrinsic.h>
5350 rm -f conftest.
$ac_objext conftest
$ac_exeext
5351 if { (eval echo "$as_me:5351: \"$ac_link\"") >&5
5352 (eval $ac_link) 2>&5
5354 echo "$as_me:5354: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try
='test -s conftest$ac_exeext'
5357 { (eval echo "$as_me:5357: \"$ac_try\"") >&5
5360 echo "$as_me:5360: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5363 # We can link X programs with no special library path.
5366 echo "$as_me: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5369 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5371 # Don't even attempt the hair of trying to link an X program!
5372 for ac_extension
in a so sl
; do
5373 if test -r $ac_dir/libXt.
$ac_extension; then
5374 ac_x_libraries
=$ac_dir
5380 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5381 fi # $ac_x_libraries = no
5383 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5384 # Didn't find X anywhere. Cache the known absence of X.
5385 ac_cv_have_x
="have_x=no"
5387 # Record where we found X for the cache.
5388 ac_cv_have_x
="have_x=yes \
5389 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5394 eval "$ac_cv_have_x"
5397 if test "$have_x" != yes; then
5398 echo "$as_me:5398: result: $have_x" >&5
5399 echo "${ECHO_T}$have_x" >&6
5402 # If each of the values was on the command line, it overrides each guess.
5403 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5404 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5405 # Update the cache value to reflect the command line values.
5406 ac_cv_have_x
="have_x=yes \
5407 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5408 echo "$as_me:5408: result: libraries $x_libraries, headers $x_includes" >&5
5409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5412 if test "$no_x" = yes; then
5418 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5419 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5420 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5421 x_default_search_path
=""
5422 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5424 ${x_library}/X11/%L/%T/%N%C%S:\
5425 ${x_library}/X11/%l/%T/%N%C%S:\
5426 ${x_library}/X11/%T/%N%C%S:\
5427 ${x_library}/X11/%L/%T/%N%S:\
5428 ${x_library}/X11/%l/%T/%N%S:\
5429 ${x_library}/X11/%T/%N%S"
5430 if test x
"${x_default_search_path}" = x
; then
5431 x_default_search_path
=${x_search_path}
5433 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5437 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5438 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5441 if test x
"${x_includes}" = x
; then
5442 bitmapdir
=/usr
/include
/X11
/bitmaps
5444 # accumulate include directories that have X11 bitmap subdirectories
5446 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5447 if test -d "${bmd}/X11/bitmaps"; then
5448 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5450 if test -d "${bmd}/bitmaps"; then
5451 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5454 if test ${bmd_acc} != "dummyval"; then
5455 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5459 case "${window_system}" in
5463 case "${with_x_toolkit}" in
5464 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5465 motif
) USE_X_TOOLKIT
=MOTIF
;;
5466 no
) USE_X_TOOLKIT
=none
;;
5467 * ) USE_X_TOOLKIT
=maybe
;;
5477 ### If we're using X11, we should use the X menu package.
5480 yes ) HAVE_MENUS
=yes ;;
5483 if test "${opsys}" = "hpux9"; then
5484 case "${x_libraries}" in
5486 opsysfile
="s/hpux9-x11r4.h"
5491 if test "${opsys}" = "hpux9shr"; then
5492 case "${x_libraries}" in
5494 opsysfile
="s/hpux9shxr4.h"
5499 ### Compute the unexec source name from the object name.
5500 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5502 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5503 # Assume not, until told otherwise.
5506 echo "$as_me:5506: checking for malloc_get_state" >&5
5507 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5508 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5512 #line 5512 "configure"
5513 #include "confdefs.h"
5514 /* System header to define __stub macros and hopefully few prototypes,
5515 which can conflict with char malloc_get_state (); below. */
5517 /* Override any gcc2 internal prototype to avoid an error. */
5521 /* We use char because int might match the return type of a gcc2
5522 builtin and then its argument prototype would still apply. */
5523 char malloc_get_state ();
5529 /* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5535 f = malloc_get_state;
5542 rm -f conftest.
$ac_objext conftest
$ac_exeext
5543 if { (eval echo "$as_me:5543: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:5546: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try
='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:5549: \"$ac_try\"") >&5
5552 echo "$as_me:5552: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_func_malloc_get_state
=yes
5556 echo "$as_me: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5558 ac_cv_func_malloc_get_state
=no
5560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5562 echo "$as_me:5562: result: $ac_cv_func_malloc_get_state" >&5
5563 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5564 if test $ac_cv_func_malloc_get_state = yes; then
5570 echo "$as_me:5570: checking for malloc_set_state" >&5
5571 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5572 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5576 #line 5576 "configure"
5577 #include "confdefs.h"
5578 /* System header to define __stub macros and hopefully few prototypes,
5579 which can conflict with char malloc_set_state (); below. */
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5587 char malloc_set_state ();
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5599 f = malloc_set_state;
5606 rm -f conftest.
$ac_objext conftest
$ac_exeext
5607 if { (eval echo "$as_me:5607: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5610 echo "$as_me:5610: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try
='test -s conftest$ac_exeext'
5613 { (eval echo "$as_me:5613: \"$ac_try\"") >&5
5616 echo "$as_me:5616: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_cv_func_malloc_set_state
=yes
5620 echo "$as_me: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5622 ac_cv_func_malloc_set_state
=no
5624 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5626 echo "$as_me:5626: result: $ac_cv_func_malloc_set_state" >&5
5627 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5628 if test $ac_cv_func_malloc_set_state = yes; then
5634 echo "$as_me:5634: checking whether __after_morecore_hook exists" >&5
5635 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5636 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 cat >conftest.
$ac_ext <<_ACEOF
5640 #line 5640 "configure"
5641 #include "confdefs.h"
5642 extern void (* __after_morecore_hook)();
5646 __after_morecore_hook = 0
5651 rm -f conftest.
$ac_objext conftest
$ac_exeext
5652 if { (eval echo "$as_me:5652: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>&5
5655 echo "$as_me:5655: \$? = $ac_status" >&5
5656 (exit $ac_status); } &&
5657 { ac_try
='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:5658: \"$ac_try\"") >&5
5661 echo "$as_me:5661: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 emacs_cv_var___after_morecore_hook
=yes
5665 echo "$as_me: failed program was:" >&5
5666 cat conftest.
$ac_ext >&5
5667 emacs_cv_var___after_morecore_hook
=no
5669 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5671 echo "$as_me:5671: result: $emacs_cv_var___after_morecore_hook" >&5
5672 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5673 if test $emacs_cv_var___after_morecore_hook = no
; then
5676 if test "${system_malloc}" = "yes"; then
5679 (The GNU allocators don't work with this system configuration.)"
5681 if test "$doug_lea_malloc" = "yes" ; then
5682 if test "$GNU_MALLOC" = yes ; then
5684 (Using Doug Lea's new malloc from the GNU C Library.)"
5687 cat >>confdefs.h
<<\EOF
5688 #define DOUG_LEA_MALLOC 1
5693 if test x
"${REL_ALLOC}" = x
; then
5694 REL_ALLOC
=${GNU_MALLOC}
5697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5699 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5700 inttypes.h stdint.h unistd.h
5702 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5703 echo "$as_me:5703: checking for $ac_header" >&5
5704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 cat >conftest.
$ac_ext <<_ACEOF
5709 #line 5709 "configure"
5710 #include "confdefs.h"
5711 $ac_includes_default
5712 #include <$ac_header>
5714 rm -f conftest.
$ac_objext
5715 if { (eval echo "$as_me:5715: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5718 echo "$as_me:5718: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try
='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:5721: \"$ac_try\"") >&5
5724 echo "$as_me:5724: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 eval "$as_ac_Header=yes"
5728 echo "$as_me: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5730 eval "$as_ac_Header=no"
5732 rm -f conftest.
$ac_objext conftest.
$ac_ext
5734 echo "$as_me:5734: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5737 cat >>confdefs.h
<<EOF
5738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5744 for ac_header
in stdlib.h unistd.h
5746 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5747 echo "$as_me:5747: checking for $ac_header" >&5
5748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 cat >conftest.
$ac_ext <<_ACEOF
5753 #line 5753 "configure"
5754 #include "confdefs.h"
5755 #include <$ac_header>
5757 if { (eval echo "$as_me:5757: \"$ac_cpp conftest.$ac_ext\"") >&5
5758 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5760 egrep -v '^ *\+' conftest.er1
>conftest.err
5762 cat conftest.err
>&5
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit $ac_status); } >/dev
/null
; then
5765 if test -s conftest.err
; then
5766 ac_cpp_err
=$ac_c_preproc_warn_flag
5773 if test -z "$ac_cpp_err"; then
5774 eval "$as_ac_Header=yes"
5776 echo "$as_me: failed program was:" >&5
5777 cat conftest.
$ac_ext >&5
5778 eval "$as_ac_Header=no"
5780 rm -f conftest.err conftest.
$ac_ext
5782 echo "$as_me:5782: result: `eval echo '${'$as_ac_Header'}'`" >&5
5783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5785 cat >>confdefs.h
<<EOF
5786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5792 for ac_func
in getpagesize
5794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5795 echo "$as_me:5795: checking for $ac_func" >&5
5796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5797 if eval "test \"\${$as_ac_var+set}\" = set"; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 cat >conftest.
$ac_ext <<_ACEOF
5801 #line 5801 "configure"
5802 #include "confdefs.h"
5803 /* System header to define __stub macros and hopefully few prototypes,
5804 which can conflict with char $ac_func (); below. */
5806 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5818 /* The GNU C library defines this for functions which it implements
5819 to always fail with ENOSYS. Some functions are actually named
5820 something starting with __ and the normal name is an alias. */
5821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5831 rm -f conftest.
$ac_objext conftest
$ac_exeext
5832 if { (eval echo "$as_me:5832: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>&5
5835 echo "$as_me:5835: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try
='test -s conftest$ac_exeext'
5838 { (eval echo "$as_me:5838: \"$ac_try\"") >&5
5841 echo "$as_me:5841: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 eval "$as_ac_var=yes"
5845 echo "$as_me: failed program was:" >&5
5846 cat conftest.
$ac_ext >&5
5847 eval "$as_ac_var=no"
5849 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5851 echo "$as_me:5851: result: `eval echo '${'$as_ac_var'}'`" >&5
5852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5853 if test `eval echo '${'$as_ac_var'}'` = yes; then
5854 cat >>confdefs.h
<<EOF
5855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5861 echo "$as_me:5861: checking for working mmap" >&5
5862 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5863 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 if test "$cross_compiling" = yes; then
5867 ac_cv_func_mmap_fixed_mapped
=no
5869 cat >conftest.
$ac_ext <<_ACEOF
5870 #line 5870 "configure"
5871 #include "confdefs.h"
5872 $ac_includes_default
5873 /* Thanks to Mike Haertel and Jim Avera for this test.
5874 Here is a matrix of mmap possibilities:
5875 mmap private not fixed
5876 mmap private fixed at somewhere currently unmapped
5877 mmap private fixed at somewhere already mapped
5878 mmap shared not fixed
5879 mmap shared fixed at somewhere currently unmapped
5880 mmap shared fixed at somewhere already mapped
5881 For private mappings, we should verify that changes cannot be read()
5882 back from the file, nor mmap's back from the file at a different
5883 address. (There have been systems where private was not correctly
5884 implemented like the infamous i386 svr4.0, and systems where the
5885 VM page cache was not coherent with the file system buffer cache
5886 like early versions of FreeBSD and possibly contemporary NetBSD.)
5887 For shared mappings, we should conversely verify that changes get
5888 propogated back to all the places they're supposed to be.
5890 Grep wants private fixed already mapped.
5891 The main things grep needs to know about mmap are:
5892 * does it exist and is it safe to write into the mmap'd area
5893 * how to use it (BSD variants) */
5896 #include <sys/mman.h>
5898 #if !STDC_HEADERS && !HAVE_STDLIB_H
5902 /* This mess was copied from the GNU getpagesize.h. */
5903 #if !HAVE_GETPAGESIZE
5904 /* Assume that all systems that can run configure have sys/param.h. */
5905 # if !HAVE_SYS_PARAM_H
5906 # define HAVE_SYS_PARAM_H 1
5909 # ifdef _SC_PAGESIZE
5910 # define getpagesize() sysconf(_SC_PAGESIZE)
5911 # else /* no _SC_PAGESIZE */
5912 # if HAVE_SYS_PARAM_H
5913 # include <sys/param.h>
5914 # ifdef EXEC_PAGESIZE
5915 # define getpagesize() EXEC_PAGESIZE
5916 # else /* no EXEC_PAGESIZE */
5918 # define getpagesize() NBPG * CLSIZE
5921 # endif /* no CLSIZE */
5922 # else /* no NBPG */
5924 # define getpagesize() NBPC
5925 # else /* no NBPC */
5927 # define getpagesize() PAGESIZE
5928 # endif /* PAGESIZE */
5929 # endif /* no NBPC */
5930 # endif /* no NBPG */
5931 # endif /* no EXEC_PAGESIZE */
5932 # else /* no HAVE_SYS_PARAM_H */
5933 # define getpagesize() 8192 /* punt totally */
5934 # endif /* no HAVE_SYS_PARAM_H */
5935 # endif /* no _SC_PAGESIZE */
5937 #endif /* no HAVE_GETPAGESIZE */
5942 char *data, *data2, *data3;
5946 pagesize = getpagesize ();
5948 /* First, make a file with some known garbage in it. */
5949 data = (char *) malloc (pagesize);
5952 for (i = 0; i < pagesize; ++i)
5953 *(data + i) = rand ();
5955 fd = creat ("conftest.mmap", 0600);
5958 if (write (fd, data, pagesize) != pagesize)
5962 /* Next, try to mmap the file at a fixed address which already has
5963 something else allocated at it. If we can, also make sure that
5964 we see the same garbage. */
5965 fd = open ("conftest.mmap", O_RDWR);
5968 data2 = (char *) malloc (2 * pagesize);
5971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5972 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5973 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5975 for (i = 0; i < pagesize; ++i)
5976 if (*(data + i) != *(data2 + i))
5979 /* Finally, make sure that changes to the mapped area do not
5980 percolate back to the file as seen by read(). (This is a bug on
5981 some variants of i386 svr4.0.) */
5982 for (i = 0; i < pagesize; ++i)
5983 *(data2 + i) = *(data2 + i) + 1;
5984 data3 = (char *) malloc (pagesize);
5987 if (read (fd, data3, pagesize) != pagesize)
5989 for (i = 0; i < pagesize; ++i)
5990 if (*(data + i) != *(data3 + i))
5996 rm -f conftest
$ac_exeext
5997 if { (eval echo "$as_me:5997: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>&5
6000 echo "$as_me:6000: \$? = $ac_status" >&5
6001 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6002 { (eval echo "$as_me:6002: \"$ac_try\"") >&5
6005 echo "$as_me:6005: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_func_mmap_fixed_mapped
=yes
6009 echo "$as_me: program exited with status $ac_status" >&5
6010 echo "$as_me: failed program was:" >&5
6011 cat conftest.
$ac_ext >&5
6012 ac_cv_func_mmap_fixed_mapped
=no
6014 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6017 echo "$as_me:6017: result: $ac_cv_func_mmap_fixed_mapped" >&5
6018 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6021 cat >>confdefs.h
<<\EOF
6028 if test $use_mmap_for_buffers = yes; then
6032 LIBS
="$libsrc_libs $LIBS"
6034 echo "$as_me:6034: checking for dnet_ntoa in -ldnet" >&5
6035 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6036 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_check_lib_save_LIBS
=$LIBS
6041 cat >conftest.
$ac_ext <<_ACEOF
6042 #line 6042 "configure"
6043 #include "confdefs.h"
6045 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6060 rm -f conftest.
$ac_objext conftest
$ac_exeext
6061 if { (eval echo "$as_me:6061: \"$ac_link\"") >&5
6062 (eval $ac_link) 2>&5
6064 echo "$as_me:6064: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -s conftest$ac_exeext'
6067 { (eval echo "$as_me:6067: \"$ac_try\"") >&5
6070 echo "$as_me:6070: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_lib_dnet_dnet_ntoa
=yes
6074 echo "$as_me: failed program was:" >&5
6075 cat conftest.
$ac_ext >&5
6076 ac_cv_lib_dnet_dnet_ntoa
=no
6078 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6079 LIBS
=$ac_check_lib_save_LIBS
6081 echo "$as_me:6081: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6082 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6083 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6084 cat >>confdefs.h
<<EOF
6085 #define HAVE_LIBDNET 1
6092 echo "$as_me:6092: checking for main in -lXbsd" >&5
6093 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6094 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 ac_check_lib_save_LIBS
=$LIBS
6099 cat >conftest.
$ac_ext <<_ACEOF
6100 #line 6100 "configure"
6101 #include "confdefs.h"
6111 rm -f conftest.
$ac_objext conftest
$ac_exeext
6112 if { (eval echo "$as_me:6112: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>&5
6115 echo "$as_me:6115: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
6117 { ac_try
='test -s conftest$ac_exeext'
6118 { (eval echo "$as_me:6118: \"$ac_try\"") >&5
6121 echo "$as_me:6121: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 ac_cv_lib_Xbsd_main
=yes
6125 echo "$as_me: failed program was:" >&5
6126 cat conftest.
$ac_ext >&5
6127 ac_cv_lib_Xbsd_main
=no
6129 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6130 LIBS
=$ac_check_lib_save_LIBS
6132 echo "$as_me:6132: result: $ac_cv_lib_Xbsd_main" >&5
6133 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6134 if test $ac_cv_lib_Xbsd_main = yes; then
6135 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6138 echo "$as_me:6138: checking for cma_open in -lpthreads" >&5
6139 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6140 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_check_lib_save_LIBS
=$LIBS
6144 LIBS
="-lpthreads $LIBS"
6145 cat >conftest.
$ac_ext <<_ACEOF
6146 #line 6146 "configure"
6147 #include "confdefs.h"
6149 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6164 rm -f conftest.
$ac_objext conftest
$ac_exeext
6165 if { (eval echo "$as_me:6165: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>&5
6168 echo "$as_me:6168: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try
='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:6171: \"$ac_try\"") >&5
6174 echo "$as_me:6174: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_lib_pthreads_cma_open
=yes
6178 echo "$as_me: failed program was:" >&5
6179 cat conftest.
$ac_ext >&5
6180 ac_cv_lib_pthreads_cma_open
=no
6182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6183 LIBS
=$ac_check_lib_save_LIBS
6185 echo "$as_me:6185: result: $ac_cv_lib_pthreads_cma_open" >&5
6186 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6187 if test $ac_cv_lib_pthreads_cma_open = yes; then
6188 cat >>confdefs.h
<<EOF
6189 #define HAVE_LIBPTHREADS 1
6192 LIBS
="-lpthreads $LIBS"
6196 echo "$as_me:6196: checking for XFree86 in /usr/X386" >&5
6197 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6198 if test -d /usr
/X386
/include
; then
6200 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6204 echo "$as_me:6204: result: $HAVE_XFREE386" >&5
6205 echo "${ECHO_T}$HAVE_XFREE386" >&6
6207 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6208 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6210 REAL_CPPFLAGS
="$CPPFLAGS"
6212 if test "${HAVE_X11}" = "yes"; then
6213 DEFS
="$C_SWITCH_X_SITE $DEFS"
6214 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6216 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6217 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6219 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6220 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6221 # but it's more convenient here to set LD_RUN_PATH
6222 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6223 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6224 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6228 if test "${opsys}" = "gnu-linux"; then
6229 echo "$as_me:6229: checking whether X on GNU/Linux needs -b to link" >&5
6230 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6231 cat >conftest.
$ac_ext <<_ACEOF
6232 #line 6232 "configure"
6233 #include "confdefs.h"
6238 XOpenDisplay ("foo");
6243 rm -f conftest.
$ac_objext conftest
$ac_exeext
6244 if { (eval echo "$as_me:6244: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try
='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 xlinux_first_failure
=no
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.
$ac_ext >&5
6259 xlinux_first_failure
=yes
6261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6262 if test "${xlinux_first_failure}" = "yes"; then
6263 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6264 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6265 OLD_CPPFLAGS
="$CPPFLAGS"
6267 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6268 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6269 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6270 LIBS
="$LIBS -b i486-linuxaout"
6271 cat >conftest.
$ac_ext <<_ACEOF
6272 #line 6272 "configure"
6273 #include "confdefs.h"
6278 XOpenDisplay ("foo");
6283 rm -f conftest.
$ac_objext conftest
$ac_exeext
6284 if { (eval echo "$as_me:6284: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:6287: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try
='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:6290: \"$ac_try\"") >&5
6293 echo "$as_me:6293: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 xlinux_second_failure
=no
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.
$ac_ext >&5
6299 xlinux_second_failure
=yes
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6302 if test "${xlinux_second_failure}" = "yes"; then
6303 # If we get the same failure with -b, there is no use adding -b.
6304 # So take it out. This plays safe.
6305 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6306 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6307 CPPFLAGS
="$OLD_CPPFLAGS"
6309 echo "$as_me:6309: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6312 echo "$as_me:6312: result: yes" >&5
6313 echo "${ECHO_T}yes" >&6
6316 echo "$as_me:6316: result: no" >&5
6317 echo "${ECHO_T}no" >&6
6321 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6322 # header files included from there.
6323 echo "$as_me:6323: checking for Xkb" >&5
6324 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6325 cat >conftest.
$ac_ext <<_ACEOF
6326 #line 6326 "configure"
6327 #include "confdefs.h"
6328 #include <X11/Xlib.h>
6329 #include <X11/XKBlib.h>
6333 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6338 rm -f conftest.
$ac_objext conftest
$ac_exeext
6339 if { (eval echo "$as_me:6339: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>&5
6342 echo "$as_me:6342: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try
='test -s conftest$ac_exeext'
6345 { (eval echo "$as_me:6345: \"$ac_try\"") >&5
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.
$ac_ext >&5
6356 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6357 echo "$as_me:6357: result: $emacs_xkb" >&5
6358 echo "${ECHO_T}$emacs_xkb" >&6
6359 if test $emacs_xkb = yes; then
6361 cat >>confdefs.h
<<\EOF
6362 #define HAVE_XKBGETKEYBOARD 1
6367 for ac_func
in XrmSetDatabase XScreenResourceString \
6368 XScreenNumberOfScreen XSetWMProtocols
6370 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6371 echo "$as_me:6371: checking for $ac_func" >&5
6372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6373 if eval "test \"\${$as_ac_var+set}\" = set"; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.
$ac_ext <<_ACEOF
6377 #line 6377 "configure"
6378 #include "confdefs.h"
6379 /* System header to define __stub macros and hopefully few prototypes,
6380 which can conflict with char $ac_func (); below. */
6382 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 rm -f conftest.
$ac_objext conftest
$ac_exeext
6408 if { (eval echo "$as_me:6408: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>&5
6411 echo "$as_me:6411: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try
='test -s conftest$ac_exeext'
6414 { (eval echo "$as_me:6414: \"$ac_try\"") >&5
6417 echo "$as_me:6417: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 eval "$as_ac_var=yes"
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.
$ac_ext >&5
6423 eval "$as_ac_var=no"
6425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6427 echo "$as_me:6427: result: `eval echo '${'$as_ac_var'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6429 if test `eval echo '${'$as_ac_var'}'` = yes; then
6430 cat >>confdefs.h
<<EOF
6431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6439 if test "${window_system}" = "x11"; then
6440 echo "$as_me:6440: checking X11 version 6" >&5
6441 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6442 if test "${emacs_cv_x11_version_6+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.
$ac_ext <<_ACEOF
6446 #line 6446 "configure"
6447 #include "confdefs.h"
6448 #include <X11/Xlib.h>
6452 #if XlibSpecificationRelease < 6
6460 rm -f conftest.
$ac_objext conftest
$ac_exeext
6461 if { (eval echo "$as_me:6461: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:6464: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try
='test -s conftest$ac_exeext'
6467 { (eval echo "$as_me:6467: \"$ac_try\"") >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 emacs_cv_x11_version_6
=yes
6474 echo "$as_me: failed program was:" >&5
6475 cat conftest.
$ac_ext >&5
6476 emacs_cv_x11_version_6
=no
6478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6481 if test $emacs_cv_x11_version_6 = yes; then
6482 echo "$as_me:6482: result: 6 or newer" >&5
6483 echo "${ECHO_T}6 or newer" >&6
6485 cat >>confdefs.h
<<\EOF
6486 #define HAVE_X11R6 1
6490 echo "$as_me:6490: result: before 6" >&5
6491 echo "${ECHO_T}before 6" >&6
6495 if test "${window_system}" = "x11"; then
6496 echo "$as_me:6496: checking X11 version 5" >&5
6497 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6498 if test "${emacs_cv_x11_version_5+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 cat >conftest.
$ac_ext <<_ACEOF
6502 #line 6502 "configure"
6503 #include "confdefs.h"
6504 #include <X11/Xlib.h>
6508 #if XlibSpecificationRelease < 5
6516 rm -f conftest.
$ac_objext conftest
$ac_exeext
6517 if { (eval echo "$as_me:6517: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>&5
6520 echo "$as_me:6520: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try
='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:6523: \"$ac_try\"") >&5
6526 echo "$as_me:6526: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 emacs_cv_x11_version_5
=yes
6530 echo "$as_me: failed program was:" >&5
6531 cat conftest.
$ac_ext >&5
6532 emacs_cv_x11_version_5
=no
6534 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6537 if test $emacs_cv_x11_version_5 = yes; then
6538 echo "$as_me:6538: result: 5 or newer" >&5
6539 echo "${ECHO_T}5 or newer" >&6
6542 cat >>confdefs.h
<<\EOF
6543 #define HAVE_X11R5 1
6548 echo "$as_me:6548: result: before 5" >&5
6549 echo "${ECHO_T}before 5" >&6
6553 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6554 if test x
"${HAVE_X11R5}" = xyes
; then
6555 echo "$as_me:6555: checking X11 version 5 with Xaw" >&5
6556 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6557 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 cat >conftest.
$ac_ext <<_ACEOF
6561 #line 6561 "configure"
6562 #include "confdefs.h"
6564 #include <X11/Intrinsic.h>
6565 #include <X11/Xaw/Simple.h>
6574 rm -f conftest.
$ac_objext conftest
$ac_exeext
6575 if { (eval echo "$as_me:6575: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>&5
6578 echo "$as_me:6578: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try
='test -s conftest$ac_exeext'
6581 { (eval echo "$as_me:6581: \"$ac_try\"") >&5
6584 echo "$as_me:6584: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 emacs_cv_x11_version_5_with_xaw
=yes
6588 echo "$as_me: failed program was:" >&5
6589 cat conftest.
$ac_ext >&5
6590 emacs_cv_x11_version_5_with_xaw
=no
6592 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6595 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6596 echo "$as_me:6596: result: 5 or newer, with Xaw; use toolkit by default" >&5
6597 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6600 echo "$as_me:6600: result: before 5 or no Xaw; do not use toolkit by default" >&5
6601 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6609 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6611 if test "${USE_X_TOOLKIT}" != "none"; then
6612 echo "$as_me:6612: checking X11 toolkit version" >&5
6613 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6614 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 cat >conftest.
$ac_ext <<_ACEOF
6618 #line 6618 "configure"
6619 #include "confdefs.h"
6620 #include <X11/Intrinsic.h>
6624 #if XtSpecificationRelease < 6
6632 rm -f conftest.
$ac_objext conftest
$ac_exeext
6633 if { (eval echo "$as_me:6633: \"$ac_link\"") >&5
6634 (eval $ac_link) 2>&5
6636 echo "$as_me:6636: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try
='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:6639: \"$ac_try\"") >&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 emacs_cv_x11_toolkit_version_6
=yes
6646 echo "$as_me: failed program was:" >&5
6647 cat conftest.
$ac_ext >&5
6648 emacs_cv_x11_toolkit_version_6
=no
6650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6653 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6654 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6655 echo "$as_me:6655: result: 6 or newer" >&5
6656 echo "${ECHO_T}6 or newer" >&6
6658 cat >>confdefs.h
<<\EOF
6659 #define HAVE_X11XTR6 1
6663 echo "$as_me:6663: result: before 6" >&5
6664 echo "${ECHO_T}before 6" >&6
6668 if test x
$HAVE_X11XTR6 = xyes
; then
6669 LIBS
="-lXt -lSM -lICE $LIBS"
6674 echo "$as_me:6674: checking for XmuConvertStandardSelection in -lXmu" >&5
6675 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6676 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 ac_check_lib_save_LIBS
=$LIBS
6681 cat >conftest.
$ac_ext <<_ACEOF
6682 #line 6682 "configure"
6683 #include "confdefs.h"
6685 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6691 char XmuConvertStandardSelection ();
6695 XmuConvertStandardSelection ();
6700 rm -f conftest.
$ac_objext conftest
$ac_exeext
6701 if { (eval echo "$as_me:6701: \"$ac_link\"") >&5
6702 (eval $ac_link) 2>&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try
='test -s conftest$ac_exeext'
6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.
$ac_ext >&5
6716 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6718 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6719 LIBS
=$ac_check_lib_save_LIBS
6721 echo "$as_me:6721: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6722 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6723 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6724 cat >>confdefs.h
<<EOF
6725 #define HAVE_LIBXMU 1
6732 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6735 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6736 if test "${HAVE_X11}" = "yes"; then
6737 if test "${USE_X_TOOLKIT}" != "none"; then
6739 echo "$as_me:6739: checking for XShapeQueryExtension in -lXext" >&5
6740 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6741 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_check_lib_save_LIBS
=$LIBS
6746 cat >conftest.
$ac_ext <<_ACEOF
6747 #line 6747 "configure"
6748 #include "confdefs.h"
6750 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6756 char XShapeQueryExtension ();
6760 XShapeQueryExtension ();
6765 rm -f conftest.
$ac_objext conftest
$ac_exeext
6766 if { (eval echo "$as_me:6766: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>&5
6769 echo "$as_me:6769: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try
='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:6772: \"$ac_try\"") >&5
6775 echo "$as_me:6775: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6779 echo "$as_me: failed program was:" >&5
6780 cat conftest.
$ac_ext >&5
6781 ac_cv_lib_Xext_XShapeQueryExtension
=no
6783 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6784 LIBS
=$ac_check_lib_save_LIBS
6786 echo "$as_me:6786: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6787 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6788 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6789 cat >>confdefs.h
<<EOF
6790 #define HAVE_LIBXEXT 1
6800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6801 echo "$as_me:6801: checking for Motif version 2.1" >&5
6802 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6803 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.
$ac_ext <<_ACEOF
6807 #line 6807 "configure"
6808 #include "confdefs.h"
6813 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6816 Motif version prior to 2.1.
6822 rm -f conftest.
$ac_objext
6823 if { (eval echo "$as_me:6823: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>&5
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try
='test -s conftest.$ac_objext'
6829 { (eval echo "$as_me:6829: \"$ac_try\"") >&5
6832 echo "$as_me:6832: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 emacs_cv_motif_version_2_1
=yes
6836 echo "$as_me: failed program was:" >&5
6837 cat conftest.
$ac_ext >&5
6838 emacs_cv_motif_version_2_1
=no
6840 rm -f conftest.
$ac_objext conftest.
$ac_ext
6842 echo "$as_me:6842: result: $emacs_cv_motif_version_2_1" >&5
6843 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6844 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6845 if test $emacs_cv_motif_version_2_1 = yes; then
6848 cat >>confdefs.h
<<\EOF
6849 #define HAVE_MOTIF_2_1 1
6852 echo "$as_me:6852: checking for XpCreateContext in -lXp" >&5
6853 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6854 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_check_lib_save_LIBS
=$LIBS
6859 cat >conftest.
$ac_ext <<_ACEOF
6860 #line 6860 "configure"
6861 #include "confdefs.h"
6863 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6869 char XpCreateContext ();
6878 rm -f conftest.
$ac_objext conftest
$ac_exeext
6879 if { (eval echo "$as_me:6879: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6882 echo "$as_me:6882: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try
='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:6885: \"$ac_try\"") >&5
6888 echo "$as_me:6888: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_lib_Xp_XpCreateContext
=yes
6892 echo "$as_me: failed program was:" >&5
6893 cat conftest.
$ac_ext >&5
6894 ac_cv_lib_Xp_XpCreateContext
=no
6896 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6897 LIBS
=$ac_check_lib_save_LIBS
6899 echo "$as_me:6899: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6900 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6901 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6905 if test ${HAVE_LIBXP} = yes; then
6907 cat >>confdefs.h
<<\EOF
6908 #define HAVE_LIBXP 1
6915 ### Is -lXaw3d available?
6917 if test "${HAVE_X11}" = "yes"; then
6918 if test "${USE_X_TOOLKIT}" != "none"; then
6919 echo "$as_me:6919: checking for X11/Xaw3d/Scrollbar.h" >&5
6920 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6921 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 cat >conftest.
$ac_ext <<_ACEOF
6925 #line 6925 "configure"
6926 #include "confdefs.h"
6927 #include <X11/Xaw3d/Scrollbar.h>
6929 if { (eval echo "$as_me:6929: \"$ac_cpp conftest.$ac_ext\"") >&5
6930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6932 egrep -v '^ *\+' conftest.er1
>conftest.err
6934 cat conftest.err
>&5
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit $ac_status); } >/dev
/null
; then
6937 if test -s conftest.err
; then
6938 ac_cpp_err
=$ac_c_preproc_warn_flag
6945 if test -z "$ac_cpp_err"; then
6946 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6948 echo "$as_me: failed program was:" >&5
6949 cat conftest.
$ac_ext >&5
6950 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6952 rm -f conftest.err conftest.
$ac_ext
6954 echo "$as_me:6954: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6955 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6956 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6957 echo "$as_me:6957: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6958 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6959 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 ac_check_lib_save_LIBS
=$LIBS
6963 LIBS
="-lXaw3d $LIBS"
6964 cat >conftest.
$ac_ext <<_ACEOF
6965 #line 6965 "configure"
6966 #include "confdefs.h"
6968 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974 char XawScrollbarSetThumb ();
6978 XawScrollbarSetThumb ();
6983 rm -f conftest.
$ac_objext conftest
$ac_exeext
6984 if { (eval echo "$as_me:6984: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>&5
6987 echo "$as_me:6987: \$? = $ac_status" >&5
6988 (exit $ac_status); } &&
6989 { ac_try
='test -s conftest$ac_exeext'
6990 { (eval echo "$as_me:6990: \"$ac_try\"") >&5
6993 echo "$as_me:6993: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6997 echo "$as_me: failed program was:" >&5
6998 cat conftest.
$ac_ext >&5
6999 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7002 LIBS
=$ac_check_lib_save_LIBS
7004 echo "$as_me:7004: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7005 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7006 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7012 if test "${HAVE_XAW3D}" = "yes"; then
7014 cat >>confdefs.h
<<\EOF
7015 #define HAVE_XAW3D 1
7022 USE_TOOLKIT_SCROLL_BARS
=no
7023 if test "${with_toolkit_scroll_bars}" != "no"; then
7024 if test "${USE_X_TOOLKIT}" != "none"; then
7025 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7026 cat >>confdefs.h
<<\EOF
7027 #define USE_TOOLKIT_SCROLL_BARS 1
7031 USE_TOOLKIT_SCROLL_BARS
=yes
7032 elif test "${HAVE_XAW3D}" = "yes"; then
7033 cat >>confdefs.h
<<\EOF
7034 #define USE_TOOLKIT_SCROLL_BARS 1
7037 USE_TOOLKIT_SCROLL_BARS
=yes
7042 if test "${with_xim}" != "no"; then
7044 cat >>confdefs.h
<<\EOF
7050 ### Use -lXpm if available, unless `--with-xpm=no'.
7052 if test "${HAVE_X11}" = "yes"; then
7053 if test "${with_xpm}" != "no"; then
7054 echo "$as_me:7054: checking for X11/xpm.h" >&5
7055 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7056 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.
$ac_ext <<_ACEOF
7060 #line 7060 "configure"
7061 #include "confdefs.h"
7062 #include <X11/xpm.h>
7064 if { (eval echo "$as_me:7064: \"$ac_cpp conftest.$ac_ext\"") >&5
7065 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7067 egrep -v '^ *\+' conftest.er1
>conftest.err
7069 cat conftest.err
>&5
7070 echo "$as_me:7070: \$? = $ac_status" >&5
7071 (exit $ac_status); } >/dev
/null
; then
7072 if test -s conftest.err
; then
7073 ac_cpp_err
=$ac_c_preproc_warn_flag
7080 if test -z "$ac_cpp_err"; then
7081 ac_cv_header_X11_xpm_h
=yes
7083 echo "$as_me: failed program was:" >&5
7084 cat conftest.
$ac_ext >&5
7085 ac_cv_header_X11_xpm_h
=no
7087 rm -f conftest.err conftest.
$ac_ext
7089 echo "$as_me:7089: result: $ac_cv_header_X11_xpm_h" >&5
7090 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7091 if test $ac_cv_header_X11_xpm_h = yes; then
7092 echo "$as_me:7092: checking for XpmReadFileToPixmap in -lXpm" >&5
7093 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7094 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_check_lib_save_LIBS
=$LIBS
7098 LIBS
="-lXpm -lX11 $LIBS"
7099 cat >conftest.
$ac_ext <<_ACEOF
7100 #line 7100 "configure"
7101 #include "confdefs.h"
7103 /* Override any gcc2 internal prototype to avoid an error. */
7107 /* We use char because int might match the return type of a gcc2
7108 builtin and then its argument prototype would still apply. */
7109 char XpmReadFileToPixmap ();
7113 XpmReadFileToPixmap ();
7118 rm -f conftest.
$ac_objext conftest
$ac_exeext
7119 if { (eval echo "$as_me:7119: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7122 echo "$as_me:7122: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try
='test -s conftest$ac_exeext'
7125 { (eval echo "$as_me:7125: \"$ac_try\"") >&5
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 (exit $ac_status); }; }; then
7130 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7132 echo "$as_me: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7134 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7137 LIBS
=$ac_check_lib_save_LIBS
7139 echo "$as_me:7139: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7140 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7141 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7147 if test "${HAVE_XPM}" = "yes"; then
7148 echo "$as_me:7148: checking for XpmReturnAllocPixels preprocessor define" >&5
7149 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7150 cat >conftest.
$ac_ext <<_ACEOF
7151 #line 7151 "configure"
7152 #include "confdefs.h"
7153 #include "X11/xpm.h"
7154 #ifndef XpmReturnAllocPixels
7155 no_return_alloc_pixels
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7167 if test "${HAVE_XPM}" = "yes"; then
7168 echo "$as_me:7168: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7171 echo "$as_me:7171: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7177 if test "${HAVE_XPM}" = "yes"; then
7179 cat >>confdefs.h
<<\EOF
7186 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7188 if test "${HAVE_X11}" = "yes"; then
7189 if test "${with_jpeg}" != "no"; then
7190 echo "$as_me:7190: checking for jerror.h" >&5
7191 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7192 if test "${ac_cv_header_jerror_h+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 cat >conftest.
$ac_ext <<_ACEOF
7196 #line 7196 "configure"
7197 #include "confdefs.h"
7200 if { (eval echo "$as_me:7200: \"$ac_cpp conftest.$ac_ext\"") >&5
7201 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7203 egrep -v '^ *\+' conftest.er1
>conftest.err
7205 cat conftest.err
>&5
7206 echo "$as_me:7206: \$? = $ac_status" >&5
7207 (exit $ac_status); } >/dev
/null
; then
7208 if test -s conftest.err
; then
7209 ac_cpp_err
=$ac_c_preproc_warn_flag
7216 if test -z "$ac_cpp_err"; then
7217 ac_cv_header_jerror_h
=yes
7219 echo "$as_me: failed program was:" >&5
7220 cat conftest.
$ac_ext >&5
7221 ac_cv_header_jerror_h
=no
7223 rm -f conftest.err conftest.
$ac_ext
7225 echo "$as_me:7225: result: $ac_cv_header_jerror_h" >&5
7226 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7227 if test $ac_cv_header_jerror_h = yes; then
7228 echo "$as_me:7228: checking for jpeg_destroy_compress in -ljpeg" >&5
7229 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7230 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 ac_check_lib_save_LIBS
=$LIBS
7235 cat >conftest.
$ac_ext <<_ACEOF
7236 #line 7236 "configure"
7237 #include "confdefs.h"
7239 /* Override any gcc2 internal prototype to avoid an error. */
7243 /* We use char because int might match the return type of a gcc2
7244 builtin and then its argument prototype would still apply. */
7245 char jpeg_destroy_compress ();
7249 jpeg_destroy_compress ();
7254 rm -f conftest.
$ac_objext conftest
$ac_exeext
7255 if { (eval echo "$as_me:7255: \"$ac_link\"") >&5
7256 (eval $ac_link) 2>&5
7258 echo "$as_me:7258: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try
='test -s conftest$ac_exeext'
7261 { (eval echo "$as_me:7261: \"$ac_try\"") >&5
7264 echo "$as_me:7264: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.
$ac_ext >&5
7270 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7272 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7273 LIBS
=$ac_check_lib_save_LIBS
7275 echo "$as_me:7275: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7276 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7277 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7285 if test "${HAVE_JPEG}" = "yes"; then
7286 cat >>confdefs.h
<<\EOF
7290 cat >conftest.
$ac_ext <<_ACEOF
7291 #line 7291 "configure"
7292 #include "confdefs.h"
7293 #include <jpeglib.h>
7294 version=JPEG_LIB_VERSION
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7299 cat >>confdefs.h
<<\EOF
7304 { echo "$as_me:7304: WARNING: libjpeg found, but not version 6b or later" >&5
7305 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7313 ### Use -lpng if available, unless `--with-png=no'.
7315 if test "${HAVE_X11}" = "yes"; then
7316 if test "${with_png}" != "no"; then
7317 echo "$as_me:7317: checking for png.h" >&5
7318 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7319 if test "${ac_cv_header_png_h+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.
$ac_ext <<_ACEOF
7323 #line 7323 "configure"
7324 #include "confdefs.h"
7327 if { (eval echo "$as_me:7327: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7330 egrep -v '^ *\+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev
/null
; then
7335 if test -s conftest.err
; then
7336 ac_cpp_err
=$ac_c_preproc_warn_flag
7343 if test -z "$ac_cpp_err"; then
7344 ac_cv_header_png_h
=yes
7346 echo "$as_me: failed program was:" >&5
7347 cat conftest.
$ac_ext >&5
7348 ac_cv_header_png_h
=no
7350 rm -f conftest.err conftest.
$ac_ext
7352 echo "$as_me:7352: result: $ac_cv_header_png_h" >&5
7353 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7354 if test $ac_cv_header_png_h = yes; then
7355 echo "$as_me:7355: checking for png_get_channels in -lpng" >&5
7356 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7357 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_check_lib_save_LIBS
=$LIBS
7361 LIBS
="-lpng -lz -lm $LIBS"
7362 cat >conftest.
$ac_ext <<_ACEOF
7363 #line 7363 "configure"
7364 #include "confdefs.h"
7366 /* Override any gcc2 internal prototype to avoid an error. */
7370 /* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7372 char png_get_channels ();
7376 png_get_channels ();
7381 rm -f conftest.
$ac_objext conftest
$ac_exeext
7382 if { (eval echo "$as_me:7382: \"$ac_link\"") >&5
7383 (eval $ac_link) 2>&5
7385 echo "$as_me:7385: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try
='test -s conftest$ac_exeext'
7388 { (eval echo "$as_me:7388: \"$ac_try\"") >&5
7391 echo "$as_me:7391: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 ac_cv_lib_png_png_get_channels
=yes
7395 echo "$as_me: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7397 ac_cv_lib_png_png_get_channels
=no
7399 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7400 LIBS
=$ac_check_lib_save_LIBS
7402 echo "$as_me:7402: result: $ac_cv_lib_png_png_get_channels" >&5
7403 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7404 if test $ac_cv_lib_png_png_get_channels = yes; then
7412 if test "${HAVE_PNG}" = "yes"; then
7414 cat >>confdefs.h
<<\EOF
7421 ### Use -ltiff if available, unless `--with-tiff=no'.
7423 if test "${HAVE_X11}" = "yes"; then
7424 if test "${with_tiff}" != "no"; then
7425 echo "$as_me:7425: checking for tiffio.h" >&5
7426 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7427 if test "${ac_cv_header_tiffio_h+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 cat >conftest.
$ac_ext <<_ACEOF
7431 #line 7431 "configure"
7432 #include "confdefs.h"
7435 if { (eval echo "$as_me:7435: \"$ac_cpp conftest.$ac_ext\"") >&5
7436 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7438 egrep -v '^ *\+' conftest.er1
>conftest.err
7440 cat conftest.err
>&5
7441 echo "$as_me:7441: \$? = $ac_status" >&5
7442 (exit $ac_status); } >/dev
/null
; then
7443 if test -s conftest.err
; then
7444 ac_cpp_err
=$ac_c_preproc_warn_flag
7451 if test -z "$ac_cpp_err"; then
7452 ac_cv_header_tiffio_h
=yes
7454 echo "$as_me: failed program was:" >&5
7455 cat conftest.
$ac_ext >&5
7456 ac_cv_header_tiffio_h
=no
7458 rm -f conftest.err conftest.
$ac_ext
7460 echo "$as_me:7460: result: $ac_cv_header_tiffio_h" >&5
7461 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7462 if test $ac_cv_header_tiffio_h = yes; then
7464 # At least one tiff package requires the jpeg library.
7465 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7466 echo "$as_me:7466: checking for TIFFGetVersion in -ltiff" >&5
7467 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7468 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_check_lib_save_LIBS
=$LIBS
7472 LIBS
="-ltiff $tifflibs $LIBS"
7473 cat >conftest.
$ac_ext <<_ACEOF
7474 #line 7474 "configure"
7475 #include "confdefs.h"
7477 /* Override any gcc2 internal prototype to avoid an error. */
7481 /* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483 char TIFFGetVersion ();
7492 rm -f conftest.
$ac_objext conftest
$ac_exeext
7493 if { (eval echo "$as_me:7493: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>&5
7496 echo "$as_me:7496: \$? = $ac_status" >&5
7497 (exit $ac_status); } &&
7498 { ac_try
='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:7499: \"$ac_try\"") >&5
7502 echo "$as_me:7502: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_lib_tiff_TIFFGetVersion
=yes
7506 echo "$as_me: failed program was:" >&5
7507 cat conftest.
$ac_ext >&5
7508 ac_cv_lib_tiff_TIFFGetVersion
=no
7510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7511 LIBS
=$ac_check_lib_save_LIBS
7513 echo "$as_me:7513: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7514 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7515 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7523 if test "${HAVE_TIFF}" = "yes"; then
7525 cat >>confdefs.h
<<\EOF
7532 ### Use -lgif if available, unless `--with-gif=no'.
7534 if test "${HAVE_X11}" = "yes"; then
7535 if test "${with_gif}" != "no"; then
7536 echo "$as_me:7536: checking for gif_lib.h" >&5
7537 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7538 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7542 #line 7542 "configure"
7543 #include "confdefs.h"
7544 #include <gif_lib.h>
7546 if { (eval echo "$as_me:7546: \"$ac_cpp conftest.$ac_ext\"") >&5
7547 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7549 egrep -v '^ *\+' conftest.er1
>conftest.err
7551 cat conftest.err
>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); } >/dev
/null
; then
7554 if test -s conftest.err
; then
7555 ac_cpp_err
=$ac_c_preproc_warn_flag
7562 if test -z "$ac_cpp_err"; then
7563 ac_cv_header_gif_lib_h
=yes
7565 echo "$as_me: failed program was:" >&5
7566 cat conftest.
$ac_ext >&5
7567 ac_cv_header_gif_lib_h
=no
7569 rm -f conftest.err conftest.
$ac_ext
7571 echo "$as_me:7571: result: $ac_cv_header_gif_lib_h" >&5
7572 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7573 if test $ac_cv_header_gif_lib_h = yes; then
7574 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7575 # Earlier versions can crash Emacs.
7576 echo "$as_me:7576: checking for EGifPutExtensionLast in -lungif" >&5
7577 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7578 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_check_lib_save_LIBS
=$LIBS
7582 LIBS
="-lungif $LIBS"
7583 cat >conftest.
$ac_ext <<_ACEOF
7584 #line 7584 "configure"
7585 #include "confdefs.h"
7587 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7593 char EGifPutExtensionLast ();
7597 EGifPutExtensionLast ();
7602 rm -f conftest.
$ac_objext conftest
$ac_exeext
7603 if { (eval echo "$as_me:7603: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>&5
7606 echo "$as_me:7606: \$? = $ac_status" >&5
7607 (exit $ac_status); } &&
7608 { ac_try
='test -s conftest$ac_exeext'
7609 { (eval echo "$as_me:7609: \"$ac_try\"") >&5
7612 echo "$as_me:7612: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7616 echo "$as_me: failed program was:" >&5
7617 cat conftest.
$ac_ext >&5
7618 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7621 LIBS
=$ac_check_lib_save_LIBS
7623 echo "$as_me:7623: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7624 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7625 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7633 if test "${HAVE_GIF}" = "yes"; then
7635 cat >>confdefs.h
<<\EOF
7642 ### Use Mac OS X Carbon API to implement GUI.
7644 if test "${with_carbon}" != "no"; then
7645 echo "$as_me:7645: checking for Carbon/Carbon.h" >&5
7646 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7647 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 cat >conftest.
$ac_ext <<_ACEOF
7651 #line 7651 "configure"
7652 #include "confdefs.h"
7653 #include <Carbon/Carbon.h>
7655 if { (eval echo "$as_me:7655: \"$ac_cpp conftest.$ac_ext\"") >&5
7656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7658 egrep -v '^ *\+' conftest.er1
>conftest.err
7660 cat conftest.err
>&5
7661 echo "$as_me:7661: \$? = $ac_status" >&5
7662 (exit $ac_status); } >/dev
/null
; then
7663 if test -s conftest.err
; then
7664 ac_cpp_err
=$ac_c_preproc_warn_flag
7671 if test -z "$ac_cpp_err"; then
7672 ac_cv_header_Carbon_Carbon_h
=yes
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.
$ac_ext >&5
7676 ac_cv_header_Carbon_Carbon_h
=no
7678 rm -f conftest.err conftest.
$ac_ext
7680 echo "$as_me:7680: result: $ac_cv_header_Carbon_Carbon_h" >&5
7681 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7682 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7688 if test "${HAVE_CARBON}" = "yes"; then
7690 cat >>confdefs.h
<<\EOF
7691 #define HAVE_CARBON 1
7696 ### Use session management (-lSM -lICE) if available
7698 if test "${HAVE_X11}" = "yes"; then
7699 echo "$as_me:7699: checking for X11/SM/SMlib.h" >&5
7700 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7701 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 cat >conftest.
$ac_ext <<_ACEOF
7705 #line 7705 "configure"
7706 #include "confdefs.h"
7707 #include <X11/SM/SMlib.h>
7709 if { (eval echo "$as_me:7709: \"$ac_cpp conftest.$ac_ext\"") >&5
7710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7712 egrep -v '^ *\+' conftest.er1
>conftest.err
7714 cat conftest.err
>&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit $ac_status); } >/dev
/null
; then
7717 if test -s conftest.err
; then
7718 ac_cpp_err
=$ac_c_preproc_warn_flag
7725 if test -z "$ac_cpp_err"; then
7726 ac_cv_header_X11_SM_SMlib_h
=yes
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.
$ac_ext >&5
7730 ac_cv_header_X11_SM_SMlib_h
=no
7732 rm -f conftest.err conftest.
$ac_ext
7734 echo "$as_me:7734: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7735 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7736 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7737 echo "$as_me:7737: checking for SmcOpenConnection in -lSM" >&5
7738 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7739 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 ac_check_lib_save_LIBS
=$LIBS
7744 cat >conftest.
$ac_ext <<_ACEOF
7745 #line 7745 "configure"
7746 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754 char SmcOpenConnection ();
7758 SmcOpenConnection ();
7763 rm -f conftest.
$ac_objext conftest
$ac_exeext
7764 if { (eval echo "$as_me:7764: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try
='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:7770: \"$ac_try\"") >&5
7773 echo "$as_me:7773: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_lib_SM_SmcOpenConnection
=yes
7777 echo "$as_me: failed program was:" >&5
7778 cat conftest.
$ac_ext >&5
7779 ac_cv_lib_SM_SmcOpenConnection
=no
7781 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7782 LIBS
=$ac_check_lib_save_LIBS
7784 echo "$as_me:7784: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7785 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7786 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7794 if test "${HAVE_X_SM}" = "yes"; then
7796 cat >>confdefs.h
<<\EOF
7802 *) LIBS
="-lSM -lICE $LIBS" ;;
7807 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7808 echo "$as_me:7808: checking whether netdb declares h_errno" >&5
7809 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7810 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 cat >conftest.
$ac_ext <<_ACEOF
7814 #line 7814 "configure"
7815 #include "confdefs.h"
7825 rm -f conftest.
$ac_objext conftest
$ac_exeext
7826 if { (eval echo "$as_me:7826: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try
='test -s conftest$ac_exeext'
7832 { (eval echo "$as_me:7832: \"$ac_try\"") >&5
7835 echo "$as_me:7835: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7837 emacs_cv_netdb_declares_h_errno
=yes
7839 echo "$as_me: failed program was:" >&5
7840 cat conftest.
$ac_ext >&5
7841 emacs_cv_netdb_declares_h_errno
=no
7843 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7845 echo "$as_me:7845: result: $emacs_cv_netdb_declares_h_errno" >&5
7846 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7847 if test $emacs_cv_netdb_declares_h_errno = yes; then
7849 cat >>confdefs.h
<<\EOF
7850 #define HAVE_H_ERRNO 1
7855 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7856 # for constant arguments. Useless!
7857 echo "$as_me:7857: checking for working alloca.h" >&5
7858 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7859 if test "${ac_cv_working_alloca_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 cat >conftest.
$ac_ext <<_ACEOF
7863 #line 7863 "configure"
7864 #include "confdefs.h"
7869 char *p = (char *) alloca (2 * sizeof (int));
7874 rm -f conftest.
$ac_objext conftest
$ac_exeext
7875 if { (eval echo "$as_me:7875: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>&5
7878 echo "$as_me:7878: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try
='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:7881: \"$ac_try\"") >&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_working_alloca_h
=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.
$ac_ext >&5
7890 ac_cv_working_alloca_h
=no
7892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7894 echo "$as_me:7894: result: $ac_cv_working_alloca_h" >&5
7895 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7896 if test $ac_cv_working_alloca_h = yes; then
7898 cat >>confdefs.h
<<\EOF
7899 #define HAVE_ALLOCA_H 1
7904 echo "$as_me:7904: checking for alloca" >&5
7905 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7906 if test "${ac_cv_func_alloca_works+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >conftest.
$ac_ext <<_ACEOF
7910 #line 7910 "configure"
7911 #include "confdefs.h"
7913 # define alloca __builtin_alloca
7916 # include <malloc.h>
7917 # define alloca _alloca
7920 # include <alloca.h>
7925 # ifndef alloca /* predefined by HP cc +Olibcalls */
7936 char *p = (char *) alloca (1);
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext
7942 if { (eval echo "$as_me:7942: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>&5
7945 echo "$as_me:7945: \$? = $ac_status" >&5
7946 (exit $ac_status); } &&
7947 { ac_try
='test -s conftest$ac_exeext'
7948 { (eval echo "$as_me:7948: \"$ac_try\"") >&5
7951 echo "$as_me:7951: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_func_alloca_works
=yes
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.
$ac_ext >&5
7957 ac_cv_func_alloca_works
=no
7959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7961 echo "$as_me:7961: result: $ac_cv_func_alloca_works" >&5
7962 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7964 if test $ac_cv_func_alloca_works = yes; then
7966 cat >>confdefs.h
<<\EOF
7967 #define HAVE_ALLOCA 1
7971 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7972 # that cause trouble. Some versions do not even contain alloca or
7973 # contain a buggy version. If you still want to use their alloca,
7974 # use ar to extract alloca.o from them instead of compiling alloca.c.
7976 ALLOCA
=alloca.
$ac_objext
7978 cat >>confdefs.h
<<\EOF
7982 echo "$as_me:7982: checking whether \`alloca.c' needs Cray hooks" >&5
7983 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7984 if test "${ac_cv_os_cray+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.
$ac_ext <<_ACEOF
7988 #line 7988 "configure"
7989 #include "confdefs.h"
7990 #if defined(CRAY) && ! defined(CRAY2)
7997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998 egrep "webecray" >/dev
/null
2>&1; then
8006 echo "$as_me:8006: result: $ac_cv_os_cray" >&5
8007 echo "${ECHO_T}$ac_cv_os_cray" >&6
8008 if test $ac_cv_os_cray = yes; then
8009 for ac_func
in _getb67 GETB67 getb67
; do
8010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8011 echo "$as_me:8011: checking for $ac_func" >&5
8012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_var+set}\" = set"; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 cat >conftest.
$ac_ext <<_ACEOF
8017 #line 8017 "configure"
8018 #include "confdefs.h"
8019 /* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char $ac_func (); below. */
8022 /* Override any gcc2 internal prototype to avoid an error. */
8026 /* We use char because int might match the return type of a gcc2
8027 builtin and then its argument prototype would still apply. */
8034 /* The GNU C library defines this for functions which it implements
8035 to always fail with ENOSYS. Some functions are actually named
8036 something starting with __ and the normal name is an alias. */
8037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8047 rm -f conftest.
$ac_objext conftest
$ac_exeext
8048 if { (eval echo "$as_me:8048: \"$ac_link\"") >&5
8049 (eval $ac_link) 2>&5
8051 echo "$as_me:8051: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try
='test -s conftest$ac_exeext'
8054 { (eval echo "$as_me:8054: \"$ac_try\"") >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 (exit $ac_status); }; }; then
8059 eval "$as_ac_var=yes"
8061 echo "$as_me: failed program was:" >&5
8062 cat conftest.
$ac_ext >&5
8063 eval "$as_ac_var=no"
8065 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8067 echo "$as_me:8067: result: `eval echo '${'$as_ac_var'}'`" >&5
8068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8069 if test `eval echo '${'$as_ac_var'}'` = yes; then
8071 cat >>confdefs.h
<<EOF
8072 #define CRAY_STACKSEG_END $ac_func
8081 echo "$as_me:8081: checking stack direction for C alloca" >&5
8082 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8083 if test "${ac_cv_c_stack_direction+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 if test "$cross_compiling" = yes; then
8087 ac_cv_c_stack_direction
=0
8089 cat >conftest.
$ac_ext <<_ACEOF
8090 #line 8090 "configure"
8091 #include "confdefs.h"
8093 find_stack_direction ()
8095 static char *addr = 0;
8100 return find_stack_direction ();
8103 return (&dummy > addr) ? 1 : -1;
8109 exit (find_stack_direction () < 0);
8112 rm -f conftest
$ac_exeext
8113 if { (eval echo "$as_me:8113: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8118 { (eval echo "$as_me:8118: \"$ac_try\"") >&5
8121 echo "$as_me:8121: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_cv_c_stack_direction
=1
8125 echo "$as_me: program exited with status $ac_status" >&5
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8128 ac_cv_c_stack_direction
=-1
8130 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8133 echo "$as_me:8133: result: $ac_cv_c_stack_direction" >&5
8134 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8136 cat >>confdefs.h
<<EOF
8137 #define STACK_DIRECTION $ac_cv_c_stack_direction
8142 # fmod, logb, and frexp are found in -lm on most systems.
8143 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8145 echo "$as_me:8145: checking for sqrt in -lm" >&5
8146 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8147 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 ac_check_lib_save_LIBS
=$LIBS
8152 cat >conftest.
$ac_ext <<_ACEOF
8153 #line 8153 "configure"
8154 #include "confdefs.h"
8156 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8171 rm -f conftest.
$ac_objext conftest
$ac_exeext
8172 if { (eval echo "$as_me:8172: \"$ac_link\"") >&5
8173 (eval $ac_link) 2>&5
8175 echo "$as_me:8175: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try
='test -s conftest$ac_exeext'
8178 { (eval echo "$as_me:8178: \"$ac_try\"") >&5
8181 echo "$as_me:8181: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 ac_cv_lib_m_sqrt
=yes
8185 echo "$as_me: failed program was:" >&5
8186 cat conftest.
$ac_ext >&5
8189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8190 LIBS
=$ac_check_lib_save_LIBS
8192 echo "$as_me:8192: result: $ac_cv_lib_m_sqrt" >&5
8193 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8194 if test $ac_cv_lib_m_sqrt = yes; then
8195 cat >>confdefs.h
<<EOF
8203 # Check for mail-locking functions in a "mail" library
8205 echo "$as_me:8205: checking for maillock in -lmail" >&5
8206 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8207 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 ac_check_lib_save_LIBS
=$LIBS
8212 cat >conftest.
$ac_ext <<_ACEOF
8213 #line 8213 "configure"
8214 #include "confdefs.h"
8216 /* Override any gcc2 internal prototype to avoid an error. */
8220 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8231 rm -f conftest.
$ac_objext conftest
$ac_exeext
8232 if { (eval echo "$as_me:8232: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>&5
8235 echo "$as_me:8235: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try
='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:8238: \"$ac_try\"") >&5
8241 echo "$as_me:8241: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_lib_mail_maillock
=yes
8245 echo "$as_me: failed program was:" >&5
8246 cat conftest.
$ac_ext >&5
8247 ac_cv_lib_mail_maillock
=no
8249 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8250 LIBS
=$ac_check_lib_save_LIBS
8252 echo "$as_me:8252: result: $ac_cv_lib_mail_maillock" >&5
8253 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8254 if test $ac_cv_lib_mail_maillock = yes; then
8255 cat >>confdefs.h
<<EOF
8256 #define HAVE_LIBMAIL 1
8263 echo "$as_me:8263: checking for maillock in -llockfile" >&5
8264 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8265 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_check_lib_save_LIBS
=$LIBS
8269 LIBS
="-llockfile $LIBS"
8270 cat >conftest.
$ac_ext <<_ACEOF
8271 #line 8271 "configure"
8272 #include "confdefs.h"
8274 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8289 rm -f conftest.
$ac_objext conftest
$ac_exeext
8290 if { (eval echo "$as_me:8290: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:8293: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try
='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:8296: \"$ac_try\"") >&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_lib_lockfile_maillock
=yes
8303 echo "$as_me: failed program was:" >&5
8304 cat conftest.
$ac_ext >&5
8305 ac_cv_lib_lockfile_maillock
=no
8307 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8308 LIBS
=$ac_check_lib_save_LIBS
8310 echo "$as_me:8310: result: $ac_cv_lib_lockfile_maillock" >&5
8311 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8312 if test $ac_cv_lib_lockfile_maillock = yes; then
8313 cat >>confdefs.h
<<EOF
8314 #define HAVE_LIBLOCKFILE 1
8317 LIBS
="-llockfile $LIBS"
8321 # If we have the shared liblockfile, assume we must use it for mail
8322 # locking (e.g. Debian). If we couldn't link against liblockfile
8323 # (no liblockfile.a installed), ensure that we don't need to.
8324 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8325 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8326 set dummy liblockfile.so
; ac_word
=$2
8327 echo "$as_me:8327: checking for $ac_word" >&5
8328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8329 if test "${ac_cv_prog_liblockfile+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 if test -n "$liblockfile"; then
8333 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8335 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8336 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8337 for ac_dir
in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir
=.
8340 $as_executable_p "$ac_dir/$ac_word" ||
continue
8341 ac_cv_prog_liblockfile
="yes"
8342 echo "$as_me:8342: found $ac_dir/$ac_word" >&5
8346 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8349 liblockfile
=$ac_cv_prog_liblockfile
8350 if test -n "$liblockfile"; then
8351 echo "$as_me:8351: result: $liblockfile" >&5
8352 echo "${ECHO_T}$liblockfile" >&6
8354 echo "$as_me:8354: result: no" >&5
8355 echo "${ECHO_T}no" >&6
8358 if test $ac_cv_prog_liblockfile = yes; then
8359 { { echo "$as_me:8359: error: Shared liblockfile found but can't link against it.
8360 This probably means that movemail could lose mail.
8361 There may be a \`development' package to install containing liblockfile." >&5
8362 echo "$as_me: error: Shared liblockfile found but can't link against it.
8363 This probably means that movemail could lose mail.
8364 There may be a \`development' package to install containing liblockfile." >&2;}
8365 { (exit 1); exit 1; }; }
8367 cat >>confdefs.h
<<\EOF
8368 #define LIBMAIL -llockfile
8375 for ac_func
in touchlock
8377 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8378 echo "$as_me:8378: checking for $ac_func" >&5
8379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8380 if eval "test \"\${$as_ac_var+set}\" = set"; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 cat >conftest.
$ac_ext <<_ACEOF
8384 #line 8384 "configure"
8385 #include "confdefs.h"
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char $ac_func (); below. */
8389 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8401 /* The GNU C library defines this for functions which it implements
8402 to always fail with ENOSYS. Some functions are actually named
8403 something starting with __ and the normal name is an alias. */
8404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8414 rm -f conftest.
$ac_objext conftest
$ac_exeext
8415 if { (eval echo "$as_me:8415: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>&5
8418 echo "$as_me:8418: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try
='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:8421: \"$ac_try\"") >&5
8424 echo "$as_me:8424: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 eval "$as_ac_var=yes"
8428 echo "$as_me: failed program was:" >&5
8429 cat conftest.
$ac_ext >&5
8430 eval "$as_ac_var=no"
8432 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8434 echo "$as_me:8434: result: `eval echo '${'$as_ac_var'}'`" >&5
8435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8436 if test `eval echo '${'$as_ac_var'}'` = yes; then
8437 cat >>confdefs.h
<<EOF
8438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8444 for ac_header
in maillock.h
8446 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447 echo "$as_me:8447: checking for $ac_header" >&5
8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 cat >conftest.
$ac_ext <<_ACEOF
8453 #line 8453 "configure"
8454 #include "confdefs.h"
8455 #include <$ac_header>
8457 if { (eval echo "$as_me:8457: \"$ac_cpp conftest.$ac_ext\"") >&5
8458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8460 egrep -v '^ *\+' conftest.er1
>conftest.err
8462 cat conftest.err
>&5
8463 echo "$as_me:8463: \$? = $ac_status" >&5
8464 (exit $ac_status); } >/dev
/null
; then
8465 if test -s conftest.err
; then
8466 ac_cpp_err
=$ac_c_preproc_warn_flag
8473 if test -z "$ac_cpp_err"; then
8474 eval "$as_ac_Header=yes"
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.
$ac_ext >&5
8478 eval "$as_ac_Header=no"
8480 rm -f conftest.err conftest.
$ac_ext
8482 echo "$as_me:8482: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h
<<EOF
8486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492 for ac_func
in gethostname getdomainname dup2 \
8493 rename closedir mkdir
rmdir sysinfo \
8494 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8495 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8496 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8497 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8498 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8499 gai_strerror mkstemp getline getdelim
8501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8502 echo "$as_me:8502: checking for $ac_func" >&5
8503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_var+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 cat >conftest.
$ac_ext <<_ACEOF
8508 #line 8508 "configure"
8509 #include "confdefs.h"
8510 /* System header to define __stub macros and hopefully few prototypes,
8511 which can conflict with char $ac_func (); below. */
8513 /* Override any gcc2 internal prototype to avoid an error. */
8517 /* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8525 /* The GNU C library defines this for functions which it implements
8526 to always fail with ENOSYS. Some functions are actually named
8527 something starting with __ and the normal name is an alias. */
8528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8538 rm -f conftest.
$ac_objext conftest
$ac_exeext
8539 if { (eval echo "$as_me:8539: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try
='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8550 eval "$as_ac_var=yes"
8552 echo "$as_me: failed program was:" >&5
8553 cat conftest.
$ac_ext >&5
8554 eval "$as_ac_var=no"
8556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8558 echo "$as_me:8558: result: `eval echo '${'$as_ac_var'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8560 if test `eval echo '${'$as_ac_var'}'` = yes; then
8561 cat >>confdefs.h
<<EOF
8562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8568 for ac_header
in sys
/un.h
8570 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8571 echo "$as_me:8571: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.
$ac_ext <<_ACEOF
8577 #line 8577 "configure"
8578 #include "confdefs.h"
8579 #include <$ac_header>
8581 if { (eval echo "$as_me:8581: \"$ac_cpp conftest.$ac_ext\"") >&5
8582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8584 egrep -v '^ *\+' conftest.er1
>conftest.err
8586 cat conftest.err
>&5
8587 echo "$as_me:8587: \$? = $ac_status" >&5
8588 (exit $ac_status); } >/dev
/null
; then
8589 if test -s conftest.err
; then
8590 ac_cpp_err
=$ac_c_preproc_warn_flag
8597 if test -z "$ac_cpp_err"; then
8598 eval "$as_ac_Header=yes"
8600 echo "$as_me: failed program was:" >&5
8601 cat conftest.
$ac_ext >&5
8602 eval "$as_ac_Header=no"
8604 rm -f conftest.err conftest.
$ac_ext
8606 echo "$as_me:8606: result: `eval echo '${'$as_ac_Header'}'`" >&5
8607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609 cat >>confdefs.h
<<EOF
8610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8616 for ac_header
in sys
/time.h unistd.h
8618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619 echo "$as_me:8619: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8625 #line 8625 "configure"
8626 #include "confdefs.h"
8627 #include <$ac_header>
8629 if { (eval echo "$as_me:8629: \"$ac_cpp conftest.$ac_ext\"") >&5
8630 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8632 egrep -v '^ *\+' conftest.er1
>conftest.err
8634 cat conftest.err
>&5
8635 echo "$as_me:8635: \$? = $ac_status" >&5
8636 (exit $ac_status); } >/dev
/null
; then
8637 if test -s conftest.err
; then
8638 ac_cpp_err
=$ac_c_preproc_warn_flag
8645 if test -z "$ac_cpp_err"; then
8646 eval "$as_ac_Header=yes"
8648 echo "$as_me: failed program was:" >&5
8649 cat conftest.
$ac_ext >&5
8650 eval "$as_ac_Header=no"
8652 rm -f conftest.err conftest.
$ac_ext
8654 echo "$as_me:8654: result: `eval echo '${'$as_ac_Header'}'`" >&5
8655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8657 cat >>confdefs.h
<<EOF
8658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8664 for ac_func
in alarm
8666 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8667 echo "$as_me:8667: checking for $ac_func" >&5
8668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8669 if eval "test \"\${$as_ac_var+set}\" = set"; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 cat >conftest.
$ac_ext <<_ACEOF
8673 #line 8673 "configure"
8674 #include "confdefs.h"
8675 /* System header to define __stub macros and hopefully few prototypes,
8676 which can conflict with char $ac_func (); below. */
8678 /* Override any gcc2 internal prototype to avoid an error. */
8682 /* We use char because int might match the return type of a gcc2
8683 builtin and then its argument prototype would still apply. */
8690 /* The GNU C library defines this for functions which it implements
8691 to always fail with ENOSYS. Some functions are actually named
8692 something starting with __ and the normal name is an alias. */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8703 rm -f conftest.
$ac_objext conftest
$ac_exeext
8704 if { (eval echo "$as_me:8704: \"$ac_link\"") >&5
8705 (eval $ac_link) 2>&5
8707 echo "$as_me:8707: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try
='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:8710: \"$ac_try\"") >&5
8713 echo "$as_me:8713: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 eval "$as_ac_var=yes"
8717 echo "$as_me: failed program was:" >&5
8718 cat conftest.
$ac_ext >&5
8719 eval "$as_ac_var=no"
8721 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8723 echo "$as_me:8723: result: `eval echo '${'$as_ac_var'}'`" >&5
8724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h
<<EOF
8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8733 echo "$as_me:8733: checking for working mktime" >&5
8734 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8735 if test "${ac_cv_func_working_mktime+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 if test "$cross_compiling" = yes; then
8739 ac_cv_func_working_mktime
=no
8741 cat >conftest.
$ac_ext <<_ACEOF
8742 #line 8742 "configure"
8743 #include "confdefs.h"
8744 /* Test program from Paul Eggert and Tony Leneis. */
8745 #if TIME_WITH_SYS_TIME
8746 # include <sys/time.h>
8749 # if HAVE_SYS_TIME_H
8750 # include <sys/time.h>
8757 # include <unistd.h>
8761 # define alarm(X) /* empty */
8764 /* Work around redefinition to rpl_putenv by other config tests. */
8767 static time_t time_t_max;
8769 /* Values we'll use to set the TZ environment variable. */
8770 static const char *const tz_strings[] = {
8771 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8772 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8774 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8776 /* Fail if mktime fails to convert a date in the spring-forward gap.
8777 Based on a problem report from Andreas Jaeger. */
8779 spring_forward_gap ()
8781 /* glibc (up to about 1998-10-07) failed this test. */
8784 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8785 instead of "TZ=America/Vancouver" in order to detect the bug even
8786 on systems that don't support the Olson extension, or don't have the
8787 full zoneinfo tables installed. */
8788 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8797 if (mktime (&tm) == (time_t)-1)
8806 if ((lt = localtime (&now)) && mktime (lt) != now)
8808 now = time_t_max - now;
8809 if ((lt = localtime (&now)) && mktime (lt) != now)
8816 /* Based on code from Ariel Faigon. */
8826 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8836 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8838 if (now != (time_t) -1)
8840 struct tm *lt = localtime (&now);
8842 && lt->tm_year == tm.tm_year
8843 && lt->tm_mon == tm.tm_mon
8844 && lt->tm_mday == tm.tm_mday
8845 && lt->tm_hour == tm.tm_hour
8846 && lt->tm_min == tm.tm_min
8847 && lt->tm_sec == tm.tm_sec
8848 && lt->tm_yday == tm.tm_yday
8849 && lt->tm_wday == tm.tm_wday
8850 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8851 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8862 /* This test makes some buggy mktime implementations loop.
8863 Give up after 60 seconds; a mktime slower than that
8864 isn't worth using anyway. */
8867 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8870 delta = time_t_max / 997; /* a suitable prime number */
8871 for (i = 0; i < N_STRINGS; i++)
8874 putenv (tz_strings[i]);
8876 for (t = 0; t <= time_t_max - delta; t += delta)
8878 mktime_test ((time_t) 60 * 60);
8879 mktime_test ((time_t) 60 * 60 * 24);
8881 for (j = 1; 0 < j; j *= 2)
8883 bigtime_test (j - 1);
8886 spring_forward_gap ();
8890 rm -f conftest
$ac_exeext
8891 if { (eval echo "$as_me:8891: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8894 echo "$as_me:8894: \$? = $ac_status" >&5
8895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8896 { (eval echo "$as_me:8896: \"$ac_try\"") >&5
8899 echo "$as_me:8899: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_cv_func_working_mktime
=yes
8903 echo "$as_me: program exited with status $ac_status" >&5
8904 echo "$as_me: failed program was:" >&5
8905 cat conftest.
$ac_ext >&5
8906 ac_cv_func_working_mktime
=no
8908 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8911 echo "$as_me:8911: result: $ac_cv_func_working_mktime" >&5
8912 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8913 if test $ac_cv_func_working_mktime = no
; then
8914 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8917 if test "$ac_cv_func_working_mktime" = no
; then
8919 cat >>confdefs.h
<<\EOF
8920 #define BROKEN_MKTIME 1
8925 ac_have_func
=no
# yes means we've found a way to get the load average.
8929 # Check for getloadavg, but be sure not to touch the cache variable.
8930 (echo "$as_me:8930: checking for getloadavg" >&5
8931 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8932 if test "${ac_cv_func_getloadavg+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 cat >conftest.
$ac_ext <<_ACEOF
8936 #line 8936 "configure"
8937 #include "confdefs.h"
8938 /* System header to define __stub macros and hopefully few prototypes,
8939 which can conflict with char getloadavg (); below. */
8941 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8966 rm -f conftest.
$ac_objext conftest
$ac_exeext
8967 if { (eval echo "$as_me:8967: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>&5
8970 echo "$as_me:8970: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try
='test -s conftest$ac_exeext'
8973 { (eval echo "$as_me:8973: \"$ac_try\"") >&5
8976 echo "$as_me:8976: \$? = $ac_status" >&5
8977 (exit $ac_status); }; }; then
8978 ac_cv_func_getloadavg
=yes
8980 echo "$as_me: failed program was:" >&5
8981 cat conftest.
$ac_ext >&5
8982 ac_cv_func_getloadavg
=no
8984 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8986 echo "$as_me:8986: result: $ac_cv_func_getloadavg" >&5
8987 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8988 if test $ac_cv_func_getloadavg = yes; then
8993 ) && ac_have_func
=yes
8995 # On HPUX9, an unprivileged user can get load averages through this function.
8997 for ac_func
in pstat_getdynamic
8999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9000 echo "$as_me:9000: checking for $ac_func" >&5
9001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_var+set}\" = set"; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 cat >conftest.
$ac_ext <<_ACEOF
9006 #line 9006 "configure"
9007 #include "confdefs.h"
9008 /* System header to define __stub macros and hopefully few prototypes,
9009 which can conflict with char $ac_func (); below. */
9011 /* Override any gcc2 internal prototype to avoid an error. */
9015 /* We use char because int might match the return type of a gcc2
9016 builtin and then its argument prototype would still apply. */
9023 /* The GNU C library defines this for functions which it implements
9024 to always fail with ENOSYS. Some functions are actually named
9025 something starting with __ and the normal name is an alias. */
9026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9036 rm -f conftest.
$ac_objext conftest
$ac_exeext
9037 if { (eval echo "$as_me:9037: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>&5
9040 echo "$as_me:9040: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try
='test -s conftest$ac_exeext'
9043 { (eval echo "$as_me:9043: \"$ac_try\"") >&5
9046 echo "$as_me:9046: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
9048 eval "$as_ac_var=yes"
9050 echo "$as_me: failed program was:" >&5
9051 cat conftest.
$ac_ext >&5
9052 eval "$as_ac_var=no"
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9056 echo "$as_me:9056: result: `eval echo '${'$as_ac_var'}'`" >&5
9057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9058 if test `eval echo '${'$as_ac_var'}'` = yes; then
9059 cat >>confdefs.h
<<EOF
9060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9066 # Solaris has libkstat which does not require root.
9068 echo "$as_me:9068: checking for kstat_open in -lkstat" >&5
9069 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9070 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 ac_check_lib_save_LIBS
=$LIBS
9074 LIBS
="-lkstat $LIBS"
9075 cat >conftest.
$ac_ext <<_ACEOF
9076 #line 9076 "configure"
9077 #include "confdefs.h"
9079 /* Override any gcc2 internal prototype to avoid an error. */
9083 /* We use char because int might match the return type of a gcc2
9084 builtin and then its argument prototype would still apply. */
9094 rm -f conftest.
$ac_objext conftest
$ac_exeext
9095 if { (eval echo "$as_me:9095: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>&5
9098 echo "$as_me:9098: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try
='test -s conftest$ac_exeext'
9101 { (eval echo "$as_me:9101: \"$ac_try\"") >&5
9104 echo "$as_me:9104: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_cv_lib_kstat_kstat_open
=yes
9108 echo "$as_me: failed program was:" >&5
9109 cat conftest.
$ac_ext >&5
9110 ac_cv_lib_kstat_kstat_open
=no
9112 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9113 LIBS
=$ac_check_lib_save_LIBS
9115 echo "$as_me:9115: result: $ac_cv_lib_kstat_kstat_open" >&5
9116 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9117 if test $ac_cv_lib_kstat_kstat_open = yes; then
9118 cat >>confdefs.h
<<EOF
9119 #define HAVE_LIBKSTAT 1
9122 LIBS
="-lkstat $LIBS"
9126 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
9128 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9129 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9130 # to get the right answer into the cache.
9131 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9132 if test $ac_have_func = no
; then
9133 echo "$as_me:9133: checking for elf_begin in -lelf" >&5
9134 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9135 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 ac_check_lib_save_LIBS
=$LIBS
9140 cat >conftest.
$ac_ext <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9144 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9159 rm -f conftest.
$ac_objext conftest
$ac_exeext
9160 if { (eval echo "$as_me:9160: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try
='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9169 echo "$as_me:9169: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_elf_elf_begin
=yes
9173 echo "$as_me: failed program was:" >&5
9174 cat conftest.
$ac_ext >&5
9175 ac_cv_lib_elf_elf_begin
=no
9177 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9178 LIBS
=$ac_check_lib_save_LIBS
9180 echo "$as_me:9180: result: $ac_cv_lib_elf_elf_begin" >&5
9181 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9182 if test $ac_cv_lib_elf_elf_begin = yes; then
9187 if test $ac_have_func = no
; then
9188 echo "$as_me:9188: checking for kvm_open in -lkvm" >&5
9189 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9190 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 ac_check_lib_save_LIBS
=$LIBS
9195 cat >conftest.
$ac_ext <<_ACEOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9199 /* Override any gcc2 internal prototype to avoid an error. */
9203 /* We use char because int might match the return type of a gcc2
9204 builtin and then its argument prototype would still apply. */
9214 rm -f conftest.
$ac_objext conftest
$ac_exeext
9215 if { (eval echo "$as_me:9215: \"$ac_link\"") >&5
9216 (eval $ac_link) 2>&5
9218 echo "$as_me:9218: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try
='test -s conftest$ac_exeext'
9221 { (eval echo "$as_me:9221: \"$ac_try\"") >&5
9224 echo "$as_me:9224: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_cv_lib_kvm_kvm_open
=yes
9228 echo "$as_me: failed program was:" >&5
9229 cat conftest.
$ac_ext >&5
9230 ac_cv_lib_kvm_kvm_open
=no
9232 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9233 LIBS
=$ac_check_lib_save_LIBS
9235 echo "$as_me:9235: result: $ac_cv_lib_kvm_kvm_open" >&5
9236 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9237 if test $ac_cv_lib_kvm_kvm_open = yes; then
9241 # Check for the 4.4BSD definition of getloadavg.
9242 echo "$as_me:9242: checking for getloadavg in -lutil" >&5
9243 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9244 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_check_lib_save_LIBS
=$LIBS
9249 cat >conftest.
$ac_ext <<_ACEOF
9250 #line 9250 "configure"
9251 #include "confdefs.h"
9253 /* Override any gcc2 internal prototype to avoid an error. */
9257 /* We use char because int might match the return type of a gcc2
9258 builtin and then its argument prototype would still apply. */
9268 rm -f conftest.
$ac_objext conftest
$ac_exeext
9269 if { (eval echo "$as_me:9269: \"$ac_link\"") >&5
9270 (eval $ac_link) 2>&5
9272 echo "$as_me:9272: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try
='test -s conftest$ac_exeext'
9275 { (eval echo "$as_me:9275: \"$ac_try\"") >&5
9278 echo "$as_me:9278: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 ac_cv_lib_util_getloadavg
=yes
9282 echo "$as_me: failed program was:" >&5
9283 cat conftest.
$ac_ext >&5
9284 ac_cv_lib_util_getloadavg
=no
9286 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9287 LIBS
=$ac_check_lib_save_LIBS
9289 echo "$as_me:9289: result: $ac_cv_lib_util_getloadavg" >&5
9290 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9291 if test $ac_cv_lib_util_getloadavg = yes; then
9292 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9297 if test $ac_have_func = no
; then
9298 # There is a commonly available library for RS/6000 AIX.
9299 # Since it is not a standard part of AIX, it might be installed locally.
9300 ac_getloadavg_LIBS
=$LIBS
9301 LIBS
="-L/usr/local/lib $LIBS"
9302 echo "$as_me:9302: checking for getloadavg in -lgetloadavg" >&5
9303 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9304 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 ac_check_lib_save_LIBS
=$LIBS
9308 LIBS
="-lgetloadavg $LIBS"
9309 cat >conftest.
$ac_ext <<_ACEOF
9310 #line 9310 "configure"
9311 #include "confdefs.h"
9313 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9328 rm -f conftest.
$ac_objext conftest
$ac_exeext
9329 if { (eval echo "$as_me:9329: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>&5
9332 echo "$as_me:9332: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try
='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:9335: \"$ac_try\"") >&5
9338 echo "$as_me:9338: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 ac_cv_lib_getloadavg_getloadavg
=yes
9342 echo "$as_me: failed program was:" >&5
9343 cat conftest.
$ac_ext >&5
9344 ac_cv_lib_getloadavg_getloadavg
=no
9346 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9347 LIBS
=$ac_check_lib_save_LIBS
9349 echo "$as_me:9349: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9350 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9351 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9352 LIBS
="-lgetloadavg $LIBS"
9354 LIBS
=$ac_getloadavg_LIBS
9359 # Make sure it is really in the library, if we think we found it,
9360 # otherwise set up the replacement function.
9362 for ac_func
in getloadavg
9364 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9365 echo "$as_me:9365: checking for $ac_func" >&5
9366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9367 if eval "test \"\${$as_ac_var+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 cat >conftest.
$ac_ext <<_ACEOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9373 /* System header to define __stub macros and hopefully few prototypes,
9374 which can conflict with char $ac_func (); below. */
9376 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9388 /* The GNU C library defines this for functions which it implements
9389 to always fail with ENOSYS. Some functions are actually named
9390 something starting with __ and the normal name is an alias. */
9391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9401 rm -f conftest.
$ac_objext conftest
$ac_exeext
9402 if { (eval echo "$as_me:9402: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9405 echo "$as_me:9405: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try
='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:9408: \"$ac_try\"") >&5
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 eval "$as_ac_var=yes"
9415 echo "$as_me: failed program was:" >&5
9416 cat conftest.
$ac_ext >&5
9417 eval "$as_ac_var=no"
9419 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9421 echo "$as_me:9421: result: `eval echo '${'$as_ac_var'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9423 if test `eval echo '${'$as_ac_var'}'` = yes; then
9424 cat >>confdefs.h
<<EOF
9425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9429 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9431 cat >>confdefs.h
<<\EOF
9432 #define C_GETLOADAVG 1
9435 # Figure out what our getloadavg.c needs.
9437 echo "$as_me:9437: checking for sys/dg_sys_info.h" >&5
9438 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 cat >conftest.
$ac_ext <<_ACEOF
9443 #line 9443 "configure"
9444 #include "confdefs.h"
9445 #include <sys/dg_sys_info.h>
9447 if { (eval echo "$as_me:9447: \"$ac_cpp conftest.$ac_ext\"") >&5
9448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9450 egrep -v '^ *\+' conftest.er1
>conftest.err
9452 cat conftest.err
>&5
9453 echo "$as_me:9453: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev
/null
; then
9455 if test -s conftest.err
; then
9456 ac_cpp_err
=$ac_c_preproc_warn_flag
9463 if test -z "$ac_cpp_err"; then
9464 ac_cv_header_sys_dg_sys_info_h
=yes
9466 echo "$as_me: failed program was:" >&5
9467 cat conftest.
$ac_ext >&5
9468 ac_cv_header_sys_dg_sys_info_h
=no
9470 rm -f conftest.err conftest.
$ac_ext
9472 echo "$as_me:9472: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9473 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9474 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9477 cat >>confdefs.h
<<\EOF
9481 echo "$as_me:9481: checking for dg_sys_info in -ldgc" >&5
9482 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9483 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 ac_check_lib_save_LIBS
=$LIBS
9488 cat >conftest.
$ac_ext <<_ACEOF
9489 #line 9489 "configure"
9490 #include "confdefs.h"
9492 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char dg_sys_info ();
9507 rm -f conftest.
$ac_objext conftest
$ac_exeext
9508 if { (eval echo "$as_me:9508: \"$ac_link\"") >&5
9509 (eval $ac_link) 2>&5
9511 echo "$as_me:9511: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try
='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:9514: \"$ac_try\"") >&5
9517 echo "$as_me:9517: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 ac_cv_lib_dgc_dg_sys_info
=yes
9521 echo "$as_me: failed program was:" >&5
9522 cat conftest.
$ac_ext >&5
9523 ac_cv_lib_dgc_dg_sys_info
=no
9525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9526 LIBS
=$ac_check_lib_save_LIBS
9528 echo "$as_me:9528: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9530 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9531 cat >>confdefs.h
<<EOF
9532 #define HAVE_LIBDGC 1
9541 echo "$as_me:9541: checking for locale.h" >&5
9542 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9543 if test "${ac_cv_header_locale_h+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.
$ac_ext <<_ACEOF
9547 #line 9547 "configure"
9548 #include "confdefs.h"
9551 if { (eval echo "$as_me:9551: \"$ac_cpp conftest.$ac_ext\"") >&5
9552 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9554 egrep -v '^ *\+' conftest.er1
>conftest.err
9556 cat conftest.err
>&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 (exit $ac_status); } >/dev
/null
; then
9559 if test -s conftest.err
; then
9560 ac_cpp_err
=$ac_c_preproc_warn_flag
9567 if test -z "$ac_cpp_err"; then
9568 ac_cv_header_locale_h
=yes
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.
$ac_ext >&5
9572 ac_cv_header_locale_h
=no
9574 rm -f conftest.err conftest.
$ac_ext
9576 echo "$as_me:9576: result: $ac_cv_header_locale_h" >&5
9577 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9579 for ac_func
in setlocale
9581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9582 echo "$as_me:9582: checking for $ac_func" >&5
9583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9584 if eval "test \"\${$as_ac_var+set}\" = set"; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 cat >conftest.
$ac_ext <<_ACEOF
9588 #line 9588 "configure"
9589 #include "confdefs.h"
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below. */
9593 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9618 rm -f conftest.
$ac_objext conftest
$ac_exeext
9619 if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>&5
9622 echo "$as_me:9622: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try
='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:9625: \"$ac_try\"") >&5
9628 echo "$as_me:9628: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 eval "$as_ac_var=yes"
9632 echo "$as_me: failed program was:" >&5
9633 cat conftest.
$ac_ext >&5
9634 eval "$as_ac_var=no"
9636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9638 echo "$as_me:9638: result: `eval echo '${'$as_ac_var'}'`" >&5
9639 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9640 if test `eval echo '${'$as_ac_var'}'` = yes; then
9641 cat >>confdefs.h
<<EOF
9642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9649 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9650 # Irix 4.0.5F has the header but not the library.
9651 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9654 cat >>confdefs.h
<<\EOF
9660 if test $ac_have_func = no
; then
9661 echo "$as_me:9661: checking for inq_stats/cpustats.h" >&5
9662 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9663 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.
$ac_ext <<_ACEOF
9667 #line 9667 "configure"
9668 #include "confdefs.h"
9669 #include <inq_stats/cpustats.h>
9671 if { (eval echo "$as_me:9671: \"$ac_cpp conftest.$ac_ext\"") >&5
9672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9674 egrep -v '^ *\+' conftest.er1
>conftest.err
9676 cat conftest.err
>&5
9677 echo "$as_me:9677: \$? = $ac_status" >&5
9678 (exit $ac_status); } >/dev
/null
; then
9679 if test -s conftest.err
; then
9680 ac_cpp_err
=$ac_c_preproc_warn_flag
9687 if test -z "$ac_cpp_err"; then
9688 ac_cv_header_inq_stats_cpustats_h
=yes
9690 echo "$as_me: failed program was:" >&5
9691 cat conftest.
$ac_ext >&5
9692 ac_cv_header_inq_stats_cpustats_h
=no
9694 rm -f conftest.err conftest.
$ac_ext
9696 echo "$as_me:9696: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9697 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9698 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9701 cat >>confdefs.h
<<\EOF
9705 cat >>confdefs.h
<<\EOF
9713 if test $ac_have_func = no
; then
9714 echo "$as_me:9714: checking for sys/cpustats.h" >&5
9715 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9716 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 cat >conftest.
$ac_ext <<_ACEOF
9720 #line 9720 "configure"
9721 #include "confdefs.h"
9722 #include <sys/cpustats.h>
9724 if { (eval echo "$as_me:9724: \"$ac_cpp conftest.$ac_ext\"") >&5
9725 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9727 egrep -v '^ *\+' conftest.er1
>conftest.err
9729 cat conftest.err
>&5
9730 echo "$as_me:9730: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev
/null
; then
9732 if test -s conftest.err
; then
9733 ac_cpp_err
=$ac_c_preproc_warn_flag
9740 if test -z "$ac_cpp_err"; then
9741 ac_cv_header_sys_cpustats_h
=yes
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.
$ac_ext >&5
9745 ac_cv_header_sys_cpustats_h
=no
9747 rm -f conftest.err conftest.
$ac_ext
9749 echo "$as_me:9749: result: $ac_cv_header_sys_cpustats_h" >&5
9750 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9751 if test $ac_cv_header_sys_cpustats_h = yes; then
9752 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9760 if test $ac_have_func = no
; then
9762 for ac_header
in mach
/mach.h
9764 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 echo "$as_me:9765: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 cat >conftest.
$ac_ext <<_ACEOF
9771 #line 9771 "configure"
9772 #include "confdefs.h"
9773 #include <$ac_header>
9775 if { (eval echo "$as_me:9775: \"$ac_cpp conftest.$ac_ext\"") >&5
9776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9778 egrep -v '^ *\+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 echo "$as_me:9781: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev
/null
; then
9783 if test -s conftest.err
; then
9784 ac_cpp_err
=$ac_c_preproc_warn_flag
9791 if test -z "$ac_cpp_err"; then
9792 eval "$as_ac_Header=yes"
9794 echo "$as_me: failed program was:" >&5
9795 cat conftest.
$ac_ext >&5
9796 eval "$as_ac_Header=no"
9798 rm -f conftest.err conftest.
$ac_ext
9800 echo "$as_me:9800: result: `eval echo '${'$as_ac_Header'}'`" >&5
9801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9803 cat >>confdefs.h
<<EOF
9804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 for ac_header
in nlist.h
9814 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9815 echo "$as_me:9815: checking for $ac_header" >&5
9816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.
$ac_ext <<_ACEOF
9821 #line 9821 "configure"
9822 #include "confdefs.h"
9823 #include <$ac_header>
9825 if { (eval echo "$as_me:9825: \"$ac_cpp conftest.$ac_ext\"") >&5
9826 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9828 egrep -v '^ *\+' conftest.er1
>conftest.err
9830 cat conftest.err
>&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); } >/dev
/null
; then
9833 if test -s conftest.err
; then
9834 ac_cpp_err
=$ac_c_preproc_warn_flag
9841 if test -z "$ac_cpp_err"; then
9842 eval "$as_ac_Header=yes"
9844 echo "$as_me: failed program was:" >&5
9845 cat conftest.
$ac_ext >&5
9846 eval "$as_ac_Header=no"
9848 rm -f conftest.err conftest.
$ac_ext
9850 echo "$as_me:9850: result: `eval echo '${'$as_ac_Header'}'`" >&5
9851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9853 cat >>confdefs.h
<<EOF
9854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856 echo "$as_me:9856: checking for struct nlist.n_un.n_name" >&5
9857 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9858 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 cat >conftest.
$ac_ext <<_ACEOF
9862 #line 9862 "configure"
9863 #include "confdefs.h"
9869 static struct nlist ac_aggr;
9870 if (ac_aggr.n_un.n_name)
9876 rm -f conftest.
$ac_objext
9877 if { (eval echo "$as_me:9877: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9880 echo "$as_me:9880: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try
='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:9883: \"$ac_try\"") >&5
9886 echo "$as_me:9886: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_member_struct_nlist_n_un_n_name
=yes
9890 echo "$as_me: failed program was:" >&5
9891 cat conftest.
$ac_ext >&5
9892 ac_cv_member_struct_nlist_n_un_n_name
=no
9894 rm -f conftest.
$ac_objext conftest.
$ac_ext
9896 echo "$as_me:9896: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9897 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9898 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9900 cat >>confdefs.h
<<EOF
9901 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9904 cat >>confdefs.h
<<\EOF
9905 #define NLIST_NAME_UNION 1
9916 # Some definitions of getloadavg require that the program be installed setgid.
9917 echo "$as_me:9917: checking whether getloadavg requires setgid" >&5
9918 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9919 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 cat >conftest.
$ac_ext <<_ACEOF
9923 #line 9923 "configure"
9924 #include "confdefs.h"
9925 #include "$srcdir/getloadavg.c"
9926 #ifdef LDAV_PRIVILEGED
9927 Yowza Am I SETGID yet
9930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9932 ac_cv_func_getloadavg_setgid
=yes
9934 ac_cv_func_getloadavg_setgid
=no
9939 echo "$as_me:9939: result: $ac_cv_func_getloadavg_setgid" >&5
9940 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9941 if test $ac_cv_func_getloadavg_setgid = yes; then
9944 cat >>confdefs.h
<<\EOF
9945 #define GETLOADAVG_PRIVILEGED 1
9952 if test $ac_cv_func_getloadavg_setgid = yes; then
9953 echo "$as_me:9953: checking group of /dev/kmem" >&5
9954 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9955 if test "${ac_cv_group_kmem+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9959 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9960 # If we got an error (system does not support symlinks), try without -L.
9961 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9962 ac_cv_group_kmem
=`echo $ac_ls_output \
9963 | sed -ne 's/[ ][ ]*/ /g;
9964 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9968 echo "$as_me:9968: result: $ac_cv_group_kmem" >&5
9969 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9970 KMEM_GROUP
=$ac_cv_group_kmem
9972 if test "x$ac_save_LIBS" = x
; then
9973 GETLOADAVG_LIBS
=$LIBS
9975 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9979 echo "$as_me:9979: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9980 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9981 if test "${ac_cv_sys_largefile_source+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 ac_cv_sys_largefile_source
=no
9986 cat >conftest.
$ac_ext <<_ACEOF
9987 #line 9987 "configure"
9988 #include "confdefs.h"
9998 rm -f conftest.
$ac_objext
9999 if { (eval echo "$as_me:9999: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>&5
10002 echo "$as_me:10002: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try
='test -s conftest.$ac_objext'
10005 { (eval echo "$as_me:10005: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10008 echo "$as_me:10008: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10015 rm -f conftest.
$ac_objext conftest.
$ac_ext
10016 cat >conftest.
$ac_ext <<_ACEOF
10017 #line 10017 "configure"
10018 #include "confdefs.h"
10019 #define _LARGEFILE_SOURCE 1
10029 rm -f conftest.
$ac_objext
10030 if { (eval echo "$as_me:10030: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>&5
10033 echo "$as_me:10033: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
10035 { ac_try
='test -s conftest.$ac_objext'
10036 { (eval echo "$as_me:10036: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10039 echo "$as_me:10039: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 ac_cv_sys_largefile_source
=1; break
10043 echo "$as_me: failed program was:" >&5
10044 cat conftest.
$ac_ext >&5
10046 rm -f conftest.
$ac_objext conftest.
$ac_ext
10050 echo "$as_me:10050: result: $ac_cv_sys_largefile_source" >&5
10051 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10052 if test "$ac_cv_sys_largefile_source" != no
; then
10054 cat >>confdefs.h
<<EOF
10055 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10061 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10062 # in glibc 2.1.3, but that breaks too many other things.
10063 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10064 echo "$as_me:10064: checking for fseeko" >&5
10065 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10066 if test "${ac_cv_func_fseeko+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10076 return fseeko && fseeko (stdin, 0, 0);
10081 rm -f conftest.
$ac_objext conftest
$ac_exeext
10082 if { (eval echo "$as_me:10082: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>&5
10085 echo "$as_me:10085: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try
='test -s conftest$ac_exeext'
10088 { (eval echo "$as_me:10088: \"$ac_try\"") >&5
10089 (eval $ac_try) 2>&5
10091 echo "$as_me:10091: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10093 ac_cv_func_fseeko
=yes
10095 echo "$as_me: failed program was:" >&5
10096 cat conftest.
$ac_ext >&5
10097 ac_cv_func_fseeko
=no
10099 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10101 echo "$as_me:10101: result: $ac_cv_func_fseeko" >&5
10102 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10103 if test $ac_cv_func_fseeko = yes; then
10105 cat >>confdefs.h
<<\EOF
10106 #define HAVE_FSEEKO 1
10113 for ac_func
in grantpt
10115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116 echo "$as_me:10116: checking for $ac_func" >&5
10117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10118 if eval "test \"\${$as_ac_var+set}\" = set"; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 cat >conftest.
$ac_ext <<_ACEOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10124 /* System header to define __stub macros and hopefully few prototypes,
10125 which can conflict with char $ac_func (); below. */
10126 #include <assert.h>
10127 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10139 /* The GNU C library defines this for functions which it implements
10140 to always fail with ENOSYS. Some functions are actually named
10141 something starting with __ and the normal name is an alias. */
10142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10152 rm -f conftest.
$ac_objext conftest
$ac_exeext
10153 if { (eval echo "$as_me:10153: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>&5
10156 echo "$as_me:10156: \$? = $ac_status" >&5
10157 (exit $ac_status); } &&
10158 { ac_try
='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:10159: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 eval "$as_ac_var=yes"
10166 echo "$as_me: failed program was:" >&5
10167 cat conftest.
$ac_ext >&5
10168 eval "$as_ac_var=no"
10170 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10172 echo "$as_me:10172: result: `eval echo '${'$as_ac_var'}'`" >&5
10173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10174 if test `eval echo '${'$as_ac_var'}'` = yes; then
10175 cat >>confdefs.h
<<EOF
10176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10182 # PTY-related GNU extensions.
10184 for ac_func
in getpt
10186 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10187 echo "$as_me:10187: checking for $ac_func" >&5
10188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10189 if eval "test \"\${$as_ac_var+set}\" = set"; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.
$ac_ext <<_ACEOF
10193 #line 10193 "configure"
10194 #include "confdefs.h"
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char $ac_func (); below. */
10197 #include <assert.h>
10198 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10210 /* The GNU C library defines this for functions which it implements
10211 to always fail with ENOSYS. Some functions are actually named
10212 something starting with __ and the normal name is an alias. */
10213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10223 rm -f conftest.
$ac_objext conftest
$ac_exeext
10224 if { (eval echo "$as_me:10224: \"$ac_link\"") >&5
10225 (eval $ac_link) 2>&5
10227 echo "$as_me:10227: \$? = $ac_status" >&5
10228 (exit $ac_status); } &&
10229 { ac_try
='test -s conftest$ac_exeext'
10230 { (eval echo "$as_me:10230: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:10233: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 eval "$as_ac_var=yes"
10237 echo "$as_me: failed program was:" >&5
10238 cat conftest.
$ac_ext >&5
10239 eval "$as_ac_var=no"
10241 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10243 echo "$as_me:10243: result: `eval echo '${'$as_ac_var'}'`" >&5
10244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10245 if test `eval echo '${'$as_ac_var'}'` = yes; then
10246 cat >>confdefs.h
<<EOF
10247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10253 # Check this now, so that we will NOT find the above functions in ncurses.
10254 # That is because we have not set up to link ncurses in lib-src.
10255 # It's better to believe a function is not available
10256 # than to expect to find it in ncurses.
10258 echo "$as_me:10258: checking for tparm in -lncurses" >&5
10259 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10260 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 ac_check_lib_save_LIBS
=$LIBS
10264 LIBS
="-lncurses $LIBS"
10265 cat >conftest.
$ac_ext <<_ACEOF
10266 #line 10266 "configure"
10267 #include "confdefs.h"
10269 /* Override any gcc2 internal prototype to avoid an error. */
10273 /* We use char because int might match the return type of a gcc2
10274 builtin and then its argument prototype would still apply. */
10284 rm -f conftest.
$ac_objext conftest
$ac_exeext
10285 if { (eval echo "$as_me:10285: \"$ac_link\"") >&5
10286 (eval $ac_link) 2>&5
10288 echo "$as_me:10288: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try
='test -s conftest$ac_exeext'
10291 { (eval echo "$as_me:10291: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:10294: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_lib_ncurses_tparm
=yes
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.
$ac_ext >&5
10300 ac_cv_lib_ncurses_tparm
=no
10302 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10303 LIBS
=$ac_check_lib_save_LIBS
10305 echo "$as_me:10305: result: $ac_cv_lib_ncurses_tparm" >&5
10306 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10307 if test $ac_cv_lib_ncurses_tparm = yes; then
10308 cat >>confdefs.h
<<EOF
10309 #define HAVE_LIBNCURSES 1
10312 LIBS
="-lncurses $LIBS"
10316 # Do we need the Hesiod library to provide the support routines?
10317 if test "$with_hesiod" = yes ; then
10318 # Don't set $LIBS here -- see comments above.
10320 echo "$as_me:10320: checking for res_send" >&5
10321 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10322 if test "${ac_cv_func_res_send+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.
$ac_ext <<_ACEOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10328 /* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char res_send (); below. */
10330 #include <assert.h>
10331 /* Override any gcc2 internal prototype to avoid an error. */
10335 /* We use char because int might match the return type of a gcc2
10336 builtin and then its argument prototype would still apply. */
10343 /* The GNU C library defines this for functions which it implements
10344 to always fail with ENOSYS. Some functions are actually named
10345 something starting with __ and the normal name is an alias. */
10346 #if defined (__stub_res_send) || defined (__stub___res_send)
10356 rm -f conftest.
$ac_objext conftest
$ac_exeext
10357 if { (eval echo "$as_me:10357: \"$ac_link\"") >&5
10358 (eval $ac_link) 2>&5
10360 echo "$as_me:10360: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try
='test -s conftest$ac_exeext'
10363 { (eval echo "$as_me:10363: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:10366: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_cv_func_res_send
=yes
10370 echo "$as_me: failed program was:" >&5
10371 cat conftest.
$ac_ext >&5
10372 ac_cv_func_res_send
=no
10374 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10376 echo "$as_me:10376: result: $ac_cv_func_res_send" >&5
10377 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10378 if test $ac_cv_func_res_send = yes; then
10381 echo "$as_me:10381: checking for __res_send" >&5
10382 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10383 if test "${ac_cv_func___res_send+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 cat >conftest.
$ac_ext <<_ACEOF
10387 #line 10387 "configure"
10388 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char __res_send (); below. */
10391 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error. */
10396 /* We use char because int might match the return type of a gcc2
10397 builtin and then its argument prototype would still apply. */
10398 char __res_send ();
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined (__stub___res_send) || defined (__stub_____res_send)
10417 rm -f conftest.
$ac_objext conftest
$ac_exeext
10418 if { (eval echo "$as_me:10418: \"$ac_link\"") >&5
10419 (eval $ac_link) 2>&5
10421 echo "$as_me:10421: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
10423 { ac_try
='test -s conftest$ac_exeext'
10424 { (eval echo "$as_me:10424: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:10427: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_func___res_send
=yes
10431 echo "$as_me: failed program was:" >&5
10432 cat conftest.
$ac_ext >&5
10433 ac_cv_func___res_send
=no
10435 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10437 echo "$as_me:10437: result: $ac_cv_func___res_send" >&5
10438 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10439 if test $ac_cv_func___res_send = yes; then
10442 echo "$as_me:10442: checking for res_send in -lresolv" >&5
10443 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10444 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 ac_check_lib_save_LIBS
=$LIBS
10448 LIBS
="-lresolv $LIBS"
10449 cat >conftest.
$ac_ext <<_ACEOF
10450 #line 10450 "configure"
10451 #include "confdefs.h"
10453 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10468 rm -f conftest.
$ac_objext conftest
$ac_exeext
10469 if { (eval echo "$as_me:10469: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10472 echo "$as_me:10472: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try
='test -s conftest$ac_exeext'
10475 { (eval echo "$as_me:10475: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:10478: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_cv_lib_resolv_res_send
=yes
10482 echo "$as_me: failed program was:" >&5
10483 cat conftest.
$ac_ext >&5
10484 ac_cv_lib_resolv_res_send
=no
10486 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10487 LIBS
=$ac_check_lib_save_LIBS
10489 echo "$as_me:10489: result: $ac_cv_lib_resolv_res_send" >&5
10490 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10491 if test $ac_cv_lib_resolv_res_send = yes; then
10494 echo "$as_me:10494: checking for __res_send in -lresolv" >&5
10495 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10496 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 ac_check_lib_save_LIBS
=$LIBS
10500 LIBS
="-lresolv $LIBS"
10501 cat >conftest.
$ac_ext <<_ACEOF
10502 #line 10502 "configure"
10503 #include "confdefs.h"
10505 /* Override any gcc2 internal prototype to avoid an error. */
10509 /* We use char because int might match the return type of a gcc2
10510 builtin and then its argument prototype would still apply. */
10511 char __res_send ();
10520 rm -f conftest.
$ac_objext conftest
$ac_exeext
10521 if { (eval echo "$as_me:10521: \"$ac_link\"") >&5
10522 (eval $ac_link) 2>&5
10524 echo "$as_me:10524: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try
='test -s conftest$ac_exeext'
10527 { (eval echo "$as_me:10527: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:10530: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_lib_resolv___res_send
=yes
10534 echo "$as_me: failed program was:" >&5
10535 cat conftest.
$ac_ext >&5
10536 ac_cv_lib_resolv___res_send
=no
10538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10539 LIBS
=$ac_check_lib_save_LIBS
10541 echo "$as_me:10541: result: $ac_cv_lib_resolv___res_send" >&5
10542 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10543 if test $ac_cv_lib_resolv___res_send = yes; then
10553 if test "$resolv" = yes ; then
10556 cat >>confdefs.h
<<\EOF
10557 #define HAVE_LIBRESOLV 1
10563 echo "$as_me:10563: checking for hes_getmailhost" >&5
10564 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10565 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 cat >conftest.
$ac_ext <<_ACEOF
10569 #line 10569 "configure"
10570 #include "confdefs.h"
10571 /* System header to define __stub macros and hopefully few prototypes,
10572 which can conflict with char hes_getmailhost (); below. */
10573 #include <assert.h>
10574 /* Override any gcc2 internal prototype to avoid an error. */
10578 /* We use char because int might match the return type of a gcc2
10579 builtin and then its argument prototype would still apply. */
10580 char hes_getmailhost ();
10586 /* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
10589 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10592 f = hes_getmailhost;
10599 rm -f conftest.
$ac_objext conftest
$ac_exeext
10600 if { (eval echo "$as_me:10600: \"$ac_link\"") >&5
10601 (eval $ac_link) 2>&5
10603 echo "$as_me:10603: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try
='test -s conftest$ac_exeext'
10606 { (eval echo "$as_me:10606: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_func_hes_getmailhost
=yes
10613 echo "$as_me: failed program was:" >&5
10614 cat conftest.
$ac_ext >&5
10615 ac_cv_func_hes_getmailhost
=no
10617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10619 echo "$as_me:10619: result: $ac_cv_func_hes_getmailhost" >&5
10620 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10621 if test $ac_cv_func_hes_getmailhost = yes; then
10624 echo "$as_me:10624: checking for hes_getmailhost in -lhesiod" >&5
10625 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10626 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 ac_check_lib_save_LIBS
=$LIBS
10630 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10631 cat >conftest.
$ac_ext <<_ACEOF
10632 #line 10632 "configure"
10633 #include "confdefs.h"
10635 /* Override any gcc2 internal prototype to avoid an error. */
10639 /* We use char because int might match the return type of a gcc2
10640 builtin and then its argument prototype would still apply. */
10641 char hes_getmailhost ();
10645 hes_getmailhost ();
10650 rm -f conftest.
$ac_objext conftest
$ac_exeext
10651 if { (eval echo "$as_me:10651: \"$ac_link\"") >&5
10652 (eval $ac_link) 2>&5
10654 echo "$as_me:10654: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try
='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:10657: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:10660: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_lib_hesiod_hes_getmailhost
=yes
10664 echo "$as_me: failed program was:" >&5
10665 cat conftest.
$ac_ext >&5
10666 ac_cv_lib_hesiod_hes_getmailhost
=no
10668 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10669 LIBS
=$ac_check_lib_save_LIBS
10671 echo "$as_me:10671: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10672 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10673 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10675 cat >>confdefs.h
<<\EOF
10676 #define HAVE_LIBHESIOD 1
10687 # These tell us which Kerberos-related libraries to use.
10688 if test "${with_kerberos+set}" = set; then
10690 echo "$as_me:10690: checking for com_err in -lcom_err" >&5
10691 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10692 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 ac_check_lib_save_LIBS
=$LIBS
10696 LIBS
="-lcom_err $LIBS"
10697 cat >conftest.
$ac_ext <<_ACEOF
10698 #line 10698 "configure"
10699 #include "confdefs.h"
10701 /* Override any gcc2 internal prototype to avoid an error. */
10705 /* We use char because int might match the return type of a gcc2
10706 builtin and then its argument prototype would still apply. */
10716 rm -f conftest.
$ac_objext conftest
$ac_exeext
10717 if { (eval echo "$as_me:10717: \"$ac_link\"") >&5
10718 (eval $ac_link) 2>&5
10720 echo "$as_me:10720: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try
='test -s conftest$ac_exeext'
10723 { (eval echo "$as_me:10723: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:10726: \$? = $ac_status" >&5
10727 (exit $ac_status); }; }; then
10728 ac_cv_lib_com_err_com_err
=yes
10730 echo "$as_me: failed program was:" >&5
10731 cat conftest.
$ac_ext >&5
10732 ac_cv_lib_com_err_com_err
=no
10734 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10735 LIBS
=$ac_check_lib_save_LIBS
10737 echo "$as_me:10737: result: $ac_cv_lib_com_err_com_err" >&5
10738 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10739 if test $ac_cv_lib_com_err_com_err = yes; then
10740 cat >>confdefs.h
<<EOF
10741 #define HAVE_LIBCOM_ERR 1
10744 LIBS
="-lcom_err $LIBS"
10748 echo "$as_me:10748: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10749 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10750 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_check_lib_save_LIBS
=$LIBS
10754 LIBS
="-lk5crypto $LIBS"
10755 cat >conftest.
$ac_ext <<_ACEOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10759 /* Override any gcc2 internal prototype to avoid an error. */
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10765 char mit_des_cbc_encrypt ();
10769 mit_des_cbc_encrypt ();
10774 rm -f conftest.
$ac_objext conftest
$ac_exeext
10775 if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10778 echo "$as_me:10778: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10788 echo "$as_me: failed program was:" >&5
10789 cat conftest.
$ac_ext >&5
10790 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10792 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10793 LIBS
=$ac_check_lib_save_LIBS
10795 echo "$as_me:10795: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10796 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10797 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10798 cat >>confdefs.h
<<EOF
10799 #define HAVE_LIBK5CRYPTO 1
10802 LIBS
="-lk5crypto $LIBS"
10806 echo "$as_me:10806: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10807 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10808 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 ac_check_lib_save_LIBS
=$LIBS
10812 LIBS
="-lcrypto $LIBS"
10813 cat >conftest.
$ac_ext <<_ACEOF
10814 #line 10814 "configure"
10815 #include "confdefs.h"
10817 /* Override any gcc2 internal prototype to avoid an error. */
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char mit_des_cbc_encrypt ();
10827 mit_des_cbc_encrypt ();
10832 rm -f conftest.
$ac_objext conftest
$ac_exeext
10833 if { (eval echo "$as_me:10833: \"$ac_link\"") >&5
10834 (eval $ac_link) 2>&5
10836 echo "$as_me:10836: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try
='test -s conftest$ac_exeext'
10839 { (eval echo "$as_me:10839: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:10842: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10846 echo "$as_me: failed program was:" >&5
10847 cat conftest.
$ac_ext >&5
10848 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10850 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10851 LIBS
=$ac_check_lib_save_LIBS
10853 echo "$as_me:10853: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10854 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10855 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10856 cat >>confdefs.h
<<EOF
10857 #define HAVE_LIBCRYPTO 1
10860 LIBS
="-lcrypto $LIBS"
10864 echo "$as_me:10864: checking for krb5_init_context in -lkrb5" >&5
10865 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10866 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 ac_check_lib_save_LIBS
=$LIBS
10870 LIBS
="-lkrb5 $LIBS"
10871 cat >conftest.
$ac_ext <<_ACEOF
10872 #line 10872 "configure"
10873 #include "confdefs.h"
10875 /* Override any gcc2 internal prototype to avoid an error. */
10879 /* We use char because int might match the return type of a gcc2
10880 builtin and then its argument prototype would still apply. */
10881 char krb5_init_context ();
10885 krb5_init_context ();
10890 rm -f conftest.
$ac_objext conftest
$ac_exeext
10891 if { (eval echo "$as_me:10891: \"$ac_link\"") >&5
10892 (eval $ac_link) 2>&5
10894 echo "$as_me:10894: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try
='test -s conftest$ac_exeext'
10897 { (eval echo "$as_me:10897: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:10900: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
10902 ac_cv_lib_krb5_krb5_init_context
=yes
10904 echo "$as_me: failed program was:" >&5
10905 cat conftest.
$ac_ext >&5
10906 ac_cv_lib_krb5_krb5_init_context
=no
10908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10909 LIBS
=$ac_check_lib_save_LIBS
10911 echo "$as_me:10911: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10912 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10913 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10914 cat >>confdefs.h
<<EOF
10915 #define HAVE_LIBKRB5 1
10918 LIBS
="-lkrb5 $LIBS"
10922 if test "${with_kerberos5+set}" != set; then
10924 echo "$as_me:10924: checking for des_cbc_encrypt in -ldes425" >&5
10925 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10926 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 ac_check_lib_save_LIBS
=$LIBS
10930 LIBS
="-ldes425 $LIBS"
10931 cat >conftest.
$ac_ext <<_ACEOF
10932 #line 10932 "configure"
10933 #include "confdefs.h"
10935 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10941 char des_cbc_encrypt ();
10945 des_cbc_encrypt ();
10950 rm -f conftest.
$ac_objext conftest
$ac_exeext
10951 if { (eval echo "$as_me:10951: \"$ac_link\"") >&5
10952 (eval $ac_link) 2>&5
10954 echo "$as_me:10954: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try
='test -s conftest$ac_exeext'
10957 { (eval echo "$as_me:10957: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:10960: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_lib_des425_des_cbc_encrypt
=yes
10964 echo "$as_me: failed program was:" >&5
10965 cat conftest.
$ac_ext >&5
10966 ac_cv_lib_des425_des_cbc_encrypt
=no
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10969 LIBS
=$ac_check_lib_save_LIBS
10971 echo "$as_me:10971: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10972 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10973 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10974 cat >>confdefs.h
<<EOF
10975 #define HAVE_LIBDES425 1
10978 LIBS
="-ldes425 $LIBS"
10982 echo "$as_me:10982: checking for des_cbc_encrypt in -ldes" >&5
10983 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10984 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 ac_check_lib_save_LIBS
=$LIBS
10989 cat >conftest.
$ac_ext <<_ACEOF
10990 #line 10990 "configure"
10991 #include "confdefs.h"
10993 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char des_cbc_encrypt ();
11003 des_cbc_encrypt ();
11008 rm -f conftest.
$ac_objext conftest
$ac_exeext
11009 if { (eval echo "$as_me:11009: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>&5
11012 echo "$as_me:11012: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try
='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:11015: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:11018: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_lib_des_des_cbc_encrypt
=yes
11022 echo "$as_me: failed program was:" >&5
11023 cat conftest.
$ac_ext >&5
11024 ac_cv_lib_des_des_cbc_encrypt
=no
11026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11027 LIBS
=$ac_check_lib_save_LIBS
11029 echo "$as_me:11029: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11030 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11031 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11032 cat >>confdefs.h
<<EOF
11033 #define HAVE_LIBDES 1
11042 echo "$as_me:11042: checking for krb_get_cred in -lkrb4" >&5
11043 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11044 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 ac_check_lib_save_LIBS
=$LIBS
11048 LIBS
="-lkrb4 $LIBS"
11049 cat >conftest.
$ac_ext <<_ACEOF
11050 #line 11050 "configure"
11051 #include "confdefs.h"
11053 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char krb_get_cred ();
11068 rm -f conftest.
$ac_objext conftest
$ac_exeext
11069 if { (eval echo "$as_me:11069: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try
='test -s conftest$ac_exeext'
11075 { (eval echo "$as_me:11075: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:11078: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_lib_krb4_krb_get_cred
=yes
11082 echo "$as_me: failed program was:" >&5
11083 cat conftest.
$ac_ext >&5
11084 ac_cv_lib_krb4_krb_get_cred
=no
11086 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11087 LIBS
=$ac_check_lib_save_LIBS
11089 echo "$as_me:11089: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11090 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11091 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11092 cat >>confdefs.h
<<EOF
11093 #define HAVE_LIBKRB4 1
11096 LIBS
="-lkrb4 $LIBS"
11100 echo "$as_me:11100: checking for krb_get_cred in -lkrb" >&5
11101 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11102 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_check_lib_save_LIBS
=$LIBS
11107 cat >conftest.
$ac_ext <<_ACEOF
11108 #line 11108 "configure"
11109 #include "confdefs.h"
11111 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char krb_get_cred ();
11126 rm -f conftest.
$ac_objext conftest
$ac_exeext
11127 if { (eval echo "$as_me:11127: \"$ac_link\"") >&5
11128 (eval $ac_link) 2>&5
11130 echo "$as_me:11130: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try
='test -s conftest$ac_exeext'
11133 { (eval echo "$as_me:11133: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:11136: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_cv_lib_krb_krb_get_cred
=yes
11140 echo "$as_me: failed program was:" >&5
11141 cat conftest.
$ac_ext >&5
11142 ac_cv_lib_krb_krb_get_cred
=no
11144 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11145 LIBS
=$ac_check_lib_save_LIBS
11147 echo "$as_me:11147: result: $ac_cv_lib_krb_krb_get_cred" >&5
11148 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11149 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11150 cat >>confdefs.h
<<EOF
11151 #define HAVE_LIBKRB 1
11162 if test "${with_kerberos5+set}" = set; then
11164 for ac_header
in krb5.h
11166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 echo "$as_me:11167: checking for $ac_header" >&5
11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.
$ac_ext <<_ACEOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11175 #include <$ac_header>
11177 if { (eval echo "$as_me:11177: \"$ac_cpp conftest.$ac_ext\"") >&5
11178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11180 egrep -v '^ *\+' conftest.er1
>conftest.err
11182 cat conftest.err
>&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); } >/dev
/null
; then
11185 if test -s conftest.err
; then
11186 ac_cpp_err
=$ac_c_preproc_warn_flag
11193 if test -z "$ac_cpp_err"; then
11194 eval "$as_ac_Header=yes"
11196 echo "$as_me: failed program was:" >&5
11197 cat conftest.
$ac_ext >&5
11198 eval "$as_ac_Header=no"
11200 rm -f conftest.err conftest.
$ac_ext
11202 echo "$as_me:11202: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h
<<EOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 for ac_header
in des.h
11216 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11217 echo "$as_me:11217: checking for $ac_header" >&5
11218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 cat >conftest.
$ac_ext <<_ACEOF
11223 #line 11223 "configure"
11224 #include "confdefs.h"
11225 #include <$ac_header>
11227 if { (eval echo "$as_me:11227: \"$ac_cpp conftest.$ac_ext\"") >&5
11228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11230 egrep -v '^ *\+' conftest.er1
>conftest.err
11232 cat conftest.err
>&5
11233 echo "$as_me:11233: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev
/null
; then
11235 if test -s conftest.err
; then
11236 ac_cpp_err
=$ac_c_preproc_warn_flag
11243 if test -z "$ac_cpp_err"; then
11244 eval "$as_ac_Header=yes"
11246 echo "$as_me: failed program was:" >&5
11247 cat conftest.
$ac_ext >&5
11248 eval "$as_ac_Header=no"
11250 rm -f conftest.err conftest.
$ac_ext
11252 echo "$as_me:11252: result: `eval echo '${'$as_ac_Header'}'`" >&5
11253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11255 cat >>confdefs.h
<<EOF
11256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11261 for ac_header
in kerberosIV
/des.h
11263 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 echo "$as_me:11264: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.
$ac_ext <<_ACEOF
11270 #line 11270 "configure"
11271 #include "confdefs.h"
11272 #include <$ac_header>
11274 if { (eval echo "$as_me:11274: \"$ac_cpp conftest.$ac_ext\"") >&5
11275 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11277 egrep -v '^ *\+' conftest.er1
>conftest.err
11279 cat conftest.err
>&5
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); } >/dev
/null
; then
11282 if test -s conftest.err
; then
11283 ac_cpp_err
=$ac_c_preproc_warn_flag
11290 if test -z "$ac_cpp_err"; then
11291 eval "$as_ac_Header=yes"
11293 echo "$as_me: failed program was:" >&5
11294 cat conftest.
$ac_ext >&5
11295 eval "$as_ac_Header=no"
11297 rm -f conftest.err conftest.
$ac_ext
11299 echo "$as_me:11299: result: `eval echo '${'$as_ac_Header'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11302 cat >>confdefs.h
<<EOF
11303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 for ac_header
in kerberos
/des.h
11310 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 echo "$as_me:11311: checking for $ac_header" >&5
11312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.
$ac_ext <<_ACEOF
11317 #line 11317 "configure"
11318 #include "confdefs.h"
11319 #include <$ac_header>
11321 if { (eval echo "$as_me:11321: \"$ac_cpp conftest.$ac_ext\"") >&5
11322 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11324 egrep -v '^ *\+' conftest.er1
>conftest.err
11326 cat conftest.err
>&5
11327 echo "$as_me:11327: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev
/null
; then
11329 if test -s conftest.err
; then
11330 ac_cpp_err
=$ac_c_preproc_warn_flag
11337 if test -z "$ac_cpp_err"; then
11338 eval "$as_ac_Header=yes"
11340 echo "$as_me: failed program was:" >&5
11341 cat conftest.
$ac_ext >&5
11342 eval "$as_ac_Header=no"
11344 rm -f conftest.err conftest.
$ac_ext
11346 echo "$as_me:11346: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349 cat >>confdefs.h
<<EOF
11350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11362 for ac_header
in krb.h
11364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11365 echo "$as_me:11365: checking for $ac_header" >&5
11366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 cat >conftest.
$ac_ext <<_ACEOF
11371 #line 11371 "configure"
11372 #include "confdefs.h"
11373 #include <$ac_header>
11375 if { (eval echo "$as_me:11375: \"$ac_cpp conftest.$ac_ext\"") >&5
11376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11378 egrep -v '^ *\+' conftest.er1
>conftest.err
11380 cat conftest.err
>&5
11381 echo "$as_me:11381: \$? = $ac_status" >&5
11382 (exit $ac_status); } >/dev
/null
; then
11383 if test -s conftest.err
; then
11384 ac_cpp_err
=$ac_c_preproc_warn_flag
11391 if test -z "$ac_cpp_err"; then
11392 eval "$as_ac_Header=yes"
11394 echo "$as_me: failed program was:" >&5
11395 cat conftest.
$ac_ext >&5
11396 eval "$as_ac_Header=no"
11398 rm -f conftest.err conftest.
$ac_ext
11400 echo "$as_me:11400: result: `eval echo '${'$as_ac_Header'}'`" >&5
11401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11403 cat >>confdefs.h
<<EOF
11404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11409 for ac_header
in kerberosIV
/krb.h
11411 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 echo "$as_me:11412: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >conftest.
$ac_ext <<_ACEOF
11418 #line 11418 "configure"
11419 #include "confdefs.h"
11420 #include <$ac_header>
11422 if { (eval echo "$as_me:11422: \"$ac_cpp conftest.$ac_ext\"") >&5
11423 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11425 egrep -v '^ *\+' conftest.er1
>conftest.err
11427 cat conftest.err
>&5
11428 echo "$as_me:11428: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev
/null
; then
11430 if test -s conftest.err
; then
11431 ac_cpp_err
=$ac_c_preproc_warn_flag
11438 if test -z "$ac_cpp_err"; then
11439 eval "$as_ac_Header=yes"
11441 echo "$as_me: failed program was:" >&5
11442 cat conftest.
$ac_ext >&5
11443 eval "$as_ac_Header=no"
11445 rm -f conftest.err conftest.
$ac_ext
11447 echo "$as_me:11447: result: `eval echo '${'$as_ac_Header'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450 cat >>confdefs.h
<<EOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 for ac_header
in kerberos
/krb.h
11458 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 echo "$as_me:11459: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.
$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11467 #include <$ac_header>
11469 if { (eval echo "$as_me:11469: \"$ac_cpp conftest.$ac_ext\"") >&5
11470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11472 egrep -v '^ *\+' conftest.er1
>conftest.err
11474 cat conftest.err
>&5
11475 echo "$as_me:11475: \$? = $ac_status" >&5
11476 (exit $ac_status); } >/dev
/null
; then
11477 if test -s conftest.err
; then
11478 ac_cpp_err
=$ac_c_preproc_warn_flag
11485 if test -z "$ac_cpp_err"; then
11486 eval "$as_ac_Header=yes"
11488 echo "$as_me: failed program was:" >&5
11489 cat conftest.
$ac_ext >&5
11490 eval "$as_ac_Header=no"
11492 rm -f conftest.err conftest.
$ac_ext
11494 echo "$as_me:11494: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h
<<EOF
11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 for ac_header
in com_err.h
11514 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11515 echo "$as_me:11515: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 cat >conftest.
$ac_ext <<_ACEOF
11521 #line 11521 "configure"
11522 #include "confdefs.h"
11523 #include <$ac_header>
11525 if { (eval echo "$as_me:11525: \"$ac_cpp conftest.$ac_ext\"") >&5
11526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11528 egrep -v '^ *\+' conftest.er1
>conftest.err
11530 cat conftest.err
>&5
11531 echo "$as_me:11531: \$? = $ac_status" >&5
11532 (exit $ac_status); } >/dev
/null
; then
11533 if test -s conftest.err
; then
11534 ac_cpp_err
=$ac_c_preproc_warn_flag
11541 if test -z "$ac_cpp_err"; then
11542 eval "$as_ac_Header=yes"
11544 echo "$as_me: failed program was:" >&5
11545 cat conftest.
$ac_ext >&5
11546 eval "$as_ac_Header=no"
11548 rm -f conftest.err conftest.
$ac_ext
11550 echo "$as_me:11550: result: `eval echo '${'$as_ac_Header'}'`" >&5
11551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11553 cat >>confdefs.h
<<EOF
11554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562 # Solaris requires -lintl if you want strerror (which calls dgettext)
11563 # to return localized messages.
11565 echo "$as_me:11565: checking for dgettext in -lintl" >&5
11566 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11567 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 ac_check_lib_save_LIBS
=$LIBS
11571 LIBS
="-lintl $LIBS"
11572 cat >conftest.
$ac_ext <<_ACEOF
11573 #line 11573 "configure"
11574 #include "confdefs.h"
11576 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11591 rm -f conftest.
$ac_objext conftest
$ac_exeext
11592 if { (eval echo "$as_me:11592: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11595 echo "$as_me:11595: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try
='test -s conftest$ac_exeext'
11598 { (eval echo "$as_me:11598: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:11601: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_intl_dgettext
=yes
11605 echo "$as_me: failed program was:" >&5
11606 cat conftest.
$ac_ext >&5
11607 ac_cv_lib_intl_dgettext
=no
11609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11610 LIBS
=$ac_check_lib_save_LIBS
11612 echo "$as_me:11612: result: $ac_cv_lib_intl_dgettext" >&5
11613 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11614 if test $ac_cv_lib_intl_dgettext = yes; then
11615 cat >>confdefs.h
<<EOF
11616 #define HAVE_LIBINTL 1
11619 LIBS
="-lintl $LIBS"
11623 echo "$as_me:11623: checking whether localtime caches TZ" >&5
11624 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11625 if test "${emacs_cv_localtime_cache+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 if test x
$ac_cv_func_tzset = xyes
; then
11629 if test "$cross_compiling" = yes; then
11630 # If we have tzset, assume the worst when cross-compiling.
11631 emacs_cv_localtime_cache
=yes
11633 cat >conftest.
$ac_ext <<_ACEOF
11634 #line 11634 "configure"
11635 #include "confdefs.h"
11637 extern char **environ;
11641 for (to = from = environ; (*to = *from); from++)
11642 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11645 char TZ_GMT0[] = "TZ=GMT0";
11646 char TZ_PST8[] = "TZ=PST8";
11649 time_t now = time ((time_t *) 0);
11650 int hour_GMT0, hour_unset;
11651 if (putenv (TZ_GMT0) != 0)
11653 hour_GMT0 = localtime (&now)->tm_hour;
11655 hour_unset = localtime (&now)->tm_hour;
11656 if (putenv (TZ_PST8) != 0)
11658 if (localtime (&now)->tm_hour == hour_GMT0)
11661 if (localtime (&now)->tm_hour != hour_unset)
11666 rm -f conftest
$ac_exeext
11667 if { (eval echo "$as_me:11667: \"$ac_link\"") >&5
11668 (eval $ac_link) 2>&5
11670 echo "$as_me:11670: \$? = $ac_status" >&5
11671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11672 { (eval echo "$as_me:11672: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11675 echo "$as_me:11675: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 emacs_cv_localtime_cache
=no
11679 echo "$as_me: program exited with status $ac_status" >&5
11680 echo "$as_me: failed program was:" >&5
11681 cat conftest.
$ac_ext >&5
11682 emacs_cv_localtime_cache
=yes
11684 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11687 # If we lack tzset, report that localtime does not cache TZ,
11688 # since we can't invalidate the cache if we don't have tzset.
11689 emacs_cv_localtime_cache
=no
11692 echo "$as_me:11692: result: $emacs_cv_localtime_cache" >&5
11693 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11694 if test $emacs_cv_localtime_cache = yes; then
11696 cat >>confdefs.h
<<\EOF
11697 #define LOCALTIME_CACHE 1
11702 if test "x$HAVE_TIMEVAL" = xyes
; then
11704 for ac_func
in gettimeofday
11706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:11707: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.
$ac_ext <<_ACEOF
11713 #line 11713 "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func (); below. */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error. */
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11730 /* The GNU C library defines this for functions which it implements
11731 to always fail with ENOSYS. Some functions are actually named
11732 something starting with __ and the normal name is an alias. */
11733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11743 rm -f conftest.
$ac_objext conftest
$ac_exeext
11744 if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
11745 (eval $ac_link) 2>&5
11747 echo "$as_me:11747: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try
='test -s conftest$ac_exeext'
11750 { (eval echo "$as_me:11750: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:11753: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 eval "$as_ac_var=yes"
11757 echo "$as_me: failed program was:" >&5
11758 cat conftest.
$ac_ext >&5
11759 eval "$as_ac_var=no"
11761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11763 echo "$as_me:11763: result: `eval echo '${'$as_ac_var'}'`" >&5
11764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11765 if test `eval echo '${'$as_ac_var'}'` = yes; then
11766 cat >>confdefs.h
<<EOF
11767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773 if test $ac_cv_func_gettimeofday = yes; then
11774 echo "$as_me:11774: checking whether gettimeofday can accept two arguments" >&5
11775 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11776 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 cat >conftest.
$ac_ext <<_ACEOF
11780 #line 11780 "configure"
11781 #include "confdefs.h"
11783 #ifdef TIME_WITH_SYS_TIME
11784 #include <sys/time.h>
11787 #ifdef HAVE_SYS_TIME_H
11788 #include <sys/time.h>
11796 struct timeval time;
11797 gettimeofday (&time, 0);
11802 rm -f conftest.
$ac_objext
11803 if { (eval echo "$as_me:11803: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>&5
11806 echo "$as_me:11806: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try
='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:11809: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:11812: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 emacs_cv_gettimeofday_two_arguments
=yes
11816 echo "$as_me: failed program was:" >&5
11817 cat conftest.
$ac_ext >&5
11818 emacs_cv_gettimeofday_two_arguments
=no
11820 rm -f conftest.
$ac_objext conftest.
$ac_ext
11822 echo "$as_me:11822: result: $emacs_cv_gettimeofday_two_arguments" >&5
11823 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11824 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11826 cat >>confdefs.h
<<\EOF
11827 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11834 if test "$ac_cv_func_gettimeofday" = yes; then
11835 echo "$as_me:11835: checking for struct timezone" >&5
11836 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11837 if test "${emacs_cv_struct_timezone+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 cat >conftest.
$ac_ext <<_ACEOF
11841 #line 11841 "configure"
11842 #include "confdefs.h"
11843 #include <sys/time.h>
11847 struct timezone tz;
11852 rm -f conftest.
$ac_objext
11853 if { (eval echo "$as_me:11853: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>&5
11856 echo "$as_me:11856: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try
='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:11859: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:11862: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 if test "$cross_compiling" = yes; then
11865 emacs_cv_struct_timezone
=yes
11867 cat >conftest.
$ac_ext <<_ACEOF
11868 #line 11868 "configure"
11869 #include "confdefs.h"
11871 #ifdef TIME_WITH_SYS_TIME
11872 #include <sys/time.h>
11875 #ifdef HAVE_SYS_TIME_H
11876 #include <sys/time.h>
11882 struct timeval time;
11883 struct timezone dummy;
11884 exit (gettimeofday (&time, &dummy));
11887 rm -f conftest
$ac_exeext
11888 if { (eval echo "$as_me:11888: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11891 echo "$as_me:11891: \$? = $ac_status" >&5
11892 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11893 { (eval echo "$as_me:11893: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:11896: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 emacs_cv_struct_timezone
=yes
11900 echo "$as_me: program exited with status $ac_status" >&5
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.
$ac_ext >&5
11903 emacs_cv_struct_timezone
=no
11905 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11908 echo "$as_me: failed program was:" >&5
11909 cat conftest.
$ac_ext >&5
11910 emacs_cv_struct_timezone
=no
11912 rm -f conftest.
$ac_objext conftest.
$ac_ext
11914 echo "$as_me:11914: result: $emacs_cv_struct_timezone" >&5
11915 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11919 echo "$as_me:11919: checking for socket" >&5
11920 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11921 if test "${ac_cv_func_socket+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.
$ac_ext <<_ACEOF
11925 #line 11925 "configure"
11926 #include "confdefs.h"
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char socket (); below. */
11929 #include <assert.h>
11930 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_socket) || defined (__stub___socket)
11955 rm -f conftest.
$ac_objext conftest
$ac_exeext
11956 if { (eval echo "$as_me:11956: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>&5
11959 echo "$as_me:11959: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
11961 { ac_try
='test -s conftest$ac_exeext'
11962 { (eval echo "$as_me:11962: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:11965: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11967 ac_cv_func_socket
=yes
11969 echo "$as_me: failed program was:" >&5
11970 cat conftest.
$ac_ext >&5
11971 ac_cv_func_socket
=no
11973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11975 echo "$as_me:11975: result: $ac_cv_func_socket" >&5
11976 echo "${ECHO_T}$ac_cv_func_socket" >&6
11977 if test $ac_cv_func_socket = yes; then
11983 if test $ok_so_far = yes; then
11984 echo "$as_me:11984: checking for netinet/in.h" >&5
11985 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11986 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 cat >conftest.
$ac_ext <<_ACEOF
11990 #line 11990 "configure"
11991 #include "confdefs.h"
11992 #include <netinet/in.h>
11994 if { (eval echo "$as_me:11994: \"$ac_cpp conftest.$ac_ext\"") >&5
11995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11997 egrep -v '^ *\+' conftest.er1
>conftest.err
11999 cat conftest.err
>&5
12000 echo "$as_me:12000: \$? = $ac_status" >&5
12001 (exit $ac_status); } >/dev
/null
; then
12002 if test -s conftest.err
; then
12003 ac_cpp_err
=$ac_c_preproc_warn_flag
12010 if test -z "$ac_cpp_err"; then
12011 ac_cv_header_netinet_in_h
=yes
12013 echo "$as_me: failed program was:" >&5
12014 cat conftest.
$ac_ext >&5
12015 ac_cv_header_netinet_in_h
=no
12017 rm -f conftest.err conftest.
$ac_ext
12019 echo "$as_me:12019: result: $ac_cv_header_netinet_in_h" >&5
12020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12021 if test $ac_cv_header_netinet_in_h = yes; then
12028 if test $ok_so_far = yes; then
12029 echo "$as_me:12029: checking for arpa/inet.h" >&5
12030 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12031 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 cat >conftest.
$ac_ext <<_ACEOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12037 #include <arpa/inet.h>
12039 if { (eval echo "$as_me:12039: \"$ac_cpp conftest.$ac_ext\"") >&5
12040 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12042 egrep -v '^ *\+' conftest.er1
>conftest.err
12044 cat conftest.err
>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit $ac_status); } >/dev
/null
; then
12047 if test -s conftest.err
; then
12048 ac_cpp_err
=$ac_c_preproc_warn_flag
12055 if test -z "$ac_cpp_err"; then
12056 ac_cv_header_arpa_inet_h
=yes
12058 echo "$as_me: failed program was:" >&5
12059 cat conftest.
$ac_ext >&5
12060 ac_cv_header_arpa_inet_h
=no
12062 rm -f conftest.err conftest.
$ac_ext
12064 echo "$as_me:12064: result: $ac_cv_header_arpa_inet_h" >&5
12065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12066 if test $ac_cv_header_arpa_inet_h = yes; then
12073 if test $ok_so_far = yes; then
12075 cat >>confdefs.h
<<\EOF
12076 #define HAVE_INET_SOCKETS 1
12081 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12083 cat >>confdefs.h
<<\EOF
12084 #define HAVE_AIX_SMT_EXP 1
12089 echo "$as_me:12089: checking whether system supports dynamic ptys" >&5
12090 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12091 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12092 echo "$as_me:12092: result: yes" >&5
12093 echo "${ECHO_T}yes" >&6
12095 cat >>confdefs.h
<<\EOF
12096 #define HAVE_DEV_PTMX 1
12100 echo "$as_me:12100: result: no" >&5
12101 echo "${ECHO_T}no" >&6
12104 echo "$as_me:12104: checking for pid_t" >&5
12105 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12106 if test "${ac_cv_type_pid_t+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 cat >conftest.
$ac_ext <<_ACEOF
12110 #line 12110 "configure"
12111 #include "confdefs.h"
12112 $ac_includes_default
12118 if (sizeof (pid_t))
12124 rm -f conftest.
$ac_objext
12125 if { (eval echo "$as_me:12125: \"$ac_compile\"") >&5
12126 (eval $ac_compile) 2>&5
12128 echo "$as_me:12128: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:12131: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:12134: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 ac_cv_type_pid_t
=yes
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.
$ac_ext >&5
12140 ac_cv_type_pid_t
=no
12142 rm -f conftest.
$ac_objext conftest.
$ac_ext
12144 echo "$as_me:12144: result: $ac_cv_type_pid_t" >&5
12145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12146 if test $ac_cv_type_pid_t = yes; then
12150 cat >>confdefs.h
<<EOF
12156 for ac_header
in unistd.h vfork.h
12158 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12159 echo "$as_me:12159: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 cat >conftest.
$ac_ext <<_ACEOF
12165 #line 12165 "configure"
12166 #include "confdefs.h"
12167 #include <$ac_header>
12169 if { (eval echo "$as_me:12169: \"$ac_cpp conftest.$ac_ext\"") >&5
12170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12172 egrep -v '^ *\+' conftest.er1
>conftest.err
12174 cat conftest.err
>&5
12175 echo "$as_me:12175: \$? = $ac_status" >&5
12176 (exit $ac_status); } >/dev
/null
; then
12177 if test -s conftest.err
; then
12178 ac_cpp_err
=$ac_c_preproc_warn_flag
12185 if test -z "$ac_cpp_err"; then
12186 eval "$as_ac_Header=yes"
12188 echo "$as_me: failed program was:" >&5
12189 cat conftest.
$ac_ext >&5
12190 eval "$as_ac_Header=no"
12192 rm -f conftest.err conftest.
$ac_ext
12194 echo "$as_me:12194: result: `eval echo '${'$as_ac_Header'}'`" >&5
12195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12197 cat >>confdefs.h
<<EOF
12198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12204 for ac_func
in fork vfork
12206 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12207 echo "$as_me:12207: checking for $ac_func" >&5
12208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12209 if eval "test \"\${$as_ac_var+set}\" = set"; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12212 cat >conftest.
$ac_ext <<_ACEOF
12213 #line 12213 "configure"
12214 #include "confdefs.h"
12215 /* System header to define __stub macros and hopefully few prototypes,
12216 which can conflict with char $ac_func (); below. */
12217 #include <assert.h>
12218 /* Override any gcc2 internal prototype to avoid an error. */
12222 /* We use char because int might match the return type of a gcc2
12223 builtin and then its argument prototype would still apply. */
12230 /* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12243 rm -f conftest.
$ac_objext conftest
$ac_exeext
12244 if { (eval echo "$as_me:12244: \"$ac_link\"") >&5
12245 (eval $ac_link) 2>&5
12247 echo "$as_me:12247: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try
='test -s conftest$ac_exeext'
12250 { (eval echo "$as_me:12250: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:12253: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 eval "$as_ac_var=yes"
12257 echo "$as_me: failed program was:" >&5
12258 cat conftest.
$ac_ext >&5
12259 eval "$as_ac_var=no"
12261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12263 echo "$as_me:12263: result: `eval echo '${'$as_ac_var'}'`" >&5
12264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12265 if test `eval echo '${'$as_ac_var'}'` = yes; then
12266 cat >>confdefs.h
<<EOF
12267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12273 ac_cv_func_fork_works
=$ac_cv_func_fork
12274 if test "x$ac_cv_func_fork" = xyes
; then
12275 echo "$as_me:12275: checking for working fork" >&5
12276 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12277 if test "${ac_cv_func_fork_works+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 if test "$cross_compiling" = yes; then
12281 ac_cv_func_fork_works
=cross
12283 cat >conftest.
$ac_ext <<_ACEOF
12284 /* By Rüdiger Kuhlmann. */
12285 #include <sys/types.h>
12287 # include <unistd.h>
12289 /* Some systems only have a dummy stub for fork() */
12297 rm -f conftest
$ac_exeext
12298 if { (eval echo "$as_me:12298: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>&5
12301 echo "$as_me:12301: \$? = $ac_status" >&5
12302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12303 { (eval echo "$as_me:12303: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:12306: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_func_fork_works
=yes
12310 echo "$as_me: program exited with status $ac_status" >&5
12311 echo "$as_me: failed program was:" >&5
12312 cat conftest.
$ac_ext >&5
12313 ac_cv_func_fork_works
=no
12315 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12318 echo "$as_me:12318: result: $ac_cv_func_fork_works" >&5
12319 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12322 if test "x$ac_cv_func_fork_works" = xcross
; then
12324 *-*-amigaos* |
*-*-msdosdjgpp*)
12325 # Override, as these systems have only a dummy fork() stub
12326 ac_cv_func_fork_works
=no
12329 ac_cv_func_fork_works
=yes
12332 { echo "$as_me:12332: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12333 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12335 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12336 if test "x$ac_cv_func_vfork" = xyes
; then
12337 echo "$as_me:12337: checking for working vfork" >&5
12338 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12339 if test "${ac_cv_func_vfork_works+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 if test "$cross_compiling" = yes; then
12343 ac_cv_func_vfork_works
=cross
12345 cat >conftest.
$ac_ext <<_ACEOF
12346 #line 12346 "configure"
12347 #include "confdefs.h"
12348 /* Thanks to Paul Eggert for this test. */
12350 #include <sys/types.h>
12351 #include <sys/stat.h>
12353 # include <unistd.h>
12356 # include <vfork.h>
12358 /* On some sparc systems, changes by the child to local and incoming
12359 argument registers are propagated back to the parent. The compiler
12360 is told about this with #include <vfork.h>, but some compilers
12361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12362 static variable whose address is put into a register that is
12363 clobbered by the vfork. */
12366 sparc_address_test (int arg)
12368 sparc_address_test (arg) int arg;
12371 static pid_t child;
12389 pid_t parent = getpid ();
12392 sparc_address_test ();
12397 /* Here is another test for sparc vfork register problems. This
12398 test uses lots of local variables, at least as many local
12399 variables as main has allocated so far including compiler
12400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12402 reuse the register of parent for one of the local variables,
12403 since it will think that parent can't possibly be used any more
12404 in this routine. Assigning to the local variable will thus
12405 munge parent in the parent process. */
12407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12409 /* Convince the compiler that p..p7 are live; otherwise, it might
12410 use the same hardware register for all 8 local variables. */
12411 if (p != p1 || p != p2 || p != p3 || p != p4
12412 || p != p5 || p != p6 || p != p7)
12415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12416 from child file descriptors. If the child closes a descriptor
12417 before it execs or exits, this munges the parent's descriptor
12418 as well. Test for this by closing stdout in the child. */
12419 _exit(close(fileno(stdout)) != 0);
12424 while (wait(&status) != child)
12427 /* Was there some problem with vforking? */
12430 /* Did the child fail? (This shouldn't happen.) */
12433 /* Did the vfork/compiler bug occur? */
12434 || parent != getpid()
12436 /* Did the file descriptor bug occur? */
12437 || fstat(fileno(stdout), &st) != 0
12442 rm -f conftest
$ac_exeext
12443 if { (eval echo "$as_me:12443: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>&5
12446 echo "$as_me:12446: \$? = $ac_status" >&5
12447 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12448 { (eval echo "$as_me:12448: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_func_vfork_works
=yes
12455 echo "$as_me: program exited with status $ac_status" >&5
12456 echo "$as_me: failed program was:" >&5
12457 cat conftest.
$ac_ext >&5
12458 ac_cv_func_vfork_works
=no
12460 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12463 echo "$as_me:12463: result: $ac_cv_func_vfork_works" >&5
12464 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12467 if test "x$ac_cv_func_fork_works" = xcross
; then
12468 ac_cv_func_vfork_works
=ac_cv_func_vfork
12469 { echo "$as_me:12469: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12470 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12473 if test "x$ac_cv_func_vfork_works" = xyes
; then
12475 cat >>confdefs.h
<<\EOF
12476 #define HAVE_WORKING_VFORK 1
12481 cat >>confdefs.h
<<\EOF
12486 if test "x$ac_cv_func_fork_works" = xyes
; then
12488 cat >>confdefs.h
<<\EOF
12489 #define HAVE_WORKING_FORK 1
12494 # Fixme: This should be replaced when we have autoconf 2.14.
12495 echo "$as_me:12495: checking for size_t" >&5
12496 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12497 if test "${ac_cv_type_size_t+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.
$ac_ext <<_ACEOF
12501 #line 12501 "configure"
12502 #include "confdefs.h"
12503 $ac_includes_default
12509 if (sizeof (size_t))
12515 rm -f conftest.
$ac_objext
12516 if { (eval echo "$as_me:12516: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>&5
12519 echo "$as_me:12519: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try
='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:12522: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:12525: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_type_size_t
=yes
12529 echo "$as_me: failed program was:" >&5
12530 cat conftest.
$ac_ext >&5
12531 ac_cv_type_size_t
=no
12533 rm -f conftest.
$ac_objext conftest.
$ac_ext
12535 echo "$as_me:12535: result: $ac_cv_type_size_t" >&5
12536 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12537 if test $ac_cv_type_size_t = yes; then
12541 cat >>confdefs.h
<<EOF
12542 #define size_t unsigned
12547 # Set up the CFLAGS for real compilation, so we can substitute it.
12548 CFLAGS
="$REAL_CFLAGS"
12549 CPPFLAGS
="$REAL_CPPFLAGS"
12551 #### Find out which version of Emacs this is.
12552 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12553 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12554 if test x
"${version}" = x
; then
12555 { { echo "$as_me:12555: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12556 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12557 { (exit 1); exit 1; }; }
12560 ### Specify what sort of things we'll be editing into Makefile and config.h.
12561 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12563 cat >>confdefs.h
<<EOF
12564 #define EMACS_CONFIGURATION "${canonical}"
12567 cat >>confdefs.h
<<EOF
12568 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12571 cat >>confdefs.h
<<EOF
12572 #define config_machfile "${machfile}"
12575 cat >>confdefs.h
<<EOF
12576 #define config_opsysfile "${opsysfile}"
12579 cat >>confdefs.h
<<EOF
12580 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12583 cat >>confdefs.h
<<EOF
12584 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12587 cat >>confdefs.h
<<EOF
12588 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12591 cat >>confdefs.h
<<EOF
12592 #define UNEXEC_SRC ${UNEXEC_SRC}
12595 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12597 cat >>confdefs.h
<<\EOF
12598 #define HAVE_X_WINDOWS 1
12602 if test "${USE_X_TOOLKIT}" != "none" ; then
12604 cat >>confdefs.h
<<\EOF
12605 #define USE_X_TOOLKIT 1
12609 if test "${HAVE_X11}" = "yes" ; then
12611 cat >>confdefs.h
<<\EOF
12616 if test "${HAVE_XFREE386}" = "yes" ; then
12618 cat >>confdefs.h
<<\EOF
12619 #define HAVE_XFREE386 1
12623 if test "${HAVE_MENUS}" = "yes" ; then
12625 cat >>confdefs.h
<<\EOF
12626 #define HAVE_MENUS 1
12630 if test "${GNU_MALLOC}" = "yes" ; then
12632 cat >>confdefs.h
<<\EOF
12633 #define GNU_MALLOC 1
12637 if test "${REL_ALLOC}" = "yes" ; then
12639 cat >>confdefs.h
<<\EOF
12640 #define REL_ALLOC 1
12645 for ac_header
in nlist.h
12647 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12648 echo "$as_me:12648: checking for $ac_header" >&5
12649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 cat >conftest.
$ac_ext <<_ACEOF
12654 #line 12654 "configure"
12655 #include "confdefs.h"
12656 #include <$ac_header>
12658 if { (eval echo "$as_me:12658: \"$ac_cpp conftest.$ac_ext\"") >&5
12659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12661 egrep -v '^ *\+' conftest.er1
>conftest.err
12663 cat conftest.err
>&5
12664 echo "$as_me:12664: \$? = $ac_status" >&5
12665 (exit $ac_status); } >/dev
/null
; then
12666 if test -s conftest.err
; then
12667 ac_cpp_err
=$ac_c_preproc_warn_flag
12674 if test -z "$ac_cpp_err"; then
12675 eval "$as_ac_Header=yes"
12677 echo "$as_me: failed program was:" >&5
12678 cat conftest.
$ac_ext >&5
12679 eval "$as_ac_Header=no"
12681 rm -f conftest.err conftest.
$ac_ext
12683 echo "$as_me:12683: result: `eval echo '${'$as_ac_Header'}'`" >&5
12684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12686 cat >>confdefs.h
<<EOF
12687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12690 cat >>confdefs.h
<<\EOF
12691 #define NLIST_STRUCT 1
12697 #### Report on what we decided to do.
12699 Configured for \`${canonical}'.
12701 Where should the build process find the source code? ${srcdir}
12702 What operating system and machine description files should Emacs use?
12703 \`${opsysfile}' and \`${machfile}'
12704 What compiler should emacs be built with? ${CC} ${CFLAGS}
12705 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12706 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12707 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12708 What window system should Emacs use? ${window_system}
12709 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12710 Should Emacs use a shared game state directory? ${gamedir}"
12712 if test -n "${x_includes}"; then
12713 echo " Where do we find X Windows header files? ${x_includes}"
12715 echo " Where do we find X Windows header files? Standard dirs"
12717 if test -n "${x_libraries}"; then
12718 echo " Where do we find X Windows libraries? ${x_libraries}"
12720 echo " Where do we find X Windows libraries? Standard dirs"
12723 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12724 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12725 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12726 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12727 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12728 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12729 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12732 # Remove any trailing slashes in these variables.
12733 test "${prefix}" != NONE
&&
12734 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12735 test "${exec_prefix}" != NONE
&&
12736 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12738 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12739 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12740 ## from Makefile.c can correctly provide the arg `-traditional' to the
12743 cat >conftest.
$ac_ext <<_ACEOF
12744 #line 12744 "configure"
12745 #include "confdefs.h"
12748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12749 egrep "yes..yes" >/dev
/null
2>&1; then
12750 CPP_NEED_TRADITIONAL
=no
12752 CPP_NEED_TRADITIONAL
=yes
12756 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"
12757 ac_config_commands
="$ac_config_commands default"
12758 cat >confcache
<<\_ACEOF
12759 # This file is a shell script that caches the results of configure
12760 # tests run on this system so they can be shared between configure
12761 # scripts and configure runs, see configure's option --config-cache.
12762 # It is not useful on other systems. If it contains results you don't
12763 # want to keep, you may remove or edit it.
12765 # config.status only pays attention to the cache file if you give it
12766 # the --recheck option to rerun configure.
12768 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12769 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12770 # following values.
12774 # The following way of writing the cache mishandles newlines in values,
12775 # but we know of no workaround that is simple, portable, and efficient.
12776 # So, don't put newlines in cache variables' values.
12777 # Ultrix sh set writes to stderr and can't be redirected directly,
12778 # and sets the high bit in the cache file unless we assign to the vars.
12781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12783 # `set' does not quote correctly, so add quotes (double-quote
12784 # substitution turns \\\\ into \\, and sed turns \\ into \).
12787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12790 # `set' quotes correctly as required by POSIX, so do not add quotes.
12792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12803 if cmp -s $cache_file confcache
; then :; else
12804 if test -w $cache_file; then
12805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12806 cat confcache
>$cache_file
12808 echo "not updating unwritable cache $cache_file"
12813 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12814 # Let make expand exec_prefix.
12815 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12817 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12818 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12819 # trailing colons and then remove the whole line if VPATH becomes empty
12820 # (actually we leave an empty line to preserve line numbers).
12821 if test "x$srcdir" = x.
; then
12822 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12823 s/:*\$(srcdir):*/:/;
12824 s/:*\${srcdir}:*/:/;
12826 s/^\([^=]*=[ ]*\):*/\1/;
12832 DEFS
=-DHAVE_CONFIG_H
12834 : ${CONFIG_STATUS=./config.status}
12835 ac_clean_files_save
=$ac_clean_files
12836 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12837 { echo "$as_me:12837: creating $CONFIG_STATUS" >&5
12838 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12839 cat >$CONFIG_STATUS <<_ACEOF
12841 # Generated automatically by configure.
12842 # Run this file to recreate the current configuration.
12843 # Compiler output produced by configure, useful for debugging
12844 # configure, is in config.log if it exists.
12847 SHELL=\${CONFIG_SHELL-$SHELL}
12848 ac_cs_invocation="\$0 \$@"
12852 cat >>$CONFIG_STATUS <<\_ACEOF
12853 # Be Bourne compatible
12854 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12857 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12861 # Name of the executable.
12862 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12864 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12870 rm -f conf$$ conf$$.exe conf$$.
file
12872 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12873 # We could just check for DJGPP; but this test a) works b) is more generic
12874 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12875 if test -f conf$$.exe
; then
12876 # Don't use ln at all; we don't have any links
12881 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12886 rm -f conf$$ conf$$.exe conf$$.
file
12888 as_executable_p
="test -f"
12890 # Support unset when possible.
12891 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12898 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12899 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12900 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12901 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12902 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12903 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12904 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12905 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12908 # We need space, tab and new line, in precisely that order.
12914 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12920 # Files that config.status was made for.
12921 if test -n "$ac_config_files"; then
12922 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12925 if test -n "$ac_config_headers"; then
12926 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12929 if test -n "$ac_config_links"; then
12930 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12933 if test -n "$ac_config_commands"; then
12934 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12937 cat >>$CONFIG_STATUS <<\EOF
12940 \`$as_me' instantiates files from templates according to the
12941 current configuration.
12943 Usage: $0 [OPTIONS] [FILE]...
12945 -h, --help print this help, then exit
12946 -V, --version print version number, then exit
12947 -d, --debug don't remove temporary files
12948 --recheck update $as_me by reconfiguring in the same conditions
12949 --file=FILE[:TEMPLATE]
12950 instantiate the configuration file FILE
12951 --header=FILE[:TEMPLATE]
12952 instantiate the configuration header FILE
12954 Configuration files:
12957 Configuration headers:
12960 Configuration commands:
12963 Report bugs to <bug-autoconf@gnu.org>."
12966 cat >>$CONFIG_STATUS <<EOF
12969 configured by $0, generated by GNU Autoconf 2.52,
12970 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12973 Free Software Foundation, Inc.
12974 This config.status script is free software; the Free Software Foundation
12975 gives unlimited permission to copy, distribute and modify it."
12980 cat >>$CONFIG_STATUS <<\EOF
12981 # If no file are specified by the user, then we need to provide default
12982 # value. By we need to know if files were specified by the user.
12988 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12989 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12991 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12995 *) # This is not an option, so the user has probably given explicit
12997 ac_need_defaults
=false
;;
13001 # Handling of the options.
13003 cat >>$CONFIG_STATUS <<EOF
13004 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13005 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13006 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13008 cat >>$CONFIG_STATUS <<\EOF
13009 --version |
--vers* |
-V )
13010 echo "$ac_cs_version"; exit 0 ;;
13012 # Conflict between --help and --header
13013 { { echo "$as_me:13013: error: ambiguous option: $1
13014 Try \`$0 --help' for more information." >&5
13015 echo "$as_me: error: ambiguous option: $1
13016 Try \`$0 --help' for more information." >&2;}
13017 { (exit 1); exit 1; }; };;
13018 --help |
--hel |
-h )
13019 echo "$ac_cs_usage"; exit 0 ;;
13020 --debug |
--d* |
-d )
13022 --file |
--fil |
--fi |
--f )
13024 CONFIG_FILES
="$CONFIG_FILES $1"
13025 ac_need_defaults
=false
;;
13026 --header |
--heade |
--head |
--hea )
13028 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
13029 ac_need_defaults
=false
;;
13031 # This is an error.
13032 -*) { { echo "$as_me:13032: error: unrecognized option: $1
13033 Try \`$0 --help' for more information." >&5
13034 echo "$as_me: error: unrecognized option: $1
13035 Try \`$0 --help' for more information." >&2;}
13036 { (exit 1); exit 1; }; } ;;
13038 *) ac_config_targets
="$ac_config_targets $1" ;;
13047 ## ----------------------- ##
13048 ## Running config.status. ##
13049 ## ----------------------- ##
13051 This file was extended by $as_me 2.52, executed with
13052 CONFIG_FILES = $CONFIG_FILES
13053 CONFIG_HEADERS = $CONFIG_HEADERS
13054 CONFIG_LINKS = $CONFIG_LINKS
13055 CONFIG_COMMANDS = $CONFIG_COMMANDS
13056 > $ac_cs_invocation
13057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13062 cat >>$CONFIG_STATUS <<EOF
13064 # INIT-COMMANDS section.
13067 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13071 cat >>$CONFIG_STATUS <<\EOF
13072 for ac_config_target
in $ac_config_targets
13074 case "$ac_config_target" in
13075 # Handling of arguments.
13076 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13077 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13078 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
13079 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13080 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
13081 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13082 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
13083 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
13084 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
13085 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
13086 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13087 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13088 *) { { echo "$as_me:13088: error: invalid argument: $ac_config_target" >&5
13089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13090 { (exit 1); exit 1; }; };;
13094 # If the user did not use the arguments to specify the items to instantiate,
13095 # then the envvar interface is used. Set only those that are not.
13096 # We use the long form for the default assignment because of an extremely
13097 # bizarre bug on SunOS 4.1.3.
13098 if $ac_need_defaults; then
13099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13104 # Create a temporary directory, and hook for its removal unless debugging.
13107 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13108 trap '{ (exit 1); exit 1; }' 1 2 13 15
13111 # Create a (secure) tmp directory for tmp files.
13114 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13115 test -n "$tmp" && test -d "$tmp"
13118 tmp
=$TMPDIR/cs$$
-$RANDOM
13119 (umask 077 && mkdir
$tmp)
13122 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13123 { (exit 1); exit 1; }
13128 cat >>$CONFIG_STATUS <<EOF
13131 # CONFIG_FILES section.
13134 # No need to generate the scripts if there are no CONFIG_FILES.
13135 # This happens for instance when ./config.status config.h
13136 if test -n "\$CONFIG_FILES"; then
13137 # Protect against being on the right side of a sed subst in config.status.
13138 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13139 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13140 s,@SHELL@,$SHELL,;t t
13141 s,@exec_prefix@,$exec_prefix,;t t
13142 s,@prefix@,$prefix,;t t
13143 s,@program_transform_name@,$program_transform_name,;t t
13144 s,@bindir@,$bindir,;t t
13145 s,@sbindir@,$sbindir,;t t
13146 s,@libexecdir@,$libexecdir,;t t
13147 s,@datadir@,$datadir,;t t
13148 s,@sysconfdir@,$sysconfdir,;t t
13149 s,@sharedstatedir@,$sharedstatedir,;t t
13150 s,@localstatedir@,$localstatedir,;t t
13151 s,@libdir@,$libdir,;t t
13152 s,@includedir@,$includedir,;t t
13153 s,@oldincludedir@,$oldincludedir,;t t
13154 s,@infodir@,$infodir,;t t
13155 s,@mandir@,$mandir,;t t
13156 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13157 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13158 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13159 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13160 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13161 s,@build_alias@,$build_alias,;t t
13162 s,@host_alias@,$host_alias,;t t
13163 s,@target_alias@,$target_alias,;t t
13164 s,@ECHO_C@,$ECHO_C,;t t
13165 s,@ECHO_N@,$ECHO_N,;t t
13166 s,@ECHO_T@,$ECHO_T,;t t
13167 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13168 s,@DEFS@,$DEFS,;t t
13169 s,@LIBS@,$LIBS,;t t
13170 s,@build@,$build,;t t
13171 s,@build_cpu@,$build_cpu,;t t
13172 s,@build_vendor@,$build_vendor,;t t
13173 s,@build_os@,$build_os,;t t
13174 s,@host@,$host,;t t
13175 s,@host_cpu@,$host_cpu,;t t
13176 s,@host_vendor@,$host_vendor,;t t
13177 s,@host_os@,$host_os,;t t
13179 s,@CFLAGS@,$CFLAGS,;t t
13180 s,@LDFLAGS@,$LDFLAGS,;t t
13181 s,@CPPFLAGS@,$CPPFLAGS,;t t
13182 s,@ac_ct_CC@,$ac_ct_CC,;t t
13183 s,@EXEEXT@,$EXEEXT,;t t
13184 s,@OBJEXT@,$OBJEXT,;t t
13185 s,@LN_S@,$LN_S,;t t
13187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13190 s,@YACC@,$YACC,;t t
13191 s,@RANLIB@,$RANLIB,;t t
13192 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13193 s,@LIBSOUND@,$LIBSOUND,;t t
13194 s,@SET_MAKE@,$SET_MAKE,;t t
13195 s,@ALLOCA@,$ALLOCA,;t t
13196 s,@liblockfile@,$liblockfile,;t t
13197 s,@LIBOBJS@,$LIBOBJS,;t t
13198 s,@NEED_SETGID@,$NEED_SETGID,;t t
13199 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13200 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13201 s,@version@,$version,;t t
13202 s,@configuration@,$configuration,;t t
13203 s,@canonical@,$canonical,;t t
13204 s,@srcdir@,$srcdir,;t t
13205 s,@lispdir@,$lispdir,;t t
13206 s,@locallisppath@,$locallisppath,;t t
13207 s,@lisppath@,$lisppath,;t t
13208 s,@x_default_search_path@,$x_default_search_path,;t t
13209 s,@etcdir@,$etcdir,;t t
13210 s,@archlibdir@,$archlibdir,;t t
13211 s,@docdir@,$docdir,;t t
13212 s,@bitmapdir@,$bitmapdir,;t t
13213 s,@gamedir@,$gamedir,;t t
13214 s,@gameuser@,$gameuser,;t t
13215 s,@c_switch_system@,$c_switch_system,;t t
13216 s,@c_switch_machine@,$c_switch_machine,;t t
13217 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13218 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13219 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13220 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13221 s,@machfile@,$machfile,;t t
13222 s,@opsysfile@,$opsysfile,;t t
13227 cat >>$CONFIG_STATUS <<\EOF
13228 # Split the substitutions into bite-sized pieces for seds with
13229 # small command number limits, like on Digital OSF/1 and HP-UX.
13230 ac_max_sed_lines
=48
13231 ac_sed_frag
=1 # Number of current file.
13232 ac_beg
=1 # First line for current file.
13233 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13236 while $ac_more_lines; do
13237 if test $ac_beg -gt 1; then
13238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13240 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13242 if test ! -s $tmp/subs.frag
; then
13243 ac_more_lines
=false
13245 # The purpose of the label and of the branching condition is to
13246 # speed up the sed processing (if there are no `@' at all, there
13247 # is no need to browse any of the substitutions).
13248 # These are the two extra sed commands mentioned above.
13250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13251 if test -z "$ac_sed_cmds"; then
13252 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13254 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13256 ac_sed_frag
=`expr $ac_sed_frag + 1`
13258 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13261 if test -z "$ac_sed_cmds"; then
13264 fi # test -n "$CONFIG_FILES"
13267 cat >>$CONFIG_STATUS <<\EOF
13268 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13271 - |
*:- |
*:-:* ) # input from stdin
13273 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13274 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13275 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13276 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13277 * ) ac_file_in
=$ac_file.
in ;;
13280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13281 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13282 X"$ac_file" : 'X\(//\)[^/]' \| \
13283 X"$ac_file" : 'X\(//\)$' \| \
13284 X"$ac_file" : 'X\(/\)' \| \
13285 . : '\(.\)' 2>/dev/null ||
13287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13289 /^X\(\/\/\)$/{ s//\1/; q; }
13290 /^X\(\/\).*/{ s//\1/; q; }
13292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13293 { case "$ac_dir" in
13294 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13298 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13299 case $as_mkdir_dir in
13300 # Skip DOS drivespec
13301 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13303 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13304 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13309 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13310 # A "../" for each directory in $ac_dir_suffix.
13311 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13313 ac_dir_suffix
= ac_dots
=
13318 if test -z "$ac_dots"; then
13321 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13323 [\\/]* | ?
:[\\/]* )
13324 ac_srcdir
=$srcdir$ac_dir_suffix;
13325 ac_top_srcdir
=$srcdir ;;
13326 *) # Relative path.
13327 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13328 ac_top_srcdir
=$ac_dots$srcdir ;;
13332 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13333 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13336 if test x
"$ac_file" != x-
; then
13337 { echo "$as_me:13337: creating $ac_file" >&5
13338 echo "$as_me: creating $ac_file" >&6;}
13341 # Let's still pretend it is `configure' which instantiates (i.e., don't
13342 # use $as_me), people would be surprised to read:
13343 # /* config.h. Generated automatically by config.status. */
13344 configure_input
="Generated automatically from `echo $ac_file_in |
13345 sed 's,.*/,,'` by configure."
13347 # First look for the input files in the build tree, otherwise in the
13349 ac_file_inputs
=`IFS=:
13350 for f in $ac_file_in; do
13352 -) echo $tmp/stdin ;;
13354 # Absolute (can't be DOS-style, as IFS=:)
13355 test -f "$f" || { { echo "$as_me:13355: error: cannot find input file: $f" >&5
13356 echo "$as_me: error: cannot find input file: $f" >&2;}
13357 { (exit 1); exit 1; }; }
13360 if test -f "$f"; then
13363 elif test -f "$srcdir/$f"; then
13368 { { echo "$as_me:13368: error: cannot find input file: $f" >&5
13369 echo "$as_me: error: cannot find input file: $f" >&2;}
13370 { (exit 1); exit 1; }; }
13373 done` ||
{ (exit 1); exit 1; }
13375 cat >>$CONFIG_STATUS <<EOF
13379 cat >>$CONFIG_STATUS <<\EOF
13381 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13382 s
,@configure_input@
,$configure_input,;t t
13383 s
,@srcdir@
,$ac_srcdir,;t t
13384 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13385 s
,@INSTALL@
,$ac_INSTALL,;t t
13386 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13388 if test x"$ac_file" != x-; then
13389 mv $tmp/out $ac_file
13397 cat >>$CONFIG_STATUS <<\EOF
13400 # CONFIG_HEADER section.
13403 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13404 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13406 # ac_d sets the value in "#define NAME VALUE" lines.
13407 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13408 ac_dB
='[ ].*$,\1#\2'
13411 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13412 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13413 ac_uB
='$,\1#\2define\3'
13417 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13420 - |
*:- |
*:-:* ) # input from stdin
13422 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13423 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13424 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13425 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13426 * ) ac_file_in
=$ac_file.
in ;;
13429 test x
"$ac_file" != x-
&& { echo "$as_me:13429: creating $ac_file" >&5
13430 echo "$as_me: creating $ac_file" >&6;}
13432 # First look for the input files in the build tree, otherwise in the
13434 ac_file_inputs
=`IFS=:
13435 for f in $ac_file_in; do
13437 -) echo $tmp/stdin ;;
13439 # Absolute (can't be DOS-style, as IFS=:)
13440 test -f "$f" || { { echo "$as_me:13440: error: cannot find input file: $f" >&5
13441 echo "$as_me: error: cannot find input file: $f" >&2;}
13442 { (exit 1); exit 1; }; }
13445 if test -f "$f"; then
13448 elif test -f "$srcdir/$f"; then
13453 { { echo "$as_me:13453: error: cannot find input file: $f" >&5
13454 echo "$as_me: error: cannot find input file: $f" >&2;}
13455 { (exit 1); exit 1; }; }
13458 done` ||
{ (exit 1); exit 1; }
13459 # Remove the trailing spaces.
13460 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13464 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13465 # `conftest.undefs', that substitutes the proper values into
13466 # config.h.in to produce config.h. The first handles `#define'
13467 # templates, and the second `#undef' templates.
13468 # And first: Protect against being on the right side of a sed subst in
13469 # config.status. Protect against being in an unquoted here document
13470 # in config.status.
13471 rm -f conftest.defines conftest.undefs
13472 # Using a here document instead of a string reduces the quoting nightmare.
13473 # Putting comments in sed scripts is not portable.
13475 # `end' is used to avoid that the second main sed command (meant for
13476 # 0-ary CPP macros) applies to n-ary macro definitions.
13477 # See the Autoconf documentation for `clear'.
13478 cat >confdef2sed.
sed <<\EOF
13483 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13485 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13488 # If some macros were called several times there might be several times
13489 # the same #defines, which is useless. Nevertheless, we may not want to
13490 # sort them, since we want the *last* AC-DEFINE to be honored.
13491 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13492 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13493 rm -f confdef2sed.sed
13495 # This sed command replaces #undef with comments. This is necessary, for
13496 # example, in the case of _POSIX_SOURCE, which is predefined and required
13497 # on some systems where configure will not decide to define it.
13498 cat >>conftest.undefs <<\EOF
13499 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13502 # Break up conftest.defines because some shells have a limit on the size
13503 # of here documents, and old seds have small limits too (100 cmds).
13504 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13505 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13506 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13507 echo ' :' >>$CONFIG_STATUS
13508 rm -f conftest.tail
13509 while grep . conftest.defines >/dev/null
13511 # Write a limited-size here document to $tmp/defines.sed.
13512 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13513 # Speed up: don't consider the non `#define' lines.
13514 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13515 # Work around the forget-to-reset-the-flag bug.
13516 echo 't clr' >>$CONFIG_STATUS
13517 echo ': clr' >>$CONFIG_STATUS
13518 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13520 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13522 mv $tmp/out $tmp/in
13524 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13525 rm -f conftest.defines
13526 mv conftest.
tail conftest.defines
13528 rm -f conftest.defines
13529 echo ' fi # egrep' >>$CONFIG_STATUS
13530 echo >>$CONFIG_STATUS
13532 # Break up conftest.undefs because some shells have a limit on the size
13533 # of here documents, and old seds have small limits too (100 cmds).
13534 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13535 rm -f conftest.
tail
13536 while grep . conftest.undefs
>/dev
/null
13538 # Write a limited-size here document to $tmp/undefs.sed.
13539 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13540 # Speed up: don't consider the non
`#undef'
13541 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13542 # Work around the forget-to-reset-the-flag bug.
13543 echo 't clr' >>$CONFIG_STATUS
13544 echo ': clr' >>$CONFIG_STATUS
13545 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13547 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13549 mv $tmp/out $tmp/in
13551 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13552 rm -f conftest.undefs
13553 mv conftest.tail conftest.undefs
13555 rm -f conftest.undefs
13557 cat >>$CONFIG_STATUS <<\EOF
13558 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13559 # use $as_me), people would be surprised to read:
13560 # /* config.h. Generated automatically by config.status. */
13561 if test x
"$ac_file" = x-
; then
13562 echo "/* Generated automatically by configure. */" >$tmp/config.h
13564 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13566 cat $tmp/in >>$tmp/config.h
13568 if test x
"$ac_file" != x-
; then
13569 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13570 { echo "$as_me:13570: $ac_file is unchanged" >&5
13571 echo "$as_me: $ac_file is unchanged" >&6;}
13573 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13574 X"$ac_file" : 'X\(//\)[^/]' \| \
13575 X"$ac_file" : 'X\(//\)$' \| \
13576 X"$ac_file" : 'X\(/\)' \| \
13577 . : '\(.\)' 2>/dev/null ||
13579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13581 /^X\(\/\/\)$/{ s//\1/; q; }
13582 /^X\(\/\).*/{ s//\1/; q; }
13584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13585 { case "$ac_dir" in
13586 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13590 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13591 case $as_mkdir_dir in
13592 # Skip DOS drivespec
13593 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13595 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13596 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13603 mv $tmp/config.h
$ac_file
13607 rm -f $tmp/config.h
13611 cat >>$CONFIG_STATUS <<\EOF
13614 # CONFIG_COMMANDS section.
13616 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13617 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13618 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13623 ### Make the necessary directories, if they don't exist.
13624 for dir
in etc lisp
; do
13625 test -d ${dir} || mkdir
${dir}
13628 # Build src/Makefile from ${srcdir}/src/Makefile.c
13629 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13630 # This must be done after src/config.h is built, since we rely on that file.
13632 # Now get this: Some word that is part of the ${srcdir} directory name
13633 # or the ${configuration} value might, just might, happen to be an
13634 # identifier like `sun4' or `i386' or something, and be predefined by
13635 # the C preprocessor to some helpful value like 1, or maybe the empty
13636 # string. Needless to say consequent macro substitutions are less
13637 # than conducive to the makefile finding the correct directory.
13638 undefs
="`echo $top_srcdir $configuration $canonical |
13639 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13640 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13643 echo creating src
/epaths.h
13644 ${MAKE-make} epaths-force
13646 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13647 # `..' to `. .' unless invoked with -traditional
13649 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13650 CPPFLAGS
="$CPPFLAGS -traditional"
13653 echo creating lib-src
/Makefile
13655 rm -f junk.c junk1.c junk2.c
13656 sed -e '/start of cpp stuff/q' \
13657 < Makefile.c
> junk1.c
13658 sed -e '1,/start of cpp stuff/d'\
13659 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13660 < Makefile.c
> junk.c
13661 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13662 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13663 cat junk1.c junk2.c
> Makefile.new
13664 rm -f junk.c junk1.c junk2.c
13665 chmod 444 Makefile.new
13666 mv -f Makefile.new Makefile
13669 echo creating src
/Makefile
13671 rm -f junk.c junk1.c junk2.c
13672 sed -e '/start of cpp stuff/q' \
13673 < Makefile.c
> junk1.c
13674 sed -e '1,/start of cpp stuff/d'\
13675 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13676 < Makefile.c
> junk.c
13677 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13678 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13679 cat junk1.c junk2.c
> Makefile.new
13680 rm -f junk.c junk1.c junk2.c
13681 chmod 444 Makefile.new
13682 mv -f Makefile.new Makefile
13685 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13686 echo creating src
/.gdbinit
13687 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13690 # This is how we know whether to re-run configure in certain cases.
13691 touch src
/config.stamp
13698 cat >>$CONFIG_STATUS <<\EOF
13700 { (exit 0); exit 0; }
13702 chmod +x
$CONFIG_STATUS
13703 ac_clean_files
=$ac_clean_files_save
13705 # configure is writing to config.log, and then calls config.status.
13706 # config.status does its own redirection, appending to config.log.
13707 # Unfortunately, on DOS this fails, as config.log is still kept open
13708 # by configure, so config.status won't be able to write to it; its
13709 # output is simply discarded. So we exec the FD to /dev/null,
13710 # effectively closing config.log, so it can be properly (re)opened and
13711 # appended to by config.status. When coming back to configure, we
13712 # need to make the FD available again.
13713 if test "$no_create" != yes; then
13716 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13719 # would make configure fail if this is the last instruction.
13720 $ac_cs_success ||
{ (exit 1); exit 1; }