2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-largefile omit support
for large files
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --with-game-dir use a shared game directory
if possible
685 --with-game-user use specified user
for game directory
686 --without-gcc don
't use GCC to compile Emacs if GCC is found
687 --without-pop don't support POP
mail retrieval with movemail
688 --with-kerberos support Kerberos-authenticated POP
689 --with-kerberos5 support Kerberos version
5 authenticated POP
690 --with-hesiod support Hesiod to get the POP server
host
691 --without-sound don
't compile with sound support
692 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
693 --with-xpm use -lXpm for displaying XPM images
694 --with-jpeg use -ljpeg for displaying JPEG images
695 --with-tiff use -ltiff for displaying TIFF images
696 --with-gif use -lungif for displaying GIF images
697 --with-png use -lpng for displaying PNG images
698 --without-toolkit-scroll-bars
699 don't use Motif or Xaw3d scroll bars
700 --without-xim don
't use X11 XIM
701 --without-carbon don't use Carbon GUI on Mac OS X
702 --with-x use the X Window System
704 Some influential environment variables
:
705 CC C compiler
command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
708 nonstandard directory
<lib dir
>
709 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
710 headers
in a nonstandard directory
<include dir
>
713 Use these variables to override the choices made by
`configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
783 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
784 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
785 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
786 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
787 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
789 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
790 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
792 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
793 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
794 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
795 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
796 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
797 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
798 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
831 # Get rid of the leading space.
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
838 # Save into config.log some information that might help in debugging.
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
844 # The following way of writing the cache mishandles newlines in values,
847 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
920 # Check that the precious variables saved in the cache have kept the same
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
932 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
935 { echo "$as_me:935: error: \`$ac_var' was not
set in the previous run
" >&5
936 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
943 { echo "$as_me:943: former value
: $ac_old_val" >&5
944 echo "$as_me: former value
: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value
: $ac_new_val" >&5
946 echo "$as_me: current value
: $ac_new_val" >&2;}
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error
: changes
in the environment can compromise the build
" >&5
965 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
966 { { echo "$as_me:966: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1000 test "$program_prefix" != NONE &&
1001 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1002 # Use a double $ so make ignores it.
1003 test "$program_suffix" != NONE &&
1004 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1005 # Double any \ or $. echo might interpret backslashes.
1006 # By default was `s
,x
,x
', remove it if useless.
1007 cat <<\_ACEOF >conftest.sed
1008 s/[\\$]/&&/g;s/;s,x,x,$//
1010 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1013 lispdir='${datadir}/emacs
/${version}/lisp
'
1014 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1015 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1016 lisppath='${locallisppath}:${lispdir}'
1017 etcdir='${datadir}/emacs
/${version}/etc
'
1018 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1019 docdir='${datadir}/emacs
/${version}/etc
'
1022 # Check whether --with-game-dir or --without-game-dir was given.
1023 if test "${with_game_dir+set}" = set; then
1024 withval="$with_game_dir"
1029 if test "$gamedir" = yes; then
1030 gamedir="${localstatedir}/games/emacs"
1032 eval tgamedir=\"$gamedir\"
1033 if test "$gamedir" != no; then
1035 cat >>confdefs.h <<EOF
1036 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1043 # Check whether --with-game-user or --without-game-user was given.
1044 if test "${with_game_user+set}" = set; then
1045 withval="$with_game_user"
1049 # Check whether --with-gcc or --without-gcc was given.
1050 if test "${with_gcc+set}" = set; then
1055 # Check whether --with-pop or --without-pop was given.
1056 if test "${with_pop+set}" = set; then
1058 if test "$withval" = yes; then
1059 cat >>confdefs.h <<\EOF
1060 #define MAIL_USE_POP 1
1066 cat >>confdefs.h <<\EOF
1067 #define MAIL_USE_POP 1
1072 # Check whether --with-kerberos or --without-kerberos was given.
1073 if test "${with_kerberos+set}" = set; then
1074 withval="$with_kerberos"
1075 cat >>confdefs.h <<\EOF
1081 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1082 if test "${with_kerberos5+set}" = set; then
1083 withval="$with_kerberos5"
1084 if test "${with_kerberos5+set}" = set; then
1085 if test "${with_kerberos+set}" != set; then
1087 cat >>confdefs.h <<\EOF
1094 cat >>confdefs.h <<\EOF
1100 # Check whether --with-hesiod or --without-hesiod was given.
1101 if test "${with_hesiod+set}" = set; then
1102 withval="$with_hesiod"
1104 cat >>confdefs.h <<\EOF
1110 # Check whether --with-sound or --without-sound was given.
1111 if test "${with_sound+set}" = set; then
1112 withval="$with_sound"
1116 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1117 if test "${with_x_toolkit+set}" = set; then
1118 withval="$with_x_toolkit"
1119 case "${withval}" in
1120 y | ye | yes ) val=athena ;;
1122 l | lu | luc | luci | lucid ) val=lucid ;;
1123 a | at | ath | athe | athen | athena ) val=athena ;;
1124 m | mo | mot | moti | motif ) val=motif ;;
1126 { { echo "$as_me:1126: error: \`--with-x-toolkit=$withval' is invalid\
;
1127 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1128 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1129 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1130 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1131 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1132 { (exit 1); exit 1; }; }
1139 # Check whether --with-xpm or --without-xpm was given.
1140 if test "${with_xpm+set}" = set; then
1145 # Check whether --with-jpeg or --without-jpeg was given.
1146 if test "${with_jpeg+set}" = set; then
1147 withval="$with_jpeg"
1151 # Check whether --with-tiff or --without-tiff was given.
1152 if test "${with_tiff+set}" = set; then
1153 withval="$with_tiff"
1157 # Check whether --with-gif or --without-gif was given.
1158 if test "${with_gif+set}" = set; then
1163 # Check whether --with-png or --without-png was given.
1164 if test "${with_png+set}" = set; then
1169 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1170 if test "${with_toolkit_scroll_bars+set}" = set; then
1171 withval="$with_toolkit_scroll_bars"
1175 # Check whether --with-xim or --without-xim was given.
1176 if test "${with_xim+set}" = set; then
1181 # Check whether --with-carbon or --without-carbon was given.
1182 if test "${with_carbon+set}" = set; then
1183 withval="$with_carbon"
1187 #### Make srcdir absolute, if it isn't already. It
's important to
1188 #### avoid running the path through pwd unnecessarily, since pwd can
1189 #### give you automounter prefixes, which can go away. We do all this
1190 #### so Emacs can find its files when run uninstalled.
1191 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1196 ## We may be able to use the $PWD environment variable to make this
1197 ## absolute. But sometimes PWD is inaccurate.
1198 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1199 ## but that tested only for a well-formed and valid PWD,
1200 ## it did not object when PWD was well-formed and valid but just wrong.
1201 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1205 srcdir
="`(cd ${srcdir}; pwd)`"
1208 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1211 #### Check if the source directory already has a configured system in it.
1212 if test `pwd` != `(cd ${srcdir} && pwd)` \
1213 && test -f "${srcdir}/src/config.h" ; then
1214 { echo "$as_me:1214: WARNING: The directory tree \`${srcdir}' is being used
1215 as a build directory right now; it has been configured in its own
1216 right. To configure in another directory as well, you MUST
1217 use GNU make. If you do not have GNU make, then you must
1218 now do \`make distclean' in ${srcdir},
1219 and then run $0 again." >&5
1220 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1221 as a build directory right now; it has been configured in its own
1222 right. To configure in another directory as well, you MUST
1223 use GNU make. If you do not have GNU make, then you must
1224 now do \`make distclean' in ${srcdir},
1225 and then run $0 again." >&2;}
1227 extrasub
='/^VPATH[ ]*=/c\
1228 vpath %.c $(srcdir)\
1229 vpath %.h $(srcdir)\
1230 vpath %.y $(srcdir)\
1231 vpath %.l $(srcdir)\
1232 vpath %.s $(srcdir)\
1233 vpath %.in $(srcdir)\
1234 vpath %.texi $(srcdir)'
1237 #### Given the configuration name, set machfile and opsysfile to the
1238 #### names of the m/*.h and s/*.h files we should use.
1240 ### Canonicalize the configuration name.
1243 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1244 if test -f $ac_dir/install-sh
; then
1246 ac_install_sh
="$ac_aux_dir/install-sh -c"
1248 elif test -f $ac_dir/install.sh
; then
1250 ac_install_sh
="$ac_aux_dir/install.sh -c"
1252 elif test -f $ac_dir/shtool
; then
1254 ac_install_sh
="$ac_aux_dir/shtool install -c"
1258 if test -z "$ac_aux_dir"; then
1259 { { echo "$as_me:1259: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1260 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1261 { (exit 1); exit 1; }; }
1263 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1264 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1265 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1267 # Make sure we can run config.sub.
1268 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1269 { { echo "$as_me:1269: error: cannot run $ac_config_sub" >&5
1270 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1271 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: checking build system type" >&5
1274 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1275 if test "${ac_cv_build+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1278 ac_cv_build_alias
=$build_alias
1279 test -z "$ac_cv_build_alias" &&
1280 ac_cv_build_alias
=`$ac_config_guess`
1281 test -z "$ac_cv_build_alias" &&
1282 { { echo "$as_me:1282: error: cannot guess build type; you must specify one" >&5
1283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1284 { (exit 1); exit 1; }; }
1285 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1286 { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: $ac_cv_build" >&5
1292 echo "${ECHO_T}$ac_cv_build" >&6
1294 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1298 echo "$as_me:1298: checking host system type" >&5
1299 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1300 if test "${ac_cv_host+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_host_alias
=$host_alias
1304 test -z "$ac_cv_host_alias" &&
1305 ac_cv_host_alias
=$ac_cv_build_alias
1306 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_host" >&5
1313 echo "${ECHO_T}$ac_cv_host" >&6
1315 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 configuration
=${host_alias-$host}
1322 ### If you add support for a new configuration, add code to this
1323 ### switch statement to recognize your configuration name and select
1324 ### the appropriate operating system and machine description files.
1326 ### You would hope that you could choose an m/*.h file pretty much
1327 ### based on the machine portion of the configuration name, and an s-
1328 ### file based on the operating system portion. However, it turns out
1329 ### that each m/*.h file is pretty manufacturer-specific - for
1330 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1331 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1332 ### machines. So we basically have to have a special case for each
1333 ### configuration name.
1335 ### As far as handling version numbers on operating systems is
1336 ### concerned, make sure things will fail in a fixable way. If
1337 ### /etc/MACHINES doesn't say anything about version numbers, be
1338 ### prepared to handle anything reasonably. If version numbers
1339 ### matter, be sure /etc/MACHINES says something about it.
1341 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1342 ### "System V Release 4"; he writes, "The old convention encouraged
1343 ### confusion between `system' and `release' levels'."
1345 machine
='' opsys
='' unported
=no
1346 case "${canonical}" in
1351 case "${canonical}" in
1352 alpha
*-*-freebsd*) machine
=alpha
;;
1353 i
[3456]86-*-freebsd*) machine
=intel386
;;
1360 case "${canonical}" in
1361 alpha
*-*-netbsd*) machine
=alpha
;;
1362 i
[3456]86-*-netbsd*) machine
=intel386
;;
1364 # This is somewhat bogus.
1365 machine
=hp9000s300
;;
1366 powerpc-apple-netbsd
*) machine
=macppc
;;
1367 mips-
*-netbsd*) machine
=pmax
;;
1368 mipsel-
*-netbsd*) machine
=pmax
;;
1369 ns32k-
*-netbsd*) machine
=ns32000
;;
1370 powerpc-
*-netbsd*) machine
=macppc
;;
1371 sparc
*-*-netbsd*) machine
=sparc
;;
1372 vax-
*-netbsd*) machine
=vax
;;
1373 arm-
*-netbsd*) machine
=arm
;;
1380 case "${canonical}" in
1381 alpha
*-*-openbsd*) machine
=alpha
;;
1382 i386-
*-openbsd*) machine
=intel386
;;
1383 m68k-
*-openbsd*) machine
=hp9000s300
;;
1384 mipsel-
*-openbsd*) machine
=pmax
;;
1385 ns32k-
*-openbsd*) machine
=ns32000
;;
1386 sparc-
*-openbsd*) machine
=sparc
;;
1387 vax-
*-openbsd*) machine
=vax
;;
1392 arm-acorn-riscix1.1
* )
1393 machine
=acorn opsys
=riscix1-1
1395 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1396 ## This name is riscix12 instead of riscix1.2
1397 ## to avoid a file name conflict on MSDOS.
1398 machine
=acorn opsys
=riscix12
1404 case "${canonical}" in
1405 i
[345]86-*-bsdi*) machine
=intel386
;;
1406 sparc-
*-bsdi*) machine
=sparc
;;
1407 powerpc-
*-bsdi*) machine
=macppc
;;
1409 case "${canonical}" in
1410 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1411 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1412 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1413 *-*-bsdi3* ) opsys
=bsdos3
;;
1414 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1419 ## Strictly speaking, we need the version of the alliant operating
1420 ## system to choose the right machine file, but currently the
1421 ## configuration name doesn't tell us enough to choose the right
1422 ## one; we need to give alliants their own operating system name to
1423 ## do this right. When someone cares, they can help us.
1425 machine
=alliant4 opsys
=bsd4-2
1428 machine
=alliant-2800 opsys
=bsd4-3
1431 ## Alpha (DEC) machines.
1433 machine
=alpha opsys
=osf1
1434 # This is needed to find X11R6.1 libraries for certain tests.
1435 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1436 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1437 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1438 # due to non-traditional preprocessing with the current compiler
1439 # defaults. OSF 4 can also have that compiler version, and there
1440 # seems always to have been a usable /usr/bin/cpp.
1441 NON_GNU_CPP
=/usr
/bin
/cpp
1442 case "${canonical}" in
1443 alpha
*-dec-osf[5-9]*)
1448 alpha
*-*-linux-gnu* )
1449 machine
=alpha opsys
=gnu-linux
1453 machine
=arm opsys
=gnu-linux
1458 machine
=macppc opsys
=gnu-linux
1463 machine
=altos opsys
=usg5-2
1468 machine
=amdahl opsys
=usg5-2-2
1471 ## Apollo, Domain/OS
1473 machine
=apollo opsys
=bsd4-3
1476 ## AT&T 3b2, 3b5, 3b15, 3b20
1478 machine
=att3b opsys
=usg5-2-2
1481 ## AT&T 3b1 - The Mighty Unix PC!
1483 machine
=7300 opsys
=usg5-2-2
1488 machine
=ibmrs6000 opsys
=aix3-2
1493 machine
=dpx2 opsys
=usg5-3
1498 machine
=sps7 opsys
=usg5-2
1501 ## CCI 5/32, 6/32 -- see "Tahoe".
1504 ## I don't know what configuration name to use for this; config.sub
1505 ## doesn't seem to know anything about it. Hey, Celerity users, get
1506 ## in touch with us!
1507 celerity-celerity-bsd
* )
1508 machine
=celerity opsys
=bsd4-2
1512 ## What operating systems does this chip run that Emacs has been
1516 ## We'll use the catch-all code at the bottom to guess the
1517 ## operating system.
1521 mips-compaq-nonstopux
* )
1522 machine
=nonstopux opsys
=nonstopux
1526 *-convex-bsd* |
*-convex-convexos* )
1527 machine
=convex opsys
=bsd4-3
1528 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1529 NON_GNU_CPP
="cc -E -P"
1533 i
[3456]86-cubix-sysv* )
1534 machine
=intel386 opsys
=usg5-3
1538 cydra
*-cydrome-sysv* )
1539 machine
=cydra5 opsys
=usg5-3
1542 ## Data General AViiON Machines
1543 ## DG changed naming conventions with the release of 5.4.4.10, they
1544 ## dropped the initial 5.4 but left the intervening R. Because of the
1545 ## R this shouldn't conflict with older versions of the OS (which I
1546 ## think were named like dgux4.*). In addition, DG new AViiONs series
1547 ## uses either Motorola M88k or Intel Pentium CPUs.
1548 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1549 machine
=aviion opsys
=dgux4
1551 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1552 ## This name is dgux5-4-3 instead of dgux5-4r3
1553 ## to avoid a file name conflict on MSDOS.
1554 machine
=aviion opsys
=dgux5-4-3
1556 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1557 machine
=aviion opsys
=dgux5-4r2
1560 machine
=aviion opsys
=dgux
1563 ## Data General AViiON Intel (x86) Machines
1564 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1565 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1566 i
[345]86-dg-dguxR4* )
1567 machine
=aviion-intel opsys
=dgux4
1571 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1572 machine
=pmax opsys
=bsd4-2
1574 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1575 machine
=pmax opsys
=bsd4-3
1578 machine
=pmax opsys
=ultrix4-3
1581 machine
=pmax opsys
=osf1
1583 mips-dec-mach_bsd4.3
* )
1584 machine
=pmax opsys
=mach-bsd4-3
1587 ## Motorola Delta machines
1588 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1589 machine
=delta opsys
=usg5-3
1590 if test -z "`type gnucc | grep 'not found'`"
1592 if test -s /etc
/167config
1593 then CC
="gnucc -m68040"
1594 else CC
="gnucc -m68881"
1597 if test -z "`type gcc | grep 'not found'`"
1603 m88k-motorola-sysv4
* )
1604 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1605 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1606 # I hope there are not other 4.0 versions for this machine
1607 # which really need usg5-4 instead.
1608 machine
=delta88k opsys
=usg5-4-2
1610 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1611 machine
=delta88k opsys
=usg5-3
1616 machine
=dual opsys
=usg5-2
1618 m68
*-dual-uniplus* )
1619 machine
=dual opsys
=unipl5-2
1624 machine
=elxsi opsys
=usg5-2
1629 machine
=ns16000 opsys
=umax
1632 ## The GEC 63 - apparently, this port isn't really finished yet.
1633 # I'm sure we finished off the last of the machines, though. -- fx
1635 ## Gould Power Node and NP1
1637 machine
=gould opsys
=bsd4-2
1640 machine
=gould opsys
=bsd4-3
1643 machine
=gould-np1 opsys
=bsd4-3
1646 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1647 ## as far as Emacs is concerned).
1649 # Build needs to be different on 7.0 and later releases
1650 case "`uname -r`" in
1651 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1652 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1654 NON_GNU_CPP
="/lib/cpp"
1656 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1658 machine
=nh3000 opsys
=cxux
1660 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1661 powerpc-harris-powerunix
)
1662 machine
=nh6000 opsys
=powerunix
1663 NON_GNU_CPP
="cc -Xo -E -P"
1665 ## SR2001/SR2201 running HI-UX/MPP
1666 hppa1.1
-hitachi-hiuxmpp* )
1667 machine
=sr2k opsys
=hiuxmpp
1669 hppa1.1
-hitachi-hiuxwe2* )
1670 machine
=sr2k opsys
=hiuxwe2
1673 xps
*-honeywell-sysv* )
1674 machine
=xps100 opsys
=usg5-2
1677 ## HP 9000 series 200 or 300
1679 machine
=hp9000s300 opsys
=bsd4-3
1681 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1683 case "`uname -r`" in
1684 ## Someone's system reports A.B8.05 for this.
1685 ## I wonder what other possibilities there are.
1686 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1687 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1688 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1689 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1690 *) machine
=hp9000s300 opsys
=hpux
;;
1694 ## HP 9000 series 700 and 800, running HP/UX
1696 machine
=hp800 opsys
=hpux
1699 machine
=hp800 opsys
=hpux8
1701 hppa
*-hp-hpux9shr* )
1702 machine
=hp800 opsys
=hpux9shr
1705 machine
=hp800 opsys
=hpux9
1708 machine
=hp800 opsys
=hpux10
1710 hppa
*-hp-hpux1[1-9]* )
1711 machine
=hp800 opsys
=hpux11
1714 hppa
*-*-linux-gnu* )
1715 machine
=hp800 opsys
=gnu-linux
1718 ## HP 9000 series 700 and 800, running HP/UX
1720 ## Cross-compilation? Nah!
1721 case "`uname -r`" in
1722 ## Someone's system reports A.B8.05 for this.
1723 ## I wonder what other possibilities there are.
1724 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1725 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1726 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1727 *) machine
=hp800 opsys
=hpux10
;;
1731 machine
=hp800 opsys
=nextstep
1736 machine
=orion opsys
=bsd4-2
1738 clipper-orion-bsd
* )
1739 machine
=orion105 opsys
=bsd4-2
1743 i
[3456]86-ibm-aix1.1
* )
1744 machine
=ibmps2-aix opsys
=usg5-2-2
1746 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1747 machine
=ibmps2-aix opsys
=usg5-3
1750 machine
=ibm370aix opsys
=usg5-3
1753 machine
=ibms390 opsys
=gnu-linux
1755 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1756 machine
=ibmrs6000 opsys
=aix3-1
1758 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1759 machine
=ibmrs6000 opsys
=aix3-2-5
1761 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1762 machine
=ibmrs6000 opsys
=aix4-1
1764 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1765 machine
=ibmrs6000 opsys
=aix4-2
1767 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1768 machine
=ibmrs6000 opsys
=aix4-2
1770 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1771 machine
=ibmrs6000 opsys
=aix4
1773 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1774 machine
=ibmrs6000 opsys
=aix4-1
1776 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1777 machine
=ibmrs6000 opsys
=aix3-2
1780 machine
=ibmrt opsys
=bsd4-3
1783 machine
=ibmrt opsys
=bsd4-2
1786 machine
=ibmrt opsys
=bsd4-3
1789 machine
=ibmrt opsys
=bsd4-2
1792 machine
=ibmrt opsys
=bsd4-3
1795 machine
=ibmrt opsys
=bsd4-3
1798 machine
=ibmrt-aix opsys
=usg5-2-2
1801 ## Integrated Solutions `Optimum V'
1803 machine
=isi-ov opsys
=bsd4-2
1806 machine
=isi-ov opsys
=bsd4-3
1809 ## Intel 386 machines where we do care about the manufacturer
1810 i
[3456]86-intsys-sysv* )
1811 machine
=is386 opsys
=usg5-2-2
1815 i
[3456]86-prime-sysv* )
1816 machine
=i386 opsys
=usg5-3
1819 ## Sequent Symmetry running Dynix
1820 i
[3456]86-sequent-bsd* )
1821 machine
=symmetry opsys
=bsd4-3
1824 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1825 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1826 machine
=sequent-ptx opsys
=ptx4
1827 NON_GNU_CPP
=/lib
/cpp
1830 ## Sequent Symmetry running DYNIX/ptx
1831 ## Use the old cpp rather than the newer ANSI one.
1832 i
[3456]86-sequent-ptx* )
1833 machine
=sequent-ptx opsys
=ptx
1834 NON_GNU_CPP
="/lib/cpp"
1837 ## ncr machine running svr4.3.
1838 i
[3456]86-ncr-sysv4.3
)
1839 machine
=ncr386 opsys
=usg5-4-3
1842 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1843 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1844 i
[3456]86-ncr-sysv* )
1845 machine
=ncr386 opsys
=usg5-4-2
1848 ## Intel Paragon OSF/1
1850 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1855 machine
=i860 opsys
=usg5-4
1856 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1857 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1860 ## Macintosh PowerPC
1861 powerpc
*-*-linux-gnu* )
1862 machine
=macppc opsys
=gnu-linux
1865 ## Masscomp machines
1866 m68
*-masscomp-rtu* )
1867 machine
=masscomp opsys
=rtu
1870 ## Megatest machines
1871 m68
*-megatest-bsd* )
1872 machine
=mega68 opsys
=bsd4-2
1875 ## Workstations sold by MIPS
1876 ## This is not necessarily all workstations using the MIPS processor -
1877 ## Irises are produced by SGI, and DECstations by DEC.
1879 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1880 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1881 ## it gives for choosing between the alternatives seems to be "Use
1882 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1883 ## the BSD world." I'll assume that these are instructions for
1884 ## handling two odd situations, and that every other situation
1885 ## should use mips.h and usg5-2-2, they being listed first.
1888 ## Fall through to the general code at the bottom to decide on the OS.
1890 mips-mips-riscos4
* )
1891 machine
=mips4 opsys
=bsd4-3
1892 NON_GNU_CC
="cc -systype bsd43"
1893 NON_GNU_CPP
="cc -systype bsd43 -E"
1895 mips-mips-riscos5
* )
1896 machine
=mips4 opsys
=riscos5
1897 NON_GNU_CC
="cc -systype bsd43"
1898 NON_GNU_CPP
="cc -systype bsd43 -E"
1901 machine
=mips opsys
=bsd4-3
1904 machine
=mips opsys
=usg5-2-2
1908 m68
*-next-* | m68k-
*-nextstep* )
1909 machine
=m68k opsys
=nextstep
1912 ## The complete machine from National Semiconductor
1914 machine
=ns32000 opsys
=usg5-2
1918 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1919 machine
=tower32 opsys
=usg5-2-2
1921 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1922 machine
=tower32v3 opsys
=usg5-3
1927 machine
=ews4800 opsys
=ux4800
1930 ## Nixdorf Targon 31
1931 m68
*-nixdorf-sysv* )
1932 machine
=targon31 opsys
=usg5-2-2
1937 machine
=nu opsys
=usg5-2
1942 machine
=plexus opsys
=usg5-2
1945 ## PowerPC reference platform
1946 powerpcle-
*-solaris2* )
1952 ## I don't really have any idea what sort of processor the Pyramid has,
1953 ## so I'm assuming it is its own architecture.
1954 pyramid-pyramid-bsd
* )
1955 machine
=pyramid opsys
=bsd4-2
1959 ns32k-sequent-bsd4.2
* )
1960 machine
=sequent opsys
=bsd4-2
1962 ns32k-sequent-bsd4.3
* )
1963 machine
=sequent opsys
=bsd4-3
1967 mips-siemens-sysv
* | mips-sni-sysv
*)
1968 machine
=mips-siemens opsys
=usg5-4
1969 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1970 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1973 ## Silicon Graphics machines
1974 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1976 machine
=irist opsys
=iris3-5
1978 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1979 machine
=irist opsys
=iris3-6
1983 machine
=iris4d opsys
=irix3-3
1986 machine
=iris4d opsys
=irix4-0
1989 machine
=iris4d opsys
=irix6-5
1990 # Without defining _LANGUAGE_C, things get masked out in the headers
1991 # so that, for instance, grepping for `free' in stdlib.h fails and
1992 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1993 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1994 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1997 machine
=iris4d opsys
=irix6-0
1998 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1999 # but presumably it does no harm.
2000 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2001 # -32 probably isn't necessary in later v.6s -- anyone know which?
2002 NON_GCC_TEST_OPTIONS
=-32
2004 mips-sgi-irix5.
[01]* )
2005 machine
=iris4d opsys
=irix5-0
2007 mips-sgi-irix5
* | mips-sgi-irix
* )
2008 machine
=iris4d opsys
=irix5-2
2013 machine
=news opsys
=bsd4-2
2016 machine
=news opsys
=bsd4-3
2018 m68
*-sony-newsos3* | m68
*-sony-news3*)
2019 machine
=news opsys
=bsd4-3
2021 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2022 machine
=news-risc opsys
=bsd4-3
2024 mips-sony-newsos6
* )
2025 machine
=news-r6 opsys
=newsos6
2028 machine
=news-risc opsys
=newsos5
2033 machine
=stride opsys
=usg5-2
2037 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2038 machine
=sparc opsys
=gnu-linux
2041 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2042 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2043 | rs6000-
*-solaris2*)
2044 case "${canonical}" in
2045 m68
*-sunos1* ) machine
=sun1
;;
2046 m68
*-sunos2* ) machine
=sun2
;;
2047 m68
* ) machine
=sun3
;;
2048 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2049 i
[3456]86-*-* ) machine
=intel386
;;
2050 powerpcle
* ) machine
=powerpcle
;;
2051 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2052 sparc
* ) machine
=sparc
;;
2055 case "${canonical}" in
2056 ## The Sun386 didn't get past 4.0.
2057 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2058 *-sunos4.0
* ) opsys
=sunos4-0
;;
2059 *-sunos4.1.
[3-9]*noshare
)
2060 ## This name is sunos413 instead of sunos4-1-3
2061 ## to avoid a file name conflict on MSDOS.
2063 NON_GNU_CPP
=/usr
/lib
/cpp
2064 NON_GCC_TEST_OPTIONS
=-Bstatic
2065 GCC_TEST_OPTIONS
=-static
2067 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2069 NON_GNU_CPP
=/usr
/lib
/cpp
2071 *-sunos4* |
*-sunos )
2073 NON_GCC_TEST_OPTIONS
=-Bstatic
2074 GCC_TEST_OPTIONS
=-static
2076 *-sunos5.3
* |
*-solaris2.3
* )
2078 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2080 *-sunos5.4
* |
*-solaris2.4
* )
2082 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2085 *-sunos5.5
* |
*-solaris2.5
* )
2087 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2090 *-sunos5* |
*-solaris* )
2092 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2096 ## Watch out for a compiler that we know will not work.
2097 case "${canonical}" in
2098 *-solaris* |
*-sunos5* )
2099 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2100 ## /usr/ucb/cc doesn't work;
2101 ## we should find some other compiler that does work.
2109 machine
=sparc opsys
=nextstep
2113 m68
*-tadpole-sysv* )
2114 machine
=tad68k opsys
=usg5-3
2118 tahoe-tahoe-bsd4.2
* )
2119 machine
=tahoe opsys
=bsd4-2
2121 tahoe-tahoe-bsd4.3
* )
2122 machine
=tahoe opsys
=bsd4-3
2125 ## Tandem Integrity S2
2127 machine
=tandem-s2 opsys
=usg5-3
2131 m88k-tektronix-sysv3
* )
2132 machine
=tekxd88 opsys
=usg5-3
2135 ## Tektronix 16000 box (6130?)
2136 ns16k-tektronix-bsd
* )
2137 machine
=ns16000 opsys
=bsd4-2
2140 ## src/m/tek4300.h hints that this is a m68k machine.
2141 m68
*-tektronix-bsd* )
2142 machine
=tek4300 opsys
=bsd4-3
2146 ## We seem to have lost the machine-description file titan.h!
2148 machine
=titan opsys
=usg5-3
2151 ## Ustation E30 (SS5E)
2152 m68
*-unisys-uniplus* )
2153 machine
=ustation opsystem
=unipl5-2
2159 case "${canonical}" in
2160 *-bsd4.1
* ) opsys
=bsd4-1
;;
2161 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2162 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2163 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2164 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2165 *-vms* ) opsys
=vms
;;
2171 ns16k-whitechapel-
* )
2173 ## We don't know what sort of OS runs on these; we'll let the
2174 ## operating system guessing code below try.
2179 machine
=wicat opsys
=usg5-2
2184 machine
=ia64 opsys
=gnu-linux
2187 ## Intel 386 machines where we don't care about the manufacturer
2190 case "${canonical}" in
2191 *-lynxos* ) opsys
=lynxos
;;
2192 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2193 *-isc2.2
* ) opsys
=isc2-2
;;
2194 *-isc4.0
* ) opsys
=isc4-0
;;
2195 *-isc4.
* ) opsys
=isc4-1
2196 GCC_TEST_OPTIONS
=-posix
2197 NON_GCC_TEST_OPTIONS
=-Xp
2199 *-isc* ) opsys
=isc3-0
;;
2200 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2201 *-esix* ) opsys
=esix
;;
2202 *-xenix* ) opsys
=xenix
;;
2203 *-linux-gnu* ) opsys
=gnu-linux
;;
2204 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2205 *-sco3.2v5
* ) opsys
=sco5
2206 NON_GNU_CPP
=/lib
/cpp
2207 # Prevent -belf from being passed to $CPP.
2208 # /lib/cpp does not accept it.
2209 OVERRIDE_CPPFLAGS
=" "
2211 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2212 *-386bsd* ) opsys
=386bsd
;;
2213 *-nextstep* ) opsys
=nextstep
;;
2214 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2218 ## m68k Linux-based GNU system
2220 machine
=m68k opsys
=gnu-linux
2223 ## Mips Linux-based GNU system
2225 machine
=mips opsys
=gnu-linux
2229 sparc-fujitsu-sysv4
* )
2230 machine
=sparc opsys
=uxpds
2231 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2236 f301-fujitsu-uxpv4.1
)
2237 machine
=f301 opsys
=uxpv
2240 ## Darwin / Mac OS X
2241 powerpc-apple-darwin
* )
2242 machine
=powermac opsys
=darwin
2243 # Define CPP as follows to make autoconf work correctly.
2244 CPP
="cc -E -traditional-cpp"
2252 ### If the code above didn't choose an operating system, just choose
2253 ### an operating system based on the configuration name. You really
2254 ### only want to use this when you have no idea what the right
2255 ### operating system is; if you know what operating systems a machine
2256 ### runs, it's cleaner to make it explicit in the case statement
2258 if test x
"${opsys}" = x
; then
2259 case "${canonical}" in
2260 *-gnu* ) opsys
=gnu
;;
2261 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2262 *-bsd4.2
) opsys
=bsd4-2
;;
2263 *-bsd4.3
) opsys
=bsd4-3
;;
2264 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2265 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2266 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2267 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2268 *-sysv4.2uw
* ) opsys
=unixware
;;
2269 *-sysv4.1
* |
*-sysvr4.1
* )
2270 NON_GNU_CPP
=/usr
/lib
/cpp
2272 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2273 if [ x
$NON_GNU_CPP = x
]; then
2274 if [ -f /usr
/ccs
/lib
/cpp
]; then
2275 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2277 NON_GNU_CPP
=/lib
/cpp
2281 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2288 if test $unported = yes; then
2289 { { echo "$as_me:2289: error: Emacs hasn't been ported to \`${canonical}' systems.
2290 Check \`etc/MACHINES' for recognized configuration names." >&5
2291 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2292 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2293 { (exit 1); exit 1; }; }
2296 machfile
="m/${machine}.h"
2297 opsysfile
="s/${opsys}.h"
2299 #### Choose a compiler.
2300 test -n "$CC" && cc_specified
=yes
2302 # Save the value of CFLAGS that the user specified.
2303 SPECIFIED_CFLAGS
="$CFLAGS"
2306 "yes" ) CC
="gcc" GCC
=yes ;;
2307 "no" ) : ${CC=cc} ;;
2311 ac_cpp
='$CPP $CPPFLAGS'
2312 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2318 echo "$as_me:2318: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC
="$CC" # Let the user override the test.
2326 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2328 for ac_dir
in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir
=.
2331 $as_executable_p "$ac_dir/$ac_word" ||
continue
2332 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2333 echo "$as_me:2333: found $ac_dir/$ac_word" >&5
2340 if test -n "$CC"; then
2341 echo "$as_me:2341: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2349 if test -z "$ac_cv_prog_CC"; then
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352 set dummy gcc
; ac_word
=$2
2353 echo "$as_me:2353: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2361 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2363 for ac_dir
in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir
=.
2366 $as_executable_p "$ac_dir/$ac_word" ||
continue
2367 ac_cv_prog_ac_ct_CC
="gcc"
2368 echo "$as_me:2368: found $ac_dir/$ac_word" >&5
2374 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2375 if test -n "$ac_ct_CC"; then
2376 echo "$as_me:2376: result: $ac_ct_CC" >&5
2377 echo "${ECHO_T}$ac_ct_CC" >&6
2379 echo "$as_me:2379: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2391 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2392 echo "$as_me:2392: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC
="$CC" # Let the user override the test.
2400 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2402 for ac_dir
in $ac_dummy; do
2404 test -z "$ac_dir" && ac_dir
=.
2405 $as_executable_p "$ac_dir/$ac_word" ||
continue
2406 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2407 echo "$as_me:2407: found $ac_dir/$ac_word" >&5
2414 if test -n "$CC"; then
2415 echo "$as_me:2415: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6
2418 echo "$as_me:2418: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2423 if test -z "$ac_cv_prog_CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc
; ac_word
=$2
2427 echo "$as_me:2427: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2435 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2437 for ac_dir
in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir
=.
2440 $as_executable_p "$ac_dir/$ac_word" ||
continue
2441 ac_cv_prog_ac_ct_CC
="cc"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2448 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 echo "$as_me:2450: result: $ac_ct_CC" >&5
2451 echo "${ECHO_T}$ac_ct_CC" >&6
2453 echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2463 if test -z "$CC"; then
2464 # Extract the first word of "cc", so it can be a program name with args.
2465 set dummy cc
; ac_word
=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC
="$CC" # Let the user override the test.
2475 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2477 for ac_dir
in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir
=.
2480 $as_executable_p "$ac_dir/$ac_word" ||
continue
2481 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2482 ac_prog_rejected
=yes
2486 echo "$as_me:2486: found $ac_dir/$ac_word" >&5
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy
$ac_cv_prog_CC
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2499 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2507 if test -n "$CC"; then
2508 echo "$as_me:2508: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6
2511 echo "$as_me:2511: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2521 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2522 echo "$as_me:2522: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC
="$CC" # Let the user override the test.
2530 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2532 for ac_dir
in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir
=.
2535 $as_executable_p "$ac_dir/$ac_word" ||
continue
2536 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:2537: found $ac_dir/$ac_word" >&5
2544 if test -n "$CC"; then
2545 echo "$as_me:2545: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6
2548 echo "$as_me:2548: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2552 test -n "$CC" && break
2555 if test -z "$CC"; then
2559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2560 set dummy
$ac_prog; ac_word
=$2
2561 echo "$as_me:2561: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2569 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2571 for ac_dir
in $ac_dummy; do
2573 test -z "$ac_dir" && ac_dir
=.
2574 $as_executable_p "$ac_dir/$ac_word" ||
continue
2575 ac_cv_prog_ac_ct_CC
="$ac_prog"
2576 echo "$as_me:2576: found $ac_dir/$ac_word" >&5
2582 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 echo "$as_me:2584: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6
2587 echo "$as_me:2587: result: no" >&5
2588 echo "${ECHO_T}no" >&6
2591 test -n "$ac_ct_CC" && break
2599 test -z "$CC" && { { echo "$as_me:2599: error: no acceptable cc found in \$PATH" >&5
2600 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2601 { (exit 1); exit 1; }; }
2603 # Provide some information about the compiler.
2604 echo "$as_me:2604:" \
2605 "checking for C compiler version" >&5
2606 ac_compiler
=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:2607: \"$ac_compiler --version </dev/null >&5\"") >&5
2608 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2610 echo "$as_me:2610: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:2612: \"$ac_compiler -v </dev/null >&5\"") >&5
2613 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:2617: \"$ac_compiler -V </dev/null >&5\"") >&5
2618 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2623 cat >conftest.
$ac_ext <<_ACEOF
2624 #line 2624 "configure"
2625 #include "confdefs.h"
2635 ac_clean_files_save
=$ac_clean_files
2636 ac_clean_files
="$ac_clean_files a.out a.exe"
2637 # Try to create an executable without -o first, disregard a.out.
2638 # It will help us diagnose broken compilers, and finding out an intuition
2640 echo "$as_me:2640: checking for C compiler default output" >&5
2641 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2642 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2643 if { (eval echo "$as_me:2643: \"$ac_link_default\"") >&5
2644 (eval $ac_link_default) 2>&5
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # Find the output, starting from the most likely. This scheme is
2649 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2651 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2652 ls a.out conftest 2>/dev/null;
2653 ls a.* conftest.* 2>/dev/null`; do
2655 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2656 a.out
) # We found the default executable, but exeext='' is most
2659 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2660 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2669 { { echo "$as_me:2669: error: C compiler cannot create executables" >&5
2670 echo "$as_me: error: C compiler cannot create executables" >&2;}
2671 { (exit 77); exit 77; }; }
2674 ac_exeext
=$ac_cv_exeext
2675 echo "$as_me:2675: result: $ac_file" >&5
2676 echo "${ECHO_T}$ac_file" >&6
2678 # Check the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 echo "$as_me:2680: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try
='./$ac_file'
2686 { (eval echo "$as_me:2686: \"$ac_try\"") >&5
2689 echo "$as_me:2689: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2693 if test "$cross_compiling" = maybe
; then
2696 { { echo "$as_me:2696: error: cannot run C compiled programs.
2697 If you meant to cross compile, use \`--host'." >&5
2698 echo "$as_me: error: cannot run C compiled programs.
2699 If you meant to cross compile, use \`--host'." >&2;}
2700 { (exit 1); exit 1; }; }
2704 echo "$as_me:2704: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6
2707 rm -f a.out a.exe conftest
$ac_cv_exeext
2708 ac_clean_files
=$ac_clean_files_save
2709 # Check the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 echo "$as_me:2711: checking whether we are cross compiling" >&5
2712 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2713 echo "$as_me:2713: result: $cross_compiling" >&5
2714 echo "${ECHO_T}$cross_compiling" >&6
2716 echo "$as_me:2716: checking for executable suffix" >&5
2717 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2718 if { (eval echo "$as_me:2718: \"$ac_link\"") >&5
2719 (eval $ac_link) 2>&5
2721 echo "$as_me:2721: \$? = $ac_status" >&5
2722 (exit $ac_status); }; then
2723 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2724 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2725 # work properly (i.e., refer to `conftest.exe'), while it won't with
2727 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2729 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2730 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737 { { echo "$as_me:2737: error: cannot compute EXEEXT: cannot compile and link" >&5
2738 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2739 { (exit 1); exit 1; }; }
2742 rm -f conftest
$ac_cv_exeext
2743 echo "$as_me:2743: result: $ac_cv_exeext" >&5
2744 echo "${ECHO_T}$ac_cv_exeext" >&6
2746 rm -f conftest.
$ac_ext
2747 EXEEXT
=$ac_cv_exeext
2749 echo "$as_me:2749: checking for object suffix" >&5
2750 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2751 if test "${ac_cv_objext+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.
$ac_ext <<_ACEOF
2755 #line 2755 "configure"
2756 #include "confdefs.h"
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:2767: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2774 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2775 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2780 echo "$as_me: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2782 { { echo "$as_me:2782: error: cannot compute OBJEXT: cannot compile" >&5
2783 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2784 { (exit 1); exit 1; }; }
2787 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2789 echo "$as_me:2789: result: $ac_cv_objext" >&5
2790 echo "${ECHO_T}$ac_cv_objext" >&6
2791 OBJEXT
=$ac_cv_objext
2793 echo "$as_me:2793: checking whether we are using the GNU C compiler" >&5
2794 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2795 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 cat >conftest.
$ac_ext <<_ACEOF
2799 #line 2799 "configure"
2800 #include "confdefs.h"
2813 rm -f conftest.
$ac_objext
2814 if { (eval echo "$as_me:2814: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try
='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:2820: \"$ac_try\"") >&5
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2827 echo "$as_me: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2831 rm -f conftest.
$ac_objext conftest.
$ac_ext
2832 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2835 echo "$as_me:2835: result: $ac_cv_c_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2837 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CFLAGS
=${CFLAGS+set}
2839 ac_save_CFLAGS
=$CFLAGS
2841 echo "$as_me:2841: checking whether $CC accepts -g" >&5
2842 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cc_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.
$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2858 rm -f conftest.
$ac_objext
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try
='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2872 echo "$as_me: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2876 rm -f conftest.
$ac_objext conftest.
$ac_ext
2878 echo "$as_me:2878: result: $ac_cv_prog_cc_g" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2880 if test "$ac_test_CFLAGS" = set; then
2881 CFLAGS
=$ac_save_CFLAGS
2882 elif test $ac_cv_prog_cc_g = yes; then
2883 if test "$GCC" = yes; then
2889 if test "$GCC" = yes; then
2895 # Some people use a C++ compiler to compile C. Since we use `exit',
2896 # in C++ we need to declare it. In case someone uses the same compiler
2897 # for both compiling C and C++ we need to have the C++ compiler decide
2898 # the declaration of exit, since it's the most demanding environment.
2899 cat >conftest.
$ac_ext <<_ACEOF
2904 rm -f conftest.
$ac_objext
2905 if { (eval echo "$as_me:2905: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try
='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:2911: \"$ac_try\"") >&5
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 for ac_declaration
in \
2918 '#include <stdlib.h>' \
2919 'extern "C" void std::exit (int) throw (); using std::exit;' \
2920 'extern "C" void std::exit (int); using std::exit;' \
2921 'extern "C" void exit (int) throw ();' \
2922 'extern "C" void exit (int);' \
2925 cat >conftest.
$ac_ext <<_ACEOF
2926 #line 2926 "configure"
2927 #include "confdefs.h"
2938 rm -f conftest.
$ac_objext
2939 if { (eval echo "$as_me:2939: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>&5
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try
='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:2945: \"$ac_try\"") >&5
2948 echo "$as_me:2948: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2956 rm -f conftest.
$ac_objext conftest.
$ac_ext
2957 cat >conftest.
$ac_ext <<_ACEOF
2958 #line 2958 "configure"
2959 #include "confdefs.h"
2969 rm -f conftest.
$ac_objext
2970 if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try
='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.
$ac_ext >&5
2986 rm -f conftest.
$ac_objext conftest.
$ac_ext
2989 if test -n "$ac_declaration"; then
2990 echo '#ifdef __cplusplus' >>confdefs.h
2991 echo $ac_declaration >>confdefs.h
2992 echo '#endif' >>confdefs.h
2996 echo "$as_me: failed program was:" >&5
2997 cat conftest.
$ac_ext >&5
2999 rm -f conftest.
$ac_objext conftest.
$ac_ext
3001 ac_cpp
='$CPP $CPPFLAGS'
3002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3006 # On Suns, sometimes $CPP names a directory.
3007 if test -n "$CPP" && test -d "$CPP"; then
3011 #### Some systems specify a CPP to use unless we are using GCC.
3012 #### Now that we know whether we are using GCC, we can decide whether
3013 #### to use that one.
3014 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3019 #### Some systems specify a CC to use unless we are using GCC.
3020 #### Now that we know whether we are using GCC, we can decide whether
3021 #### to use that one.
3022 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3023 test x
$cc_specified != xyes
3028 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3030 CC
="$CC $GCC_TEST_OPTIONS"
3033 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3035 CC
="$CC $NON_GCC_TEST_OPTIONS"
3038 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3040 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3043 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3045 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3048 #### Some other nice autoconf tests. If you add a test here which
3049 #### should make an entry in src/config.h, don't forget to add an
3050 #### #undef clause to src/config.h.in for autoconf to modify.
3052 echo "$as_me:3052: checking whether ln -s works" >&5
3053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3055 if test "$LN_S" = "ln -s"; then
3056 echo "$as_me:3056: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3059 echo "$as_me:3059: result: no, using $LN_S" >&5
3060 echo "${ECHO_T}no, using $LN_S" >&6
3064 ac_cpp
='$CPP $CPPFLAGS'
3065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3068 echo "$as_me:3068: checking how to run the C preprocessor" >&5
3069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3070 # On Suns, sometimes $CPP names a directory.
3071 if test -n "$CPP" && test -d "$CPP"; then
3074 if test -z "$CPP"; then
3075 if test "${ac_cv_prog_CPP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 # Double quotes because CPP needs to be expanded
3079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3082 for ac_c_preproc_warn_flag
in '' yes
3084 # Use a header file that comes with gcc, so configuring glibc
3085 # with a fresh cross-compiler works.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.
$ac_ext <<_ACEOF
3089 #line 3089 "configure"
3090 #include "confdefs.h"
3094 if { (eval echo "$as_me:3094: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3097 egrep -v '^ *\+' conftest.er1
>conftest.err
3099 cat conftest.err
>&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev
/null
; then
3102 if test -s conftest.err
; then
3103 ac_cpp_err
=$ac_c_preproc_warn_flag
3110 if test -z "$ac_cpp_err"; then
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.
$ac_ext >&5
3115 # Broken: fails on valid input.
3118 rm -f conftest.err conftest.
$ac_ext
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
3122 cat >conftest.
$ac_ext <<_ACEOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 #include <ac_nonexistent.h>
3127 if { (eval echo "$as_me:3127: \"$ac_cpp conftest.$ac_ext\"") >&5
3128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3130 egrep -v '^ *\+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 echo "$as_me:3133: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev
/null
; then
3135 if test -s conftest.err
; then
3136 ac_cpp_err
=$ac_c_preproc_warn_flag
3143 if test -z "$ac_cpp_err"; then
3144 # Broken: success on invalid input.
3147 echo "$as_me: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3149 # Passes both tests.
3153 rm -f conftest.err conftest.
$ac_ext
3156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157 rm -f conftest.err conftest.
$ac_ext
3158 if $ac_preproc_ok; then
3170 echo "$as_me:3170: result: $CPP" >&5
3171 echo "${ECHO_T}$CPP" >&6
3173 for ac_c_preproc_warn_flag
in '' yes
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat >conftest.
$ac_ext <<_ACEOF
3180 #line 3180 "configure"
3181 #include "confdefs.h"
3185 if { (eval echo "$as_me:3185: \"$ac_cpp conftest.$ac_ext\"") >&5
3186 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3188 egrep -v '^ *\+' conftest.er1
>conftest.err
3190 cat conftest.err
>&5
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); } >/dev
/null
; then
3193 if test -s conftest.err
; then
3194 ac_cpp_err
=$ac_c_preproc_warn_flag
3201 if test -z "$ac_cpp_err"; then
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.
$ac_ext >&5
3206 # Broken: fails on valid input.
3209 rm -f conftest.err conftest.
$ac_ext
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.
$ac_ext <<_ACEOF
3214 #line 3214 "configure"
3215 #include "confdefs.h"
3216 #include <ac_nonexistent.h>
3218 if { (eval echo "$as_me:3218: \"$ac_cpp conftest.$ac_ext\"") >&5
3219 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3221 egrep -v '^ *\+' conftest.er1
>conftest.err
3223 cat conftest.err
>&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); } >/dev
/null
; then
3226 if test -s conftest.err
; then
3227 ac_cpp_err
=$ac_c_preproc_warn_flag
3234 if test -z "$ac_cpp_err"; then
3235 # Broken: success on invalid input.
3238 echo "$as_me: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3240 # Passes both tests.
3244 rm -f conftest.err conftest.
$ac_ext
3247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3248 rm -f conftest.err conftest.
$ac_ext
3249 if $ac_preproc_ok; then
3252 { { echo "$as_me:3252: error: C preprocessor \"$CPP\" fails sanity check" >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3254 { (exit 1); exit 1; }; }
3258 ac_cpp
='$CPP $CPPFLAGS'
3259 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3263 # Find a good install program. We prefer a C program (faster),
3264 # so one script is as good as another. But avoid the broken or
3265 # incompatible versions:
3266 # SysV /etc/install, /usr/sbin/install
3267 # SunOS /usr/etc/install
3268 # IRIX /sbin/install
3270 # AmigaOS /C/install, which installs bootblocks on floppy discs
3271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274 # ./install, which can be erroneously created by make from ./install.sh.
3275 echo "$as_me:3275: checking for a BSD compatible install" >&5
3276 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3277 if test -z "$INSTALL"; then
3278 if test "${ac_cv_path_install+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3282 for ac_dir
in $PATH; do
3284 # Account for people who put trailing slashes in PATH elements.
3286 / | .
/ | .
// |
/cC
/* \
3287 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3293 for ac_prog
in ginstall scoinst
install; do
3294 if $as_executable_p "$ac_dir/$ac_prog"; then
3295 if test $ac_prog = install &&
3296 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3297 # AIX install. It has an incompatible calling convention.
3299 elif test $ac_prog = install &&
3300 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3301 # program-specific install script used by HP pwplus--don't use.
3304 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL
=$ac_cv_path_install
3317 # As a last resort, use the slow shell script. We don't cache a
3318 # path for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the path is relative.
3321 INSTALL
=$ac_install_sh
3324 echo "$as_me:3324: result: $INSTALL" >&5
3325 echo "${ECHO_T}$INSTALL" >&6
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3333 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3335 for ac_prog
in 'bison -y' byacc
3337 # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy
$ac_prog; ac_word
=$2
3339 echo "$as_me:3339: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_YACC+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 if test -n "$YACC"; then
3345 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3347 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3349 for ac_dir
in $ac_dummy; do
3351 test -z "$ac_dir" && ac_dir
=.
3352 $as_executable_p "$ac_dir/$ac_word" ||
continue
3353 ac_cv_prog_YACC
="$ac_prog"
3354 echo "$as_me:3354: found $ac_dir/$ac_word" >&5
3360 YACC
=$ac_cv_prog_YACC
3361 if test -n "$YACC"; then
3362 echo "$as_me:3362: result: $YACC" >&5
3363 echo "${ECHO_T}$YACC" >&6
3365 echo "$as_me:3365: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3369 test -n "$YACC" && break
3371 test -n "$YACC" || YACC
="yacc"
3373 if test "x$RANLIB" = x
; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3376 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3377 echo "$as_me:3377: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_RANLIB+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test -n "$RANLIB"; then
3383 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3385 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3387 for ac_dir
in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir
=.
3390 $as_executable_p "$ac_dir/$ac_word" ||
continue
3391 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3392 echo "$as_me:3392: found $ac_dir/$ac_word" >&5
3398 RANLIB
=$ac_cv_prog_RANLIB
3399 if test -n "$RANLIB"; then
3400 echo "$as_me:3400: result: $RANLIB" >&5
3401 echo "${ECHO_T}$RANLIB" >&6
3403 echo "$as_me:3403: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3408 if test -z "$ac_cv_prog_RANLIB"; then
3409 ac_ct_RANLIB
=$RANLIB
3410 # Extract the first word of "ranlib", so it can be a program name with args.
3411 set dummy ranlib
; ac_word
=$2
3412 echo "$as_me:3412: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$ac_ct_RANLIB"; then
3418 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3420 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3422 for ac_dir
in $ac_dummy; do
3424 test -z "$ac_dir" && ac_dir
=.
3425 $as_executable_p "$ac_dir/$ac_word" ||
continue
3426 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3427 echo "$as_me:3427: found $ac_dir/$ac_word" >&5
3431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3434 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436 echo "$as_me:3436: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3439 echo "$as_me:3439: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 RANLIB
=$ac_ct_RANLIB
3445 RANLIB
="$ac_cv_prog_RANLIB"
3450 echo "$as_me:3450: checking for AIX" >&5
3451 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3452 cat >conftest.
$ac_ext <<_ACEOF
3453 #line 3453 "configure"
3454 #include "confdefs.h"
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "yes" >/dev
/null
2>&1; then
3462 echo "$as_me:3462: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 cat >>confdefs.h
<<\EOF
3465 #define _ALL_SOURCE 1
3469 echo "$as_me:3469: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3474 #### Extract some information from the operating system and machine files.
3476 { echo "$as_me:3476: checking the machine- and system-dependent files to find out
3477 - which libraries the lib-src programs will want, and
3478 - whether the GNU malloc routines are usable..." >&5
3479 echo "$as_me: checking the machine- and system-dependent files to find out
3480 - which libraries the lib-src programs will want, and
3481 - whether the GNU malloc routines are usable..." >&6;}
3483 ### First figure out CFLAGS (which we use for running the compiler here)
3484 ### and REAL_CFLAGS (which we use for real compilation).
3485 ### The two are the same except on a few systems, where they are made
3486 ### different to work around various lossages. For example,
3487 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3488 ### as implying static linking.
3490 ### If the CFLAGS env var is specified, we use that value
3491 ### instead of the default.
3493 ### It's not important that this name contain the PID; you can't run
3494 ### two configures in the same directory and have anything work
3496 tempcname
="conftest.c"
3499 #include "'${srcdir}'/src/'${opsysfile}'"
3500 #include "'${srcdir}'/src/'${machfile}'"
3501 #ifndef LIBS_MACHINE
3502 #define LIBS_MACHINE
3507 #ifndef C_SWITCH_SYSTEM
3508 #define C_SWITCH_SYSTEM
3510 #ifndef C_SWITCH_MACHINE
3511 #define C_SWITCH_MACHINE
3513 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3514 configure___ c_switch_system=C_SWITCH_SYSTEM
3515 configure___ c_switch_machine=C_SWITCH_MACHINE
3518 #define LIB_X11_LIB -lX11
3521 #ifndef LIBX11_MACHINE
3522 #define LIBX11_MACHINE
3525 #ifndef LIBX11_SYSTEM
3526 #define LIBX11_SYSTEM
3528 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3531 configure___ unexec=UNEXEC
3533 configure___ unexec=unexec.o
3536 #ifdef SYSTEM_MALLOC
3537 configure___ system_malloc=yes
3539 configure___ system_malloc=no
3542 #ifdef USE_MMAP_FOR_BUFFERS
3543 configure___ use_mmap_for_buffers=yes
3545 configure___ use_mmap_for_buffers=no
3548 #ifndef C_DEBUG_SWITCH
3549 #define C_DEBUG_SWITCH -g
3552 #ifndef C_OPTIMIZE_SWITCH
3554 #define C_OPTIMIZE_SWITCH -O2
3556 #define C_OPTIMIZE_SWITCH -O
3560 #ifndef LD_SWITCH_MACHINE
3561 #define LD_SWITCH_MACHINE
3564 #ifndef LD_SWITCH_SYSTEM
3565 #define LD_SWITCH_SYSTEM
3568 #ifndef LD_SWITCH_X_SITE_AUX
3569 #define LD_SWITCH_X_SITE_AUX
3572 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3573 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3575 #ifdef THIS_IS_CONFIGURE
3577 /* Get the CFLAGS for tests in configure. */
3579 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3581 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3584 #else /* not THIS_IS_CONFIGURE */
3586 /* Get the CFLAGS for real compilation. */
3588 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3590 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3593 #endif /* not THIS_IS_CONFIGURE */
3596 # The value of CPP is a quoted variable reference, so we need to do this
3597 # to get its actual value...
3598 CPP
=`eval "echo $CPP"`
3599 eval `${CPP} -Isrc ${tempcname} \
3600 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3601 if test "x$SPECIFIED_CFLAGS" = x
; then
3602 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3603 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3605 REAL_CFLAGS
="$CFLAGS"
3609 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3611 ### Make sure subsequent tests use flags consistent with the build flags.
3613 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3614 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3616 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3619 # Check whether --enable-largefile or --disable-largefile was given.
3620 if test "${enable_largefile+set}" = set; then
3621 enableval
="$enable_largefile"
3624 if test "$enable_largefile" != no
; then
3626 echo "$as_me:3626: checking for special C compiler options needed for large files" >&5
3627 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3628 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 ac_cv_sys_largefile_CC
=no
3632 if test "$GCC" != yes; then
3635 # IRIX 6.2 and later do not support large files by default,
3636 # so use the C compiler's -n32 option if that helps.
3637 cat >conftest.
$ac_ext <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3641 /* Check that off_t can represent 2**63 - 1 correctly.
3642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3643 since some C++ compilers masquerading as C compilers
3644 incorrectly reject 9223372036854775807. */
3645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3647 && LARGE_OFF_T % 2147483647 == 1)
3657 rm -f conftest.
$ac_objext
3658 if { (eval echo "$as_me:3658: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try
='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:3664: \"$ac_try\"") >&5
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 rm -f conftest.
$ac_objext
3676 rm -f conftest.
$ac_objext
3677 if { (eval echo "$as_me:3677: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try
='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:3683: \"$ac_try\"") >&5
3686 echo "$as_me:3686: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_sys_largefile_CC
=' -n32'; break
3690 echo "$as_me: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 rm -f conftest.
$ac_objext
3697 rm -f conftest.
$ac_ext
3700 echo "$as_me:3700: result: $ac_cv_sys_largefile_CC" >&5
3701 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3702 if test "$ac_cv_sys_largefile_CC" != no
; then
3703 CC
=$CC$ac_cv_sys_largefile_CC
3706 echo "$as_me:3706: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3707 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_cv_sys_file_offset_bits
=no
3713 cat >conftest.
$ac_ext <<_ACEOF
3714 #line 3714 "configure"
3715 #include "confdefs.h"
3716 #include <sys/types.h>
3717 /* Check that off_t can represent 2**63 - 1 correctly.
3718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3719 since some C++ compilers masquerading as C compilers
3720 incorrectly reject 9223372036854775807. */
3721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3723 && LARGE_OFF_T % 2147483647 == 1)
3733 rm -f conftest.
$ac_objext
3734 if { (eval echo "$as_me:3734: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try
='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3747 echo "$as_me: failed program was:" >&5
3748 cat conftest.
$ac_ext >&5
3750 rm -f conftest.
$ac_objext conftest.
$ac_ext
3751 cat >conftest.
$ac_ext <<_ACEOF
3752 #line 3752 "configure"
3753 #include "confdefs.h"
3754 #define _FILE_OFFSET_BITS 64
3755 #include <sys/types.h>
3756 /* Check that off_t can represent 2**63 - 1 correctly.
3757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3758 since some C++ compilers masquerading as C compilers
3759 incorrectly reject 9223372036854775807. */
3760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3762 && LARGE_OFF_T % 2147483647 == 1)
3772 rm -f conftest.
$ac_objext
3773 if { (eval echo "$as_me:3773: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try
='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:3779: \"$ac_try\"") >&5
3782 echo "$as_me:3782: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_sys_file_offset_bits
=64; break
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.
$ac_ext >&5
3789 rm -f conftest.
$ac_objext conftest.
$ac_ext
3793 echo "$as_me:3793: result: $ac_cv_sys_file_offset_bits" >&5
3794 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3795 if test "$ac_cv_sys_file_offset_bits" != no
; then
3797 cat >>confdefs.h
<<EOF
3798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3803 echo "$as_me:3803: checking for _LARGE_FILES value needed for large files" >&5
3804 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3805 if test "${ac_cv_sys_large_files+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 ac_cv_sys_large_files
=no
3810 cat >conftest.
$ac_ext <<_ACEOF
3811 #line 3811 "configure"
3812 #include "confdefs.h"
3813 #include <sys/types.h>
3814 /* Check that off_t can represent 2**63 - 1 correctly.
3815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3816 since some C++ compilers masquerading as C compilers
3817 incorrectly reject 9223372036854775807. */
3818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3820 && LARGE_OFF_T % 2147483647 == 1)
3830 rm -f conftest.
$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try
='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 rm -f conftest.
$ac_objext conftest.
$ac_ext
3848 cat >conftest.
$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3851 #define _LARGE_FILES 1
3852 #include <sys/types.h>
3853 /* Check that off_t can represent 2**63 - 1 correctly.
3854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3855 since some C++ compilers masquerading as C compilers
3856 incorrectly reject 9223372036854775807. */
3857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3859 && LARGE_OFF_T % 2147483647 == 1)
3869 rm -f conftest.
$ac_objext
3870 if { (eval echo "$as_me:3870: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try
='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:3876: \"$ac_try\"") >&5
3879 echo "$as_me:3879: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sys_large_files
=1; break
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 rm -f conftest.
$ac_objext conftest.
$ac_ext
3890 echo "$as_me:3890: result: $ac_cv_sys_large_files" >&5
3891 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3892 if test "$ac_cv_sys_large_files" != no
; then
3894 cat >>confdefs.h
<<EOF
3895 #define _LARGE_FILES $ac_cv_sys_large_files
3902 if test "${with_sound}" != "no"; then
3903 # Sound support for GNU/Linux and the free BSDs.
3905 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3907 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908 echo "$as_me:3908: checking for $ac_header" >&5
3909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 cat >conftest.
$ac_ext <<_ACEOF
3914 #line 3914 "configure"
3915 #include "confdefs.h"
3916 #include <$ac_header>
3918 if { (eval echo "$as_me:3918: \"$ac_cpp conftest.$ac_ext\"") >&5
3919 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3921 egrep -v '^ *\+' conftest.er1
>conftest.err
3923 cat conftest.err
>&5
3924 echo "$as_me:3924: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev
/null
; then
3926 if test -s conftest.err
; then
3927 ac_cpp_err
=$ac_c_preproc_warn_flag
3934 if test -z "$ac_cpp_err"; then
3935 eval "$as_ac_Header=yes"
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.
$ac_ext >&5
3939 eval "$as_ac_Header=no"
3941 rm -f conftest.err conftest.
$ac_ext
3943 echo "$as_me:3943: result: `eval echo '${'$as_ac_Header'}'`" >&5
3944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3946 cat >>confdefs.h
<<EOF
3947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3953 # Emulation library used on NetBSD.
3954 echo "$as_me:3954: checking for _oss_ioctl in -lossaudio" >&5
3955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 ac_check_lib_save_LIBS
=$LIBS
3960 LIBS
="-lossaudio $LIBS"
3961 cat >conftest.
$ac_ext <<_ACEOF
3962 #line 3962 "configure"
3963 #include "confdefs.h"
3965 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3980 rm -f conftest.
$ac_objext conftest
$ac_exeext
3981 if { (eval echo "$as_me:3981: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>&5
3984 echo "$as_me:3984: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try
='test -s conftest$ac_exeext'
3987 { (eval echo "$as_me:3987: \"$ac_try\"") >&5
3990 echo "$as_me:3990: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_lib_ossaudio__oss_ioctl
=yes
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3996 ac_cv_lib_ossaudio__oss_ioctl
=no
3998 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3999 LIBS
=$ac_check_lib_save_LIBS
4001 echo "$as_me:4001: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4002 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4003 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4011 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4012 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4013 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4015 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 echo "$as_me:4016: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.
$ac_ext <<_ACEOF
4022 #line 4022 "configure"
4023 #include "confdefs.h"
4024 #include <$ac_header>
4026 if { (eval echo "$as_me:4026: \"$ac_cpp conftest.$ac_ext\"") >&5
4027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4029 egrep -v '^ *\+' conftest.er1
>conftest.err
4031 cat conftest.err
>&5
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } >/dev
/null
; then
4034 if test -s conftest.err
; then
4035 ac_cpp_err
=$ac_c_preproc_warn_flag
4042 if test -z "$ac_cpp_err"; then
4043 eval "$as_ac_Header=yes"
4045 echo "$as_me: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4047 eval "$as_ac_Header=no"
4049 rm -f conftest.err conftest.
$ac_ext
4051 echo "$as_me:4051: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4054 cat >>confdefs.h
<<EOF
4055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4061 echo "$as_me:4061: checking for ANSI C header files" >&5
4062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4063 if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.
$ac_ext <<_ACEOF
4067 #line 4067 "configure"
4068 #include "confdefs.h"
4075 if { (eval echo "$as_me:4075: \"$ac_cpp conftest.$ac_ext\"") >&5
4076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4078 egrep -v '^ *\+' conftest.er1
>conftest.err
4080 cat conftest.err
>&5
4081 echo "$as_me:4081: \$? = $ac_status" >&5
4082 (exit $ac_status); } >/dev
/null
; then
4083 if test -s conftest.err
; then
4084 ac_cpp_err
=$ac_c_preproc_warn_flag
4091 if test -z "$ac_cpp_err"; then
4092 ac_cv_header_stdc
=yes
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.
$ac_ext >&5
4096 ac_cv_header_stdc
=no
4098 rm -f conftest.err conftest.
$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.
$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "memchr" >/dev
/null
2>&1; then
4112 ac_cv_header_stdc
=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat >conftest.
$ac_ext <<_ACEOF
4121 #line 4121 "configure"
4122 #include "confdefs.h"
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 egrep "free" >/dev
/null
2>&1; then
4130 ac_cv_header_stdc
=no
4136 if test $ac_cv_header_stdc = yes; then
4137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4138 if test "$cross_compiling" = yes; then
4141 cat >conftest.
$ac_ext <<_ACEOF
4142 #line 4142 "configure"
4143 #include "confdefs.h"
4145 #if ((' ' & 0x0FF) == 0x020)
4146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4167 rm -f conftest
$ac_exeext
4168 if { (eval echo "$as_me:4168: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>&5
4171 echo "$as_me:4171: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4173 { (eval echo "$as_me:4173: \"$ac_try\"") >&5
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4180 echo "$as_me: program exited with status $ac_status" >&5
4181 echo "$as_me: failed program was:" >&5
4182 cat conftest.
$ac_ext >&5
4183 ac_cv_header_stdc
=no
4185 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4189 echo "$as_me:4189: result: $ac_cv_header_stdc" >&5
4190 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4191 if test $ac_cv_header_stdc = yes; then
4193 cat >>confdefs.h
<<\EOF
4194 #define STDC_HEADERS 1
4199 echo "$as_me:4199: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.
$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4207 #include <sys/types.h>
4208 #include <sys/time.h>
4214 if ((struct tm *) 0)
4220 rm -f conftest.
$ac_objext
4221 if { (eval echo "$as_me:4221: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try
='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:4227: \"$ac_try\"") >&5
4230 echo "$as_me:4230: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 ac_cv_header_time
=yes
4234 echo "$as_me: failed program was:" >&5
4235 cat conftest.
$ac_ext >&5
4236 ac_cv_header_time
=no
4238 rm -f conftest.
$ac_objext conftest.
$ac_ext
4240 echo "$as_me:4240: result: $ac_cv_header_time" >&5
4241 echo "${ECHO_T}$ac_cv_header_time" >&6
4242 if test $ac_cv_header_time = yes; then
4244 cat >>confdefs.h
<<\EOF
4245 #define TIME_WITH_SYS_TIME 1
4250 echo "$as_me:4250: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4251 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4252 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 cat >conftest.
$ac_ext <<_ACEOF
4256 #line 4256 "configure"
4257 #include "confdefs.h"
4258 #include <sys/types.h>
4260 /* NetBSD declares sys_siglist in unistd.h. */
4262 # include <unistd.h>
4268 char *msg = *(sys_siglist + 1);
4273 rm -f conftest.
$ac_objext
4274 if { (eval echo "$as_me:4274: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>&5
4277 echo "$as_me:4277: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try
='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_decl_sys_siglist
=yes
4287 echo "$as_me: failed program was:" >&5
4288 cat conftest.
$ac_ext >&5
4289 ac_cv_decl_sys_siglist
=no
4291 rm -f conftest.
$ac_objext conftest.
$ac_ext
4293 echo "$as_me:4293: result: $ac_cv_decl_sys_siglist" >&5
4294 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4295 if test $ac_cv_decl_sys_siglist = yes; then
4297 cat >>confdefs.h
<<\EOF
4298 #define SYS_SIGLIST_DECLARED 1
4303 echo "$as_me:4303: checking for sys/wait.h that is POSIX.1 compatible" >&5
4304 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4305 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cat >conftest.
$ac_ext <<_ACEOF
4309 #line 4309 "configure"
4310 #include "confdefs.h"
4311 #include <sys/types.h>
4312 #include <sys/wait.h>
4314 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4330 rm -f conftest.
$ac_objext
4331 if { (eval echo "$as_me:4331: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4340 echo "$as_me:4340: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_header_sys_wait_h
=yes
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4346 ac_cv_header_sys_wait_h
=no
4348 rm -f conftest.
$ac_objext conftest.
$ac_ext
4350 echo "$as_me:4350: result: $ac_cv_header_sys_wait_h" >&5
4351 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4352 if test $ac_cv_header_sys_wait_h = yes; then
4354 cat >>confdefs.h
<<\EOF
4355 #define HAVE_SYS_WAIT_H 1
4360 echo "$as_me:4360: checking for struct utimbuf" >&5
4361 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4362 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 cat >conftest.
$ac_ext <<_ACEOF
4366 #line 4366 "configure"
4367 #include "confdefs.h"
4368 #ifdef TIME_WITH_SYS_TIME
4369 #include <sys/time.h>
4372 #ifdef HAVE_SYS_TIME_H
4373 #include <sys/time.h>
4384 static struct utimbuf x; x.actime = x.modtime;
4389 rm -f conftest.
$ac_objext
4390 if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4393 echo "$as_me:4393: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try
='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:4396: \"$ac_try\"") >&5
4399 echo "$as_me:4399: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 emacs_cv_struct_utimbuf
=yes
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.
$ac_ext >&5
4405 emacs_cv_struct_utimbuf
=no
4407 rm -f conftest.
$ac_objext conftest.
$ac_ext
4409 echo "$as_me:4409: result: $emacs_cv_struct_utimbuf" >&5
4410 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4411 if test $emacs_cv_struct_utimbuf = yes; then
4413 cat >>confdefs.h
<<\EOF
4414 #define HAVE_STRUCT_UTIMBUF 1
4419 echo "$as_me:4419: checking return type of signal handlers" >&5
4420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4421 if test "${ac_cv_type_signal+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 cat >conftest.
$ac_ext <<_ACEOF
4425 #line 4425 "configure"
4426 #include "confdefs.h"
4427 #include <sys/types.h>
4433 extern "C" void (*signal (int, void (*)(int)))(int);
4435 void (*signal ()) ();
4446 rm -f conftest.
$ac_objext
4447 if { (eval echo "$as_me:4447: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4450 echo "$as_me:4450: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try
='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:4453: \"$ac_try\"") >&5
4456 echo "$as_me:4456: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_type_signal
=void
4460 echo "$as_me: failed program was:" >&5
4461 cat conftest.
$ac_ext >&5
4462 ac_cv_type_signal
=int
4464 rm -f conftest.
$ac_objext conftest.
$ac_ext
4466 echo "$as_me:4466: result: $ac_cv_type_signal" >&5
4467 echo "${ECHO_T}$ac_cv_type_signal" >&6
4469 cat >>confdefs.h
<<EOF
4470 #define RETSIGTYPE $ac_cv_type_signal
4473 echo "$as_me:4473: checking for speed_t" >&5
4474 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4475 if test "${emacs_cv_speed_t+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat >conftest.
$ac_ext <<_ACEOF
4479 #line 4479 "configure"
4480 #include "confdefs.h"
4481 #include <termios.h>
4490 rm -f conftest.
$ac_objext
4491 if { (eval echo "$as_me:4491: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>&5
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try
='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4500 echo "$as_me:4500: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 emacs_cv_speed_t
=yes
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.
$ac_ext >&5
4508 rm -f conftest.
$ac_objext conftest.
$ac_ext
4510 echo "$as_me:4510: result: $emacs_cv_speed_t" >&5
4511 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4512 if test $emacs_cv_speed_t = yes; then
4514 cat >>confdefs.h
<<\EOF
4515 #define HAVE_SPEED_T 1
4520 echo "$as_me:4520: checking for struct timeval" >&5
4521 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4522 if test "${emacs_cv_struct_timeval+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 cat >conftest.
$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4528 #ifdef TIME_WITH_SYS_TIME
4529 #include <sys/time.h>
4532 #ifdef HAVE_SYS_TIME_H
4533 #include <sys/time.h>
4541 static struct timeval x; x.tv_sec = x.tv_usec;
4546 rm -f conftest.
$ac_objext
4547 if { (eval echo "$as_me:4547: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try
='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:4553: \"$ac_try\"") >&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 emacs_cv_struct_timeval
=yes
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4562 emacs_cv_struct_timeval
=no
4564 rm -f conftest.
$ac_objext conftest.
$ac_ext
4566 echo "$as_me:4566: result: $emacs_cv_struct_timeval" >&5
4567 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4568 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4569 if test $emacs_cv_struct_timeval = yes; then
4571 cat >>confdefs.h
<<\EOF
4572 #define HAVE_TIMEVAL 1
4577 echo "$as_me:4577: checking for struct exception" >&5
4578 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4579 if test "${emacs_cv_struct_exception+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 cat >conftest.
$ac_ext <<_ACEOF
4583 #line 4583 "configure"
4584 #include "confdefs.h"
4589 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4594 rm -f conftest.
$ac_objext
4595 if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try
='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 emacs_cv_struct_exception
=yes
4608 echo "$as_me: failed program was:" >&5
4609 cat conftest.
$ac_ext >&5
4610 emacs_cv_struct_exception
=no
4612 rm -f conftest.
$ac_objext conftest.
$ac_ext
4614 echo "$as_me:4614: result: $emacs_cv_struct_exception" >&5
4615 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4616 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4617 if test $emacs_cv_struct_exception != yes; then
4619 cat >>confdefs.h
<<\EOF
4620 #define NO_MATHERR 1
4625 echo "$as_me:4625: checking whether struct tm is in sys/time.h or time.h" >&5
4626 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4627 if test "${ac_cv_struct_tm+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.
$ac_ext <<_ACEOF
4631 #line 4631 "configure"
4632 #include "confdefs.h"
4633 #include <sys/types.h>
4639 struct tm *tp; tp->tm_sec;
4644 rm -f conftest.
$ac_objext
4645 if { (eval echo "$as_me:4645: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>&5
4648 echo "$as_me:4648: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try
='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:4651: \"$ac_try\"") >&5
4654 echo "$as_me:4654: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_struct_tm
=time.h
4658 echo "$as_me: failed program was:" >&5
4659 cat conftest.
$ac_ext >&5
4660 ac_cv_struct_tm
=sys
/time.h
4662 rm -f conftest.
$ac_objext conftest.
$ac_ext
4664 echo "$as_me:4664: result: $ac_cv_struct_tm" >&5
4665 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4666 if test $ac_cv_struct_tm = sys
/time.h
; then
4668 cat >>confdefs.h
<<\EOF
4669 #define TM_IN_SYS_TIME 1
4674 echo "$as_me:4674: checking for struct tm.tm_zone" >&5
4675 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4676 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 cat >conftest.
$ac_ext <<_ACEOF
4680 #line 4680 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4683 #include <$ac_cv_struct_tm>
4688 static struct tm ac_aggr;
4689 if (ac_aggr.tm_zone)
4695 rm -f conftest.
$ac_objext
4696 if { (eval echo "$as_me:4696: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>&5
4699 echo "$as_me:4699: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try
='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:4702: \"$ac_try\"") >&5
4705 echo "$as_me:4705: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_member_struct_tm_tm_zone
=yes
4709 echo "$as_me: failed program was:" >&5
4710 cat conftest.
$ac_ext >&5
4711 ac_cv_member_struct_tm_tm_zone
=no
4713 rm -f conftest.
$ac_objext conftest.
$ac_ext
4715 echo "$as_me:4715: result: $ac_cv_member_struct_tm_tm_zone" >&5
4716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4719 cat >>confdefs.h
<<EOF
4720 #define HAVE_STRUCT_TM_TM_ZONE 1
4725 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4727 cat >>confdefs.h
<<\EOF
4728 #define HAVE_TM_ZONE 1
4732 echo "$as_me:4732: checking for tzname" >&5
4733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4734 if test "${ac_cv_var_tzname+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.
$ac_ext <<_ACEOF
4738 #line 4738 "configure"
4739 #include "confdefs.h"
4741 #ifndef tzname /* For SGI. */
4742 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4753 rm -f conftest.
$ac_objext conftest
$ac_exeext
4754 if { (eval echo "$as_me:4754: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4757 echo "$as_me:4757: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try
='test -s conftest$ac_exeext'
4760 { (eval echo "$as_me:4760: \"$ac_try\"") >&5
4763 echo "$as_me:4763: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_var_tzname
=yes
4767 echo "$as_me: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4773 echo "$as_me:4773: result: $ac_cv_var_tzname" >&5
4774 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4775 if test $ac_cv_var_tzname = yes; then
4777 cat >>confdefs.h
<<\EOF
4778 #define HAVE_TZNAME 1
4784 echo "$as_me:4784: checking for struct tm.tm_gmtoff" >&5
4785 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4786 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 cat >conftest.
$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4797 static struct tm ac_aggr;
4798 if (ac_aggr.tm_gmtoff)
4804 rm -f conftest.
$ac_objext
4805 if { (eval echo "$as_me:4805: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4808 echo "$as_me:4808: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try
='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:4811: \"$ac_try\"") >&5
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_cv_member_struct_tm_tm_gmtoff
=yes
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4820 ac_cv_member_struct_tm_tm_gmtoff
=no
4822 rm -f conftest.
$ac_objext conftest.
$ac_ext
4824 echo "$as_me:4824: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4825 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4826 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4828 cat >>confdefs.h
<<\EOF
4829 #define HAVE_TM_GMTOFF 1
4834 echo "$as_me:4834: checking for $CC option to accept ANSI C" >&5
4835 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4836 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_prog_cc_stdc
=no
4841 cat >conftest.
$ac_ext <<_ACEOF
4842 #line 4842 "configure"
4843 #include "confdefs.h"
4846 #include <sys/types.h>
4847 #include <sys/stat.h>
4848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4849 struct buf { int x; };
4850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4851 static char *e (p, i)
4857 static char *f (char * (*g) (char **, int), char **p, ...)
4862 s = g (p, va_arg (v,int));
4866 int test (int i, double x);
4867 struct s1 {int (*f) (int a);};
4868 struct s2 {int (*f) (double a);};
4869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 # Don't try gcc -ansi; that turns off useful extensions and
4881 # breaks some systems' header files.
4882 # AIX -qlanglvl=ansi
4883 # Ultrix and OSF/1 -std1
4884 # HP-UX 10.20 and later -Ae
4885 # HP-UX older versions -Aa -D_HPUX_SOURCE
4886 # SVR4 -Xc -D__EXTENSIONS__
4887 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 CC
="$ac_save_CC $ac_arg"
4890 rm -f conftest.
$ac_objext
4891 if { (eval echo "$as_me:4891: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>&5
4894 echo "$as_me:4894: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try
='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:4897: \"$ac_try\"") >&5
4900 echo "$as_me:4900: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_prog_cc_stdc
=$ac_arg
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.
$ac_ext >&5
4908 rm -f conftest.
$ac_objext
4910 rm -f conftest.
$ac_ext conftest.
$ac_objext
4915 case "x$ac_cv_prog_cc_stdc" in
4917 echo "$as_me:4917: result: none needed" >&5
4918 echo "${ECHO_T}none needed" >&6 ;;
4920 echo "$as_me:4920: result: $ac_cv_prog_cc_stdc" >&5
4921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4922 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4925 echo "$as_me:4925: checking for function prototypes" >&5
4926 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4927 if test "$ac_cv_prog_cc_stdc" != no
; then
4928 echo "$as_me:4928: result: yes" >&5
4929 echo "${ECHO_T}yes" >&6
4931 cat >>confdefs.h
<<\EOF
4932 #define PROTOTYPES 1
4936 echo "$as_me:4936: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4940 echo "$as_me:4940: checking for working volatile" >&5
4941 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4942 if test "${ac_cv_c_volatile+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 cat >conftest.
$ac_ext <<_ACEOF
4946 #line 4946 "configure"
4947 #include "confdefs.h"
4959 rm -f conftest.
$ac_objext
4960 if { (eval echo "$as_me:4960: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4963 echo "$as_me:4963: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try
='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:4966: \"$ac_try\"") >&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_c_volatile
=yes
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.
$ac_ext >&5
4977 rm -f conftest.
$ac_objext conftest.
$ac_ext
4979 echo "$as_me:4979: result: $ac_cv_c_volatile" >&5
4980 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4981 if test $ac_cv_c_volatile = no
; then
4983 cat >>confdefs.h
<<\EOF
4989 echo "$as_me:4989: checking for an ANSI C-conforming const" >&5
4990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4991 if test "${ac_cv_c_const+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 cat >conftest.
$ac_ext <<_ACEOF
4995 #line 4995 "configure"
4996 #include "confdefs.h"
5001 /* FIXME: Include the comments suggested by Paul. */
5003 /* Ultrix mips cc rejects this. */
5004 typedef int charset[2];
5006 /* SunOS 4.1.1 cc rejects this. */
5007 char const *const *ccp;
5009 /* NEC SVR4.0.2 mips cc rejects this. */
5010 struct point {int x, y;};
5011 static struct point const zero = {0,0};
5012 /* AIX XL C 1.02.0.0 rejects this.
5013 It does not let you subtract one const X* pointer from another in
5014 an arm of an if-expression whose if-part is not a constant
5016 const char *g = "string";
5017 ccp = &g + (g ? g-g : 0);
5018 /* HPUX 7.0 cc rejects these. */
5021 ccp = (char const *const *) p;
5022 { /* SCO 3.2v4 cc rejects this. */
5024 char const *s = 0 ? (char *) 0 : (char const *) 0;
5028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5030 const int *foo = &x[0];
5033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5034 typedef const int *iptr;
5038 { /* AIX XL C 1.02.0.0 rejects this saying
5039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5040 struct s { int j; const int *ap[3]; };
5041 struct s *b; b->j = 5;
5043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5052 rm -f conftest.
$ac_objext
5053 if { (eval echo "$as_me:5053: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5056 echo "$as_me:5056: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try
='test -s conftest.$ac_objext'
5059 { (eval echo "$as_me:5059: \"$ac_try\"") >&5
5062 echo "$as_me:5062: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.
$ac_ext >&5
5070 rm -f conftest.
$ac_objext conftest.
$ac_ext
5072 echo "$as_me:5072: result: $ac_cv_c_const" >&5
5073 echo "${ECHO_T}$ac_cv_c_const" >&6
5074 if test $ac_cv_c_const = no
; then
5076 cat >>confdefs.h
<<\EOF
5082 echo "$as_me:5082: checking for void * support" >&5
5083 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5084 if test "${emacs_cv_void_star+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 cat >conftest.
$ac_ext <<_ACEOF
5088 #line 5088 "configure"
5089 #include "confdefs.h"
5099 rm -f conftest.
$ac_objext
5100 if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:5103: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try
='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:5106: \"$ac_try\"") >&5
5109 echo "$as_me:5109: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 emacs_cv_void_star
=yes
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5115 emacs_cv_void_star
=no
5117 rm -f conftest.
$ac_objext conftest.
$ac_ext
5119 echo "$as_me:5119: result: $emacs_cv_void_star" >&5
5120 echo "${ECHO_T}$emacs_cv_void_star" >&6
5121 if test $emacs_cv_void_star = yes; then
5122 cat >>confdefs.h
<<\EOF
5123 #define POINTER_TYPE void
5127 cat >>confdefs.h
<<\EOF
5128 #define POINTER_TYPE char
5133 echo "$as_me:5133: checking whether ${MAKE-make} sets \${MAKE}" >&5
5134 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5135 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5136 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 cat >conftest.
make <<\EOF
5141 @
echo 'ac_maketemp="${MAKE}"'
5143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5144 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5145 if test -n "$ac_maketemp"; then
5146 eval ac_cv_prog_make_
${ac_make}_set
=yes
5148 eval ac_cv_prog_make_
${ac_make}_set
=no
5152 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5153 echo "$as_me:5153: result: yes" >&5
5154 echo "${ECHO_T}yes" >&6
5157 echo "$as_me:5157: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5159 SET_MAKE
="MAKE=${MAKE-make}"
5162 echo "$as_me:5162: checking for long file names" >&5
5163 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5164 if test "${ac_cv_sys_long_file_names+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 ac_cv_sys_long_file_names
=yes
5168 # Test for long file names in all the places we know might matter:
5169 # . the current directory, where building will happen
5170 # $prefix/lib where we will be installing things
5171 # $exec_prefix/lib likewise
5172 # eval it to expand exec_prefix.
5173 # $TMPDIR if set, where it might want to write temporary files
5174 # if $TMPDIR is not set:
5175 # /tmp where it might want to write temporary files
5178 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5181 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5183 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5184 test -d $ac_dir ||
continue
5185 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5186 ac_xdir
=$ac_dir/cf$$
5187 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5188 ac_tf1
=$ac_xdir/conftest9012345
5189 ac_tf2
=$ac_xdir/conftest9012346
5190 (echo 1 >$ac_tf1) 2>/dev
/null
5191 (echo 2 >$ac_tf2) 2>/dev
/null
5192 ac_val
=`cat $ac_tf1 2>/dev/null`
5193 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5194 ac_cv_sys_long_file_names
=no
5195 rm -rf $ac_xdir 2>/dev
/null
5198 rm -rf $ac_xdir 2>/dev
/null
5201 echo "$as_me:5201: result: $ac_cv_sys_long_file_names" >&5
5202 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5203 if test $ac_cv_sys_long_file_names = yes; then
5205 cat >>confdefs.h
<<\EOF
5206 #define HAVE_LONG_FILE_NAMES 1
5211 #### Choose a window system.
5213 echo "$as_me:5213: checking for X" >&5
5214 echo $ECHO_N "checking for X... $ECHO_C" >&6
5216 # Check whether --with-x or --without-x was given.
5217 if test "${with_x+set}" = set; then
5221 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5222 if test "x$with_x" = xno
; then
5223 # The user explicitly disabled X.
5226 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5227 # Both variables are already set.
5230 if test "${ac_cv_have_x+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 # One or both of the vars are not set, and there is no cached value.
5234 ac_x_includes
=no ac_x_libraries
=no
5236 if mkdir conftest.dir
; then
5238 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5239 cat >Imakefile
<<'EOF'
5241 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5243 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5244 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5245 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5246 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5247 for ac_extension
in a so sl
; do
5248 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5249 test -f $ac_im_libdir/libX11.
$ac_extension; then
5250 ac_im_usrlibdir
=$ac_im_libdir; break
5253 # Screen out bogus values from the imake configuration. They are
5254 # bogus both because they are the default anyway, and because
5255 # using them would break gcc on systems where it needs fixed includes.
5256 case $ac_im_incroot in
5258 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5260 case $ac_im_usrlibdir in
5262 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5269 # Standard set of common directories for X headers.
5270 # Check X11 before X11Rn because it is often a symlink to the current release.
5282 /usr/local/X11/include
5283 /usr/local/X11R6/include
5284 /usr/local/X11R5/include
5285 /usr/local/X11R4/include
5287 /usr/local/include/X11
5288 /usr/local/include/X11R6
5289 /usr/local/include/X11R5
5290 /usr/local/include/X11R4
5294 /usr/XFree86/include/X11
5298 /usr/unsupported/include
5300 /usr/local/x11r5/include
5301 /usr/lpp/Xamples/include
5303 /usr/openwin/include
5304 /usr/openwin/share/include'
5306 if test "$ac_x_includes" = no
; then
5307 # Guess where to find include files, by looking for Intrinsic.h.
5308 # First, try using that file with no special directory specified.
5309 cat >conftest.
$ac_ext <<_ACEOF
5310 #line 5310 "configure"
5311 #include "confdefs.h"
5312 #include <X11/Intrinsic.h>
5314 if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5
5315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5317 egrep -v '^ *\+' conftest.er1
>conftest.err
5319 cat conftest.err
>&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); } >/dev
/null
; then
5322 if test -s conftest.err
; then
5323 ac_cpp_err
=$ac_c_preproc_warn_flag
5330 if test -z "$ac_cpp_err"; then
5331 # We can compile using X headers with no special include directory.
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5336 for ac_dir
in $ac_x_header_dirs; do
5337 if test -r "$ac_dir/X11/Intrinsic.h"; then
5338 ac_x_includes
=$ac_dir
5343 rm -f conftest.err conftest.
$ac_ext
5344 fi # $ac_x_includes = no
5346 if test "$ac_x_libraries" = no
; then
5347 # Check for the libraries.
5348 # See if we find them without any special options.
5349 # Don't add to $LIBS permanently.
5352 cat >conftest.
$ac_ext <<_ACEOF
5353 #line 5353 "configure"
5354 #include "confdefs.h"
5355 #include <X11/Intrinsic.h>
5364 rm -f conftest.
$ac_objext conftest
$ac_exeext
5365 if { (eval echo "$as_me:5365: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>&5
5368 echo "$as_me:5368: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try
='test -s conftest$ac_exeext'
5371 { (eval echo "$as_me:5371: \"$ac_try\"") >&5
5374 echo "$as_me:5374: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5377 # We can link X programs with no special library path.
5380 echo "$as_me: failed program was:" >&5
5381 cat conftest.
$ac_ext >&5
5383 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5385 # Don't even attempt the hair of trying to link an X program!
5386 for ac_extension
in a so sl
; do
5387 if test -r $ac_dir/libXt.
$ac_extension; then
5388 ac_x_libraries
=$ac_dir
5394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5395 fi # $ac_x_libraries = no
5397 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5398 # Didn't find X anywhere. Cache the known absence of X.
5399 ac_cv_have_x
="have_x=no"
5401 # Record where we found X for the cache.
5402 ac_cv_have_x
="have_x=yes \
5403 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5408 eval "$ac_cv_have_x"
5411 if test "$have_x" != yes; then
5412 echo "$as_me:5412: result: $have_x" >&5
5413 echo "${ECHO_T}$have_x" >&6
5416 # If each of the values was on the command line, it overrides each guess.
5417 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5418 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5419 # Update the cache value to reflect the command line values.
5420 ac_cv_have_x
="have_x=yes \
5421 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5422 echo "$as_me:5422: result: libraries $x_libraries, headers $x_includes" >&5
5423 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5426 if test "$no_x" = yes; then
5432 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5433 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5434 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5435 x_default_search_path
=""
5436 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5438 ${x_library}/X11/%L/%T/%N%C%S:\
5439 ${x_library}/X11/%l/%T/%N%C%S:\
5440 ${x_library}/X11/%T/%N%C%S:\
5441 ${x_library}/X11/%L/%T/%N%S:\
5442 ${x_library}/X11/%l/%T/%N%S:\
5443 ${x_library}/X11/%T/%N%S"
5444 if test x
"${x_default_search_path}" = x
; then
5445 x_default_search_path
=${x_search_path}
5447 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5451 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5452 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5455 if test x
"${x_includes}" = x
; then
5456 bitmapdir
=/usr
/include
/X11
/bitmaps
5458 # accumulate include directories that have X11 bitmap subdirectories
5460 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5461 if test -d "${bmd}/X11/bitmaps"; then
5462 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5464 if test -d "${bmd}/bitmaps"; then
5465 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5468 if test ${bmd_acc} != "dummyval"; then
5469 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5473 case "${window_system}" in
5477 case "${with_x_toolkit}" in
5478 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5479 motif
) USE_X_TOOLKIT
=MOTIF
;;
5480 no
) USE_X_TOOLKIT
=none
;;
5481 * ) USE_X_TOOLKIT
=maybe
;;
5491 ### If we're using X11, we should use the X menu package.
5494 yes ) HAVE_MENUS
=yes ;;
5497 if test "${opsys}" = "hpux9"; then
5498 case "${x_libraries}" in
5500 opsysfile
="s/hpux9-x11r4.h"
5505 if test "${opsys}" = "hpux9shr"; then
5506 case "${x_libraries}" in
5508 opsysfile
="s/hpux9shxr4.h"
5513 ### Compute the unexec source name from the object name.
5514 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5516 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5517 # Assume not, until told otherwise.
5520 echo "$as_me:5520: checking for malloc_get_state" >&5
5521 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5522 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 cat >conftest.
$ac_ext <<_ACEOF
5526 #line 5526 "configure"
5527 #include "confdefs.h"
5528 /* System header to define __stub macros and hopefully few prototypes,
5529 which can conflict with char malloc_get_state (); below. */
5531 /* Override any gcc2 internal prototype to avoid an error. */
5535 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5537 char malloc_get_state ();
5543 /* The GNU C library defines this for functions which it implements
5544 to always fail with ENOSYS. Some functions are actually named
5545 something starting with __ and the normal name is an alias. */
5546 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5549 f = malloc_get_state;
5556 rm -f conftest.
$ac_objext conftest
$ac_exeext
5557 if { (eval echo "$as_me:5557: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>&5
5560 echo "$as_me:5560: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try
='test -s conftest$ac_exeext'
5563 { (eval echo "$as_me:5563: \"$ac_try\"") >&5
5566 echo "$as_me:5566: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_func_malloc_get_state
=yes
5570 echo "$as_me: failed program was:" >&5
5571 cat conftest.
$ac_ext >&5
5572 ac_cv_func_malloc_get_state
=no
5574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5576 echo "$as_me:5576: result: $ac_cv_func_malloc_get_state" >&5
5577 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5578 if test $ac_cv_func_malloc_get_state = yes; then
5584 echo "$as_me:5584: checking for malloc_set_state" >&5
5585 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5586 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 cat >conftest.
$ac_ext <<_ACEOF
5590 #line 5590 "configure"
5591 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char malloc_set_state (); below. */
5595 /* Override any gcc2 internal prototype to avoid an error. */
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601 char malloc_set_state ();
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5613 f = malloc_set_state;
5620 rm -f conftest.
$ac_objext conftest
$ac_exeext
5621 if { (eval echo "$as_me:5621: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5624 echo "$as_me:5624: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try
='test -s conftest$ac_exeext'
5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_func_malloc_set_state
=yes
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.
$ac_ext >&5
5636 ac_cv_func_malloc_set_state
=no
5638 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5640 echo "$as_me:5640: result: $ac_cv_func_malloc_set_state" >&5
5641 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5642 if test $ac_cv_func_malloc_set_state = yes; then
5648 echo "$as_me:5648: checking whether __after_morecore_hook exists" >&5
5649 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5650 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 cat >conftest.
$ac_ext <<_ACEOF
5654 #line 5654 "configure"
5655 #include "confdefs.h"
5656 extern void (* __after_morecore_hook)();
5660 __after_morecore_hook = 0
5665 rm -f conftest.
$ac_objext conftest
$ac_exeext
5666 if { (eval echo "$as_me:5666: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try
='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:5672: \"$ac_try\"") >&5
5675 echo "$as_me:5675: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 emacs_cv_var___after_morecore_hook
=yes
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.
$ac_ext >&5
5681 emacs_cv_var___after_morecore_hook
=no
5683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5685 echo "$as_me:5685: result: $emacs_cv_var___after_morecore_hook" >&5
5686 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5687 if test $emacs_cv_var___after_morecore_hook = no
; then
5690 if test "${system_malloc}" = "yes"; then
5693 (The GNU allocators don't work with this system configuration.)"
5695 if test "$doug_lea_malloc" = "yes" ; then
5696 if test "$GNU_MALLOC" = yes ; then
5698 (Using Doug Lea's new malloc from the GNU C Library.)"
5701 cat >>confdefs.h
<<\EOF
5702 #define DOUG_LEA_MALLOC 1
5707 if test x
"${REL_ALLOC}" = x
; then
5708 REL_ALLOC
=${GNU_MALLOC}
5711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5713 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5714 inttypes.h stdint.h unistd.h
5716 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717 echo "$as_me:5717: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 cat >conftest.
$ac_ext <<_ACEOF
5723 #line 5723 "configure"
5724 #include "confdefs.h"
5725 $ac_includes_default
5726 #include <$ac_header>
5728 rm -f conftest.
$ac_objext
5729 if { (eval echo "$as_me:5729: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5732 echo "$as_me:5732: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try
='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:5735: \"$ac_try\"") >&5
5738 echo "$as_me:5738: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 eval "$as_ac_Header=yes"
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.
$ac_ext >&5
5744 eval "$as_ac_Header=no"
5746 rm -f conftest.
$ac_objext conftest.
$ac_ext
5748 echo "$as_me:5748: result: `eval echo '${'$as_ac_Header'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5751 cat >>confdefs.h
<<EOF
5752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5758 for ac_header
in stdlib.h unistd.h
5760 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5761 echo "$as_me:5761: checking for $ac_header" >&5
5762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.
$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5769 #include <$ac_header>
5771 if { (eval echo "$as_me:5771: \"$ac_cpp conftest.$ac_ext\"") >&5
5772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5774 egrep -v '^ *\+' conftest.er1
>conftest.err
5776 cat conftest.err
>&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); } >/dev
/null
; then
5779 if test -s conftest.err
; then
5780 ac_cpp_err
=$ac_c_preproc_warn_flag
5787 if test -z "$ac_cpp_err"; then
5788 eval "$as_ac_Header=yes"
5790 echo "$as_me: failed program was:" >&5
5791 cat conftest.
$ac_ext >&5
5792 eval "$as_ac_Header=no"
5794 rm -f conftest.err conftest.
$ac_ext
5796 echo "$as_me:5796: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799 cat >>confdefs.h
<<EOF
5800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5806 for ac_func
in getpagesize
5808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5809 echo "$as_me:5809: checking for $ac_func" >&5
5810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_var+set}\" = set"; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 cat >conftest.
$ac_ext <<_ACEOF
5815 #line 5815 "configure"
5816 #include "confdefs.h"
5817 /* System header to define __stub macros and hopefully few prototypes,
5818 which can conflict with char $ac_func (); below. */
5820 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5845 rm -f conftest.
$ac_objext conftest
$ac_exeext
5846 if { (eval echo "$as_me:5846: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try
='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:5852: \"$ac_try\"") >&5
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 eval "$as_ac_var=yes"
5859 echo "$as_me: failed program was:" >&5
5860 cat conftest.
$ac_ext >&5
5861 eval "$as_ac_var=no"
5863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5865 echo "$as_me:5865: result: `eval echo '${'$as_ac_var'}'`" >&5
5866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5867 if test `eval echo '${'$as_ac_var'}'` = yes; then
5868 cat >>confdefs.h
<<EOF
5869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5875 echo "$as_me:5875: checking for working mmap" >&5
5876 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5877 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 if test "$cross_compiling" = yes; then
5881 ac_cv_func_mmap_fixed_mapped
=no
5883 cat >conftest.
$ac_ext <<_ACEOF
5884 #line 5884 "configure"
5885 #include "confdefs.h"
5886 $ac_includes_default
5887 /* Thanks to Mike Haertel and Jim Avera for this test.
5888 Here is a matrix of mmap possibilities:
5889 mmap private not fixed
5890 mmap private fixed at somewhere currently unmapped
5891 mmap private fixed at somewhere already mapped
5892 mmap shared not fixed
5893 mmap shared fixed at somewhere currently unmapped
5894 mmap shared fixed at somewhere already mapped
5895 For private mappings, we should verify that changes cannot be read()
5896 back from the file, nor mmap's back from the file at a different
5897 address. (There have been systems where private was not correctly
5898 implemented like the infamous i386 svr4.0, and systems where the
5899 VM page cache was not coherent with the file system buffer cache
5900 like early versions of FreeBSD and possibly contemporary NetBSD.)
5901 For shared mappings, we should conversely verify that changes get
5902 propogated back to all the places they're supposed to be.
5904 Grep wants private fixed already mapped.
5905 The main things grep needs to know about mmap are:
5906 * does it exist and is it safe to write into the mmap'd area
5907 * how to use it (BSD variants) */
5910 #include <sys/mman.h>
5912 #if !STDC_HEADERS && !HAVE_STDLIB_H
5916 /* This mess was copied from the GNU getpagesize.h. */
5917 #if !HAVE_GETPAGESIZE
5918 /* Assume that all systems that can run configure have sys/param.h. */
5919 # if !HAVE_SYS_PARAM_H
5920 # define HAVE_SYS_PARAM_H 1
5923 # ifdef _SC_PAGESIZE
5924 # define getpagesize() sysconf(_SC_PAGESIZE)
5925 # else /* no _SC_PAGESIZE */
5926 # if HAVE_SYS_PARAM_H
5927 # include <sys/param.h>
5928 # ifdef EXEC_PAGESIZE
5929 # define getpagesize() EXEC_PAGESIZE
5930 # else /* no EXEC_PAGESIZE */
5932 # define getpagesize() NBPG * CLSIZE
5935 # endif /* no CLSIZE */
5936 # else /* no NBPG */
5938 # define getpagesize() NBPC
5939 # else /* no NBPC */
5941 # define getpagesize() PAGESIZE
5942 # endif /* PAGESIZE */
5943 # endif /* no NBPC */
5944 # endif /* no NBPG */
5945 # endif /* no EXEC_PAGESIZE */
5946 # else /* no HAVE_SYS_PARAM_H */
5947 # define getpagesize() 8192 /* punt totally */
5948 # endif /* no HAVE_SYS_PARAM_H */
5949 # endif /* no _SC_PAGESIZE */
5951 #endif /* no HAVE_GETPAGESIZE */
5956 char *data, *data2, *data3;
5960 pagesize = getpagesize ();
5962 /* First, make a file with some known garbage in it. */
5963 data = (char *) malloc (pagesize);
5966 for (i = 0; i < pagesize; ++i)
5967 *(data + i) = rand ();
5969 fd = creat ("conftest.mmap", 0600);
5972 if (write (fd, data, pagesize) != pagesize)
5976 /* Next, try to mmap the file at a fixed address which already has
5977 something else allocated at it. If we can, also make sure that
5978 we see the same garbage. */
5979 fd = open ("conftest.mmap", O_RDWR);
5982 data2 = (char *) malloc (2 * pagesize);
5985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5989 for (i = 0; i < pagesize; ++i)
5990 if (*(data + i) != *(data2 + i))
5993 /* Finally, make sure that changes to the mapped area do not
5994 percolate back to the file as seen by read(). (This is a bug on
5995 some variants of i386 svr4.0.) */
5996 for (i = 0; i < pagesize; ++i)
5997 *(data2 + i) = *(data2 + i) + 1;
5998 data3 = (char *) malloc (pagesize);
6001 if (read (fd, data3, pagesize) != pagesize)
6003 for (i = 0; i < pagesize; ++i)
6004 if (*(data + i) != *(data3 + i))
6010 rm -f conftest
$ac_exeext
6011 if { (eval echo "$as_me:6011: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6014 echo "$as_me:6014: \$? = $ac_status" >&5
6015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6016 { (eval echo "$as_me:6016: \"$ac_try\"") >&5
6019 echo "$as_me:6019: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_func_mmap_fixed_mapped
=yes
6023 echo "$as_me: program exited with status $ac_status" >&5
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.
$ac_ext >&5
6026 ac_cv_func_mmap_fixed_mapped
=no
6028 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6031 echo "$as_me:6031: result: $ac_cv_func_mmap_fixed_mapped" >&5
6032 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6033 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6035 cat >>confdefs.h
<<\EOF
6042 if test $use_mmap_for_buffers = yes; then
6046 LIBS
="$libsrc_libs $LIBS"
6048 echo "$as_me:6048: checking for dnet_ntoa in -ldnet" >&5
6049 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6050 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_check_lib_save_LIBS
=$LIBS
6055 cat >conftest.
$ac_ext <<_ACEOF
6056 #line 6056 "configure"
6057 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6074 rm -f conftest.
$ac_objext conftest
$ac_exeext
6075 if { (eval echo "$as_me:6075: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6078 echo "$as_me:6078: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -s conftest$ac_exeext'
6081 { (eval echo "$as_me:6081: \"$ac_try\"") >&5
6084 echo "$as_me:6084: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_lib_dnet_dnet_ntoa
=yes
6088 echo "$as_me: failed program was:" >&5
6089 cat conftest.
$ac_ext >&5
6090 ac_cv_lib_dnet_dnet_ntoa
=no
6092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6093 LIBS
=$ac_check_lib_save_LIBS
6095 echo "$as_me:6095: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6096 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6097 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6098 cat >>confdefs.h
<<EOF
6099 #define HAVE_LIBDNET 1
6106 echo "$as_me:6106: checking for main in -lXbsd" >&5
6107 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6108 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_check_lib_save_LIBS
=$LIBS
6113 cat >conftest.
$ac_ext <<_ACEOF
6114 #line 6114 "configure"
6115 #include "confdefs.h"
6125 rm -f conftest.
$ac_objext conftest
$ac_exeext
6126 if { (eval echo "$as_me:6126: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6129 echo "$as_me:6129: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try
='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:6132: \"$ac_try\"") >&5
6135 echo "$as_me:6135: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_lib_Xbsd_main
=yes
6139 echo "$as_me: failed program was:" >&5
6140 cat conftest.
$ac_ext >&5
6141 ac_cv_lib_Xbsd_main
=no
6143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6144 LIBS
=$ac_check_lib_save_LIBS
6146 echo "$as_me:6146: result: $ac_cv_lib_Xbsd_main" >&5
6147 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6148 if test $ac_cv_lib_Xbsd_main = yes; then
6149 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6152 echo "$as_me:6152: checking for cma_open in -lpthreads" >&5
6153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 ac_check_lib_save_LIBS
=$LIBS
6158 LIBS
="-lpthreads $LIBS"
6159 cat >conftest.
$ac_ext <<_ACEOF
6160 #line 6160 "configure"
6161 #include "confdefs.h"
6163 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6178 rm -f conftest.
$ac_objext conftest
$ac_exeext
6179 if { (eval echo "$as_me:6179: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>&5
6182 echo "$as_me:6182: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try
='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:6185: \"$ac_try\"") >&5
6188 echo "$as_me:6188: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_pthreads_cma_open
=yes
6192 echo "$as_me: failed program was:" >&5
6193 cat conftest.
$ac_ext >&5
6194 ac_cv_lib_pthreads_cma_open
=no
6196 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6197 LIBS
=$ac_check_lib_save_LIBS
6199 echo "$as_me:6199: result: $ac_cv_lib_pthreads_cma_open" >&5
6200 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6201 if test $ac_cv_lib_pthreads_cma_open = yes; then
6202 cat >>confdefs.h
<<EOF
6203 #define HAVE_LIBPTHREADS 1
6206 LIBS
="-lpthreads $LIBS"
6210 echo "$as_me:6210: checking for XFree86 in /usr/X386" >&5
6211 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6212 if test -d /usr
/X386
/include
; then
6214 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6218 echo "$as_me:6218: result: $HAVE_XFREE386" >&5
6219 echo "${ECHO_T}$HAVE_XFREE386" >&6
6221 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6222 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6224 REAL_CPPFLAGS
="$CPPFLAGS"
6226 if test "${HAVE_X11}" = "yes"; then
6227 DEFS
="$C_SWITCH_X_SITE $DEFS"
6228 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6230 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6231 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6233 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6234 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6235 # but it's more convenient here to set LD_RUN_PATH
6236 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6237 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6238 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6242 if test "${opsys}" = "gnu-linux"; then
6243 echo "$as_me:6243: checking whether X on GNU/Linux needs -b to link" >&5
6244 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6245 cat >conftest.
$ac_ext <<_ACEOF
6246 #line 6246 "configure"
6247 #include "confdefs.h"
6252 XOpenDisplay ("foo");
6257 rm -f conftest.
$ac_objext conftest
$ac_exeext
6258 if { (eval echo "$as_me:6258: \"$ac_link\"") >&5
6259 (eval $ac_link) 2>&5
6261 echo "$as_me:6261: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try
='test -s conftest$ac_exeext'
6264 { (eval echo "$as_me:6264: \"$ac_try\"") >&5
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 xlinux_first_failure
=no
6271 echo "$as_me: failed program was:" >&5
6272 cat conftest.
$ac_ext >&5
6273 xlinux_first_failure
=yes
6275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6276 if test "${xlinux_first_failure}" = "yes"; then
6277 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6278 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6279 OLD_CPPFLAGS
="$CPPFLAGS"
6281 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6282 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6283 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6284 LIBS
="$LIBS -b i486-linuxaout"
6285 cat >conftest.
$ac_ext <<_ACEOF
6286 #line 6286 "configure"
6287 #include "confdefs.h"
6292 XOpenDisplay ("foo");
6297 rm -f conftest.
$ac_objext conftest
$ac_exeext
6298 if { (eval echo "$as_me:6298: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try
='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:6304: \"$ac_try\"") >&5
6307 echo "$as_me:6307: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 xlinux_second_failure
=no
6311 echo "$as_me: failed program was:" >&5
6312 cat conftest.
$ac_ext >&5
6313 xlinux_second_failure
=yes
6315 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6316 if test "${xlinux_second_failure}" = "yes"; then
6317 # If we get the same failure with -b, there is no use adding -b.
6318 # So take it out. This plays safe.
6319 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6320 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6321 CPPFLAGS
="$OLD_CPPFLAGS"
6323 echo "$as_me:6323: result: no" >&5
6324 echo "${ECHO_T}no" >&6
6326 echo "$as_me:6326: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6
6330 echo "$as_me:6330: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6335 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6336 # header files included from there.
6337 echo "$as_me:6337: checking for Xkb" >&5
6338 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6339 cat >conftest.
$ac_ext <<_ACEOF
6340 #line 6340 "configure"
6341 #include "confdefs.h"
6342 #include <X11/Xlib.h>
6343 #include <X11/XKBlib.h>
6347 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6352 rm -f conftest.
$ac_objext conftest
$ac_exeext
6353 if { (eval echo "$as_me:6353: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try
='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:6359: \"$ac_try\"") >&5
6362 echo "$as_me:6362: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6366 echo "$as_me: failed program was:" >&5
6367 cat conftest.
$ac_ext >&5
6370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6371 echo "$as_me:6371: result: $emacs_xkb" >&5
6372 echo "${ECHO_T}$emacs_xkb" >&6
6373 if test $emacs_xkb = yes; then
6375 cat >>confdefs.h
<<\EOF
6376 #define HAVE_XKBGETKEYBOARD 1
6381 for ac_func
in XrmSetDatabase XScreenResourceString \
6382 XScreenNumberOfScreen XSetWMProtocols
6384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6385 echo "$as_me:6385: checking for $ac_func" >&5
6386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_var+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func (); below. */
6396 /* Override any gcc2 internal prototype to avoid an error. */
6400 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 rm -f conftest.
$ac_objext conftest
$ac_exeext
6422 if { (eval echo "$as_me:6422: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6425 echo "$as_me:6425: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try
='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:6428: \"$ac_try\"") >&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 eval "$as_ac_var=yes"
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.
$ac_ext >&5
6437 eval "$as_ac_var=no"
6439 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6441 echo "$as_me:6441: result: `eval echo '${'$as_ac_var'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6443 if test `eval echo '${'$as_ac_var'}'` = yes; then
6444 cat >>confdefs.h
<<EOF
6445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6453 if test "${window_system}" = "x11"; then
6454 echo "$as_me:6454: checking X11 version 6" >&5
6455 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6456 if test "${emacs_cv_x11_version_6+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 cat >conftest.
$ac_ext <<_ACEOF
6460 #line 6460 "configure"
6461 #include "confdefs.h"
6462 #include <X11/Xlib.h>
6466 #if XlibSpecificationRelease < 6
6474 rm -f conftest.
$ac_objext conftest
$ac_exeext
6475 if { (eval echo "$as_me:6475: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try
='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6484 echo "$as_me:6484: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 emacs_cv_x11_version_6
=yes
6488 echo "$as_me: failed program was:" >&5
6489 cat conftest.
$ac_ext >&5
6490 emacs_cv_x11_version_6
=no
6492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6495 if test $emacs_cv_x11_version_6 = yes; then
6496 echo "$as_me:6496: result: 6 or newer" >&5
6497 echo "${ECHO_T}6 or newer" >&6
6499 cat >>confdefs.h
<<\EOF
6500 #define HAVE_X11R6 1
6504 echo "$as_me:6504: result: before 6" >&5
6505 echo "${ECHO_T}before 6" >&6
6509 if test "${window_system}" = "x11"; then
6510 echo "$as_me:6510: checking X11 version 5" >&5
6511 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6512 if test "${emacs_cv_x11_version_5+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.
$ac_ext <<_ACEOF
6516 #line 6516 "configure"
6517 #include "confdefs.h"
6518 #include <X11/Xlib.h>
6522 #if XlibSpecificationRelease < 5
6530 rm -f conftest.
$ac_objext conftest
$ac_exeext
6531 if { (eval echo "$as_me:6531: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>&5
6534 echo "$as_me:6534: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try
='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:6537: \"$ac_try\"") >&5
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 emacs_cv_x11_version_5
=yes
6544 echo "$as_me: failed program was:" >&5
6545 cat conftest.
$ac_ext >&5
6546 emacs_cv_x11_version_5
=no
6548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6551 if test $emacs_cv_x11_version_5 = yes; then
6552 echo "$as_me:6552: result: 5 or newer" >&5
6553 echo "${ECHO_T}5 or newer" >&6
6556 cat >>confdefs.h
<<\EOF
6557 #define HAVE_X11R5 1
6562 echo "$as_me:6562: result: before 5" >&5
6563 echo "${ECHO_T}before 5" >&6
6567 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6568 if test x
"${HAVE_X11R5}" = xyes
; then
6569 echo "$as_me:6569: checking X11 version 5 with Xaw" >&5
6570 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6571 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6575 #line 6575 "configure"
6576 #include "confdefs.h"
6578 #include <X11/Intrinsic.h>
6579 #include <X11/Xaw/Simple.h>
6588 rm -f conftest.
$ac_objext conftest
$ac_exeext
6589 if { (eval echo "$as_me:6589: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try
='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:6595: \"$ac_try\"") >&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 emacs_cv_x11_version_5_with_xaw
=yes
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.
$ac_ext >&5
6604 emacs_cv_x11_version_5_with_xaw
=no
6606 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6609 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6610 echo "$as_me:6610: result: 5 or newer, with Xaw; use toolkit by default" >&5
6611 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6614 echo "$as_me:6614: result: before 5 or no Xaw; do not use toolkit by default" >&5
6615 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6623 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6625 if test "${USE_X_TOOLKIT}" != "none"; then
6626 echo "$as_me:6626: checking X11 toolkit version" >&5
6627 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6628 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 cat >conftest.
$ac_ext <<_ACEOF
6632 #line 6632 "configure"
6633 #include "confdefs.h"
6634 #include <X11/Intrinsic.h>
6638 #if XtSpecificationRelease < 6
6646 rm -f conftest.
$ac_objext conftest
$ac_exeext
6647 if { (eval echo "$as_me:6647: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>&5
6650 echo "$as_me:6650: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try
='test -s conftest$ac_exeext'
6653 { (eval echo "$as_me:6653: \"$ac_try\"") >&5
6656 echo "$as_me:6656: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 emacs_cv_x11_toolkit_version_6
=yes
6660 echo "$as_me: failed program was:" >&5
6661 cat conftest.
$ac_ext >&5
6662 emacs_cv_x11_toolkit_version_6
=no
6664 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6667 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6668 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6669 echo "$as_me:6669: result: 6 or newer" >&5
6670 echo "${ECHO_T}6 or newer" >&6
6672 cat >>confdefs.h
<<\EOF
6673 #define HAVE_X11XTR6 1
6677 echo "$as_me:6677: result: before 6" >&5
6678 echo "${ECHO_T}before 6" >&6
6682 if test x
$HAVE_X11XTR6 = xyes
; then
6683 LIBS
="-lXt -lSM -lICE $LIBS"
6688 echo "$as_me:6688: checking for XmuConvertStandardSelection in -lXmu" >&5
6689 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6690 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_check_lib_save_LIBS
=$LIBS
6695 cat >conftest.
$ac_ext <<_ACEOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char XmuConvertStandardSelection ();
6709 XmuConvertStandardSelection ();
6714 rm -f conftest.
$ac_objext conftest
$ac_exeext
6715 if { (eval echo "$as_me:6715: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>&5
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try
='test -s conftest$ac_exeext'
6721 { (eval echo "$as_me:6721: \"$ac_try\"") >&5
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6728 echo "$as_me: failed program was:" >&5
6729 cat conftest.
$ac_ext >&5
6730 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6732 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6733 LIBS
=$ac_check_lib_save_LIBS
6735 echo "$as_me:6735: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6736 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6737 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6738 cat >>confdefs.h
<<EOF
6739 #define HAVE_LIBXMU 1
6746 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6749 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6750 if test "${HAVE_X11}" = "yes"; then
6751 if test "${USE_X_TOOLKIT}" != "none"; then
6753 echo "$as_me:6753: checking for XShapeQueryExtension in -lXext" >&5
6754 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6755 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_check_lib_save_LIBS
=$LIBS
6760 cat >conftest.
$ac_ext <<_ACEOF
6761 #line 6761 "configure"
6762 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770 char XShapeQueryExtension ();
6774 XShapeQueryExtension ();
6779 rm -f conftest.
$ac_objext conftest
$ac_exeext
6780 if { (eval echo "$as_me:6780: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); } &&
6785 { ac_try
='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:6786: \"$ac_try\"") >&5
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6793 echo "$as_me: failed program was:" >&5
6794 cat conftest.
$ac_ext >&5
6795 ac_cv_lib_Xext_XShapeQueryExtension
=no
6797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6798 LIBS
=$ac_check_lib_save_LIBS
6800 echo "$as_me:6800: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6801 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6802 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6803 cat >>confdefs.h
<<EOF
6804 #define HAVE_LIBXEXT 1
6814 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6815 echo "$as_me:6815: checking for Motif version 2.1" >&5
6816 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6817 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.
$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6827 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6830 Motif version prior to 2.1.
6836 rm -f conftest.
$ac_objext
6837 if { (eval echo "$as_me:6837: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6840 echo "$as_me:6840: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try
='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:6843: \"$ac_try\"") >&5
6846 echo "$as_me:6846: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 emacs_cv_motif_version_2_1
=yes
6850 echo "$as_me: failed program was:" >&5
6851 cat conftest.
$ac_ext >&5
6852 emacs_cv_motif_version_2_1
=no
6854 rm -f conftest.
$ac_objext conftest.
$ac_ext
6856 echo "$as_me:6856: result: $emacs_cv_motif_version_2_1" >&5
6857 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6858 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6859 if test $emacs_cv_motif_version_2_1 = yes; then
6862 cat >>confdefs.h
<<\EOF
6863 #define HAVE_MOTIF_2_1 1
6866 echo "$as_me:6866: checking for XpCreateContext in -lXp" >&5
6867 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6868 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 ac_check_lib_save_LIBS
=$LIBS
6873 cat >conftest.
$ac_ext <<_ACEOF
6874 #line 6874 "configure"
6875 #include "confdefs.h"
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char XpCreateContext ();
6892 rm -f conftest.
$ac_objext conftest
$ac_exeext
6893 if { (eval echo "$as_me:6893: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6896 echo "$as_me:6896: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try
='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:6899: \"$ac_try\"") >&5
6902 echo "$as_me:6902: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_Xp_XpCreateContext
=yes
6906 echo "$as_me: failed program was:" >&5
6907 cat conftest.
$ac_ext >&5
6908 ac_cv_lib_Xp_XpCreateContext
=no
6910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6911 LIBS
=$ac_check_lib_save_LIBS
6913 echo "$as_me:6913: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6914 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6915 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6919 if test ${HAVE_LIBXP} = yes; then
6921 cat >>confdefs.h
<<\EOF
6922 #define HAVE_LIBXP 1
6929 ### Is -lXaw3d available?
6931 if test "${HAVE_X11}" = "yes"; then
6932 if test "${USE_X_TOOLKIT}" != "none"; then
6933 echo "$as_me:6933: checking for X11/Xaw3d/Scrollbar.h" >&5
6934 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6935 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.
$ac_ext <<_ACEOF
6939 #line 6939 "configure"
6940 #include "confdefs.h"
6941 #include <X11/Xaw3d/Scrollbar.h>
6943 if { (eval echo "$as_me:6943: \"$ac_cpp conftest.$ac_ext\"") >&5
6944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6946 egrep -v '^ *\+' conftest.er1
>conftest.err
6948 cat conftest.err
>&5
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev
/null
; then
6951 if test -s conftest.err
; then
6952 ac_cpp_err
=$ac_c_preproc_warn_flag
6959 if test -z "$ac_cpp_err"; then
6960 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.
$ac_ext >&5
6964 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6966 rm -f conftest.err conftest.
$ac_ext
6968 echo "$as_me:6968: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6969 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6970 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6971 echo "$as_me:6971: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6972 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6973 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_check_lib_save_LIBS
=$LIBS
6977 LIBS
="-lXaw3d $LIBS"
6978 cat >conftest.
$ac_ext <<_ACEOF
6979 #line 6979 "configure"
6980 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6988 char XawScrollbarSetThumb ();
6992 XawScrollbarSetThumb ();
6997 rm -f conftest.
$ac_objext conftest
$ac_exeext
6998 if { (eval echo "$as_me:6998: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>&5
7001 echo "$as_me:7001: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try
='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:7004: \"$ac_try\"") >&5
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.
$ac_ext >&5
7013 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7016 LIBS
=$ac_check_lib_save_LIBS
7018 echo "$as_me:7018: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7019 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7020 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7026 if test "${HAVE_XAW3D}" = "yes"; then
7028 cat >>confdefs.h
<<\EOF
7029 #define HAVE_XAW3D 1
7036 USE_TOOLKIT_SCROLL_BARS
=no
7037 if test "${with_toolkit_scroll_bars}" != "no"; then
7038 if test "${USE_X_TOOLKIT}" != "none"; then
7039 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7040 cat >>confdefs.h
<<\EOF
7041 #define USE_TOOLKIT_SCROLL_BARS 1
7045 USE_TOOLKIT_SCROLL_BARS
=yes
7046 elif test "${HAVE_XAW3D}" = "yes"; then
7047 cat >>confdefs.h
<<\EOF
7048 #define USE_TOOLKIT_SCROLL_BARS 1
7051 USE_TOOLKIT_SCROLL_BARS
=yes
7056 if test "${with_xim}" != "no"; then
7058 cat >>confdefs.h
<<\EOF
7064 ### Use -lXpm if available, unless `--with-xpm=no'.
7066 if test "${HAVE_X11}" = "yes"; then
7067 if test "${with_xpm}" != "no"; then
7068 echo "$as_me:7068: checking for X11/xpm.h" >&5
7069 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7070 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 cat >conftest.
$ac_ext <<_ACEOF
7074 #line 7074 "configure"
7075 #include "confdefs.h"
7076 #include <X11/xpm.h>
7078 if { (eval echo "$as_me:7078: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7081 egrep -v '^ *\+' conftest.er1
>conftest.err
7083 cat conftest.err
>&5
7084 echo "$as_me:7084: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev
/null
; then
7086 if test -s conftest.err
; then
7087 ac_cpp_err
=$ac_c_preproc_warn_flag
7094 if test -z "$ac_cpp_err"; then
7095 ac_cv_header_X11_xpm_h
=yes
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.
$ac_ext >&5
7099 ac_cv_header_X11_xpm_h
=no
7101 rm -f conftest.err conftest.
$ac_ext
7103 echo "$as_me:7103: result: $ac_cv_header_X11_xpm_h" >&5
7104 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7105 if test $ac_cv_header_X11_xpm_h = yes; then
7106 echo "$as_me:7106: checking for XpmReadFileToPixmap in -lXpm" >&5
7107 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7108 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_check_lib_save_LIBS
=$LIBS
7112 LIBS
="-lXpm -lX11 $LIBS"
7113 cat >conftest.
$ac_ext <<_ACEOF
7114 #line 7114 "configure"
7115 #include "confdefs.h"
7117 /* Override any gcc2 internal prototype to avoid an error. */
7121 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7123 char XpmReadFileToPixmap ();
7127 XpmReadFileToPixmap ();
7132 rm -f conftest.
$ac_objext conftest
$ac_exeext
7133 if { (eval echo "$as_me:7133: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>&5
7136 echo "$as_me:7136: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try
='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:7139: \"$ac_try\"") >&5
7142 echo "$as_me:7142: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.
$ac_ext >&5
7148 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7150 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7151 LIBS
=$ac_check_lib_save_LIBS
7153 echo "$as_me:7153: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7154 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7155 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7161 if test "${HAVE_XPM}" = "yes"; then
7162 echo "$as_me:7162: checking for XpmReturnAllocPixels preprocessor define" >&5
7163 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7164 cat >conftest.
$ac_ext <<_ACEOF
7165 #line 7165 "configure"
7166 #include "confdefs.h"
7167 #include "X11/xpm.h"
7168 #ifndef XpmReturnAllocPixels
7169 no_return_alloc_pixels
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7181 if test "${HAVE_XPM}" = "yes"; then
7182 echo "$as_me:7182: result: yes" >&5
7183 echo "${ECHO_T}yes" >&6
7185 echo "$as_me:7185: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7191 if test "${HAVE_XPM}" = "yes"; then
7193 cat >>confdefs.h
<<\EOF
7200 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7202 if test "${HAVE_X11}" = "yes"; then
7203 if test "${with_jpeg}" != "no"; then
7204 echo "$as_me:7204: checking for jerror.h" >&5
7205 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7206 if test "${ac_cv_header_jerror_h+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 cat >conftest.
$ac_ext <<_ACEOF
7210 #line 7210 "configure"
7211 #include "confdefs.h"
7214 if { (eval echo "$as_me:7214: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7217 egrep -v '^ *\+' conftest.er1
>conftest.err
7219 cat conftest.err
>&5
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev
/null
; then
7222 if test -s conftest.err
; then
7223 ac_cpp_err
=$ac_c_preproc_warn_flag
7230 if test -z "$ac_cpp_err"; then
7231 ac_cv_header_jerror_h
=yes
7233 echo "$as_me: failed program was:" >&5
7234 cat conftest.
$ac_ext >&5
7235 ac_cv_header_jerror_h
=no
7237 rm -f conftest.err conftest.
$ac_ext
7239 echo "$as_me:7239: result: $ac_cv_header_jerror_h" >&5
7240 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7241 if test $ac_cv_header_jerror_h = yes; then
7242 echo "$as_me:7242: checking for jpeg_destroy_compress in -ljpeg" >&5
7243 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7244 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_check_lib_save_LIBS
=$LIBS
7249 cat >conftest.
$ac_ext <<_ACEOF
7250 #line 7250 "configure"
7251 #include "confdefs.h"
7253 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char jpeg_destroy_compress ();
7263 jpeg_destroy_compress ();
7268 rm -f conftest.
$ac_objext conftest
$ac_exeext
7269 if { (eval echo "$as_me:7269: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit $ac_status); } &&
7274 { ac_try
='test -s conftest$ac_exeext'
7275 { (eval echo "$as_me:7275: \"$ac_try\"") >&5
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.
$ac_ext >&5
7284 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7286 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7287 LIBS
=$ac_check_lib_save_LIBS
7289 echo "$as_me:7289: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7290 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7291 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7299 if test "${HAVE_JPEG}" = "yes"; then
7300 cat >>confdefs.h
<<\EOF
7304 cat >conftest.
$ac_ext <<_ACEOF
7305 #line 7305 "configure"
7306 #include "confdefs.h"
7307 #include <jpeglib.h>
7308 version=JPEG_LIB_VERSION
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7313 cat >>confdefs.h
<<\EOF
7318 { echo "$as_me:7318: WARNING: libjpeg found, but not version 6b or later" >&5
7319 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7327 ### Use -lpng if available, unless `--with-png=no'.
7329 if test "${HAVE_X11}" = "yes"; then
7330 if test "${with_png}" != "no"; then
7331 echo "$as_me:7331: checking for png.h" >&5
7332 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7333 if test "${ac_cv_header_png_h+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.
$ac_ext <<_ACEOF
7337 #line 7337 "configure"
7338 #include "confdefs.h"
7341 if { (eval echo "$as_me:7341: \"$ac_cpp conftest.$ac_ext\"") >&5
7342 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7344 egrep -v '^ *\+' conftest.er1
>conftest.err
7346 cat conftest.err
>&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); } >/dev
/null
; then
7349 if test -s conftest.err
; then
7350 ac_cpp_err
=$ac_c_preproc_warn_flag
7357 if test -z "$ac_cpp_err"; then
7358 ac_cv_header_png_h
=yes
7360 echo "$as_me: failed program was:" >&5
7361 cat conftest.
$ac_ext >&5
7362 ac_cv_header_png_h
=no
7364 rm -f conftest.err conftest.
$ac_ext
7366 echo "$as_me:7366: result: $ac_cv_header_png_h" >&5
7367 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7368 if test $ac_cv_header_png_h = yes; then
7369 echo "$as_me:7369: checking for png_get_channels in -lpng" >&5
7370 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7371 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 ac_check_lib_save_LIBS
=$LIBS
7375 LIBS
="-lpng -lz -lm $LIBS"
7376 cat >conftest.
$ac_ext <<_ACEOF
7377 #line 7377 "configure"
7378 #include "confdefs.h"
7380 /* Override any gcc2 internal prototype to avoid an error. */
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7386 char png_get_channels ();
7390 png_get_channels ();
7395 rm -f conftest.
$ac_objext conftest
$ac_exeext
7396 if { (eval echo "$as_me:7396: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>&5
7399 echo "$as_me:7399: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try
='test -s conftest$ac_exeext'
7402 { (eval echo "$as_me:7402: \"$ac_try\"") >&5
7405 echo "$as_me:7405: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_lib_png_png_get_channels
=yes
7409 echo "$as_me: failed program was:" >&5
7410 cat conftest.
$ac_ext >&5
7411 ac_cv_lib_png_png_get_channels
=no
7413 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7414 LIBS
=$ac_check_lib_save_LIBS
7416 echo "$as_me:7416: result: $ac_cv_lib_png_png_get_channels" >&5
7417 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7418 if test $ac_cv_lib_png_png_get_channels = yes; then
7426 if test "${HAVE_PNG}" = "yes"; then
7428 cat >>confdefs.h
<<\EOF
7435 ### Use -ltiff if available, unless `--with-tiff=no'.
7437 if test "${HAVE_X11}" = "yes"; then
7438 if test "${with_tiff}" != "no"; then
7439 echo "$as_me:7439: checking for tiffio.h" >&5
7440 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7441 if test "${ac_cv_header_tiffio_h+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.
$ac_ext <<_ACEOF
7445 #line 7445 "configure"
7446 #include "confdefs.h"
7449 if { (eval echo "$as_me:7449: \"$ac_cpp conftest.$ac_ext\"") >&5
7450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7452 egrep -v '^ *\+' conftest.er1
>conftest.err
7454 cat conftest.err
>&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev
/null
; then
7457 if test -s conftest.err
; then
7458 ac_cpp_err
=$ac_c_preproc_warn_flag
7465 if test -z "$ac_cpp_err"; then
7466 ac_cv_header_tiffio_h
=yes
7468 echo "$as_me: failed program was:" >&5
7469 cat conftest.
$ac_ext >&5
7470 ac_cv_header_tiffio_h
=no
7472 rm -f conftest.err conftest.
$ac_ext
7474 echo "$as_me:7474: result: $ac_cv_header_tiffio_h" >&5
7475 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7476 if test $ac_cv_header_tiffio_h = yes; then
7478 # At least one tiff package requires the jpeg library.
7479 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7480 echo "$as_me:7480: checking for TIFFGetVersion in -ltiff" >&5
7481 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7482 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 ac_check_lib_save_LIBS
=$LIBS
7486 LIBS
="-ltiff $tifflibs $LIBS"
7487 cat >conftest.
$ac_ext <<_ACEOF
7488 #line 7488 "configure"
7489 #include "confdefs.h"
7491 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char TIFFGetVersion ();
7506 rm -f conftest.
$ac_objext conftest
$ac_exeext
7507 if { (eval echo "$as_me:7507: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>&5
7510 echo "$as_me:7510: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try
='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:7513: \"$ac_try\"") >&5
7516 echo "$as_me:7516: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7518 ac_cv_lib_tiff_TIFFGetVersion
=yes
7520 echo "$as_me: failed program was:" >&5
7521 cat conftest.
$ac_ext >&5
7522 ac_cv_lib_tiff_TIFFGetVersion
=no
7524 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7525 LIBS
=$ac_check_lib_save_LIBS
7527 echo "$as_me:7527: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7528 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7529 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7537 if test "${HAVE_TIFF}" = "yes"; then
7539 cat >>confdefs.h
<<\EOF
7546 ### Use -lgif if available, unless `--with-gif=no'.
7548 if test "${HAVE_X11}" = "yes"; then
7549 if test "${with_gif}" != "no"; then
7550 echo "$as_me:7550: checking for gif_lib.h" >&5
7551 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7552 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 cat >conftest.
$ac_ext <<_ACEOF
7556 #line 7556 "configure"
7557 #include "confdefs.h"
7558 #include <gif_lib.h>
7560 if { (eval echo "$as_me:7560: \"$ac_cpp conftest.$ac_ext\"") >&5
7561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7563 egrep -v '^ *\+' conftest.er1
>conftest.err
7565 cat conftest.err
>&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 (exit $ac_status); } >/dev
/null
; then
7568 if test -s conftest.err
; then
7569 ac_cpp_err
=$ac_c_preproc_warn_flag
7576 if test -z "$ac_cpp_err"; then
7577 ac_cv_header_gif_lib_h
=yes
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.
$ac_ext >&5
7581 ac_cv_header_gif_lib_h
=no
7583 rm -f conftest.err conftest.
$ac_ext
7585 echo "$as_me:7585: result: $ac_cv_header_gif_lib_h" >&5
7586 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7587 if test $ac_cv_header_gif_lib_h = yes; then
7588 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7589 # Earlier versions can crash Emacs.
7590 echo "$as_me:7590: checking for EGifPutExtensionLast in -lungif" >&5
7591 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7592 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_check_lib_save_LIBS
=$LIBS
7596 LIBS
="-lungif $LIBS"
7597 cat >conftest.
$ac_ext <<_ACEOF
7598 #line 7598 "configure"
7599 #include "confdefs.h"
7601 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char EGifPutExtensionLast ();
7611 EGifPutExtensionLast ();
7616 rm -f conftest.
$ac_objext conftest
$ac_exeext
7617 if { (eval echo "$as_me:7617: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:7620: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try
='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:7623: \"$ac_try\"") >&5
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.
$ac_ext >&5
7632 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7634 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7635 LIBS
=$ac_check_lib_save_LIBS
7637 echo "$as_me:7637: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7638 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7639 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7647 if test "${HAVE_GIF}" = "yes"; then
7649 cat >>confdefs.h
<<\EOF
7656 ### Use Mac OS X Carbon API to implement GUI.
7658 if test "${with_carbon}" != "no"; then
7659 echo "$as_me:7659: checking for Carbon/Carbon.h" >&5
7660 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7661 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 cat >conftest.
$ac_ext <<_ACEOF
7665 #line 7665 "configure"
7666 #include "confdefs.h"
7667 #include <Carbon/Carbon.h>
7669 if { (eval echo "$as_me:7669: \"$ac_cpp conftest.$ac_ext\"") >&5
7670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7672 egrep -v '^ *\+' conftest.er1
>conftest.err
7674 cat conftest.err
>&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); } >/dev
/null
; then
7677 if test -s conftest.err
; then
7678 ac_cpp_err
=$ac_c_preproc_warn_flag
7685 if test -z "$ac_cpp_err"; then
7686 ac_cv_header_Carbon_Carbon_h
=yes
7688 echo "$as_me: failed program was:" >&5
7689 cat conftest.
$ac_ext >&5
7690 ac_cv_header_Carbon_Carbon_h
=no
7692 rm -f conftest.err conftest.
$ac_ext
7694 echo "$as_me:7694: result: $ac_cv_header_Carbon_Carbon_h" >&5
7695 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7696 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7702 if test "${HAVE_CARBON}" = "yes"; then
7704 cat >>confdefs.h
<<\EOF
7705 #define HAVE_CARBON 1
7710 ### Use session management (-lSM -lICE) if available
7712 if test "${HAVE_X11}" = "yes"; then
7713 echo "$as_me:7713: checking for X11/SM/SMlib.h" >&5
7714 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7715 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 cat >conftest.
$ac_ext <<_ACEOF
7719 #line 7719 "configure"
7720 #include "confdefs.h"
7721 #include <X11/SM/SMlib.h>
7723 if { (eval echo "$as_me:7723: \"$ac_cpp conftest.$ac_ext\"") >&5
7724 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7726 egrep -v '^ *\+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); } >/dev
/null
; then
7731 if test -s conftest.err
; then
7732 ac_cpp_err
=$ac_c_preproc_warn_flag
7739 if test -z "$ac_cpp_err"; then
7740 ac_cv_header_X11_SM_SMlib_h
=yes
7742 echo "$as_me: failed program was:" >&5
7743 cat conftest.
$ac_ext >&5
7744 ac_cv_header_X11_SM_SMlib_h
=no
7746 rm -f conftest.err conftest.
$ac_ext
7748 echo "$as_me:7748: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7749 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7750 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7751 echo "$as_me:7751: checking for SmcOpenConnection in -lSM" >&5
7752 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7753 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 ac_check_lib_save_LIBS
=$LIBS
7758 cat >conftest.
$ac_ext <<_ACEOF
7759 #line 7759 "configure"
7760 #include "confdefs.h"
7762 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char SmcOpenConnection ();
7772 SmcOpenConnection ();
7777 rm -f conftest.
$ac_objext conftest
$ac_exeext
7778 if { (eval echo "$as_me:7778: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try
='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:7784: \"$ac_try\"") >&5
7787 echo "$as_me:7787: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_lib_SM_SmcOpenConnection
=yes
7791 echo "$as_me: failed program was:" >&5
7792 cat conftest.
$ac_ext >&5
7793 ac_cv_lib_SM_SmcOpenConnection
=no
7795 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7796 LIBS
=$ac_check_lib_save_LIBS
7798 echo "$as_me:7798: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7799 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7800 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7808 if test "${HAVE_X_SM}" = "yes"; then
7810 cat >>confdefs.h
<<\EOF
7816 *) LIBS
="-lSM -lICE $LIBS" ;;
7821 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7822 echo "$as_me:7822: checking whether netdb declares h_errno" >&5
7823 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7824 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 cat >conftest.
$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7839 rm -f conftest.
$ac_objext conftest
$ac_exeext
7840 if { (eval echo "$as_me:7840: \"$ac_link\"") >&5
7841 (eval $ac_link) 2>&5
7843 echo "$as_me:7843: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try
='test -s conftest$ac_exeext'
7846 { (eval echo "$as_me:7846: \"$ac_try\"") >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 emacs_cv_netdb_declares_h_errno
=yes
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.
$ac_ext >&5
7855 emacs_cv_netdb_declares_h_errno
=no
7857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7859 echo "$as_me:7859: result: $emacs_cv_netdb_declares_h_errno" >&5
7860 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7861 if test $emacs_cv_netdb_declares_h_errno = yes; then
7863 cat >>confdefs.h
<<\EOF
7864 #define HAVE_H_ERRNO 1
7869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7870 # for constant arguments. Useless!
7871 echo "$as_me:7871: checking for working alloca.h" >&5
7872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7873 if test "${ac_cv_working_alloca_h+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 cat >conftest.
$ac_ext <<_ACEOF
7877 #line 7877 "configure"
7878 #include "confdefs.h"
7883 char *p = (char *) alloca (2 * sizeof (int));
7888 rm -f conftest.
$ac_objext conftest
$ac_exeext
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try
='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_working_alloca_h
=yes
7902 echo "$as_me: failed program was:" >&5
7903 cat conftest.
$ac_ext >&5
7904 ac_cv_working_alloca_h
=no
7906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7908 echo "$as_me:7908: result: $ac_cv_working_alloca_h" >&5
7909 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7910 if test $ac_cv_working_alloca_h = yes; then
7912 cat >>confdefs.h
<<\EOF
7913 #define HAVE_ALLOCA_H 1
7918 echo "$as_me:7918: checking for alloca" >&5
7919 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7920 if test "${ac_cv_func_alloca_works+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 cat >conftest.
$ac_ext <<_ACEOF
7924 #line 7924 "configure"
7925 #include "confdefs.h"
7927 # define alloca __builtin_alloca
7930 # include <malloc.h>
7931 # define alloca _alloca
7934 # include <alloca.h>
7939 # ifndef alloca /* predefined by HP cc +Olibcalls */
7950 char *p = (char *) alloca (1);
7955 rm -f conftest.
$ac_objext conftest
$ac_exeext
7956 if { (eval echo "$as_me:7956: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>&5
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try
='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:7962: \"$ac_try\"") >&5
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_func_alloca_works
=yes
7969 echo "$as_me: failed program was:" >&5
7970 cat conftest.
$ac_ext >&5
7971 ac_cv_func_alloca_works
=no
7973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7975 echo "$as_me:7975: result: $ac_cv_func_alloca_works" >&5
7976 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7978 if test $ac_cv_func_alloca_works = yes; then
7980 cat >>confdefs.h
<<\EOF
7981 #define HAVE_ALLOCA 1
7985 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7986 # that cause trouble. Some versions do not even contain alloca or
7987 # contain a buggy version. If you still want to use their alloca,
7988 # use ar to extract alloca.o from them instead of compiling alloca.c.
7990 ALLOCA
=alloca.
$ac_objext
7992 cat >>confdefs.h
<<\EOF
7996 echo "$as_me:7996: checking whether \`alloca.c' needs Cray hooks" >&5
7997 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7998 if test "${ac_cv_os_cray+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 cat >conftest.
$ac_ext <<_ACEOF
8002 #line 8002 "configure"
8003 #include "confdefs.h"
8004 #if defined(CRAY) && ! defined(CRAY2)
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 egrep "webecray" >/dev
/null
2>&1; then
8020 echo "$as_me:8020: result: $ac_cv_os_cray" >&5
8021 echo "${ECHO_T}$ac_cv_os_cray" >&6
8022 if test $ac_cv_os_cray = yes; then
8023 for ac_func
in _getb67 GETB67 getb67
; do
8024 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8025 echo "$as_me:8025: checking for $ac_func" >&5
8026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8027 if eval "test \"\${$as_ac_var+set}\" = set"; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 cat >conftest.
$ac_ext <<_ACEOF
8031 #line 8031 "configure"
8032 #include "confdefs.h"
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func (); below. */
8036 /* Override any gcc2 internal prototype to avoid an error. */
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8048 /* The GNU C library defines this for functions which it implements
8049 to always fail with ENOSYS. Some functions are actually named
8050 something starting with __ and the normal name is an alias. */
8051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 rm -f conftest.
$ac_objext conftest
$ac_exeext
8062 if { (eval echo "$as_me:8062: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:8065: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try
='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:8068: \"$ac_try\"") >&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 eval "$as_ac_var=yes"
8075 echo "$as_me: failed program was:" >&5
8076 cat conftest.
$ac_ext >&5
8077 eval "$as_ac_var=no"
8079 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8081 echo "$as_me:8081: result: `eval echo '${'$as_ac_var'}'`" >&5
8082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8083 if test `eval echo '${'$as_ac_var'}'` = yes; then
8085 cat >>confdefs.h
<<EOF
8086 #define CRAY_STACKSEG_END $ac_func
8095 echo "$as_me:8095: checking stack direction for C alloca" >&5
8096 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8097 if test "${ac_cv_c_stack_direction+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 if test "$cross_compiling" = yes; then
8101 ac_cv_c_stack_direction
=0
8103 cat >conftest.
$ac_ext <<_ACEOF
8104 #line 8104 "configure"
8105 #include "confdefs.h"
8107 find_stack_direction ()
8109 static char *addr = 0;
8114 return find_stack_direction ();
8117 return (&dummy > addr) ? 1 : -1;
8123 exit (find_stack_direction () < 0);
8126 rm -f conftest
$ac_exeext
8127 if { (eval echo "$as_me:8127: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>&5
8130 echo "$as_me:8130: \$? = $ac_status" >&5
8131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8132 { (eval echo "$as_me:8132: \"$ac_try\"") >&5
8135 echo "$as_me:8135: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_cv_c_stack_direction
=1
8139 echo "$as_me: program exited with status $ac_status" >&5
8140 echo "$as_me: failed program was:" >&5
8141 cat conftest.
$ac_ext >&5
8142 ac_cv_c_stack_direction
=-1
8144 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8147 echo "$as_me:8147: result: $ac_cv_c_stack_direction" >&5
8148 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8150 cat >>confdefs.h
<<EOF
8151 #define STACK_DIRECTION $ac_cv_c_stack_direction
8156 # fmod, logb, and frexp are found in -lm on most systems.
8157 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8159 echo "$as_me:8159: checking for sqrt in -lm" >&5
8160 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8161 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 ac_check_lib_save_LIBS
=$LIBS
8166 cat >conftest.
$ac_ext <<_ACEOF
8167 #line 8167 "configure"
8168 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8185 rm -f conftest.
$ac_objext conftest
$ac_exeext
8186 if { (eval echo "$as_me:8186: \"$ac_link\"") >&5
8187 (eval $ac_link) 2>&5
8189 echo "$as_me:8189: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try
='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:8192: \"$ac_try\"") >&5
8195 echo "$as_me:8195: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_m_sqrt
=yes
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.
$ac_ext >&5
8203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8204 LIBS
=$ac_check_lib_save_LIBS
8206 echo "$as_me:8206: result: $ac_cv_lib_m_sqrt" >&5
8207 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8208 if test $ac_cv_lib_m_sqrt = yes; then
8209 cat >>confdefs.h
<<EOF
8217 # Check for mail-locking functions in a "mail" library
8219 echo "$as_me:8219: checking for maillock in -lmail" >&5
8220 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8221 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 ac_check_lib_save_LIBS
=$LIBS
8226 cat >conftest.
$ac_ext <<_ACEOF
8227 #line 8227 "configure"
8228 #include "confdefs.h"
8230 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8245 rm -f conftest.
$ac_objext conftest
$ac_exeext
8246 if { (eval echo "$as_me:8246: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
8249 echo "$as_me:8249: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try
='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:8252: \"$ac_try\"") >&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_lib_mail_maillock
=yes
8259 echo "$as_me: failed program was:" >&5
8260 cat conftest.
$ac_ext >&5
8261 ac_cv_lib_mail_maillock
=no
8263 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8264 LIBS
=$ac_check_lib_save_LIBS
8266 echo "$as_me:8266: result: $ac_cv_lib_mail_maillock" >&5
8267 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8268 if test $ac_cv_lib_mail_maillock = yes; then
8269 cat >>confdefs.h
<<EOF
8270 #define HAVE_LIBMAIL 1
8277 echo "$as_me:8277: checking for maillock in -llockfile" >&5
8278 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8279 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 ac_check_lib_save_LIBS
=$LIBS
8283 LIBS
="-llockfile $LIBS"
8284 cat >conftest.
$ac_ext <<_ACEOF
8285 #line 8285 "configure"
8286 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8303 rm -f conftest.
$ac_objext conftest
$ac_exeext
8304 if { (eval echo "$as_me:8304: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try
='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:8310: \"$ac_try\"") >&5
8313 echo "$as_me:8313: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_lib_lockfile_maillock
=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.
$ac_ext >&5
8319 ac_cv_lib_lockfile_maillock
=no
8321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8322 LIBS
=$ac_check_lib_save_LIBS
8324 echo "$as_me:8324: result: $ac_cv_lib_lockfile_maillock" >&5
8325 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8326 if test $ac_cv_lib_lockfile_maillock = yes; then
8327 cat >>confdefs.h
<<EOF
8328 #define HAVE_LIBLOCKFILE 1
8331 LIBS
="-llockfile $LIBS"
8335 # If we have the shared liblockfile, assume we must use it for mail
8336 # locking (e.g. Debian). If we couldn't link against liblockfile
8337 # (no liblockfile.a installed), ensure that we don't need to.
8338 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8339 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8340 set dummy liblockfile.so
; ac_word
=$2
8341 echo "$as_me:8341: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_prog_liblockfile+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test -n "$liblockfile"; then
8347 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8349 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8350 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8351 for ac_dir
in $ac_dummy; do
8353 test -z "$ac_dir" && ac_dir
=.
8354 $as_executable_p "$ac_dir/$ac_word" ||
continue
8355 ac_cv_prog_liblockfile
="yes"
8356 echo "$as_me:8356: found $ac_dir/$ac_word" >&5
8360 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8363 liblockfile
=$ac_cv_prog_liblockfile
8364 if test -n "$liblockfile"; then
8365 echo "$as_me:8365: result: $liblockfile" >&5
8366 echo "${ECHO_T}$liblockfile" >&6
8368 echo "$as_me:8368: result: no" >&5
8369 echo "${ECHO_T}no" >&6
8372 if test $ac_cv_prog_liblockfile = yes; then
8373 { { echo "$as_me:8373: error: Shared liblockfile found but can't link against it.
8374 This probably means that movemail could lose mail.
8375 There may be a \`development' package to install containing liblockfile." >&5
8376 echo "$as_me: error: Shared liblockfile found but can't link against it.
8377 This probably means that movemail could lose mail.
8378 There may be a \`development' package to install containing liblockfile." >&2;}
8379 { (exit 1); exit 1; }; }
8381 cat >>confdefs.h
<<\EOF
8382 #define LIBMAIL -llockfile
8389 for ac_func
in touchlock
8391 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8392 echo "$as_me:8392: checking for $ac_func" >&5
8393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_var+set}\" = set"; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.
$ac_ext <<_ACEOF
8398 #line 8398 "configure"
8399 #include "confdefs.h"
8400 /* System header to define __stub macros and hopefully few prototypes,
8401 which can conflict with char $ac_func (); below. */
8403 /* Override any gcc2 internal prototype to avoid an error. */
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8415 /* The GNU C library defines this for functions which it implements
8416 to always fail with ENOSYS. Some functions are actually named
8417 something starting with __ and the normal name is an alias. */
8418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8428 rm -f conftest.
$ac_objext conftest
$ac_exeext
8429 if { (eval echo "$as_me:8429: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>&5
8432 echo "$as_me:8432: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try
='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:8435: \"$ac_try\"") >&5
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 eval "$as_ac_var=yes"
8442 echo "$as_me: failed program was:" >&5
8443 cat conftest.
$ac_ext >&5
8444 eval "$as_ac_var=no"
8446 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8448 echo "$as_me:8448: result: `eval echo '${'$as_ac_var'}'`" >&5
8449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8450 if test `eval echo '${'$as_ac_var'}'` = yes; then
8451 cat >>confdefs.h
<<EOF
8452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8458 for ac_header
in maillock.h
8460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 echo "$as_me:8461: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 cat >conftest.
$ac_ext <<_ACEOF
8467 #line 8467 "configure"
8468 #include "confdefs.h"
8469 #include <$ac_header>
8471 if { (eval echo "$as_me:8471: \"$ac_cpp conftest.$ac_ext\"") >&5
8472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8474 egrep -v '^ *\+' conftest.er1
>conftest.err
8476 cat conftest.err
>&5
8477 echo "$as_me:8477: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev
/null
; then
8479 if test -s conftest.err
; then
8480 ac_cpp_err
=$ac_c_preproc_warn_flag
8487 if test -z "$ac_cpp_err"; then
8488 eval "$as_ac_Header=yes"
8490 echo "$as_me: failed program was:" >&5
8491 cat conftest.
$ac_ext >&5
8492 eval "$as_ac_Header=no"
8494 rm -f conftest.err conftest.
$ac_ext
8496 echo "$as_me:8496: result: `eval echo '${'$as_ac_Header'}'`" >&5
8497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8499 cat >>confdefs.h
<<EOF
8500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8506 for ac_func
in gethostname getdomainname dup2 \
8507 rename closedir mkdir
rmdir sysinfo \
8508 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8509 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8510 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8511 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8512 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8513 gai_strerror mkstemp getline getdelim
8515 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8516 echo "$as_me:8516: checking for $ac_func" >&5
8517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8518 if eval "test \"\${$as_ac_var+set}\" = set"; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 cat >conftest.
$ac_ext <<_ACEOF
8522 #line 8522 "configure"
8523 #include "confdefs.h"
8524 /* System header to define __stub macros and hopefully few prototypes,
8525 which can conflict with char $ac_func (); below. */
8527 /* Override any gcc2 internal prototype to avoid an error. */
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8539 /* The GNU C library defines this for functions which it implements
8540 to always fail with ENOSYS. Some functions are actually named
8541 something starting with __ and the normal name is an alias. */
8542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8552 rm -f conftest.
$ac_objext conftest
$ac_exeext
8553 if { (eval echo "$as_me:8553: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:8559: \"$ac_try\"") >&5
8562 echo "$as_me:8562: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 eval "$as_ac_var=yes"
8566 echo "$as_me: failed program was:" >&5
8567 cat conftest.
$ac_ext >&5
8568 eval "$as_ac_var=no"
8570 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8572 echo "$as_me:8572: result: `eval echo '${'$as_ac_var'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8574 if test `eval echo '${'$as_ac_var'}'` = yes; then
8575 cat >>confdefs.h
<<EOF
8576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8582 for ac_header
in sys
/un.h
8584 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8585 echo "$as_me:8585: checking for $ac_header" >&5
8586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.
$ac_ext <<_ACEOF
8591 #line 8591 "configure"
8592 #include "confdefs.h"
8593 #include <$ac_header>
8595 if { (eval echo "$as_me:8595: \"$ac_cpp conftest.$ac_ext\"") >&5
8596 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8598 egrep -v '^ *\+' conftest.er1
>conftest.err
8600 cat conftest.err
>&5
8601 echo "$as_me:8601: \$? = $ac_status" >&5
8602 (exit $ac_status); } >/dev
/null
; then
8603 if test -s conftest.err
; then
8604 ac_cpp_err
=$ac_c_preproc_warn_flag
8611 if test -z "$ac_cpp_err"; then
8612 eval "$as_ac_Header=yes"
8614 echo "$as_me: failed program was:" >&5
8615 cat conftest.
$ac_ext >&5
8616 eval "$as_ac_Header=no"
8618 rm -f conftest.err conftest.
$ac_ext
8620 echo "$as_me:8620: result: `eval echo '${'$as_ac_Header'}'`" >&5
8621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 cat >>confdefs.h
<<EOF
8624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8630 for ac_header
in sys
/time.h unistd.h
8632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 echo "$as_me:8633: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 cat >conftest.
$ac_ext <<_ACEOF
8639 #line 8639 "configure"
8640 #include "confdefs.h"
8641 #include <$ac_header>
8643 if { (eval echo "$as_me:8643: \"$ac_cpp conftest.$ac_ext\"") >&5
8644 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8646 egrep -v '^ *\+' conftest.er1
>conftest.err
8648 cat conftest.err
>&5
8649 echo "$as_me:8649: \$? = $ac_status" >&5
8650 (exit $ac_status); } >/dev
/null
; then
8651 if test -s conftest.err
; then
8652 ac_cpp_err
=$ac_c_preproc_warn_flag
8659 if test -z "$ac_cpp_err"; then
8660 eval "$as_ac_Header=yes"
8662 echo "$as_me: failed program was:" >&5
8663 cat conftest.
$ac_ext >&5
8664 eval "$as_ac_Header=no"
8666 rm -f conftest.err conftest.
$ac_ext
8668 echo "$as_me:8668: result: `eval echo '${'$as_ac_Header'}'`" >&5
8669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8671 cat >>confdefs.h
<<EOF
8672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 for ac_func
in alarm
8680 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8681 echo "$as_me:8681: checking for $ac_func" >&5
8682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_var+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 cat >conftest.
$ac_ext <<_ACEOF
8687 #line 8687 "configure"
8688 #include "confdefs.h"
8689 /* System header to define __stub macros and hopefully few prototypes,
8690 which can conflict with char $ac_func (); below. */
8692 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8704 /* The GNU C library defines this for functions which it implements
8705 to always fail with ENOSYS. Some functions are actually named
8706 something starting with __ and the normal name is an alias. */
8707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8717 rm -f conftest.
$ac_objext conftest
$ac_exeext
8718 if { (eval echo "$as_me:8718: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8721 echo "$as_me:8721: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try
='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:8724: \"$ac_try\"") >&5
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8731 echo "$as_me: failed program was:" >&5
8732 cat conftest.
$ac_ext >&5
8733 eval "$as_ac_var=no"
8735 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8737 echo "$as_me:8737: result: `eval echo '${'$as_ac_var'}'`" >&5
8738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8739 if test `eval echo '${'$as_ac_var'}'` = yes; then
8740 cat >>confdefs.h
<<EOF
8741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8747 echo "$as_me:8747: checking for working mktime" >&5
8748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8749 if test "${ac_cv_func_working_mktime+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 if test "$cross_compiling" = yes; then
8753 ac_cv_func_working_mktime
=no
8755 cat >conftest.
$ac_ext <<_ACEOF
8756 #line 8756 "configure"
8757 #include "confdefs.h"
8758 /* Test program from Paul Eggert and Tony Leneis. */
8759 #if TIME_WITH_SYS_TIME
8760 # include <sys/time.h>
8763 # if HAVE_SYS_TIME_H
8764 # include <sys/time.h>
8771 # include <unistd.h>
8775 # define alarm(X) /* empty */
8778 /* Work around redefinition to rpl_putenv by other config tests. */
8781 static time_t time_t_max;
8783 /* Values we'll use to set the TZ environment variable. */
8784 static const char *const tz_strings[] = {
8785 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8786 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8788 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8790 /* Fail if mktime fails to convert a date in the spring-forward gap.
8791 Based on a problem report from Andreas Jaeger. */
8793 spring_forward_gap ()
8795 /* glibc (up to about 1998-10-07) failed this test. */
8798 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8799 instead of "TZ=America/Vancouver" in order to detect the bug even
8800 on systems that don't support the Olson extension, or don't have the
8801 full zoneinfo tables installed. */
8802 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8811 if (mktime (&tm) == (time_t)-1)
8820 if ((lt = localtime (&now)) && mktime (lt) != now)
8822 now = time_t_max - now;
8823 if ((lt = localtime (&now)) && mktime (lt) != now)
8830 /* Based on code from Ariel Faigon. */
8840 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8850 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8852 if (now != (time_t) -1)
8854 struct tm *lt = localtime (&now);
8856 && lt->tm_year == tm.tm_year
8857 && lt->tm_mon == tm.tm_mon
8858 && lt->tm_mday == tm.tm_mday
8859 && lt->tm_hour == tm.tm_hour
8860 && lt->tm_min == tm.tm_min
8861 && lt->tm_sec == tm.tm_sec
8862 && lt->tm_yday == tm.tm_yday
8863 && lt->tm_wday == tm.tm_wday
8864 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8865 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8876 /* This test makes some buggy mktime implementations loop.
8877 Give up after 60 seconds; a mktime slower than that
8878 isn't worth using anyway. */
8881 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8884 delta = time_t_max / 997; /* a suitable prime number */
8885 for (i = 0; i < N_STRINGS; i++)
8888 putenv (tz_strings[i]);
8890 for (t = 0; t <= time_t_max - delta; t += delta)
8892 mktime_test ((time_t) 60 * 60);
8893 mktime_test ((time_t) 60 * 60 * 24);
8895 for (j = 1; 0 < j; j *= 2)
8897 bigtime_test (j - 1);
8900 spring_forward_gap ();
8904 rm -f conftest
$ac_exeext
8905 if { (eval echo "$as_me:8905: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8908 echo "$as_me:8908: \$? = $ac_status" >&5
8909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8910 { (eval echo "$as_me:8910: \"$ac_try\"") >&5
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_func_working_mktime
=yes
8917 echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.
$ac_ext >&5
8920 ac_cv_func_working_mktime
=no
8922 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8925 echo "$as_me:8925: result: $ac_cv_func_working_mktime" >&5
8926 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8927 if test $ac_cv_func_working_mktime = no
; then
8928 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8931 if test "$ac_cv_func_working_mktime" = no
; then
8933 cat >>confdefs.h
<<\EOF
8934 #define BROKEN_MKTIME 1
8939 ac_have_func
=no
# yes means we've found a way to get the load average.
8943 # Check for getloadavg, but be sure not to touch the cache variable.
8944 (echo "$as_me:8944: checking for getloadavg" >&5
8945 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8946 if test "${ac_cv_func_getloadavg+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.
$ac_ext <<_ACEOF
8950 #line 8950 "configure"
8951 #include "confdefs.h"
8952 /* System header to define __stub macros and hopefully few prototypes,
8953 which can conflict with char getloadavg (); below. */
8955 /* Override any gcc2 internal prototype to avoid an error. */
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8967 /* The GNU C library defines this for functions which it implements
8968 to always fail with ENOSYS. Some functions are actually named
8969 something starting with __ and the normal name is an alias. */
8970 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8980 rm -f conftest.
$ac_objext conftest
$ac_exeext
8981 if { (eval echo "$as_me:8981: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8984 echo "$as_me:8984: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try
='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:8987: \"$ac_try\"") >&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_func_getloadavg
=yes
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.
$ac_ext >&5
8996 ac_cv_func_getloadavg
=no
8998 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9000 echo "$as_me:9000: result: $ac_cv_func_getloadavg" >&5
9001 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9002 if test $ac_cv_func_getloadavg = yes; then
9007 ) && ac_have_func
=yes
9009 # On HPUX9, an unprivileged user can get load averages through this function.
9011 for ac_func
in pstat_getdynamic
9013 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9014 echo "$as_me:9014: checking for $ac_func" >&5
9015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_var+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 cat >conftest.
$ac_ext <<_ACEOF
9020 #line 9020 "configure"
9021 #include "confdefs.h"
9022 /* System header to define __stub macros and hopefully few prototypes,
9023 which can conflict with char $ac_func (); below. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9037 /* The GNU C library defines this for functions which it implements
9038 to always fail with ENOSYS. Some functions are actually named
9039 something starting with __ and the normal name is an alias. */
9040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9050 rm -f conftest.
$ac_objext conftest
$ac_exeext
9051 if { (eval echo "$as_me:9051: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try
='test -s conftest$ac_exeext'
9057 { (eval echo "$as_me:9057: \"$ac_try\"") >&5
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 eval "$as_ac_var=yes"
9064 echo "$as_me: failed program was:" >&5
9065 cat conftest.
$ac_ext >&5
9066 eval "$as_ac_var=no"
9068 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9070 echo "$as_me:9070: result: `eval echo '${'$as_ac_var'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9072 if test `eval echo '${'$as_ac_var'}'` = yes; then
9073 cat >>confdefs.h
<<EOF
9074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9080 # Solaris has libkstat which does not require root.
9082 echo "$as_me:9082: checking for kstat_open in -lkstat" >&5
9083 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9084 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_check_lib_save_LIBS
=$LIBS
9088 LIBS
="-lkstat $LIBS"
9089 cat >conftest.
$ac_ext <<_ACEOF
9090 #line 9090 "configure"
9091 #include "confdefs.h"
9093 /* Override any gcc2 internal prototype to avoid an error. */
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9108 rm -f conftest.
$ac_objext conftest
$ac_exeext
9109 if { (eval echo "$as_me:9109: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>&5
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try
='test -s conftest$ac_exeext'
9115 { (eval echo "$as_me:9115: \"$ac_try\"") >&5
9118 echo "$as_me:9118: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_lib_kstat_kstat_open
=yes
9122 echo "$as_me: failed program was:" >&5
9123 cat conftest.
$ac_ext >&5
9124 ac_cv_lib_kstat_kstat_open
=no
9126 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9127 LIBS
=$ac_check_lib_save_LIBS
9129 echo "$as_me:9129: result: $ac_cv_lib_kstat_kstat_open" >&5
9130 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9131 if test $ac_cv_lib_kstat_kstat_open = yes; then
9132 cat >>confdefs.h
<<EOF
9133 #define HAVE_LIBKSTAT 1
9136 LIBS
="-lkstat $LIBS"
9140 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
9142 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9143 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9144 # to get the right answer into the cache.
9145 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9146 if test $ac_have_func = no
; then
9147 echo "$as_me:9147: checking for elf_begin in -lelf" >&5
9148 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9149 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 ac_check_lib_save_LIBS
=$LIBS
9154 cat >conftest.
$ac_ext <<_ACEOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9158 /* Override any gcc2 internal prototype to avoid an error. */
9162 /* We use char because int might match the return type of a gcc2
9163 builtin and then its argument prototype would still apply. */
9173 rm -f conftest.
$ac_objext conftest
$ac_exeext
9174 if { (eval echo "$as_me:9174: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try
='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_elf_elf_begin
=yes
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.
$ac_ext >&5
9189 ac_cv_lib_elf_elf_begin
=no
9191 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9192 LIBS
=$ac_check_lib_save_LIBS
9194 echo "$as_me:9194: result: $ac_cv_lib_elf_elf_begin" >&5
9195 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9196 if test $ac_cv_lib_elf_elf_begin = yes; then
9201 if test $ac_have_func = no
; then
9202 echo "$as_me:9202: checking for kvm_open in -lkvm" >&5
9203 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9204 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 ac_check_lib_save_LIBS
=$LIBS
9209 cat >conftest.
$ac_ext <<_ACEOF
9210 #line 9210 "configure"
9211 #include "confdefs.h"
9213 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9228 rm -f conftest.
$ac_objext conftest
$ac_exeext
9229 if { (eval echo "$as_me:9229: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9232 echo "$as_me:9232: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try
='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:9235: \"$ac_try\"") >&5
9238 echo "$as_me:9238: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_lib_kvm_kvm_open
=yes
9242 echo "$as_me: failed program was:" >&5
9243 cat conftest.
$ac_ext >&5
9244 ac_cv_lib_kvm_kvm_open
=no
9246 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9247 LIBS
=$ac_check_lib_save_LIBS
9249 echo "$as_me:9249: result: $ac_cv_lib_kvm_kvm_open" >&5
9250 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9251 if test $ac_cv_lib_kvm_kvm_open = yes; then
9255 # Check for the 4.4BSD definition of getloadavg.
9256 echo "$as_me:9256: checking for getloadavg in -lutil" >&5
9257 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9258 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 ac_check_lib_save_LIBS
=$LIBS
9263 cat >conftest.
$ac_ext <<_ACEOF
9264 #line 9264 "configure"
9265 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */
9271 /* We use char because int might match the return type of a gcc2
9272 builtin and then its argument prototype would still apply. */
9282 rm -f conftest.
$ac_objext conftest
$ac_exeext
9283 if { (eval echo "$as_me:9283: \"$ac_link\"") >&5
9284 (eval $ac_link) 2>&5
9286 echo "$as_me:9286: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try
='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:9289: \"$ac_try\"") >&5
9292 echo "$as_me:9292: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_lib_util_getloadavg
=yes
9296 echo "$as_me: failed program was:" >&5
9297 cat conftest.
$ac_ext >&5
9298 ac_cv_lib_util_getloadavg
=no
9300 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9301 LIBS
=$ac_check_lib_save_LIBS
9303 echo "$as_me:9303: result: $ac_cv_lib_util_getloadavg" >&5
9304 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9305 if test $ac_cv_lib_util_getloadavg = yes; then
9306 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9311 if test $ac_have_func = no
; then
9312 # There is a commonly available library for RS/6000 AIX.
9313 # Since it is not a standard part of AIX, it might be installed locally.
9314 ac_getloadavg_LIBS
=$LIBS
9315 LIBS
="-L/usr/local/lib $LIBS"
9316 echo "$as_me:9316: checking for getloadavg in -lgetloadavg" >&5
9317 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9318 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 ac_check_lib_save_LIBS
=$LIBS
9322 LIBS
="-lgetloadavg $LIBS"
9323 cat >conftest.
$ac_ext <<_ACEOF
9324 #line 9324 "configure"
9325 #include "confdefs.h"
9327 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9342 rm -f conftest.
$ac_objext conftest
$ac_exeext
9343 if { (eval echo "$as_me:9343: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>&5
9346 echo "$as_me:9346: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try
='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_lib_getloadavg_getloadavg
=yes
9356 echo "$as_me: failed program was:" >&5
9357 cat conftest.
$ac_ext >&5
9358 ac_cv_lib_getloadavg_getloadavg
=no
9360 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9361 LIBS
=$ac_check_lib_save_LIBS
9363 echo "$as_me:9363: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9364 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9365 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9366 LIBS
="-lgetloadavg $LIBS"
9368 LIBS
=$ac_getloadavg_LIBS
9373 # Make sure it is really in the library, if we think we found it,
9374 # otherwise set up the replacement function.
9376 for ac_func
in getloadavg
9378 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9379 echo "$as_me:9379: checking for $ac_func" >&5
9380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9381 if eval "test \"\${$as_ac_var+set}\" = set"; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 cat >conftest.
$ac_ext <<_ACEOF
9385 #line 9385 "configure"
9386 #include "confdefs.h"
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char $ac_func (); below. */
9390 /* Override any gcc2 internal prototype to avoid an error. */
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9402 /* The GNU C library defines this for functions which it implements
9403 to always fail with ENOSYS. Some functions are actually named
9404 something starting with __ and the normal name is an alias. */
9405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9415 rm -f conftest.
$ac_objext conftest
$ac_exeext
9416 if { (eval echo "$as_me:9416: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try
='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:9422: \"$ac_try\"") >&5
9425 echo "$as_me:9425: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 eval "$as_ac_var=yes"
9429 echo "$as_me: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9431 eval "$as_ac_var=no"
9433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9435 echo "$as_me:9435: result: `eval echo '${'$as_ac_var'}'`" >&5
9436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9437 if test `eval echo '${'$as_ac_var'}'` = yes; then
9438 cat >>confdefs.h
<<EOF
9439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9443 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9445 cat >>confdefs.h
<<\EOF
9446 #define C_GETLOADAVG 1
9449 # Figure out what our getloadavg.c needs.
9451 echo "$as_me:9451: checking for sys/dg_sys_info.h" >&5
9452 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9453 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 cat >conftest.
$ac_ext <<_ACEOF
9457 #line 9457 "configure"
9458 #include "confdefs.h"
9459 #include <sys/dg_sys_info.h>
9461 if { (eval echo "$as_me:9461: \"$ac_cpp conftest.$ac_ext\"") >&5
9462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9464 egrep -v '^ *\+' conftest.er1
>conftest.err
9466 cat conftest.err
>&5
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); } >/dev
/null
; then
9469 if test -s conftest.err
; then
9470 ac_cpp_err
=$ac_c_preproc_warn_flag
9477 if test -z "$ac_cpp_err"; then
9478 ac_cv_header_sys_dg_sys_info_h
=yes
9480 echo "$as_me: failed program was:" >&5
9481 cat conftest.
$ac_ext >&5
9482 ac_cv_header_sys_dg_sys_info_h
=no
9484 rm -f conftest.err conftest.
$ac_ext
9486 echo "$as_me:9486: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9487 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9488 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9491 cat >>confdefs.h
<<\EOF
9495 echo "$as_me:9495: checking for dg_sys_info in -ldgc" >&5
9496 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9497 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_check_lib_save_LIBS
=$LIBS
9502 cat >conftest.
$ac_ext <<_ACEOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9506 /* Override any gcc2 internal prototype to avoid an error. */
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char dg_sys_info ();
9521 rm -f conftest.
$ac_objext conftest
$ac_exeext
9522 if { (eval echo "$as_me:9522: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9525 echo "$as_me:9525: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try
='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:9528: \"$ac_try\"") >&5
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_dgc_dg_sys_info
=yes
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.
$ac_ext >&5
9537 ac_cv_lib_dgc_dg_sys_info
=no
9539 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9540 LIBS
=$ac_check_lib_save_LIBS
9542 echo "$as_me:9542: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9543 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9544 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9545 cat >>confdefs.h
<<EOF
9546 #define HAVE_LIBDGC 1
9555 echo "$as_me:9555: checking for locale.h" >&5
9556 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9557 if test "${ac_cv_header_locale_h+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 cat >conftest.
$ac_ext <<_ACEOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9565 if { (eval echo "$as_me:9565: \"$ac_cpp conftest.$ac_ext\"") >&5
9566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9568 egrep -v '^ *\+' conftest.er1
>conftest.err
9570 cat conftest.err
>&5
9571 echo "$as_me:9571: \$? = $ac_status" >&5
9572 (exit $ac_status); } >/dev
/null
; then
9573 if test -s conftest.err
; then
9574 ac_cpp_err
=$ac_c_preproc_warn_flag
9581 if test -z "$ac_cpp_err"; then
9582 ac_cv_header_locale_h
=yes
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.
$ac_ext >&5
9586 ac_cv_header_locale_h
=no
9588 rm -f conftest.err conftest.
$ac_ext
9590 echo "$as_me:9590: result: $ac_cv_header_locale_h" >&5
9591 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9593 for ac_func
in setlocale
9595 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 echo "$as_me:9596: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9598 if eval "test \"\${$as_ac_var+set}\" = set"; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.
$ac_ext <<_ACEOF
9602 #line 9602 "configure"
9603 #include "confdefs.h"
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below. */
9607 /* Override any gcc2 internal prototype to avoid an error. */
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9632 rm -f conftest.
$ac_objext conftest
$ac_exeext
9633 if { (eval echo "$as_me:9633: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>&5
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try
='test -s conftest$ac_exeext'
9639 { (eval echo "$as_me:9639: \"$ac_try\"") >&5
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 eval "$as_ac_var=yes"
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.
$ac_ext >&5
9648 eval "$as_ac_var=no"
9650 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9652 echo "$as_me:9652: result: `eval echo '${'$as_ac_var'}'`" >&5
9653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9654 if test `eval echo '${'$as_ac_var'}'` = yes; then
9655 cat >>confdefs.h
<<EOF
9656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9662 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9663 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9664 # Irix 4.0.5F has the header but not the library.
9665 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9668 cat >>confdefs.h
<<\EOF
9674 if test $ac_have_func = no
; then
9675 echo "$as_me:9675: checking for inq_stats/cpustats.h" >&5
9676 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9677 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 cat >conftest.
$ac_ext <<_ACEOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9683 #include <inq_stats/cpustats.h>
9685 if { (eval echo "$as_me:9685: \"$ac_cpp conftest.$ac_ext\"") >&5
9686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9688 egrep -v '^ *\+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); } >/dev
/null
; then
9693 if test -s conftest.err
; then
9694 ac_cpp_err
=$ac_c_preproc_warn_flag
9701 if test -z "$ac_cpp_err"; then
9702 ac_cv_header_inq_stats_cpustats_h
=yes
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.
$ac_ext >&5
9706 ac_cv_header_inq_stats_cpustats_h
=no
9708 rm -f conftest.err conftest.
$ac_ext
9710 echo "$as_me:9710: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9711 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9712 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9715 cat >>confdefs.h
<<\EOF
9719 cat >>confdefs.h
<<\EOF
9727 if test $ac_have_func = no
; then
9728 echo "$as_me:9728: checking for sys/cpustats.h" >&5
9729 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9730 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 cat >conftest.
$ac_ext <<_ACEOF
9734 #line 9734 "configure"
9735 #include "confdefs.h"
9736 #include <sys/cpustats.h>
9738 if { (eval echo "$as_me:9738: \"$ac_cpp conftest.$ac_ext\"") >&5
9739 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9741 egrep -v '^ *\+' conftest.er1
>conftest.err
9743 cat conftest.err
>&5
9744 echo "$as_me:9744: \$? = $ac_status" >&5
9745 (exit $ac_status); } >/dev
/null
; then
9746 if test -s conftest.err
; then
9747 ac_cpp_err
=$ac_c_preproc_warn_flag
9754 if test -z "$ac_cpp_err"; then
9755 ac_cv_header_sys_cpustats_h
=yes
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.
$ac_ext >&5
9759 ac_cv_header_sys_cpustats_h
=no
9761 rm -f conftest.err conftest.
$ac_ext
9763 echo "$as_me:9763: result: $ac_cv_header_sys_cpustats_h" >&5
9764 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9765 if test $ac_cv_header_sys_cpustats_h = yes; then
9766 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9774 if test $ac_have_func = no
; then
9776 for ac_header
in mach
/mach.h
9778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 echo "$as_me:9779: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 cat >conftest.
$ac_ext <<_ACEOF
9785 #line 9785 "configure"
9786 #include "confdefs.h"
9787 #include <$ac_header>
9789 if { (eval echo "$as_me:9789: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9792 egrep -v '^ *\+' conftest.er1
>conftest.err
9794 cat conftest.err
>&5
9795 echo "$as_me:9795: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev
/null
; then
9797 if test -s conftest.err
; then
9798 ac_cpp_err
=$ac_c_preproc_warn_flag
9805 if test -z "$ac_cpp_err"; then
9806 eval "$as_ac_Header=yes"
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.
$ac_ext >&5
9810 eval "$as_ac_Header=no"
9812 rm -f conftest.err conftest.
$ac_ext
9814 echo "$as_me:9814: result: `eval echo '${'$as_ac_Header'}'`" >&5
9815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9817 cat >>confdefs.h
<<EOF
9818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 for ac_header
in nlist.h
9828 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829 echo "$as_me:9829: checking for $ac_header" >&5
9830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 cat >conftest.
$ac_ext <<_ACEOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9837 #include <$ac_header>
9839 if { (eval echo "$as_me:9839: \"$ac_cpp conftest.$ac_ext\"") >&5
9840 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9842 egrep -v '^ *\+' conftest.er1
>conftest.err
9844 cat conftest.err
>&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); } >/dev
/null
; then
9847 if test -s conftest.err
; then
9848 ac_cpp_err
=$ac_c_preproc_warn_flag
9855 if test -z "$ac_cpp_err"; then
9856 eval "$as_ac_Header=yes"
9858 echo "$as_me: failed program was:" >&5
9859 cat conftest.
$ac_ext >&5
9860 eval "$as_ac_Header=no"
9862 rm -f conftest.err conftest.
$ac_ext
9864 echo "$as_me:9864: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867 cat >>confdefs.h
<<EOF
9868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 echo "$as_me:9870: checking for struct nlist.n_un.n_name" >&5
9871 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9872 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 cat >conftest.
$ac_ext <<_ACEOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9883 static struct nlist ac_aggr;
9884 if (ac_aggr.n_un.n_name)
9890 rm -f conftest.
$ac_objext
9891 if { (eval echo "$as_me:9891: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try
='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:9897: \"$ac_try\"") >&5
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_member_struct_nlist_n_un_n_name
=yes
9904 echo "$as_me: failed program was:" >&5
9905 cat conftest.
$ac_ext >&5
9906 ac_cv_member_struct_nlist_n_un_n_name
=no
9908 rm -f conftest.
$ac_objext conftest.
$ac_ext
9910 echo "$as_me:9910: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9911 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9912 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9914 cat >>confdefs.h
<<EOF
9915 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9918 cat >>confdefs.h
<<\EOF
9919 #define NLIST_NAME_UNION 1
9930 # Some definitions of getloadavg require that the program be installed setgid.
9931 echo "$as_me:9931: checking whether getloadavg requires setgid" >&5
9932 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9933 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 cat >conftest.
$ac_ext <<_ACEOF
9937 #line 9937 "configure"
9938 #include "confdefs.h"
9939 #include "$srcdir/getloadavg.c"
9940 #ifdef LDAV_PRIVILEGED
9941 Yowza Am I SETGID yet
9944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9945 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9946 ac_cv_func_getloadavg_setgid
=yes
9948 ac_cv_func_getloadavg_setgid
=no
9953 echo "$as_me:9953: result: $ac_cv_func_getloadavg_setgid" >&5
9954 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9955 if test $ac_cv_func_getloadavg_setgid = yes; then
9958 cat >>confdefs.h
<<\EOF
9959 #define GETLOADAVG_PRIVILEGED 1
9966 if test $ac_cv_func_getloadavg_setgid = yes; then
9967 echo "$as_me:9967: checking group of /dev/kmem" >&5
9968 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9969 if test "${ac_cv_group_kmem+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9973 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9974 # If we got an error (system does not support symlinks), try without -L.
9975 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9976 ac_cv_group_kmem
=`echo $ac_ls_output \
9977 | sed -ne 's/[ ][ ]*/ /g;
9978 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9982 echo "$as_me:9982: result: $ac_cv_group_kmem" >&5
9983 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9984 KMEM_GROUP
=$ac_cv_group_kmem
9986 if test "x$ac_save_LIBS" = x
; then
9987 GETLOADAVG_LIBS
=$LIBS
9989 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9993 echo "$as_me:9993: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9994 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9995 if test "${ac_cv_sys_largefile_source+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_cv_sys_largefile_source
=no
10000 cat >conftest.
$ac_ext <<_ACEOF
10001 #line 10001 "configure"
10002 #include "confdefs.h"
10012 rm -f conftest.
$ac_objext
10013 if { (eval echo "$as_me:10013: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>&5
10016 echo "$as_me:10016: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try
='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:10019: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:10022: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10026 echo "$as_me: failed program was:" >&5
10027 cat conftest.
$ac_ext >&5
10029 rm -f conftest.
$ac_objext conftest.
$ac_ext
10030 cat >conftest.
$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10033 #define _LARGEFILE_SOURCE 1
10043 rm -f conftest.
$ac_objext
10044 if { (eval echo "$as_me:10044: \"$ac_compile\"") >&5
10045 (eval $ac_compile) 2>&5
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try
='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_sys_largefile_source
=1; break
10057 echo "$as_me: failed program was:" >&5
10058 cat conftest.
$ac_ext >&5
10060 rm -f conftest.
$ac_objext conftest.
$ac_ext
10064 echo "$as_me:10064: result: $ac_cv_sys_largefile_source" >&5
10065 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10066 if test "$ac_cv_sys_largefile_source" != no
; then
10068 cat >>confdefs.h
<<EOF
10069 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10075 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10076 # in glibc 2.1.3, but that breaks too many other things.
10077 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10078 echo "$as_me:10078: checking for fseeko" >&5
10079 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10080 if test "${ac_cv_func_fseeko+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 cat >conftest.
$ac_ext <<_ACEOF
10084 #line 10084 "configure"
10085 #include "confdefs.h"
10090 return fseeko && fseeko (stdin, 0, 0);
10095 rm -f conftest.
$ac_objext conftest
$ac_exeext
10096 if { (eval echo "$as_me:10096: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10099 echo "$as_me:10099: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try
='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:10102: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:10105: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_cv_func_fseeko
=yes
10109 echo "$as_me: failed program was:" >&5
10110 cat conftest.
$ac_ext >&5
10111 ac_cv_func_fseeko
=no
10113 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10115 echo "$as_me:10115: result: $ac_cv_func_fseeko" >&5
10116 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10117 if test $ac_cv_func_fseeko = yes; then
10119 cat >>confdefs.h
<<\EOF
10120 #define HAVE_FSEEKO 1
10127 for ac_func
in grantpt
10129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10130 echo "$as_me:10130: checking for $ac_func" >&5
10131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10132 if eval "test \"\${$as_ac_var+set}\" = set"; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.
$ac_ext <<_ACEOF
10136 #line 10136 "configure"
10137 #include "confdefs.h"
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char $ac_func (); below. */
10140 #include <assert.h>
10141 /* Override any gcc2 internal prototype to avoid an error. */
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10166 rm -f conftest.
$ac_objext conftest
$ac_exeext
10167 if { (eval echo "$as_me:10167: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:10170: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try
='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:10173: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:10176: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 eval "$as_ac_var=yes"
10180 echo "$as_me: failed program was:" >&5
10181 cat conftest.
$ac_ext >&5
10182 eval "$as_ac_var=no"
10184 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10186 echo "$as_me:10186: result: `eval echo '${'$as_ac_var'}'`" >&5
10187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10188 if test `eval echo '${'$as_ac_var'}'` = yes; then
10189 cat >>confdefs.h
<<EOF
10190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10196 # PTY-related GNU extensions.
10198 for ac_func
in getpt
10200 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10201 echo "$as_me:10201: checking for $ac_func" >&5
10202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10203 if eval "test \"\${$as_ac_var+set}\" = set"; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 cat >conftest.
$ac_ext <<_ACEOF
10207 #line 10207 "configure"
10208 #include "confdefs.h"
10209 /* System header to define __stub macros and hopefully few prototypes,
10210 which can conflict with char $ac_func (); below. */
10211 #include <assert.h>
10212 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10224 /* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10237 rm -f conftest.
$ac_objext conftest
$ac_exeext
10238 if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try
='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 eval "$as_ac_var=yes"
10251 echo "$as_me: failed program was:" >&5
10252 cat conftest.
$ac_ext >&5
10253 eval "$as_ac_var=no"
10255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10257 echo "$as_me:10257: result: `eval echo '${'$as_ac_var'}'`" >&5
10258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10259 if test `eval echo '${'$as_ac_var'}'` = yes; then
10260 cat >>confdefs.h
<<EOF
10261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10267 # Check this now, so that we will NOT find the above functions in ncurses.
10268 # That is because we have not set up to link ncurses in lib-src.
10269 # It's better to believe a function is not available
10270 # than to expect to find it in ncurses.
10272 echo "$as_me:10272: checking for tparm in -lncurses" >&5
10273 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10274 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 ac_check_lib_save_LIBS
=$LIBS
10278 LIBS
="-lncurses $LIBS"
10279 cat >conftest.
$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10283 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10298 rm -f conftest.
$ac_objext conftest
$ac_exeext
10299 if { (eval echo "$as_me:10299: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try
='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_lib_ncurses_tparm
=yes
10312 echo "$as_me: failed program was:" >&5
10313 cat conftest.
$ac_ext >&5
10314 ac_cv_lib_ncurses_tparm
=no
10316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10317 LIBS
=$ac_check_lib_save_LIBS
10319 echo "$as_me:10319: result: $ac_cv_lib_ncurses_tparm" >&5
10320 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10321 if test $ac_cv_lib_ncurses_tparm = yes; then
10322 cat >>confdefs.h
<<EOF
10323 #define HAVE_LIBNCURSES 1
10326 LIBS
="-lncurses $LIBS"
10330 # Do we need the Hesiod library to provide the support routines?
10331 if test "$with_hesiod" = yes ; then
10332 # Don't set $LIBS here -- see comments above.
10334 echo "$as_me:10334: checking for res_send" >&5
10335 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10336 if test "${ac_cv_func_res_send+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.
$ac_ext <<_ACEOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342 /* System header to define __stub macros and hopefully few prototypes,
10343 which can conflict with char res_send (); below. */
10344 #include <assert.h>
10345 /* Override any gcc2 internal prototype to avoid an error. */
10349 /* We use char because int might match the return type of a gcc2
10350 builtin and then its argument prototype would still apply. */
10357 /* The GNU C library defines this for functions which it implements
10358 to always fail with ENOSYS. Some functions are actually named
10359 something starting with __ and the normal name is an alias. */
10360 #if defined (__stub_res_send) || defined (__stub___res_send)
10370 rm -f conftest.
$ac_objext conftest
$ac_exeext
10371 if { (eval echo "$as_me:10371: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10374 echo "$as_me:10374: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try
='test -s conftest$ac_exeext'
10377 { (eval echo "$as_me:10377: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10380 echo "$as_me:10380: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_cv_func_res_send
=yes
10384 echo "$as_me: failed program was:" >&5
10385 cat conftest.
$ac_ext >&5
10386 ac_cv_func_res_send
=no
10388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10390 echo "$as_me:10390: result: $ac_cv_func_res_send" >&5
10391 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10392 if test $ac_cv_func_res_send = yes; then
10395 echo "$as_me:10395: checking for __res_send" >&5
10396 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10397 if test "${ac_cv_func___res_send+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 cat >conftest.
$ac_ext <<_ACEOF
10401 #line 10401 "configure"
10402 #include "confdefs.h"
10403 /* System header to define __stub macros and hopefully few prototypes,
10404 which can conflict with char __res_send (); below. */
10405 #include <assert.h>
10406 /* Override any gcc2 internal prototype to avoid an error. */
10410 /* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
10412 char __res_send ();
10418 /* The GNU C library defines this for functions which it implements
10419 to always fail with ENOSYS. Some functions are actually named
10420 something starting with __ and the normal name is an alias. */
10421 #if defined (__stub___res_send) || defined (__stub_____res_send)
10431 rm -f conftest.
$ac_objext conftest
$ac_exeext
10432 if { (eval echo "$as_me:10432: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10435 echo "$as_me:10435: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try
='test -s conftest$ac_exeext'
10438 { (eval echo "$as_me:10438: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_func___res_send
=yes
10445 echo "$as_me: failed program was:" >&5
10446 cat conftest.
$ac_ext >&5
10447 ac_cv_func___res_send
=no
10449 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10451 echo "$as_me:10451: result: $ac_cv_func___res_send" >&5
10452 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10453 if test $ac_cv_func___res_send = yes; then
10456 echo "$as_me:10456: checking for res_send in -lresolv" >&5
10457 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10458 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 ac_check_lib_save_LIBS
=$LIBS
10462 LIBS
="-lresolv $LIBS"
10463 cat >conftest.
$ac_ext <<_ACEOF
10464 #line 10464 "configure"
10465 #include "confdefs.h"
10467 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10482 rm -f conftest.
$ac_objext conftest
$ac_exeext
10483 if { (eval echo "$as_me:10483: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>&5
10486 echo "$as_me:10486: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try
='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:10489: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:10492: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_lib_resolv_res_send
=yes
10496 echo "$as_me: failed program was:" >&5
10497 cat conftest.
$ac_ext >&5
10498 ac_cv_lib_resolv_res_send
=no
10500 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10501 LIBS
=$ac_check_lib_save_LIBS
10503 echo "$as_me:10503: result: $ac_cv_lib_resolv_res_send" >&5
10504 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10505 if test $ac_cv_lib_resolv_res_send = yes; then
10508 echo "$as_me:10508: checking for __res_send in -lresolv" >&5
10509 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10510 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 ac_check_lib_save_LIBS
=$LIBS
10514 LIBS
="-lresolv $LIBS"
10515 cat >conftest.
$ac_ext <<_ACEOF
10516 #line 10516 "configure"
10517 #include "confdefs.h"
10519 /* Override any gcc2 internal prototype to avoid an error. */
10523 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */
10525 char __res_send ();
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (eval echo "$as_me:10535: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10538 echo "$as_me:10538: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try
='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:10541: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:10544: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_lib_resolv___res_send
=yes
10548 echo "$as_me: failed program was:" >&5
10549 cat conftest.
$ac_ext >&5
10550 ac_cv_lib_resolv___res_send
=no
10552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10553 LIBS
=$ac_check_lib_save_LIBS
10555 echo "$as_me:10555: result: $ac_cv_lib_resolv___res_send" >&5
10556 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10557 if test $ac_cv_lib_resolv___res_send = yes; then
10567 if test "$resolv" = yes ; then
10570 cat >>confdefs.h
<<\EOF
10571 #define HAVE_LIBRESOLV 1
10577 echo "$as_me:10577: checking for hes_getmailhost" >&5
10578 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10579 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10582 cat >conftest.
$ac_ext <<_ACEOF
10583 #line 10583 "configure"
10584 #include "confdefs.h"
10585 /* System header to define __stub macros and hopefully few prototypes,
10586 which can conflict with char hes_getmailhost (); below. */
10587 #include <assert.h>
10588 /* Override any gcc2 internal prototype to avoid an error. */
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char hes_getmailhost ();
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10606 f = hes_getmailhost;
10613 rm -f conftest.
$ac_objext conftest
$ac_exeext
10614 if { (eval echo "$as_me:10614: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>&5
10617 echo "$as_me:10617: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try
='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:10620: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10623 echo "$as_me:10623: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 ac_cv_func_hes_getmailhost
=yes
10627 echo "$as_me: failed program was:" >&5
10628 cat conftest.
$ac_ext >&5
10629 ac_cv_func_hes_getmailhost
=no
10631 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10633 echo "$as_me:10633: result: $ac_cv_func_hes_getmailhost" >&5
10634 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10635 if test $ac_cv_func_hes_getmailhost = yes; then
10638 echo "$as_me:10638: checking for hes_getmailhost in -lhesiod" >&5
10639 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10640 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 ac_check_lib_save_LIBS
=$LIBS
10644 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10645 cat >conftest.
$ac_ext <<_ACEOF
10646 #line 10646 "configure"
10647 #include "confdefs.h"
10649 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char hes_getmailhost ();
10659 hes_getmailhost ();
10664 rm -f conftest.
$ac_objext conftest
$ac_exeext
10665 if { (eval echo "$as_me:10665: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try
='test -s conftest$ac_exeext'
10671 { (eval echo "$as_me:10671: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:10674: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_lib_hesiod_hes_getmailhost
=yes
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.
$ac_ext >&5
10680 ac_cv_lib_hesiod_hes_getmailhost
=no
10682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10683 LIBS
=$ac_check_lib_save_LIBS
10685 echo "$as_me:10685: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10686 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10687 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10689 cat >>confdefs.h
<<\EOF
10690 #define HAVE_LIBHESIOD 1
10701 # These tell us which Kerberos-related libraries to use.
10702 if test "${with_kerberos+set}" = set; then
10704 echo "$as_me:10704: checking for com_err in -lcom_err" >&5
10705 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10706 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 ac_check_lib_save_LIBS
=$LIBS
10710 LIBS
="-lcom_err $LIBS"
10711 cat >conftest.
$ac_ext <<_ACEOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10715 /* Override any gcc2 internal prototype to avoid an error. */
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10730 rm -f conftest.
$ac_objext conftest
$ac_exeext
10731 if { (eval echo "$as_me:10731: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>&5
10734 echo "$as_me:10734: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try
='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:10737: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:10740: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_lib_com_err_com_err
=yes
10744 echo "$as_me: failed program was:" >&5
10745 cat conftest.
$ac_ext >&5
10746 ac_cv_lib_com_err_com_err
=no
10748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10749 LIBS
=$ac_check_lib_save_LIBS
10751 echo "$as_me:10751: result: $ac_cv_lib_com_err_com_err" >&5
10752 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10753 if test $ac_cv_lib_com_err_com_err = yes; then
10754 cat >>confdefs.h
<<EOF
10755 #define HAVE_LIBCOM_ERR 1
10758 LIBS
="-lcom_err $LIBS"
10762 echo "$as_me:10762: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10763 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10764 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 ac_check_lib_save_LIBS
=$LIBS
10768 LIBS
="-lk5crypto $LIBS"
10769 cat >conftest.
$ac_ext <<_ACEOF
10770 #line 10770 "configure"
10771 #include "confdefs.h"
10773 /* Override any gcc2 internal prototype to avoid an error. */
10777 /* We use char because int might match the return type of a gcc2
10778 builtin and then its argument prototype would still apply. */
10779 char mit_des_cbc_encrypt ();
10783 mit_des_cbc_encrypt ();
10788 rm -f conftest.
$ac_objext conftest
$ac_exeext
10789 if { (eval echo "$as_me:10789: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10792 echo "$as_me:10792: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try
='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:10795: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:10798: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.
$ac_ext >&5
10804 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10806 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10807 LIBS
=$ac_check_lib_save_LIBS
10809 echo "$as_me:10809: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10810 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10811 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10812 cat >>confdefs.h
<<EOF
10813 #define HAVE_LIBK5CRYPTO 1
10816 LIBS
="-lk5crypto $LIBS"
10820 echo "$as_me:10820: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10821 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 ac_check_lib_save_LIBS
=$LIBS
10826 LIBS
="-lcrypto $LIBS"
10827 cat >conftest.
$ac_ext <<_ACEOF
10828 #line 10828 "configure"
10829 #include "confdefs.h"
10831 /* Override any gcc2 internal prototype to avoid an error. */
10835 /* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837 char mit_des_cbc_encrypt ();
10841 mit_des_cbc_encrypt ();
10846 rm -f conftest.
$ac_objext conftest
$ac_exeext
10847 if { (eval echo "$as_me:10847: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try
='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:10853: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10860 echo "$as_me: failed program was:" >&5
10861 cat conftest.
$ac_ext >&5
10862 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10864 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10865 LIBS
=$ac_check_lib_save_LIBS
10867 echo "$as_me:10867: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10868 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10869 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10870 cat >>confdefs.h
<<EOF
10871 #define HAVE_LIBCRYPTO 1
10874 LIBS
="-lcrypto $LIBS"
10878 echo "$as_me:10878: checking for krb5_init_context in -lkrb5" >&5
10879 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10880 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 ac_check_lib_save_LIBS
=$LIBS
10884 LIBS
="-lkrb5 $LIBS"
10885 cat >conftest.
$ac_ext <<_ACEOF
10886 #line 10886 "configure"
10887 #include "confdefs.h"
10889 /* Override any gcc2 internal prototype to avoid an error. */
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10895 char krb5_init_context ();
10899 krb5_init_context ();
10904 rm -f conftest.
$ac_objext conftest
$ac_exeext
10905 if { (eval echo "$as_me:10905: \"$ac_link\"") >&5
10906 (eval $ac_link) 2>&5
10908 echo "$as_me:10908: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try
='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:10911: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_krb5_krb5_init_context
=yes
10918 echo "$as_me: failed program was:" >&5
10919 cat conftest.
$ac_ext >&5
10920 ac_cv_lib_krb5_krb5_init_context
=no
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10923 LIBS
=$ac_check_lib_save_LIBS
10925 echo "$as_me:10925: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10926 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10927 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10928 cat >>confdefs.h
<<EOF
10929 #define HAVE_LIBKRB5 1
10932 LIBS
="-lkrb5 $LIBS"
10936 if test "${with_kerberos5+set}" != set; then
10938 echo "$as_me:10938: checking for des_cbc_encrypt in -ldes425" >&5
10939 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10940 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_check_lib_save_LIBS
=$LIBS
10944 LIBS
="-ldes425 $LIBS"
10945 cat >conftest.
$ac_ext <<_ACEOF
10946 #line 10946 "configure"
10947 #include "confdefs.h"
10949 /* Override any gcc2 internal prototype to avoid an error. */
10953 /* We use char because int might match the return type of a gcc2
10954 builtin and then its argument prototype would still apply. */
10955 char des_cbc_encrypt ();
10959 des_cbc_encrypt ();
10964 rm -f conftest.
$ac_objext conftest
$ac_exeext
10965 if { (eval echo "$as_me:10965: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10968 echo "$as_me:10968: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try
='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:10971: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:10974: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_des425_des_cbc_encrypt
=yes
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.
$ac_ext >&5
10980 ac_cv_lib_des425_des_cbc_encrypt
=no
10982 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10983 LIBS
=$ac_check_lib_save_LIBS
10985 echo "$as_me:10985: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10986 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10987 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10988 cat >>confdefs.h
<<EOF
10989 #define HAVE_LIBDES425 1
10992 LIBS
="-ldes425 $LIBS"
10996 echo "$as_me:10996: checking for des_cbc_encrypt in -ldes" >&5
10997 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10998 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_check_lib_save_LIBS
=$LIBS
11003 cat >conftest.
$ac_ext <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11007 /* Override any gcc2 internal prototype to avoid an error. */
11011 /* We use char because int might match the return type of a gcc2
11012 builtin and then its argument prototype would still apply. */
11013 char des_cbc_encrypt ();
11017 des_cbc_encrypt ();
11022 rm -f conftest.
$ac_objext conftest
$ac_exeext
11023 if { (eval echo "$as_me:11023: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try
='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_des_des_cbc_encrypt
=yes
11036 echo "$as_me: failed program was:" >&5
11037 cat conftest.
$ac_ext >&5
11038 ac_cv_lib_des_des_cbc_encrypt
=no
11040 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11041 LIBS
=$ac_check_lib_save_LIBS
11043 echo "$as_me:11043: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11044 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11045 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11046 cat >>confdefs.h
<<EOF
11047 #define HAVE_LIBDES 1
11056 echo "$as_me:11056: checking for krb_get_cred in -lkrb4" >&5
11057 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11058 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_check_lib_save_LIBS
=$LIBS
11062 LIBS
="-lkrb4 $LIBS"
11063 cat >conftest.
$ac_ext <<_ACEOF
11064 #line 11064 "configure"
11065 #include "confdefs.h"
11067 /* Override any gcc2 internal prototype to avoid an error. */
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char krb_get_cred ();
11082 rm -f conftest.
$ac_objext conftest
$ac_exeext
11083 if { (eval echo "$as_me:11083: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11086 echo "$as_me:11086: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try
='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:11089: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_lib_krb4_krb_get_cred
=yes
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.
$ac_ext >&5
11098 ac_cv_lib_krb4_krb_get_cred
=no
11100 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11101 LIBS
=$ac_check_lib_save_LIBS
11103 echo "$as_me:11103: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11104 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11105 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11106 cat >>confdefs.h
<<EOF
11107 #define HAVE_LIBKRB4 1
11110 LIBS
="-lkrb4 $LIBS"
11114 echo "$as_me:11114: checking for krb_get_cred in -lkrb" >&5
11115 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11116 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 ac_check_lib_save_LIBS
=$LIBS
11121 cat >conftest.
$ac_ext <<_ACEOF
11122 #line 11122 "configure"
11123 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11131 char krb_get_cred ();
11140 rm -f conftest.
$ac_objext conftest
$ac_exeext
11141 if { (eval echo "$as_me:11141: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try
='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:11147: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11150 echo "$as_me:11150: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_lib_krb_krb_get_cred
=yes
11154 echo "$as_me: failed program was:" >&5
11155 cat conftest.
$ac_ext >&5
11156 ac_cv_lib_krb_krb_get_cred
=no
11158 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11159 LIBS
=$ac_check_lib_save_LIBS
11161 echo "$as_me:11161: result: $ac_cv_lib_krb_krb_get_cred" >&5
11162 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11163 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11164 cat >>confdefs.h
<<EOF
11165 #define HAVE_LIBKRB 1
11176 if test "${with_kerberos5+set}" = set; then
11178 for ac_header
in krb5.h
11180 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11181 echo "$as_me:11181: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.
$ac_ext <<_ACEOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11189 #include <$ac_header>
11191 if { (eval echo "$as_me:11191: \"$ac_cpp conftest.$ac_ext\"") >&5
11192 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11194 egrep -v '^ *\+' conftest.er1
>conftest.err
11196 cat conftest.err
>&5
11197 echo "$as_me:11197: \$? = $ac_status" >&5
11198 (exit $ac_status); } >/dev
/null
; then
11199 if test -s conftest.err
; then
11200 ac_cpp_err
=$ac_c_preproc_warn_flag
11207 if test -z "$ac_cpp_err"; then
11208 eval "$as_ac_Header=yes"
11210 echo "$as_me: failed program was:" >&5
11211 cat conftest.
$ac_ext >&5
11212 eval "$as_ac_Header=no"
11214 rm -f conftest.err conftest.
$ac_ext
11216 echo "$as_me:11216: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11219 cat >>confdefs.h
<<EOF
11220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11228 for ac_header
in des.h
11230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231 echo "$as_me:11231: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 cat >conftest.
$ac_ext <<_ACEOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11239 #include <$ac_header>
11241 if { (eval echo "$as_me:11241: \"$ac_cpp conftest.$ac_ext\"") >&5
11242 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11244 egrep -v '^ *\+' conftest.er1
>conftest.err
11246 cat conftest.err
>&5
11247 echo "$as_me:11247: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev
/null
; then
11249 if test -s conftest.err
; then
11250 ac_cpp_err
=$ac_c_preproc_warn_flag
11257 if test -z "$ac_cpp_err"; then
11258 eval "$as_ac_Header=yes"
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.
$ac_ext >&5
11262 eval "$as_ac_Header=no"
11264 rm -f conftest.err conftest.
$ac_ext
11266 echo "$as_me:11266: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h
<<EOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11275 for ac_header
in kerberosIV
/des.h
11277 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11278 echo "$as_me:11278: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.
$ac_ext <<_ACEOF
11284 #line 11284 "configure"
11285 #include "confdefs.h"
11286 #include <$ac_header>
11288 if { (eval echo "$as_me:11288: \"$ac_cpp conftest.$ac_ext\"") >&5
11289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11291 egrep -v '^ *\+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev
/null
; then
11296 if test -s conftest.err
; then
11297 ac_cpp_err
=$ac_c_preproc_warn_flag
11304 if test -z "$ac_cpp_err"; then
11305 eval "$as_ac_Header=yes"
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.
$ac_ext >&5
11309 eval "$as_ac_Header=no"
11311 rm -f conftest.err conftest.
$ac_ext
11313 echo "$as_me:11313: result: `eval echo '${'$as_ac_Header'}'`" >&5
11314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 cat >>confdefs.h
<<EOF
11317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11322 for ac_header
in kerberos
/des.h
11324 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 echo "$as_me:11325: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 cat >conftest.
$ac_ext <<_ACEOF
11331 #line 11331 "configure"
11332 #include "confdefs.h"
11333 #include <$ac_header>
11335 if { (eval echo "$as_me:11335: \"$ac_cpp conftest.$ac_ext\"") >&5
11336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11338 egrep -v '^ *\+' conftest.er1
>conftest.err
11340 cat conftest.err
>&5
11341 echo "$as_me:11341: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev
/null
; then
11343 if test -s conftest.err
; then
11344 ac_cpp_err
=$ac_c_preproc_warn_flag
11351 if test -z "$ac_cpp_err"; then
11352 eval "$as_ac_Header=yes"
11354 echo "$as_me: failed program was:" >&5
11355 cat conftest.
$ac_ext >&5
11356 eval "$as_ac_Header=no"
11358 rm -f conftest.err conftest.
$ac_ext
11360 echo "$as_me:11360: result: `eval echo '${'$as_ac_Header'}'`" >&5
11361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11363 cat >>confdefs.h
<<EOF
11364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11376 for ac_header
in krb.h
11378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 echo "$as_me:11379: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 cat >conftest.
$ac_ext <<_ACEOF
11385 #line 11385 "configure"
11386 #include "confdefs.h"
11387 #include <$ac_header>
11389 if { (eval echo "$as_me:11389: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11392 egrep -v '^ *\+' conftest.er1
>conftest.err
11394 cat conftest.err
>&5
11395 echo "$as_me:11395: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev
/null
; then
11397 if test -s conftest.err
; then
11398 ac_cpp_err
=$ac_c_preproc_warn_flag
11405 if test -z "$ac_cpp_err"; then
11406 eval "$as_ac_Header=yes"
11408 echo "$as_me: failed program was:" >&5
11409 cat conftest.
$ac_ext >&5
11410 eval "$as_ac_Header=no"
11412 rm -f conftest.err conftest.
$ac_ext
11414 echo "$as_me:11414: result: `eval echo '${'$as_ac_Header'}'`" >&5
11415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h
<<EOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11423 for ac_header
in kerberosIV
/krb.h
11425 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 echo "$as_me:11426: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 cat >conftest.
$ac_ext <<_ACEOF
11432 #line 11432 "configure"
11433 #include "confdefs.h"
11434 #include <$ac_header>
11436 if { (eval echo "$as_me:11436: \"$ac_cpp conftest.$ac_ext\"") >&5
11437 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11439 egrep -v '^ *\+' conftest.er1
>conftest.err
11441 cat conftest.err
>&5
11442 echo "$as_me:11442: \$? = $ac_status" >&5
11443 (exit $ac_status); } >/dev
/null
; then
11444 if test -s conftest.err
; then
11445 ac_cpp_err
=$ac_c_preproc_warn_flag
11452 if test -z "$ac_cpp_err"; then
11453 eval "$as_ac_Header=yes"
11455 echo "$as_me: failed program was:" >&5
11456 cat conftest.
$ac_ext >&5
11457 eval "$as_ac_Header=no"
11459 rm -f conftest.err conftest.
$ac_ext
11461 echo "$as_me:11461: result: `eval echo '${'$as_ac_Header'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11464 cat >>confdefs.h
<<EOF
11465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470 for ac_header
in kerberos
/krb.h
11472 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11473 echo "$as_me:11473: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 cat >conftest.
$ac_ext <<_ACEOF
11479 #line 11479 "configure"
11480 #include "confdefs.h"
11481 #include <$ac_header>
11483 if { (eval echo "$as_me:11483: \"$ac_cpp conftest.$ac_ext\"") >&5
11484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11486 egrep -v '^ *\+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev
/null
; then
11491 if test -s conftest.err
; then
11492 ac_cpp_err
=$ac_c_preproc_warn_flag
11499 if test -z "$ac_cpp_err"; then
11500 eval "$as_ac_Header=yes"
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.
$ac_ext >&5
11504 eval "$as_ac_Header=no"
11506 rm -f conftest.err conftest.
$ac_ext
11508 echo "$as_me:11508: result: `eval echo '${'$as_ac_Header'}'`" >&5
11509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h
<<EOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11526 for ac_header
in com_err.h
11528 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11529 echo "$as_me:11529: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11534 cat >conftest.
$ac_ext <<_ACEOF
11535 #line 11535 "configure"
11536 #include "confdefs.h"
11537 #include <$ac_header>
11539 if { (eval echo "$as_me:11539: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11542 egrep -v '^ *\+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:11545: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev
/null
; then
11547 if test -s conftest.err
; then
11548 ac_cpp_err
=$ac_c_preproc_warn_flag
11555 if test -z "$ac_cpp_err"; then
11556 eval "$as_ac_Header=yes"
11558 echo "$as_me: failed program was:" >&5
11559 cat conftest.
$ac_ext >&5
11560 eval "$as_ac_Header=no"
11562 rm -f conftest.err conftest.
$ac_ext
11564 echo "$as_me:11564: result: `eval echo '${'$as_ac_Header'}'`" >&5
11565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h
<<EOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11576 # Solaris requires -lintl if you want strerror (which calls dgettext)
11577 # to return localized messages.
11579 echo "$as_me:11579: checking for dgettext in -lintl" >&5
11580 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11581 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 ac_check_lib_save_LIBS
=$LIBS
11585 LIBS
="-lintl $LIBS"
11586 cat >conftest.
$ac_ext <<_ACEOF
11587 #line 11587 "configure"
11588 #include "confdefs.h"
11590 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11605 rm -f conftest.
$ac_objext conftest
$ac_exeext
11606 if { (eval echo "$as_me:11606: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try
='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:11612: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:11615: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_intl_dgettext
=yes
11619 echo "$as_me: failed program was:" >&5
11620 cat conftest.
$ac_ext >&5
11621 ac_cv_lib_intl_dgettext
=no
11623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11624 LIBS
=$ac_check_lib_save_LIBS
11626 echo "$as_me:11626: result: $ac_cv_lib_intl_dgettext" >&5
11627 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11628 if test $ac_cv_lib_intl_dgettext = yes; then
11629 cat >>confdefs.h
<<EOF
11630 #define HAVE_LIBINTL 1
11633 LIBS
="-lintl $LIBS"
11637 echo "$as_me:11637: checking whether localtime caches TZ" >&5
11638 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11639 if test "${emacs_cv_localtime_cache+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 if test x
$ac_cv_func_tzset = xyes
; then
11643 if test "$cross_compiling" = yes; then
11644 # If we have tzset, assume the worst when cross-compiling.
11645 emacs_cv_localtime_cache
=yes
11647 cat >conftest.
$ac_ext <<_ACEOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11651 extern char **environ;
11655 for (to = from = environ; (*to = *from); from++)
11656 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11659 char TZ_GMT0[] = "TZ=GMT0";
11660 char TZ_PST8[] = "TZ=PST8";
11663 time_t now = time ((time_t *) 0);
11664 int hour_GMT0, hour_unset;
11665 if (putenv (TZ_GMT0) != 0)
11667 hour_GMT0 = localtime (&now)->tm_hour;
11669 hour_unset = localtime (&now)->tm_hour;
11670 if (putenv (TZ_PST8) != 0)
11672 if (localtime (&now)->tm_hour == hour_GMT0)
11675 if (localtime (&now)->tm_hour != hour_unset)
11680 rm -f conftest
$ac_exeext
11681 if { (eval echo "$as_me:11681: \"$ac_link\"") >&5
11682 (eval $ac_link) 2>&5
11684 echo "$as_me:11684: \$? = $ac_status" >&5
11685 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11686 { (eval echo "$as_me:11686: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:11689: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 emacs_cv_localtime_cache
=no
11693 echo "$as_me: program exited with status $ac_status" >&5
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.
$ac_ext >&5
11696 emacs_cv_localtime_cache
=yes
11698 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11701 # If we lack tzset, report that localtime does not cache TZ,
11702 # since we can't invalidate the cache if we don't have tzset.
11703 emacs_cv_localtime_cache
=no
11706 echo "$as_me:11706: result: $emacs_cv_localtime_cache" >&5
11707 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11708 if test $emacs_cv_localtime_cache = yes; then
11710 cat >>confdefs.h
<<\EOF
11711 #define LOCALTIME_CACHE 1
11716 if test "x$HAVE_TIMEVAL" = xyes
; then
11718 for ac_func
in gettimeofday
11720 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 echo "$as_me:11721: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11723 if eval "test \"\${$as_ac_var+set}\" = set"; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 cat >conftest.
$ac_ext <<_ACEOF
11727 #line 11727 "configure"
11728 #include "confdefs.h"
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func (); below. */
11731 #include <assert.h>
11732 /* Override any gcc2 internal prototype to avoid an error. */
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11744 /* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11757 rm -f conftest.
$ac_objext conftest
$ac_exeext
11758 if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try
='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:11764: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:11767: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.
$ac_ext >&5
11773 eval "$as_ac_var=no"
11775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11777 echo "$as_me:11777: result: `eval echo '${'$as_ac_var'}'`" >&5
11778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780 cat >>confdefs.h
<<EOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11787 if test $ac_cv_func_gettimeofday = yes; then
11788 echo "$as_me:11788: checking whether gettimeofday can accept two arguments" >&5
11789 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11790 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 cat >conftest.
$ac_ext <<_ACEOF
11794 #line 11794 "configure"
11795 #include "confdefs.h"
11797 #ifdef TIME_WITH_SYS_TIME
11798 #include <sys/time.h>
11801 #ifdef HAVE_SYS_TIME_H
11802 #include <sys/time.h>
11810 struct timeval time;
11811 gettimeofday (&time, 0);
11816 rm -f conftest.
$ac_objext
11817 if { (eval echo "$as_me:11817: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11820 echo "$as_me:11820: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try
='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:11823: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:11826: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 emacs_cv_gettimeofday_two_arguments
=yes
11830 echo "$as_me: failed program was:" >&5
11831 cat conftest.
$ac_ext >&5
11832 emacs_cv_gettimeofday_two_arguments
=no
11834 rm -f conftest.
$ac_objext conftest.
$ac_ext
11836 echo "$as_me:11836: result: $emacs_cv_gettimeofday_two_arguments" >&5
11837 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11838 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11840 cat >>confdefs.h
<<\EOF
11841 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11848 if test "$ac_cv_func_gettimeofday" = yes; then
11849 echo "$as_me:11849: checking for struct timezone" >&5
11850 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11851 if test "${emacs_cv_struct_timezone+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.
$ac_ext <<_ACEOF
11855 #line 11855 "configure"
11856 #include "confdefs.h"
11857 #include <sys/time.h>
11861 struct timezone tz;
11866 rm -f conftest.
$ac_objext
11867 if { (eval echo "$as_me:11867: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>&5
11870 echo "$as_me:11870: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try
='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:11873: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:11876: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 if test "$cross_compiling" = yes; then
11879 emacs_cv_struct_timezone
=yes
11881 cat >conftest.
$ac_ext <<_ACEOF
11882 #line 11882 "configure"
11883 #include "confdefs.h"
11885 #ifdef TIME_WITH_SYS_TIME
11886 #include <sys/time.h>
11889 #ifdef HAVE_SYS_TIME_H
11890 #include <sys/time.h>
11896 struct timeval time;
11897 struct timezone dummy;
11898 exit (gettimeofday (&time, &dummy));
11901 rm -f conftest
$ac_exeext
11902 if { (eval echo "$as_me:11902: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11905 echo "$as_me:11905: \$? = $ac_status" >&5
11906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11907 { (eval echo "$as_me:11907: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:11910: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 emacs_cv_struct_timezone
=yes
11914 echo "$as_me: program exited with status $ac_status" >&5
11915 echo "$as_me: failed program was:" >&5
11916 cat conftest.
$ac_ext >&5
11917 emacs_cv_struct_timezone
=no
11919 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11922 echo "$as_me: failed program was:" >&5
11923 cat conftest.
$ac_ext >&5
11924 emacs_cv_struct_timezone
=no
11926 rm -f conftest.
$ac_objext conftest.
$ac_ext
11928 echo "$as_me:11928: result: $emacs_cv_struct_timezone" >&5
11929 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11933 echo "$as_me:11933: checking for socket" >&5
11934 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11935 if test "${ac_cv_func_socket+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 cat >conftest.
$ac_ext <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11941 /* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char socket (); below. */
11943 #include <assert.h>
11944 /* Override any gcc2 internal prototype to avoid an error. */
11948 /* We use char because int might match the return type of a gcc2
11949 builtin and then its argument prototype would still apply. */
11956 /* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959 #if defined (__stub_socket) || defined (__stub___socket)
11969 rm -f conftest.
$ac_objext conftest
$ac_exeext
11970 if { (eval echo "$as_me:11970: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11973 echo "$as_me:11973: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try
='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:11976: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_func_socket
=yes
11983 echo "$as_me: failed program was:" >&5
11984 cat conftest.
$ac_ext >&5
11985 ac_cv_func_socket
=no
11987 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11989 echo "$as_me:11989: result: $ac_cv_func_socket" >&5
11990 echo "${ECHO_T}$ac_cv_func_socket" >&6
11991 if test $ac_cv_func_socket = yes; then
11997 if test $ok_so_far = yes; then
11998 echo "$as_me:11998: checking for netinet/in.h" >&5
11999 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.
$ac_ext <<_ACEOF
12004 #line 12004 "configure"
12005 #include "confdefs.h"
12006 #include <netinet/in.h>
12008 if { (eval echo "$as_me:12008: \"$ac_cpp conftest.$ac_ext\"") >&5
12009 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12011 egrep -v '^ *\+' conftest.er1
>conftest.err
12013 cat conftest.err
>&5
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev
/null
; then
12016 if test -s conftest.err
; then
12017 ac_cpp_err
=$ac_c_preproc_warn_flag
12024 if test -z "$ac_cpp_err"; then
12025 ac_cv_header_netinet_in_h
=yes
12027 echo "$as_me: failed program was:" >&5
12028 cat conftest.
$ac_ext >&5
12029 ac_cv_header_netinet_in_h
=no
12031 rm -f conftest.err conftest.
$ac_ext
12033 echo "$as_me:12033: result: $ac_cv_header_netinet_in_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12035 if test $ac_cv_header_netinet_in_h = yes; then
12042 if test $ok_so_far = yes; then
12043 echo "$as_me:12043: checking for arpa/inet.h" >&5
12044 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12045 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 cat >conftest.
$ac_ext <<_ACEOF
12049 #line 12049 "configure"
12050 #include "confdefs.h"
12051 #include <arpa/inet.h>
12053 if { (eval echo "$as_me:12053: \"$ac_cpp conftest.$ac_ext\"") >&5
12054 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12056 egrep -v '^ *\+' conftest.er1
>conftest.err
12058 cat conftest.err
>&5
12059 echo "$as_me:12059: \$? = $ac_status" >&5
12060 (exit $ac_status); } >/dev
/null
; then
12061 if test -s conftest.err
; then
12062 ac_cpp_err
=$ac_c_preproc_warn_flag
12069 if test -z "$ac_cpp_err"; then
12070 ac_cv_header_arpa_inet_h
=yes
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.
$ac_ext >&5
12074 ac_cv_header_arpa_inet_h
=no
12076 rm -f conftest.err conftest.
$ac_ext
12078 echo "$as_me:12078: result: $ac_cv_header_arpa_inet_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12080 if test $ac_cv_header_arpa_inet_h = yes; then
12087 if test $ok_so_far = yes; then
12089 cat >>confdefs.h
<<\EOF
12090 #define HAVE_INET_SOCKETS 1
12095 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12097 cat >>confdefs.h
<<\EOF
12098 #define HAVE_AIX_SMT_EXP 1
12103 echo "$as_me:12103: checking whether system supports dynamic ptys" >&5
12104 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12105 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12106 echo "$as_me:12106: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6
12109 cat >>confdefs.h
<<\EOF
12110 #define HAVE_DEV_PTMX 1
12114 echo "$as_me:12114: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12118 echo "$as_me:12118: checking for pid_t" >&5
12119 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12120 if test "${ac_cv_type_pid_t+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 cat >conftest.
$ac_ext <<_ACEOF
12124 #line 12124 "configure"
12125 #include "confdefs.h"
12126 $ac_includes_default
12132 if (sizeof (pid_t))
12138 rm -f conftest.
$ac_objext
12139 if { (eval echo "$as_me:12139: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>&5
12142 echo "$as_me:12142: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try
='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:12145: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:12148: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_type_pid_t
=yes
12152 echo "$as_me: failed program was:" >&5
12153 cat conftest.
$ac_ext >&5
12154 ac_cv_type_pid_t
=no
12156 rm -f conftest.
$ac_objext conftest.
$ac_ext
12158 echo "$as_me:12158: result: $ac_cv_type_pid_t" >&5
12159 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12160 if test $ac_cv_type_pid_t = yes; then
12164 cat >>confdefs.h
<<EOF
12170 for ac_header
in unistd.h vfork.h
12172 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 echo "$as_me:12173: checking for $ac_header" >&5
12174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.
$ac_ext <<_ACEOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181 #include <$ac_header>
12183 if { (eval echo "$as_me:12183: \"$ac_cpp conftest.$ac_ext\"") >&5
12184 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12186 egrep -v '^ *\+' conftest.er1
>conftest.err
12188 cat conftest.err
>&5
12189 echo "$as_me:12189: \$? = $ac_status" >&5
12190 (exit $ac_status); } >/dev
/null
; then
12191 if test -s conftest.err
; then
12192 ac_cpp_err
=$ac_c_preproc_warn_flag
12199 if test -z "$ac_cpp_err"; then
12200 eval "$as_ac_Header=yes"
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.
$ac_ext >&5
12204 eval "$as_ac_Header=no"
12206 rm -f conftest.err conftest.
$ac_ext
12208 echo "$as_me:12208: result: `eval echo '${'$as_ac_Header'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12211 cat >>confdefs.h
<<EOF
12212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218 for ac_func
in fork vfork
12220 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12221 echo "$as_me:12221: checking for $ac_func" >&5
12222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12223 if eval "test \"\${$as_ac_var+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.
$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func (); below. */
12231 #include <assert.h>
12232 /* Override any gcc2 internal prototype to avoid an error. */
12236 /* We use char because int might match the return type of a gcc2
12237 builtin and then its argument prototype would still apply. */
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12257 rm -f conftest.
$ac_objext conftest
$ac_exeext
12258 if { (eval echo "$as_me:12258: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12261 echo "$as_me:12261: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try
='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:12264: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:12267: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.
$ac_ext >&5
12273 eval "$as_ac_var=no"
12275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12277 echo "$as_me:12277: result: `eval echo '${'$as_ac_var'}'`" >&5
12278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12279 if test `eval echo '${'$as_ac_var'}'` = yes; then
12280 cat >>confdefs.h
<<EOF
12281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12287 ac_cv_func_fork_works
=$ac_cv_func_fork
12288 if test "x$ac_cv_func_fork" = xyes
; then
12289 echo "$as_me:12289: checking for working fork" >&5
12290 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12291 if test "${ac_cv_func_fork_works+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 if test "$cross_compiling" = yes; then
12295 ac_cv_func_fork_works
=cross
12297 cat >conftest.
$ac_ext <<_ACEOF
12298 /* By Rüdiger Kuhlmann. */
12299 #include <sys/types.h>
12301 # include <unistd.h>
12303 /* Some systems only have a dummy stub for fork() */
12311 rm -f conftest
$ac_exeext
12312 if { (eval echo "$as_me:12312: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>&5
12315 echo "$as_me:12315: \$? = $ac_status" >&5
12316 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12317 { (eval echo "$as_me:12317: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_func_fork_works
=yes
12324 echo "$as_me: program exited with status $ac_status" >&5
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.
$ac_ext >&5
12327 ac_cv_func_fork_works
=no
12329 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12332 echo "$as_me:12332: result: $ac_cv_func_fork_works" >&5
12333 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12336 if test "x$ac_cv_func_fork_works" = xcross
; then
12338 *-*-amigaos* |
*-*-msdosdjgpp*)
12339 # Override, as these systems have only a dummy fork() stub
12340 ac_cv_func_fork_works
=no
12343 ac_cv_func_fork_works
=yes
12346 { echo "$as_me:12346: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12347 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12349 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12350 if test "x$ac_cv_func_vfork" = xyes
; then
12351 echo "$as_me:12351: checking for working vfork" >&5
12352 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12353 if test "${ac_cv_func_vfork_works+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 if test "$cross_compiling" = yes; then
12357 ac_cv_func_vfork_works
=cross
12359 cat >conftest.
$ac_ext <<_ACEOF
12360 #line 12360 "configure"
12361 #include "confdefs.h"
12362 /* Thanks to Paul Eggert for this test. */
12364 #include <sys/types.h>
12365 #include <sys/stat.h>
12367 # include <unistd.h>
12370 # include <vfork.h>
12372 /* On some sparc systems, changes by the child to local and incoming
12373 argument registers are propagated back to the parent. The compiler
12374 is told about this with #include <vfork.h>, but some compilers
12375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12376 static variable whose address is put into a register that is
12377 clobbered by the vfork. */
12380 sparc_address_test (int arg)
12382 sparc_address_test (arg) int arg;
12385 static pid_t child;
12403 pid_t parent = getpid ();
12406 sparc_address_test ();
12411 /* Here is another test for sparc vfork register problems. This
12412 test uses lots of local variables, at least as many local
12413 variables as main has allocated so far including compiler
12414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12416 reuse the register of parent for one of the local variables,
12417 since it will think that parent can't possibly be used any more
12418 in this routine. Assigning to the local variable will thus
12419 munge parent in the parent process. */
12421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12423 /* Convince the compiler that p..p7 are live; otherwise, it might
12424 use the same hardware register for all 8 local variables. */
12425 if (p != p1 || p != p2 || p != p3 || p != p4
12426 || p != p5 || p != p6 || p != p7)
12429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12430 from child file descriptors. If the child closes a descriptor
12431 before it execs or exits, this munges the parent's descriptor
12432 as well. Test for this by closing stdout in the child. */
12433 _exit(close(fileno(stdout)) != 0);
12438 while (wait(&status) != child)
12441 /* Was there some problem with vforking? */
12444 /* Did the child fail? (This shouldn't happen.) */
12447 /* Did the vfork/compiler bug occur? */
12448 || parent != getpid()
12450 /* Did the file descriptor bug occur? */
12451 || fstat(fileno(stdout), &st) != 0
12456 rm -f conftest
$ac_exeext
12457 if { (eval echo "$as_me:12457: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12460 echo "$as_me:12460: \$? = $ac_status" >&5
12461 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12462 { (eval echo "$as_me:12462: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_func_vfork_works
=yes
12469 echo "$as_me: program exited with status $ac_status" >&5
12470 echo "$as_me: failed program was:" >&5
12471 cat conftest.
$ac_ext >&5
12472 ac_cv_func_vfork_works
=no
12474 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12477 echo "$as_me:12477: result: $ac_cv_func_vfork_works" >&5
12478 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12481 if test "x$ac_cv_func_fork_works" = xcross
; then
12482 ac_cv_func_vfork_works
=ac_cv_func_vfork
12483 { echo "$as_me:12483: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12484 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12487 if test "x$ac_cv_func_vfork_works" = xyes
; then
12489 cat >>confdefs.h
<<\EOF
12490 #define HAVE_WORKING_VFORK 1
12495 cat >>confdefs.h
<<\EOF
12500 if test "x$ac_cv_func_fork_works" = xyes
; then
12502 cat >>confdefs.h
<<\EOF
12503 #define HAVE_WORKING_FORK 1
12508 # Fixme: This should be replaced when we have autoconf 2.14.
12509 echo "$as_me:12509: checking for size_t" >&5
12510 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12511 if test "${ac_cv_type_size_t+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 cat >conftest.
$ac_ext <<_ACEOF
12515 #line 12515 "configure"
12516 #include "confdefs.h"
12517 $ac_includes_default
12523 if (sizeof (size_t))
12529 rm -f conftest.
$ac_objext
12530 if { (eval echo "$as_me:12530: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>&5
12533 echo "$as_me:12533: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try
='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:12536: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:12539: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_type_size_t
=yes
12543 echo "$as_me: failed program was:" >&5
12544 cat conftest.
$ac_ext >&5
12545 ac_cv_type_size_t
=no
12547 rm -f conftest.
$ac_objext conftest.
$ac_ext
12549 echo "$as_me:12549: result: $ac_cv_type_size_t" >&5
12550 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12551 if test $ac_cv_type_size_t = yes; then
12555 cat >>confdefs.h
<<EOF
12556 #define size_t unsigned
12561 # Set up the CFLAGS for real compilation, so we can substitute it.
12562 CFLAGS
="$REAL_CFLAGS"
12563 CPPFLAGS
="$REAL_CPPFLAGS"
12565 #### Find out which version of Emacs this is.
12566 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12567 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12568 if test x
"${version}" = x
; then
12569 { { echo "$as_me:12569: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12570 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12571 { (exit 1); exit 1; }; }
12574 ### Specify what sort of things we'll be editing into Makefile and config.h.
12575 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12577 cat >>confdefs.h
<<EOF
12578 #define EMACS_CONFIGURATION "${canonical}"
12581 cat >>confdefs.h
<<EOF
12582 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12585 cat >>confdefs.h
<<EOF
12586 #define config_machfile "${machfile}"
12589 cat >>confdefs.h
<<EOF
12590 #define config_opsysfile "${opsysfile}"
12593 cat >>confdefs.h
<<EOF
12594 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12597 cat >>confdefs.h
<<EOF
12598 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12601 cat >>confdefs.h
<<EOF
12602 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12605 cat >>confdefs.h
<<EOF
12606 #define UNEXEC_SRC ${UNEXEC_SRC}
12609 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12611 cat >>confdefs.h
<<\EOF
12612 #define HAVE_X_WINDOWS 1
12616 if test "${USE_X_TOOLKIT}" != "none" ; then
12618 cat >>confdefs.h
<<\EOF
12619 #define USE_X_TOOLKIT 1
12623 if test "${HAVE_X11}" = "yes" ; then
12625 cat >>confdefs.h
<<\EOF
12630 if test "${HAVE_XFREE386}" = "yes" ; then
12632 cat >>confdefs.h
<<\EOF
12633 #define HAVE_XFREE386 1
12637 if test "${HAVE_MENUS}" = "yes" ; then
12639 cat >>confdefs.h
<<\EOF
12640 #define HAVE_MENUS 1
12644 if test "${GNU_MALLOC}" = "yes" ; then
12646 cat >>confdefs.h
<<\EOF
12647 #define GNU_MALLOC 1
12651 if test "${REL_ALLOC}" = "yes" ; then
12653 cat >>confdefs.h
<<\EOF
12654 #define REL_ALLOC 1
12659 for ac_header
in nlist.h
12661 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 echo "$as_me:12662: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 cat >conftest.
$ac_ext <<_ACEOF
12668 #line 12668 "configure"
12669 #include "confdefs.h"
12670 #include <$ac_header>
12672 if { (eval echo "$as_me:12672: \"$ac_cpp conftest.$ac_ext\"") >&5
12673 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12675 egrep -v '^ *\+' conftest.er1
>conftest.err
12677 cat conftest.err
>&5
12678 echo "$as_me:12678: \$? = $ac_status" >&5
12679 (exit $ac_status); } >/dev
/null
; then
12680 if test -s conftest.err
; then
12681 ac_cpp_err
=$ac_c_preproc_warn_flag
12688 if test -z "$ac_cpp_err"; then
12689 eval "$as_ac_Header=yes"
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.
$ac_ext >&5
12693 eval "$as_ac_Header=no"
12695 rm -f conftest.err conftest.
$ac_ext
12697 echo "$as_me:12697: result: `eval echo '${'$as_ac_Header'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12700 cat >>confdefs.h
<<EOF
12701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12704 cat >>confdefs.h
<<\EOF
12705 #define NLIST_STRUCT 1
12711 #### Report on what we decided to do.
12713 Configured for \`${canonical}'.
12715 Where should the build process find the source code? ${srcdir}
12716 What operating system and machine description files should Emacs use?
12717 \`${opsysfile}' and \`${machfile}'
12718 What compiler should emacs be built with? ${CC} ${CFLAGS}
12719 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12720 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12721 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12722 What window system should Emacs use? ${window_system}
12723 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12724 Should Emacs use a shared game state directory? ${gamedir}"
12726 if test -n "${x_includes}"; then
12727 echo " Where do we find X Windows header files? ${x_includes}"
12729 echo " Where do we find X Windows header files? Standard dirs"
12731 if test -n "${x_libraries}"; then
12732 echo " Where do we find X Windows libraries? ${x_libraries}"
12734 echo " Where do we find X Windows libraries? Standard dirs"
12737 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12738 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12739 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12740 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12741 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12742 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12743 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12746 # Remove any trailing slashes in these variables.
12747 test "${prefix}" != NONE
&&
12748 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12749 test "${exec_prefix}" != NONE
&&
12750 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12752 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12753 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12754 ## from Makefile.c can correctly provide the arg `-traditional' to the
12757 cat >conftest.
$ac_ext <<_ACEOF
12758 #line 12758 "configure"
12759 #include "confdefs.h"
12762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12763 egrep "yes..yes" >/dev
/null
2>&1; then
12764 CPP_NEED_TRADITIONAL
=no
12766 CPP_NEED_TRADITIONAL
=yes
12770 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"
12771 ac_config_commands
="$ac_config_commands default"
12772 cat >confcache
<<\_ACEOF
12773 # This file is a shell script that caches the results of configure
12774 # tests run on this system so they can be shared between configure
12775 # scripts and configure runs, see configure's option --config-cache.
12776 # It is not useful on other systems. If it contains results you don't
12777 # want to keep, you may remove or edit it.
12779 # config.status only pays attention to the cache file if you give it
12780 # the --recheck option to rerun configure.
12782 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12784 # following values.
12788 # The following way of writing the cache mishandles newlines in values,
12789 # but we know of no workaround that is simple, portable, and efficient.
12790 # So, don't put newlines in cache variables' values.
12791 # Ultrix sh set writes to stderr and can't be redirected directly,
12792 # and sets the high bit in the cache file unless we assign to the vars.
12795 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12797 # `set' does not quote correctly, so add quotes (double-quote
12798 # substitution turns \\\\ into \\, and sed turns \\ into \).
12801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12804 # `set' quotes correctly as required by POSIX, so do not add quotes.
12806 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12815 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12817 if cmp -s $cache_file confcache
; then :; else
12818 if test -w $cache_file; then
12819 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12820 cat confcache
>$cache_file
12822 echo "not updating unwritable cache $cache_file"
12827 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12828 # Let make expand exec_prefix.
12829 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12833 # trailing colons and then remove the whole line if VPATH becomes empty
12834 # (actually we leave an empty line to preserve line numbers).
12835 if test "x$srcdir" = x.
; then
12836 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12837 s/:*\$(srcdir):*/:/;
12838 s/:*\${srcdir}:*/:/;
12840 s/^\([^=]*=[ ]*\):*/\1/;
12846 DEFS
=-DHAVE_CONFIG_H
12848 : ${CONFIG_STATUS=./config.status}
12849 ac_clean_files_save
=$ac_clean_files
12850 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12851 { echo "$as_me:12851: creating $CONFIG_STATUS" >&5
12852 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12853 cat >$CONFIG_STATUS <<_ACEOF
12855 # Generated automatically by configure.
12856 # Run this file to recreate the current configuration.
12857 # Compiler output produced by configure, useful for debugging
12858 # configure, is in config.log if it exists.
12861 SHELL=\${CONFIG_SHELL-$SHELL}
12862 ac_cs_invocation="\$0 \$@"
12866 cat >>$CONFIG_STATUS <<\_ACEOF
12867 # Be Bourne compatible
12868 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12871 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12875 # Name of the executable.
12876 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12878 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12884 rm -f conf$$ conf$$.exe conf$$.
file
12886 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12887 # We could just check for DJGPP; but this test a) works b) is more generic
12888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12889 if test -f conf$$.exe
; then
12890 # Don't use ln at all; we don't have any links
12895 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12900 rm -f conf$$ conf$$.exe conf$$.
file
12902 as_executable_p
="test -f"
12904 # Support unset when possible.
12905 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12912 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12913 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12914 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12915 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12916 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12917 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12918 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12919 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12922 # We need space, tab and new line, in precisely that order.
12928 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12934 # Files that config.status was made for.
12935 if test -n "$ac_config_files"; then
12936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12939 if test -n "$ac_config_headers"; then
12940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12943 if test -n "$ac_config_links"; then
12944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12947 if test -n "$ac_config_commands"; then
12948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12951 cat >>$CONFIG_STATUS <<\EOF
12954 \`$as_me' instantiates files from templates according to the
12955 current configuration.
12957 Usage: $0 [OPTIONS] [FILE]...
12959 -h, --help print this help, then exit
12960 -V, --version print version number, then exit
12961 -d, --debug don't remove temporary files
12962 --recheck update $as_me by reconfiguring in the same conditions
12963 --file=FILE[:TEMPLATE]
12964 instantiate the configuration file FILE
12965 --header=FILE[:TEMPLATE]
12966 instantiate the configuration header FILE
12968 Configuration files:
12971 Configuration headers:
12974 Configuration commands:
12977 Report bugs to <bug-autoconf@gnu.org>."
12980 cat >>$CONFIG_STATUS <<EOF
12983 configured by $0, generated by GNU Autoconf 2.52,
12984 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12986 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12987 Free Software Foundation, Inc.
12988 This config.status script is free software; the Free Software Foundation
12989 gives unlimited permission to copy, distribute and modify it."
12994 cat >>$CONFIG_STATUS <<\EOF
12995 # If no file are specified by the user, then we need to provide default
12996 # value. By we need to know if files were specified by the user.
13002 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13003 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13005 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
13009 *) # This is not an option, so the user has probably given explicit
13011 ac_need_defaults
=false
;;
13015 # Handling of the options.
13017 cat >>$CONFIG_STATUS <<EOF
13018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13019 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13020 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13022 cat >>$CONFIG_STATUS <<\EOF
13023 --version |
--vers* |
-V )
13024 echo "$ac_cs_version"; exit 0 ;;
13026 # Conflict between --help and --header
13027 { { echo "$as_me:13027: error: ambiguous option: $1
13028 Try \`$0 --help' for more information." >&5
13029 echo "$as_me: error: ambiguous option: $1
13030 Try \`$0 --help' for more information." >&2;}
13031 { (exit 1); exit 1; }; };;
13032 --help |
--hel |
-h )
13033 echo "$ac_cs_usage"; exit 0 ;;
13034 --debug |
--d* |
-d )
13036 --file |
--fil |
--fi |
--f )
13038 CONFIG_FILES
="$CONFIG_FILES $1"
13039 ac_need_defaults
=false
;;
13040 --header |
--heade |
--head |
--hea )
13042 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
13043 ac_need_defaults
=false
;;
13045 # This is an error.
13046 -*) { { echo "$as_me:13046: error: unrecognized option: $1
13047 Try \`$0 --help' for more information." >&5
13048 echo "$as_me: error: unrecognized option: $1
13049 Try \`$0 --help' for more information." >&2;}
13050 { (exit 1); exit 1; }; } ;;
13052 *) ac_config_targets
="$ac_config_targets $1" ;;
13061 ## ----------------------- ##
13062 ## Running config.status. ##
13063 ## ----------------------- ##
13065 This file was extended by $as_me 2.52, executed with
13066 CONFIG_FILES = $CONFIG_FILES
13067 CONFIG_HEADERS = $CONFIG_HEADERS
13068 CONFIG_LINKS = $CONFIG_LINKS
13069 CONFIG_COMMANDS = $CONFIG_COMMANDS
13070 > $ac_cs_invocation
13071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13076 cat >>$CONFIG_STATUS <<EOF
13078 # INIT-COMMANDS section.
13081 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13085 cat >>$CONFIG_STATUS <<\EOF
13086 for ac_config_target
in $ac_config_targets
13088 case "$ac_config_target" in
13089 # Handling of arguments.
13090 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13091 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13092 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
13093 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13094 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
13095 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13096 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
13097 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
13098 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
13099 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
13100 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13101 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13102 *) { { echo "$as_me:13102: error: invalid argument: $ac_config_target" >&5
13103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13104 { (exit 1); exit 1; }; };;
13108 # If the user did not use the arguments to specify the items to instantiate,
13109 # then the envvar interface is used. Set only those that are not.
13110 # We use the long form for the default assignment because of an extremely
13111 # bizarre bug on SunOS 4.1.3.
13112 if $ac_need_defaults; then
13113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13118 # Create a temporary directory, and hook for its removal unless debugging.
13121 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13122 trap '{ (exit 1); exit 1; }' 1 2 13 15
13125 # Create a (secure) tmp directory for tmp files.
13128 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13129 test -n "$tmp" && test -d "$tmp"
13132 tmp
=$TMPDIR/cs$$
-$RANDOM
13133 (umask 077 && mkdir
$tmp)
13136 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13137 { (exit 1); exit 1; }
13142 cat >>$CONFIG_STATUS <<EOF
13145 # CONFIG_FILES section.
13148 # No need to generate the scripts if there are no CONFIG_FILES.
13149 # This happens for instance when ./config.status config.h
13150 if test -n "\$CONFIG_FILES"; then
13151 # Protect against being on the right side of a sed subst in config.status.
13152 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13153 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13154 s,@SHELL@,$SHELL,;t t
13155 s,@exec_prefix@,$exec_prefix,;t t
13156 s,@prefix@,$prefix,;t t
13157 s,@program_transform_name@,$program_transform_name,;t t
13158 s,@bindir@,$bindir,;t t
13159 s,@sbindir@,$sbindir,;t t
13160 s,@libexecdir@,$libexecdir,;t t
13161 s,@datadir@,$datadir,;t t
13162 s,@sysconfdir@,$sysconfdir,;t t
13163 s,@sharedstatedir@,$sharedstatedir,;t t
13164 s,@localstatedir@,$localstatedir,;t t
13165 s,@libdir@,$libdir,;t t
13166 s,@includedir@,$includedir,;t t
13167 s,@oldincludedir@,$oldincludedir,;t t
13168 s,@infodir@,$infodir,;t t
13169 s,@mandir@,$mandir,;t t
13170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13175 s,@build_alias@,$build_alias,;t t
13176 s,@host_alias@,$host_alias,;t t
13177 s,@target_alias@,$target_alias,;t t
13178 s,@ECHO_C@,$ECHO_C,;t t
13179 s,@ECHO_N@,$ECHO_N,;t t
13180 s,@ECHO_T@,$ECHO_T,;t t
13181 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13182 s,@DEFS@,$DEFS,;t t
13183 s,@LIBS@,$LIBS,;t t
13184 s,@build@,$build,;t t
13185 s,@build_cpu@,$build_cpu,;t t
13186 s,@build_vendor@,$build_vendor,;t t
13187 s,@build_os@,$build_os,;t t
13188 s,@host@,$host,;t t
13189 s,@host_cpu@,$host_cpu,;t t
13190 s,@host_vendor@,$host_vendor,;t t
13191 s,@host_os@,$host_os,;t t
13193 s,@CFLAGS@,$CFLAGS,;t t
13194 s,@LDFLAGS@,$LDFLAGS,;t t
13195 s,@CPPFLAGS@,$CPPFLAGS,;t t
13196 s,@ac_ct_CC@,$ac_ct_CC,;t t
13197 s,@EXEEXT@,$EXEEXT,;t t
13198 s,@OBJEXT@,$OBJEXT,;t t
13199 s,@LN_S@,$LN_S,;t t
13201 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13202 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13203 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13204 s,@YACC@,$YACC,;t t
13205 s,@RANLIB@,$RANLIB,;t t
13206 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13207 s,@LIBSOUND@,$LIBSOUND,;t t
13208 s,@SET_MAKE@,$SET_MAKE,;t t
13209 s,@ALLOCA@,$ALLOCA,;t t
13210 s,@liblockfile@,$liblockfile,;t t
13211 s,@LIBOBJS@,$LIBOBJS,;t t
13212 s,@NEED_SETGID@,$NEED_SETGID,;t t
13213 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13214 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13215 s,@version@,$version,;t t
13216 s,@configuration@,$configuration,;t t
13217 s,@canonical@,$canonical,;t t
13218 s,@srcdir@,$srcdir,;t t
13219 s,@lispdir@,$lispdir,;t t
13220 s,@locallisppath@,$locallisppath,;t t
13221 s,@lisppath@,$lisppath,;t t
13222 s,@x_default_search_path@,$x_default_search_path,;t t
13223 s,@etcdir@,$etcdir,;t t
13224 s,@archlibdir@,$archlibdir,;t t
13225 s,@docdir@,$docdir,;t t
13226 s,@bitmapdir@,$bitmapdir,;t t
13227 s,@gamedir@,$gamedir,;t t
13228 s,@gameuser@,$gameuser,;t t
13229 s,@c_switch_system@,$c_switch_system,;t t
13230 s,@c_switch_machine@,$c_switch_machine,;t t
13231 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13232 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13233 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13234 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13235 s,@machfile@,$machfile,;t t
13236 s,@opsysfile@,$opsysfile,;t t
13241 cat >>$CONFIG_STATUS <<\EOF
13242 # Split the substitutions into bite-sized pieces for seds with
13243 # small command number limits, like on Digital OSF/1 and HP-UX.
13244 ac_max_sed_lines
=48
13245 ac_sed_frag
=1 # Number of current file.
13246 ac_beg
=1 # First line for current file.
13247 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13250 while $ac_more_lines; do
13251 if test $ac_beg -gt 1; then
13252 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13254 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13256 if test ! -s $tmp/subs.frag
; then
13257 ac_more_lines
=false
13259 # The purpose of the label and of the branching condition is to
13260 # speed up the sed processing (if there are no `@' at all, there
13261 # is no need to browse any of the substitutions).
13262 # These are the two extra sed commands mentioned above.
13264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13265 if test -z "$ac_sed_cmds"; then
13266 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13268 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13270 ac_sed_frag
=`expr $ac_sed_frag + 1`
13272 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13275 if test -z "$ac_sed_cmds"; then
13278 fi # test -n "$CONFIG_FILES"
13281 cat >>$CONFIG_STATUS <<\EOF
13282 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13285 - |
*:- |
*:-:* ) # input from stdin
13287 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13288 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13289 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13290 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13291 * ) ac_file_in
=$ac_file.
in ;;
13294 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13295 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13296 X"$ac_file" : 'X\(//\)[^/]' \| \
13297 X"$ac_file" : 'X\(//\)$' \| \
13298 X"$ac_file" : 'X\(/\)' \| \
13299 . : '\(.\)' 2>/dev/null ||
13301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13303 /^X\(\/\/\)$/{ s//\1/; q; }
13304 /^X\(\/\).*/{ s//\1/; q; }
13306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13307 { case "$ac_dir" in
13308 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13312 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13313 case $as_mkdir_dir in
13314 # Skip DOS drivespec
13315 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13317 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13318 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13323 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13324 # A "../" for each directory in $ac_dir_suffix.
13325 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13327 ac_dir_suffix
= ac_dots
=
13332 if test -z "$ac_dots"; then
13335 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13337 [\\/]* | ?
:[\\/]* )
13338 ac_srcdir
=$srcdir$ac_dir_suffix;
13339 ac_top_srcdir
=$srcdir ;;
13340 *) # Relative path.
13341 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13342 ac_top_srcdir
=$ac_dots$srcdir ;;
13346 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13347 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13350 if test x
"$ac_file" != x-
; then
13351 { echo "$as_me:13351: creating $ac_file" >&5
13352 echo "$as_me: creating $ac_file" >&6;}
13355 # Let's still pretend it is `configure' which instantiates (i.e., don't
13356 # use $as_me), people would be surprised to read:
13357 # /* config.h. Generated automatically by config.status. */
13358 configure_input
="Generated automatically from `echo $ac_file_in |
13359 sed 's,.*/,,'` by configure."
13361 # First look for the input files in the build tree, otherwise in the
13363 ac_file_inputs
=`IFS=:
13364 for f in $ac_file_in; do
13366 -) echo $tmp/stdin ;;
13368 # Absolute (can't be DOS-style, as IFS=:)
13369 test -f "$f" || { { echo "$as_me:13369: error: cannot find input file: $f" >&5
13370 echo "$as_me: error: cannot find input file: $f" >&2;}
13371 { (exit 1); exit 1; }; }
13374 if test -f "$f"; then
13377 elif test -f "$srcdir/$f"; then
13382 { { echo "$as_me:13382: error: cannot find input file: $f" >&5
13383 echo "$as_me: error: cannot find input file: $f" >&2;}
13384 { (exit 1); exit 1; }; }
13387 done` ||
{ (exit 1); exit 1; }
13389 cat >>$CONFIG_STATUS <<EOF
13393 cat >>$CONFIG_STATUS <<\EOF
13395 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13396 s
,@configure_input@
,$configure_input,;t t
13397 s
,@srcdir@
,$ac_srcdir,;t t
13398 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13399 s
,@INSTALL@
,$ac_INSTALL,;t t
13400 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13402 if test x"$ac_file" != x-; then
13403 mv $tmp/out $ac_file
13411 cat >>$CONFIG_STATUS <<\EOF
13414 # CONFIG_HEADER section.
13417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13420 # ac_d sets the value in "#define NAME VALUE" lines.
13421 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13422 ac_dB
='[ ].*$,\1#\2'
13425 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13426 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13427 ac_uB
='$,\1#\2define\3'
13431 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13434 - |
*:- |
*:-:* ) # input from stdin
13436 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13437 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13438 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13439 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13440 * ) ac_file_in
=$ac_file.
in ;;
13443 test x
"$ac_file" != x-
&& { echo "$as_me:13443: creating $ac_file" >&5
13444 echo "$as_me: creating $ac_file" >&6;}
13446 # First look for the input files in the build tree, otherwise in the
13448 ac_file_inputs
=`IFS=:
13449 for f in $ac_file_in; do
13451 -) echo $tmp/stdin ;;
13453 # Absolute (can't be DOS-style, as IFS=:)
13454 test -f "$f" || { { echo "$as_me:13454: error: cannot find input file: $f" >&5
13455 echo "$as_me: error: cannot find input file: $f" >&2;}
13456 { (exit 1); exit 1; }; }
13459 if test -f "$f"; then
13462 elif test -f "$srcdir/$f"; then
13467 { { echo "$as_me:13467: error: cannot find input file: $f" >&5
13468 echo "$as_me: error: cannot find input file: $f" >&2;}
13469 { (exit 1); exit 1; }; }
13472 done` ||
{ (exit 1); exit 1; }
13473 # Remove the trailing spaces.
13474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13479 # `conftest.undefs', that substitutes the proper values into
13480 # config.h.in to produce config.h. The first handles `#define'
13481 # templates, and the second `#undef' templates.
13482 # And first: Protect against being on the right side of a sed subst in
13483 # config.status. Protect against being in an unquoted here document
13484 # in config.status.
13485 rm -f conftest.defines conftest.undefs
13486 # Using a here document instead of a string reduces the quoting nightmare.
13487 # Putting comments in sed scripts is not portable.
13489 # `end' is used to avoid that the second main sed command (meant for
13490 # 0-ary CPP macros) applies to n-ary macro definitions.
13491 # See the Autoconf documentation for `clear'.
13492 cat >confdef2sed.
sed <<\EOF
13497 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13499 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13502 # If some macros were called several times there might be several times
13503 # the same #defines, which is useless. Nevertheless, we may not want to
13504 # sort them, since we want the *last* AC-DEFINE to be honored.
13505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13507 rm -f confdef2sed.sed
13509 # This sed command replaces #undef with comments. This is necessary, for
13510 # example, in the case of _POSIX_SOURCE, which is predefined and required
13511 # on some systems where configure will not decide to define it.
13512 cat >>conftest.undefs <<\EOF
13513 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13516 # Break up conftest.defines because some shells have a limit on the size
13517 # of here documents, and old seds have small limits too (100 cmds).
13518 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13519 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13520 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13521 echo ' :' >>$CONFIG_STATUS
13522 rm -f conftest.tail
13523 while grep . conftest.defines >/dev/null
13525 # Write a limited-size here document to $tmp/defines.sed.
13526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13527 # Speed up: don't consider the non `#define' lines.
13528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13529 # Work around the forget-to-reset-the-flag bug.
13530 echo 't clr' >>$CONFIG_STATUS
13531 echo ': clr' >>$CONFIG_STATUS
13532 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13536 mv $tmp/out $tmp/in
13538 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13539 rm -f conftest.defines
13540 mv conftest.
tail conftest.defines
13542 rm -f conftest.defines
13543 echo ' fi # egrep' >>$CONFIG_STATUS
13544 echo >>$CONFIG_STATUS
13546 # Break up conftest.undefs because some shells have a limit on the size
13547 # of here documents, and old seds have small limits too (100 cmds).
13548 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13549 rm -f conftest.
tail
13550 while grep . conftest.undefs
>/dev
/null
13552 # Write a limited-size here document to $tmp/undefs.sed.
13553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13554 # Speed up: don't consider the non
`#undef'
13555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13556 # Work around the forget-to-reset-the-flag bug.
13557 echo 't clr' >>$CONFIG_STATUS
13558 echo ': clr' >>$CONFIG_STATUS
13559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13563 mv $tmp/out $tmp/in
13565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13566 rm -f conftest.undefs
13567 mv conftest.tail conftest.undefs
13569 rm -f conftest.undefs
13571 cat >>$CONFIG_STATUS <<\EOF
13572 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13573 # use $as_me), people would be surprised to read:
13574 # /* config.h. Generated automatically by config.status. */
13575 if test x
"$ac_file" = x-
; then
13576 echo "/* Generated automatically by configure. */" >$tmp/config.h
13578 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13580 cat $tmp/in >>$tmp/config.h
13582 if test x
"$ac_file" != x-
; then
13583 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13584 { echo "$as_me:13584: $ac_file is unchanged" >&5
13585 echo "$as_me: $ac_file is unchanged" >&6;}
13587 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588 X"$ac_file" : 'X\(//\)[^/]' \| \
13589 X"$ac_file" : 'X\(//\)$' \| \
13590 X"$ac_file" : 'X\(/\)' \| \
13591 . : '\(.\)' 2>/dev/null ||
13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13595 /^X\(\/\/\)$/{ s//\1/; q; }
13596 /^X\(\/\).*/{ s//\1/; q; }
13598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13599 { case "$ac_dir" in
13600 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13604 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13605 case $as_mkdir_dir in
13606 # Skip DOS drivespec
13607 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13609 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13610 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13617 mv $tmp/config.h
$ac_file
13621 rm -f $tmp/config.h
13625 cat >>$CONFIG_STATUS <<\EOF
13628 # CONFIG_COMMANDS section.
13630 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13631 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13632 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13637 ### Make the necessary directories, if they don't exist.
13638 for dir
in etc lisp
; do
13639 test -d ${dir} || mkdir
${dir}
13642 # Build src/Makefile from ${srcdir}/src/Makefile.c
13643 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13644 # This must be done after src/config.h is built, since we rely on that file.
13646 # Now get this: Some word that is part of the ${srcdir} directory name
13647 # or the ${configuration} value might, just might, happen to be an
13648 # identifier like `sun4' or `i386' or something, and be predefined by
13649 # the C preprocessor to some helpful value like 1, or maybe the empty
13650 # string. Needless to say consequent macro substitutions are less
13651 # than conducive to the makefile finding the correct directory.
13652 undefs
="`echo $top_srcdir $configuration $canonical |
13653 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13654 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13657 echo creating src
/epaths.h
13658 ${MAKE-make} epaths-force
13660 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13661 # `..' to `. .' unless invoked with -traditional
13663 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13664 CPPFLAGS
="$CPPFLAGS -traditional"
13667 echo creating lib-src
/Makefile
13669 rm -f junk.c junk1.c junk2.c
13670 sed -e '/start of cpp stuff/q' \
13671 < Makefile.c
> junk1.c
13672 sed -e '1,/start of cpp stuff/d'\
13673 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13674 < Makefile.c
> junk.c
13675 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13676 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13677 cat junk1.c junk2.c
> Makefile.new
13678 rm -f junk.c junk1.c junk2.c
13679 chmod 444 Makefile.new
13680 mv -f Makefile.new Makefile
13683 echo creating src
/Makefile
13685 rm -f junk.c junk1.c junk2.c
13686 sed -e '/start of cpp stuff/q' \
13687 < Makefile.c
> junk1.c
13688 sed -e '1,/start of cpp stuff/d'\
13689 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13690 < Makefile.c
> junk.c
13691 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13692 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13693 cat junk1.c junk2.c
> Makefile.new
13694 rm -f junk.c junk1.c junk2.c
13695 chmod 444 Makefile.new
13696 mv -f Makefile.new Makefile
13699 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13700 echo creating src
/.gdbinit
13701 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13704 # This is how we know whether to re-run configure in certain cases.
13705 touch src
/config.stamp
13712 cat >>$CONFIG_STATUS <<\EOF
13714 { (exit 0); exit 0; }
13716 chmod +x
$CONFIG_STATUS
13717 ac_clean_files
=$ac_clean_files_save
13719 # configure is writing to config.log, and then calls config.status.
13720 # config.status does its own redirection, appending to config.log.
13721 # Unfortunately, on DOS this fails, as config.log is still kept open
13722 # by configure, so config.status won't be able to write to it; its
13723 # output is simply discarded. So we exec the FD to /dev/null,
13724 # effectively closing config.log, so it can be properly (re)opened and
13725 # appended to by config.status. When coming back to configure, we
13726 # need to make the FD available again.
13727 if test "$no_create" != yes; then
13730 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13733 # would make configure fail if this is the last instruction.
13734 $ac_cs_success ||
{ (exit 1); exit 1; }