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 --x-includes=DIR X include files are
in DIR
659 --x-libraries=DIR X library files are
in DIR
662 --build=BUILD configure
for building on BUILD
[guessed
]
663 --host=HOST build programs to run on HOST
[BUILD
]
667 if test -n "$ac_init_help"; then
672 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
673 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
674 --disable-largefile omit support
for large files
677 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
678 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
679 --without-gcc don
't use GCC to compile Emacs if GCC is found
680 --without-pop don't support POP
mail retrieval with movemail
681 --with-kerberos support Kerberos-authenticated POP
682 --with-kerberos5 support Kerberos version
5 authenticated POP
683 --with-hesiod support Hesiod to get the POP server
host
684 --with-x-toolkit=KIT use an X toolkit
(KIT
= yes
/lucid
/athena
/motif
/no
)
685 --with-xpm use
-lXpm for displaying XPM images
686 --with-jpeg use
-ljpeg for displaying JPEG images
687 --with-tiff use
-ltiff for displaying TIFF images
688 --with-gif use
-lungif for displaying GIF images
689 --with-png use
-lpng for displaying PNG images
690 --without-toolkit-scroll-bars
691 don
't use Motif or Xaw3d scroll bars
692 --without-xim don't use X11 XIM
693 --with-x use the X Window System
695 Some influential environment variables
:
696 CC C compiler
command
697 CFLAGS C compiler flags
698 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
699 nonstandard directory
<lib dir
>
700 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
701 headers
in a nonstandard directory
<include dir
>
704 Use these variables to override the choices made by
`configure' or to help
705 it to find libraries and programs with nonstandard names/locations.
710 if test "$ac_init_help" = "recursive"; then
711 # If there are subdirs, report their specific --help.
713 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
715 # A "../" for each directory in /$ac_subdir.
716 ac_dots=`echo $ac_subdir |
717 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
720 .) # No --srcdir option. We are building in place.
721 ac_sub_srcdir=$srcdir ;;
722 [\\/]* | ?:[\\/]* ) # Absolute path.
723 ac_sub_srcdir=$srcdir/$ac_subdir ;;
725 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
728 # Check for guested configure; otherwise get Cygnus style configure.
729 if test -f $ac_sub_srcdir/configure.gnu; then
731 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
732 elif test -f $ac_sub_srcdir/configure; then
734 $SHELL $ac_sub_srcdir/configure --help=recursive
735 elif test -f $ac_sub_srcdir/configure.ac ||
736 test -f $ac_sub_srcdir/configure.in; then
740 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
746 test -n "$ac_init_help" && exit 0
747 if $ac_init_version; then
750 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
751 Free Software Foundation, Inc.
752 This configure script is free software; the Free Software Foundation
753 gives unlimited permission to copy, distribute and modify it.
759 This file contains any messages produced by compilers while
760 running configure, to aid debugging if configure makes a mistake.
762 It was created by $as_me, which was
763 generated by GNU Autoconf 2.52. Invocation command line was
774 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
775 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
776 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
777 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
778 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
780 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
781 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
783 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
784 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
785 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
786 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
787 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
788 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
789 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
803 # Keep a trace of the command line.
804 # Strip out --no-create and --no-recursion so they do not pile up.
805 # Also quote any args containing shell meta-characters.
811 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
812 | --no-cr | --no-c) ;;
813 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
814 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
815 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
816 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
817 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
819 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
822 # Get rid of the leading space.
825 # When interrupted or exit'd, cleanup temporary files, and complete
826 # config.log. We remove comments because anyway the quotes in there
827 # would cause problems or look ugly.
829 # Save into config.log some information that might help in debugging.
831 echo "## ----------------- ##" >&5
832 echo "## Cache variables. ##" >&5
833 echo "## ----------------- ##" >&5
835 # The following way of writing the cache mishandles newlines in values,
838 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
841 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
850 sed "/^$/d" confdefs.h >conftest.log
851 if test -s conftest.log; then
853 echo "## ------------ ##" >&5
854 echo "## confdefs.h. ##" >&5
855 echo "## ------------ ##" >&5
860 test "$ac_signal" != 0 &&
861 echo "$as_me: caught signal $ac_signal" >&5
862 echo "$as_me: exit $exit_status" >&5
863 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
866 for ac_signal in 1 2 13 15; do
867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
872 rm -rf conftest* confdefs.h
873 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
876 # Let the site file select an alternate cache file if it wants to.
877 # Prefer explicitly selected file to automatically selected ones.
878 if test -z "$CONFIG_SITE"; then
879 if test "x$prefix" != xNONE; then
880 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
882 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
885 for ac_site_file in $CONFIG_SITE; do
886 if test -r "$ac_site_file"; then
887 { echo "$as_me:887: loading site script $ac_site_file" >&5
888 echo "$as_me: loading site script $ac_site_file" >&6;}
889 cat "$ac_site_file" >&5
894 if test -r "$cache_file"; then
895 # Some versions of bash will fail to source /dev/null (special
896 # files actually), so we avoid doing that.
897 if test -f "$cache_file"; then
898 { echo "$as_me:898: loading cache $cache_file" >&5
899 echo "$as_me: loading cache $cache_file" >&6;}
901 [\\/]* | ?:[\\/]* ) . $cache_file;;
906 { echo "$as_me:906: creating cache $cache_file" >&5
907 echo "$as_me: creating cache $cache_file" >&6;}
911 # Check that the precious variables saved in the cache have kept the same
913 ac_cache_corrupted=false
914 for ac_var in `(set) 2>&1 |
915 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
916 eval ac_old_set=\$ac_cv_env_${ac_var}_set
917 eval ac_new_set=\$ac_env_${ac_var}_set
918 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
919 eval ac_new_val="\$ac_env_${ac_var}_value"
920 case $ac_old_set,$ac_new_set in
922 { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
923 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
924 ac_cache_corrupted=: ;;
926 { echo "$as_me:926: error: \`$ac_var' was not
set in the previous run
" >&5
927 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
928 ac_cache_corrupted=: ;;
931 if test "x$ac_old_val" != "x$ac_new_val"; then
932 { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5
933 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
934 { echo "$as_me:934: former value
: $ac_old_val" >&5
935 echo "$as_me: former value
: $ac_old_val" >&2;}
936 { echo "$as_me:936: current value
: $ac_new_val" >&5
937 echo "$as_me: current value
: $ac_new_val" >&2;}
941 # Pass precious variables to config.status. It doesn't matter if
942 # we pass some twice (in addition to the command line arguments).
943 if test "$ac_new_set" = set; then
945 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
946 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
947 ac_configure_args="$ac_configure_args '$ac_arg'"
949 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
954 if $ac_cache_corrupted; then
955 { echo "$as_me:955: error
: changes
in the environment can compromise the build
" >&5
956 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
957 { { echo "$as_me:957: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
958 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
959 { (exit 1); exit 1; }; }
963 ac_cpp='$CPP $CPPFLAGS'
964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
968 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
969 *c*,-n*) ECHO_N= ECHO_C='
971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
974 echo "#! $SHELL" >conftest.sh
975 echo "exit 0" >>conftest.sh
977 if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5
978 (PATH=".;."; conftest.sh) 2>&5
980 echo "$as_me:980: \$? = $ac_status" >&5
981 (exit $ac_status); }; then
982 ac_path_separator=';'
986 PATH_SEPARATOR="$ac_path_separator"
989 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
991 lispdir='${datadir}/emacs/${version}/lisp'
992 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
993 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
994 lisppath='${locallisppath}:${lispdir}'
995 etcdir='${datadir}/emacs/${version}/etc'
996 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
997 docdir='${datadir}/emacs/${version}/etc'
999 # Check whether --with-gcc or --without-gcc was given.
1000 if test "${with_gcc+set}" = set; then
1005 # Check whether --with-pop or --without-pop was given.
1006 if test "${with_pop+set}" = set; then
1008 if test "$withval" = yes; then
1009 cat >>confdefs.h <<\EOF
1010 #define MAIL_USE_POP 1
1016 cat >>confdefs.h <<\EOF
1017 #define MAIL_USE_POP 1
1022 # Check whether --with-kerberos or --without-kerberos was given.
1023 if test "${with_kerberos+set}" = set; then
1024 withval="$with_kerberos"
1025 cat >>confdefs.h <<\EOF
1031 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1032 if test "${with_kerberos5+set}" = set; then
1033 withval="$with_kerberos5"
1034 if test "${with_kerberos5+set}" = set; then
1035 if test "${with_kerberos+set}" != set; then
1037 cat >>confdefs.h <<\EOF
1043 cat >>confdefs.h <<\EOF
1049 # Check whether --with-hesiod or --without-hesiod was given.
1050 if test "${with_hesiod+set}" = set; then
1051 withval="$with_hesiod"
1052 cat >>confdefs.h <<\EOF
1058 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1059 if test "${with_x_toolkit+set}" = set; then
1060 withval="$with_x_toolkit"
1061 case "${withval}" in
1062 y | ye | yes ) val=athena ;;
1064 l | lu | luc | luci | lucid ) val=lucid ;;
1065 a | at | ath | athe | athen | athena ) val=athena ;;
1066 m | mo | mot | moti | motif ) val=motif ;;
1068 { { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\;
1069 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1070 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1071 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1072 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1073 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&2;}
1074 { (exit 1); exit 1; }; }
1081 # Check whether --with-xpm or --without-xpm was given.
1082 if test "${with_xpm+set}" = set; then
1087 # Check whether --with-jpeg or --without-jpeg was given.
1088 if test "${with_jpeg+set}" = set; then
1089 withval="$with_jpeg"
1093 # Check whether --with-tiff or --without-tiff was given.
1094 if test "${with_tiff+set}" = set; then
1095 withval="$with_tiff"
1099 # Check whether --with-gif or --without-gif was given.
1100 if test "${with_gif+set}" = set; then
1105 # Check whether --with-png or --without-png was given.
1106 if test "${with_png+set}" = set; then
1111 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1112 if test "${with_toolkit_scroll_bars+set}" = set; then
1113 withval="$with_toolkit_scroll_bars"
1117 # Check whether --with-xim or --without-xim was given.
1118 if test "${with_xim+set}" = set; then
1123 #### Make srcdir absolute, if it isn't already. It's important to
1124 #### avoid running the path through pwd unnecessarily, since pwd can
1125 #### give you automounter prefixes, which can go away. We do all this
1126 #### so Emacs can find its files when run uninstalled.
1127 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1132 ## We may be able to use the $PWD environment variable to make this
1133 ## absolute. But sometimes PWD is inaccurate.
1134 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1138 srcdir="`(cd ${srcdir}; pwd)`"
1141 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1144 #### Check if the source directory already has a configured system in it.
1145 if test `pwd` != `(cd ${srcdir} && pwd)` \
1146 && test -f "${srcdir}/src/config.h" ; then
1147 { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used
1148 as a build directory right now; it has been configured in its own
1149 right. To configure in another directory as well, you MUST
1150 use GNU make. If you do not have GNU make, then you must
1151 now do \`make distclean' in ${srcdir},
1152 and
then run
$0 again.
" >&5
1153 echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
1154 as a build directory right now; it has been configured in its own
1155 right. To configure in another directory as well, you MUST
1156 use GNU make. If you do not have GNU make, then you must
1157 now do \`make distclean
' in ${srcdir},
1158 and then run $0 again." >&2;}
1160 extrasub='/^VPATH
[ ]*=/c\
1161 vpath
%.c $
(srcdir
)\
1162 vpath
%.h $
(srcdir
)\
1163 vpath
%.y $
(srcdir
)\
1164 vpath
%.l $
(srcdir
)\
1165 vpath
%.s $
(srcdir
)\
1166 vpath
%.
in $
(srcdir
)\
1167 vpath
%.texi $
(srcdir
)'
1170 #### Given the configuration name, set machfile and opsysfile to the
1171 #### names of the m/*.h and s/*.h files we should use.
1173 ### Canonicalize the configuration name.
1176 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1177 if test -f $ac_dir/install-sh; then
1179 ac_install_sh="$ac_aux_dir/install-sh -c"
1181 elif test -f $ac_dir/install.sh; then
1183 ac_install_sh="$ac_aux_dir/install.sh -c"
1185 elif test -f $ac_dir/shtool; then
1187 ac_install_sh="$ac_aux_dir/shtool install -c"
1191 if test -z "$ac_aux_dir"; then
1192 { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1193 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1194 { (exit 1); exit 1; }; }
1196 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1197 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1198 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1200 # Make sure we can run config.sub.
1201 $ac_config_sub sun4 >/dev/null 2>&1 ||
1202 { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5
1203 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1204 { (exit 1); exit 1; }; }
1206 echo "$as_me:1206: checking build system type" >&5
1207 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1208 if test "${ac_cv_build+set}" = set; then
1209 echo $ECHO_N "(cached) $ECHO_C" >&6
1211 ac_cv_build_alias=$build_alias
1212 test -z "$ac_cv_build_alias" &&
1213 ac_cv_build_alias=`$ac_config_guess`
1214 test -z "$ac_cv_build_alias" &&
1215 { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5
1216 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1217 { (exit 1); exit 1; }; }
1218 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1219 { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1220 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1221 { (exit 1); exit 1; }; }
1224 echo "$as_me:1224: result: $ac_cv_build" >&5
1225 echo "${ECHO_T}$ac_cv_build" >&6
1227 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1228 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1229 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1231 echo "$as_me:1231: checking host system type" >&5
1232 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1233 if test "${ac_cv_host+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1236 ac_cv_host_alias=$host_alias
1237 test -z "$ac_cv_host_alias" &&
1238 ac_cv_host_alias=$ac_cv_build_alias
1239 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1241 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1242 { (exit 1); exit 1; }; }
1245 echo "$as_me:1245: result: $ac_cv_host" >&5
1246 echo "${ECHO_T}$ac_cv_host" >&6
1248 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1249 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1250 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1253 configuration=${host_alias-$host}
1255 ### If you add support for a new configuration, add code to this
1256 ### switch statement to recognize your configuration name and select
1257 ### the appropriate operating system and machine description files.
1259 ### You would hope that you could choose an m/*.h file pretty much
1260 ### based on the machine portion of the configuration name, and an s-
1261 ### file based on the operating system portion. However, it turns out
1262 ### that each m/*.h file is pretty manufacturer-specific - for
1263 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1264 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1265 ### machines. So we basically have to have a special case for each
1266 ### configuration name.
1268 ### As far as handling version numbers on operating systems is
1269 ### concerned, make sure things will fail in a fixable way. If
1270 ### /etc/MACHINES doesn't say anything about version numbers
, be
1271 ### prepared to handle anything reasonably. If version numbers
1272 ### matter, be sure /etc/MACHINES says something about it.
1274 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1275 ### "System V Release 4"; he writes, "The old convention encouraged
1276 ### confusion between `system' and `release' levels'."
1278 machine
='' opsys
='' unported
=no
1279 case "${canonical}" in
1284 case "${canonical}" in
1285 alpha
*-*-netbsd*) machine
=alpha
;;
1286 i
[3456]86-*-netbsd*) machine
=intel386
;;
1288 # This is somewhat bogus.
1289 machine
=hp9000s300
;;
1290 powerpc-apple-netbsd
*) machine
=macppc
;;
1291 mips-
*-netbsd*) machine
=pmax
;;
1292 mipsel-
*-netbsd*) machine
=pmax
;;
1293 ns32k-
*-netbsd*) machine
=ns32000
;;
1294 powerpc-
*-netbsd*) machine
=macppc
;;
1295 sparc
*-*-netbsd*) machine
=sparc
;;
1296 vax-
*-netbsd*) machine
=vax
;;
1297 arm-
*-netbsd*) machine
=arm
;;
1304 case "${canonical}" in
1305 alpha
*-*-openbsd*) machine
=alpha
;;
1306 i386-
*-openbsd*) machine
=intel386
;;
1307 m68k-
*-openbsd*) machine
=hp9000s300
;;
1308 mipsel-
*-openbsd*) machine
=pmax
;;
1309 ns32k-
*-openbsd*) machine
=ns32000
;;
1310 sparc-
*-openbsd*) machine
=sparc
;;
1311 vax-
*-openbsd*) machine
=vax
;;
1316 arm-acorn-riscix1.1
* )
1317 machine
=acorn opsys
=riscix1-1
1319 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1320 ## This name is riscix12 instead of riscix1.2
1321 ## to avoid a file name conflict on MSDOS.
1322 machine
=acorn opsys
=riscix12
1328 case "${canonical}" in
1329 i
[345]86-*-bsdi*) machine
=intel386
;;
1330 sparc-
*-bsdi*) machine
=sparc
;;
1331 powerpc-
*-bsdi*) machine
=macppc
;;
1333 case "${canonical}" in
1334 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1335 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1336 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1337 *-*-bsdi3* ) opsys
=bsdos3
;;
1338 *-*-bsdi4* ) opsys
=bsdos4
;;
1343 ## Strictly speaking, we need the version of the alliant operating
1344 ## system to choose the right machine file, but currently the
1345 ## configuration name doesn't tell us enough to choose the right
1346 ## one; we need to give alliants their own operating system name to
1347 ## do this right. When someone cares, they can help us.
1349 machine
=alliant4 opsys
=bsd4-2
1352 machine
=alliant-2800 opsys
=bsd4-3
1355 ## Alpha (DEC) machines.
1357 machine
=alpha opsys
=osf1
1358 # This is needed to find X11R6.1 libraries for certain tests.
1359 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1360 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1361 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1362 # due to non-traditional preprocessing with the current compiler
1363 # defaults. OSF 4 can also have that compiler version, and there
1364 # seems always to have been a usable /usr/bin/cpp.
1365 NON_GNU_CPP
=/usr
/bin
/cpp
1366 case "${canonical}" in
1367 alpha
*-dec-osf[5-9]*)
1372 alpha
*-*-linux-gnu* )
1373 machine
=alpha opsys
=gnu-linux
1377 machine
=arm opsys
=gnu-linux
1382 machine
=macppc opsys
=gnu-linux
1387 machine
=altos opsys
=usg5-2
1392 machine
=amdahl opsys
=usg5-2-2
1395 ## Apollo, Domain/OS
1397 machine
=apollo opsys
=bsd4-3
1400 ## AT&T 3b2, 3b5, 3b15, 3b20
1402 machine
=att3b opsys
=usg5-2-2
1405 ## AT&T 3b1 - The Mighty Unix PC!
1407 machine
=7300 opsys
=usg5-2-2
1412 machine
=ibmrs6000 opsys
=aix3-2
1417 machine
=dpx2 opsys
=usg5-3
1422 machine
=sps7 opsys
=usg5-2
1425 ## CCI 5/32, 6/32 -- see "Tahoe".
1428 ## I don't know what configuration name to use for this; config.sub
1429 ## doesn't seem to know anything about it. Hey, Celerity users, get
1430 ## in touch with us!
1431 celerity-celerity-bsd
* )
1432 machine
=celerity opsys
=bsd4-2
1436 ## What operating systems does this chip run that Emacs has been
1440 ## We'll use the catch-all code at the bottom to guess the
1441 ## operating system.
1445 *-convex-bsd* |
*-convex-convexos* )
1446 machine
=convex opsys
=bsd4-3
1447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1448 NON_GNU_CPP
="cc -E -P"
1452 i
[3456]86-cubix-sysv* )
1453 machine
=intel386 opsys
=usg5-3
1457 cydra
*-cydrome-sysv* )
1458 machine
=cydra5 opsys
=usg5-3
1461 ## Data General AViiON Machines
1462 ## DG changed naming conventions with the release of 5.4.4.10, they
1463 ## dropped the initial 5.4 but left the intervening R. Because of the
1464 ## R this shouldn't conflict with older versions of the OS (which I
1465 ## think were named like dgux4.*). In addition, DG new AViiONs series
1466 ## uses either Motorola M88k or Intel Pentium CPUs.
1467 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1468 machine
=aviion opsys
=dgux4
1470 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1471 ## This name is dgux5-4-3 instead of dgux5-4r3
1472 ## to avoid a file name conflict on MSDOS.
1473 machine
=aviion opsys
=dgux5-4-3
1475 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1476 machine
=aviion opsys
=dgux5-4r2
1479 machine
=aviion opsys
=dgux
1482 ## Data General AViiON Intel (x86) Machines
1483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1485 i
[345]86-dg-dguxR4* )
1486 machine
=aviion-intel opsys
=dgux4
1490 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1491 machine
=pmax opsys
=bsd4-2
1493 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1494 machine
=pmax opsys
=bsd4-3
1497 machine
=pmax opsys
=ultrix4-3
1500 machine
=pmax opsys
=osf1
1502 mips-dec-mach_bsd4.3
* )
1503 machine
=pmax opsys
=mach-bsd4-3
1506 ## Motorola Delta machines
1507 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1508 machine
=delta opsys
=usg5-3
1509 if test -z "`type gnucc | grep 'not found'`"
1511 if test -s /etc
/167config
1512 then CC
="gnucc -m68040"
1513 else CC
="gnucc -m68881"
1516 if test -z "`type gcc | grep 'not found'`"
1522 m88k-motorola-sysv4
* )
1523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1525 # I hope there are not other 4.0 versions for this machine
1526 # which really need usg5-4 instead.
1527 machine
=delta88k opsys
=usg5-4-2
1529 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1530 machine
=delta88k opsys
=usg5-3
1535 machine
=dual opsys
=usg5-2
1537 m68
*-dual-uniplus* )
1538 machine
=dual opsys
=unipl5-2
1543 machine
=elxsi opsys
=usg5-2
1548 machine
=ns16000 opsys
=umax
1551 ## The GEC 63 - apparently, this port isn't really finished yet.
1552 # I'm sure we finished off the last of the machines, though. -- fx
1554 ## Gould Power Node and NP1
1556 machine
=gould opsys
=bsd4-2
1559 machine
=gould opsys
=bsd4-3
1562 machine
=gould-np1 opsys
=bsd4-3
1565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1566 ## as far as Emacs is concerned).
1568 # Build needs to be different on 7.0 and later releases
1569 case "`uname -r`" in
1570 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1571 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1573 NON_GNU_CPP
="/lib/cpp"
1575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1577 machine
=nh3000 opsys
=cxux
1579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1580 powerpc-harris-powerunix
)
1581 machine
=nh6000 opsys
=powerunix
1582 NON_GNU_CPP
="cc -Xo -E -P"
1584 ## SR2001/SR2201 running HI-UX/MPP
1585 hppa1.1
-hitachi-hiuxmpp* )
1586 machine
=sr2k opsys
=hiuxmpp
1588 hppa1.1
-hitachi-hiuxwe2* )
1589 machine
=sr2k opsys
=hiuxwe2
1592 xps
*-honeywell-sysv* )
1593 machine
=xps100 opsys
=usg5-2
1596 ## HP 9000 series 200 or 300
1598 machine
=hp9000s300 opsys
=bsd4-3
1600 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1602 case "`uname -r`" in
1603 ## Someone's system reports A.B8.05 for this.
1604 ## I wonder what other possibilities there are.
1605 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1606 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1607 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1608 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1609 *) machine
=hp9000s300 opsys
=hpux
;;
1613 ## HP 9000 series 700 and 800, running HP/UX
1615 machine
=hp800 opsys
=hpux
1618 machine
=hp800 opsys
=hpux8
1620 hppa
*-hp-hpux9shr* )
1621 machine
=hp800 opsys
=hpux9shr
1624 machine
=hp800 opsys
=hpux9
1626 hppa
*-hp-hpux1[0-9]* )
1627 machine
=hp800 opsys
=hpux10
1630 ## HP 9000 series 700 and 800, running HP/UX
1632 ## Cross-compilation? Nah!
1633 case "`uname -r`" in
1634 ## Someone's system reports A.B8.05 for this.
1635 ## I wonder what other possibilities there are.
1636 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1637 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1638 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1639 *) machine
=hp800 opsys
=hpux10
;;
1643 machine
=hp800 opsys
=nextstep
1648 machine
=orion opsys
=bsd4-2
1650 clipper-orion-bsd
* )
1651 machine
=orion105 opsys
=bsd4-2
1655 i
[3456]86-ibm-aix1.1
* )
1656 machine
=ibmps2-aix opsys
=usg5-2-2
1658 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1659 machine
=ibmps2-aix opsys
=usg5-3
1662 machine
=ibm370aix opsys
=usg5-3
1665 machine
=ibms390 opsys
=gnu-linux
1667 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1668 machine
=ibmrs6000 opsys
=aix3-1
1670 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1671 machine
=ibmrs6000 opsys
=aix3-2-5
1673 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1674 machine
=ibmrs6000 opsys
=aix4-1
1676 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1677 machine
=ibmrs6000 opsys
=aix4-2
1679 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1680 machine
=ibmrs6000 opsys
=aix4
1682 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1683 machine
=ibmrs6000 opsys
=aix4-1
1685 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1686 machine
=ibmrs6000 opsys
=aix3-2
1689 machine
=ibmrt opsys
=bsd4-3
1692 machine
=ibmrt opsys
=bsd4-2
1695 machine
=ibmrt opsys
=bsd4-3
1698 machine
=ibmrt opsys
=bsd4-2
1701 machine
=ibmrt opsys
=bsd4-3
1704 machine
=ibmrt opsys
=bsd4-3
1707 machine
=ibmrt-aix opsys
=usg5-2-2
1710 ## Integrated Solutions `Optimum V'
1712 machine
=isi-ov opsys
=bsd4-2
1715 machine
=isi-ov opsys
=bsd4-3
1718 ## Intel 386 machines where we do care about the manufacturer
1719 i
[3456]86-intsys-sysv* )
1720 machine
=is386 opsys
=usg5-2-2
1724 i
[3456]86-prime-sysv* )
1725 machine
=i386 opsys
=usg5-3
1728 ## Sequent Symmetry running Dynix
1729 i
[3456]86-sequent-bsd* )
1730 machine
=symmetry opsys
=bsd4-3
1733 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1734 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1735 machine
=sequent-ptx opsys
=ptx4
1736 NON_GNU_CPP
=/lib
/cpp
1739 ## Sequent Symmetry running DYNIX/ptx
1740 ## Use the old cpp rather than the newer ANSI one.
1741 i
[3456]86-sequent-ptx* )
1742 machine
=sequent-ptx opsys
=ptx
1743 NON_GNU_CPP
="/lib/cpp"
1746 ## ncr machine running svr4.3.
1747 i
[3456]86-ncr-sysv4.3
)
1748 machine
=ncr386 opsys
=usg5-4-3
1751 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1752 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1753 i
[3456]86-ncr-sysv* )
1754 machine
=ncr386 opsys
=usg5-4-2
1757 ## Intel Paragon OSF/1
1759 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1764 machine
=i860 opsys
=usg5-4
1765 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1766 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1769 ## Macintosh PowerPC
1770 powerpc
*-*-linux-gnu* )
1771 machine
=macppc opsys
=gnu-linux
1774 ## Masscomp machines
1775 m68
*-masscomp-rtu* )
1776 machine
=masscomp opsys
=rtu
1779 ## Megatest machines
1780 m68
*-megatest-bsd* )
1781 machine
=mega68 opsys
=bsd4-2
1784 ## Workstations sold by MIPS
1785 ## This is not necessarily all workstations using the MIPS processor -
1786 ## Irises are produced by SGI, and DECstations by DEC.
1788 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1789 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1790 ## it gives for choosing between the alternatives seems to be "Use
1791 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1792 ## the BSD world." I'll assume that these are instructions for
1793 ## handling two odd situations, and that every other situation
1794 ## should use mips.h and usg5-2-2, they being listed first.
1797 ## Fall through to the general code at the bottom to decide on the OS.
1799 mips-mips-riscos4
* )
1800 machine
=mips4 opsys
=bsd4-3
1801 NON_GNU_CC
="cc -systype bsd43"
1802 NON_GNU_CPP
="cc -systype bsd43 -E"
1804 mips-mips-riscos5
* )
1805 machine
=mips4 opsys
=riscos5
1806 NON_GNU_CC
="cc -systype bsd43"
1807 NON_GNU_CPP
="cc -systype bsd43 -E"
1810 machine
=mips opsys
=bsd4-3
1813 machine
=mips opsys
=usg5-2-2
1817 m68
*-next-* | m68k-
*-nextstep* )
1818 machine
=m68k opsys
=nextstep
1821 ## The complete machine from National Semiconductor
1823 machine
=ns32000 opsys
=usg5-2
1827 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1828 machine
=tower32 opsys
=usg5-2-2
1830 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1831 machine
=tower32v3 opsys
=usg5-3
1836 machine
=ews4800 opsys
=ux4800
1839 ## Nixdorf Targon 31
1840 m68
*-nixdorf-sysv* )
1841 machine
=targon31 opsys
=usg5-2-2
1846 machine
=nu opsys
=usg5-2
1851 machine
=plexus opsys
=usg5-2
1854 ## PowerPC reference platform
1855 powerpcle-
*-solaris2* )
1861 ## I don't really have any idea what sort of processor the Pyramid has,
1862 ## so I'm assuming it is its own architecture.
1863 pyramid-pyramid-bsd
* )
1864 machine
=pyramid opsys
=bsd4-2
1868 ns32k-sequent-bsd4.2
* )
1869 machine
=sequent opsys
=bsd4-2
1871 ns32k-sequent-bsd4.3
* )
1872 machine
=sequent opsys
=bsd4-3
1876 mips-siemens-sysv
* | mips-sni-sysv
*)
1877 machine
=mips-siemens opsys
=usg5-4
1878 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1879 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1882 ## Silicon Graphics machines
1883 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1885 machine
=irist opsys
=iris3-5
1887 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1888 machine
=irist opsys
=iris3-6
1892 machine
=iris4d opsys
=irix3-3
1895 machine
=iris4d opsys
=irix4-0
1898 machine
=iris4d opsys
=irix6-5
1899 # Without defining _LANGUAGE_C, things get masked out in the headers
1900 # so that, for instance, grepping for `free' in stdlib.h fails and
1901 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1902 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1903 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1906 machine
=iris4d opsys
=irix6-0
1907 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1908 # but presumably it does no harm.
1909 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1910 # -32 probably isn't necessary in later v.6s -- anyone know which?
1911 NON_GCC_TEST_OPTIONS
=-32
1913 mips-sgi-irix5.
[01]* )
1914 machine
=iris4d opsys
=irix5-0
1916 mips-sgi-irix5
* | mips-sgi-irix
* )
1917 machine
=iris4d opsys
=irix5-2
1922 machine
=news opsys
=bsd4-2
1925 machine
=news opsys
=bsd4-3
1927 m68
*-sony-newsos3* | m68
*-sony-news3*)
1928 machine
=news opsys
=bsd4-3
1930 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1931 machine
=news-risc opsys
=bsd4-3
1933 mips-sony-newsos6
* )
1934 machine
=news-r6 opsys
=newsos6
1937 machine
=news-risc opsys
=newsos5
1942 machine
=stride opsys
=usg5-2
1946 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1947 machine
=sparc opsys
=gnu-linux
1950 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1951 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1952 | rs6000-
*-solaris2*)
1953 case "${canonical}" in
1954 m68
*-sunos1* ) machine
=sun1
;;
1955 m68
*-sunos2* ) machine
=sun2
;;
1956 m68
* ) machine
=sun3
;;
1957 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1958 i
[3456]86-*-* ) machine
=intel386
;;
1959 powerpcle
* ) machine
=powerpcle
;;
1960 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1961 sparc
* ) machine
=sparc
;;
1964 case "${canonical}" in
1965 ## The Sun386 didn't get past 4.0.
1966 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1967 *-sunos4.0
* ) opsys
=sunos4-0
;;
1968 *-sunos4.1.
[3-9]*noshare
)
1969 ## This name is sunos413 instead of sunos4-1-3
1970 ## to avoid a file name conflict on MSDOS.
1972 NON_GNU_CPP
=/usr
/lib
/cpp
1973 NON_GCC_TEST_OPTIONS
=-Bstatic
1974 GCC_TEST_OPTIONS
=-static
1976 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1978 NON_GNU_CPP
=/usr
/lib
/cpp
1980 *-sunos4* |
*-sunos )
1982 NON_GCC_TEST_OPTIONS
=-Bstatic
1983 GCC_TEST_OPTIONS
=-static
1985 *-sunos5.3
* |
*-solaris2.3
* )
1987 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1989 *-sunos5.4
* |
*-solaris2.4
* )
1991 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1994 *-sunos5.5
* |
*-solaris2.5
* )
1996 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1999 *-sunos5* |
*-solaris* )
2001 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2005 ## Watch out for a compiler that we know will not work.
2006 case "${canonical}" in
2007 *-solaris* |
*-sunos5* )
2008 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2009 ## /usr/ucb/cc doesn't work;
2010 ## we should find some other compiler that does work.
2018 machine
=sparc opsys
=nextstep
2022 m68
*-tadpole-sysv* )
2023 machine
=tad68k opsys
=usg5-3
2027 tahoe-tahoe-bsd4.2
* )
2028 machine
=tahoe opsys
=bsd4-2
2030 tahoe-tahoe-bsd4.3
* )
2031 machine
=tahoe opsys
=bsd4-3
2034 ## Tandem Integrity S2
2036 machine
=tandem-s2 opsys
=usg5-3
2040 m88k-tektronix-sysv3
* )
2041 machine
=tekxd88 opsys
=usg5-3
2044 ## Tektronix 16000 box (6130?)
2045 ns16k-tektronix-bsd
* )
2046 machine
=ns16000 opsys
=bsd4-2
2049 ## src/m/tek4300.h hints that this is a m68k machine.
2050 m68
*-tektronix-bsd* )
2051 machine
=tek4300 opsys
=bsd4-3
2055 ## We seem to have lost the machine-description file titan.h!
2057 machine
=titan opsys
=usg5-3
2060 ## Ustation E30 (SS5E)
2061 m68
*-unisys-uniplus* )
2062 machine
=ustation opsystem
=unipl5-2
2068 case "${canonical}" in
2069 *-bsd4.1
* ) opsys
=bsd4-1
;;
2070 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2071 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2072 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2073 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2074 *-vms* ) opsys
=vms
;;
2080 ns16k-whitechapel-
* )
2082 ## We don't know what sort of OS runs on these; we'll let the
2083 ## operating system guessing code below try.
2088 machine
=wicat opsys
=usg5-2
2093 machine
=ia64 opsys
=gnu-linux
2096 ## Intel 386 machines where we don't care about the manufacturer
2099 case "${canonical}" in
2100 *-lynxos* ) opsys
=lynxos
;;
2101 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2102 *-isc2.2
* ) opsys
=isc2-2
;;
2103 *-isc4.0
* ) opsys
=isc4-0
;;
2104 *-isc4.
* ) opsys
=isc4-1
2105 GCC_TEST_OPTIONS
=-posix
2106 NON_GCC_TEST_OPTIONS
=-Xp
2108 *-isc* ) opsys
=isc3-0
;;
2109 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2110 *-esix* ) opsys
=esix
;;
2111 *-xenix* ) opsys
=xenix
;;
2112 *-linux-gnu* ) opsys
=gnu-linux
;;
2113 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2114 *-sco3.2v5
* ) opsys
=sco5
2115 NON_GNU_CPP
=/lib
/cpp
2116 # Prevent -belf from being passed to $CPP.
2117 # /lib/cpp does not accept it.
2118 OVERRIDE_CPPFLAGS
=" "
2120 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2121 *-386bsd* ) opsys
=386bsd
;;
2122 *-freebsd* ) opsys
=freebsd
;;
2123 *-nextstep* ) opsys
=nextstep
;;
2124 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2128 ## m68k Linux-based GNU system
2130 machine
=m68k opsys
=gnu-linux
2133 ## Mips Linux-based GNU system
2135 machine
=mips opsys
=gnu-linux
2139 sparc-fujitsu-sysv4
* )
2140 machine
=sparc opsys
=uxpds
2141 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2146 f301-fujitsu-uxpv4.1
)
2147 machine
=f301 opsys
=uxpv
2155 ### If the code above didn't choose an operating system, just choose
2156 ### an operating system based on the configuration name. You really
2157 ### only want to use this when you have no idea what the right
2158 ### operating system is; if you know what operating systems a machine
2159 ### runs, it's cleaner to make it explicit in the case statement
2161 if test x
"${opsys}" = x
; then
2162 case "${canonical}" in
2163 *-gnu* ) opsys
=gnu
;;
2164 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2165 *-bsd4.2
) opsys
=bsd4-2
;;
2166 *-bsd4.3
) opsys
=bsd4-3
;;
2167 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2168 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2169 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2170 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2171 *-sysv4.2uw
* ) opsys
=unixware
;;
2172 *-sysv4.1
* |
*-sysvr4.1
* )
2173 NON_GNU_CPP
=/usr
/lib
/cpp
2175 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2176 if [ x
$NON_GNU_CPP = x
]; then
2177 if [ -f /usr
/ccs
/lib
/cpp
]; then
2178 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2180 NON_GNU_CPP
=/lib
/cpp
2184 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2191 if test $unported = yes; then
2192 { { echo "$as_me:2192: error: Emacs hasn't been ported to \`${canonical}' systems.
2193 Check \`etc/MACHINES' for recognized configuration names." >&5
2194 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2195 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2196 { (exit 1); exit 1; }; }
2199 machfile
="m/${machine}.h"
2200 opsysfile
="s/${opsys}.h"
2202 #### Choose a compiler.
2203 test -n "$CC" && cc_specified
=yes
2205 # Save the value of CFLAGS that the user specified.
2206 SPECIFIED_CFLAGS
="$CFLAGS"
2209 "yes" ) CC
="gcc" GCC
=yes ;;
2210 "no" ) : ${CC=cc} ;;
2214 ac_cpp
='$CPP $CPPFLAGS'
2215 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2221 echo "$as_me:2221: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC
="$CC" # Let the user override the test.
2229 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2231 for ac_dir
in $ac_dummy; do
2233 test -z "$ac_dir" && ac_dir
=.
2234 $as_executable_p "$ac_dir/$ac_word" ||
continue
2235 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2236 echo "$as_me:2236: found $ac_dir/$ac_word" >&5
2243 if test -n "$CC"; then
2244 echo "$as_me:2244: result: $CC" >&5
2245 echo "${ECHO_T}$CC" >&6
2247 echo "$as_me:2247: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2252 if test -z "$ac_cv_prog_CC"; then
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255 set dummy gcc
; ac_word
=$2
2256 echo "$as_me:2256: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2264 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2266 for ac_dir
in $ac_dummy; do
2268 test -z "$ac_dir" && ac_dir
=.
2269 $as_executable_p "$ac_dir/$ac_word" ||
continue
2270 ac_cv_prog_ac_ct_CC
="gcc"
2271 echo "$as_me:2271: found $ac_dir/$ac_word" >&5
2277 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2278 if test -n "$ac_ct_CC"; then
2279 echo "$as_me:2279: result: $ac_ct_CC" >&5
2280 echo "${ECHO_T}$ac_ct_CC" >&6
2282 echo "$as_me:2282: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2294 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2295 echo "$as_me:2295: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC
="$CC" # Let the user override the test.
2303 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2305 for ac_dir
in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir
=.
2308 $as_executable_p "$ac_dir/$ac_word" ||
continue
2309 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2310 echo "$as_me:2310: found $ac_dir/$ac_word" >&5
2317 if test -n "$CC"; then
2318 echo "$as_me:2318: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6
2321 echo "$as_me:2321: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2326 if test -z "$ac_cv_prog_CC"; then
2328 # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc
; ac_word
=$2
2330 echo "$as_me:2330: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test -n "$ac_ct_CC"; then
2336 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2338 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2340 for ac_dir
in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir
=.
2343 $as_executable_p "$ac_dir/$ac_word" ||
continue
2344 ac_cv_prog_ac_ct_CC
="cc"
2345 echo "$as_me:2345: found $ac_dir/$ac_word" >&5
2351 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 echo "$as_me:2353: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2356 echo "$as_me:2356: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2366 if test -z "$CC"; then
2367 # Extract the first word of "cc", so it can be a program name with args.
2368 set dummy cc
; ac_word
=$2
2369 echo "$as_me:2369: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC
="$CC" # Let the user override the test.
2378 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2380 for ac_dir
in $ac_dummy; do
2382 test -z "$ac_dir" && ac_dir
=.
2383 $as_executable_p "$ac_dir/$ac_word" ||
continue
2384 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2385 ac_prog_rejected
=yes
2389 echo "$as_me:2389: found $ac_dir/$ac_word" >&5
2393 if test $ac_prog_rejected = yes; then
2394 # We found a bogon in the path, so make sure we never use it.
2395 set dummy
$ac_cv_prog_CC
2397 if test $# != 0; then
2398 # We chose a different compiler from the bogus one.
2399 # However, it has the same basename, so the bogon will be chosen
2400 # first if we set CC to just the basename; use the full file name.
2402 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2410 if test -n "$CC"; then
2411 echo "$as_me:2411: result: $CC" >&5
2412 echo "${ECHO_T}$CC" >&6
2414 echo "$as_me:2414: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2419 if test -z "$CC"; then
2420 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2424 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2425 echo "$as_me:2425: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC
="$CC" # Let the user override the test.
2433 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2435 for ac_dir
in $ac_dummy; do
2437 test -z "$ac_dir" && ac_dir
=.
2438 $as_executable_p "$ac_dir/$ac_word" ||
continue
2439 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2440 echo "$as_me:2440: found $ac_dir/$ac_word" >&5
2447 if test -n "$CC"; then
2448 echo "$as_me:2448: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6
2451 echo "$as_me:2451: result: no" >&5
2452 echo "${ECHO_T}no" >&6
2455 test -n "$CC" && break
2458 if test -z "$CC"; then
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy
$ac_prog; ac_word
=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2472 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2474 for ac_dir
in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir
=.
2477 $as_executable_p "$ac_dir/$ac_word" ||
continue
2478 ac_cv_prog_ac_ct_CC
="$ac_prog"
2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2485 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2486 if test -n "$ac_ct_CC"; then
2487 echo "$as_me:2487: result: $ac_ct_CC" >&5
2488 echo "${ECHO_T}$ac_ct_CC" >&6
2490 echo "$as_me:2490: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$ac_ct_CC" && break
2502 test -z "$CC" && { { echo "$as_me:2502: error: no acceptable cc found in \$PATH" >&5
2503 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2504 { (exit 1); exit 1; }; }
2506 # Provide some information about the compiler.
2507 echo "$as_me:2507:" \
2508 "checking for C compiler version" >&5
2509 ac_compiler
=`set X $ac_compile; echo $2`
2510 { (eval echo "$as_me:2510: \"$ac_compiler --version </dev/null >&5\"") >&5
2511 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2513 echo "$as_me:2513: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:2515: \"$ac_compiler -v </dev/null >&5\"") >&5
2516 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2518 echo "$as_me:2518: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2520 { (eval echo "$as_me:2520: \"$ac_compiler -V </dev/null >&5\"") >&5
2521 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2523 echo "$as_me:2523: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2526 cat >conftest.
$ac_ext <<_ACEOF
2527 #line 2527 "configure"
2528 #include "confdefs.h"
2538 ac_clean_files_save
=$ac_clean_files
2539 ac_clean_files
="$ac_clean_files a.out a.exe"
2540 # Try to create an executable without -o first, disregard a.out.
2541 # It will help us diagnose broken compilers, and finding out an intuition
2543 echo "$as_me:2543: checking for C compiler default output" >&5
2544 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2545 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2546 if { (eval echo "$as_me:2546: \"$ac_link_default\"") >&5
2547 (eval $ac_link_default) 2>&5
2549 echo "$as_me:2549: \$? = $ac_status" >&5
2550 (exit $ac_status); }; then
2551 # Find the output, starting from the most likely. This scheme is
2552 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2554 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2555 ls a.out conftest 2>/dev/null;
2556 ls a.* conftest.* 2>/dev/null`; do
2558 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2559 a.out
) # We found the default executable, but exeext='' is most
2562 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2570 echo "$as_me: failed program was:" >&5
2571 cat conftest.
$ac_ext >&5
2572 { { echo "$as_me:2572: error: C compiler cannot create executables" >&5
2573 echo "$as_me: error: C compiler cannot create executables" >&2;}
2574 { (exit 77); exit 77; }; }
2577 ac_exeext
=$ac_cv_exeext
2578 echo "$as_me:2578: result: $ac_file" >&5
2579 echo "${ECHO_T}$ac_file" >&6
2581 # Check the compiler produces executables we can run. If not, either
2582 # the compiler is broken, or we cross compile.
2583 echo "$as_me:2583: checking whether the C compiler works" >&5
2584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586 # If not cross compiling, check that we can run a simple program.
2587 if test "$cross_compiling" != yes; then
2588 if { ac_try
='./$ac_file'
2589 { (eval echo "$as_me:2589: \"$ac_try\"") >&5
2592 echo "$as_me:2592: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 if test "$cross_compiling" = maybe
; then
2599 { { echo "$as_me:2599: error: cannot run C compiled programs.
2600 If you meant to cross compile, use \`--host'." >&5
2601 echo "$as_me: error: cannot run C compiled programs.
2602 If you meant to cross compile, use \`--host'." >&2;}
2603 { (exit 1); exit 1; }; }
2607 echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2610 rm -f a.out a.exe conftest
$ac_cv_exeext
2611 ac_clean_files
=$ac_clean_files_save
2612 # Check the compiler produces executables we can run. If not, either
2613 # the compiler is broken, or we cross compile.
2614 echo "$as_me:2614: checking whether we are cross compiling" >&5
2615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2616 echo "$as_me:2616: result: $cross_compiling" >&5
2617 echo "${ECHO_T}$cross_compiling" >&6
2619 echo "$as_me:2619: checking for executable suffix" >&5
2620 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2621 if { (eval echo "$as_me:2621: \"$ac_link\"") >&5
2622 (eval $ac_link) 2>&5
2624 echo "$as_me:2624: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2628 # work properly (i.e., refer to `conftest.exe'), while it won't with
2630 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2632 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2633 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2640 { { echo "$as_me:2640: error: cannot compute EXEEXT: cannot compile and link" >&5
2641 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest
$ac_cv_exeext
2646 echo "$as_me:2646: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6
2649 rm -f conftest.
$ac_ext
2650 EXEEXT
=$ac_cv_exeext
2652 echo "$as_me:2652: checking for object suffix" >&5
2653 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2654 if test "${ac_cv_objext+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 cat >conftest.
$ac_ext <<_ACEOF
2658 #line 2658 "configure"
2659 #include "confdefs.h"
2669 rm -f conftest.o conftest.obj
2670 if { (eval echo "$as_me:2670: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2673 echo "$as_me:2673: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2677 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2678 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2685 { { echo "$as_me:2685: error: cannot compute OBJEXT: cannot compile" >&5
2686 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2687 { (exit 1); exit 1; }; }
2690 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2692 echo "$as_me:2692: result: $ac_cv_objext" >&5
2693 echo "${ECHO_T}$ac_cv_objext" >&6
2694 OBJEXT
=$ac_cv_objext
2696 echo "$as_me:2696: checking whether we are using the GNU C compiler" >&5
2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 cat >conftest.
$ac_ext <<_ACEOF
2702 #line 2702 "configure"
2703 #include "confdefs.h"
2716 rm -f conftest.
$ac_objext
2717 if { (eval echo "$as_me:2717: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>&5
2720 echo "$as_me:2720: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try
='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:2723: \"$ac_try\"") >&5
2726 echo "$as_me:2726: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2734 rm -f conftest.
$ac_objext conftest.
$ac_ext
2735 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2738 echo "$as_me:2738: result: $ac_cv_c_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2740 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CFLAGS
=${CFLAGS+set}
2742 ac_save_CFLAGS
=$CFLAGS
2744 echo "$as_me:2744: checking whether $CC accepts -g" >&5
2745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cc_g+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 cat >conftest.
$ac_ext <<_ACEOF
2750 #line 2750 "configure"
2751 #include "confdefs.h"
2761 rm -f conftest.
$ac_objext
2762 if { (eval echo "$as_me:2762: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>&5
2765 echo "$as_me:2765: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 { ac_try
='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:2768: \"$ac_try\"") >&5
2771 echo "$as_me:2771: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2775 echo "$as_me: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2779 rm -f conftest.
$ac_objext conftest.
$ac_ext
2781 echo "$as_me:2781: result: $ac_cv_prog_cc_g" >&5
2782 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2783 if test "$ac_test_CFLAGS" = set; then
2784 CFLAGS
=$ac_save_CFLAGS
2785 elif test $ac_cv_prog_cc_g = yes; then
2786 if test "$GCC" = yes; then
2792 if test "$GCC" = yes; then
2798 # Some people use a C++ compiler to compile C. Since we use `exit',
2799 # in C++ we need to declare it. In case someone uses the same compiler
2800 # for both compiling C and C++ we need to have the C++ compiler decide
2801 # the declaration of exit, since it's the most demanding environment.
2802 cat >conftest.
$ac_ext <<_ACEOF
2807 rm -f conftest.
$ac_objext
2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5
2809 (eval $ac_compile) 2>&5
2811 echo "$as_me:2811: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try
='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 for ac_declaration
in \
2821 '#include <stdlib.h>' \
2822 'extern "C" void std::exit (int) throw (); using std::exit;' \
2823 'extern "C" void std::exit (int); using std::exit;' \
2824 'extern "C" void exit (int) throw ();' \
2825 'extern "C" void exit (int);' \
2828 cat >conftest.
$ac_ext <<_ACEOF
2829 #line 2829 "configure"
2830 #include "confdefs.h"
2841 rm -f conftest.
$ac_objext
2842 if { (eval echo "$as_me:2842: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>&5
2845 echo "$as_me:2845: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try
='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:2848: \"$ac_try\"") >&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 echo "$as_me: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2859 rm -f conftest.
$ac_objext conftest.
$ac_ext
2860 cat >conftest.
$ac_ext <<_ACEOF
2861 #line 2861 "configure"
2862 #include "confdefs.h"
2872 rm -f conftest.
$ac_objext
2873 if { (eval echo "$as_me:2873: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>&5
2876 echo "$as_me:2876: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try
='test -s conftest.$ac_objext'
2879 { (eval echo "$as_me:2879: \"$ac_try\"") >&5
2882 echo "$as_me:2882: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2886 echo "$as_me: failed program was:" >&5
2887 cat conftest.
$ac_ext >&5
2889 rm -f conftest.
$ac_objext conftest.
$ac_ext
2892 if test -n "$ac_declaration"; then
2893 echo '#ifdef __cplusplus' >>confdefs.h
2894 echo $ac_declaration >>confdefs.h
2895 echo '#endif' >>confdefs.h
2899 echo "$as_me: failed program was:" >&5
2900 cat conftest.
$ac_ext >&5
2902 rm -f conftest.
$ac_objext conftest.
$ac_ext
2904 ac_cpp
='$CPP $CPPFLAGS'
2905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2909 # On Suns, sometimes $CPP names a directory.
2910 if test -n "$CPP" && test -d "$CPP"; then
2914 #### Some systems specify a CPP to use unless we are using GCC.
2915 #### Now that we know whether we are using GCC, we can decide whether
2916 #### to use that one.
2917 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2922 #### Some systems specify a CC to use unless we are using GCC.
2923 #### Now that we know whether we are using GCC, we can decide whether
2924 #### to use that one.
2925 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2926 test x
$cc_specified != xyes
2931 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2933 CC
="$CC $GCC_TEST_OPTIONS"
2936 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2938 CC
="$CC $NON_GCC_TEST_OPTIONS"
2941 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2943 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2946 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2948 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2951 #### Some other nice autoconf tests. If you add a test here which
2952 #### should make an entry in src/config.h, don't forget to add an
2953 #### #undef clause to src/config.h.in for autoconf to modify.
2955 echo "$as_me:2955: checking whether ln -s works" >&5
2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2958 if test "$LN_S" = "ln -s"; then
2959 echo "$as_me:2959: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2962 echo "$as_me:2962: result: no, using $LN_S" >&5
2963 echo "${ECHO_T}no, using $LN_S" >&6
2967 ac_cpp
='$CPP $CPPFLAGS'
2968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2971 echo "$as_me:2971: checking how to run the C preprocessor" >&5
2972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2973 # On Suns, sometimes $CPP names a directory.
2974 if test -n "$CPP" && test -d "$CPP"; then
2977 if test -z "$CPP"; then
2978 if test "${ac_cv_prog_CPP+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 # Double quotes because CPP needs to be expanded
2982 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2985 for ac_c_preproc_warn_flag
in '' yes
2987 # Use a header file that comes with gcc, so configuring glibc
2988 # with a fresh cross-compiler works.
2989 # On the NeXT, cc -E runs the code through the compiler's parser,
2990 # not just through cpp. "Syntax error" is here to catch this case.
2991 cat >conftest.
$ac_ext <<_ACEOF
2992 #line 2992 "configure"
2993 #include "confdefs.h"
2997 if { (eval echo "$as_me:2997: \"$ac_cpp conftest.$ac_ext\"") >&5
2998 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3000 egrep -v '^ *\+' conftest.er1
>conftest.err
3002 cat conftest.err
>&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); } >/dev
/null
; then
3005 if test -s conftest.err
; then
3006 ac_cpp_err
=$ac_c_preproc_warn_flag
3013 if test -z "$ac_cpp_err"; then
3016 echo "$as_me: failed program was:" >&5
3017 cat conftest.
$ac_ext >&5
3018 # Broken: fails on valid input.
3021 rm -f conftest.err conftest.
$ac_ext
3023 # OK, works on sane cases. Now check whether non-existent headers
3024 # can be detected and how.
3025 cat >conftest.
$ac_ext <<_ACEOF
3026 #line 3026 "configure"
3027 #include "confdefs.h"
3028 #include <ac_nonexistent.h>
3030 if { (eval echo "$as_me:3030: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 egrep -v '^ *\+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3046 if test -z "$ac_cpp_err"; then
3047 # Broken: success on invalid input.
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.
$ac_ext >&5
3052 # Passes both tests.
3056 rm -f conftest.err conftest.
$ac_ext
3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060 rm -f conftest.err conftest.
$ac_ext
3061 if $ac_preproc_ok; then
3073 echo "$as_me:3073: result: $CPP" >&5
3074 echo "${ECHO_T}$CPP" >&6
3076 for ac_c_preproc_warn_flag
in '' yes
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # On the NeXT, cc -E runs the code through the compiler's parser,
3081 # not just through cpp. "Syntax error" is here to catch this case.
3082 cat >conftest.
$ac_ext <<_ACEOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3088 if { (eval echo "$as_me:3088: \"$ac_cpp conftest.$ac_ext\"") >&5
3089 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3091 egrep -v '^ *\+' conftest.er1
>conftest.err
3093 cat conftest.err
>&5
3094 echo "$as_me:3094: \$? = $ac_status" >&5
3095 (exit $ac_status); } >/dev
/null
; then
3096 if test -s conftest.err
; then
3097 ac_cpp_err
=$ac_c_preproc_warn_flag
3104 if test -z "$ac_cpp_err"; then
3107 echo "$as_me: failed program was:" >&5
3108 cat conftest.
$ac_ext >&5
3109 # Broken: fails on valid input.
3112 rm -f conftest.err conftest.
$ac_ext
3114 # OK, works on sane cases. Now check whether non-existent headers
3115 # can be detected and how.
3116 cat >conftest.
$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3119 #include <ac_nonexistent.h>
3121 if { (eval echo "$as_me:3121: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3124 egrep -v '^ *\+' conftest.er1
>conftest.err
3126 cat conftest.err
>&5
3127 echo "$as_me:3127: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev
/null
; then
3129 if test -s conftest.err
; then
3130 ac_cpp_err
=$ac_c_preproc_warn_flag
3137 if test -z "$ac_cpp_err"; then
3138 # Broken: success on invalid input.
3141 echo "$as_me: failed program was:" >&5
3142 cat conftest.
$ac_ext >&5
3143 # Passes both tests.
3147 rm -f conftest.err conftest.
$ac_ext
3150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3151 rm -f conftest.err conftest.
$ac_ext
3152 if $ac_preproc_ok; then
3155 { { echo "$as_me:3155: error: C preprocessor \"$CPP\" fails sanity check" >&5
3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3157 { (exit 1); exit 1; }; }
3161 ac_cpp
='$CPP $CPPFLAGS'
3162 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3166 # Find a good install program. We prefer a C program (faster),
3167 # so one script is as good as another. But avoid the broken or
3168 # incompatible versions:
3169 # SysV /etc/install, /usr/sbin/install
3170 # SunOS /usr/etc/install
3171 # IRIX /sbin/install
3173 # AmigaOS /C/install, which installs bootblocks on floppy discs
3174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3177 # ./install, which can be erroneously created by make from ./install.sh.
3178 echo "$as_me:3178: checking for a BSD compatible install" >&5
3179 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3180 if test -z "$INSTALL"; then
3181 if test "${ac_cv_path_install+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3185 for ac_dir
in $PATH; do
3187 # Account for people who put trailing slashes in PATH elements.
3189 / | .
/ | .
// |
/cC
/* \
3190 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3193 # OSF1 and SCO ODT 3.0 have their own names for install.
3194 # Don't use installbsd from OSF since it installs stuff as root
3196 for ac_prog
in ginstall scoinst
install; do
3197 if $as_executable_p "$ac_dir/$ac_prog"; then
3198 if test $ac_prog = install &&
3199 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3200 # AIX install. It has an incompatible calling convention.
3202 elif test $ac_prog = install &&
3203 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3204 # program-specific install script used by HP pwplus--don't use.
3207 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3217 if test "${ac_cv_path_install+set}" = set; then
3218 INSTALL
=$ac_cv_path_install
3220 # As a last resort, use the slow shell script. We don't cache a
3221 # path for INSTALL within a source directory, because that will
3222 # break other packages using the cache if that directory is
3223 # removed, or if the path is relative.
3224 INSTALL
=$ac_install_sh
3227 echo "$as_me:3227: result: $INSTALL" >&5
3228 echo "${ECHO_T}$INSTALL" >&6
3230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3231 # It thinks the first close brace ends the variable substitution.
3232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3236 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3238 for ac_prog
in 'bison -y' byacc
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy
$ac_prog; ac_word
=$2
3242 echo "$as_me:3242: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_YACC+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 if test -n "$YACC"; then
3248 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3250 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3252 for ac_dir
in $ac_dummy; do
3254 test -z "$ac_dir" && ac_dir
=.
3255 $as_executable_p "$ac_dir/$ac_word" ||
continue
3256 ac_cv_prog_YACC
="$ac_prog"
3257 echo "$as_me:3257: found $ac_dir/$ac_word" >&5
3263 YACC
=$ac_cv_prog_YACC
3264 if test -n "$YACC"; then
3265 echo "$as_me:3265: result: $YACC" >&5
3266 echo "${ECHO_T}$YACC" >&6
3268 echo "$as_me:3268: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3272 test -n "$YACC" && break
3274 test -n "$YACC" || YACC
="yacc"
3276 if test "x$RANLIB" = x
; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3279 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3280 echo "$as_me:3280: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282 if test "${ac_cv_prog_RANLIB+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if test -n "$RANLIB"; then
3286 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3288 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3290 for ac_dir
in $ac_dummy; do
3292 test -z "$ac_dir" && ac_dir
=.
3293 $as_executable_p "$ac_dir/$ac_word" ||
continue
3294 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3295 echo "$as_me:3295: found $ac_dir/$ac_word" >&5
3301 RANLIB
=$ac_cv_prog_RANLIB
3302 if test -n "$RANLIB"; then
3303 echo "$as_me:3303: result: $RANLIB" >&5
3304 echo "${ECHO_T}$RANLIB" >&6
3306 echo "$as_me:3306: result: no" >&5
3307 echo "${ECHO_T}no" >&6
3311 if test -z "$ac_cv_prog_RANLIB"; then
3312 ac_ct_RANLIB
=$RANLIB
3313 # Extract the first word of "ranlib", so it can be a program name with args.
3314 set dummy ranlib
; ac_word
=$2
3315 echo "$as_me:3315: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_RANLIB"; then
3321 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3323 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3325 for ac_dir
in $ac_dummy; do
3327 test -z "$ac_dir" && ac_dir
=.
3328 $as_executable_p "$ac_dir/$ac_word" ||
continue
3329 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3330 echo "$as_me:3330: found $ac_dir/$ac_word" >&5
3334 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3337 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3338 if test -n "$ac_ct_RANLIB"; then
3339 echo "$as_me:3339: result: $ac_ct_RANLIB" >&5
3340 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3342 echo "$as_me:3342: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3346 RANLIB
=$ac_ct_RANLIB
3348 RANLIB
="$ac_cv_prog_RANLIB"
3353 echo "$as_me:3353: checking for AIX" >&5
3354 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3355 cat >conftest.
$ac_ext <<_ACEOF
3356 #line 3356 "configure"
3357 #include "confdefs.h"
3363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3364 egrep "yes" >/dev
/null
2>&1; then
3365 echo "$as_me:3365: result: yes" >&5
3366 echo "${ECHO_T}yes" >&6
3367 cat >>confdefs.h
<<\EOF
3368 #define _ALL_SOURCE 1
3372 echo "$as_me:3372: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3377 #### Extract some information from the operating system and machine files.
3379 { echo "$as_me:3379: checking the machine- and system-dependent files to find out
3380 - which libraries the lib-src programs will want, and
3381 - whether the GNU malloc routines are usable..." >&5
3382 echo "$as_me: checking the machine- and system-dependent files to find out
3383 - which libraries the lib-src programs will want, and
3384 - whether the GNU malloc routines are usable..." >&6;}
3386 ### First figure out CFLAGS (which we use for running the compiler here)
3387 ### and REAL_CFLAGS (which we use for real compilation).
3388 ### The two are the same except on a few systems, where they are made
3389 ### different to work around various lossages. For example,
3390 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3391 ### as implying static linking.
3393 ### If the CFLAGS env var is specified, we use that value
3394 ### instead of the default.
3396 ### It's not important that this name contain the PID; you can't run
3397 ### two configures in the same directory and have anything work
3399 tempcname
="conftest.c"
3402 #include "'${srcdir}'/src/'${opsysfile}'"
3403 #include "'${srcdir}'/src/'${machfile}'"
3404 #ifndef LIBS_MACHINE
3405 #define LIBS_MACHINE
3410 #ifndef C_SWITCH_SYSTEM
3411 #define C_SWITCH_SYSTEM
3413 #ifndef C_SWITCH_MACHINE
3414 #define C_SWITCH_MACHINE
3416 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3417 configure___ c_switch_system=C_SWITCH_SYSTEM
3418 configure___ c_switch_machine=C_SWITCH_MACHINE
3421 #define LIB_X11_LIB -lX11
3424 #ifndef LIBX11_MACHINE
3425 #define LIBX11_MACHINE
3428 #ifndef LIBX11_SYSTEM
3429 #define LIBX11_SYSTEM
3431 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3434 configure___ unexec=UNEXEC
3436 configure___ unexec=unexec.o
3439 #ifdef SYSTEM_MALLOC
3440 configure___ system_malloc=yes
3442 configure___ system_malloc=no
3445 #ifdef USE_MMAP_FOR_BUFFERS
3446 configure___ use_mmap_for_buffers=yes
3448 configure___ use_mmap_for_buffers=no
3451 #ifndef C_DEBUG_SWITCH
3452 #define C_DEBUG_SWITCH -g
3455 #ifndef C_OPTIMIZE_SWITCH
3457 #define C_OPTIMIZE_SWITCH -O2
3459 #define C_OPTIMIZE_SWITCH -O
3463 #ifndef LD_SWITCH_MACHINE
3464 #define LD_SWITCH_MACHINE
3467 #ifndef LD_SWITCH_SYSTEM
3468 #define LD_SWITCH_SYSTEM
3471 #ifndef LD_SWITCH_X_SITE_AUX
3472 #define LD_SWITCH_X_SITE_AUX
3475 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3476 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3478 #ifdef THIS_IS_CONFIGURE
3480 /* Get the CFLAGS for tests in configure. */
3482 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3484 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3487 #else /* not THIS_IS_CONFIGURE */
3489 /* Get the CFLAGS for real compilation. */
3491 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3493 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3496 #endif /* not THIS_IS_CONFIGURE */
3499 # The value of CPP is a quoted variable reference, so we need to do this
3500 # to get its actual value...
3501 CPP
=`eval "echo $CPP"`
3502 eval `${CPP} -Isrc ${tempcname} \
3503 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3504 if test "x$SPECIFIED_CFLAGS" = x
; then
3505 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3506 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3508 REAL_CFLAGS
="$CFLAGS"
3512 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3514 ### Make sure subsequent tests use flags consistent with the build flags.
3516 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3517 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3519 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3522 # Check whether --enable-largefile or --disable-largefile was given.
3523 if test "${enable_largefile+set}" = set; then
3524 enableval
="$enable_largefile"
3527 if test "$enable_largefile" != no
; then
3529 echo "$as_me:3529: checking for special C compiler options needed for large files" >&5
3530 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3531 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 ac_cv_sys_largefile_CC
=no
3535 if test "$GCC" != yes; then
3538 # IRIX 6.2 and later do not support large files by default,
3539 # so use the C compiler's -n32 option if that helps.
3540 cat >conftest.
$ac_ext <<_ACEOF
3541 #line 3541 "configure"
3542 #include "confdefs.h"
3543 #include <sys/types.h>
3544 /* Check that off_t can represent 2**63 - 1 correctly.
3545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3546 since some C++ compilers masquerading as C compilers
3547 incorrectly reject 9223372036854775807. */
3548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3550 && LARGE_OFF_T % 2147483647 == 1)
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try
='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:3567: \"$ac_try\"") >&5
3570 echo "$as_me:3570: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3577 rm -f conftest.
$ac_objext
3579 rm -f conftest.
$ac_objext
3580 if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>&5
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try
='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_sys_largefile_CC
=' -n32'; break
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.
$ac_ext >&5
3596 rm -f conftest.
$ac_objext
3600 rm -f conftest.
$ac_ext
3603 echo "$as_me:3603: result: $ac_cv_sys_largefile_CC" >&5
3604 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3605 if test "$ac_cv_sys_largefile_CC" != no
; then
3606 CC
=$CC$ac_cv_sys_largefile_CC
3609 echo "$as_me:3609: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3610 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3611 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 ac_cv_sys_file_offset_bits
=no
3616 cat >conftest.
$ac_ext <<_ACEOF
3617 #line 3617 "configure"
3618 #include "confdefs.h"
3619 #include <sys/types.h>
3620 /* Check that off_t can represent 2**63 - 1 correctly.
3621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3622 since some C++ compilers masquerading as C compilers
3623 incorrectly reject 9223372036854775807. */
3624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3626 && LARGE_OFF_T % 2147483647 == 1)
3636 rm -f conftest.
$ac_objext
3637 if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:3640: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:3643: \"$ac_try\"") >&5
3646 echo "$as_me:3646: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3650 echo "$as_me: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3653 rm -f conftest.
$ac_objext conftest.
$ac_ext
3654 cat >conftest.
$ac_ext <<_ACEOF
3655 #line 3655 "configure"
3656 #include "confdefs.h"
3657 #define _FILE_OFFSET_BITS 64
3658 #include <sys/types.h>
3659 /* Check that off_t can represent 2**63 - 1 correctly.
3660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3661 since some C++ compilers masquerading as C compilers
3662 incorrectly reject 9223372036854775807. */
3663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3665 && LARGE_OFF_T % 2147483647 == 1)
3675 rm -f conftest.
$ac_objext
3676 if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try
='test -s conftest.$ac_objext'
3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 ac_cv_sys_file_offset_bits
=64; break
3689 echo "$as_me: failed program was:" >&5
3690 cat conftest.
$ac_ext >&5
3692 rm -f conftest.
$ac_objext conftest.
$ac_ext
3696 echo "$as_me:3696: result: $ac_cv_sys_file_offset_bits" >&5
3697 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3698 if test "$ac_cv_sys_file_offset_bits" != no
; then
3700 cat >>confdefs.h
<<EOF
3701 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3706 echo "$as_me:3706: checking for _LARGE_FILES value needed for large files" >&5
3707 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3708 if test "${ac_cv_sys_large_files+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_cv_sys_large_files
=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 _LARGE_FILES 1
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_large_files
=1; 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_large_files" >&5
3794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3795 if test "$ac_cv_sys_large_files" != no
; then
3797 cat >>confdefs.h
<<EOF
3798 #define _LARGE_FILES $ac_cv_sys_large_files
3805 # Sound support for GNU/Linux and the free BSDs.
3807 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3809 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3810 echo "$as_me:3810: checking for $ac_header" >&5
3811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.
$ac_ext <<_ACEOF
3816 #line 3816 "configure"
3817 #include "confdefs.h"
3818 #include <$ac_header>
3820 if { (eval echo "$as_me:3820: \"$ac_cpp conftest.$ac_ext\"") >&5
3821 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3823 egrep -v '^ *\+' conftest.er1
>conftest.err
3825 cat conftest.err
>&5
3826 echo "$as_me:3826: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev
/null
; then
3828 if test -s conftest.err
; then
3829 ac_cpp_err
=$ac_c_preproc_warn_flag
3836 if test -z "$ac_cpp_err"; then
3837 eval "$as_ac_Header=yes"
3839 echo "$as_me: failed program was:" >&5
3840 cat conftest.
$ac_ext >&5
3841 eval "$as_ac_Header=no"
3843 rm -f conftest.err conftest.
$ac_ext
3845 echo "$as_me:3845: result: `eval echo '${'$as_ac_Header'}'`" >&5
3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3848 cat >>confdefs.h
<<EOF
3849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3855 # Emulation library used on NetBSD.
3856 echo "$as_me:3856: checking for _oss_ioctl in -lossaudio" >&5
3857 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3858 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_check_lib_save_LIBS
=$LIBS
3862 LIBS
="-lossaudio $LIBS"
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line 3864 "configure"
3865 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3882 rm -f conftest.
$ac_objext conftest
$ac_exeext
3883 if { (eval echo "$as_me:3883: \"$ac_link\"") >&5
3884 (eval $ac_link) 2>&5
3886 echo "$as_me:3886: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try
='test -s conftest$ac_exeext'
3889 { (eval echo "$as_me:3889: \"$ac_try\"") >&5
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
3894 ac_cv_lib_ossaudio__oss_ioctl
=yes
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.
$ac_ext >&5
3898 ac_cv_lib_ossaudio__oss_ioctl
=no
3900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3901 LIBS
=$ac_check_lib_save_LIBS
3903 echo "$as_me:3903: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3904 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3905 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3911 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3912 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3913 termcap.h stdio_ext.h fcntl.h term.h
strings.h
3915 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3916 echo "$as_me:3916: checking for $ac_header" >&5
3917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 cat >conftest.
$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3924 #include <$ac_header>
3926 if { (eval echo "$as_me:3926: \"$ac_cpp conftest.$ac_ext\"") >&5
3927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3929 egrep -v '^ *\+' conftest.er1
>conftest.err
3931 cat conftest.err
>&5
3932 echo "$as_me:3932: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev
/null
; then
3934 if test -s conftest.err
; then
3935 ac_cpp_err
=$ac_c_preproc_warn_flag
3942 if test -z "$ac_cpp_err"; then
3943 eval "$as_ac_Header=yes"
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.
$ac_ext >&5
3947 eval "$as_ac_Header=no"
3949 rm -f conftest.err conftest.
$ac_ext
3951 echo "$as_me:3951: result: `eval echo '${'$as_ac_Header'}'`" >&5
3952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3954 cat >>confdefs.h
<<EOF
3955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3961 echo "$as_me:3961: checking for ANSI C header files" >&5
3962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3963 if test "${ac_cv_header_stdc+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 cat >conftest.
$ac_ext <<_ACEOF
3967 #line 3967 "configure"
3968 #include "confdefs.h"
3975 if { (eval echo "$as_me:3975: \"$ac_cpp conftest.$ac_ext\"") >&5
3976 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3978 egrep -v '^ *\+' conftest.er1
>conftest.err
3980 cat conftest.err
>&5
3981 echo "$as_me:3981: \$? = $ac_status" >&5
3982 (exit $ac_status); } >/dev
/null
; then
3983 if test -s conftest.err
; then
3984 ac_cpp_err
=$ac_c_preproc_warn_flag
3991 if test -z "$ac_cpp_err"; then
3992 ac_cv_header_stdc
=yes
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3996 ac_cv_header_stdc
=no
3998 rm -f conftest.err conftest.
$ac_ext
4000 if test $ac_cv_header_stdc = yes; then
4001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4002 cat >conftest.
$ac_ext <<_ACEOF
4003 #line 4003 "configure"
4004 #include "confdefs.h"
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009 egrep "memchr" >/dev
/null
2>&1; then
4012 ac_cv_header_stdc
=no
4018 if test $ac_cv_header_stdc = yes; then
4019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4020 cat >conftest.
$ac_ext <<_ACEOF
4021 #line 4021 "configure"
4022 #include "confdefs.h"
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 egrep "free" >/dev
/null
2>&1; then
4030 ac_cv_header_stdc
=no
4036 if test $ac_cv_header_stdc = yes; then
4037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4038 if test "$cross_compiling" = yes; then
4041 cat >conftest.
$ac_ext <<_ACEOF
4042 #line 4042 "configure"
4043 #include "confdefs.h"
4045 #if ((' ' & 0x0FF) == 0x020)
4046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4049 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4050 || ('j' <= (c) && (c) <= 'r') \
4051 || ('s' <= (c) && (c) <= 'z'))
4052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060 for (i = 0; i < 256; i++)
4061 if (XOR (islower (i), ISLOWER (i))
4062 || toupper (i) != TOUPPER (i))
4067 rm -f conftest
$ac_exeext
4068 if { (eval echo "$as_me:4068: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>&5
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 cat conftest.
$ac_ext >&5
4083 ac_cv_header_stdc
=no
4085 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4089 echo "$as_me:4089: result: $ac_cv_header_stdc" >&5
4090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4091 if test $ac_cv_header_stdc = yes; then
4093 cat >>confdefs.h
<<\EOF
4094 #define STDC_HEADERS 1
4099 echo "$as_me:4099: checking whether time.h and sys/time.h may both be included" >&5
4100 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4101 if test "${ac_cv_header_time+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 cat >conftest.
$ac_ext <<_ACEOF
4105 #line 4105 "configure"
4106 #include "confdefs.h"
4107 #include <sys/types.h>
4108 #include <sys/time.h>
4114 if ((struct tm *) 0)
4120 rm -f conftest.
$ac_objext
4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try
='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 ac_cv_header_time
=yes
4134 echo "$as_me: failed program was:" >&5
4135 cat conftest.
$ac_ext >&5
4136 ac_cv_header_time
=no
4138 rm -f conftest.
$ac_objext conftest.
$ac_ext
4140 echo "$as_me:4140: result: $ac_cv_header_time" >&5
4141 echo "${ECHO_T}$ac_cv_header_time" >&6
4142 if test $ac_cv_header_time = yes; then
4144 cat >>confdefs.h
<<\EOF
4145 #define TIME_WITH_SYS_TIME 1
4150 echo "$as_me:4150: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4151 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4152 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 cat >conftest.
$ac_ext <<_ACEOF
4156 #line 4156 "configure"
4157 #include "confdefs.h"
4158 #include <sys/types.h>
4160 /* NetBSD declares sys_siglist in unistd.h. */
4162 # include <unistd.h>
4168 char *msg = *(sys_siglist + 1);
4173 rm -f conftest.
$ac_objext
4174 if { (eval echo "$as_me:4174: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
4177 echo "$as_me:4177: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -s conftest.$ac_objext'
4180 { (eval echo "$as_me:4180: \"$ac_try\"") >&5
4183 echo "$as_me:4183: \$? = $ac_status" >&5
4184 (exit $ac_status); }; }; then
4185 ac_cv_decl_sys_siglist
=yes
4187 echo "$as_me: failed program was:" >&5
4188 cat conftest.
$ac_ext >&5
4189 ac_cv_decl_sys_siglist
=no
4191 rm -f conftest.
$ac_objext conftest.
$ac_ext
4193 echo "$as_me:4193: result: $ac_cv_decl_sys_siglist" >&5
4194 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4195 if test $ac_cv_decl_sys_siglist = yes; then
4197 cat >>confdefs.h
<<\EOF
4198 #define SYS_SIGLIST_DECLARED 1
4203 echo "$as_me:4203: checking for sys/wait.h that is POSIX.1 compatible" >&5
4204 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4205 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 cat >conftest.
$ac_ext <<_ACEOF
4209 #line 4209 "configure"
4210 #include "confdefs.h"
4211 #include <sys/types.h>
4212 #include <sys/wait.h>
4214 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4217 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4225 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4230 rm -f conftest.
$ac_objext
4231 if { (eval echo "$as_me:4231: \"$ac_compile\"") >&5
4232 (eval $ac_compile) 2>&5
4234 echo "$as_me:4234: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try
='test -s conftest.$ac_objext'
4237 { (eval echo "$as_me:4237: \"$ac_try\"") >&5
4240 echo "$as_me:4240: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_header_sys_wait_h
=yes
4244 echo "$as_me: failed program was:" >&5
4245 cat conftest.
$ac_ext >&5
4246 ac_cv_header_sys_wait_h
=no
4248 rm -f conftest.
$ac_objext conftest.
$ac_ext
4250 echo "$as_me:4250: result: $ac_cv_header_sys_wait_h" >&5
4251 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4252 if test $ac_cv_header_sys_wait_h = yes; then
4254 cat >>confdefs.h
<<\EOF
4255 #define HAVE_SYS_WAIT_H 1
4260 echo "$as_me:4260: checking for struct utimbuf" >&5
4261 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4262 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 cat >conftest.
$ac_ext <<_ACEOF
4266 #line 4266 "configure"
4267 #include "confdefs.h"
4268 #ifdef TIME_WITH_SYS_TIME
4269 #include <sys/time.h>
4272 #ifdef HAVE_SYS_TIME_H
4273 #include <sys/time.h>
4284 static struct utimbuf x; x.actime = x.modtime;
4289 rm -f conftest.
$ac_objext
4290 if { (eval echo "$as_me:4290: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>&5
4293 echo "$as_me:4293: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try
='test -s conftest.$ac_objext'
4296 { (eval echo "$as_me:4296: \"$ac_try\"") >&5
4299 echo "$as_me:4299: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 emacs_cv_struct_utimbuf
=yes
4303 echo "$as_me: failed program was:" >&5
4304 cat conftest.
$ac_ext >&5
4305 emacs_cv_struct_utimbuf
=no
4307 rm -f conftest.
$ac_objext conftest.
$ac_ext
4309 echo "$as_me:4309: result: $emacs_cv_struct_utimbuf" >&5
4310 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4311 if test $emacs_cv_struct_utimbuf = yes; then
4312 cat >>confdefs.h
<<\EOF
4313 #define HAVE_STRUCT_UTIMBUF 1
4318 echo "$as_me:4318: checking return type of signal handlers" >&5
4319 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4320 if test "${ac_cv_type_signal+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 cat >conftest.
$ac_ext <<_ACEOF
4324 #line 4324 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4332 extern "C" void (*signal (int, void (*)(int)))(int);
4334 void (*signal ()) ();
4345 rm -f conftest.
$ac_objext
4346 if { (eval echo "$as_me:4346: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>&5
4349 echo "$as_me:4349: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try
='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:4352: \"$ac_try\"") >&5
4355 echo "$as_me:4355: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_type_signal
=void
4359 echo "$as_me: failed program was:" >&5
4360 cat conftest.
$ac_ext >&5
4361 ac_cv_type_signal
=int
4363 rm -f conftest.
$ac_objext conftest.
$ac_ext
4365 echo "$as_me:4365: result: $ac_cv_type_signal" >&5
4366 echo "${ECHO_T}$ac_cv_type_signal" >&6
4368 cat >>confdefs.h
<<EOF
4369 #define RETSIGTYPE $ac_cv_type_signal
4372 echo "$as_me:4372: checking for speed_t" >&5
4373 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4374 if test "${emacs_cv_speed_t+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.
$ac_ext <<_ACEOF
4378 #line 4378 "configure"
4379 #include "confdefs.h"
4380 #include <termios.h>
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_speed_t
=yes
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.
$ac_ext >&5
4407 rm -f conftest.
$ac_objext conftest.
$ac_ext
4409 echo "$as_me:4409: result: $emacs_cv_speed_t" >&5
4410 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4411 if test $emacs_cv_speed_t = yes; then
4412 cat >>confdefs.h
<<\EOF
4413 #define HAVE_SPEED_T 1
4418 echo "$as_me:4418: checking for struct timeval" >&5
4419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4420 if test "${emacs_cv_struct_timeval+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 cat >conftest.
$ac_ext <<_ACEOF
4424 #line 4424 "configure"
4425 #include "confdefs.h"
4426 #ifdef TIME_WITH_SYS_TIME
4427 #include <sys/time.h>
4430 #ifdef HAVE_SYS_TIME_H
4431 #include <sys/time.h>
4439 static struct timeval x; x.tv_sec = x.tv_usec;
4444 rm -f conftest.
$ac_objext
4445 if { (eval echo "$as_me:4445: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>&5
4448 echo "$as_me:4448: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try
='test -s conftest.$ac_objext'
4451 { (eval echo "$as_me:4451: \"$ac_try\"") >&5
4454 echo "$as_me:4454: \$? = $ac_status" >&5
4455 (exit $ac_status); }; }; then
4456 emacs_cv_struct_timeval
=yes
4458 echo "$as_me: failed program was:" >&5
4459 cat conftest.
$ac_ext >&5
4460 emacs_cv_struct_timeval
=no
4462 rm -f conftest.
$ac_objext conftest.
$ac_ext
4464 echo "$as_me:4464: result: $emacs_cv_struct_timeval" >&5
4465 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4466 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4467 if test $emacs_cv_struct_timeval = yes; then
4468 cat >>confdefs.h
<<\EOF
4469 #define HAVE_TIMEVAL 1
4474 echo "$as_me:4474: checking for struct exception" >&5
4475 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4476 if test "${emacs_cv_struct_exception+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 cat >conftest.
$ac_ext <<_ACEOF
4480 #line 4480 "configure"
4481 #include "confdefs.h"
4486 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4491 rm -f conftest.
$ac_objext
4492 if { (eval echo "$as_me:4492: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4495 echo "$as_me:4495: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try
='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:4498: \"$ac_try\"") >&5
4501 echo "$as_me:4501: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 emacs_cv_struct_exception
=yes
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.
$ac_ext >&5
4507 emacs_cv_struct_exception
=no
4509 rm -f conftest.
$ac_objext conftest.
$ac_ext
4511 echo "$as_me:4511: result: $emacs_cv_struct_exception" >&5
4512 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4513 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4514 if test $emacs_cv_struct_exception != yes; then
4515 cat >>confdefs.h
<<\EOF
4516 #define NO_MATHERR 1
4521 echo "$as_me:4521: checking whether struct tm is in sys/time.h or time.h" >&5
4522 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4523 if test "${ac_cv_struct_tm+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 cat >conftest.
$ac_ext <<_ACEOF
4527 #line 4527 "configure"
4528 #include "confdefs.h"
4529 #include <sys/types.h>
4535 struct tm *tp; tp->tm_sec;
4540 rm -f conftest.
$ac_objext
4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try
='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_struct_tm
=time.h
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4556 ac_cv_struct_tm
=sys
/time.h
4558 rm -f conftest.
$ac_objext conftest.
$ac_ext
4560 echo "$as_me:4560: result: $ac_cv_struct_tm" >&5
4561 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4562 if test $ac_cv_struct_tm = sys
/time.h
; then
4564 cat >>confdefs.h
<<\EOF
4565 #define TM_IN_SYS_TIME 1
4570 echo "$as_me:4570: checking for struct tm.tm_zone" >&5
4571 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4572 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 cat >conftest.
$ac_ext <<_ACEOF
4576 #line 4576 "configure"
4577 #include "confdefs.h"
4578 #include <sys/types.h>
4579 #include <$ac_cv_struct_tm>
4584 static struct tm ac_aggr;
4585 if (ac_aggr.tm_zone)
4591 rm -f conftest.
$ac_objext
4592 if { (eval echo "$as_me:4592: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4595 echo "$as_me:4595: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try
='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:4598: \"$ac_try\"") >&5
4601 echo "$as_me:4601: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_member_struct_tm_tm_zone
=yes
4605 echo "$as_me: failed program was:" >&5
4606 cat conftest.
$ac_ext >&5
4607 ac_cv_member_struct_tm_tm_zone
=no
4609 rm -f conftest.
$ac_objext conftest.
$ac_ext
4611 echo "$as_me:4611: result: $ac_cv_member_struct_tm_tm_zone" >&5
4612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4615 cat >>confdefs.h
<<EOF
4616 #define HAVE_STRUCT_TM_TM_ZONE 1
4621 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4623 cat >>confdefs.h
<<\EOF
4624 #define HAVE_TM_ZONE 1
4628 echo "$as_me:4628: checking for tzname" >&5
4629 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4630 if test "${ac_cv_var_tzname+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cat >conftest.
$ac_ext <<_ACEOF
4634 #line 4634 "configure"
4635 #include "confdefs.h"
4637 #ifndef tzname /* For SGI. */
4638 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4649 rm -f conftest.
$ac_objext conftest
$ac_exeext
4650 if { (eval echo "$as_me:4650: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4653 echo "$as_me:4653: \$? = $ac_status" >&5
4654 (exit $ac_status); } &&
4655 { ac_try
='test -s conftest$ac_exeext'
4656 { (eval echo "$as_me:4656: \"$ac_try\"") >&5
4659 echo "$as_me:4659: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_var_tzname
=yes
4663 echo "$as_me: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4669 echo "$as_me:4669: result: $ac_cv_var_tzname" >&5
4670 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4671 if test $ac_cv_var_tzname = yes; then
4673 cat >>confdefs.h
<<\EOF
4674 #define HAVE_TZNAME 1
4680 echo "$as_me:4680: checking for tm_gmtoff in struct tm" >&5
4681 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4682 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 cat >conftest.
$ac_ext <<_ACEOF
4686 #line 4686 "configure"
4687 #include "confdefs.h"
4692 struct tm t; t.tm_gmtoff = 0
4697 rm -f conftest.
$ac_objext conftest
$ac_exeext
4698 if { (eval echo "$as_me:4698: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>&5
4701 echo "$as_me:4701: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try
='test -s conftest$ac_exeext'
4704 { (eval echo "$as_me:4704: \"$ac_try\"") >&5
4707 echo "$as_me:4707: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 emacs_cv_tm_gmtoff
=yes
4711 echo "$as_me: failed program was:" >&5
4712 cat conftest.
$ac_ext >&5
4713 emacs_cv_tm_gmtoff
=no
4715 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4717 echo "$as_me:4717: result: $emacs_cv_tm_gmtoff" >&5
4718 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4719 if test $emacs_cv_tm_gmtoff = yes; then
4720 cat >>confdefs.h
<<\EOF
4721 #define HAVE_TM_GMTOFF 1
4726 echo "$as_me:4726: checking for $CC option to accept ANSI C" >&5
4727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 ac_cv_prog_cc_stdc
=no
4733 cat >conftest.
$ac_ext <<_ACEOF
4734 #line 4734 "configure"
4735 #include "confdefs.h"
4738 #include <sys/types.h>
4739 #include <sys/stat.h>
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4754 s = g (p, va_arg (v,int));
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4772 # Don't try gcc -ansi; that turns off useful extensions and
4773 # breaks some systems' header files.
4774 # AIX -qlanglvl=ansi
4775 # Ultrix and OSF/1 -std1
4776 # HP-UX 10.20 and later -Ae
4777 # HP-UX older versions -Aa -D_HPUX_SOURCE
4778 # SVR4 -Xc -D__EXTENSIONS__
4779 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4781 CC
="$ac_save_CC $ac_arg"
4782 rm -f conftest.
$ac_objext
4783 if { (eval echo "$as_me:4783: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4786 echo "$as_me:4786: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try
='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:4789: \"$ac_try\"") >&5
4792 echo "$as_me:4792: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_prog_cc_stdc
=$ac_arg
4797 echo "$as_me: failed program was:" >&5
4798 cat conftest.
$ac_ext >&5
4800 rm -f conftest.
$ac_objext
4802 rm -f conftest.
$ac_ext conftest.
$ac_objext
4807 case "x$ac_cv_prog_cc_stdc" in
4809 echo "$as_me:4809: result: none needed" >&5
4810 echo "${ECHO_T}none needed" >&6 ;;
4812 echo "$as_me:4812: result: $ac_cv_prog_cc_stdc" >&5
4813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4814 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4817 echo "$as_me:4817: checking for function prototypes" >&5
4818 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4819 if test "$ac_cv_prog_cc_stdc" != no
; then
4820 echo "$as_me:4820: result: yes" >&5
4821 echo "${ECHO_T}yes" >&6
4823 cat >>confdefs.h
<<\EOF
4824 #define PROTOTYPES 1
4828 echo "$as_me:4828: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4832 echo "$as_me:4832: checking for working volatile" >&5
4833 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4834 if test "${ac_cv_c_volatile+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4838 #line 4838 "configure"
4839 #include "confdefs.h"
4851 rm -f conftest.
$ac_objext
4852 if { (eval echo "$as_me:4852: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4861 echo "$as_me:4861: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_c_volatile
=yes
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.
$ac_ext >&5
4869 rm -f conftest.
$ac_objext conftest.
$ac_ext
4871 echo "$as_me:4871: result: $ac_cv_c_volatile" >&5
4872 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4873 if test $ac_cv_c_volatile = no
; then
4875 cat >>confdefs.h
<<\EOF
4881 echo "$as_me:4881: checking for an ANSI C-conforming const" >&5
4882 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4883 if test "${ac_cv_c_const+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 cat >conftest.
$ac_ext <<_ACEOF
4887 #line 4887 "configure"
4888 #include "confdefs.h"
4893 /* FIXME: Include the comments suggested by Paul. */
4895 /* Ultrix mips cc rejects this. */
4896 typedef int charset[2];
4898 /* SunOS 4.1.1 cc rejects this. */
4899 char const *const *ccp;
4901 /* NEC SVR4.0.2 mips cc rejects this. */
4902 struct point {int x, y;};
4903 static struct point const zero = {0,0};
4904 /* AIX XL C 1.02.0.0 rejects this.
4905 It does not let you subtract one const X* pointer from another in
4906 an arm of an if-expression whose if-part is not a constant
4908 const char *g = "string";
4909 ccp = &g + (g ? g-g : 0);
4910 /* HPUX 7.0 cc rejects these. */
4913 ccp = (char const *const *) p;
4914 { /* SCO 3.2v4 cc rejects this. */
4916 char const *s = 0 ? (char *) 0 : (char const *) 0;
4920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4922 const int *foo = &x[0];
4925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4926 typedef const int *iptr;
4930 { /* AIX XL C 1.02.0.0 rejects this saying
4931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4932 struct s { int j; const int *ap[3]; };
4933 struct s *b; b->j = 5;
4935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4944 rm -f conftest.
$ac_objext
4945 if { (eval echo "$as_me:4945: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>&5
4948 echo "$as_me:4948: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:4951: \"$ac_try\"") >&5
4954 echo "$as_me:4954: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 cat conftest.
$ac_ext >&5
4962 rm -f conftest.
$ac_objext conftest.
$ac_ext
4964 echo "$as_me:4964: result: $ac_cv_c_const" >&5
4965 echo "${ECHO_T}$ac_cv_c_const" >&6
4966 if test $ac_cv_c_const = no
; then
4968 cat >>confdefs.h
<<\EOF
4974 echo "$as_me:4974: checking for void * support" >&5
4975 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
4976 if test "${emacs_cv_void_star+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 cat >conftest.
$ac_ext <<_ACEOF
4980 #line 4980 "configure"
4981 #include "confdefs.h"
4991 rm -f conftest.
$ac_objext
4992 if { (eval echo "$as_me:4992: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try
='test -s conftest.$ac_objext'
4998 { (eval echo "$as_me:4998: \"$ac_try\"") >&5
5001 echo "$as_me:5001: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 emacs_cv_void_star
=yes
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.
$ac_ext >&5
5007 emacs_cv_void_star
=no
5009 rm -f conftest.
$ac_objext conftest.
$ac_ext
5011 echo "$as_me:5011: result: $emacs_cv_void_star" >&5
5012 echo "${ECHO_T}$emacs_cv_void_star" >&6
5013 if test $emacs_cv_void_star = yes; then
5014 cat >>confdefs.h
<<\EOF
5015 #define POINTER_TYPE void
5019 cat >>confdefs.h
<<\EOF
5020 #define POINTER_TYPE char
5025 echo "$as_me:5025: checking whether ${MAKE-make} sets \${MAKE}" >&5
5026 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5027 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5028 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.
make <<\EOF
5033 @
echo 'ac_maketemp="${MAKE}"'
5035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5036 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5037 if test -n "$ac_maketemp"; then
5038 eval ac_cv_prog_make_
${ac_make}_set
=yes
5040 eval ac_cv_prog_make_
${ac_make}_set
=no
5044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5045 echo "$as_me:5045: result: yes" >&5
5046 echo "${ECHO_T}yes" >&6
5049 echo "$as_me:5049: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5051 SET_MAKE
="MAKE=${MAKE-make}"
5054 echo "$as_me:5054: checking for long file names" >&5
5055 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5056 if test "${ac_cv_sys_long_file_names+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_cv_sys_long_file_names
=yes
5060 # Test for long file names in all the places we know might matter:
5061 # . the current directory, where building will happen
5062 # $prefix/lib where we will be installing things
5063 # $exec_prefix/lib likewise
5064 # eval it to expand exec_prefix.
5065 # $TMPDIR if set, where it might want to write temporary files
5066 # if $TMPDIR is not set:
5067 # /tmp where it might want to write temporary files
5070 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5073 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5075 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5076 test -d $ac_dir ||
continue
5077 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5078 ac_xdir
=$ac_dir/cf$$
5079 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5080 ac_tf1
=$ac_xdir/conftest9012345
5081 ac_tf2
=$ac_xdir/conftest9012346
5082 (echo 1 >$ac_tf1) 2>/dev
/null
5083 (echo 2 >$ac_tf2) 2>/dev
/null
5084 ac_val
=`cat $ac_tf1 2>/dev/null`
5085 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5086 ac_cv_sys_long_file_names
=no
5087 rm -rf $ac_xdir 2>/dev
/null
5090 rm -rf $ac_xdir 2>/dev
/null
5093 echo "$as_me:5093: result: $ac_cv_sys_long_file_names" >&5
5094 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5095 if test $ac_cv_sys_long_file_names = yes; then
5097 cat >>confdefs.h
<<\EOF
5098 #define HAVE_LONG_FILE_NAMES 1
5103 #### Choose a window system.
5105 echo "$as_me:5105: checking for X" >&5
5106 echo $ECHO_N "checking for X... $ECHO_C" >&6
5108 # Check whether --with-x or --without-x was given.
5109 if test "${with_x+set}" = set; then
5113 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5114 if test "x$with_x" = xno
; then
5115 # The user explicitly disabled X.
5118 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5119 # Both variables are already set.
5122 if test "${ac_cv_have_x+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 # One or both of the vars are not set, and there is no cached value.
5126 ac_x_includes
=no ac_x_libraries
=no
5128 if mkdir conftest.dir
; then
5130 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5131 cat >Imakefile
<<'EOF'
5133 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5135 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5137 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5139 for ac_extension
in a so sl
; do
5140 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5141 test -f $ac_im_libdir/libX11.
$ac_extension; then
5142 ac_im_usrlibdir
=$ac_im_libdir; break
5145 # Screen out bogus values from the imake configuration. They are
5146 # bogus both because they are the default anyway, and because
5147 # using them would break gcc on systems where it needs fixed includes.
5148 case $ac_im_incroot in
5150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5152 case $ac_im_usrlibdir in
5154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5161 # Standard set of common directories for X headers.
5162 # Check X11 before X11Rn because it is often a symlink to the current release.
5174 /usr/local/X11/include
5175 /usr/local/X11R6/include
5176 /usr/local/X11R5/include
5177 /usr/local/X11R4/include
5179 /usr/local/include/X11
5180 /usr/local/include/X11R6
5181 /usr/local/include/X11R5
5182 /usr/local/include/X11R4
5186 /usr/XFree86/include/X11
5190 /usr/unsupported/include
5192 /usr/local/x11r5/include
5193 /usr/lpp/Xamples/include
5195 /usr/openwin/include
5196 /usr/openwin/share/include'
5198 if test "$ac_x_includes" = no
; then
5199 # Guess where to find include files, by looking for Intrinsic.h.
5200 # First, try using that file with no special directory specified.
5201 cat >conftest.
$ac_ext <<_ACEOF
5202 #line 5202 "configure"
5203 #include "confdefs.h"
5204 #include <X11/Intrinsic.h>
5206 if { (eval echo "$as_me:5206: \"$ac_cpp conftest.$ac_ext\"") >&5
5207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5209 egrep -v '^ *\+' conftest.er1
>conftest.err
5211 cat conftest.err
>&5
5212 echo "$as_me:5212: \$? = $ac_status" >&5
5213 (exit $ac_status); } >/dev
/null
; then
5214 if test -s conftest.err
; then
5215 ac_cpp_err
=$ac_c_preproc_warn_flag
5222 if test -z "$ac_cpp_err"; then
5223 # We can compile using X headers with no special include directory.
5226 echo "$as_me: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5228 for ac_dir
in $ac_x_header_dirs; do
5229 if test -r "$ac_dir/X11/Intrinsic.h"; then
5230 ac_x_includes
=$ac_dir
5235 rm -f conftest.err conftest.
$ac_ext
5236 fi # $ac_x_includes = no
5238 if test "$ac_x_libraries" = no
; then
5239 # Check for the libraries.
5240 # See if we find them without any special options.
5241 # Don't add to $LIBS permanently.
5244 cat >conftest.
$ac_ext <<_ACEOF
5245 #line 5245 "configure"
5246 #include "confdefs.h"
5247 #include <X11/Intrinsic.h>
5256 rm -f conftest.
$ac_objext conftest
$ac_exeext
5257 if { (eval echo "$as_me:5257: \"$ac_link\"") >&5
5258 (eval $ac_link) 2>&5
5260 echo "$as_me:5260: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try
='test -s conftest$ac_exeext'
5263 { (eval echo "$as_me:5263: \"$ac_try\"") >&5
5266 echo "$as_me:5266: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5269 # We can link X programs with no special library path.
5272 echo "$as_me: failed program was:" >&5
5273 cat conftest.
$ac_ext >&5
5275 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5277 # Don't even attempt the hair of trying to link an X program!
5278 for ac_extension
in a so sl
; do
5279 if test -r $ac_dir/libXt.
$ac_extension; then
5280 ac_x_libraries
=$ac_dir
5286 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5287 fi # $ac_x_libraries = no
5289 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5290 # Didn't find X anywhere. Cache the known absence of X.
5291 ac_cv_have_x
="have_x=no"
5293 # Record where we found X for the cache.
5294 ac_cv_have_x
="have_x=yes \
5295 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5300 eval "$ac_cv_have_x"
5303 if test "$have_x" != yes; then
5304 echo "$as_me:5304: result: $have_x" >&5
5305 echo "${ECHO_T}$have_x" >&6
5308 # If each of the values was on the command line, it overrides each guess.
5309 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5310 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5311 # Update the cache value to reflect the command line values.
5312 ac_cv_have_x
="have_x=yes \
5313 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5314 echo "$as_me:5314: result: libraries $x_libraries, headers $x_includes" >&5
5315 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5318 if test "$no_x" = yes; then
5324 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5325 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5326 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5327 x_default_search_path
=""
5328 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5330 ${x_library}/X11/%L/%T/%N%C%S:\
5331 ${x_library}/X11/%l/%T/%N%C%S:\
5332 ${x_library}/X11/%T/%N%C%S:\
5333 ${x_library}/X11/%L/%T/%N%S:\
5334 ${x_library}/X11/%l/%T/%N%S:\
5335 ${x_library}/X11/%T/%N%S"
5336 if test x
"${x_default_search_path}" = x
; then
5337 x_default_search_path
=${x_search_path}
5339 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5343 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5344 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5347 if test x
"${x_includes}" = x
; then
5348 bitmapdir
=/usr
/include
/X11
/bitmaps
5350 # accumulate include directories that have X11 bitmap subdirectories
5352 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5353 if test -d "${bmd}/X11/bitmaps"; then
5354 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5356 if test -d "${bmd}/bitmaps"; then
5357 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5360 if test ${bmd_acc} != "dummyval"; then
5361 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5365 case "${window_system}" in
5369 case "${with_x_toolkit}" in
5370 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5371 motif
) USE_X_TOOLKIT
=MOTIF
;;
5372 no
) USE_X_TOOLKIT
=none
;;
5373 * ) USE_X_TOOLKIT
=maybe
;;
5383 ### If we're using X11, we should use the X menu package.
5386 yes ) HAVE_MENUS
=yes ;;
5389 if test "${opsys}" = "hpux9"; then
5390 case "${x_libraries}" in
5392 opsysfile
="s/hpux9-x11r4.h"
5397 if test "${opsys}" = "hpux9shr"; then
5398 case "${x_libraries}" in
5400 opsysfile
="s/hpux9shxr4.h"
5405 ### Compute the unexec source name from the object name.
5406 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5408 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5409 # Assume not, until told otherwise.
5412 echo "$as_me:5412: checking for malloc_get_state" >&5
5413 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5414 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 cat >conftest.
$ac_ext <<_ACEOF
5418 #line 5418 "configure"
5419 #include "confdefs.h"
5420 /* System header to define __stub macros and hopefully few prototypes,
5421 which can conflict with char malloc_get_state (); below. */
5423 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5429 char malloc_get_state ();
5435 /* The GNU C library defines this for functions which it implements
5436 to always fail with ENOSYS. Some functions are actually named
5437 something starting with __ and the normal name is an alias. */
5438 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5441 f = malloc_get_state;
5448 rm -f conftest.
$ac_objext conftest
$ac_exeext
5449 if { (eval echo "$as_me:5449: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>&5
5452 echo "$as_me:5452: \$? = $ac_status" >&5
5453 (exit $ac_status); } &&
5454 { ac_try
='test -s conftest$ac_exeext'
5455 { (eval echo "$as_me:5455: \"$ac_try\"") >&5
5458 echo "$as_me:5458: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_func_malloc_get_state
=yes
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.
$ac_ext >&5
5464 ac_cv_func_malloc_get_state
=no
5466 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5468 echo "$as_me:5468: result: $ac_cv_func_malloc_get_state" >&5
5469 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5470 if test $ac_cv_func_malloc_get_state = yes; then
5476 echo "$as_me:5476: checking for malloc_set_state" >&5
5477 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5478 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line 5482 "configure"
5483 #include "confdefs.h"
5484 /* System header to define __stub macros and hopefully few prototypes,
5485 which can conflict with char malloc_set_state (); below. */
5487 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5493 char malloc_set_state ();
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5505 f = malloc_set_state;
5512 rm -f conftest.
$ac_objext conftest
$ac_exeext
5513 if { (eval echo "$as_me:5513: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5516 echo "$as_me:5516: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:5519: \"$ac_try\"") >&5
5522 echo "$as_me:5522: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_func_malloc_set_state
=yes
5526 echo "$as_me: failed program was:" >&5
5527 cat conftest.
$ac_ext >&5
5528 ac_cv_func_malloc_set_state
=no
5530 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5532 echo "$as_me:5532: result: $ac_cv_func_malloc_set_state" >&5
5533 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5534 if test $ac_cv_func_malloc_set_state = yes; then
5540 echo "$as_me:5540: checking whether __after_morecore_hook exists" >&5
5541 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5542 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5545 cat >conftest.
$ac_ext <<_ACEOF
5546 #line 5546 "configure"
5547 #include "confdefs.h"
5548 extern void (* __after_morecore_hook)();
5552 __after_morecore_hook = 0
5557 rm -f conftest.
$ac_objext conftest
$ac_exeext
5558 if { (eval echo "$as_me:5558: \"$ac_link\"") >&5
5559 (eval $ac_link) 2>&5
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit $ac_status); } &&
5563 { ac_try
='test -s conftest$ac_exeext'
5564 { (eval echo "$as_me:5564: \"$ac_try\"") >&5
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 emacs_cv_var___after_morecore_hook
=yes
5571 echo "$as_me: failed program was:" >&5
5572 cat conftest.
$ac_ext >&5
5573 emacs_cv_var___after_morecore_hook
=no
5575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5577 echo "$as_me:5577: result: $emacs_cv_var___after_morecore_hook" >&5
5578 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5579 if test $emacs_cv_var___after_morecore_hook = no
; then
5582 if test "${system_malloc}" = "yes"; then
5585 (The GNU allocators don't work with this system configuration.)"
5587 if test "$doug_lea_malloc" = "yes" ; then
5588 if test "$GNU_MALLOC" = yes ; then
5590 (Using Doug Lea's new malloc from the GNU C Library.)"
5592 cat >>confdefs.h
<<\EOF
5593 #define DOUG_LEA_MALLOC 1
5598 if test x
"${REL_ALLOC}" = x
; then
5599 REL_ALLOC
=${GNU_MALLOC}
5602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5604 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5605 inttypes.h stdint.h unistd.h
5607 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5608 echo "$as_me:5608: checking for $ac_header" >&5
5609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.
$ac_ext <<_ACEOF
5614 #line 5614 "configure"
5615 #include "confdefs.h"
5616 $ac_includes_default
5617 #include <$ac_header>
5619 rm -f conftest.
$ac_objext
5620 if { (eval echo "$as_me:5620: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5623 echo "$as_me:5623: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
5625 { ac_try
='test -s conftest.$ac_objext'
5626 { (eval echo "$as_me:5626: \"$ac_try\"") >&5
5629 echo "$as_me:5629: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 eval "$as_ac_Header=yes"
5633 echo "$as_me: failed program was:" >&5
5634 cat conftest.
$ac_ext >&5
5635 eval "$as_ac_Header=no"
5637 rm -f conftest.
$ac_objext conftest.
$ac_ext
5639 echo "$as_me:5639: result: `eval echo '${'$as_ac_Header'}'`" >&5
5640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5642 cat >>confdefs.h
<<EOF
5643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649 for ac_header
in stdlib.h unistd.h
5651 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5652 echo "$as_me:5652: checking for $ac_header" >&5
5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 cat >conftest.
$ac_ext <<_ACEOF
5658 #line 5658 "configure"
5659 #include "confdefs.h"
5660 #include <$ac_header>
5662 if { (eval echo "$as_me:5662: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5665 egrep -v '^ *\+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:5668: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev
/null
; then
5670 if test -s conftest.err
; then
5671 ac_cpp_err
=$ac_c_preproc_warn_flag
5678 if test -z "$ac_cpp_err"; then
5679 eval "$as_ac_Header=yes"
5681 echo "$as_me: failed program was:" >&5
5682 cat conftest.
$ac_ext >&5
5683 eval "$as_ac_Header=no"
5685 rm -f conftest.err conftest.
$ac_ext
5687 echo "$as_me:5687: result: `eval echo '${'$as_ac_Header'}'`" >&5
5688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5690 cat >>confdefs.h
<<EOF
5691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5697 for ac_func
in getpagesize
5699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5700 echo "$as_me:5700: checking for $ac_func" >&5
5701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5702 if eval "test \"\${$as_ac_var+set}\" = set"; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 cat >conftest.
$ac_ext <<_ACEOF
5706 #line 5706 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char $ac_func (); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5723 /* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5736 rm -f conftest.
$ac_objext conftest
$ac_exeext
5737 if { (eval echo "$as_me:5737: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5740 echo "$as_me:5740: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try
='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:5743: \"$ac_try\"") >&5
5746 echo "$as_me:5746: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 eval "$as_ac_var=yes"
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5752 eval "$as_ac_var=no"
5754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5756 echo "$as_me:5756: result: `eval echo '${'$as_ac_var'}'`" >&5
5757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5758 if test `eval echo '${'$as_ac_var'}'` = yes; then
5759 cat >>confdefs.h
<<EOF
5760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5766 echo "$as_me:5766: checking for working mmap" >&5
5767 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5768 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 if test "$cross_compiling" = yes; then
5772 ac_cv_func_mmap_fixed_mapped
=no
5774 cat >conftest.
$ac_ext <<_ACEOF
5775 #line 5775 "configure"
5776 #include "confdefs.h"
5777 $ac_includes_default
5778 /* Thanks to Mike Haertel and Jim Avera for this test.
5779 Here is a matrix of mmap possibilities:
5780 mmap private not fixed
5781 mmap private fixed at somewhere currently unmapped
5782 mmap private fixed at somewhere already mapped
5783 mmap shared not fixed
5784 mmap shared fixed at somewhere currently unmapped
5785 mmap shared fixed at somewhere already mapped
5786 For private mappings, we should verify that changes cannot be read()
5787 back from the file, nor mmap's back from the file at a different
5788 address. (There have been systems where private was not correctly
5789 implemented like the infamous i386 svr4.0, and systems where the
5790 VM page cache was not coherent with the file system buffer cache
5791 like early versions of FreeBSD and possibly contemporary NetBSD.)
5792 For shared mappings, we should conversely verify that changes get
5793 propogated back to all the places they're supposed to be.
5795 Grep wants private fixed already mapped.
5796 The main things grep needs to know about mmap are:
5797 * does it exist and is it safe to write into the mmap'd area
5798 * how to use it (BSD variants) */
5801 #include <sys/mman.h>
5803 #if !STDC_HEADERS && !HAVE_STDLIB_H
5807 /* This mess was copied from the GNU getpagesize.h. */
5808 #if !HAVE_GETPAGESIZE
5809 /* Assume that all systems that can run configure have sys/param.h. */
5810 # if !HAVE_SYS_PARAM_H
5811 # define HAVE_SYS_PARAM_H 1
5814 # ifdef _SC_PAGESIZE
5815 # define getpagesize() sysconf(_SC_PAGESIZE)
5816 # else /* no _SC_PAGESIZE */
5817 # if HAVE_SYS_PARAM_H
5818 # include <sys/param.h>
5819 # ifdef EXEC_PAGESIZE
5820 # define getpagesize() EXEC_PAGESIZE
5821 # else /* no EXEC_PAGESIZE */
5823 # define getpagesize() NBPG * CLSIZE
5826 # endif /* no CLSIZE */
5827 # else /* no NBPG */
5829 # define getpagesize() NBPC
5830 # else /* no NBPC */
5832 # define getpagesize() PAGESIZE
5833 # endif /* PAGESIZE */
5834 # endif /* no NBPC */
5835 # endif /* no NBPG */
5836 # endif /* no EXEC_PAGESIZE */
5837 # else /* no HAVE_SYS_PARAM_H */
5838 # define getpagesize() 8192 /* punt totally */
5839 # endif /* no HAVE_SYS_PARAM_H */
5840 # endif /* no _SC_PAGESIZE */
5842 #endif /* no HAVE_GETPAGESIZE */
5847 char *data, *data2, *data3;
5851 pagesize = getpagesize ();
5853 /* First, make a file with some known garbage in it. */
5854 data = (char *) malloc (pagesize);
5857 for (i = 0; i < pagesize; ++i)
5858 *(data + i) = rand ();
5860 fd = creat ("conftest.mmap", 0600);
5863 if (write (fd, data, pagesize) != pagesize)
5867 /* Next, try to mmap the file at a fixed address which already has
5868 something else allocated at it. If we can, also make sure that
5869 we see the same garbage. */
5870 fd = open ("conftest.mmap", O_RDWR);
5873 data2 = (char *) malloc (2 * pagesize);
5876 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5877 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5878 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5880 for (i = 0; i < pagesize; ++i)
5881 if (*(data + i) != *(data2 + i))
5884 /* Finally, make sure that changes to the mapped area do not
5885 percolate back to the file as seen by read(). (This is a bug on
5886 some variants of i386 svr4.0.) */
5887 for (i = 0; i < pagesize; ++i)
5888 *(data2 + i) = *(data2 + i) + 1;
5889 data3 = (char *) malloc (pagesize);
5892 if (read (fd, data3, pagesize) != pagesize)
5894 for (i = 0; i < pagesize; ++i)
5895 if (*(data + i) != *(data3 + i))
5901 rm -f conftest
$ac_exeext
5902 if { (eval echo "$as_me:5902: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>&5
5905 echo "$as_me:5905: \$? = $ac_status" >&5
5906 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5907 { (eval echo "$as_me:5907: \"$ac_try\"") >&5
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 ac_cv_func_mmap_fixed_mapped
=yes
5914 echo "$as_me: program exited with status $ac_status" >&5
5915 echo "$as_me: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5917 ac_cv_func_mmap_fixed_mapped
=no
5919 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5922 echo "$as_me:5922: result: $ac_cv_func_mmap_fixed_mapped" >&5
5923 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5924 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5926 cat >>confdefs.h
<<\EOF
5933 if test $use_mmap_for_buffers = yes; then
5937 LIBS
="$libsrc_libs $LIBS"
5939 echo "$as_me:5939: checking for dnet_ntoa in -ldnet" >&5
5940 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5941 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_check_lib_save_LIBS
=$LIBS
5946 cat >conftest.
$ac_ext <<_ACEOF
5947 #line 5947 "configure"
5948 #include "confdefs.h"
5950 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5965 rm -f conftest.
$ac_objext conftest
$ac_exeext
5966 if { (eval echo "$as_me:5966: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5969 echo "$as_me:5969: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try
='test -s conftest$ac_exeext'
5972 { (eval echo "$as_me:5972: \"$ac_try\"") >&5
5975 echo "$as_me:5975: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_lib_dnet_dnet_ntoa
=yes
5979 echo "$as_me: failed program was:" >&5
5980 cat conftest.
$ac_ext >&5
5981 ac_cv_lib_dnet_dnet_ntoa
=no
5983 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5984 LIBS
=$ac_check_lib_save_LIBS
5986 echo "$as_me:5986: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5987 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5988 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5989 cat >>confdefs.h
<<EOF
5990 #define HAVE_LIBDNET 1
5997 echo "$as_me:5997: checking for main in -lXbsd" >&5
5998 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
5999 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 ac_check_lib_save_LIBS
=$LIBS
6004 cat >conftest.
$ac_ext <<_ACEOF
6005 #line 6005 "configure"
6006 #include "confdefs.h"
6016 rm -f conftest.
$ac_objext conftest
$ac_exeext
6017 if { (eval echo "$as_me:6017: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:6020: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try
='test -s conftest$ac_exeext'
6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5
6026 echo "$as_me:6026: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 ac_cv_lib_Xbsd_main
=yes
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.
$ac_ext >&5
6032 ac_cv_lib_Xbsd_main
=no
6034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6035 LIBS
=$ac_check_lib_save_LIBS
6037 echo "$as_me:6037: result: $ac_cv_lib_Xbsd_main" >&5
6038 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6039 if test $ac_cv_lib_Xbsd_main = yes; then
6040 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6043 echo "$as_me:6043: checking for cma_open in -lpthreads" >&5
6044 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6045 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 ac_check_lib_save_LIBS
=$LIBS
6049 LIBS
="-lpthreads $LIBS"
6050 cat >conftest.
$ac_ext <<_ACEOF
6051 #line 6051 "configure"
6052 #include "confdefs.h"
6054 /* Override any gcc2 internal prototype to avoid an error. */
6058 /* We use char because int might match the return type of a gcc2
6059 builtin and then its argument prototype would still apply. */
6069 rm -f conftest.
$ac_objext conftest
$ac_exeext
6070 if { (eval echo "$as_me:6070: \"$ac_link\"") >&5
6071 (eval $ac_link) 2>&5
6073 echo "$as_me:6073: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
6075 { ac_try
='test -s conftest$ac_exeext'
6076 { (eval echo "$as_me:6076: \"$ac_try\"") >&5
6079 echo "$as_me:6079: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_cv_lib_pthreads_cma_open
=yes
6083 echo "$as_me: failed program was:" >&5
6084 cat conftest.
$ac_ext >&5
6085 ac_cv_lib_pthreads_cma_open
=no
6087 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6088 LIBS
=$ac_check_lib_save_LIBS
6090 echo "$as_me:6090: result: $ac_cv_lib_pthreads_cma_open" >&5
6091 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6092 if test $ac_cv_lib_pthreads_cma_open = yes; then
6093 cat >>confdefs.h
<<EOF
6094 #define HAVE_LIBPTHREADS 1
6097 LIBS
="-lpthreads $LIBS"
6101 echo "$as_me:6101: checking for XFree86 in /usr/X386" >&5
6102 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6103 if test -d /usr
/X386
/include
; then
6105 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6109 echo "$as_me:6109: result: $HAVE_XFREE386" >&5
6110 echo "${ECHO_T}$HAVE_XFREE386" >&6
6112 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6113 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6115 REAL_CPPFLAGS
="$CPPFLAGS"
6117 if test "${HAVE_X11}" = "yes"; then
6118 DEFS
="$C_SWITCH_X_SITE $DEFS"
6119 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6121 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6122 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6124 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6125 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6126 # but it's more convenient here to set LD_RUN_PATH
6127 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6128 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6129 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6133 if test "${opsys}" = "gnu-linux"; then
6134 echo "$as_me:6134: checking whether X on GNU/Linux needs -b to link" >&5
6135 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6136 cat >conftest.
$ac_ext <<_ACEOF
6137 #line 6137 "configure"
6138 #include "confdefs.h"
6143 XOpenDisplay ("foo");
6148 rm -f conftest.
$ac_objext conftest
$ac_exeext
6149 if { (eval echo "$as_me:6149: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6152 echo "$as_me:6152: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try
='test -s conftest$ac_exeext'
6155 { (eval echo "$as_me:6155: \"$ac_try\"") >&5
6158 echo "$as_me:6158: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 xlinux_first_failure
=no
6162 echo "$as_me: failed program was:" >&5
6163 cat conftest.
$ac_ext >&5
6164 xlinux_first_failure
=yes
6166 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6167 if test "${xlinux_first_failure}" = "yes"; then
6168 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6169 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6170 OLD_CPPFLAGS
="$CPPFLAGS"
6172 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6173 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6174 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6175 LIBS
="$LIBS -b i486-linuxaout"
6176 cat >conftest.
$ac_ext <<_ACEOF
6177 #line 6177 "configure"
6178 #include "confdefs.h"
6183 XOpenDisplay ("foo");
6188 rm -f conftest.
$ac_objext conftest
$ac_exeext
6189 if { (eval echo "$as_me:6189: \"$ac_link\"") >&5
6190 (eval $ac_link) 2>&5
6192 echo "$as_me:6192: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try
='test -s conftest$ac_exeext'
6195 { (eval echo "$as_me:6195: \"$ac_try\"") >&5
6198 echo "$as_me:6198: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 xlinux_second_failure
=no
6202 echo "$as_me: failed program was:" >&5
6203 cat conftest.
$ac_ext >&5
6204 xlinux_second_failure
=yes
6206 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6207 if test "${xlinux_second_failure}" = "yes"; then
6208 # If we get the same failure with -b, there is no use adding -b.
6209 # So take it out. This plays safe.
6210 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6211 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6212 CPPFLAGS
="$OLD_CPPFLAGS"
6214 echo "$as_me:6214: result: no" >&5
6215 echo "${ECHO_T}no" >&6
6217 echo "$as_me:6217: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6
6221 echo "$as_me:6221: result: no" >&5
6222 echo "${ECHO_T}no" >&6
6226 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6227 # header files included from there.
6228 echo "$as_me:6228: checking for Xkb" >&5
6229 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6231 #line 6231 "configure"
6232 #include "confdefs.h"
6233 #include <X11/Xlib.h>
6234 #include <X11/XKBlib.h>
6238 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6243 rm -f conftest.
$ac_objext conftest
$ac_exeext
6244 if { (eval echo "$as_me:6244: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try
='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.
$ac_ext >&5
6261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6262 echo "$as_me:6262: result: $emacs_xkb" >&5
6263 echo "${ECHO_T}$emacs_xkb" >&6
6264 if test $emacs_xkb = yes; then
6265 cat >>confdefs.h
<<\EOF
6266 #define HAVE_XKBGETKEYBOARD 1
6271 for ac_func
in XrmSetDatabase XScreenResourceString \
6272 XScreenNumberOfScreen XSetWMProtocols
6274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6275 echo "$as_me:6275: checking for $ac_func" >&5
6276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6277 if eval "test \"\${$as_ac_var+set}\" = set"; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 cat >conftest.
$ac_ext <<_ACEOF
6281 #line 6281 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func (); below. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6290 /* We use char because int might match the return type of a gcc2
6291 builtin and then its argument prototype would still apply. */
6298 /* The GNU C library defines this for functions which it implements
6299 to always fail with ENOSYS. Some functions are actually named
6300 something starting with __ and the normal name is an alias. */
6301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6311 rm -f conftest.
$ac_objext conftest
$ac_exeext
6312 if { (eval echo "$as_me:6312: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>&5
6315 echo "$as_me:6315: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try
='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:6318: \"$ac_try\"") >&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 eval "$as_ac_var=yes"
6325 echo "$as_me: failed program was:" >&5
6326 cat conftest.
$ac_ext >&5
6327 eval "$as_ac_var=no"
6329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6331 echo "$as_me:6331: result: `eval echo '${'$as_ac_var'}'`" >&5
6332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6333 if test `eval echo '${'$as_ac_var'}'` = yes; then
6334 cat >>confdefs.h
<<EOF
6335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6343 if test "${window_system}" = "x11"; then
6344 echo "$as_me:6344: checking X11 version 6" >&5
6345 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6346 if test "${emacs_cv_x11_version_6+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 cat >conftest.
$ac_ext <<_ACEOF
6350 #line 6350 "configure"
6351 #include "confdefs.h"
6352 #include <X11/Xlib.h>
6356 #if XlibSpecificationRelease < 6
6364 rm -f conftest.
$ac_objext conftest
$ac_exeext
6365 if { (eval echo "$as_me:6365: \"$ac_link\"") >&5
6366 (eval $ac_link) 2>&5
6368 echo "$as_me:6368: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -s conftest$ac_exeext'
6371 { (eval echo "$as_me:6371: \"$ac_try\"") >&5
6374 echo "$as_me:6374: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6376 emacs_cv_x11_version_6
=yes
6378 echo "$as_me: failed program was:" >&5
6379 cat conftest.
$ac_ext >&5
6380 emacs_cv_x11_version_6
=no
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6385 if test $emacs_cv_x11_version_6 = yes; then
6386 echo "$as_me:6386: result: 6 or newer" >&5
6387 echo "${ECHO_T}6 or newer" >&6
6388 cat >>confdefs.h
<<\EOF
6389 #define HAVE_X11R6 1
6393 echo "$as_me:6393: result: before 6" >&5
6394 echo "${ECHO_T}before 6" >&6
6398 if test "${window_system}" = "x11"; then
6399 echo "$as_me:6399: checking X11 version 5" >&5
6400 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6401 if test "${emacs_cv_x11_version_5+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 cat >conftest.
$ac_ext <<_ACEOF
6405 #line 6405 "configure"
6406 #include "confdefs.h"
6407 #include <X11/Xlib.h>
6411 #if XlibSpecificationRelease < 5
6419 rm -f conftest.
$ac_objext conftest
$ac_exeext
6420 if { (eval echo "$as_me:6420: \"$ac_link\"") >&5
6421 (eval $ac_link) 2>&5
6423 echo "$as_me:6423: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try
='test -s conftest$ac_exeext'
6426 { (eval echo "$as_me:6426: \"$ac_try\"") >&5
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 emacs_cv_x11_version_5
=yes
6433 echo "$as_me: failed program was:" >&5
6434 cat conftest.
$ac_ext >&5
6435 emacs_cv_x11_version_5
=no
6437 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6440 if test $emacs_cv_x11_version_5 = yes; then
6441 echo "$as_me:6441: result: 5 or newer" >&5
6442 echo "${ECHO_T}5 or newer" >&6
6444 cat >>confdefs.h
<<\EOF
6445 #define HAVE_X11R5 1
6450 echo "$as_me:6450: result: before 5" >&5
6451 echo "${ECHO_T}before 5" >&6
6455 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6456 if test x
"${HAVE_X11R5}" = xyes
; then
6457 echo "$as_me:6457: checking X11 version 5 with Xaw" >&5
6458 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6459 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6463 #line 6463 "configure"
6464 #include "confdefs.h"
6466 #include <X11/Intrinsic.h>
6467 #include <X11/Xaw/Simple.h>
6476 rm -f conftest.
$ac_objext conftest
$ac_exeext
6477 if { (eval echo "$as_me:6477: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6480 echo "$as_me:6480: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try
='test -s conftest$ac_exeext'
6483 { (eval echo "$as_me:6483: \"$ac_try\"") >&5
6486 echo "$as_me:6486: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 emacs_cv_x11_version_5_with_xaw
=yes
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.
$ac_ext >&5
6492 emacs_cv_x11_version_5_with_xaw
=no
6494 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6497 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6498 echo "$as_me:6498: result: 5 or newer, with Xaw; use toolkit by default" >&5
6499 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6502 echo "$as_me:6502: result: before 5 or no Xaw; do not use toolkit by default" >&5
6503 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6511 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6513 if test "${USE_X_TOOLKIT}" != "none"; then
6514 echo "$as_me:6514: checking X11 toolkit version" >&5
6515 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6516 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 cat >conftest.
$ac_ext <<_ACEOF
6520 #line 6520 "configure"
6521 #include "confdefs.h"
6522 #include <X11/Intrinsic.h>
6526 #if XtSpecificationRelease < 6
6534 rm -f conftest.
$ac_objext conftest
$ac_exeext
6535 if { (eval echo "$as_me:6535: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try
='test -s conftest$ac_exeext'
6541 { (eval echo "$as_me:6541: \"$ac_try\"") >&5
6544 echo "$as_me:6544: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 emacs_cv_x11_toolkit_version_6
=yes
6548 echo "$as_me: failed program was:" >&5
6549 cat conftest.
$ac_ext >&5
6550 emacs_cv_x11_toolkit_version_6
=no
6552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6555 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6556 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6557 echo "$as_me:6557: result: 6 or newer" >&5
6558 echo "${ECHO_T}6 or newer" >&6
6559 cat >>confdefs.h
<<\EOF
6560 #define HAVE_X11XTR6 1
6564 echo "$as_me:6564: result: before 6" >&5
6565 echo "${ECHO_T}before 6" >&6
6569 if test x
$HAVE_X11XTR6 = xyes
; then
6570 LIBS
="-lXt -lSM -lICE $LIBS"
6575 echo "$as_me:6575: checking for XmuConvertStandardSelection in -lXmu" >&5
6576 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6577 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_check_lib_save_LIBS
=$LIBS
6582 cat >conftest.
$ac_ext <<_ACEOF
6583 #line 6583 "configure"
6584 #include "confdefs.h"
6586 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6592 char XmuConvertStandardSelection ();
6596 XmuConvertStandardSelection ();
6601 rm -f conftest.
$ac_objext conftest
$ac_exeext
6602 if { (eval echo "$as_me:6602: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>&5
6605 echo "$as_me:6605: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try
='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:6608: \"$ac_try\"") >&5
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6615 echo "$as_me: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6617 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6620 LIBS
=$ac_check_lib_save_LIBS
6622 echo "$as_me:6622: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6623 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6624 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6625 cat >>confdefs.h
<<EOF
6626 #define HAVE_LIBXMU 1
6633 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6636 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6637 if test "${HAVE_X11}" = "yes"; then
6638 if test "${USE_X_TOOLKIT}" != "none"; then
6640 echo "$as_me:6640: checking for XShapeQueryExtension in -lXext" >&5
6641 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6642 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6645 ac_check_lib_save_LIBS
=$LIBS
6647 cat >conftest.
$ac_ext <<_ACEOF
6648 #line 6648 "configure"
6649 #include "confdefs.h"
6651 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6657 char XShapeQueryExtension ();
6661 XShapeQueryExtension ();
6666 rm -f conftest.
$ac_objext conftest
$ac_exeext
6667 if { (eval echo "$as_me:6667: \"$ac_link\"") >&5
6668 (eval $ac_link) 2>&5
6670 echo "$as_me:6670: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try
='test -s conftest$ac_exeext'
6673 { (eval echo "$as_me:6673: \"$ac_try\"") >&5
6676 echo "$as_me:6676: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6680 echo "$as_me: failed program was:" >&5
6681 cat conftest.
$ac_ext >&5
6682 ac_cv_lib_Xext_XShapeQueryExtension
=no
6684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6685 LIBS
=$ac_check_lib_save_LIBS
6687 echo "$as_me:6687: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6688 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6689 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6690 cat >>confdefs.h
<<EOF
6691 #define HAVE_LIBXEXT 1
6701 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6702 echo "$as_me:6702: checking for Motif version 2.1" >&5
6703 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6704 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.
$ac_ext <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6714 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6717 Motif version prior to 2.1.
6723 rm -f conftest.
$ac_objext
6724 if { (eval echo "$as_me:6724: \"$ac_compile\"") >&5
6725 (eval $ac_compile) 2>&5
6727 echo "$as_me:6727: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try
='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5
6733 echo "$as_me:6733: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 emacs_cv_motif_version_2_1
=yes
6737 echo "$as_me: failed program was:" >&5
6738 cat conftest.
$ac_ext >&5
6739 emacs_cv_motif_version_2_1
=no
6741 rm -f conftest.
$ac_objext conftest.
$ac_ext
6743 echo "$as_me:6743: result: $emacs_cv_motif_version_2_1" >&5
6744 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6745 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6746 if test $emacs_cv_motif_version_2_1 = yes; then
6748 cat >>confdefs.h
<<\EOF
6749 #define HAVE_MOTIF_2_1 1
6752 echo "$as_me:6752: checking for XpCreateContext in -lXp" >&5
6753 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6754 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_check_lib_save_LIBS
=$LIBS
6759 cat >conftest.
$ac_ext <<_ACEOF
6760 #line 6760 "configure"
6761 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6769 char XpCreateContext ();
6778 rm -f conftest.
$ac_objext conftest
$ac_exeext
6779 if { (eval echo "$as_me:6779: \"$ac_link\"") >&5
6780 (eval $ac_link) 2>&5
6782 echo "$as_me:6782: \$? = $ac_status" >&5
6783 (exit $ac_status); } &&
6784 { ac_try
='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:6785: \"$ac_try\"") >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 ac_cv_lib_Xp_XpCreateContext
=yes
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.
$ac_ext >&5
6794 ac_cv_lib_Xp_XpCreateContext
=no
6796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6797 LIBS
=$ac_check_lib_save_LIBS
6799 echo "$as_me:6799: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6800 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6801 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6805 if test ${HAVE_LIBXP} = yes; then
6806 cat >>confdefs.h
<<\EOF
6807 #define HAVE_LIBXP 1
6814 ### Is -lXaw3d available?
6816 if test "${HAVE_X11}" = "yes"; then
6817 if test "${USE_X_TOOLKIT}" != "none"; then
6818 echo "$as_me:6818: checking for X11/Xaw3d/Scrollbar.h" >&5
6819 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6820 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.
$ac_ext <<_ACEOF
6824 #line 6824 "configure"
6825 #include "confdefs.h"
6826 #include <X11/Xaw3d/Scrollbar.h>
6828 if { (eval echo "$as_me:6828: \"$ac_cpp conftest.$ac_ext\"") >&5
6829 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6831 egrep -v '^ *\+' conftest.er1
>conftest.err
6833 cat conftest.err
>&5
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 (exit $ac_status); } >/dev
/null
; then
6836 if test -s conftest.err
; then
6837 ac_cpp_err
=$ac_c_preproc_warn_flag
6844 if test -z "$ac_cpp_err"; then
6845 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6847 echo "$as_me: failed program was:" >&5
6848 cat conftest.
$ac_ext >&5
6849 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6851 rm -f conftest.err conftest.
$ac_ext
6853 echo "$as_me:6853: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6854 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6855 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6856 echo "$as_me:6856: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6857 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6858 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 ac_check_lib_save_LIBS
=$LIBS
6862 LIBS
="-lXaw3d $LIBS"
6863 cat >conftest.
$ac_ext <<_ACEOF
6864 #line 6864 "configure"
6865 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873 char XawScrollbarSetThumb ();
6877 XawScrollbarSetThumb ();
6882 rm -f conftest.
$ac_objext conftest
$ac_exeext
6883 if { (eval echo "$as_me:6883: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try
='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:6889: \"$ac_try\"") >&5
6892 echo "$as_me:6892: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6896 echo "$as_me: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6898 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6901 LIBS
=$ac_check_lib_save_LIBS
6903 echo "$as_me:6903: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6904 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6905 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6911 if test "${HAVE_XAW3D}" = "yes"; then
6912 cat >>confdefs.h
<<\EOF
6913 #define HAVE_XAW3D 1
6920 USE_TOOLKIT_SCROLL_BARS
=no
6921 if test "${with_toolkit_scroll_bars}" != "no"; then
6922 if test "${USE_X_TOOLKIT}" != "none"; then
6923 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6924 cat >>confdefs.h
<<\EOF
6925 #define USE_TOOLKIT_SCROLL_BARS 1
6929 USE_TOOLKIT_SCROLL_BARS
=yes
6930 elif test "${HAVE_XAW3D}" = "yes"; then
6931 cat >>confdefs.h
<<\EOF
6932 #define USE_TOOLKIT_SCROLL_BARS 1
6935 USE_TOOLKIT_SCROLL_BARS
=yes
6940 if test "${with_xim}" != "no"; then
6941 cat >>confdefs.h
<<\EOF
6947 ### Use -lXpm if available, unless `--with-xpm=no'.
6949 if test "${HAVE_X11}" = "yes"; then
6950 if test "${with_xpm}" != "no"; then
6951 echo "$as_me:6951: checking for X11/xpm.h" >&5
6952 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6953 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat >conftest.
$ac_ext <<_ACEOF
6957 #line 6957 "configure"
6958 #include "confdefs.h"
6959 #include <X11/xpm.h>
6961 if { (eval echo "$as_me:6961: \"$ac_cpp conftest.$ac_ext\"") >&5
6962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6964 egrep -v '^ *\+' conftest.er1
>conftest.err
6966 cat conftest.err
>&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev
/null
; then
6969 if test -s conftest.err
; then
6970 ac_cpp_err
=$ac_c_preproc_warn_flag
6977 if test -z "$ac_cpp_err"; then
6978 ac_cv_header_X11_xpm_h
=yes
6980 echo "$as_me: failed program was:" >&5
6981 cat conftest.
$ac_ext >&5
6982 ac_cv_header_X11_xpm_h
=no
6984 rm -f conftest.err conftest.
$ac_ext
6986 echo "$as_me:6986: result: $ac_cv_header_X11_xpm_h" >&5
6987 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
6988 if test $ac_cv_header_X11_xpm_h = yes; then
6989 echo "$as_me:6989: checking for XpmReadFileToPixmap in -lXpm" >&5
6990 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
6991 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_check_lib_save_LIBS
=$LIBS
6995 LIBS
="-lXpm -lX11 $LIBS"
6996 cat >conftest.
$ac_ext <<_ACEOF
6997 #line 6997 "configure"
6998 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char XpmReadFileToPixmap ();
7010 XpmReadFileToPixmap ();
7015 rm -f conftest.
$ac_objext conftest
$ac_exeext
7016 if { (eval echo "$as_me:7016: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7019 echo "$as_me:7019: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try
='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:7022: \"$ac_try\"") >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7029 echo "$as_me: failed program was:" >&5
7030 cat conftest.
$ac_ext >&5
7031 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7033 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7034 LIBS
=$ac_check_lib_save_LIBS
7036 echo "$as_me:7036: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7037 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7038 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7044 if test "${HAVE_XPM}" = "yes"; then
7045 echo "$as_me:7045: checking for XpmReturnAllocPixels preprocessor define" >&5
7046 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7047 cat >conftest.
$ac_ext <<_ACEOF
7048 #line 7048 "configure"
7049 #include "confdefs.h"
7050 #include "X11/xpm.h"
7051 #ifndef XpmReturnAllocPixels
7052 no_return_alloc_pixels
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7064 if test "${HAVE_XPM}" = "yes"; then
7065 echo "$as_me:7065: result: yes" >&5
7066 echo "${ECHO_T}yes" >&6
7068 echo "$as_me:7068: result: no" >&5
7069 echo "${ECHO_T}no" >&6
7074 if test "${HAVE_XPM}" = "yes"; then
7075 cat >>confdefs.h
<<\EOF
7082 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7084 if test "${HAVE_X11}" = "yes"; then
7085 if test "${with_jpeg}" != "no"; then
7086 echo "$as_me:7086: checking for jerror.h" >&5
7087 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7088 if test "${ac_cv_header_jerror_h+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 cat >conftest.
$ac_ext <<_ACEOF
7092 #line 7092 "configure"
7093 #include "confdefs.h"
7096 if { (eval echo "$as_me:7096: \"$ac_cpp conftest.$ac_ext\"") >&5
7097 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7099 egrep -v '^ *\+' conftest.er1
>conftest.err
7101 cat conftest.err
>&5
7102 echo "$as_me:7102: \$? = $ac_status" >&5
7103 (exit $ac_status); } >/dev
/null
; then
7104 if test -s conftest.err
; then
7105 ac_cpp_err
=$ac_c_preproc_warn_flag
7112 if test -z "$ac_cpp_err"; then
7113 ac_cv_header_jerror_h
=yes
7115 echo "$as_me: failed program was:" >&5
7116 cat conftest.
$ac_ext >&5
7117 ac_cv_header_jerror_h
=no
7119 rm -f conftest.err conftest.
$ac_ext
7121 echo "$as_me:7121: result: $ac_cv_header_jerror_h" >&5
7122 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7123 if test $ac_cv_header_jerror_h = yes; then
7124 echo "$as_me:7124: checking for jpeg_destroy_compress in -ljpeg" >&5
7125 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7126 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_check_lib_save_LIBS
=$LIBS
7131 cat >conftest.
$ac_ext <<_ACEOF
7132 #line 7132 "configure"
7133 #include "confdefs.h"
7135 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7141 char jpeg_destroy_compress ();
7145 jpeg_destroy_compress ();
7150 rm -f conftest.
$ac_objext conftest
$ac_exeext
7151 if { (eval echo "$as_me:7151: \"$ac_link\"") >&5
7152 (eval $ac_link) 2>&5
7154 echo "$as_me:7154: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
7156 { ac_try
='test -s conftest$ac_exeext'
7157 { (eval echo "$as_me:7157: \"$ac_try\"") >&5
7160 echo "$as_me:7160: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7164 echo "$as_me: failed program was:" >&5
7165 cat conftest.
$ac_ext >&5
7166 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7168 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7169 LIBS
=$ac_check_lib_save_LIBS
7171 echo "$as_me:7171: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7172 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7173 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7181 if test "${HAVE_JPEG}" = "yes"; then
7182 cat >>confdefs.h
<<\EOF
7189 ### Use -lpng if available, unless `--with-png=no'.
7191 if test "${HAVE_X11}" = "yes"; then
7192 if test "${with_png}" != "no"; then
7193 echo "$as_me:7193: checking for png.h" >&5
7194 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7195 if test "${ac_cv_header_png_h+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 cat >conftest.
$ac_ext <<_ACEOF
7199 #line 7199 "configure"
7200 #include "confdefs.h"
7203 if { (eval echo "$as_me:7203: \"$ac_cpp conftest.$ac_ext\"") >&5
7204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7206 egrep -v '^ *\+' conftest.er1
>conftest.err
7208 cat conftest.err
>&5
7209 echo "$as_me:7209: \$? = $ac_status" >&5
7210 (exit $ac_status); } >/dev
/null
; then
7211 if test -s conftest.err
; then
7212 ac_cpp_err
=$ac_c_preproc_warn_flag
7219 if test -z "$ac_cpp_err"; then
7220 ac_cv_header_png_h
=yes
7222 echo "$as_me: failed program was:" >&5
7223 cat conftest.
$ac_ext >&5
7224 ac_cv_header_png_h
=no
7226 rm -f conftest.err conftest.
$ac_ext
7228 echo "$as_me:7228: result: $ac_cv_header_png_h" >&5
7229 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7230 if test $ac_cv_header_png_h = yes; then
7231 echo "$as_me:7231: checking for png_get_channels in -lpng" >&5
7232 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7233 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_check_lib_save_LIBS
=$LIBS
7237 LIBS
="-lpng -lz -lm $LIBS"
7238 cat >conftest.
$ac_ext <<_ACEOF
7239 #line 7239 "configure"
7240 #include "confdefs.h"
7242 /* Override any gcc2 internal prototype to avoid an error. */
7246 /* We use char because int might match the return type of a gcc2
7247 builtin and then its argument prototype would still apply. */
7248 char png_get_channels ();
7252 png_get_channels ();
7257 rm -f conftest.
$ac_objext conftest
$ac_exeext
7258 if { (eval echo "$as_me:7258: \"$ac_link\"") >&5
7259 (eval $ac_link) 2>&5
7261 echo "$as_me:7261: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try
='test -s conftest$ac_exeext'
7264 { (eval echo "$as_me:7264: \"$ac_try\"") >&5
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 ac_cv_lib_png_png_get_channels
=yes
7271 echo "$as_me: failed program was:" >&5
7272 cat conftest.
$ac_ext >&5
7273 ac_cv_lib_png_png_get_channels
=no
7275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7276 LIBS
=$ac_check_lib_save_LIBS
7278 echo "$as_me:7278: result: $ac_cv_lib_png_png_get_channels" >&5
7279 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7280 if test $ac_cv_lib_png_png_get_channels = yes; then
7288 if test "${HAVE_PNG}" = "yes"; then
7289 cat >>confdefs.h
<<\EOF
7296 ### Use -ltiff if available, unless `--with-tiff=no'.
7298 if test "${HAVE_X11}" = "yes"; then
7299 if test "${with_tiff}" != "no"; then
7300 echo "$as_me:7300: checking for tiffio.h" >&5
7301 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7302 if test "${ac_cv_header_tiffio_h+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 cat >conftest.
$ac_ext <<_ACEOF
7306 #line 7306 "configure"
7307 #include "confdefs.h"
7310 if { (eval echo "$as_me:7310: \"$ac_cpp conftest.$ac_ext\"") >&5
7311 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7313 egrep -v '^ *\+' conftest.er1
>conftest.err
7315 cat conftest.err
>&5
7316 echo "$as_me:7316: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev
/null
; then
7318 if test -s conftest.err
; then
7319 ac_cpp_err
=$ac_c_preproc_warn_flag
7326 if test -z "$ac_cpp_err"; then
7327 ac_cv_header_tiffio_h
=yes
7329 echo "$as_me: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7331 ac_cv_header_tiffio_h
=no
7333 rm -f conftest.err conftest.
$ac_ext
7335 echo "$as_me:7335: result: $ac_cv_header_tiffio_h" >&5
7336 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7337 if test $ac_cv_header_tiffio_h = yes; then
7339 # At least one tiff package requires the jpeg library.
7340 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7341 echo "$as_me:7341: checking for TIFFGetVersion in -ltiff" >&5
7342 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7343 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_check_lib_save_LIBS
=$LIBS
7347 LIBS
="-ltiff $tifflibs $LIBS"
7348 cat >conftest.
$ac_ext <<_ACEOF
7349 #line 7349 "configure"
7350 #include "confdefs.h"
7352 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char TIFFGetVersion ();
7367 rm -f conftest.
$ac_objext conftest
$ac_exeext
7368 if { (eval echo "$as_me:7368: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try
='test -s conftest$ac_exeext'
7374 { (eval echo "$as_me:7374: \"$ac_try\"") >&5
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_lib_tiff_TIFFGetVersion
=yes
7381 echo "$as_me: failed program was:" >&5
7382 cat conftest.
$ac_ext >&5
7383 ac_cv_lib_tiff_TIFFGetVersion
=no
7385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7386 LIBS
=$ac_check_lib_save_LIBS
7388 echo "$as_me:7388: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7389 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7390 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7398 if test "${HAVE_TIFF}" = "yes"; then
7399 cat >>confdefs.h
<<\EOF
7406 ### Use -lgif if available, unless `--with-gif=no'.
7408 if test "${HAVE_X11}" = "yes"; then
7409 if test "${with_gif}" != "no"; then
7410 echo "$as_me:7410: checking for gif_lib.h" >&5
7411 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7412 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 cat >conftest.
$ac_ext <<_ACEOF
7416 #line 7416 "configure"
7417 #include "confdefs.h"
7418 #include <gif_lib.h>
7420 if { (eval echo "$as_me:7420: \"$ac_cpp conftest.$ac_ext\"") >&5
7421 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7423 egrep -v '^ *\+' conftest.er1
>conftest.err
7425 cat conftest.err
>&5
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 (exit $ac_status); } >/dev
/null
; then
7428 if test -s conftest.err
; then
7429 ac_cpp_err
=$ac_c_preproc_warn_flag
7436 if test -z "$ac_cpp_err"; then
7437 ac_cv_header_gif_lib_h
=yes
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.
$ac_ext >&5
7441 ac_cv_header_gif_lib_h
=no
7443 rm -f conftest.err conftest.
$ac_ext
7445 echo "$as_me:7445: result: $ac_cv_header_gif_lib_h" >&5
7446 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7447 if test $ac_cv_header_gif_lib_h = yes; then
7448 echo "$as_me:7448: checking for DGifOpen in -lungif" >&5
7449 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7450 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 ac_check_lib_save_LIBS
=$LIBS
7454 LIBS
="-lungif $LIBS"
7455 cat >conftest.
$ac_ext <<_ACEOF
7456 #line 7456 "configure"
7457 #include "confdefs.h"
7459 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7474 rm -f conftest.
$ac_objext conftest
$ac_exeext
7475 if { (eval echo "$as_me:7475: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7478 echo "$as_me:7478: \$? = $ac_status" >&5
7479 (exit $ac_status); } &&
7480 { ac_try
='test -s conftest$ac_exeext'
7481 { (eval echo "$as_me:7481: \"$ac_try\"") >&5
7484 echo "$as_me:7484: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_lib_ungif_DGifOpen
=yes
7488 echo "$as_me: failed program was:" >&5
7489 cat conftest.
$ac_ext >&5
7490 ac_cv_lib_ungif_DGifOpen
=no
7492 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7493 LIBS
=$ac_check_lib_save_LIBS
7495 echo "$as_me:7495: result: $ac_cv_lib_ungif_DGifOpen" >&5
7496 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7497 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7505 if test "${HAVE_GIF}" = "yes"; then
7506 cat >>confdefs.h
<<\EOF
7513 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7514 echo "$as_me:7514: checking whether netdb declares h_errno" >&5
7515 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7516 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.
$ac_ext <<_ACEOF
7520 #line 7520 "configure"
7521 #include "confdefs.h"
7531 rm -f conftest.
$ac_objext conftest
$ac_exeext
7532 if { (eval echo "$as_me:7532: \"$ac_link\"") >&5
7533 (eval $ac_link) 2>&5
7535 echo "$as_me:7535: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try
='test -s conftest$ac_exeext'
7538 { (eval echo "$as_me:7538: \"$ac_try\"") >&5
7541 echo "$as_me:7541: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 emacs_cv_netdb_declares_h_errno
=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.
$ac_ext >&5
7547 emacs_cv_netdb_declares_h_errno
=no
7549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7551 echo "$as_me:7551: result: $emacs_cv_netdb_declares_h_errno" >&5
7552 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7553 if test $emacs_cv_netdb_declares_h_errno = yes; then
7554 cat >>confdefs.h
<<\EOF
7555 #define HAVE_H_ERRNO 1
7560 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7561 # for constant arguments. Useless!
7562 echo "$as_me:7562: checking for working alloca.h" >&5
7563 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7564 if test "${ac_cv_working_alloca_h+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 cat >conftest.
$ac_ext <<_ACEOF
7568 #line 7568 "configure"
7569 #include "confdefs.h"
7574 char *p = (char *) alloca (2 * sizeof (int));
7579 rm -f conftest.
$ac_objext conftest
$ac_exeext
7580 if { (eval echo "$as_me:7580: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>&5
7583 echo "$as_me:7583: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try
='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:7586: \"$ac_try\"") >&5
7589 echo "$as_me:7589: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_working_alloca_h
=yes
7593 echo "$as_me: failed program was:" >&5
7594 cat conftest.
$ac_ext >&5
7595 ac_cv_working_alloca_h
=no
7597 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7599 echo "$as_me:7599: result: $ac_cv_working_alloca_h" >&5
7600 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7601 if test $ac_cv_working_alloca_h = yes; then
7603 cat >>confdefs.h
<<\EOF
7604 #define HAVE_ALLOCA_H 1
7609 echo "$as_me:7609: checking for alloca" >&5
7610 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7611 if test "${ac_cv_func_alloca_works+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 cat >conftest.
$ac_ext <<_ACEOF
7615 #line 7615 "configure"
7616 #include "confdefs.h"
7618 # define alloca __builtin_alloca
7621 # include <malloc.h>
7622 # define alloca _alloca
7625 # include <alloca.h>
7630 # ifndef alloca /* predefined by HP cc +Olibcalls */
7641 char *p = (char *) alloca (1);
7646 rm -f conftest.
$ac_objext conftest
$ac_exeext
7647 if { (eval echo "$as_me:7647: \"$ac_link\"") >&5
7648 (eval $ac_link) 2>&5
7650 echo "$as_me:7650: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try
='test -s conftest$ac_exeext'
7653 { (eval echo "$as_me:7653: \"$ac_try\"") >&5
7656 echo "$as_me:7656: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_cv_func_alloca_works
=yes
7660 echo "$as_me: failed program was:" >&5
7661 cat conftest.
$ac_ext >&5
7662 ac_cv_func_alloca_works
=no
7664 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7666 echo "$as_me:7666: result: $ac_cv_func_alloca_works" >&5
7667 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7669 if test $ac_cv_func_alloca_works = yes; then
7671 cat >>confdefs.h
<<\EOF
7672 #define HAVE_ALLOCA 1
7676 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7677 # that cause trouble. Some versions do not even contain alloca or
7678 # contain a buggy version. If you still want to use their alloca,
7679 # use ar to extract alloca.o from them instead of compiling alloca.c.
7681 ALLOCA
=alloca.
$ac_objext
7683 cat >>confdefs.h
<<\EOF
7687 echo "$as_me:7687: checking whether \`alloca.c' needs Cray hooks" >&5
7688 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7689 if test "${ac_cv_os_cray+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 cat >conftest.
$ac_ext <<_ACEOF
7693 #line 7693 "configure"
7694 #include "confdefs.h"
7695 #if defined(CRAY) && ! defined(CRAY2)
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 egrep "webecray" >/dev
/null
2>&1; then
7711 echo "$as_me:7711: result: $ac_cv_os_cray" >&5
7712 echo "${ECHO_T}$ac_cv_os_cray" >&6
7713 if test $ac_cv_os_cray = yes; then
7714 for ac_func
in _getb67 GETB67 getb67
; do
7715 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7716 echo "$as_me:7716: checking for $ac_func" >&5
7717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7718 if eval "test \"\${$as_ac_var+set}\" = set"; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.
$ac_ext <<_ACEOF
7722 #line 7722 "configure"
7723 #include "confdefs.h"
7724 /* System header to define __stub macros and hopefully few prototypes,
7725 which can conflict with char $ac_func (); below. */
7727 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7752 rm -f conftest.
$ac_objext conftest
$ac_exeext
7753 if { (eval echo "$as_me:7753: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>&5
7756 echo "$as_me:7756: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try
='test -s conftest$ac_exeext'
7759 { (eval echo "$as_me:7759: \"$ac_try\"") >&5
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7764 eval "$as_ac_var=yes"
7766 echo "$as_me: failed program was:" >&5
7767 cat conftest.
$ac_ext >&5
7768 eval "$as_ac_var=no"
7770 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7772 echo "$as_me:7772: result: `eval echo '${'$as_ac_var'}'`" >&5
7773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7774 if test `eval echo '${'$as_ac_var'}'` = yes; then
7776 cat >>confdefs.h
<<EOF
7777 #define CRAY_STACKSEG_END $ac_func
7786 echo "$as_me:7786: checking stack direction for C alloca" >&5
7787 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7788 if test "${ac_cv_c_stack_direction+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 if test "$cross_compiling" = yes; then
7792 ac_cv_c_stack_direction
=0
7794 cat >conftest.
$ac_ext <<_ACEOF
7795 #line 7795 "configure"
7796 #include "confdefs.h"
7798 find_stack_direction ()
7800 static char *addr = 0;
7805 return find_stack_direction ();
7808 return (&dummy > addr) ? 1 : -1;
7814 exit (find_stack_direction () < 0);
7817 rm -f conftest
$ac_exeext
7818 if { (eval echo "$as_me:7818: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>&5
7821 echo "$as_me:7821: \$? = $ac_status" >&5
7822 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7823 { (eval echo "$as_me:7823: \"$ac_try\"") >&5
7826 echo "$as_me:7826: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7828 ac_cv_c_stack_direction
=1
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 cat conftest.
$ac_ext >&5
7833 ac_cv_c_stack_direction
=-1
7835 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7838 echo "$as_me:7838: result: $ac_cv_c_stack_direction" >&5
7839 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7841 cat >>confdefs.h
<<EOF
7842 #define STACK_DIRECTION $ac_cv_c_stack_direction
7847 # fmod, logb, and frexp are found in -lm on most systems.
7848 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7850 echo "$as_me:7850: checking for sqrt in -lm" >&5
7851 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7852 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_check_lib_save_LIBS
=$LIBS
7857 cat >conftest.
$ac_ext <<_ACEOF
7858 #line 7858 "configure"
7859 #include "confdefs.h"
7861 /* Override any gcc2 internal prototype to avoid an error. */
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7876 rm -f conftest.
$ac_objext conftest
$ac_exeext
7877 if { (eval echo "$as_me:7877: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>&5
7880 echo "$as_me:7880: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try
='test -s conftest$ac_exeext'
7883 { (eval echo "$as_me:7883: \"$ac_try\"") >&5
7886 echo "$as_me:7886: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_cv_lib_m_sqrt
=yes
7890 echo "$as_me: failed program was:" >&5
7891 cat conftest.
$ac_ext >&5
7894 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7895 LIBS
=$ac_check_lib_save_LIBS
7897 echo "$as_me:7897: result: $ac_cv_lib_m_sqrt" >&5
7898 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7899 if test $ac_cv_lib_m_sqrt = yes; then
7900 cat >>confdefs.h
<<EOF
7908 # Check for mail-locking functions in a "mail" library
7910 echo "$as_me:7910: checking for maillock in -lmail" >&5
7911 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7912 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 ac_check_lib_save_LIBS
=$LIBS
7917 cat >conftest.
$ac_ext <<_ACEOF
7918 #line 7918 "configure"
7919 #include "confdefs.h"
7921 /* Override any gcc2 internal prototype to avoid an error. */
7925 /* We use char because int might match the return type of a gcc2
7926 builtin and then its argument prototype would still apply. */
7936 rm -f conftest.
$ac_objext conftest
$ac_exeext
7937 if { (eval echo "$as_me:7937: \"$ac_link\"") >&5
7938 (eval $ac_link) 2>&5
7940 echo "$as_me:7940: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try
='test -s conftest$ac_exeext'
7943 { (eval echo "$as_me:7943: \"$ac_try\"") >&5
7946 echo "$as_me:7946: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 ac_cv_lib_mail_maillock
=yes
7950 echo "$as_me: failed program was:" >&5
7951 cat conftest.
$ac_ext >&5
7952 ac_cv_lib_mail_maillock
=no
7954 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7955 LIBS
=$ac_check_lib_save_LIBS
7957 echo "$as_me:7957: result: $ac_cv_lib_mail_maillock" >&5
7958 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7959 if test $ac_cv_lib_mail_maillock = yes; then
7960 cat >>confdefs.h
<<EOF
7961 #define HAVE_LIBMAIL 1
7968 echo "$as_me:7968: checking for maillock in -llockfile" >&5
7969 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
7970 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 ac_check_lib_save_LIBS
=$LIBS
7974 LIBS
="-llockfile $LIBS"
7975 cat >conftest.
$ac_ext <<_ACEOF
7976 #line 7976 "configure"
7977 #include "confdefs.h"
7979 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7994 rm -f conftest.
$ac_objext conftest
$ac_exeext
7995 if { (eval echo "$as_me:7995: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>&5
7998 echo "$as_me:7998: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try
='test -s conftest$ac_exeext'
8001 { (eval echo "$as_me:8001: \"$ac_try\"") >&5
8004 echo "$as_me:8004: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 ac_cv_lib_lockfile_maillock
=yes
8008 echo "$as_me: failed program was:" >&5
8009 cat conftest.
$ac_ext >&5
8010 ac_cv_lib_lockfile_maillock
=no
8012 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8013 LIBS
=$ac_check_lib_save_LIBS
8015 echo "$as_me:8015: result: $ac_cv_lib_lockfile_maillock" >&5
8016 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8017 if test $ac_cv_lib_lockfile_maillock = yes; then
8018 cat >>confdefs.h
<<EOF
8019 #define HAVE_LIBLOCKFILE 1
8022 LIBS
="-llockfile $LIBS"
8026 # If we have the shared liblockfile, assume we must use it for mail
8027 # locking (e.g. Debian). If we couldn't link against liblockfile
8028 # (no liblockfile.a installed), ensure that we don't need to.
8029 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8030 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8031 set dummy liblockfile.so
; ac_word
=$2
8032 echo "$as_me:8032: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8034 if test "${ac_cv_prog_liblockfile+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 if test -n "$liblockfile"; then
8038 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8040 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8041 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8042 for ac_dir
in $ac_dummy; do
8044 test -z "$ac_dir" && ac_dir
=.
8045 $as_executable_p "$ac_dir/$ac_word" ||
continue
8046 ac_cv_prog_liblockfile
="yes"
8047 echo "$as_me:8047: found $ac_dir/$ac_word" >&5
8051 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8054 liblockfile
=$ac_cv_prog_liblockfile
8055 if test -n "$liblockfile"; then
8056 echo "$as_me:8056: result: $liblockfile" >&5
8057 echo "${ECHO_T}$liblockfile" >&6
8059 echo "$as_me:8059: result: no" >&5
8060 echo "${ECHO_T}no" >&6
8063 if test $ac_cv_prog_liblockfile = yes; then
8064 { { echo "$as_me:8064: error: Shared liblockfile found but can't link against it.
8065 This probably means that movemail could lose mail.
8066 There may be a \`development' package to install containing liblockfile." >&5
8067 echo "$as_me: error: Shared liblockfile found but can't link against it.
8068 This probably means that movemail could lose mail.
8069 There may be a \`development' package to install containing liblockfile." >&2;}
8070 { (exit 1); exit 1; }; }
8071 else cat >>confdefs.h
<<\EOF
8072 #define LIBMAIL -llockfile
8079 for ac_func
in touchlock
8081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8082 echo "$as_me:8082: checking for $ac_func" >&5
8083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8084 if eval "test \"\${$as_ac_var+set}\" = set"; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.
$ac_ext <<_ACEOF
8088 #line 8088 "configure"
8089 #include "confdefs.h"
8090 /* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char $ac_func (); below. */
8093 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8118 rm -f conftest.
$ac_objext conftest
$ac_exeext
8119 if { (eval echo "$as_me:8119: \"$ac_link\"") >&5
8120 (eval $ac_link) 2>&5
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try
='test -s conftest$ac_exeext'
8125 { (eval echo "$as_me:8125: \"$ac_try\"") >&5
8128 echo "$as_me:8128: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 eval "$as_ac_var=yes"
8132 echo "$as_me: failed program was:" >&5
8133 cat conftest.
$ac_ext >&5
8134 eval "$as_ac_var=no"
8136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8138 echo "$as_me:8138: result: `eval echo '${'$as_ac_var'}'`" >&5
8139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8140 if test `eval echo '${'$as_ac_var'}'` = yes; then
8141 cat >>confdefs.h
<<EOF
8142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8148 for ac_header
in maillock.h
8150 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8151 echo "$as_me:8151: checking for $ac_header" >&5
8152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 cat >conftest.
$ac_ext <<_ACEOF
8157 #line 8157 "configure"
8158 #include "confdefs.h"
8159 #include <$ac_header>
8161 if { (eval echo "$as_me:8161: \"$ac_cpp conftest.$ac_ext\"") >&5
8162 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8164 egrep -v '^ *\+' conftest.er1
>conftest.err
8166 cat conftest.err
>&5
8167 echo "$as_me:8167: \$? = $ac_status" >&5
8168 (exit $ac_status); } >/dev
/null
; then
8169 if test -s conftest.err
; then
8170 ac_cpp_err
=$ac_c_preproc_warn_flag
8177 if test -z "$ac_cpp_err"; then
8178 eval "$as_ac_Header=yes"
8180 echo "$as_me: failed program was:" >&5
8181 cat conftest.
$ac_ext >&5
8182 eval "$as_ac_Header=no"
8184 rm -f conftest.err conftest.
$ac_ext
8186 echo "$as_me:8186: result: `eval echo '${'$as_ac_Header'}'`" >&5
8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8189 cat >>confdefs.h
<<EOF
8190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 for ac_func
in gethostname getdomainname dup2 \
8197 rename closedir mkdir
rmdir sysinfo \
8198 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8199 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8200 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8201 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
8202 gai_strerror mkstemp
8204 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8205 echo "$as_me:8205: checking for $ac_func" >&5
8206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8207 if eval "test \"\${$as_ac_var+set}\" = set"; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.
$ac_ext <<_ACEOF
8211 #line 8211 "configure"
8212 #include "confdefs.h"
8213 /* System header to define __stub macros and hopefully few prototypes,
8214 which can conflict with char $ac_func (); below. */
8216 /* Override any gcc2 internal prototype to avoid an error. */
8220 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */
8228 /* The GNU C library defines this for functions which it implements
8229 to always fail with ENOSYS. Some functions are actually named
8230 something starting with __ and the normal name is an alias. */
8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8241 rm -f conftest.
$ac_objext conftest
$ac_exeext
8242 if { (eval echo "$as_me:8242: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>&5
8245 echo "$as_me:8245: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try
='test -s conftest$ac_exeext'
8248 { (eval echo "$as_me:8248: \"$ac_try\"") >&5
8251 echo "$as_me:8251: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 eval "$as_ac_var=yes"
8255 echo "$as_me: failed program was:" >&5
8256 cat conftest.
$ac_ext >&5
8257 eval "$as_ac_var=no"
8259 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8261 echo "$as_me:8261: result: `eval echo '${'$as_ac_var'}'`" >&5
8262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8263 if test `eval echo '${'$as_ac_var'}'` = yes; then
8264 cat >>confdefs.h
<<EOF
8265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8271 for ac_header
in sys
/time.h unistd.h
8273 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8274 echo "$as_me:8274: checking for $ac_header" >&5
8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.
$ac_ext <<_ACEOF
8280 #line 8280 "configure"
8281 #include "confdefs.h"
8282 #include <$ac_header>
8284 if { (eval echo "$as_me:8284: \"$ac_cpp conftest.$ac_ext\"") >&5
8285 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8287 egrep -v '^ *\+' conftest.er1
>conftest.err
8289 cat conftest.err
>&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 (exit $ac_status); } >/dev
/null
; then
8292 if test -s conftest.err
; then
8293 ac_cpp_err
=$ac_c_preproc_warn_flag
8300 if test -z "$ac_cpp_err"; then
8301 eval "$as_ac_Header=yes"
8303 echo "$as_me: failed program was:" >&5
8304 cat conftest.
$ac_ext >&5
8305 eval "$as_ac_Header=no"
8307 rm -f conftest.err conftest.
$ac_ext
8309 echo "$as_me:8309: result: `eval echo '${'$as_ac_Header'}'`" >&5
8310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8312 cat >>confdefs.h
<<EOF
8313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8319 for ac_func
in alarm
8321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8322 echo "$as_me:8322: checking for $ac_func" >&5
8323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8324 if eval "test \"\${$as_ac_var+set}\" = set"; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 cat >conftest.
$ac_ext <<_ACEOF
8328 #line 8328 "configure"
8329 #include "confdefs.h"
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char $ac_func (); below. */
8333 /* Override any gcc2 internal prototype to avoid an error. */
8337 /* We use char because int might match the return type of a gcc2
8338 builtin and then its argument prototype would still apply. */
8345 /* The GNU C library defines this for functions which it implements
8346 to always fail with ENOSYS. Some functions are actually named
8347 something starting with __ and the normal name is an alias. */
8348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8358 rm -f conftest.
$ac_objext conftest
$ac_exeext
8359 if { (eval echo "$as_me:8359: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try
='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:8365: \"$ac_try\"") >&5
8368 echo "$as_me:8368: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 eval "$as_ac_var=yes"
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.
$ac_ext >&5
8374 eval "$as_ac_var=no"
8376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8378 echo "$as_me:8378: result: `eval echo '${'$as_ac_var'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8380 if test `eval echo '${'$as_ac_var'}'` = yes; then
8381 cat >>confdefs.h
<<EOF
8382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8388 echo "$as_me:8388: checking for working mktime" >&5
8389 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8390 if test "${ac_cv_func_working_mktime+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 if test "$cross_compiling" = yes; then
8394 ac_cv_func_working_mktime
=no
8396 cat >conftest.
$ac_ext <<_ACEOF
8397 #line 8397 "configure"
8398 #include "confdefs.h"
8399 /* Test program from Paul Eggert and Tony Leneis. */
8400 #if TIME_WITH_SYS_TIME
8401 # include <sys/time.h>
8404 # if HAVE_SYS_TIME_H
8405 # include <sys/time.h>
8412 # include <unistd.h>
8416 # define alarm(X) /* empty */
8419 /* Work around redefinition to rpl_putenv by other config tests. */
8422 static time_t time_t_max;
8424 /* Values we'll use to set the TZ environment variable. */
8425 static const char *const tz_strings[] = {
8426 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8427 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8429 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8431 /* Fail if mktime fails to convert a date in the spring-forward gap.
8432 Based on a problem report from Andreas Jaeger. */
8434 spring_forward_gap ()
8436 /* glibc (up to about 1998-10-07) failed this test. */
8439 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8440 instead of "TZ=America/Vancouver" in order to detect the bug even
8441 on systems that don't support the Olson extension, or don't have the
8442 full zoneinfo tables installed. */
8443 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8452 if (mktime (&tm) == (time_t)-1)
8461 if ((lt = localtime (&now)) && mktime (lt) != now)
8463 now = time_t_max - now;
8464 if ((lt = localtime (&now)) && mktime (lt) != now)
8471 /* Based on code from Ariel Faigon. */
8481 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8491 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8493 if (now != (time_t) -1)
8495 struct tm *lt = localtime (&now);
8497 && lt->tm_year == tm.tm_year
8498 && lt->tm_mon == tm.tm_mon
8499 && lt->tm_mday == tm.tm_mday
8500 && lt->tm_hour == tm.tm_hour
8501 && lt->tm_min == tm.tm_min
8502 && lt->tm_sec == tm.tm_sec
8503 && lt->tm_yday == tm.tm_yday
8504 && lt->tm_wday == tm.tm_wday
8505 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8506 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8517 /* This test makes some buggy mktime implementations loop.
8518 Give up after 60 seconds; a mktime slower than that
8519 isn't worth using anyway. */
8522 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8525 delta = time_t_max / 997; /* a suitable prime number */
8526 for (i = 0; i < N_STRINGS; i++)
8529 putenv (tz_strings[i]);
8531 for (t = 0; t <= time_t_max - delta; t += delta)
8533 mktime_test ((time_t) 60 * 60);
8534 mktime_test ((time_t) 60 * 60 * 24);
8536 for (j = 1; 0 < j; j *= 2)
8538 bigtime_test (j - 1);
8541 spring_forward_gap ();
8545 rm -f conftest
$ac_exeext
8546 if { (eval echo "$as_me:8546: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>&5
8549 echo "$as_me:8549: \$? = $ac_status" >&5
8550 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8551 { (eval echo "$as_me:8551: \"$ac_try\"") >&5
8554 echo "$as_me:8554: \$? = $ac_status" >&5
8555 (exit $ac_status); }; }; then
8556 ac_cv_func_working_mktime
=yes
8558 echo "$as_me: program exited with status $ac_status" >&5
8559 echo "$as_me: failed program was:" >&5
8560 cat conftest.
$ac_ext >&5
8561 ac_cv_func_working_mktime
=no
8563 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8566 echo "$as_me:8566: result: $ac_cv_func_working_mktime" >&5
8567 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8568 if test $ac_cv_func_working_mktime = no
; then
8569 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8572 if test "$ac_cv_func_working_mktime" = no
; then
8573 cat >>confdefs.h
<<\EOF
8574 #define BROKEN_MKTIME 1
8579 ac_have_func
=no
# yes means we've found a way to get the load average.
8583 # Check for getloadavg, but be sure not to touch the cache variable.
8584 (echo "$as_me:8584: checking for getloadavg" >&5
8585 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8586 if test "${ac_cv_func_getloadavg+set}" = set; then
8587 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 cat >conftest.
$ac_ext <<_ACEOF
8590 #line 8590 "configure"
8591 #include "confdefs.h"
8592 /* System header to define __stub macros and hopefully few prototypes,
8593 which can conflict with char getloadavg (); below. */
8595 /* Override any gcc2 internal prototype to avoid an error. */
8599 /* We use char because int might match the return type of a gcc2
8600 builtin and then its argument prototype would still apply. */
8607 /* The GNU C library defines this for functions which it implements
8608 to always fail with ENOSYS. Some functions are actually named
8609 something starting with __ and the normal name is an alias. */
8610 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8620 rm -f conftest.
$ac_objext conftest
$ac_exeext
8621 if { (eval echo "$as_me:8621: \"$ac_link\"") >&5
8622 (eval $ac_link) 2>&5
8624 echo "$as_me:8624: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try
='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:8627: \"$ac_try\"") >&5
8630 echo "$as_me:8630: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_func_getloadavg
=yes
8634 echo "$as_me: failed program was:" >&5
8635 cat conftest.
$ac_ext >&5
8636 ac_cv_func_getloadavg
=no
8638 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8640 echo "$as_me:8640: result: $ac_cv_func_getloadavg" >&5
8641 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8642 if test $ac_cv_func_getloadavg = yes; then
8647 ) && ac_have_func
=yes
8649 # On HPUX9, an unprivileged user can get load averages through this function.
8651 for ac_func
in pstat_getdynamic
8653 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8654 echo "$as_me:8654: checking for $ac_func" >&5
8655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8656 if eval "test \"\${$as_ac_var+set}\" = set"; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.
$ac_ext <<_ACEOF
8660 #line 8660 "configure"
8661 #include "confdefs.h"
8662 /* System header to define __stub macros and hopefully few prototypes,
8663 which can conflict with char $ac_func (); below. */
8665 /* Override any gcc2 internal prototype to avoid an error. */
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8677 /* The GNU C library defines this for functions which it implements
8678 to always fail with ENOSYS. Some functions are actually named
8679 something starting with __ and the normal name is an alias. */
8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8690 rm -f conftest.
$ac_objext conftest
$ac_exeext
8691 if { (eval echo "$as_me:8691: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:8694: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try
='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:8697: \"$ac_try\"") >&5
8700 echo "$as_me:8700: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 eval "$as_ac_var=yes"
8704 echo "$as_me: failed program was:" >&5
8705 cat conftest.
$ac_ext >&5
8706 eval "$as_ac_var=no"
8708 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8710 echo "$as_me:8710: result: `eval echo '${'$as_ac_var'}'`" >&5
8711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8712 if test `eval echo '${'$as_ac_var'}'` = yes; then
8713 cat >>confdefs.h
<<EOF
8714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8720 # Solaris has libkstat which does not require root.
8722 echo "$as_me:8722: checking for kstat_open in -lkstat" >&5
8723 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8724 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_check_lib_save_LIBS
=$LIBS
8728 LIBS
="-lkstat $LIBS"
8729 cat >conftest.
$ac_ext <<_ACEOF
8730 #line 8730 "configure"
8731 #include "confdefs.h"
8733 /* Override any gcc2 internal prototype to avoid an error. */
8737 /* We use char because int might match the return type of a gcc2
8738 builtin and then its argument prototype would still apply. */
8748 rm -f conftest.
$ac_objext conftest
$ac_exeext
8749 if { (eval echo "$as_me:8749: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>&5
8752 echo "$as_me:8752: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try
='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:8755: \"$ac_try\"") >&5
8758 echo "$as_me:8758: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_lib_kstat_kstat_open
=yes
8762 echo "$as_me: failed program was:" >&5
8763 cat conftest.
$ac_ext >&5
8764 ac_cv_lib_kstat_kstat_open
=no
8766 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8767 LIBS
=$ac_check_lib_save_LIBS
8769 echo "$as_me:8769: result: $ac_cv_lib_kstat_kstat_open" >&5
8770 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8771 if test $ac_cv_lib_kstat_kstat_open = yes; then
8772 cat >>confdefs.h
<<EOF
8773 #define HAVE_LIBKSTAT 1
8776 LIBS
="-lkstat $LIBS"
8780 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8782 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8783 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8784 # to get the right answer into the cache.
8785 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8786 if test $ac_have_func = no
; then
8787 echo "$as_me:8787: checking for elf_begin in -lelf" >&5
8788 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8789 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 ac_check_lib_save_LIBS
=$LIBS
8794 cat >conftest.
$ac_ext <<_ACEOF
8795 #line 8795 "configure"
8796 #include "confdefs.h"
8798 /* Override any gcc2 internal prototype to avoid an error. */
8802 /* We use char because int might match the return type of a gcc2
8803 builtin and then its argument prototype would still apply. */
8813 rm -f conftest.
$ac_objext conftest
$ac_exeext
8814 if { (eval echo "$as_me:8814: \"$ac_link\"") >&5
8815 (eval $ac_link) 2>&5
8817 echo "$as_me:8817: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try
='test -s conftest$ac_exeext'
8820 { (eval echo "$as_me:8820: \"$ac_try\"") >&5
8823 echo "$as_me:8823: \$? = $ac_status" >&5
8824 (exit $ac_status); }; }; then
8825 ac_cv_lib_elf_elf_begin
=yes
8827 echo "$as_me: failed program was:" >&5
8828 cat conftest.
$ac_ext >&5
8829 ac_cv_lib_elf_elf_begin
=no
8831 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8832 LIBS
=$ac_check_lib_save_LIBS
8834 echo "$as_me:8834: result: $ac_cv_lib_elf_elf_begin" >&5
8835 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8836 if test $ac_cv_lib_elf_elf_begin = yes; then
8841 if test $ac_have_func = no
; then
8842 echo "$as_me:8842: checking for kvm_open in -lkvm" >&5
8843 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8844 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 ac_check_lib_save_LIBS
=$LIBS
8849 cat >conftest.
$ac_ext <<_ACEOF
8850 #line 8850 "configure"
8851 #include "confdefs.h"
8853 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8868 rm -f conftest.
$ac_objext conftest
$ac_exeext
8869 if { (eval echo "$as_me:8869: \"$ac_link\"") >&5
8870 (eval $ac_link) 2>&5
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 (exit $ac_status); } &&
8874 { ac_try
='test -s conftest$ac_exeext'
8875 { (eval echo "$as_me:8875: \"$ac_try\"") >&5
8878 echo "$as_me:8878: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_lib_kvm_kvm_open
=yes
8882 echo "$as_me: failed program was:" >&5
8883 cat conftest.
$ac_ext >&5
8884 ac_cv_lib_kvm_kvm_open
=no
8886 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8887 LIBS
=$ac_check_lib_save_LIBS
8889 echo "$as_me:8889: result: $ac_cv_lib_kvm_kvm_open" >&5
8890 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8891 if test $ac_cv_lib_kvm_kvm_open = yes; then
8895 # Check for the 4.4BSD definition of getloadavg.
8896 echo "$as_me:8896: checking for getloadavg in -lutil" >&5
8897 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8898 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 ac_check_lib_save_LIBS
=$LIBS
8903 cat >conftest.
$ac_ext <<_ACEOF
8904 #line 8904 "configure"
8905 #include "confdefs.h"
8907 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8922 rm -f conftest.
$ac_objext conftest
$ac_exeext
8923 if { (eval echo "$as_me:8923: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:8926: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try
='test -s conftest$ac_exeext'
8929 { (eval echo "$as_me:8929: \"$ac_try\"") >&5
8932 echo "$as_me:8932: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_lib_util_getloadavg
=yes
8936 echo "$as_me: failed program was:" >&5
8937 cat conftest.
$ac_ext >&5
8938 ac_cv_lib_util_getloadavg
=no
8940 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8941 LIBS
=$ac_check_lib_save_LIBS
8943 echo "$as_me:8943: result: $ac_cv_lib_util_getloadavg" >&5
8944 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8945 if test $ac_cv_lib_util_getloadavg = yes; then
8946 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
8951 if test $ac_have_func = no
; then
8952 # There is a commonly available library for RS/6000 AIX.
8953 # Since it is not a standard part of AIX, it might be installed locally.
8954 ac_getloadavg_LIBS
=$LIBS
8955 LIBS
="-L/usr/local/lib $LIBS"
8956 echo "$as_me:8956: checking for getloadavg in -lgetloadavg" >&5
8957 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8958 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_check_lib_save_LIBS
=$LIBS
8962 LIBS
="-lgetloadavg $LIBS"
8963 cat >conftest.
$ac_ext <<_ACEOF
8964 #line 8964 "configure"
8965 #include "confdefs.h"
8967 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8982 rm -f conftest.
$ac_objext conftest
$ac_exeext
8983 if { (eval echo "$as_me:8983: \"$ac_link\"") >&5
8984 (eval $ac_link) 2>&5
8986 echo "$as_me:8986: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try
='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:8989: \"$ac_try\"") >&5
8992 echo "$as_me:8992: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_lib_getloadavg_getloadavg
=yes
8996 echo "$as_me: failed program was:" >&5
8997 cat conftest.
$ac_ext >&5
8998 ac_cv_lib_getloadavg_getloadavg
=no
9000 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9001 LIBS
=$ac_check_lib_save_LIBS
9003 echo "$as_me:9003: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9004 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9005 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9006 LIBS
="-lgetloadavg $LIBS"
9008 LIBS
=$ac_getloadavg_LIBS
9013 # Make sure it is really in the library, if we think we found it,
9014 # otherwise set up the replacement function.
9016 for ac_func
in getloadavg
9018 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9019 echo "$as_me:9019: checking for $ac_func" >&5
9020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9021 if eval "test \"\${$as_ac_var+set}\" = set"; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 cat >conftest.
$ac_ext <<_ACEOF
9025 #line 9025 "configure"
9026 #include "confdefs.h"
9027 /* System header to define __stub macros and hopefully few prototypes,
9028 which can conflict with char $ac_func (); below. */
9030 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9042 /* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9055 rm -f conftest.
$ac_objext conftest
$ac_exeext
9056 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>&5
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try
='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_var=yes"
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.
$ac_ext >&5
9071 eval "$as_ac_var=no"
9073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9075 echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9077 if test `eval echo '${'$as_ac_var'}'` = yes; then
9078 cat >>confdefs.h
<<EOF
9079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9083 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9085 cat >>confdefs.h
<<\EOF
9086 #define C_GETLOADAVG 1
9089 # Figure out what our getloadavg.c needs.
9091 echo "$as_me:9091: checking for sys/dg_sys_info.h" >&5
9092 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9093 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 cat >conftest.
$ac_ext <<_ACEOF
9097 #line 9097 "configure"
9098 #include "confdefs.h"
9099 #include <sys/dg_sys_info.h>
9101 if { (eval echo "$as_me:9101: \"$ac_cpp conftest.$ac_ext\"") >&5
9102 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9104 egrep -v '^ *\+' conftest.er1
>conftest.err
9106 cat conftest.err
>&5
9107 echo "$as_me:9107: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev
/null
; then
9109 if test -s conftest.err
; then
9110 ac_cpp_err
=$ac_c_preproc_warn_flag
9117 if test -z "$ac_cpp_err"; then
9118 ac_cv_header_sys_dg_sys_info_h
=yes
9120 echo "$as_me: failed program was:" >&5
9121 cat conftest.
$ac_ext >&5
9122 ac_cv_header_sys_dg_sys_info_h
=no
9124 rm -f conftest.err conftest.
$ac_ext
9126 echo "$as_me:9126: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9127 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9128 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9131 cat >>confdefs.h
<<\EOF
9135 echo "$as_me:9135: checking for dg_sys_info in -ldgc" >&5
9136 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9137 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 ac_check_lib_save_LIBS
=$LIBS
9142 cat >conftest.
$ac_ext <<_ACEOF
9143 #line 9143 "configure"
9144 #include "confdefs.h"
9146 /* Override any gcc2 internal prototype to avoid an error. */
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9152 char dg_sys_info ();
9161 rm -f conftest.
$ac_objext conftest
$ac_exeext
9162 if { (eval echo "$as_me:9162: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try
='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:9168: \"$ac_try\"") >&5
9171 echo "$as_me:9171: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_lib_dgc_dg_sys_info
=yes
9175 echo "$as_me: failed program was:" >&5
9176 cat conftest.
$ac_ext >&5
9177 ac_cv_lib_dgc_dg_sys_info
=no
9179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9180 LIBS
=$ac_check_lib_save_LIBS
9182 echo "$as_me:9182: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9183 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9184 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9185 cat >>confdefs.h
<<EOF
9186 #define HAVE_LIBDGC 1
9195 echo "$as_me:9195: checking for locale.h" >&5
9196 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9197 if test "${ac_cv_header_locale_h+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 cat >conftest.
$ac_ext <<_ACEOF
9201 #line 9201 "configure"
9202 #include "confdefs.h"
9205 if { (eval echo "$as_me:9205: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9208 egrep -v '^ *\+' conftest.er1
>conftest.err
9210 cat conftest.err
>&5
9211 echo "$as_me:9211: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev
/null
; then
9213 if test -s conftest.err
; then
9214 ac_cpp_err
=$ac_c_preproc_warn_flag
9221 if test -z "$ac_cpp_err"; then
9222 ac_cv_header_locale_h
=yes
9224 echo "$as_me: failed program was:" >&5
9225 cat conftest.
$ac_ext >&5
9226 ac_cv_header_locale_h
=no
9228 rm -f conftest.err conftest.
$ac_ext
9230 echo "$as_me:9230: result: $ac_cv_header_locale_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9233 for ac_func
in setlocale
9235 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9236 echo "$as_me:9236: checking for $ac_func" >&5
9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_var+set}\" = set"; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.
$ac_ext <<_ACEOF
9242 #line 9242 "configure"
9243 #include "confdefs.h"
9244 /* System header to define __stub macros and hopefully few prototypes,
9245 which can conflict with char $ac_func (); below. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9259 /* The GNU C library defines this for functions which it implements
9260 to always fail with ENOSYS. Some functions are actually named
9261 something starting with __ and the normal name is an alias. */
9262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9272 rm -f conftest.
$ac_objext conftest
$ac_exeext
9273 if { (eval echo "$as_me:9273: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>&5
9276 echo "$as_me:9276: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try
='test -s conftest$ac_exeext'
9279 { (eval echo "$as_me:9279: \"$ac_try\"") >&5
9282 echo "$as_me:9282: \$? = $ac_status" >&5
9283 (exit $ac_status); }; }; then
9284 eval "$as_ac_var=yes"
9286 echo "$as_me: failed program was:" >&5
9287 cat conftest.
$ac_ext >&5
9288 eval "$as_ac_var=no"
9290 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9292 echo "$as_me:9292: result: `eval echo '${'$as_ac_var'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9294 if test `eval echo '${'$as_ac_var'}'` = yes; then
9295 cat >>confdefs.h
<<EOF
9296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9303 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9304 # Irix 4.0.5F has the header but not the library.
9305 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9308 cat >>confdefs.h
<<\EOF
9314 if test $ac_have_func = no
; then
9315 echo "$as_me:9315: checking for inq_stats/cpustats.h" >&5
9316 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9317 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.
$ac_ext <<_ACEOF
9321 #line 9321 "configure"
9322 #include "confdefs.h"
9323 #include <inq_stats/cpustats.h>
9325 if { (eval echo "$as_me:9325: \"$ac_cpp conftest.$ac_ext\"") >&5
9326 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9328 egrep -v '^ *\+' conftest.er1
>conftest.err
9330 cat conftest.err
>&5
9331 echo "$as_me:9331: \$? = $ac_status" >&5
9332 (exit $ac_status); } >/dev
/null
; then
9333 if test -s conftest.err
; then
9334 ac_cpp_err
=$ac_c_preproc_warn_flag
9341 if test -z "$ac_cpp_err"; then
9342 ac_cv_header_inq_stats_cpustats_h
=yes
9344 echo "$as_me: failed program was:" >&5
9345 cat conftest.
$ac_ext >&5
9346 ac_cv_header_inq_stats_cpustats_h
=no
9348 rm -f conftest.err conftest.
$ac_ext
9350 echo "$as_me:9350: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9351 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9352 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9355 cat >>confdefs.h
<<\EOF
9359 cat >>confdefs.h
<<\EOF
9367 if test $ac_have_func = no
; then
9368 echo "$as_me:9368: checking for sys/cpustats.h" >&5
9369 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9370 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 cat >conftest.
$ac_ext <<_ACEOF
9374 #line 9374 "configure"
9375 #include "confdefs.h"
9376 #include <sys/cpustats.h>
9378 if { (eval echo "$as_me:9378: \"$ac_cpp conftest.$ac_ext\"") >&5
9379 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9381 egrep -v '^ *\+' conftest.er1
>conftest.err
9383 cat conftest.err
>&5
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 (exit $ac_status); } >/dev
/null
; then
9386 if test -s conftest.err
; then
9387 ac_cpp_err
=$ac_c_preproc_warn_flag
9394 if test -z "$ac_cpp_err"; then
9395 ac_cv_header_sys_cpustats_h
=yes
9397 echo "$as_me: failed program was:" >&5
9398 cat conftest.
$ac_ext >&5
9399 ac_cv_header_sys_cpustats_h
=no
9401 rm -f conftest.err conftest.
$ac_ext
9403 echo "$as_me:9403: result: $ac_cv_header_sys_cpustats_h" >&5
9404 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9405 if test $ac_cv_header_sys_cpustats_h = yes; then
9406 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9414 if test $ac_have_func = no
; then
9416 for ac_header
in mach
/mach.h
9418 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 echo "$as_me:9419: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >conftest.
$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 #include <$ac_header>
9429 if { (eval echo "$as_me:9429: \"$ac_cpp conftest.$ac_ext\"") >&5
9430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9432 egrep -v '^ *\+' conftest.er1
>conftest.err
9434 cat conftest.err
>&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 (exit $ac_status); } >/dev
/null
; then
9437 if test -s conftest.err
; then
9438 ac_cpp_err
=$ac_c_preproc_warn_flag
9445 if test -z "$ac_cpp_err"; then
9446 eval "$as_ac_Header=yes"
9448 echo "$as_me: failed program was:" >&5
9449 cat conftest.
$ac_ext >&5
9450 eval "$as_ac_Header=no"
9452 rm -f conftest.err conftest.
$ac_ext
9454 echo "$as_me:9454: result: `eval echo '${'$as_ac_Header'}'`" >&5
9455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9457 cat >>confdefs.h
<<EOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 for ac_header
in nlist.h
9468 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9469 echo "$as_me:9469: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.
$ac_ext <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 #include <$ac_header>
9479 if { (eval echo "$as_me:9479: \"$ac_cpp conftest.$ac_ext\"") >&5
9480 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9482 egrep -v '^ *\+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); } >/dev
/null
; then
9487 if test -s conftest.err
; then
9488 ac_cpp_err
=$ac_c_preproc_warn_flag
9495 if test -z "$ac_cpp_err"; then
9496 eval "$as_ac_Header=yes"
9498 echo "$as_me: failed program was:" >&5
9499 cat conftest.
$ac_ext >&5
9500 eval "$as_ac_Header=no"
9502 rm -f conftest.err conftest.
$ac_ext
9504 echo "$as_me:9504: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507 cat >>confdefs.h
<<EOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9510 echo "$as_me:9510: checking for struct nlist.n_un.n_name" >&5
9511 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9512 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 cat >conftest.
$ac_ext <<_ACEOF
9516 #line 9516 "configure"
9517 #include "confdefs.h"
9523 static struct nlist ac_aggr;
9524 if (ac_aggr.n_un.n_name)
9530 rm -f conftest.
$ac_objext
9531 if { (eval echo "$as_me:9531: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try
='test -s conftest.$ac_objext'
9537 { (eval echo "$as_me:9537: \"$ac_try\"") >&5
9540 echo "$as_me:9540: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_member_struct_nlist_n_un_n_name
=yes
9544 echo "$as_me: failed program was:" >&5
9545 cat conftest.
$ac_ext >&5
9546 ac_cv_member_struct_nlist_n_un_n_name
=no
9548 rm -f conftest.
$ac_objext conftest.
$ac_ext
9550 echo "$as_me:9550: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9551 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9552 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9554 cat >>confdefs.h
<<EOF
9555 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9558 cat >>confdefs.h
<<\EOF
9559 #define NLIST_NAME_UNION 1
9570 # Some definitions of getloadavg require that the program be installed setgid.
9571 echo "$as_me:9571: checking whether getloadavg requires setgid" >&5
9572 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9573 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 cat >conftest.
$ac_ext <<_ACEOF
9577 #line 9577 "configure"
9578 #include "confdefs.h"
9579 #include "$srcdir/getloadavg.c"
9580 #ifdef LDAV_PRIVILEGED
9581 Yowza Am I SETGID yet
9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9585 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9586 ac_cv_func_getloadavg_setgid
=yes
9588 ac_cv_func_getloadavg_setgid
=no
9593 echo "$as_me:9593: result: $ac_cv_func_getloadavg_setgid" >&5
9594 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9595 if test $ac_cv_func_getloadavg_setgid = yes; then
9598 cat >>confdefs.h
<<\EOF
9599 #define GETLOADAVG_PRIVILEGED 1
9606 if test $ac_cv_func_getloadavg_setgid = yes; then
9607 echo "$as_me:9607: checking group of /dev/kmem" >&5
9608 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9609 if test "${ac_cv_group_kmem+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9613 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9614 # If we got an error (system does not support symlinks), try without -L.
9615 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9616 ac_cv_group_kmem
=`echo $ac_ls_output \
9617 | sed -ne 's/[ ][ ]*/ /g;
9618 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9622 echo "$as_me:9622: result: $ac_cv_group_kmem" >&5
9623 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9624 KMEM_GROUP
=$ac_cv_group_kmem
9626 if test "x$ac_save_LIBS" = x
; then
9627 GETLOADAVG_LIBS
=$LIBS
9629 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9633 echo "$as_me:9633: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9634 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9635 if test "${ac_cv_sys_largefile_source+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 ac_cv_sys_largefile_source
=no
9640 cat >conftest.
$ac_ext <<_ACEOF
9641 #line 9641 "configure"
9642 #include "confdefs.h"
9652 rm -f conftest.
$ac_objext
9653 if { (eval echo "$as_me:9653: \"$ac_compile\"") >&5
9654 (eval $ac_compile) 2>&5
9656 echo "$as_me:9656: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try
='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:9659: \"$ac_try\"") >&5
9662 echo "$as_me:9662: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9666 echo "$as_me: failed program was:" >&5
9667 cat conftest.
$ac_ext >&5
9669 rm -f conftest.
$ac_objext conftest.
$ac_ext
9670 cat >conftest.
$ac_ext <<_ACEOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9673 #define _LARGEFILE_SOURCE 1
9683 rm -f conftest.
$ac_objext
9684 if { (eval echo "$as_me:9684: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9687 echo "$as_me:9687: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try
='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:9690: \"$ac_try\"") >&5
9693 echo "$as_me:9693: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 ac_cv_sys_largefile_source
=1; break
9697 echo "$as_me: failed program was:" >&5
9698 cat conftest.
$ac_ext >&5
9700 rm -f conftest.
$ac_objext conftest.
$ac_ext
9704 echo "$as_me:9704: result: $ac_cv_sys_largefile_source" >&5
9705 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9706 if test "$ac_cv_sys_largefile_source" != no
; then
9708 cat >>confdefs.h
<<EOF
9709 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9715 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9716 # in glibc 2.1.3, but that breaks too many other things.
9717 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9718 echo "$as_me:9718: checking for fseeko" >&5
9719 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9720 if test "${ac_cv_func_fseeko+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.
$ac_ext <<_ACEOF
9724 #line 9724 "configure"
9725 #include "confdefs.h"
9730 return fseeko && fseeko (stdin, 0, 0);
9735 rm -f conftest.
$ac_objext conftest
$ac_exeext
9736 if { (eval echo "$as_me:9736: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try
='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:9742: \"$ac_try\"") >&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_func_fseeko
=yes
9749 echo "$as_me: failed program was:" >&5
9750 cat conftest.
$ac_ext >&5
9751 ac_cv_func_fseeko
=no
9753 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9755 echo "$as_me:9755: result: $ac_cv_func_fseeko" >&5
9756 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9757 if test $ac_cv_func_fseeko = yes; then
9759 cat >>confdefs.h
<<\EOF
9760 #define HAVE_FSEEKO 1
9767 for ac_func
in grantpt
9769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9770 echo "$as_me:9770: checking for $ac_func" >&5
9771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9772 if eval "test \"\${$as_ac_var+set}\" = set"; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 cat >conftest.
$ac_ext <<_ACEOF
9776 #line 9776 "configure"
9777 #include "confdefs.h"
9778 /* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char $ac_func (); below. */
9781 /* Override any gcc2 internal prototype to avoid an error. */
9785 /* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9793 /* The GNU C library defines this for functions which it implements
9794 to always fail with ENOSYS. Some functions are actually named
9795 something starting with __ and the normal name is an alias. */
9796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9806 rm -f conftest.
$ac_objext conftest
$ac_exeext
9807 if { (eval echo "$as_me:9807: \"$ac_link\"") >&5
9808 (eval $ac_link) 2>&5
9810 echo "$as_me:9810: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try
='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:9813: \"$ac_try\"") >&5
9816 echo "$as_me:9816: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 eval "$as_ac_var=yes"
9820 echo "$as_me: failed program was:" >&5
9821 cat conftest.
$ac_ext >&5
9822 eval "$as_ac_var=no"
9824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9826 echo "$as_me:9826: result: `eval echo '${'$as_ac_var'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9828 if test `eval echo '${'$as_ac_var'}'` = yes; then
9829 cat >>confdefs.h
<<EOF
9830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9836 # PTY-related GNU extensions.
9838 for ac_func
in getpt
9840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9841 echo "$as_me:9841: checking for $ac_func" >&5
9842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_var+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 cat >conftest.
$ac_ext <<_ACEOF
9847 #line 9847 "configure"
9848 #include "confdefs.h"
9849 /* System header to define __stub macros and hopefully few prototypes,
9850 which can conflict with char $ac_func (); below. */
9852 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9864 /* The GNU C library defines this for functions which it implements
9865 to always fail with ENOSYS. Some functions are actually named
9866 something starting with __ and the normal name is an alias. */
9867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9877 rm -f conftest.
$ac_objext conftest
$ac_exeext
9878 if { (eval echo "$as_me:9878: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try
='test -s conftest$ac_exeext'
9884 { (eval echo "$as_me:9884: \"$ac_try\"") >&5
9887 echo "$as_me:9887: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 eval "$as_ac_var=yes"
9891 echo "$as_me: failed program was:" >&5
9892 cat conftest.
$ac_ext >&5
9893 eval "$as_ac_var=no"
9895 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9897 echo "$as_me:9897: result: `eval echo '${'$as_ac_var'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9899 if test `eval echo '${'$as_ac_var'}'` = yes; then
9900 cat >>confdefs.h
<<EOF
9901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9907 # Check this now, so that we will NOT find the above functions in ncurses.
9908 # That is because we have not set up to link ncurses in lib-src.
9909 # It's better to believe a function is not available
9910 # than to expect to find it in ncurses.
9912 echo "$as_me:9912: checking for tparm in -lncurses" >&5
9913 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9914 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 ac_check_lib_save_LIBS
=$LIBS
9918 LIBS
="-lncurses $LIBS"
9919 cat >conftest.
$ac_ext <<_ACEOF
9920 #line 9920 "configure"
9921 #include "confdefs.h"
9923 /* Override any gcc2 internal prototype to avoid an error. */
9927 /* We use char because int might match the return type of a gcc2
9928 builtin and then its argument prototype would still apply. */
9938 rm -f conftest.
$ac_objext conftest
$ac_exeext
9939 if { (eval echo "$as_me:9939: \"$ac_link\"") >&5
9940 (eval $ac_link) 2>&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try
='test -s conftest$ac_exeext'
9945 { (eval echo "$as_me:9945: \"$ac_try\"") >&5
9948 echo "$as_me:9948: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 ac_cv_lib_ncurses_tparm
=yes
9952 echo "$as_me: failed program was:" >&5
9953 cat conftest.
$ac_ext >&5
9954 ac_cv_lib_ncurses_tparm
=no
9956 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9957 LIBS
=$ac_check_lib_save_LIBS
9959 echo "$as_me:9959: result: $ac_cv_lib_ncurses_tparm" >&5
9960 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9961 if test $ac_cv_lib_ncurses_tparm = yes; then
9962 cat >>confdefs.h
<<EOF
9963 #define HAVE_LIBNCURSES 1
9966 LIBS
="-lncurses $LIBS"
9970 # Do we need the Hesiod library to provide the support routines?
9971 if test "$with_hesiod" = yes ; then
9972 # Don't set $LIBS here -- see comments above.
9974 echo "$as_me:9974: checking for res_send" >&5
9975 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
9976 if test "${ac_cv_func_res_send+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 cat >conftest.
$ac_ext <<_ACEOF
9980 #line 9980 "configure"
9981 #include "confdefs.h"
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char res_send (); below. */
9985 /* Override any gcc2 internal prototype to avoid an error. */
9989 /* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9997 /* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000 #if defined (__stub_res_send) || defined (__stub___res_send)
10010 rm -f conftest.
$ac_objext conftest
$ac_exeext
10011 if { (eval echo "$as_me:10011: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>&5
10014 echo "$as_me:10014: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try
='test -s conftest$ac_exeext'
10017 { (eval echo "$as_me:10017: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:10020: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_func_res_send
=yes
10024 echo "$as_me: failed program was:" >&5
10025 cat conftest.
$ac_ext >&5
10026 ac_cv_func_res_send
=no
10028 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10030 echo "$as_me:10030: result: $ac_cv_func_res_send" >&5
10031 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10032 if test $ac_cv_func_res_send = yes; then
10035 echo "$as_me:10035: checking for __res_send" >&5
10036 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10037 if test "${ac_cv_func___res_send+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.
$ac_ext <<_ACEOF
10041 #line 10041 "configure"
10042 #include "confdefs.h"
10043 /* System header to define __stub macros and hopefully few prototypes,
10044 which can conflict with char __res_send (); below. */
10045 #include <assert.h>
10046 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char __res_send ();
10058 /* The GNU C library defines this for functions which it implements
10059 to always fail with ENOSYS. Some functions are actually named
10060 something starting with __ and the normal name is an alias. */
10061 #if defined (__stub___res_send) || defined (__stub_____res_send)
10071 rm -f conftest.
$ac_objext conftest
$ac_exeext
10072 if { (eval echo "$as_me:10072: \"$ac_link\"") >&5
10073 (eval $ac_link) 2>&5
10075 echo "$as_me:10075: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try
='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:10078: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func___res_send
=yes
10085 echo "$as_me: failed program was:" >&5
10086 cat conftest.
$ac_ext >&5
10087 ac_cv_func___res_send
=no
10089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10091 echo "$as_me:10091: result: $ac_cv_func___res_send" >&5
10092 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10093 if test $ac_cv_func___res_send = yes; then
10096 echo "$as_me:10096: checking for res_send in -lresolv" >&5
10097 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 ac_check_lib_save_LIBS
=$LIBS
10102 LIBS
="-lresolv $LIBS"
10103 cat >conftest.
$ac_ext <<_ACEOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10107 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10122 rm -f conftest.
$ac_objext conftest
$ac_exeext
10123 if { (eval echo "$as_me:10123: \"$ac_link\"") >&5
10124 (eval $ac_link) 2>&5
10126 echo "$as_me:10126: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try
='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:10129: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:10132: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_resolv_res_send
=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.
$ac_ext >&5
10138 ac_cv_lib_resolv_res_send
=no
10140 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10141 LIBS
=$ac_check_lib_save_LIBS
10143 echo "$as_me:10143: result: $ac_cv_lib_resolv_res_send" >&5
10144 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10145 if test $ac_cv_lib_resolv_res_send = yes; then
10148 echo "$as_me:10148: checking for __res_send in -lresolv" >&5
10149 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10150 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 ac_check_lib_save_LIBS
=$LIBS
10154 LIBS
="-lresolv $LIBS"
10155 cat >conftest.
$ac_ext <<_ACEOF
10156 #line 10156 "configure"
10157 #include "confdefs.h"
10159 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165 char __res_send ();
10174 rm -f conftest.
$ac_objext conftest
$ac_exeext
10175 if { (eval echo "$as_me:10175: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>&5
10178 echo "$as_me:10178: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try
='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:10181: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:10184: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_lib_resolv___res_send
=yes
10188 echo "$as_me: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10190 ac_cv_lib_resolv___res_send
=no
10192 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10193 LIBS
=$ac_check_lib_save_LIBS
10195 echo "$as_me:10195: result: $ac_cv_lib_resolv___res_send" >&5
10196 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10197 if test $ac_cv_lib_resolv___res_send = yes; then
10207 if test "$resolv" = yes ; then
10209 cat >>confdefs.h
<<\EOF
10210 #define HAVE_LIBRESOLV 1
10216 echo "$as_me:10216: checking for hes_getmailhost" >&5
10217 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10218 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.
$ac_ext <<_ACEOF
10222 #line 10222 "configure"
10223 #include "confdefs.h"
10224 /* System header to define __stub macros and hopefully few prototypes,
10225 which can conflict with char hes_getmailhost (); below. */
10226 #include <assert.h>
10227 /* Override any gcc2 internal prototype to avoid an error. */
10231 /* We use char because int might match the return type of a gcc2
10232 builtin and then its argument prototype would still apply. */
10233 char hes_getmailhost ();
10239 /* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10245 f = hes_getmailhost;
10252 rm -f conftest.
$ac_objext conftest
$ac_exeext
10253 if { (eval echo "$as_me:10253: \"$ac_link\"") >&5
10254 (eval $ac_link) 2>&5
10256 echo "$as_me:10256: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try
='test -s conftest$ac_exeext'
10259 { (eval echo "$as_me:10259: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_func_hes_getmailhost
=yes
10266 echo "$as_me: failed program was:" >&5
10267 cat conftest.
$ac_ext >&5
10268 ac_cv_func_hes_getmailhost
=no
10270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10272 echo "$as_me:10272: result: $ac_cv_func_hes_getmailhost" >&5
10273 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10274 if test $ac_cv_func_hes_getmailhost = yes; then
10277 echo "$as_me:10277: checking for hes_getmailhost in -lhesiod" >&5
10278 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 ac_check_lib_save_LIBS
=$LIBS
10283 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10284 cat >conftest.
$ac_ext <<_ACEOF
10285 #line 10285 "configure"
10286 #include "confdefs.h"
10288 /* Override any gcc2 internal prototype to avoid an error. */
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294 char hes_getmailhost ();
10298 hes_getmailhost ();
10303 rm -f conftest.
$ac_objext conftest
$ac_exeext
10304 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5
10305 (eval $ac_link) 2>&5
10307 echo "$as_me:10307: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try
='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:10313: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 ac_cv_lib_hesiod_hes_getmailhost
=yes
10317 echo "$as_me: failed program was:" >&5
10318 cat conftest.
$ac_ext >&5
10319 ac_cv_lib_hesiod_hes_getmailhost
=no
10321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10322 LIBS
=$ac_check_lib_save_LIBS
10324 echo "$as_me:10324: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10325 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10326 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10327 cat >>confdefs.h
<<\EOF
10328 #define HAVE_LIBHESIOD 1
10339 # These tell us which Kerberos-related libraries to use.
10340 if test "${with_kerberos+set}" = set; then
10342 echo "$as_me:10342: checking for com_err in -lcom_err" >&5
10343 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10344 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 ac_check_lib_save_LIBS
=$LIBS
10348 LIBS
="-lcom_err $LIBS"
10349 cat >conftest.
$ac_ext <<_ACEOF
10350 #line 10350 "configure"
10351 #include "confdefs.h"
10353 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10368 rm -f conftest.
$ac_objext conftest
$ac_exeext
10369 if { (eval echo "$as_me:10369: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>&5
10372 echo "$as_me:10372: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:10375: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10378 echo "$as_me:10378: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_lib_com_err_com_err
=yes
10382 echo "$as_me: failed program was:" >&5
10383 cat conftest.
$ac_ext >&5
10384 ac_cv_lib_com_err_com_err
=no
10386 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10387 LIBS
=$ac_check_lib_save_LIBS
10389 echo "$as_me:10389: result: $ac_cv_lib_com_err_com_err" >&5
10390 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10391 if test $ac_cv_lib_com_err_com_err = yes; then
10392 cat >>confdefs.h
<<EOF
10393 #define HAVE_LIBCOM_ERR 1
10396 LIBS
="-lcom_err $LIBS"
10400 echo "$as_me:10400: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10401 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10402 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 ac_check_lib_save_LIBS
=$LIBS
10406 LIBS
="-lk5crypto $LIBS"
10407 cat >conftest.
$ac_ext <<_ACEOF
10408 #line 10408 "configure"
10409 #include "confdefs.h"
10411 /* Override any gcc2 internal prototype to avoid an error. */
10415 /* We use char because int might match the return type of a gcc2
10416 builtin and then its argument prototype would still apply. */
10417 char mit_des_cbc_encrypt ();
10421 mit_des_cbc_encrypt ();
10426 rm -f conftest.
$ac_objext conftest
$ac_exeext
10427 if { (eval echo "$as_me:10427: \"$ac_link\"") >&5
10428 (eval $ac_link) 2>&5
10430 echo "$as_me:10430: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try
='test -s conftest$ac_exeext'
10433 { (eval echo "$as_me:10433: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10436 echo "$as_me:10436: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10440 echo "$as_me: failed program was:" >&5
10441 cat conftest.
$ac_ext >&5
10442 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10445 LIBS
=$ac_check_lib_save_LIBS
10447 echo "$as_me:10447: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10448 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10449 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10450 cat >>confdefs.h
<<EOF
10451 #define HAVE_LIBK5CRYPTO 1
10454 LIBS
="-lk5crypto $LIBS"
10458 echo "$as_me:10458: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10459 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10460 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 ac_check_lib_save_LIBS
=$LIBS
10464 LIBS
="-lcrypto $LIBS"
10465 cat >conftest.
$ac_ext <<_ACEOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10469 /* Override any gcc2 internal prototype to avoid an error. */
10473 /* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */
10475 char mit_des_cbc_encrypt ();
10479 mit_des_cbc_encrypt ();
10484 rm -f conftest.
$ac_objext conftest
$ac_exeext
10485 if { (eval echo "$as_me:10485: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>&5
10488 echo "$as_me:10488: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try
='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:10491: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:10494: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10498 echo "$as_me: failed program was:" >&5
10499 cat conftest.
$ac_ext >&5
10500 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10503 LIBS
=$ac_check_lib_save_LIBS
10505 echo "$as_me:10505: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10506 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10507 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10508 cat >>confdefs.h
<<EOF
10509 #define HAVE_LIBCRYPTO 1
10512 LIBS
="-lcrypto $LIBS"
10516 echo "$as_me:10516: checking for krb5_init_context in -lkrb5" >&5
10517 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10518 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 ac_check_lib_save_LIBS
=$LIBS
10522 LIBS
="-lkrb5 $LIBS"
10523 cat >conftest.
$ac_ext <<_ACEOF
10524 #line 10524 "configure"
10525 #include "confdefs.h"
10527 /* Override any gcc2 internal prototype to avoid an error. */
10531 /* We use char because int might match the return type of a gcc2
10532 builtin and then its argument prototype would still apply. */
10533 char krb5_init_context ();
10537 krb5_init_context ();
10542 rm -f conftest.
$ac_objext conftest
$ac_exeext
10543 if { (eval echo "$as_me:10543: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>&5
10546 echo "$as_me:10546: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try
='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:10549: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:10552: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_lib_krb5_krb5_init_context
=yes
10556 echo "$as_me: failed program was:" >&5
10557 cat conftest.
$ac_ext >&5
10558 ac_cv_lib_krb5_krb5_init_context
=no
10560 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10561 LIBS
=$ac_check_lib_save_LIBS
10563 echo "$as_me:10563: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10564 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10565 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10566 cat >>confdefs.h
<<EOF
10567 #define HAVE_LIBKRB5 1
10570 LIBS
="-lkrb5 $LIBS"
10574 if test "${with_kerberos5+set}" != set; then
10576 echo "$as_me:10576: checking for des_cbc_encrypt in -ldes425" >&5
10577 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10578 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 ac_check_lib_save_LIBS
=$LIBS
10582 LIBS
="-ldes425 $LIBS"
10583 cat >conftest.
$ac_ext <<_ACEOF
10584 #line 10584 "configure"
10585 #include "confdefs.h"
10587 /* Override any gcc2 internal prototype to avoid an error. */
10591 /* We use char because int might match the return type of a gcc2
10592 builtin and then its argument prototype would still apply. */
10593 char des_cbc_encrypt ();
10597 des_cbc_encrypt ();
10602 rm -f conftest.
$ac_objext conftest
$ac_exeext
10603 if { (eval echo "$as_me:10603: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try
='test -s conftest$ac_exeext'
10609 { (eval echo "$as_me:10609: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:10612: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_lib_des425_des_cbc_encrypt
=yes
10616 echo "$as_me: failed program was:" >&5
10617 cat conftest.
$ac_ext >&5
10618 ac_cv_lib_des425_des_cbc_encrypt
=no
10620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10621 LIBS
=$ac_check_lib_save_LIBS
10623 echo "$as_me:10623: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10624 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10625 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10626 cat >>confdefs.h
<<EOF
10627 #define HAVE_LIBDES425 1
10630 LIBS
="-ldes425 $LIBS"
10634 echo "$as_me:10634: checking for des_cbc_encrypt in -ldes" >&5
10635 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10636 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_check_lib_save_LIBS
=$LIBS
10641 cat >conftest.
$ac_ext <<_ACEOF
10642 #line 10642 "configure"
10643 #include "confdefs.h"
10645 /* Override any gcc2 internal prototype to avoid an error. */
10649 /* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651 char des_cbc_encrypt ();
10655 des_cbc_encrypt ();
10660 rm -f conftest.
$ac_objext conftest
$ac_exeext
10661 if { (eval echo "$as_me:10661: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try
='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_cv_lib_des_des_cbc_encrypt
=yes
10674 echo "$as_me: failed program was:" >&5
10675 cat conftest.
$ac_ext >&5
10676 ac_cv_lib_des_des_cbc_encrypt
=no
10678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10679 LIBS
=$ac_check_lib_save_LIBS
10681 echo "$as_me:10681: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10682 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10683 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10684 cat >>confdefs.h
<<EOF
10685 #define HAVE_LIBDES 1
10694 echo "$as_me:10694: checking for krb_get_cred in -lkrb4" >&5
10695 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10696 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 ac_check_lib_save_LIBS
=$LIBS
10700 LIBS
="-lkrb4 $LIBS"
10701 cat >conftest.
$ac_ext <<_ACEOF
10702 #line 10702 "configure"
10703 #include "confdefs.h"
10705 /* Override any gcc2 internal prototype to avoid an error. */
10709 /* We use char because int might match the return type of a gcc2
10710 builtin and then its argument prototype would still apply. */
10711 char krb_get_cred ();
10720 rm -f conftest.
$ac_objext conftest
$ac_exeext
10721 if { (eval echo "$as_me:10721: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10724 echo "$as_me:10724: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try
='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:10727: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:10730: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 ac_cv_lib_krb4_krb_get_cred
=yes
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.
$ac_ext >&5
10736 ac_cv_lib_krb4_krb_get_cred
=no
10738 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10739 LIBS
=$ac_check_lib_save_LIBS
10741 echo "$as_me:10741: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10742 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10743 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10744 cat >>confdefs.h
<<EOF
10745 #define HAVE_LIBKRB4 1
10748 LIBS
="-lkrb4 $LIBS"
10752 echo "$as_me:10752: checking for krb_get_cred in -lkrb" >&5
10753 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10754 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_check_lib_save_LIBS
=$LIBS
10759 cat >conftest.
$ac_ext <<_ACEOF
10760 #line 10760 "configure"
10761 #include "confdefs.h"
10763 /* Override any gcc2 internal prototype to avoid an error. */
10767 /* We use char because int might match the return type of a gcc2
10768 builtin and then its argument prototype would still apply. */
10769 char krb_get_cred ();
10778 rm -f conftest.
$ac_objext conftest
$ac_exeext
10779 if { (eval echo "$as_me:10779: \"$ac_link\"") >&5
10780 (eval $ac_link) 2>&5
10782 echo "$as_me:10782: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try
='test -s conftest$ac_exeext'
10785 { (eval echo "$as_me:10785: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10788 echo "$as_me:10788: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_lib_krb_krb_get_cred
=yes
10792 echo "$as_me: failed program was:" >&5
10793 cat conftest.
$ac_ext >&5
10794 ac_cv_lib_krb_krb_get_cred
=no
10796 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10797 LIBS
=$ac_check_lib_save_LIBS
10799 echo "$as_me:10799: result: $ac_cv_lib_krb_krb_get_cred" >&5
10800 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10801 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10802 cat >>confdefs.h
<<EOF
10803 #define HAVE_LIBKRB 1
10814 if test "${with_kerberos5+set}" = set; then
10816 for ac_header
in krb5.h
10818 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10819 echo "$as_me:10819: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.
$ac_ext <<_ACEOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10827 #include <$ac_header>
10829 if { (eval echo "$as_me:10829: \"$ac_cpp conftest.$ac_ext\"") >&5
10830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10832 egrep -v '^ *\+' conftest.er1
>conftest.err
10834 cat conftest.err
>&5
10835 echo "$as_me:10835: \$? = $ac_status" >&5
10836 (exit $ac_status); } >/dev
/null
; then
10837 if test -s conftest.err
; then
10838 ac_cpp_err
=$ac_c_preproc_warn_flag
10845 if test -z "$ac_cpp_err"; then
10846 eval "$as_ac_Header=yes"
10848 echo "$as_me: failed program was:" >&5
10849 cat conftest.
$ac_ext >&5
10850 eval "$as_ac_Header=no"
10852 rm -f conftest.err conftest.
$ac_ext
10854 echo "$as_me:10854: result: `eval echo '${'$as_ac_Header'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10857 cat >>confdefs.h
<<EOF
10858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10866 for ac_header
in des.h
10868 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 echo "$as_me:10869: checking for $ac_header" >&5
10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.
$ac_ext <<_ACEOF
10875 #line 10875 "configure"
10876 #include "confdefs.h"
10877 #include <$ac_header>
10879 if { (eval echo "$as_me:10879: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10882 egrep -v '^ *\+' conftest.er1
>conftest.err
10884 cat conftest.err
>&5
10885 echo "$as_me:10885: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev
/null
; then
10887 if test -s conftest.err
; then
10888 ac_cpp_err
=$ac_c_preproc_warn_flag
10895 if test -z "$ac_cpp_err"; then
10896 eval "$as_ac_Header=yes"
10898 echo "$as_me: failed program was:" >&5
10899 cat conftest.
$ac_ext >&5
10900 eval "$as_ac_Header=no"
10902 rm -f conftest.err conftest.
$ac_ext
10904 echo "$as_me:10904: result: `eval echo '${'$as_ac_Header'}'`" >&5
10905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10907 cat >>confdefs.h
<<EOF
10908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 for ac_header
in kerberosIV
/des.h
10915 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10916 echo "$as_me:10916: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 cat >conftest.
$ac_ext <<_ACEOF
10922 #line 10922 "configure"
10923 #include "confdefs.h"
10924 #include <$ac_header>
10926 if { (eval echo "$as_me:10926: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10929 egrep -v '^ *\+' conftest.er1
>conftest.err
10931 cat conftest.err
>&5
10932 echo "$as_me:10932: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev
/null
; then
10934 if test -s conftest.err
; then
10935 ac_cpp_err
=$ac_c_preproc_warn_flag
10942 if test -z "$ac_cpp_err"; then
10943 eval "$as_ac_Header=yes"
10945 echo "$as_me: failed program was:" >&5
10946 cat conftest.
$ac_ext >&5
10947 eval "$as_ac_Header=no"
10949 rm -f conftest.err conftest.
$ac_ext
10951 echo "$as_me:10951: result: `eval echo '${'$as_ac_Header'}'`" >&5
10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954 cat >>confdefs.h
<<EOF
10955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10960 for ac_header
in kerberos
/des.h
10962 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 echo "$as_me:10963: checking for $ac_header" >&5
10964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 cat >conftest.
$ac_ext <<_ACEOF
10969 #line 10969 "configure"
10970 #include "confdefs.h"
10971 #include <$ac_header>
10973 if { (eval echo "$as_me:10973: \"$ac_cpp conftest.$ac_ext\"") >&5
10974 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10976 egrep -v '^ *\+' conftest.er1
>conftest.err
10978 cat conftest.err
>&5
10979 echo "$as_me:10979: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev
/null
; then
10981 if test -s conftest.err
; then
10982 ac_cpp_err
=$ac_c_preproc_warn_flag
10989 if test -z "$ac_cpp_err"; then
10990 eval "$as_ac_Header=yes"
10992 echo "$as_me: failed program was:" >&5
10993 cat conftest.
$ac_ext >&5
10994 eval "$as_ac_Header=no"
10996 rm -f conftest.err conftest.
$ac_ext
10998 echo "$as_me:10998: result: `eval echo '${'$as_ac_Header'}'`" >&5
10999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11001 cat >>confdefs.h
<<EOF
11002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11014 for ac_header
in krb.h
11016 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11017 echo "$as_me:11017: checking for $ac_header" >&5
11018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.
$ac_ext <<_ACEOF
11023 #line 11023 "configure"
11024 #include "confdefs.h"
11025 #include <$ac_header>
11027 if { (eval echo "$as_me:11027: \"$ac_cpp conftest.$ac_ext\"") >&5
11028 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11030 egrep -v '^ *\+' conftest.er1
>conftest.err
11032 cat conftest.err
>&5
11033 echo "$as_me:11033: \$? = $ac_status" >&5
11034 (exit $ac_status); } >/dev
/null
; then
11035 if test -s conftest.err
; then
11036 ac_cpp_err
=$ac_c_preproc_warn_flag
11043 if test -z "$ac_cpp_err"; then
11044 eval "$as_ac_Header=yes"
11046 echo "$as_me: failed program was:" >&5
11047 cat conftest.
$ac_ext >&5
11048 eval "$as_ac_Header=no"
11050 rm -f conftest.err conftest.
$ac_ext
11052 echo "$as_me:11052: result: `eval echo '${'$as_ac_Header'}'`" >&5
11053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11055 cat >>confdefs.h
<<EOF
11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11061 for ac_header
in kerberosIV
/krb.h
11063 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 echo "$as_me:11064: checking for $ac_header" >&5
11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 cat >conftest.
$ac_ext <<_ACEOF
11070 #line 11070 "configure"
11071 #include "confdefs.h"
11072 #include <$ac_header>
11074 if { (eval echo "$as_me:11074: \"$ac_cpp conftest.$ac_ext\"") >&5
11075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11077 egrep -v '^ *\+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:11080: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev
/null
; then
11082 if test -s conftest.err
; then
11083 ac_cpp_err
=$ac_c_preproc_warn_flag
11090 if test -z "$ac_cpp_err"; then
11091 eval "$as_ac_Header=yes"
11093 echo "$as_me: failed program was:" >&5
11094 cat conftest.
$ac_ext >&5
11095 eval "$as_ac_Header=no"
11097 rm -f conftest.err conftest.
$ac_ext
11099 echo "$as_me:11099: result: `eval echo '${'$as_ac_Header'}'`" >&5
11100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11102 cat >>confdefs.h
<<EOF
11103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11108 for ac_header
in kerberos
/krb.h
11110 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11111 echo "$as_me:11111: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 cat >conftest.
$ac_ext <<_ACEOF
11117 #line 11117 "configure"
11118 #include "confdefs.h"
11119 #include <$ac_header>
11121 if { (eval echo "$as_me:11121: \"$ac_cpp conftest.$ac_ext\"") >&5
11122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11124 egrep -v '^ *\+' conftest.er1
>conftest.err
11126 cat conftest.err
>&5
11127 echo "$as_me:11127: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev
/null
; then
11129 if test -s conftest.err
; then
11130 ac_cpp_err
=$ac_c_preproc_warn_flag
11137 if test -z "$ac_cpp_err"; then
11138 eval "$as_ac_Header=yes"
11140 echo "$as_me: failed program was:" >&5
11141 cat conftest.
$ac_ext >&5
11142 eval "$as_ac_Header=no"
11144 rm -f conftest.err conftest.
$ac_ext
11146 echo "$as_me:11146: result: `eval echo '${'$as_ac_Header'}'`" >&5
11147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11149 cat >>confdefs.h
<<EOF
11150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11164 for ac_header
in com_err.h
11166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 echo "$as_me:11167: checking for $ac_header" >&5
11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.
$ac_ext <<_ACEOF
11173 #line 11173 "configure"
11174 #include "confdefs.h"
11175 #include <$ac_header>
11177 if { (eval echo "$as_me:11177: \"$ac_cpp conftest.$ac_ext\"") >&5
11178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11180 egrep -v '^ *\+' conftest.er1
>conftest.err
11182 cat conftest.err
>&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); } >/dev
/null
; then
11185 if test -s conftest.err
; then
11186 ac_cpp_err
=$ac_c_preproc_warn_flag
11193 if test -z "$ac_cpp_err"; then
11194 eval "$as_ac_Header=yes"
11196 echo "$as_me: failed program was:" >&5
11197 cat conftest.
$ac_ext >&5
11198 eval "$as_ac_Header=no"
11200 rm -f conftest.err conftest.
$ac_ext
11202 echo "$as_me:11202: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h
<<EOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11214 # Solaris requires -lintl if you want strerror (which calls dgettext)
11215 # to return localized messages.
11217 echo "$as_me:11217: checking for dgettext in -lintl" >&5
11218 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11219 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 ac_check_lib_save_LIBS
=$LIBS
11223 LIBS
="-lintl $LIBS"
11224 cat >conftest.
$ac_ext <<_ACEOF
11225 #line 11225 "configure"
11226 #include "confdefs.h"
11228 /* Override any gcc2 internal prototype to avoid an error. */
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11243 rm -f conftest.
$ac_objext conftest
$ac_exeext
11244 if { (eval echo "$as_me:11244: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>&5
11247 echo "$as_me:11247: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try
='test -s conftest$ac_exeext'
11250 { (eval echo "$as_me:11250: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:11253: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 ac_cv_lib_intl_dgettext
=yes
11257 echo "$as_me: failed program was:" >&5
11258 cat conftest.
$ac_ext >&5
11259 ac_cv_lib_intl_dgettext
=no
11261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11262 LIBS
=$ac_check_lib_save_LIBS
11264 echo "$as_me:11264: result: $ac_cv_lib_intl_dgettext" >&5
11265 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11266 if test $ac_cv_lib_intl_dgettext = yes; then
11267 cat >>confdefs.h
<<EOF
11268 #define HAVE_LIBINTL 1
11271 LIBS
="-lintl $LIBS"
11275 echo "$as_me:11275: checking whether localtime caches TZ" >&5
11276 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11277 if test "${emacs_cv_localtime_cache+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 if test x
$ac_cv_func_tzset = xyes
; then
11281 if test "$cross_compiling" = yes; then
11282 # If we have tzset, assume the worst when cross-compiling.
11283 emacs_cv_localtime_cache
=yes
11285 cat >conftest.
$ac_ext <<_ACEOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11289 extern char **environ;
11293 for (to = from = environ; (*to = *from); from++)
11294 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11297 char TZ_GMT0[] = "TZ=GMT0";
11298 char TZ_PST8[] = "TZ=PST8";
11301 time_t now = time ((time_t *) 0);
11302 int hour_GMT0, hour_unset;
11303 if (putenv (TZ_GMT0) != 0)
11305 hour_GMT0 = localtime (&now)->tm_hour;
11307 hour_unset = localtime (&now)->tm_hour;
11308 if (putenv (TZ_PST8) != 0)
11310 if (localtime (&now)->tm_hour == hour_GMT0)
11313 if (localtime (&now)->tm_hour != hour_unset)
11318 rm -f conftest
$ac_exeext
11319 if { (eval echo "$as_me:11319: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>&5
11322 echo "$as_me:11322: \$? = $ac_status" >&5
11323 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11324 { (eval echo "$as_me:11324: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:11327: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 emacs_cv_localtime_cache
=no
11331 echo "$as_me: program exited with status $ac_status" >&5
11332 echo "$as_me: failed program was:" >&5
11333 cat conftest.
$ac_ext >&5
11334 emacs_cv_localtime_cache
=yes
11336 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11339 # If we lack tzset, report that localtime does not cache TZ,
11340 # since we can't invalidate the cache if we don't have tzset.
11341 emacs_cv_localtime_cache
=no
11344 echo "$as_me:11344: result: $emacs_cv_localtime_cache" >&5
11345 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11346 if test $emacs_cv_localtime_cache = yes; then
11347 cat >>confdefs.h
<<\EOF
11348 #define LOCALTIME_CACHE 1
11353 if test "x$HAVE_TIMEVAL" = xyes
; then
11355 for ac_func
in gettimeofday
11357 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11358 echo "$as_me:11358: checking for $ac_func" >&5
11359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11360 if eval "test \"\${$as_ac_var+set}\" = set"; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 cat >conftest.
$ac_ext <<_ACEOF
11364 #line 11364 "configure"
11365 #include "confdefs.h"
11366 /* System header to define __stub macros and hopefully few prototypes,
11367 which can conflict with char $ac_func (); below. */
11368 #include <assert.h>
11369 /* Override any gcc2 internal prototype to avoid an error. */
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11394 rm -f conftest.
$ac_objext conftest
$ac_exeext
11395 if { (eval echo "$as_me:11395: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try
='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:11401: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11408 echo "$as_me: failed program was:" >&5
11409 cat conftest.
$ac_ext >&5
11410 eval "$as_ac_var=no"
11412 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11414 echo "$as_me:11414: result: `eval echo '${'$as_ac_var'}'`" >&5
11415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11416 if test `eval echo '${'$as_ac_var'}'` = yes; then
11417 cat >>confdefs.h
<<EOF
11418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11424 echo "$as_me:11424: checking whether gettimeofday can accept two arguments" >&5
11425 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11426 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 cat >conftest.
$ac_ext <<_ACEOF
11430 #line 11430 "configure"
11431 #include "confdefs.h"
11433 #ifdef TIME_WITH_SYS_TIME
11434 #include <sys/time.h>
11437 #ifdef HAVE_SYS_TIME_H
11438 #include <sys/time.h>
11446 struct timeval time;
11447 gettimeofday (&time, 0);
11452 rm -f conftest.
$ac_objext
11453 if { (eval echo "$as_me:11453: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>&5
11456 echo "$as_me:11456: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try
='test -s conftest.$ac_objext'
11459 { (eval echo "$as_me:11459: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:11462: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 emacs_cv_gettimeofday_two_arguments
=yes
11466 echo "$as_me: failed program was:" >&5
11467 cat conftest.
$ac_ext >&5
11468 emacs_cv_gettimeofday_two_arguments
=no
11470 rm -f conftest.
$ac_objext conftest.
$ac_ext
11472 echo "$as_me:11472: result: $emacs_cv_gettimeofday_two_arguments" >&5
11473 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11474 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11475 cat >>confdefs.h
<<\EOF
11476 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11482 if test "$ac_cv_func_gettimeofday" = yes; then
11483 echo "$as_me:11483: checking for struct timezone" >&5
11484 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11485 if test "${emacs_cv_struct_timezone+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 cat >conftest.
$ac_ext <<_ACEOF
11489 #line 11489 "configure"
11490 #include "confdefs.h"
11491 #include <sys/time.h>
11495 struct timezone tz;
11500 rm -f conftest.
$ac_objext
11501 if { (eval echo "$as_me:11501: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11504 echo "$as_me:11504: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try
='test -s conftest.$ac_objext'
11507 { (eval echo "$as_me:11507: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:11510: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 if test "$cross_compiling" = yes; then
11513 emacs_cv_struct_timezone
=yes
11515 cat >conftest.
$ac_ext <<_ACEOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11519 #ifdef TIME_WITH_SYS_TIME
11520 #include <sys/time.h>
11523 #ifdef HAVE_SYS_TIME_H
11524 #include <sys/time.h>
11530 struct timeval time;
11531 struct timezone dummy;
11532 exit (gettimeofday (&time, &dummy));
11535 rm -f conftest
$ac_exeext
11536 if { (eval echo "$as_me:11536: \"$ac_link\"") >&5
11537 (eval $ac_link) 2>&5
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11541 { (eval echo "$as_me:11541: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 emacs_cv_struct_timezone
=yes
11548 echo "$as_me: program exited with status $ac_status" >&5
11549 echo "$as_me: failed program was:" >&5
11550 cat conftest.
$ac_ext >&5
11551 emacs_cv_struct_timezone
=no
11553 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11556 echo "$as_me: failed program was:" >&5
11557 cat conftest.
$ac_ext >&5
11558 emacs_cv_struct_timezone
=no
11560 rm -f conftest.
$ac_objext conftest.
$ac_ext
11562 echo "$as_me:11562: result: $emacs_cv_struct_timezone" >&5
11563 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11567 echo "$as_me:11567: checking for socket" >&5
11568 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11569 if test "${ac_cv_func_socket+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 cat >conftest.
$ac_ext <<_ACEOF
11573 #line 11573 "configure"
11574 #include "confdefs.h"
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char socket (); below. */
11577 #include <assert.h>
11578 /* Override any gcc2 internal prototype to avoid an error. */
11582 /* We use char because int might match the return type of a gcc2
11583 builtin and then its argument prototype would still apply. */
11590 /* The GNU C library defines this for functions which it implements
11591 to always fail with ENOSYS. Some functions are actually named
11592 something starting with __ and the normal name is an alias. */
11593 #if defined (__stub_socket) || defined (__stub___socket)
11603 rm -f conftest.
$ac_objext conftest
$ac_exeext
11604 if { (eval echo "$as_me:11604: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>&5
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try
='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:11610: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:11613: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 ac_cv_func_socket
=yes
11617 echo "$as_me: failed program was:" >&5
11618 cat conftest.
$ac_ext >&5
11619 ac_cv_func_socket
=no
11621 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11623 echo "$as_me:11623: result: $ac_cv_func_socket" >&5
11624 echo "${ECHO_T}$ac_cv_func_socket" >&6
11625 if test $ac_cv_func_socket = yes; then
11631 if test $ok_so_far = yes; then
11632 echo "$as_me:11632: checking for netinet/in.h" >&5
11633 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11634 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 cat >conftest.
$ac_ext <<_ACEOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640 #include <netinet/in.h>
11642 if { (eval echo "$as_me:11642: \"$ac_cpp conftest.$ac_ext\"") >&5
11643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11645 egrep -v '^ *\+' conftest.er1
>conftest.err
11647 cat conftest.err
>&5
11648 echo "$as_me:11648: \$? = $ac_status" >&5
11649 (exit $ac_status); } >/dev
/null
; then
11650 if test -s conftest.err
; then
11651 ac_cpp_err
=$ac_c_preproc_warn_flag
11658 if test -z "$ac_cpp_err"; then
11659 ac_cv_header_netinet_in_h
=yes
11661 echo "$as_me: failed program was:" >&5
11662 cat conftest.
$ac_ext >&5
11663 ac_cv_header_netinet_in_h
=no
11665 rm -f conftest.err conftest.
$ac_ext
11667 echo "$as_me:11667: result: $ac_cv_header_netinet_in_h" >&5
11668 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11669 if test $ac_cv_header_netinet_in_h = yes; then
11676 if test $ok_so_far = yes; then
11677 echo "$as_me:11677: checking for arpa/inet.h" >&5
11678 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11679 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.
$ac_ext <<_ACEOF
11683 #line 11683 "configure"
11684 #include "confdefs.h"
11685 #include <arpa/inet.h>
11687 if { (eval echo "$as_me:11687: \"$ac_cpp conftest.$ac_ext\"") >&5
11688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11690 egrep -v '^ *\+' conftest.er1
>conftest.err
11692 cat conftest.err
>&5
11693 echo "$as_me:11693: \$? = $ac_status" >&5
11694 (exit $ac_status); } >/dev
/null
; then
11695 if test -s conftest.err
; then
11696 ac_cpp_err
=$ac_c_preproc_warn_flag
11703 if test -z "$ac_cpp_err"; then
11704 ac_cv_header_arpa_inet_h
=yes
11706 echo "$as_me: failed program was:" >&5
11707 cat conftest.
$ac_ext >&5
11708 ac_cv_header_arpa_inet_h
=no
11710 rm -f conftest.err conftest.
$ac_ext
11712 echo "$as_me:11712: result: $ac_cv_header_arpa_inet_h" >&5
11713 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11714 if test $ac_cv_header_arpa_inet_h = yes; then
11721 if test $ok_so_far = yes; then
11722 cat >>confdefs.h
<<\EOF
11723 #define HAVE_INET_SOCKETS 1
11728 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11729 cat >>confdefs.h
<<\EOF
11730 #define HAVE_AIX_SMT_EXP 1
11735 echo "$as_me:11735: checking whether system supports dynamic ptys" >&5
11736 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11737 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11738 echo "$as_me:11738: result: yes" >&5
11739 echo "${ECHO_T}yes" >&6
11740 cat >>confdefs.h
<<\EOF
11741 #define HAVE_DEV_PTMX 1
11745 echo "$as_me:11745: result: no" >&5
11746 echo "${ECHO_T}no" >&6
11749 echo "$as_me:11749: checking for pid_t" >&5
11750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11751 if test "${ac_cv_type_pid_t+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 cat >conftest.
$ac_ext <<_ACEOF
11755 #line 11755 "configure"
11756 #include "confdefs.h"
11757 $ac_includes_default
11763 if (sizeof (pid_t))
11769 rm -f conftest.
$ac_objext
11770 if { (eval echo "$as_me:11770: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>&5
11773 echo "$as_me:11773: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try
='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:11776: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:11779: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_type_pid_t
=yes
11783 echo "$as_me: failed program was:" >&5
11784 cat conftest.
$ac_ext >&5
11785 ac_cv_type_pid_t
=no
11787 rm -f conftest.
$ac_objext conftest.
$ac_ext
11789 echo "$as_me:11789: result: $ac_cv_type_pid_t" >&5
11790 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11791 if test $ac_cv_type_pid_t = yes; then
11795 cat >>confdefs.h
<<EOF
11801 for ac_header
in unistd.h vfork.h
11803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11804 echo "$as_me:11804: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 cat >conftest.
$ac_ext <<_ACEOF
11810 #line 11810 "configure"
11811 #include "confdefs.h"
11812 #include <$ac_header>
11814 if { (eval echo "$as_me:11814: \"$ac_cpp conftest.$ac_ext\"") >&5
11815 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11817 egrep -v '^ *\+' conftest.er1
>conftest.err
11819 cat conftest.err
>&5
11820 echo "$as_me:11820: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev
/null
; then
11822 if test -s conftest.err
; then
11823 ac_cpp_err
=$ac_c_preproc_warn_flag
11830 if test -z "$ac_cpp_err"; then
11831 eval "$as_ac_Header=yes"
11833 echo "$as_me: failed program was:" >&5
11834 cat conftest.
$ac_ext >&5
11835 eval "$as_ac_Header=no"
11837 rm -f conftest.err conftest.
$ac_ext
11839 echo "$as_me:11839: result: `eval echo '${'$as_ac_Header'}'`" >&5
11840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11842 cat >>confdefs.h
<<EOF
11843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11849 for ac_func
in fork vfork
11851 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852 echo "$as_me:11852: checking for $ac_func" >&5
11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11854 if eval "test \"\${$as_ac_var+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.
$ac_ext <<_ACEOF
11858 #line 11858 "configure"
11859 #include "confdefs.h"
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below. */
11862 #include <assert.h>
11863 /* Override any gcc2 internal prototype to avoid an error. */
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11875 /* The GNU C library defines this for functions which it implements
11876 to always fail with ENOSYS. Some functions are actually named
11877 something starting with __ and the normal name is an alias. */
11878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext
11889 if { (eval echo "$as_me:11889: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11892 echo "$as_me:11892: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try
='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:11895: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:11898: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "$as_ac_var=yes"
11902 echo "$as_me: failed program was:" >&5
11903 cat conftest.
$ac_ext >&5
11904 eval "$as_ac_var=no"
11906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11908 echo "$as_me:11908: result: `eval echo '${'$as_ac_var'}'`" >&5
11909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11910 if test `eval echo '${'$as_ac_var'}'` = yes; then
11911 cat >>confdefs.h
<<EOF
11912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 ac_cv_func_fork_works
=$ac_cv_func_fork
11919 if test "x$ac_cv_func_fork" = xyes
; then
11920 echo "$as_me:11920: checking for working fork" >&5
11921 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11922 if test "${ac_cv_func_fork_works+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 if test "$cross_compiling" = yes; then
11926 ac_cv_func_fork_works
=cross
11928 cat >conftest.
$ac_ext <<_ACEOF
11929 /* By Rüdiger Kuhlmann. */
11930 #include <sys/types.h>
11932 # include <unistd.h>
11934 /* Some systems only have a dummy stub for fork() */
11942 rm -f conftest
$ac_exeext
11943 if { (eval echo "$as_me:11943: \"$ac_link\"") >&5
11944 (eval $ac_link) 2>&5
11946 echo "$as_me:11946: \$? = $ac_status" >&5
11947 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11948 { (eval echo "$as_me:11948: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:11951: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_cv_func_fork_works
=yes
11955 echo "$as_me: program exited with status $ac_status" >&5
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.
$ac_ext >&5
11958 ac_cv_func_fork_works
=no
11960 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11963 echo "$as_me:11963: result: $ac_cv_func_fork_works" >&5
11964 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11967 if test "x$ac_cv_func_fork_works" = xcross
; then
11969 *-*-amigaos* |
*-*-msdosdjgpp*)
11970 # Override, as these systems have only a dummy fork() stub
11971 ac_cv_func_fork_works
=no
11974 ac_cv_func_fork_works
=yes
11977 { echo "$as_me:11977: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
11978 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
11980 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11981 if test "x$ac_cv_func_vfork" = xyes
; then
11982 echo "$as_me:11982: checking for working vfork" >&5
11983 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11984 if test "${ac_cv_func_vfork_works+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 if test "$cross_compiling" = yes; then
11988 ac_cv_func_vfork_works
=cross
11990 cat >conftest.
$ac_ext <<_ACEOF
11991 #line 11991 "configure"
11992 #include "confdefs.h"
11993 /* Thanks to Paul Eggert for this test. */
11995 #include <sys/types.h>
11996 #include <sys/stat.h>
11998 # include <unistd.h>
12001 # include <vfork.h>
12003 /* On some sparc systems, changes by the child to local and incoming
12004 argument registers are propagated back to the parent. The compiler
12005 is told about this with #include <vfork.h>, but some compilers
12006 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12007 static variable whose address is put into a register that is
12008 clobbered by the vfork. */
12011 sparc_address_test (int arg)
12013 sparc_address_test (arg) int arg;
12016 static pid_t child;
12034 pid_t parent = getpid ();
12037 sparc_address_test ();
12042 /* Here is another test for sparc vfork register problems. This
12043 test uses lots of local variables, at least as many local
12044 variables as main has allocated so far including compiler
12045 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12046 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12047 reuse the register of parent for one of the local variables,
12048 since it will think that parent can't possibly be used any more
12049 in this routine. Assigning to the local variable will thus
12050 munge parent in the parent process. */
12052 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12053 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12054 /* Convince the compiler that p..p7 are live; otherwise, it might
12055 use the same hardware register for all 8 local variables. */
12056 if (p != p1 || p != p2 || p != p3 || p != p4
12057 || p != p5 || p != p6 || p != p7)
12060 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12061 from child file descriptors. If the child closes a descriptor
12062 before it execs or exits, this munges the parent's descriptor
12063 as well. Test for this by closing stdout in the child. */
12064 _exit(close(fileno(stdout)) != 0);
12069 while (wait(&status) != child)
12072 /* Was there some problem with vforking? */
12075 /* Did the child fail? (This shouldn't happen.) */
12078 /* Did the vfork/compiler bug occur? */
12079 || parent != getpid()
12081 /* Did the file descriptor bug occur? */
12082 || fstat(fileno(stdout), &st) != 0
12087 rm -f conftest
$ac_exeext
12088 if { (eval echo "$as_me:12088: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>&5
12091 echo "$as_me:12091: \$? = $ac_status" >&5
12092 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12093 { (eval echo "$as_me:12093: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_cv_func_vfork_works
=yes
12100 echo "$as_me: program exited with status $ac_status" >&5
12101 echo "$as_me: failed program was:" >&5
12102 cat conftest.
$ac_ext >&5
12103 ac_cv_func_vfork_works
=no
12105 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12108 echo "$as_me:12108: result: $ac_cv_func_vfork_works" >&5
12109 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12112 if test "x$ac_cv_func_fork_works" = xcross
; then
12113 ac_cv_func_vfork_works
=ac_cv_func_vfork
12114 { echo "$as_me:12114: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12115 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12118 if test "x$ac_cv_func_vfork_works" = xyes
; then
12120 cat >>confdefs.h
<<\EOF
12121 #define HAVE_WORKING_VFORK 1
12126 cat >>confdefs.h
<<\EOF
12131 if test "x$ac_cv_func_fork_works" = xyes
; then
12133 cat >>confdefs.h
<<\EOF
12134 #define HAVE_WORKING_FORK 1
12139 # Fixme: This should be replaced when we have autoconf 2.14.
12140 echo "$as_me:12140: checking for size_t" >&5
12141 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12142 if test "${ac_cv_type_size_t+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 cat >conftest.
$ac_ext <<_ACEOF
12146 #line 12146 "configure"
12147 #include "confdefs.h"
12148 $ac_includes_default
12154 if (sizeof (size_t))
12160 rm -f conftest.
$ac_objext
12161 if { (eval echo "$as_me:12161: \"$ac_compile\"") >&5
12162 (eval $ac_compile) 2>&5
12164 echo "$as_me:12164: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try
='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:12167: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:12170: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_type_size_t
=yes
12174 echo "$as_me: failed program was:" >&5
12175 cat conftest.
$ac_ext >&5
12176 ac_cv_type_size_t
=no
12178 rm -f conftest.
$ac_objext conftest.
$ac_ext
12180 echo "$as_me:12180: result: $ac_cv_type_size_t" >&5
12181 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12182 if test $ac_cv_type_size_t = yes; then
12186 cat >>confdefs.h
<<EOF
12187 #define size_t unsigned
12192 # Set up the CFLAGS for real compilation, so we can substitute it.
12193 CFLAGS
="$REAL_CFLAGS"
12194 CPPFLAGS
="$REAL_CPPFLAGS"
12196 #### Find out which version of Emacs this is.
12197 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12198 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12199 if test x
"${version}" = x
; then
12200 { { echo "$as_me:12200: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12201 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12202 { (exit 1); exit 1; }; }
12205 ### Specify what sort of things we'll be editing into Makefile and config.h.
12206 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12208 cat >>confdefs.h
<<EOF
12209 #define EMACS_CONFIGURATION "${canonical}"
12212 cat >>confdefs.h
<<EOF
12213 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12216 cat >>confdefs.h
<<EOF
12217 #define config_machfile "${machfile}"
12220 cat >>confdefs.h
<<EOF
12221 #define config_opsysfile "${opsysfile}"
12224 cat >>confdefs.h
<<EOF
12225 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12228 cat >>confdefs.h
<<EOF
12229 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12232 cat >>confdefs.h
<<EOF
12233 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12236 cat >>confdefs.h
<<EOF
12237 #define UNEXEC_SRC ${UNEXEC_SRC}
12240 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12241 cat >>confdefs.h
<<\EOF
12242 #define HAVE_X_WINDOWS 1
12246 if test "${USE_X_TOOLKIT}" != "none" ; then
12247 cat >>confdefs.h
<<\EOF
12248 #define USE_X_TOOLKIT 1
12252 if test "${HAVE_X11}" = "yes" ; then
12253 cat >>confdefs.h
<<\EOF
12258 if test "${HAVE_XFREE386}" = "yes" ; then
12259 cat >>confdefs.h
<<\EOF
12260 #define HAVE_XFREE386 1
12264 if test "${HAVE_MENUS}" = "yes" ; then
12265 cat >>confdefs.h
<<\EOF
12266 #define HAVE_MENUS 1
12270 if test "${GNU_MALLOC}" = "yes" ; then
12271 cat >>confdefs.h
<<\EOF
12272 #define GNU_MALLOC 1
12276 if test "${REL_ALLOC}" = "yes" ; then
12277 cat >>confdefs.h
<<\EOF
12278 #define REL_ALLOC 1
12283 #### Report on what we decided to do.
12285 Configured for \`${canonical}'.
12287 Where should the build process find the source code? ${srcdir}
12288 What operating system and machine description files should Emacs use?
12289 \`${opsysfile}' and \`${machfile}'
12290 What compiler should emacs be built with? ${CC} ${CFLAGS}
12291 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12292 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12293 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12294 What window system should Emacs use? ${window_system}
12295 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12297 if test -n "${x_includes}"; then
12298 echo " Where do we find X Windows header files? ${x_includes}"
12300 echo " Where do we find X Windows header files? Standard dirs"
12302 if test -n "${x_libraries}"; then
12303 echo " Where do we find X Windows libraries? ${x_libraries}"
12305 echo " Where do we find X Windows libraries? Standard dirs"
12308 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12309 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12310 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12311 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12312 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12313 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12314 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12317 # Remove any trailing slashes in these variables.
12318 test "${prefix}" != NONE
&&
12319 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12320 test "${exec_prefix}" != NONE
&&
12321 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12323 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12324 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12325 ## from Makefile.c can correctly provide the arg `-traditional' to the
12328 cat >conftest.
$ac_ext <<_ACEOF
12329 #line 12329 "configure"
12330 #include "confdefs.h"
12333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12334 egrep "yes..yes" >/dev
/null
2>&1; then
12335 CPP_NEED_TRADITIONAL
=no
12337 CPP_NEED_TRADITIONAL
=yes
12341 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 leim/Makefile"
12342 ac_config_commands
="$ac_config_commands default"
12343 cat >confcache
<<\_ACEOF
12344 # This file is a shell script that caches the results of configure
12345 # tests run on this system so they can be shared between configure
12346 # scripts and configure runs, see configure's option --config-cache.
12347 # It is not useful on other systems. If it contains results you don't
12348 # want to keep, you may remove or edit it.
12350 # config.status only pays attention to the cache file if you give it
12351 # the --recheck option to rerun configure.
12353 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12355 # following values.
12359 # The following way of writing the cache mishandles newlines in values,
12360 # but we know of no workaround that is simple, portable, and efficient.
12361 # So, don't put newlines in cache variables' values.
12362 # Ultrix sh set writes to stderr and can't be redirected directly,
12363 # and sets the high bit in the cache file unless we assign to the vars.
12366 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12368 # `set' does not quote correctly, so add quotes (double-quote
12369 # substitution turns \\\\ into \\, and sed turns \\ into \).
12372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12375 # `set' quotes correctly as required by POSIX, so do not add quotes.
12377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12386 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12388 if cmp -s $cache_file confcache
; then :; else
12389 if test -w $cache_file; then
12390 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12391 cat confcache
>$cache_file
12393 echo "not updating unwritable cache $cache_file"
12398 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12399 # Let make expand exec_prefix.
12400 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12404 # trailing colons and then remove the whole line if VPATH becomes empty
12405 # (actually we leave an empty line to preserve line numbers).
12406 if test "x$srcdir" = x.
; then
12407 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12408 s/:*\$(srcdir):*/:/;
12409 s/:*\${srcdir}:*/:/;
12411 s/^\([^=]*=[ ]*\):*/\1/;
12417 DEFS
=-DHAVE_CONFIG_H
12419 : ${CONFIG_STATUS=./config.status}
12420 ac_clean_files_save
=$ac_clean_files
12421 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12422 { echo "$as_me:12422: creating $CONFIG_STATUS" >&5
12423 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12424 cat >$CONFIG_STATUS <<_ACEOF
12426 # Generated automatically by configure.
12427 # Run this file to recreate the current configuration.
12428 # Compiler output produced by configure, useful for debugging
12429 # configure, is in config.log if it exists.
12432 SHELL=\${CONFIG_SHELL-$SHELL}
12433 ac_cs_invocation="\$0 \$@"
12437 cat >>$CONFIG_STATUS <<\_ACEOF
12438 # Be Bourne compatible
12439 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12442 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12446 # Name of the executable.
12447 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12449 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12455 rm -f conf$$ conf$$.exe conf$$.
file
12457 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12458 # We could just check for DJGPP; but this test a) works b) is more generic
12459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12460 if test -f conf$$.exe
; then
12461 # Don't use ln at all; we don't have any links
12466 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12471 rm -f conf$$ conf$$.exe conf$$.
file
12473 as_executable_p
="test -f"
12475 # Support unset when possible.
12476 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12483 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12484 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12485 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12486 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12487 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12488 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12489 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12490 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12493 # We need space, tab and new line, in precisely that order.
12499 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12505 # Files that config.status was made for.
12506 if test -n "$ac_config_files"; then
12507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12510 if test -n "$ac_config_headers"; then
12511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12514 if test -n "$ac_config_links"; then
12515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12518 if test -n "$ac_config_commands"; then
12519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12522 cat >>$CONFIG_STATUS <<\EOF
12525 \`$as_me' instantiates files from templates according to the
12526 current configuration.
12528 Usage: $0 [OPTIONS] [FILE]...
12530 -h, --help print this help, then exit
12531 -V, --version print version number, then exit
12532 -d, --debug don't remove temporary files
12533 --recheck update $as_me by reconfiguring in the same conditions
12534 --file=FILE[:TEMPLATE]
12535 instantiate the configuration file FILE
12536 --header=FILE[:TEMPLATE]
12537 instantiate the configuration header FILE
12539 Configuration files:
12542 Configuration headers:
12545 Configuration commands:
12548 Report bugs to <bug-autoconf@gnu.org>."
12551 cat >>$CONFIG_STATUS <<EOF
12554 configured by $0, generated by GNU Autoconf 2.52,
12555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12557 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12558 Free Software Foundation, Inc.
12559 This config.status script is free software; the Free Software Foundation
12560 gives unlimited permission to copy, distribute and modify it."
12565 cat >>$CONFIG_STATUS <<\EOF
12566 # If no file are specified by the user, then we need to provide default
12567 # value. By we need to know if files were specified by the user.
12573 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12574 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12576 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12580 *) # This is not an option, so the user has probably given explicit
12582 ac_need_defaults
=false
;;
12586 # Handling of the options.
12588 cat >>$CONFIG_STATUS <<EOF
12589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12590 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12591 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12593 cat >>$CONFIG_STATUS <<\EOF
12594 --version |
--vers* |
-V )
12595 echo "$ac_cs_version"; exit 0 ;;
12597 # Conflict between --help and --header
12598 { { echo "$as_me:12598: error: ambiguous option: $1
12599 Try \`$0 --help' for more information." >&5
12600 echo "$as_me: error: ambiguous option: $1
12601 Try \`$0 --help' for more information." >&2;}
12602 { (exit 1); exit 1; }; };;
12603 --help |
--hel |
-h )
12604 echo "$ac_cs_usage"; exit 0 ;;
12605 --debug |
--d* |
-d )
12607 --file |
--fil |
--fi |
--f )
12609 CONFIG_FILES
="$CONFIG_FILES $1"
12610 ac_need_defaults
=false
;;
12611 --header |
--heade |
--head |
--hea )
12613 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12614 ac_need_defaults
=false
;;
12616 # This is an error.
12617 -*) { { echo "$as_me:12617: error: unrecognized option: $1
12618 Try \`$0 --help' for more information." >&5
12619 echo "$as_me: error: unrecognized option: $1
12620 Try \`$0 --help' for more information." >&2;}
12621 { (exit 1); exit 1; }; } ;;
12623 *) ac_config_targets
="$ac_config_targets $1" ;;
12632 ## ----------------------- ##
12633 ## Running config.status. ##
12634 ## ----------------------- ##
12636 This file was extended by $as_me 2.52, executed with
12637 CONFIG_FILES = $CONFIG_FILES
12638 CONFIG_HEADERS = $CONFIG_HEADERS
12639 CONFIG_LINKS = $CONFIG_LINKS
12640 CONFIG_COMMANDS = $CONFIG_COMMANDS
12641 > $ac_cs_invocation
12642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12647 cat >>$CONFIG_STATUS <<EOF
12649 # INIT-COMMANDS section.
12652 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12656 cat >>$CONFIG_STATUS <<\EOF
12657 for ac_config_target
in $ac_config_targets
12659 case "$ac_config_target" in
12660 # Handling of arguments.
12661 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12662 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12663 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12664 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12665 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12666 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12667 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12668 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12669 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12670 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12671 *) { { echo "$as_me:12671: error: invalid argument: $ac_config_target" >&5
12672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12673 { (exit 1); exit 1; }; };;
12677 # If the user did not use the arguments to specify the items to instantiate,
12678 # then the envvar interface is used. Set only those that are not.
12679 # We use the long form for the default assignment because of an extremely
12680 # bizarre bug on SunOS 4.1.3.
12681 if $ac_need_defaults; then
12682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12687 # Create a temporary directory, and hook for its removal unless debugging.
12690 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12691 trap '{ (exit 1); exit 1; }' 1 2 13 15
12694 # Create a (secure) tmp directory for tmp files.
12697 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12698 test -n "$tmp" && test -d "$tmp"
12701 tmp
=$TMPDIR/cs$$
-$RANDOM
12702 (umask 077 && mkdir
$tmp)
12705 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12706 { (exit 1); exit 1; }
12711 cat >>$CONFIG_STATUS <<EOF
12714 # CONFIG_FILES section.
12717 # No need to generate the scripts if there are no CONFIG_FILES.
12718 # This happens for instance when ./config.status config.h
12719 if test -n "\$CONFIG_FILES"; then
12720 # Protect against being on the right side of a sed subst in config.status.
12721 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12722 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12723 s,@SHELL@,$SHELL,;t t
12724 s,@exec_prefix@,$exec_prefix,;t t
12725 s,@prefix@,$prefix,;t t
12726 s,@program_transform_name@,$program_transform_name,;t t
12727 s,@bindir@,$bindir,;t t
12728 s,@sbindir@,$sbindir,;t t
12729 s,@libexecdir@,$libexecdir,;t t
12730 s,@datadir@,$datadir,;t t
12731 s,@sysconfdir@,$sysconfdir,;t t
12732 s,@sharedstatedir@,$sharedstatedir,;t t
12733 s,@localstatedir@,$localstatedir,;t t
12734 s,@libdir@,$libdir,;t t
12735 s,@includedir@,$includedir,;t t
12736 s,@oldincludedir@,$oldincludedir,;t t
12737 s,@infodir@,$infodir,;t t
12738 s,@mandir@,$mandir,;t t
12739 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12740 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12741 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12742 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12743 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12744 s,@build_alias@,$build_alias,;t t
12745 s,@host_alias@,$host_alias,;t t
12746 s,@target_alias@,$target_alias,;t t
12747 s,@ECHO_C@,$ECHO_C,;t t
12748 s,@ECHO_N@,$ECHO_N,;t t
12749 s,@ECHO_T@,$ECHO_T,;t t
12750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12751 s,@DEFS@,$DEFS,;t t
12752 s,@LIBS@,$LIBS,;t t
12753 s,@build@,$build,;t t
12754 s,@build_cpu@,$build_cpu,;t t
12755 s,@build_vendor@,$build_vendor,;t t
12756 s,@build_os@,$build_os,;t t
12757 s,@host@,$host,;t t
12758 s,@host_cpu@,$host_cpu,;t t
12759 s,@host_vendor@,$host_vendor,;t t
12760 s,@host_os@,$host_os,;t t
12762 s,@CFLAGS@,$CFLAGS,;t t
12763 s,@LDFLAGS@,$LDFLAGS,;t t
12764 s,@CPPFLAGS@,$CPPFLAGS,;t t
12765 s,@ac_ct_CC@,$ac_ct_CC,;t t
12766 s,@EXEEXT@,$EXEEXT,;t t
12767 s,@OBJEXT@,$OBJEXT,;t t
12768 s,@LN_S@,$LN_S,;t t
12770 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12771 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12772 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12773 s,@YACC@,$YACC,;t t
12774 s,@RANLIB@,$RANLIB,;t t
12775 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12776 s,@LIBSOUND@,$LIBSOUND,;t t
12777 s,@SET_MAKE@,$SET_MAKE,;t t
12778 s,@ALLOCA@,$ALLOCA,;t t
12779 s,@liblockfile@,$liblockfile,;t t
12780 s,@LIBOBJS@,$LIBOBJS,;t t
12781 s,@NEED_SETGID@,$NEED_SETGID,;t t
12782 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12783 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12784 s,@version@,$version,;t t
12785 s,@configuration@,$configuration,;t t
12786 s,@canonical@,$canonical,;t t
12787 s,@srcdir@,$srcdir,;t t
12788 s,@lispdir@,$lispdir,;t t
12789 s,@locallisppath@,$locallisppath,;t t
12790 s,@lisppath@,$lisppath,;t t
12791 s,@x_default_search_path@,$x_default_search_path,;t t
12792 s,@etcdir@,$etcdir,;t t
12793 s,@archlibdir@,$archlibdir,;t t
12794 s,@docdir@,$docdir,;t t
12795 s,@bitmapdir@,$bitmapdir,;t t
12796 s,@c_switch_system@,$c_switch_system,;t t
12797 s,@c_switch_machine@,$c_switch_machine,;t t
12798 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12799 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12800 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12801 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12802 s,@machfile@,$machfile,;t t
12803 s,@opsysfile@,$opsysfile,;t t
12808 cat >>$CONFIG_STATUS <<\EOF
12809 # Split the substitutions into bite-sized pieces for seds with
12810 # small command number limits, like on Digital OSF/1 and HP-UX.
12811 ac_max_sed_lines
=48
12812 ac_sed_frag
=1 # Number of current file.
12813 ac_beg
=1 # First line for current file.
12814 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12817 while $ac_more_lines; do
12818 if test $ac_beg -gt 1; then
12819 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12821 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12823 if test ! -s $tmp/subs.frag
; then
12824 ac_more_lines
=false
12826 # The purpose of the label and of the branching condition is to
12827 # speed up the sed processing (if there are no `@' at all, there
12828 # is no need to browse any of the substitutions).
12829 # These are the two extra sed commands mentioned above.
12831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12832 if test -z "$ac_sed_cmds"; then
12833 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12835 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12837 ac_sed_frag
=`expr $ac_sed_frag + 1`
12839 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12842 if test -z "$ac_sed_cmds"; then
12845 fi # test -n "$CONFIG_FILES"
12848 cat >>$CONFIG_STATUS <<\EOF
12849 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12852 - |
*:- |
*:-:* ) # input from stdin
12854 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12855 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12856 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12857 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12858 * ) ac_file_in
=$ac_file.
in ;;
12861 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12862 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12863 X"$ac_file" : 'X\(//\)[^/]' \| \
12864 X"$ac_file" : 'X\(//\)$' \| \
12865 X"$ac_file" : 'X\(/\)' \| \
12866 . : '\(.\)' 2>/dev/null ||
12868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12870 /^X\(\/\/\)$/{ s//\1/; q; }
12871 /^X\(\/\).*/{ s//\1/; q; }
12873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12874 { case "$ac_dir" in
12875 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12879 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12880 case $as_mkdir_dir in
12881 # Skip DOS drivespec
12882 ?
:) as_incr_dir
=$as_mkdir_dir ;;
12884 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
12885 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
12890 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
12891 # A "../" for each directory in $ac_dir_suffix.
12892 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12894 ac_dir_suffix
= ac_dots
=
12899 if test -z "$ac_dots"; then
12902 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
12904 [\\/]* | ?
:[\\/]* )
12905 ac_srcdir
=$srcdir$ac_dir_suffix;
12906 ac_top_srcdir
=$srcdir ;;
12907 *) # Relative path.
12908 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
12909 ac_top_srcdir
=$ac_dots$srcdir ;;
12913 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12914 *) ac_INSTALL
=$ac_dots$INSTALL ;;
12917 if test x
"$ac_file" != x-
; then
12918 { echo "$as_me:12918: creating $ac_file" >&5
12919 echo "$as_me: creating $ac_file" >&6;}
12922 # Let's still pretend it is `configure' which instantiates (i.e., don't
12923 # use $as_me), people would be surprised to read:
12924 # /* config.h. Generated automatically by config.status. */
12925 configure_input
="Generated automatically from `echo $ac_file_in |
12926 sed 's,.*/,,'` by configure."
12928 # First look for the input files in the build tree, otherwise in the
12930 ac_file_inputs
=`IFS=:
12931 for f in $ac_file_in; do
12933 -) echo $tmp/stdin ;;
12935 # Absolute (can't be DOS-style, as IFS=:)
12936 test -f "$f" || { { echo "$as_me:12936: error: cannot find input file: $f" >&5
12937 echo "$as_me: error: cannot find input file: $f" >&2;}
12938 { (exit 1); exit 1; }; }
12941 if test -f "$f"; then
12944 elif test -f "$srcdir/$f"; then
12949 { { echo "$as_me:12949: error: cannot find input file: $f" >&5
12950 echo "$as_me: error: cannot find input file: $f" >&2;}
12951 { (exit 1); exit 1; }; }
12954 done` ||
{ (exit 1); exit 1; }
12956 cat >>$CONFIG_STATUS <<EOF
12960 cat >>$CONFIG_STATUS <<\EOF
12962 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12963 s
,@configure_input@
,$configure_input,;t t
12964 s
,@srcdir@
,$ac_srcdir,;t t
12965 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12966 s
,@INSTALL@
,$ac_INSTALL,;t t
12967 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12969 if test x"$ac_file" != x-; then
12970 mv $tmp/out $ac_file
12978 cat >>$CONFIG_STATUS <<\EOF
12981 # CONFIG_HEADER section.
12984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12987 # ac_d sets the value in "#define NAME VALUE" lines.
12988 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12989 ac_dB
='[ ].*$,\1#\2'
12992 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12993 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12994 ac_uB
='$,\1#\2define\3'
12998 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13001 - |
*:- |
*:-:* ) # input from stdin
13003 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13004 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13005 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13006 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13007 * ) ac_file_in
=$ac_file.
in ;;
13010 test x
"$ac_file" != x-
&& { echo "$as_me:13010: creating $ac_file" >&5
13011 echo "$as_me: creating $ac_file" >&6;}
13013 # First look for the input files in the build tree, otherwise in the
13015 ac_file_inputs
=`IFS=:
13016 for f in $ac_file_in; do
13018 -) echo $tmp/stdin ;;
13020 # Absolute (can't be DOS-style, as IFS=:)
13021 test -f "$f" || { { echo "$as_me:13021: error: cannot find input file: $f" >&5
13022 echo "$as_me: error: cannot find input file: $f" >&2;}
13023 { (exit 1); exit 1; }; }
13026 if test -f "$f"; then
13029 elif test -f "$srcdir/$f"; then
13034 { { echo "$as_me:13034: error: cannot find input file: $f" >&5
13035 echo "$as_me: error: cannot find input file: $f" >&2;}
13036 { (exit 1); exit 1; }; }
13039 done` ||
{ (exit 1); exit 1; }
13040 # Remove the trailing spaces.
13041 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13045 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13046 # `conftest.undefs', that substitutes the proper values into
13047 # config.h.in to produce config.h. The first handles `#define'
13048 # templates, and the second `#undef' templates.
13049 # And first: Protect against being on the right side of a sed subst in
13050 # config.status. Protect against being in an unquoted here document
13051 # in config.status.
13052 rm -f conftest.defines conftest.undefs
13053 # Using a here document instead of a string reduces the quoting nightmare.
13054 # Putting comments in sed scripts is not portable.
13056 # `end' is used to avoid that the second main sed command (meant for
13057 # 0-ary CPP macros) applies to n-ary macro definitions.
13058 # See the Autoconf documentation for `clear'.
13059 cat >confdef2sed.
sed <<\EOF
13064 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13066 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13069 # If some macros were called several times there might be several times
13070 # the same #defines, which is useless. Nevertheless, we may not want to
13071 # sort them, since we want the *last* AC-DEFINE to be honored.
13072 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13073 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13074 rm -f confdef2sed.sed
13076 # This sed command replaces #undef with comments. This is necessary, for
13077 # example, in the case of _POSIX_SOURCE, which is predefined and required
13078 # on some systems where configure will not decide to define it.
13079 cat >>conftest.undefs <<\EOF
13080 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13083 # Break up conftest.defines because some shells have a limit on the size
13084 # of here documents, and old seds have small limits too (100 cmds).
13085 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13086 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13087 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13088 echo ' :' >>$CONFIG_STATUS
13089 rm -f conftest.tail
13090 while grep . conftest.defines >/dev/null
13092 # Write a limited-size here document to $tmp/defines.sed.
13093 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13094 # Speed up: don't consider the non `#define' lines.
13095 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13096 # Work around the forget-to-reset-the-flag bug.
13097 echo 't clr' >>$CONFIG_STATUS
13098 echo ': clr' >>$CONFIG_STATUS
13099 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13101 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13103 mv $tmp/out $tmp/in
13105 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13106 rm -f conftest.defines
13107 mv conftest.
tail conftest.defines
13109 rm -f conftest.defines
13110 echo ' fi # egrep' >>$CONFIG_STATUS
13111 echo >>$CONFIG_STATUS
13113 # Break up conftest.undefs because some shells have a limit on the size
13114 # of here documents, and old seds have small limits too (100 cmds).
13115 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13116 rm -f conftest.
tail
13117 while grep . conftest.undefs
>/dev
/null
13119 # Write a limited-size here document to $tmp/undefs.sed.
13120 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13121 # Speed up: don't consider the non
`#undef'
13122 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13123 # Work around the forget-to-reset-the-flag bug.
13124 echo 't clr' >>$CONFIG_STATUS
13125 echo ': clr' >>$CONFIG_STATUS
13126 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13128 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13130 mv $tmp/out $tmp/in
13132 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13133 rm -f conftest.undefs
13134 mv conftest.tail conftest.undefs
13136 rm -f conftest.undefs
13138 cat >>$CONFIG_STATUS <<\EOF
13139 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13140 # use $as_me), people would be surprised to read:
13141 # /* config.h. Generated automatically by config.status. */
13142 if test x
"$ac_file" = x-
; then
13143 echo "/* Generated automatically by configure. */" >$tmp/config.h
13145 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13147 cat $tmp/in >>$tmp/config.h
13149 if test x
"$ac_file" != x-
; then
13150 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13151 { echo "$as_me:13151: $ac_file is unchanged" >&5
13152 echo "$as_me: $ac_file is unchanged" >&6;}
13154 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155 X"$ac_file" : 'X\(//\)[^/]' \| \
13156 X"$ac_file" : 'X\(//\)$' \| \
13157 X"$ac_file" : 'X\(/\)' \| \
13158 . : '\(.\)' 2>/dev/null ||
13160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13162 /^X\(\/\/\)$/{ s//\1/; q; }
13163 /^X\(\/\).*/{ s//\1/; q; }
13165 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13166 { case "$ac_dir" in
13167 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13171 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13172 case $as_mkdir_dir in
13173 # Skip DOS drivespec
13174 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13176 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13177 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13184 mv $tmp/config.h
$ac_file
13188 rm -f $tmp/config.h
13192 cat >>$CONFIG_STATUS <<\EOF
13195 # CONFIG_COMMANDS section.
13197 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13198 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13199 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13204 ### Make the necessary directories, if they don't exist.
13205 for dir
in etc lisp
; do
13206 test -d ${dir} || mkdir
${dir}
13209 # Build src/Makefile from ${srcdir}/src/Makefile.c
13210 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13211 # This must be done after src/config.h is built, since we rely on that file.
13213 # Now get this: Some word that is part of the ${srcdir} directory name
13214 # or the ${configuration} value might, just might, happen to be an
13215 # identifier like `sun4' or `i386' or something, and be predefined by
13216 # the C preprocessor to some helpful value like 1, or maybe the empty
13217 # string. Needless to say consequent macro substitutions are less
13218 # than conducive to the makefile finding the correct directory.
13219 undefs
="`echo $top_srcdir $configuration $canonical |
13220 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13221 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13224 echo creating src
/epaths.h
13225 ${MAKE-make} epaths-force
13227 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13228 # `..' to `. .' unless invoked with -traditional
13230 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13231 CPPFLAGS
="$CPPFLAGS -traditional"
13234 echo creating lib-src
/Makefile
13236 rm -f junk.c junk1.c junk2.c
13237 sed -e '/start of cpp stuff/q' \
13238 < Makefile.c
> junk1.c
13239 sed -e '1,/start of cpp stuff/d'\
13240 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13241 < Makefile.c
> junk.c
13242 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13243 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13244 cat junk1.c junk2.c
> Makefile.new
13245 rm -f junk.c junk1.c junk2.c
13246 chmod 444 Makefile.new
13247 mv -f Makefile.new Makefile
13250 echo creating src
/Makefile
13252 rm -f junk.c junk1.c junk2.c
13253 sed -e '/start of cpp stuff/q' \
13254 < Makefile.c
> junk1.c
13255 sed -e '1,/start of cpp stuff/d'\
13256 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13257 < Makefile.c
> junk.c
13258 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13259 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13260 cat junk1.c junk2.c
> Makefile.new
13261 rm -f junk.c junk1.c junk2.c
13262 chmod 444 Makefile.new
13263 mv -f Makefile.new Makefile
13266 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13267 echo creating src
/.gdbinit
13268 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13271 # This is how we know whether to re-run configure in certain cases.
13272 touch src
/config.stamp
13279 cat >>$CONFIG_STATUS <<\EOF
13281 { (exit 0); exit 0; }
13283 chmod +x
$CONFIG_STATUS
13284 ac_clean_files
=$ac_clean_files_save
13286 # configure is writing to config.log, and then calls config.status.
13287 # config.status does its own redirection, appending to config.log.
13288 # Unfortunately, on DOS this fails, as config.log is still kept open
13289 # by configure, so config.status won't be able to write to it; its
13290 # output is simply discarded. So we exec the FD to /dev/null,
13291 # effectively closing config.log, so it can be properly (re)opened and
13292 # appended to by config.status. When coming back to configure, we
13293 # need to make the FD available again.
13294 if test "$no_create" != yes; then
13297 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13300 # would make configure fail if this is the last instruction.
13301 $ac_cs_success ||
{ (exit 1); exit 1; }