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
1627 machine
=hp800 opsys
=hpux10
1629 hppa
*-hp-hpux1[1-9]* )
1630 machine
=hp800 opsys
=hpux11
1633 ## HP 9000 series 700 and 800, running HP/UX
1635 ## Cross-compilation? Nah!
1636 case "`uname -r`" in
1637 ## Someone's system reports A.B8.05 for this.
1638 ## I wonder what other possibilities there are.
1639 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1640 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1641 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1642 *) machine
=hp800 opsys
=hpux10
;;
1646 machine
=hp800 opsys
=nextstep
1651 machine
=orion opsys
=bsd4-2
1653 clipper-orion-bsd
* )
1654 machine
=orion105 opsys
=bsd4-2
1658 i
[3456]86-ibm-aix1.1
* )
1659 machine
=ibmps2-aix opsys
=usg5-2-2
1661 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1662 machine
=ibmps2-aix opsys
=usg5-3
1665 machine
=ibm370aix opsys
=usg5-3
1668 machine
=ibms390 opsys
=gnu-linux
1670 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1671 machine
=ibmrs6000 opsys
=aix3-1
1673 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1674 machine
=ibmrs6000 opsys
=aix3-2-5
1676 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1677 machine
=ibmrs6000 opsys
=aix4-1
1679 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1680 machine
=ibmrs6000 opsys
=aix4-2
1682 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1683 machine
=ibmrs6000 opsys
=aix4
1685 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1686 machine
=ibmrs6000 opsys
=aix4-1
1688 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1689 machine
=ibmrs6000 opsys
=aix3-2
1692 machine
=ibmrt opsys
=bsd4-3
1695 machine
=ibmrt opsys
=bsd4-2
1698 machine
=ibmrt opsys
=bsd4-3
1701 machine
=ibmrt opsys
=bsd4-2
1704 machine
=ibmrt opsys
=bsd4-3
1707 machine
=ibmrt opsys
=bsd4-3
1710 machine
=ibmrt-aix opsys
=usg5-2-2
1713 ## Integrated Solutions `Optimum V'
1715 machine
=isi-ov opsys
=bsd4-2
1718 machine
=isi-ov opsys
=bsd4-3
1721 ## Intel 386 machines where we do care about the manufacturer
1722 i
[3456]86-intsys-sysv* )
1723 machine
=is386 opsys
=usg5-2-2
1727 i
[3456]86-prime-sysv* )
1728 machine
=i386 opsys
=usg5-3
1731 ## Sequent Symmetry running Dynix
1732 i
[3456]86-sequent-bsd* )
1733 machine
=symmetry opsys
=bsd4-3
1736 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1737 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1738 machine
=sequent-ptx opsys
=ptx4
1739 NON_GNU_CPP
=/lib
/cpp
1742 ## Sequent Symmetry running DYNIX/ptx
1743 ## Use the old cpp rather than the newer ANSI one.
1744 i
[3456]86-sequent-ptx* )
1745 machine
=sequent-ptx opsys
=ptx
1746 NON_GNU_CPP
="/lib/cpp"
1749 ## ncr machine running svr4.3.
1750 i
[3456]86-ncr-sysv4.3
)
1751 machine
=ncr386 opsys
=usg5-4-3
1754 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1755 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1756 i
[3456]86-ncr-sysv* )
1757 machine
=ncr386 opsys
=usg5-4-2
1760 ## Intel Paragon OSF/1
1762 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1767 machine
=i860 opsys
=usg5-4
1768 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1769 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1772 ## Macintosh PowerPC
1773 powerpc
*-*-linux-gnu* )
1774 machine
=macppc opsys
=gnu-linux
1777 ## Masscomp machines
1778 m68
*-masscomp-rtu* )
1779 machine
=masscomp opsys
=rtu
1782 ## Megatest machines
1783 m68
*-megatest-bsd* )
1784 machine
=mega68 opsys
=bsd4-2
1787 ## Workstations sold by MIPS
1788 ## This is not necessarily all workstations using the MIPS processor -
1789 ## Irises are produced by SGI, and DECstations by DEC.
1791 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1792 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1793 ## it gives for choosing between the alternatives seems to be "Use
1794 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1795 ## the BSD world." I'll assume that these are instructions for
1796 ## handling two odd situations, and that every other situation
1797 ## should use mips.h and usg5-2-2, they being listed first.
1800 ## Fall through to the general code at the bottom to decide on the OS.
1802 mips-mips-riscos4
* )
1803 machine
=mips4 opsys
=bsd4-3
1804 NON_GNU_CC
="cc -systype bsd43"
1805 NON_GNU_CPP
="cc -systype bsd43 -E"
1807 mips-mips-riscos5
* )
1808 machine
=mips4 opsys
=riscos5
1809 NON_GNU_CC
="cc -systype bsd43"
1810 NON_GNU_CPP
="cc -systype bsd43 -E"
1813 machine
=mips opsys
=bsd4-3
1816 machine
=mips opsys
=usg5-2-2
1820 m68
*-next-* | m68k-
*-nextstep* )
1821 machine
=m68k opsys
=nextstep
1824 ## The complete machine from National Semiconductor
1826 machine
=ns32000 opsys
=usg5-2
1830 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1831 machine
=tower32 opsys
=usg5-2-2
1833 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1834 machine
=tower32v3 opsys
=usg5-3
1839 machine
=ews4800 opsys
=ux4800
1842 ## Nixdorf Targon 31
1843 m68
*-nixdorf-sysv* )
1844 machine
=targon31 opsys
=usg5-2-2
1849 machine
=nu opsys
=usg5-2
1854 machine
=plexus opsys
=usg5-2
1857 ## PowerPC reference platform
1858 powerpcle-
*-solaris2* )
1864 ## I don't really have any idea what sort of processor the Pyramid has,
1865 ## so I'm assuming it is its own architecture.
1866 pyramid-pyramid-bsd
* )
1867 machine
=pyramid opsys
=bsd4-2
1871 ns32k-sequent-bsd4.2
* )
1872 machine
=sequent opsys
=bsd4-2
1874 ns32k-sequent-bsd4.3
* )
1875 machine
=sequent opsys
=bsd4-3
1879 mips-siemens-sysv
* | mips-sni-sysv
*)
1880 machine
=mips-siemens opsys
=usg5-4
1881 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1882 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1885 ## Silicon Graphics machines
1886 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1888 machine
=irist opsys
=iris3-5
1890 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1891 machine
=irist opsys
=iris3-6
1895 machine
=iris4d opsys
=irix3-3
1898 machine
=iris4d opsys
=irix4-0
1901 machine
=iris4d opsys
=irix6-5
1902 # Without defining _LANGUAGE_C, things get masked out in the headers
1903 # so that, for instance, grepping for `free' in stdlib.h fails and
1904 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1905 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1906 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1909 machine
=iris4d opsys
=irix6-0
1910 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1911 # but presumably it does no harm.
1912 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1913 # -32 probably isn't necessary in later v.6s -- anyone know which?
1914 NON_GCC_TEST_OPTIONS
=-32
1916 mips-sgi-irix5.
[01]* )
1917 machine
=iris4d opsys
=irix5-0
1919 mips-sgi-irix5
* | mips-sgi-irix
* )
1920 machine
=iris4d opsys
=irix5-2
1925 machine
=news opsys
=bsd4-2
1928 machine
=news opsys
=bsd4-3
1930 m68
*-sony-newsos3* | m68
*-sony-news3*)
1931 machine
=news opsys
=bsd4-3
1933 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1934 machine
=news-risc opsys
=bsd4-3
1936 mips-sony-newsos6
* )
1937 machine
=news-r6 opsys
=newsos6
1940 machine
=news-risc opsys
=newsos5
1945 machine
=stride opsys
=usg5-2
1949 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1950 machine
=sparc opsys
=gnu-linux
1953 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1954 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1955 | rs6000-
*-solaris2*)
1956 case "${canonical}" in
1957 m68
*-sunos1* ) machine
=sun1
;;
1958 m68
*-sunos2* ) machine
=sun2
;;
1959 m68
* ) machine
=sun3
;;
1960 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1961 i
[3456]86-*-* ) machine
=intel386
;;
1962 powerpcle
* ) machine
=powerpcle
;;
1963 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1964 sparc
* ) machine
=sparc
;;
1967 case "${canonical}" in
1968 ## The Sun386 didn't get past 4.0.
1969 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1970 *-sunos4.0
* ) opsys
=sunos4-0
;;
1971 *-sunos4.1.
[3-9]*noshare
)
1972 ## This name is sunos413 instead of sunos4-1-3
1973 ## to avoid a file name conflict on MSDOS.
1975 NON_GNU_CPP
=/usr
/lib
/cpp
1976 NON_GCC_TEST_OPTIONS
=-Bstatic
1977 GCC_TEST_OPTIONS
=-static
1979 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1981 NON_GNU_CPP
=/usr
/lib
/cpp
1983 *-sunos4* |
*-sunos )
1985 NON_GCC_TEST_OPTIONS
=-Bstatic
1986 GCC_TEST_OPTIONS
=-static
1988 *-sunos5.3
* |
*-solaris2.3
* )
1990 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1992 *-sunos5.4
* |
*-solaris2.4
* )
1994 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1997 *-sunos5.5
* |
*-solaris2.5
* )
1999 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2002 *-sunos5* |
*-solaris* )
2004 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2008 ## Watch out for a compiler that we know will not work.
2009 case "${canonical}" in
2010 *-solaris* |
*-sunos5* )
2011 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2012 ## /usr/ucb/cc doesn't work;
2013 ## we should find some other compiler that does work.
2021 machine
=sparc opsys
=nextstep
2025 m68
*-tadpole-sysv* )
2026 machine
=tad68k opsys
=usg5-3
2030 tahoe-tahoe-bsd4.2
* )
2031 machine
=tahoe opsys
=bsd4-2
2033 tahoe-tahoe-bsd4.3
* )
2034 machine
=tahoe opsys
=bsd4-3
2037 ## Tandem Integrity S2
2039 machine
=tandem-s2 opsys
=usg5-3
2043 m88k-tektronix-sysv3
* )
2044 machine
=tekxd88 opsys
=usg5-3
2047 ## Tektronix 16000 box (6130?)
2048 ns16k-tektronix-bsd
* )
2049 machine
=ns16000 opsys
=bsd4-2
2052 ## src/m/tek4300.h hints that this is a m68k machine.
2053 m68
*-tektronix-bsd* )
2054 machine
=tek4300 opsys
=bsd4-3
2058 ## We seem to have lost the machine-description file titan.h!
2060 machine
=titan opsys
=usg5-3
2063 ## Ustation E30 (SS5E)
2064 m68
*-unisys-uniplus* )
2065 machine
=ustation opsystem
=unipl5-2
2071 case "${canonical}" in
2072 *-bsd4.1
* ) opsys
=bsd4-1
;;
2073 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2074 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2075 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2076 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2077 *-vms* ) opsys
=vms
;;
2083 ns16k-whitechapel-
* )
2085 ## We don't know what sort of OS runs on these; we'll let the
2086 ## operating system guessing code below try.
2091 machine
=wicat opsys
=usg5-2
2096 machine
=ia64 opsys
=gnu-linux
2099 ## Intel 386 machines where we don't care about the manufacturer
2102 case "${canonical}" in
2103 *-lynxos* ) opsys
=lynxos
;;
2104 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2105 *-isc2.2
* ) opsys
=isc2-2
;;
2106 *-isc4.0
* ) opsys
=isc4-0
;;
2107 *-isc4.
* ) opsys
=isc4-1
2108 GCC_TEST_OPTIONS
=-posix
2109 NON_GCC_TEST_OPTIONS
=-Xp
2111 *-isc* ) opsys
=isc3-0
;;
2112 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2113 *-esix* ) opsys
=esix
;;
2114 *-xenix* ) opsys
=xenix
;;
2115 *-linux-gnu* ) opsys
=gnu-linux
;;
2116 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2117 *-sco3.2v5
* ) opsys
=sco5
2118 NON_GNU_CPP
=/lib
/cpp
2119 # Prevent -belf from being passed to $CPP.
2120 # /lib/cpp does not accept it.
2121 OVERRIDE_CPPFLAGS
=" "
2123 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2124 *-386bsd* ) opsys
=386bsd
;;
2125 *-freebsd* ) opsys
=freebsd
;;
2126 *-nextstep* ) opsys
=nextstep
;;
2127 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2131 ## m68k Linux-based GNU system
2133 machine
=m68k opsys
=gnu-linux
2136 ## Mips Linux-based GNU system
2138 machine
=mips opsys
=gnu-linux
2142 sparc-fujitsu-sysv4
* )
2143 machine
=sparc opsys
=uxpds
2144 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2149 f301-fujitsu-uxpv4.1
)
2150 machine
=f301 opsys
=uxpv
2158 ### If the code above didn't choose an operating system, just choose
2159 ### an operating system based on the configuration name. You really
2160 ### only want to use this when you have no idea what the right
2161 ### operating system is; if you know what operating systems a machine
2162 ### runs, it's cleaner to make it explicit in the case statement
2164 if test x
"${opsys}" = x
; then
2165 case "${canonical}" in
2166 *-gnu* ) opsys
=gnu
;;
2167 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2168 *-bsd4.2
) opsys
=bsd4-2
;;
2169 *-bsd4.3
) opsys
=bsd4-3
;;
2170 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2171 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2172 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2173 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2174 *-sysv4.2uw
* ) opsys
=unixware
;;
2175 *-sysv4.1
* |
*-sysvr4.1
* )
2176 NON_GNU_CPP
=/usr
/lib
/cpp
2178 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2179 if [ x
$NON_GNU_CPP = x
]; then
2180 if [ -f /usr
/ccs
/lib
/cpp
]; then
2181 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2183 NON_GNU_CPP
=/lib
/cpp
2187 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2194 if test $unported = yes; then
2195 { { echo "$as_me:2195: error: Emacs hasn't been ported to \`${canonical}' systems.
2196 Check \`etc/MACHINES' for recognized configuration names." >&5
2197 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2198 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2199 { (exit 1); exit 1; }; }
2202 machfile
="m/${machine}.h"
2203 opsysfile
="s/${opsys}.h"
2205 #### Choose a compiler.
2206 test -n "$CC" && cc_specified
=yes
2208 # Save the value of CFLAGS that the user specified.
2209 SPECIFIED_CFLAGS
="$CFLAGS"
2212 "yes" ) CC
="gcc" GCC
=yes ;;
2213 "no" ) : ${CC=cc} ;;
2217 ac_cpp
='$CPP $CPPFLAGS'
2218 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2221 if test -n "$ac_tool_prefix"; then
2222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2223 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2224 echo "$as_me:2224: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC
="$CC" # Let the user override the test.
2232 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2234 for ac_dir
in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir
=.
2237 $as_executable_p "$ac_dir/$ac_word" ||
continue
2238 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2239 echo "$as_me:2239: found $ac_dir/$ac_word" >&5
2246 if test -n "$CC"; then
2247 echo "$as_me:2247: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6
2250 echo "$as_me:2250: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2255 if test -z "$ac_cv_prog_CC"; then
2257 # Extract the first word of "gcc", so it can be a program name with args.
2258 set dummy gcc
; ac_word
=$2
2259 echo "$as_me:2259: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2267 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2269 for ac_dir
in $ac_dummy; do
2271 test -z "$ac_dir" && ac_dir
=.
2272 $as_executable_p "$ac_dir/$ac_word" ||
continue
2273 ac_cv_prog_ac_ct_CC
="gcc"
2274 echo "$as_me:2274: found $ac_dir/$ac_word" >&5
2280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 echo "$as_me:2282: result: $ac_ct_CC" >&5
2283 echo "${ECHO_T}$ac_ct_CC" >&6
2285 echo "$as_me:2285: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2294 if test -z "$CC"; then
2295 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2297 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2298 echo "$as_me:2298: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_CC+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$CC"; then
2304 ac_cv_prog_CC
="$CC" # Let the user override the test.
2306 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2308 for ac_dir
in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir
=.
2311 $as_executable_p "$ac_dir/$ac_word" ||
continue
2312 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2313 echo "$as_me:2313: found $ac_dir/$ac_word" >&5
2320 if test -n "$CC"; then
2321 echo "$as_me:2321: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2324 echo "$as_me:2324: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2329 if test -z "$ac_cv_prog_CC"; then
2331 # Extract the first word of "cc", so it can be a program name with args.
2332 set dummy cc
; ac_word
=$2
2333 echo "$as_me:2333: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$ac_ct_CC"; then
2339 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2341 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2343 for ac_dir
in $ac_dummy; do
2345 test -z "$ac_dir" && ac_dir
=.
2346 $as_executable_p "$ac_dir/$ac_word" ||
continue
2347 ac_cv_prog_ac_ct_CC
="cc"
2348 echo "$as_me:2348: found $ac_dir/$ac_word" >&5
2354 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2355 if test -n "$ac_ct_CC"; then
2356 echo "$as_me:2356: result: $ac_ct_CC" >&5
2357 echo "${ECHO_T}$ac_ct_CC" >&6
2359 echo "$as_me:2359: result: no" >&5
2360 echo "${ECHO_T}no" >&6
2369 if test -z "$CC"; then
2370 # Extract the first word of "cc", so it can be a program name with args.
2371 set dummy cc
; ac_word
=$2
2372 echo "$as_me:2372: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_prog_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC
="$CC" # Let the user override the test.
2381 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2383 for ac_dir
in $ac_dummy; do
2385 test -z "$ac_dir" && ac_dir
=.
2386 $as_executable_p "$ac_dir/$ac_word" ||
continue
2387 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2388 ac_prog_rejected
=yes
2392 echo "$as_me:2392: found $ac_dir/$ac_word" >&5
2396 if test $ac_prog_rejected = yes; then
2397 # We found a bogon in the path, so make sure we never use it.
2398 set dummy
$ac_cv_prog_CC
2400 if test $# != 0; then
2401 # We chose a different compiler from the bogus one.
2402 # However, it has the same basename, so the bogon will be chosen
2403 # first if we set CC to just the basename; use the full file name.
2405 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2413 if test -n "$CC"; then
2414 echo "$as_me:2414: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6
2417 echo "$as_me:2417: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2422 if test -z "$CC"; then
2423 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2428 echo "$as_me:2428: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC
="$CC" # Let the user override the test.
2436 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2438 for ac_dir
in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir
=.
2441 $as_executable_p "$ac_dir/$ac_word" ||
continue
2442 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2443 echo "$as_me:2443: found $ac_dir/$ac_word" >&5
2450 if test -n "$CC"; then
2451 echo "$as_me:2451: result: $CC" >&5
2452 echo "${ECHO_T}$CC" >&6
2454 echo "$as_me:2454: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2458 test -n "$CC" && break
2461 if test -z "$CC"; then
2465 # Extract the first word of "$ac_prog", so it can be a program name with args.
2466 set dummy
$ac_prog; ac_word
=$2
2467 echo "$as_me:2467: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 if test -n "$ac_ct_CC"; then
2473 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2475 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2477 for ac_dir
in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir
=.
2480 $as_executable_p "$ac_dir/$ac_word" ||
continue
2481 ac_cv_prog_ac_ct_CC
="$ac_prog"
2482 echo "$as_me:2482: found $ac_dir/$ac_word" >&5
2488 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 echo "$as_me:2490: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6
2493 echo "$as_me:2493: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2497 test -n "$ac_ct_CC" && break
2505 test -z "$CC" && { { echo "$as_me:2505: error: no acceptable cc found in \$PATH" >&5
2506 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2507 { (exit 1); exit 1; }; }
2509 # Provide some information about the compiler.
2510 echo "$as_me:2510:" \
2511 "checking for C compiler version" >&5
2512 ac_compiler
=`set X $ac_compile; echo $2`
2513 { (eval echo "$as_me:2513: \"$ac_compiler --version </dev/null >&5\"") >&5
2514 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 { (eval echo "$as_me:2518: \"$ac_compiler -v </dev/null >&5\"") >&5
2519 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2521 echo "$as_me:2521: \$? = $ac_status" >&5
2522 (exit $ac_status); }
2523 { (eval echo "$as_me:2523: \"$ac_compiler -V </dev/null >&5\"") >&5
2524 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2526 echo "$as_me:2526: \$? = $ac_status" >&5
2527 (exit $ac_status); }
2529 cat >conftest.
$ac_ext <<_ACEOF
2530 #line 2530 "configure"
2531 #include "confdefs.h"
2541 ac_clean_files_save
=$ac_clean_files
2542 ac_clean_files
="$ac_clean_files a.out a.exe"
2543 # Try to create an executable without -o first, disregard a.out.
2544 # It will help us diagnose broken compilers, and finding out an intuition
2546 echo "$as_me:2546: checking for C compiler default output" >&5
2547 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2548 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2549 if { (eval echo "$as_me:2549: \"$ac_link_default\"") >&5
2550 (eval $ac_link_default) 2>&5
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 # Find the output, starting from the most likely. This scheme is
2555 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2557 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2558 ls a.out conftest 2>/dev/null;
2559 ls a.* conftest.* 2>/dev/null`; do
2561 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2562 a.out
) # We found the default executable, but exeext='' is most
2565 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2566 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2573 echo "$as_me: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2575 { { echo "$as_me:2575: error: C compiler cannot create executables" >&5
2576 echo "$as_me: error: C compiler cannot create executables" >&2;}
2577 { (exit 77); exit 77; }; }
2580 ac_exeext
=$ac_cv_exeext
2581 echo "$as_me:2581: result: $ac_file" >&5
2582 echo "${ECHO_T}$ac_file" >&6
2584 # Check the compiler produces executables we can run. If not, either
2585 # the compiler is broken, or we cross compile.
2586 echo "$as_me:2586: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591 if { ac_try
='./$ac_file'
2592 { (eval echo "$as_me:2592: \"$ac_try\"") >&5
2595 echo "$as_me:2595: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2599 if test "$cross_compiling" = maybe
; then
2602 { { echo "$as_me:2602: error: cannot run C compiled programs.
2603 If you meant to cross compile, use \`--host'." >&5
2604 echo "$as_me: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'." >&2;}
2606 { (exit 1); exit 1; }; }
2610 echo "$as_me:2610: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2613 rm -f a.out a.exe conftest
$ac_cv_exeext
2614 ac_clean_files
=$ac_clean_files_save
2615 # Check the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 echo "$as_me:2617: checking whether we are cross compiling" >&5
2618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2619 echo "$as_me:2619: result: $cross_compiling" >&5
2620 echo "${ECHO_T}$cross_compiling" >&6
2622 echo "$as_me:2622: checking for executable suffix" >&5
2623 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2624 if { (eval echo "$as_me:2624: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>&5
2627 echo "$as_me:2627: \$? = $ac_status" >&5
2628 (exit $ac_status); }; then
2629 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2630 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2631 # work properly (i.e., refer to `conftest.exe'), while it won't with
2633 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2635 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2636 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643 { { echo "$as_me:2643: error: cannot compute EXEEXT: cannot compile and link" >&5
2644 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2645 { (exit 1); exit 1; }; }
2648 rm -f conftest
$ac_cv_exeext
2649 echo "$as_me:2649: result: $ac_cv_exeext" >&5
2650 echo "${ECHO_T}$ac_cv_exeext" >&6
2652 rm -f conftest.
$ac_ext
2653 EXEEXT
=$ac_cv_exeext
2655 echo "$as_me:2655: checking for object suffix" >&5
2656 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2657 if test "${ac_cv_objext+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 cat >conftest.
$ac_ext <<_ACEOF
2661 #line 2661 "configure"
2662 #include "confdefs.h"
2672 rm -f conftest.o conftest.obj
2673 if { (eval echo "$as_me:2673: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>&5
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2680 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2681 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2686 echo "$as_me: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2688 { { echo "$as_me:2688: error: cannot compute OBJEXT: cannot compile" >&5
2689 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2695 echo "$as_me:2695: result: $ac_cv_objext" >&5
2696 echo "${ECHO_T}$ac_cv_objext" >&6
2697 OBJEXT
=$ac_cv_objext
2699 echo "$as_me:2699: checking whether we are using the GNU C compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 cat >conftest.
$ac_ext <<_ACEOF
2705 #line 2705 "configure"
2706 #include "confdefs.h"
2719 rm -f conftest.
$ac_objext
2720 if { (eval echo "$as_me:2720: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>&5
2723 echo "$as_me:2723: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try
='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:2726: \"$ac_try\"") >&5
2729 echo "$as_me:2729: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2733 echo "$as_me: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2737 rm -f conftest.
$ac_objext conftest.
$ac_ext
2738 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2741 echo "$as_me:2741: result: $ac_cv_c_compiler_gnu" >&5
2742 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2743 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2744 ac_test_CFLAGS
=${CFLAGS+set}
2745 ac_save_CFLAGS
=$CFLAGS
2747 echo "$as_me:2747: checking whether $CC accepts -g" >&5
2748 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2749 if test "${ac_cv_prog_cc_g+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 cat >conftest.
$ac_ext <<_ACEOF
2753 #line 2753 "configure"
2754 #include "confdefs.h"
2764 rm -f conftest.
$ac_objext
2765 if { (eval echo "$as_me:2765: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>&5
2768 echo "$as_me:2768: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try
='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:2771: \"$ac_try\"") >&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2778 echo "$as_me: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2782 rm -f conftest.
$ac_objext conftest.
$ac_ext
2784 echo "$as_me:2784: result: $ac_cv_prog_cc_g" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2786 if test "$ac_test_CFLAGS" = set; then
2787 CFLAGS
=$ac_save_CFLAGS
2788 elif test $ac_cv_prog_cc_g = yes; then
2789 if test "$GCC" = yes; then
2795 if test "$GCC" = yes; then
2801 # Some people use a C++ compiler to compile C. Since we use `exit',
2802 # in C++ we need to declare it. In case someone uses the same compiler
2803 # for both compiling C and C++ we need to have the C++ compiler decide
2804 # the declaration of exit, since it's the most demanding environment.
2805 cat >conftest.
$ac_ext <<_ACEOF
2810 rm -f conftest.
$ac_objext
2811 if { (eval echo "$as_me:2811: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>&5
2814 echo "$as_me:2814: \$? = $ac_status" >&5
2815 (exit $ac_status); } &&
2816 { ac_try
='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:2817: \"$ac_try\"") >&5
2820 echo "$as_me:2820: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 for ac_declaration
in \
2824 '#include <stdlib.h>' \
2825 'extern "C" void std::exit (int) throw (); using std::exit;' \
2826 'extern "C" void std::exit (int); using std::exit;' \
2827 'extern "C" void exit (int) throw ();' \
2828 'extern "C" void exit (int);' \
2831 cat >conftest.
$ac_ext <<_ACEOF
2832 #line 2832 "configure"
2833 #include "confdefs.h"
2844 rm -f conftest.
$ac_objext
2845 if { (eval echo "$as_me:2845: \"$ac_compile\"") >&5
2846 (eval $ac_compile) 2>&5
2848 echo "$as_me:2848: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try
='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:2851: \"$ac_try\"") >&5
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2858 echo "$as_me: failed program was:" >&5
2859 cat conftest.
$ac_ext >&5
2862 rm -f conftest.
$ac_objext conftest.
$ac_ext
2863 cat >conftest.
$ac_ext <<_ACEOF
2864 #line 2864 "configure"
2865 #include "confdefs.h"
2875 rm -f conftest.
$ac_objext
2876 if { (eval echo "$as_me:2876: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>&5
2879 echo "$as_me:2879: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try
='test -s conftest.$ac_objext'
2882 { (eval echo "$as_me:2882: \"$ac_try\"") >&5
2885 echo "$as_me:2885: \$? = $ac_status" >&5
2886 (exit $ac_status); }; }; then
2889 echo "$as_me: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 rm -f conftest.
$ac_objext conftest.
$ac_ext
2895 if test -n "$ac_declaration"; then
2896 echo '#ifdef __cplusplus' >>confdefs.h
2897 echo $ac_declaration >>confdefs.h
2898 echo '#endif' >>confdefs.h
2902 echo "$as_me: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 rm -f conftest.
$ac_objext conftest.
$ac_ext
2907 ac_cpp
='$CPP $CPPFLAGS'
2908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2917 #### Some systems specify a CPP to use unless we are using GCC.
2918 #### Now that we know whether we are using GCC, we can decide whether
2919 #### to use that one.
2920 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2925 #### Some systems specify a CC to use unless we are using GCC.
2926 #### Now that we know whether we are using GCC, we can decide whether
2927 #### to use that one.
2928 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2929 test x
$cc_specified != xyes
2934 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2936 CC
="$CC $GCC_TEST_OPTIONS"
2939 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2941 CC
="$CC $NON_GCC_TEST_OPTIONS"
2944 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
2946 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2949 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2951 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2954 #### Some other nice autoconf tests. If you add a test here which
2955 #### should make an entry in src/config.h, don't forget to add an
2956 #### #undef clause to src/config.h.in for autoconf to modify.
2958 echo "$as_me:2958: checking whether ln -s works" >&5
2959 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2961 if test "$LN_S" = "ln -s"; then
2962 echo "$as_me:2962: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2965 echo "$as_me:2965: result: no, using $LN_S" >&5
2966 echo "${ECHO_T}no, using $LN_S" >&6
2970 ac_cpp
='$CPP $CPPFLAGS'
2971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2974 echo "$as_me:2974: checking how to run the C preprocessor" >&5
2975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2976 # On Suns, sometimes $CPP names a directory.
2977 if test -n "$CPP" && test -d "$CPP"; then
2980 if test -z "$CPP"; then
2981 if test "${ac_cv_prog_CPP+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 # Double quotes because CPP needs to be expanded
2985 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2988 for ac_c_preproc_warn_flag
in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # On the NeXT, cc -E runs the code through the compiler's parser,
2993 # not just through cpp. "Syntax error" is here to catch this case.
2994 cat >conftest.
$ac_ext <<_ACEOF
2995 #line 2995 "configure"
2996 #include "confdefs.h"
3000 if { (eval echo "$as_me:3000: \"$ac_cpp conftest.$ac_ext\"") >&5
3001 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3003 egrep -v '^ *\+' conftest.er1
>conftest.err
3005 cat conftest.err
>&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); } >/dev
/null
; then
3008 if test -s conftest.err
; then
3009 ac_cpp_err
=$ac_c_preproc_warn_flag
3016 if test -z "$ac_cpp_err"; then
3019 echo "$as_me: failed program was:" >&5
3020 cat conftest.
$ac_ext >&5
3021 # Broken: fails on valid input.
3024 rm -f conftest.err conftest.
$ac_ext
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
3028 cat >conftest.
$ac_ext <<_ACEOF
3029 #line 3029 "configure"
3030 #include "confdefs.h"
3031 #include <ac_nonexistent.h>
3033 if { (eval echo "$as_me:3033: \"$ac_cpp conftest.$ac_ext\"") >&5
3034 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3036 egrep -v '^ *\+' conftest.er1
>conftest.err
3038 cat conftest.err
>&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev
/null
; then
3041 if test -s conftest.err
; then
3042 ac_cpp_err
=$ac_c_preproc_warn_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3055 # Passes both tests.
3059 rm -f conftest.err conftest.
$ac_ext
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.err conftest.
$ac_ext
3064 if $ac_preproc_ok; then
3076 echo "$as_me:3076: result: $CPP" >&5
3077 echo "${ECHO_T}$CPP" >&6
3079 for ac_c_preproc_warn_flag
in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # On the NeXT, cc -E runs the code through the compiler's parser,
3084 # not just through cpp. "Syntax error" is here to catch this case.
3085 cat >conftest.
$ac_ext <<_ACEOF
3086 #line 3086 "configure"
3087 #include "confdefs.h"
3091 if { (eval echo "$as_me:3091: \"$ac_cpp conftest.$ac_ext\"") >&5
3092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3094 egrep -v '^ *\+' conftest.er1
>conftest.err
3096 cat conftest.err
>&5
3097 echo "$as_me:3097: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev
/null
; then
3099 if test -s conftest.err
; then
3100 ac_cpp_err
=$ac_c_preproc_warn_flag
3107 if test -z "$ac_cpp_err"; then
3110 echo "$as_me: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3112 # Broken: fails on valid input.
3115 rm -f conftest.err conftest.
$ac_ext
3117 # OK, works on sane cases. Now check whether non-existent headers
3118 # can be detected and how.
3119 cat >conftest.
$ac_ext <<_ACEOF
3120 #line 3120 "configure"
3121 #include "confdefs.h"
3122 #include <ac_nonexistent.h>
3124 if { (eval echo "$as_me:3124: \"$ac_cpp conftest.$ac_ext\"") >&5
3125 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3127 egrep -v '^ *\+' conftest.er1
>conftest.err
3129 cat conftest.err
>&5
3130 echo "$as_me:3130: \$? = $ac_status" >&5
3131 (exit $ac_status); } >/dev
/null
; then
3132 if test -s conftest.err
; then
3133 ac_cpp_err
=$ac_c_preproc_warn_flag
3140 if test -z "$ac_cpp_err"; then
3141 # Broken: success on invalid input.
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3146 # Passes both tests.
3150 rm -f conftest.err conftest.
$ac_ext
3153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3154 rm -f conftest.err conftest.
$ac_ext
3155 if $ac_preproc_ok; then
3158 { { echo "$as_me:3158: error: C preprocessor \"$CPP\" fails sanity check" >&5
3159 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3160 { (exit 1); exit 1; }; }
3164 ac_cpp
='$CPP $CPPFLAGS'
3165 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3169 # Find a good install program. We prefer a C program (faster),
3170 # so one script is as good as another. But avoid the broken or
3171 # incompatible versions:
3172 # SysV /etc/install, /usr/sbin/install
3173 # SunOS /usr/etc/install
3174 # IRIX /sbin/install
3176 # AmigaOS /C/install, which installs bootblocks on floppy discs
3177 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3178 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3179 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3180 # ./install, which can be erroneously created by make from ./install.sh.
3181 echo "$as_me:3181: checking for a BSD compatible install" >&5
3182 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3183 if test -z "$INSTALL"; then
3184 if test "${ac_cv_path_install+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3188 for ac_dir
in $PATH; do
3190 # Account for people who put trailing slashes in PATH elements.
3192 / | .
/ | .
// |
/cC
/* \
3193 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3196 # OSF1 and SCO ODT 3.0 have their own names for install.
3197 # Don't use installbsd from OSF since it installs stuff as root
3199 for ac_prog
in ginstall scoinst
install; do
3200 if $as_executable_p "$ac_dir/$ac_prog"; then
3201 if test $ac_prog = install &&
3202 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3203 # AIX install. It has an incompatible calling convention.
3205 elif test $ac_prog = install &&
3206 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3207 # program-specific install script used by HP pwplus--don't use.
3210 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3220 if test "${ac_cv_path_install+set}" = set; then
3221 INSTALL
=$ac_cv_path_install
3223 # As a last resort, use the slow shell script. We don't cache a
3224 # path for INSTALL within a source directory, because that will
3225 # break other packages using the cache if that directory is
3226 # removed, or if the path is relative.
3227 INSTALL
=$ac_install_sh
3230 echo "$as_me:3230: result: $INSTALL" >&5
3231 echo "${ECHO_T}$INSTALL" >&6
3233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3234 # It thinks the first close brace ends the variable substitution.
3235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3239 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3241 for ac_prog
in 'bison -y' byacc
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy
$ac_prog; ac_word
=$2
3245 echo "$as_me:3245: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247 if test "${ac_cv_prog_YACC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$YACC"; then
3251 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3253 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3255 for ac_dir
in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir
=.
3258 $as_executable_p "$ac_dir/$ac_word" ||
continue
3259 ac_cv_prog_YACC
="$ac_prog"
3260 echo "$as_me:3260: found $ac_dir/$ac_word" >&5
3266 YACC
=$ac_cv_prog_YACC
3267 if test -n "$YACC"; then
3268 echo "$as_me:3268: result: $YACC" >&5
3269 echo "${ECHO_T}$YACC" >&6
3271 echo "$as_me:3271: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 test -n "$YACC" && break
3277 test -n "$YACC" || YACC
="yacc"
3279 if test "x$RANLIB" = x
; then
3280 if test -n "$ac_tool_prefix"; then
3281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3282 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3283 echo "$as_me:3283: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_RANLIB+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$RANLIB"; then
3289 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3291 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3293 for ac_dir
in $ac_dummy; do
3295 test -z "$ac_dir" && ac_dir
=.
3296 $as_executable_p "$ac_dir/$ac_word" ||
continue
3297 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3298 echo "$as_me:3298: found $ac_dir/$ac_word" >&5
3304 RANLIB
=$ac_cv_prog_RANLIB
3305 if test -n "$RANLIB"; then
3306 echo "$as_me:3306: result: $RANLIB" >&5
3307 echo "${ECHO_T}$RANLIB" >&6
3309 echo "$as_me:3309: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3314 if test -z "$ac_cv_prog_RANLIB"; then
3315 ac_ct_RANLIB
=$RANLIB
3316 # Extract the first word of "ranlib", so it can be a program name with args.
3317 set dummy ranlib
; ac_word
=$2
3318 echo "$as_me:3318: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$ac_ct_RANLIB"; then
3324 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3326 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3328 for ac_dir
in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir
=.
3331 $as_executable_p "$ac_dir/$ac_word" ||
continue
3332 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3333 echo "$as_me:3333: found $ac_dir/$ac_word" >&5
3337 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3340 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3341 if test -n "$ac_ct_RANLIB"; then
3342 echo "$as_me:3342: result: $ac_ct_RANLIB" >&5
3343 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 RANLIB
=$ac_ct_RANLIB
3351 RANLIB
="$ac_cv_prog_RANLIB"
3356 echo "$as_me:3356: checking for AIX" >&5
3357 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3358 cat >conftest.
$ac_ext <<_ACEOF
3359 #line 3359 "configure"
3360 #include "confdefs.h"
3366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3367 egrep "yes" >/dev
/null
2>&1; then
3368 echo "$as_me:3368: result: yes" >&5
3369 echo "${ECHO_T}yes" >&6
3370 cat >>confdefs.h
<<\EOF
3371 #define _ALL_SOURCE 1
3375 echo "$as_me:3375: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3380 #### Extract some information from the operating system and machine files.
3382 { echo "$as_me:3382: 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..." >&5
3385 echo "$as_me: checking the machine- and system-dependent files to find out
3386 - which libraries the lib-src programs will want, and
3387 - whether the GNU malloc routines are usable..." >&6;}
3389 ### First figure out CFLAGS (which we use for running the compiler here)
3390 ### and REAL_CFLAGS (which we use for real compilation).
3391 ### The two are the same except on a few systems, where they are made
3392 ### different to work around various lossages. For example,
3393 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3394 ### as implying static linking.
3396 ### If the CFLAGS env var is specified, we use that value
3397 ### instead of the default.
3399 ### It's not important that this name contain the PID; you can't run
3400 ### two configures in the same directory and have anything work
3402 tempcname
="conftest.c"
3405 #include "'${srcdir}'/src/'${opsysfile}'"
3406 #include "'${srcdir}'/src/'${machfile}'"
3407 #ifndef LIBS_MACHINE
3408 #define LIBS_MACHINE
3413 #ifndef C_SWITCH_SYSTEM
3414 #define C_SWITCH_SYSTEM
3416 #ifndef C_SWITCH_MACHINE
3417 #define C_SWITCH_MACHINE
3419 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3420 configure___ c_switch_system=C_SWITCH_SYSTEM
3421 configure___ c_switch_machine=C_SWITCH_MACHINE
3424 #define LIB_X11_LIB -lX11
3427 #ifndef LIBX11_MACHINE
3428 #define LIBX11_MACHINE
3431 #ifndef LIBX11_SYSTEM
3432 #define LIBX11_SYSTEM
3434 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3437 configure___ unexec=UNEXEC
3439 configure___ unexec=unexec.o
3442 #ifdef SYSTEM_MALLOC
3443 configure___ system_malloc=yes
3445 configure___ system_malloc=no
3448 #ifdef USE_MMAP_FOR_BUFFERS
3449 configure___ use_mmap_for_buffers=yes
3451 configure___ use_mmap_for_buffers=no
3454 #ifndef C_DEBUG_SWITCH
3455 #define C_DEBUG_SWITCH -g
3458 #ifndef C_OPTIMIZE_SWITCH
3460 #define C_OPTIMIZE_SWITCH -O2
3462 #define C_OPTIMIZE_SWITCH -O
3466 #ifndef LD_SWITCH_MACHINE
3467 #define LD_SWITCH_MACHINE
3470 #ifndef LD_SWITCH_SYSTEM
3471 #define LD_SWITCH_SYSTEM
3474 #ifndef LD_SWITCH_X_SITE_AUX
3475 #define LD_SWITCH_X_SITE_AUX
3478 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3479 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3481 #ifdef THIS_IS_CONFIGURE
3483 /* Get the CFLAGS for tests in configure. */
3485 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3487 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3490 #else /* not THIS_IS_CONFIGURE */
3492 /* Get the CFLAGS for real compilation. */
3494 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3496 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3499 #endif /* not THIS_IS_CONFIGURE */
3502 # The value of CPP is a quoted variable reference, so we need to do this
3503 # to get its actual value...
3504 CPP
=`eval "echo $CPP"`
3505 eval `${CPP} -Isrc ${tempcname} \
3506 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3507 if test "x$SPECIFIED_CFLAGS" = x
; then
3508 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3509 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3511 REAL_CFLAGS
="$CFLAGS"
3515 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3517 ### Make sure subsequent tests use flags consistent with the build flags.
3519 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3520 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3522 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3525 # Check whether --enable-largefile or --disable-largefile was given.
3526 if test "${enable_largefile+set}" = set; then
3527 enableval
="$enable_largefile"
3530 if test "$enable_largefile" != no
; then
3532 echo "$as_me:3532: checking for special C compiler options needed for large files" >&5
3533 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3534 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 ac_cv_sys_largefile_CC
=no
3538 if test "$GCC" != yes; then
3541 # IRIX 6.2 and later do not support large files by default,
3542 # so use the C compiler's -n32 option if that helps.
3543 cat >conftest.
$ac_ext <<_ACEOF
3544 #line 3544 "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3547 /* Check that off_t can represent 2**63 - 1 correctly.
3548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3549 since some C++ compilers masquerading as C compilers
3550 incorrectly reject 9223372036854775807. */
3551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3553 && LARGE_OFF_T % 2147483647 == 1)
3563 rm -f conftest.
$ac_objext
3564 if { (eval echo "$as_me:3564: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>&5
3567 echo "$as_me:3567: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try
='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:3570: \"$ac_try\"") >&5
3573 echo "$as_me:3573: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
3577 echo "$as_me: failed program was:" >&5
3578 cat conftest.
$ac_ext >&5
3580 rm -f conftest.
$ac_objext
3582 rm -f conftest.
$ac_objext
3583 if { (eval echo "$as_me:3583: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>&5
3586 echo "$as_me:3586: \$? = $ac_status" >&5
3587 (exit $ac_status); } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:3589: \"$ac_try\"") >&5
3592 echo "$as_me:3592: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_sys_largefile_CC
=' -n32'; break
3596 echo "$as_me: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 rm -f conftest.
$ac_objext
3603 rm -f conftest.
$ac_ext
3606 echo "$as_me:3606: result: $ac_cv_sys_largefile_CC" >&5
3607 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3608 if test "$ac_cv_sys_largefile_CC" != no
; then
3609 CC
=$CC$ac_cv_sys_largefile_CC
3612 echo "$as_me:3612: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3613 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3614 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_cv_sys_file_offset_bits
=no
3619 cat >conftest.
$ac_ext <<_ACEOF
3620 #line 3620 "configure"
3621 #include "confdefs.h"
3622 #include <sys/types.h>
3623 /* Check that off_t can represent 2**63 - 1 correctly.
3624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3625 since some C++ compilers masquerading as C compilers
3626 incorrectly reject 9223372036854775807. */
3627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3629 && LARGE_OFF_T % 2147483647 == 1)
3639 rm -f conftest.
$ac_objext
3640 if { (eval echo "$as_me:3640: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>&5
3643 echo "$as_me:3643: \$? = $ac_status" >&5
3644 (exit $ac_status); } &&
3645 { ac_try
='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:3646: \"$ac_try\"") >&5
3649 echo "$as_me:3649: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3653 echo "$as_me: failed program was:" >&5
3654 cat conftest.
$ac_ext >&5
3656 rm -f conftest.
$ac_objext conftest.
$ac_ext
3657 cat >conftest.
$ac_ext <<_ACEOF
3658 #line 3658 "configure"
3659 #include "confdefs.h"
3660 #define _FILE_OFFSET_BITS 64
3661 #include <sys/types.h>
3662 /* Check that off_t can represent 2**63 - 1 correctly.
3663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3664 since some C++ compilers masquerading as C compilers
3665 incorrectly reject 9223372036854775807. */
3666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3668 && LARGE_OFF_T % 2147483647 == 1)
3678 rm -f conftest.
$ac_objext
3679 if { (eval echo "$as_me:3679: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:3682: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try
='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:3685: \"$ac_try\"") >&5
3688 echo "$as_me:3688: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 ac_cv_sys_file_offset_bits
=64; break
3692 echo "$as_me: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 rm -f conftest.
$ac_objext conftest.
$ac_ext
3699 echo "$as_me:3699: result: $ac_cv_sys_file_offset_bits" >&5
3700 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3701 if test "$ac_cv_sys_file_offset_bits" != no
; then
3703 cat >>confdefs.h
<<EOF
3704 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3709 echo "$as_me:3709: checking for _LARGE_FILES value needed for large files" >&5
3710 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3711 if test "${ac_cv_sys_large_files+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_cv_sys_large_files
=no
3716 cat >conftest.
$ac_ext <<_ACEOF
3717 #line 3717 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3720 /* Check that off_t can represent 2**63 - 1 correctly.
3721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3722 since some C++ compilers masquerading as C compilers
3723 incorrectly reject 9223372036854775807. */
3724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3726 && LARGE_OFF_T % 2147483647 == 1)
3736 rm -f conftest.
$ac_objext
3737 if { (eval echo "$as_me:3737: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try
='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.
$ac_ext >&5
3753 rm -f conftest.
$ac_objext conftest.
$ac_ext
3754 cat >conftest.
$ac_ext <<_ACEOF
3755 #line 3755 "configure"
3756 #include "confdefs.h"
3757 #define _LARGE_FILES 1
3758 #include <sys/types.h>
3759 /* Check that off_t can represent 2**63 - 1 correctly.
3760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3761 since some C++ compilers masquerading as C compilers
3762 incorrectly reject 9223372036854775807. */
3763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3765 && LARGE_OFF_T % 2147483647 == 1)
3775 rm -f conftest.
$ac_objext
3776 if { (eval echo "$as_me:3776: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>&5
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try
='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:3782: \"$ac_try\"") >&5
3785 echo "$as_me:3785: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_sys_large_files
=1; break
3789 echo "$as_me: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 rm -f conftest.
$ac_objext conftest.
$ac_ext
3796 echo "$as_me:3796: result: $ac_cv_sys_large_files" >&5
3797 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3798 if test "$ac_cv_sys_large_files" != no
; then
3800 cat >>confdefs.h
<<EOF
3801 #define _LARGE_FILES $ac_cv_sys_large_files
3808 # Sound support for GNU/Linux and the free BSDs.
3810 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3813 echo "$as_me:3813: checking for $ac_header" >&5
3814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 cat >conftest.
$ac_ext <<_ACEOF
3819 #line 3819 "configure"
3820 #include "confdefs.h"
3821 #include <$ac_header>
3823 if { (eval echo "$as_me:3823: \"$ac_cpp conftest.$ac_ext\"") >&5
3824 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3826 egrep -v '^ *\+' conftest.er1
>conftest.err
3828 cat conftest.err
>&5
3829 echo "$as_me:3829: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev
/null
; then
3831 if test -s conftest.err
; then
3832 ac_cpp_err
=$ac_c_preproc_warn_flag
3839 if test -z "$ac_cpp_err"; then
3840 eval "$as_ac_Header=yes"
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.
$ac_ext >&5
3844 eval "$as_ac_Header=no"
3846 rm -f conftest.err conftest.
$ac_ext
3848 echo "$as_me:3848: result: `eval echo '${'$as_ac_Header'}'`" >&5
3849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3851 cat >>confdefs.h
<<EOF
3852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3858 # Emulation library used on NetBSD.
3859 echo "$as_me:3859: checking for _oss_ioctl in -lossaudio" >&5
3860 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3861 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 ac_check_lib_save_LIBS
=$LIBS
3865 LIBS
="-lossaudio $LIBS"
3866 cat >conftest.
$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3885 rm -f conftest.
$ac_objext conftest
$ac_exeext
3886 if { (eval echo "$as_me:3886: \"$ac_link\"") >&5
3887 (eval $ac_link) 2>&5
3889 echo "$as_me:3889: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try
='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:3892: \"$ac_try\"") >&5
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 ac_cv_lib_ossaudio__oss_ioctl
=yes
3899 echo "$as_me: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3901 ac_cv_lib_ossaudio__oss_ioctl
=no
3903 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3904 LIBS
=$ac_check_lib_save_LIBS
3906 echo "$as_me:3906: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3907 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3908 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3914 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3915 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3916 termcap.h stdio_ext.h fcntl.h term.h
strings.h
3918 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3919 echo "$as_me:3919: checking for $ac_header" >&5
3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 cat >conftest.
$ac_ext <<_ACEOF
3925 #line 3925 "configure"
3926 #include "confdefs.h"
3927 #include <$ac_header>
3929 if { (eval echo "$as_me:3929: \"$ac_cpp conftest.$ac_ext\"") >&5
3930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3932 egrep -v '^ *\+' conftest.er1
>conftest.err
3934 cat conftest.err
>&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev
/null
; then
3937 if test -s conftest.err
; then
3938 ac_cpp_err
=$ac_c_preproc_warn_flag
3945 if test -z "$ac_cpp_err"; then
3946 eval "$as_ac_Header=yes"
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.
$ac_ext >&5
3950 eval "$as_ac_Header=no"
3952 rm -f conftest.err conftest.
$ac_ext
3954 echo "$as_me:3954: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3957 cat >>confdefs.h
<<EOF
3958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3964 echo "$as_me:3964: checking for ANSI C header files" >&5
3965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3966 if test "${ac_cv_header_stdc+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 cat >conftest.
$ac_ext <<_ACEOF
3970 #line 3970 "configure"
3971 #include "confdefs.h"
3978 if { (eval echo "$as_me:3978: \"$ac_cpp conftest.$ac_ext\"") >&5
3979 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3981 egrep -v '^ *\+' conftest.er1
>conftest.err
3983 cat conftest.err
>&5
3984 echo "$as_me:3984: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev
/null
; then
3986 if test -s conftest.err
; then
3987 ac_cpp_err
=$ac_c_preproc_warn_flag
3994 if test -z "$ac_cpp_err"; then
3995 ac_cv_header_stdc
=yes
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.
$ac_ext >&5
3999 ac_cv_header_stdc
=no
4001 rm -f conftest.err conftest.
$ac_ext
4003 if test $ac_cv_header_stdc = yes; then
4004 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4005 cat >conftest.
$ac_ext <<_ACEOF
4006 #line 4006 "configure"
4007 #include "confdefs.h"
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 egrep "memchr" >/dev
/null
2>&1; then
4015 ac_cv_header_stdc
=no
4021 if test $ac_cv_header_stdc = yes; then
4022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4023 cat >conftest.
$ac_ext <<_ACEOF
4024 #line 4024 "configure"
4025 #include "confdefs.h"
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 egrep "free" >/dev
/null
2>&1; then
4033 ac_cv_header_stdc
=no
4039 if test $ac_cv_header_stdc = yes; then
4040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4041 if test "$cross_compiling" = yes; then
4044 cat >conftest.
$ac_ext <<_ACEOF
4045 #line 4045 "configure"
4046 #include "confdefs.h"
4048 #if ((' ' & 0x0FF) == 0x020)
4049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4052 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4053 || ('j' <= (c) && (c) <= 'r') \
4054 || ('s' <= (c) && (c) <= 'z'))
4055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063 for (i = 0; i < 256; i++)
4064 if (XOR (islower (i), ISLOWER (i))
4065 || toupper (i) != TOUPPER (i))
4070 rm -f conftest
$ac_exeext
4071 if { (eval echo "$as_me:4071: \"$ac_link\"") >&5
4072 (eval $ac_link) 2>&5
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4076 { (eval echo "$as_me:4076: \"$ac_try\"") >&5
4079 echo "$as_me:4079: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4083 echo "$as_me: program exited with status $ac_status" >&5
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4086 ac_cv_header_stdc
=no
4088 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4092 echo "$as_me:4092: result: $ac_cv_header_stdc" >&5
4093 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4094 if test $ac_cv_header_stdc = yes; then
4096 cat >>confdefs.h
<<\EOF
4097 #define STDC_HEADERS 1
4102 echo "$as_me:4102: checking whether time.h and sys/time.h may both be included" >&5
4103 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4104 if test "${ac_cv_header_time+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 cat >conftest.
$ac_ext <<_ACEOF
4108 #line 4108 "configure"
4109 #include "confdefs.h"
4110 #include <sys/types.h>
4111 #include <sys/time.h>
4117 if ((struct tm *) 0)
4123 rm -f conftest.
$ac_objext
4124 if { (eval echo "$as_me:4124: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>&5
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try
='test -s conftest.$ac_objext'
4130 { (eval echo "$as_me:4130: \"$ac_try\"") >&5
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 ac_cv_header_time
=yes
4137 echo "$as_me: failed program was:" >&5
4138 cat conftest.
$ac_ext >&5
4139 ac_cv_header_time
=no
4141 rm -f conftest.
$ac_objext conftest.
$ac_ext
4143 echo "$as_me:4143: result: $ac_cv_header_time" >&5
4144 echo "${ECHO_T}$ac_cv_header_time" >&6
4145 if test $ac_cv_header_time = yes; then
4147 cat >>confdefs.h
<<\EOF
4148 #define TIME_WITH_SYS_TIME 1
4153 echo "$as_me:4153: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4154 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4155 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 cat >conftest.
$ac_ext <<_ACEOF
4159 #line 4159 "configure"
4160 #include "confdefs.h"
4161 #include <sys/types.h>
4163 /* NetBSD declares sys_siglist in unistd.h. */
4165 # include <unistd.h>
4171 char *msg = *(sys_siglist + 1);
4176 rm -f conftest.
$ac_objext
4177 if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5
4178 (eval $ac_compile) 2>&5
4180 echo "$as_me:4180: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try
='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:4183: \"$ac_try\"") >&5
4186 echo "$as_me:4186: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_decl_sys_siglist
=yes
4190 echo "$as_me: failed program was:" >&5
4191 cat conftest.
$ac_ext >&5
4192 ac_cv_decl_sys_siglist
=no
4194 rm -f conftest.
$ac_objext conftest.
$ac_ext
4196 echo "$as_me:4196: result: $ac_cv_decl_sys_siglist" >&5
4197 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4198 if test $ac_cv_decl_sys_siglist = yes; then
4200 cat >>confdefs.h
<<\EOF
4201 #define SYS_SIGLIST_DECLARED 1
4206 echo "$as_me:4206: checking for sys/wait.h that is POSIX.1 compatible" >&5
4207 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4208 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 cat >conftest.
$ac_ext <<_ACEOF
4212 #line 4212 "configure"
4213 #include "confdefs.h"
4214 #include <sys/types.h>
4215 #include <sys/wait.h>
4217 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4220 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4228 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4233 rm -f conftest.
$ac_objext
4234 if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try
='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:4240: \"$ac_try\"") >&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_header_sys_wait_h
=yes
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.
$ac_ext >&5
4249 ac_cv_header_sys_wait_h
=no
4251 rm -f conftest.
$ac_objext conftest.
$ac_ext
4253 echo "$as_me:4253: result: $ac_cv_header_sys_wait_h" >&5
4254 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4255 if test $ac_cv_header_sys_wait_h = yes; then
4257 cat >>confdefs.h
<<\EOF
4258 #define HAVE_SYS_WAIT_H 1
4263 echo "$as_me:4263: checking for struct utimbuf" >&5
4264 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4265 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.
$ac_ext <<_ACEOF
4269 #line 4269 "configure"
4270 #include "confdefs.h"
4271 #ifdef TIME_WITH_SYS_TIME
4272 #include <sys/time.h>
4275 #ifdef HAVE_SYS_TIME_H
4276 #include <sys/time.h>
4287 static struct utimbuf x; x.actime = x.modtime;
4292 rm -f conftest.
$ac_objext
4293 if { (eval echo "$as_me:4293: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4296 echo "$as_me:4296: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try
='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:4299: \"$ac_try\"") >&5
4302 echo "$as_me:4302: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 emacs_cv_struct_utimbuf
=yes
4306 echo "$as_me: failed program was:" >&5
4307 cat conftest.
$ac_ext >&5
4308 emacs_cv_struct_utimbuf
=no
4310 rm -f conftest.
$ac_objext conftest.
$ac_ext
4312 echo "$as_me:4312: result: $emacs_cv_struct_utimbuf" >&5
4313 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4314 if test $emacs_cv_struct_utimbuf = yes; then
4315 cat >>confdefs.h
<<\EOF
4316 #define HAVE_STRUCT_UTIMBUF 1
4321 echo "$as_me:4321: checking return type of signal handlers" >&5
4322 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4323 if test "${ac_cv_type_signal+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 cat >conftest.
$ac_ext <<_ACEOF
4327 #line 4327 "configure"
4328 #include "confdefs.h"
4329 #include <sys/types.h>
4335 extern "C" void (*signal (int, void (*)(int)))(int);
4337 void (*signal ()) ();
4348 rm -f conftest.
$ac_objext
4349 if { (eval echo "$as_me:4349: \"$ac_compile\"") >&5
4350 (eval $ac_compile) 2>&5
4352 echo "$as_me:4352: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try
='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:4355: \"$ac_try\"") >&5
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_type_signal
=void
4362 echo "$as_me: failed program was:" >&5
4363 cat conftest.
$ac_ext >&5
4364 ac_cv_type_signal
=int
4366 rm -f conftest.
$ac_objext conftest.
$ac_ext
4368 echo "$as_me:4368: result: $ac_cv_type_signal" >&5
4369 echo "${ECHO_T}$ac_cv_type_signal" >&6
4371 cat >>confdefs.h
<<EOF
4372 #define RETSIGTYPE $ac_cv_type_signal
4375 echo "$as_me:4375: checking for speed_t" >&5
4376 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4377 if test "${emacs_cv_speed_t+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 cat >conftest.
$ac_ext <<_ACEOF
4381 #line 4381 "configure"
4382 #include "confdefs.h"
4383 #include <termios.h>
4392 rm -f conftest.
$ac_objext
4393 if { (eval echo "$as_me:4393: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try
='test -s conftest.$ac_objext'
4399 { (eval echo "$as_me:4399: \"$ac_try\"") >&5
4402 echo "$as_me:4402: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4404 emacs_cv_speed_t
=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4410 rm -f conftest.
$ac_objext conftest.
$ac_ext
4412 echo "$as_me:4412: result: $emacs_cv_speed_t" >&5
4413 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4414 if test $emacs_cv_speed_t = yes; then
4415 cat >>confdefs.h
<<\EOF
4416 #define HAVE_SPEED_T 1
4421 echo "$as_me:4421: checking for struct timeval" >&5
4422 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4423 if test "${emacs_cv_struct_timeval+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 cat >conftest.
$ac_ext <<_ACEOF
4427 #line 4427 "configure"
4428 #include "confdefs.h"
4429 #ifdef TIME_WITH_SYS_TIME
4430 #include <sys/time.h>
4433 #ifdef HAVE_SYS_TIME_H
4434 #include <sys/time.h>
4442 static struct timeval x; x.tv_sec = x.tv_usec;
4447 rm -f conftest.
$ac_objext
4448 if { (eval echo "$as_me:4448: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4451 echo "$as_me:4451: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try
='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:4454: \"$ac_try\"") >&5
4457 echo "$as_me:4457: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 emacs_cv_struct_timeval
=yes
4461 echo "$as_me: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4463 emacs_cv_struct_timeval
=no
4465 rm -f conftest.
$ac_objext conftest.
$ac_ext
4467 echo "$as_me:4467: result: $emacs_cv_struct_timeval" >&5
4468 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4469 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4470 if test $emacs_cv_struct_timeval = yes; then
4471 cat >>confdefs.h
<<\EOF
4472 #define HAVE_TIMEVAL 1
4477 echo "$as_me:4477: checking for struct exception" >&5
4478 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4479 if test "${emacs_cv_struct_exception+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 cat >conftest.
$ac_ext <<_ACEOF
4483 #line 4483 "configure"
4484 #include "confdefs.h"
4489 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4494 rm -f conftest.
$ac_objext
4495 if { (eval echo "$as_me:4495: \"$ac_compile\"") >&5
4496 (eval $ac_compile) 2>&5
4498 echo "$as_me:4498: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try
='test -s conftest.$ac_objext'
4501 { (eval echo "$as_me:4501: \"$ac_try\"") >&5
4504 echo "$as_me:4504: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 emacs_cv_struct_exception
=yes
4508 echo "$as_me: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4510 emacs_cv_struct_exception
=no
4512 rm -f conftest.
$ac_objext conftest.
$ac_ext
4514 echo "$as_me:4514: result: $emacs_cv_struct_exception" >&5
4515 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4516 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4517 if test $emacs_cv_struct_exception != yes; then
4518 cat >>confdefs.h
<<\EOF
4519 #define NO_MATHERR 1
4524 echo "$as_me:4524: checking whether struct tm is in sys/time.h or time.h" >&5
4525 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4526 if test "${ac_cv_struct_tm+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.
$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4532 #include <sys/types.h>
4538 struct tm *tp; tp->tm_sec;
4543 rm -f conftest.
$ac_objext
4544 if { (eval echo "$as_me:4544: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4547 echo "$as_me:4547: \$? = $ac_status" >&5
4548 (exit $ac_status); } &&
4549 { ac_try
='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:4550: \"$ac_try\"") >&5
4553 echo "$as_me:4553: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 ac_cv_struct_tm
=time.h
4557 echo "$as_me: failed program was:" >&5
4558 cat conftest.
$ac_ext >&5
4559 ac_cv_struct_tm
=sys
/time.h
4561 rm -f conftest.
$ac_objext conftest.
$ac_ext
4563 echo "$as_me:4563: result: $ac_cv_struct_tm" >&5
4564 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4565 if test $ac_cv_struct_tm = sys
/time.h
; then
4567 cat >>confdefs.h
<<\EOF
4568 #define TM_IN_SYS_TIME 1
4573 echo "$as_me:4573: checking for struct tm.tm_zone" >&5
4574 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4575 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 cat >conftest.
$ac_ext <<_ACEOF
4579 #line 4579 "configure"
4580 #include "confdefs.h"
4581 #include <sys/types.h>
4582 #include <$ac_cv_struct_tm>
4587 static struct tm ac_aggr;
4588 if (ac_aggr.tm_zone)
4594 rm -f conftest.
$ac_objext
4595 if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try
='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_member_struct_tm_tm_zone
=yes
4608 echo "$as_me: failed program was:" >&5
4609 cat conftest.
$ac_ext >&5
4610 ac_cv_member_struct_tm_tm_zone
=no
4612 rm -f conftest.
$ac_objext conftest.
$ac_ext
4614 echo "$as_me:4614: result: $ac_cv_member_struct_tm_tm_zone" >&5
4615 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4616 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4618 cat >>confdefs.h
<<EOF
4619 #define HAVE_STRUCT_TM_TM_ZONE 1
4624 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4626 cat >>confdefs.h
<<\EOF
4627 #define HAVE_TM_ZONE 1
4631 echo "$as_me:4631: checking for tzname" >&5
4632 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4633 if test "${ac_cv_var_tzname+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 cat >conftest.
$ac_ext <<_ACEOF
4637 #line 4637 "configure"
4638 #include "confdefs.h"
4640 #ifndef tzname /* For SGI. */
4641 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4652 rm -f conftest.
$ac_objext conftest
$ac_exeext
4653 if { (eval echo "$as_me:4653: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4656 echo "$as_me:4656: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try
='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:4659: \"$ac_try\"") >&5
4662 echo "$as_me:4662: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_cv_var_tzname
=yes
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4672 echo "$as_me:4672: result: $ac_cv_var_tzname" >&5
4673 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4674 if test $ac_cv_var_tzname = yes; then
4676 cat >>confdefs.h
<<\EOF
4677 #define HAVE_TZNAME 1
4683 echo "$as_me:4683: checking for tm_gmtoff in struct tm" >&5
4684 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4685 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 cat >conftest.
$ac_ext <<_ACEOF
4689 #line 4689 "configure"
4690 #include "confdefs.h"
4695 struct tm t; t.tm_gmtoff = 0
4700 rm -f conftest.
$ac_objext conftest
$ac_exeext
4701 if { (eval echo "$as_me:4701: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4704 echo "$as_me:4704: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try
='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:4707: \"$ac_try\"") >&5
4710 echo "$as_me:4710: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 emacs_cv_tm_gmtoff
=yes
4714 echo "$as_me: failed program was:" >&5
4715 cat conftest.
$ac_ext >&5
4716 emacs_cv_tm_gmtoff
=no
4718 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4720 echo "$as_me:4720: result: $emacs_cv_tm_gmtoff" >&5
4721 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4722 if test $emacs_cv_tm_gmtoff = yes; then
4723 cat >>confdefs.h
<<\EOF
4724 #define HAVE_TM_GMTOFF 1
4729 echo "$as_me:4729: checking for $CC option to accept ANSI C" >&5
4730 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4731 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 ac_cv_prog_cc_stdc
=no
4736 cat >conftest.
$ac_ext <<_ACEOF
4737 #line 4737 "configure"
4738 #include "confdefs.h"
4741 #include <sys/types.h>
4742 #include <sys/stat.h>
4743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4744 struct buf { int x; };
4745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4746 static char *e (p, i)
4752 static char *f (char * (*g) (char **, int), char **p, ...)
4757 s = g (p, va_arg (v,int));
4761 int test (int i, double x);
4762 struct s1 {int (*f) (int a);};
4763 struct s2 {int (*f) (double a);};
4764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4775 # Don't try gcc -ansi; that turns off useful extensions and
4776 # breaks some systems' header files.
4777 # AIX -qlanglvl=ansi
4778 # Ultrix and OSF/1 -std1
4779 # HP-UX 10.20 and later -Ae
4780 # HP-UX older versions -Aa -D_HPUX_SOURCE
4781 # SVR4 -Xc -D__EXTENSIONS__
4782 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4784 CC
="$ac_save_CC $ac_arg"
4785 rm -f conftest.
$ac_objext
4786 if { (eval echo "$as_me:4786: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4789 echo "$as_me:4789: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try
='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:4792: \"$ac_try\"") >&5
4795 echo "$as_me:4795: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_prog_cc_stdc
=$ac_arg
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4803 rm -f conftest.
$ac_objext
4805 rm -f conftest.
$ac_ext conftest.
$ac_objext
4810 case "x$ac_cv_prog_cc_stdc" in
4812 echo "$as_me:4812: result: none needed" >&5
4813 echo "${ECHO_T}none needed" >&6 ;;
4815 echo "$as_me:4815: result: $ac_cv_prog_cc_stdc" >&5
4816 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4817 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4820 echo "$as_me:4820: checking for function prototypes" >&5
4821 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4822 if test "$ac_cv_prog_cc_stdc" != no
; then
4823 echo "$as_me:4823: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6
4826 cat >>confdefs.h
<<\EOF
4827 #define PROTOTYPES 1
4831 echo "$as_me:4831: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4835 echo "$as_me:4835: checking for working volatile" >&5
4836 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4837 if test "${ac_cv_c_volatile+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 cat >conftest.
$ac_ext <<_ACEOF
4841 #line 4841 "configure"
4842 #include "confdefs.h"
4854 rm -f conftest.
$ac_objext
4855 if { (eval echo "$as_me:4855: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:4861: \"$ac_try\"") >&5
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_c_volatile
=yes
4868 echo "$as_me: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4872 rm -f conftest.
$ac_objext conftest.
$ac_ext
4874 echo "$as_me:4874: result: $ac_cv_c_volatile" >&5
4875 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4876 if test $ac_cv_c_volatile = no
; then
4878 cat >>confdefs.h
<<\EOF
4884 echo "$as_me:4884: checking for an ANSI C-conforming const" >&5
4885 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4886 if test "${ac_cv_c_const+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 cat >conftest.
$ac_ext <<_ACEOF
4890 #line 4890 "configure"
4891 #include "confdefs.h"
4896 /* FIXME: Include the comments suggested by Paul. */
4898 /* Ultrix mips cc rejects this. */
4899 typedef int charset[2];
4901 /* SunOS 4.1.1 cc rejects this. */
4902 char const *const *ccp;
4904 /* NEC SVR4.0.2 mips cc rejects this. */
4905 struct point {int x, y;};
4906 static struct point const zero = {0,0};
4907 /* AIX XL C 1.02.0.0 rejects this.
4908 It does not let you subtract one const X* pointer from another in
4909 an arm of an if-expression whose if-part is not a constant
4911 const char *g = "string";
4912 ccp = &g + (g ? g-g : 0);
4913 /* HPUX 7.0 cc rejects these. */
4916 ccp = (char const *const *) p;
4917 { /* SCO 3.2v4 cc rejects this. */
4919 char const *s = 0 ? (char *) 0 : (char const *) 0;
4923 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4925 const int *foo = &x[0];
4928 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4929 typedef const int *iptr;
4933 { /* AIX XL C 1.02.0.0 rejects this saying
4934 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4935 struct s { int j; const int *ap[3]; };
4936 struct s *b; b->j = 5;
4938 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4947 rm -f conftest.
$ac_objext
4948 if { (eval echo "$as_me:4948: \"$ac_compile\"") >&5
4949 (eval $ac_compile) 2>&5
4951 echo "$as_me:4951: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try
='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:4954: \"$ac_try\"") >&5
4957 echo "$as_me:4957: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4961 echo "$as_me: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4965 rm -f conftest.
$ac_objext conftest.
$ac_ext
4967 echo "$as_me:4967: result: $ac_cv_c_const" >&5
4968 echo "${ECHO_T}$ac_cv_c_const" >&6
4969 if test $ac_cv_c_const = no
; then
4971 cat >>confdefs.h
<<\EOF
4977 echo "$as_me:4977: checking for void * support" >&5
4978 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
4979 if test "${emacs_cv_void_star+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 cat >conftest.
$ac_ext <<_ACEOF
4983 #line 4983 "configure"
4984 #include "confdefs.h"
4994 rm -f conftest.
$ac_objext
4995 if { (eval echo "$as_me:4995: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>&5
4998 echo "$as_me:4998: \$? = $ac_status" >&5
4999 (exit $ac_status); } &&
5000 { ac_try
='test -s conftest.$ac_objext'
5001 { (eval echo "$as_me:5001: \"$ac_try\"") >&5
5004 echo "$as_me:5004: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 emacs_cv_void_star
=yes
5008 echo "$as_me: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5010 emacs_cv_void_star
=no
5012 rm -f conftest.
$ac_objext conftest.
$ac_ext
5014 echo "$as_me:5014: result: $emacs_cv_void_star" >&5
5015 echo "${ECHO_T}$emacs_cv_void_star" >&6
5016 if test $emacs_cv_void_star = yes; then
5017 cat >>confdefs.h
<<\EOF
5018 #define POINTER_TYPE void
5022 cat >>confdefs.h
<<\EOF
5023 #define POINTER_TYPE char
5028 echo "$as_me:5028: checking whether ${MAKE-make} sets \${MAKE}" >&5
5029 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5030 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5031 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 cat >conftest.
make <<\EOF
5036 @
echo 'ac_maketemp="${MAKE}"'
5038 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5039 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5040 if test -n "$ac_maketemp"; then
5041 eval ac_cv_prog_make_
${ac_make}_set
=yes
5043 eval ac_cv_prog_make_
${ac_make}_set
=no
5047 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5048 echo "$as_me:5048: result: yes" >&5
5049 echo "${ECHO_T}yes" >&6
5052 echo "$as_me:5052: result: no" >&5
5053 echo "${ECHO_T}no" >&6
5054 SET_MAKE
="MAKE=${MAKE-make}"
5057 echo "$as_me:5057: checking for long file names" >&5
5058 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5059 if test "${ac_cv_sys_long_file_names+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 ac_cv_sys_long_file_names
=yes
5063 # Test for long file names in all the places we know might matter:
5064 # . the current directory, where building will happen
5065 # $prefix/lib where we will be installing things
5066 # $exec_prefix/lib likewise
5067 # eval it to expand exec_prefix.
5068 # $TMPDIR if set, where it might want to write temporary files
5069 # if $TMPDIR is not set:
5070 # /tmp where it might want to write temporary files
5073 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5076 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5078 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5079 test -d $ac_dir ||
continue
5080 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5081 ac_xdir
=$ac_dir/cf$$
5082 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5083 ac_tf1
=$ac_xdir/conftest9012345
5084 ac_tf2
=$ac_xdir/conftest9012346
5085 (echo 1 >$ac_tf1) 2>/dev
/null
5086 (echo 2 >$ac_tf2) 2>/dev
/null
5087 ac_val
=`cat $ac_tf1 2>/dev/null`
5088 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5089 ac_cv_sys_long_file_names
=no
5090 rm -rf $ac_xdir 2>/dev
/null
5093 rm -rf $ac_xdir 2>/dev
/null
5096 echo "$as_me:5096: result: $ac_cv_sys_long_file_names" >&5
5097 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5098 if test $ac_cv_sys_long_file_names = yes; then
5100 cat >>confdefs.h
<<\EOF
5101 #define HAVE_LONG_FILE_NAMES 1
5106 #### Choose a window system.
5108 echo "$as_me:5108: checking for X" >&5
5109 echo $ECHO_N "checking for X... $ECHO_C" >&6
5111 # Check whether --with-x or --without-x was given.
5112 if test "${with_x+set}" = set; then
5116 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5117 if test "x$with_x" = xno
; then
5118 # The user explicitly disabled X.
5121 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5122 # Both variables are already set.
5125 if test "${ac_cv_have_x+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 # One or both of the vars are not set, and there is no cached value.
5129 ac_x_includes
=no ac_x_libraries
=no
5131 if mkdir conftest.dir
; then
5133 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5134 cat >Imakefile
<<'EOF'
5136 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5138 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5139 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5140 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5141 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5142 for ac_extension
in a so sl
; do
5143 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5144 test -f $ac_im_libdir/libX11.
$ac_extension; then
5145 ac_im_usrlibdir
=$ac_im_libdir; break
5148 # Screen out bogus values from the imake configuration. They are
5149 # bogus both because they are the default anyway, and because
5150 # using them would break gcc on systems where it needs fixed includes.
5151 case $ac_im_incroot in
5153 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5155 case $ac_im_usrlibdir in
5157 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5164 # Standard set of common directories for X headers.
5165 # Check X11 before X11Rn because it is often a symlink to the current release.
5177 /usr/local/X11/include
5178 /usr/local/X11R6/include
5179 /usr/local/X11R5/include
5180 /usr/local/X11R4/include
5182 /usr/local/include/X11
5183 /usr/local/include/X11R6
5184 /usr/local/include/X11R5
5185 /usr/local/include/X11R4
5189 /usr/XFree86/include/X11
5193 /usr/unsupported/include
5195 /usr/local/x11r5/include
5196 /usr/lpp/Xamples/include
5198 /usr/openwin/include
5199 /usr/openwin/share/include'
5201 if test "$ac_x_includes" = no
; then
5202 # Guess where to find include files, by looking for Intrinsic.h.
5203 # First, try using that file with no special directory specified.
5204 cat >conftest.
$ac_ext <<_ACEOF
5205 #line 5205 "configure"
5206 #include "confdefs.h"
5207 #include <X11/Intrinsic.h>
5209 if { (eval echo "$as_me:5209: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5212 egrep -v '^ *\+' conftest.er1
>conftest.err
5214 cat conftest.err
>&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev
/null
; then
5217 if test -s conftest.err
; then
5218 ac_cpp_err
=$ac_c_preproc_warn_flag
5225 if test -z "$ac_cpp_err"; then
5226 # We can compile using X headers with no special include directory.
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5231 for ac_dir
in $ac_x_header_dirs; do
5232 if test -r "$ac_dir/X11/Intrinsic.h"; then
5233 ac_x_includes
=$ac_dir
5238 rm -f conftest.err conftest.
$ac_ext
5239 fi # $ac_x_includes = no
5241 if test "$ac_x_libraries" = no
; then
5242 # Check for the libraries.
5243 # See if we find them without any special options.
5244 # Don't add to $LIBS permanently.
5247 cat >conftest.
$ac_ext <<_ACEOF
5248 #line 5248 "configure"
5249 #include "confdefs.h"
5250 #include <X11/Intrinsic.h>
5259 rm -f conftest.
$ac_objext conftest
$ac_exeext
5260 if { (eval echo "$as_me:5260: \"$ac_link\"") >&5
5261 (eval $ac_link) 2>&5
5263 echo "$as_me:5263: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try
='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:5266: \"$ac_try\"") >&5
5269 echo "$as_me:5269: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5272 # We can link X programs with no special library path.
5275 echo "$as_me: failed program was:" >&5
5276 cat conftest.
$ac_ext >&5
5278 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5280 # Don't even attempt the hair of trying to link an X program!
5281 for ac_extension
in a so sl
; do
5282 if test -r $ac_dir/libXt.
$ac_extension; then
5283 ac_x_libraries
=$ac_dir
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5290 fi # $ac_x_libraries = no
5292 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5293 # Didn't find X anywhere. Cache the known absence of X.
5294 ac_cv_have_x
="have_x=no"
5296 # Record where we found X for the cache.
5297 ac_cv_have_x
="have_x=yes \
5298 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5303 eval "$ac_cv_have_x"
5306 if test "$have_x" != yes; then
5307 echo "$as_me:5307: result: $have_x" >&5
5308 echo "${ECHO_T}$have_x" >&6
5311 # If each of the values was on the command line, it overrides each guess.
5312 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5313 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5314 # Update the cache value to reflect the command line values.
5315 ac_cv_have_x
="have_x=yes \
5316 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5317 echo "$as_me:5317: result: libraries $x_libraries, headers $x_includes" >&5
5318 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5321 if test "$no_x" = yes; then
5327 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5328 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5329 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5330 x_default_search_path
=""
5331 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5333 ${x_library}/X11/%L/%T/%N%C%S:\
5334 ${x_library}/X11/%l/%T/%N%C%S:\
5335 ${x_library}/X11/%T/%N%C%S:\
5336 ${x_library}/X11/%L/%T/%N%S:\
5337 ${x_library}/X11/%l/%T/%N%S:\
5338 ${x_library}/X11/%T/%N%S"
5339 if test x
"${x_default_search_path}" = x
; then
5340 x_default_search_path
=${x_search_path}
5342 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5346 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5347 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5350 if test x
"${x_includes}" = x
; then
5351 bitmapdir
=/usr
/include
/X11
/bitmaps
5353 # accumulate include directories that have X11 bitmap subdirectories
5355 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5356 if test -d "${bmd}/X11/bitmaps"; then
5357 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5359 if test -d "${bmd}/bitmaps"; then
5360 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5363 if test ${bmd_acc} != "dummyval"; then
5364 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5368 case "${window_system}" in
5372 case "${with_x_toolkit}" in
5373 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5374 motif
) USE_X_TOOLKIT
=MOTIF
;;
5375 no
) USE_X_TOOLKIT
=none
;;
5376 * ) USE_X_TOOLKIT
=maybe
;;
5386 ### If we're using X11, we should use the X menu package.
5389 yes ) HAVE_MENUS
=yes ;;
5392 if test "${opsys}" = "hpux9"; then
5393 case "${x_libraries}" in
5395 opsysfile
="s/hpux9-x11r4.h"
5400 if test "${opsys}" = "hpux9shr"; then
5401 case "${x_libraries}" in
5403 opsysfile
="s/hpux9shxr4.h"
5408 ### Compute the unexec source name from the object name.
5409 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5411 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5412 # Assume not, until told otherwise.
5415 echo "$as_me:5415: checking for malloc_get_state" >&5
5416 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5417 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 cat >conftest.
$ac_ext <<_ACEOF
5421 #line 5421 "configure"
5422 #include "confdefs.h"
5423 /* System header to define __stub macros and hopefully few prototypes,
5424 which can conflict with char malloc_get_state (); below. */
5426 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5432 char malloc_get_state ();
5438 /* The GNU C library defines this for functions which it implements
5439 to always fail with ENOSYS. Some functions are actually named
5440 something starting with __ and the normal name is an alias. */
5441 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5444 f = malloc_get_state;
5451 rm -f conftest.
$ac_objext conftest
$ac_exeext
5452 if { (eval echo "$as_me:5452: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>&5
5455 echo "$as_me:5455: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try
='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:5458: \"$ac_try\"") >&5
5461 echo "$as_me:5461: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_func_malloc_get_state
=yes
5465 echo "$as_me: failed program was:" >&5
5466 cat conftest.
$ac_ext >&5
5467 ac_cv_func_malloc_get_state
=no
5469 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5471 echo "$as_me:5471: result: $ac_cv_func_malloc_get_state" >&5
5472 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5473 if test $ac_cv_func_malloc_get_state = yes; then
5479 echo "$as_me:5479: checking for malloc_set_state" >&5
5480 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5481 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 cat >conftest.
$ac_ext <<_ACEOF
5485 #line 5485 "configure"
5486 #include "confdefs.h"
5487 /* System header to define __stub macros and hopefully few prototypes,
5488 which can conflict with char malloc_set_state (); below. */
5490 /* Override any gcc2 internal prototype to avoid an error. */
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5496 char malloc_set_state ();
5502 /* The GNU C library defines this for functions which it implements
5503 to always fail with ENOSYS. Some functions are actually named
5504 something starting with __ and the normal name is an alias. */
5505 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5508 f = malloc_set_state;
5515 rm -f conftest.
$ac_objext conftest
$ac_exeext
5516 if { (eval echo "$as_me:5516: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5519 echo "$as_me:5519: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:5522: \"$ac_try\"") >&5
5525 echo "$as_me:5525: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_func_malloc_set_state
=yes
5529 echo "$as_me: failed program was:" >&5
5530 cat conftest.
$ac_ext >&5
5531 ac_cv_func_malloc_set_state
=no
5533 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5535 echo "$as_me:5535: result: $ac_cv_func_malloc_set_state" >&5
5536 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5537 if test $ac_cv_func_malloc_set_state = yes; then
5543 echo "$as_me:5543: checking whether __after_morecore_hook exists" >&5
5544 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5545 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 cat >conftest.
$ac_ext <<_ACEOF
5549 #line 5549 "configure"
5550 #include "confdefs.h"
5551 extern void (* __after_morecore_hook)();
5555 __after_morecore_hook = 0
5560 rm -f conftest.
$ac_objext conftest
$ac_exeext
5561 if { (eval echo "$as_me:5561: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>&5
5564 echo "$as_me:5564: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try
='test -s conftest$ac_exeext'
5567 { (eval echo "$as_me:5567: \"$ac_try\"") >&5
5570 echo "$as_me:5570: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 emacs_cv_var___after_morecore_hook
=yes
5574 echo "$as_me: failed program was:" >&5
5575 cat conftest.
$ac_ext >&5
5576 emacs_cv_var___after_morecore_hook
=no
5578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5580 echo "$as_me:5580: result: $emacs_cv_var___after_morecore_hook" >&5
5581 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5582 if test $emacs_cv_var___after_morecore_hook = no
; then
5585 if test "${system_malloc}" = "yes"; then
5588 (The GNU allocators don't work with this system configuration.)"
5590 if test "$doug_lea_malloc" = "yes" ; then
5591 if test "$GNU_MALLOC" = yes ; then
5593 (Using Doug Lea's new malloc from the GNU C Library.)"
5595 cat >>confdefs.h
<<\EOF
5596 #define DOUG_LEA_MALLOC 1
5601 if test x
"${REL_ALLOC}" = x
; then
5602 REL_ALLOC
=${GNU_MALLOC}
5605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5607 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5608 inttypes.h stdint.h unistd.h
5610 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5611 echo "$as_me:5611: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.
$ac_ext <<_ACEOF
5617 #line 5617 "configure"
5618 #include "confdefs.h"
5619 $ac_includes_default
5620 #include <$ac_header>
5622 rm -f conftest.
$ac_objext
5623 if { (eval echo "$as_me:5623: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>&5
5626 echo "$as_me:5626: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try
='test -s conftest.$ac_objext'
5629 { (eval echo "$as_me:5629: \"$ac_try\"") >&5
5632 echo "$as_me:5632: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
5634 eval "$as_ac_Header=yes"
5636 echo "$as_me: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5638 eval "$as_ac_Header=no"
5640 rm -f conftest.
$ac_objext conftest.
$ac_ext
5642 echo "$as_me:5642: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645 cat >>confdefs.h
<<EOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 for ac_header
in stdlib.h unistd.h
5654 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5655 echo "$as_me:5655: checking for $ac_header" >&5
5656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 cat >conftest.
$ac_ext <<_ACEOF
5661 #line 5661 "configure"
5662 #include "confdefs.h"
5663 #include <$ac_header>
5665 if { (eval echo "$as_me:5665: \"$ac_cpp conftest.$ac_ext\"") >&5
5666 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5668 egrep -v '^ *\+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); } >/dev
/null
; then
5673 if test -s conftest.err
; then
5674 ac_cpp_err
=$ac_c_preproc_warn_flag
5681 if test -z "$ac_cpp_err"; then
5682 eval "$as_ac_Header=yes"
5684 echo "$as_me: failed program was:" >&5
5685 cat conftest.
$ac_ext >&5
5686 eval "$as_ac_Header=no"
5688 rm -f conftest.err conftest.
$ac_ext
5690 echo "$as_me:5690: result: `eval echo '${'$as_ac_Header'}'`" >&5
5691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5693 cat >>confdefs.h
<<EOF
5694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5700 for ac_func
in getpagesize
5702 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5703 echo "$as_me:5703: checking for $ac_func" >&5
5704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5705 if eval "test \"\${$as_ac_var+set}\" = set"; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 cat >conftest.
$ac_ext <<_ACEOF
5709 #line 5709 "configure"
5710 #include "confdefs.h"
5711 /* System header to define __stub macros and hopefully few prototypes,
5712 which can conflict with char $ac_func (); below. */
5714 /* Override any gcc2 internal prototype to avoid an error. */
5718 /* We use char because int might match the return type of a gcc2
5719 builtin and then its argument prototype would still apply. */
5726 /* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5739 rm -f conftest.
$ac_objext conftest
$ac_exeext
5740 if { (eval echo "$as_me:5740: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:5743: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try
='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:5746: \"$ac_try\"") >&5
5749 echo "$as_me:5749: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 eval "$as_ac_var=yes"
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.
$ac_ext >&5
5755 eval "$as_ac_var=no"
5757 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5759 echo "$as_me:5759: result: `eval echo '${'$as_ac_var'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5761 if test `eval echo '${'$as_ac_var'}'` = yes; then
5762 cat >>confdefs.h
<<EOF
5763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5769 echo "$as_me:5769: checking for working mmap" >&5
5770 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5771 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 if test "$cross_compiling" = yes; then
5775 ac_cv_func_mmap_fixed_mapped
=no
5777 cat >conftest.
$ac_ext <<_ACEOF
5778 #line 5778 "configure"
5779 #include "confdefs.h"
5780 $ac_includes_default
5781 /* Thanks to Mike Haertel and Jim Avera for this test.
5782 Here is a matrix of mmap possibilities:
5783 mmap private not fixed
5784 mmap private fixed at somewhere currently unmapped
5785 mmap private fixed at somewhere already mapped
5786 mmap shared not fixed
5787 mmap shared fixed at somewhere currently unmapped
5788 mmap shared fixed at somewhere already mapped
5789 For private mappings, we should verify that changes cannot be read()
5790 back from the file, nor mmap's back from the file at a different
5791 address. (There have been systems where private was not correctly
5792 implemented like the infamous i386 svr4.0, and systems where the
5793 VM page cache was not coherent with the file system buffer cache
5794 like early versions of FreeBSD and possibly contemporary NetBSD.)
5795 For shared mappings, we should conversely verify that changes get
5796 propogated back to all the places they're supposed to be.
5798 Grep wants private fixed already mapped.
5799 The main things grep needs to know about mmap are:
5800 * does it exist and is it safe to write into the mmap'd area
5801 * how to use it (BSD variants) */
5804 #include <sys/mman.h>
5806 #if !STDC_HEADERS && !HAVE_STDLIB_H
5810 /* This mess was copied from the GNU getpagesize.h. */
5811 #if !HAVE_GETPAGESIZE
5812 /* Assume that all systems that can run configure have sys/param.h. */
5813 # if !HAVE_SYS_PARAM_H
5814 # define HAVE_SYS_PARAM_H 1
5817 # ifdef _SC_PAGESIZE
5818 # define getpagesize() sysconf(_SC_PAGESIZE)
5819 # else /* no _SC_PAGESIZE */
5820 # if HAVE_SYS_PARAM_H
5821 # include <sys/param.h>
5822 # ifdef EXEC_PAGESIZE
5823 # define getpagesize() EXEC_PAGESIZE
5824 # else /* no EXEC_PAGESIZE */
5826 # define getpagesize() NBPG * CLSIZE
5829 # endif /* no CLSIZE */
5830 # else /* no NBPG */
5832 # define getpagesize() NBPC
5833 # else /* no NBPC */
5835 # define getpagesize() PAGESIZE
5836 # endif /* PAGESIZE */
5837 # endif /* no NBPC */
5838 # endif /* no NBPG */
5839 # endif /* no EXEC_PAGESIZE */
5840 # else /* no HAVE_SYS_PARAM_H */
5841 # define getpagesize() 8192 /* punt totally */
5842 # endif /* no HAVE_SYS_PARAM_H */
5843 # endif /* no _SC_PAGESIZE */
5845 #endif /* no HAVE_GETPAGESIZE */
5850 char *data, *data2, *data3;
5854 pagesize = getpagesize ();
5856 /* First, make a file with some known garbage in it. */
5857 data = (char *) malloc (pagesize);
5860 for (i = 0; i < pagesize; ++i)
5861 *(data + i) = rand ();
5863 fd = creat ("conftest.mmap", 0600);
5866 if (write (fd, data, pagesize) != pagesize)
5870 /* Next, try to mmap the file at a fixed address which already has
5871 something else allocated at it. If we can, also make sure that
5872 we see the same garbage. */
5873 fd = open ("conftest.mmap", O_RDWR);
5876 data2 = (char *) malloc (2 * pagesize);
5879 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5880 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5881 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5883 for (i = 0; i < pagesize; ++i)
5884 if (*(data + i) != *(data2 + i))
5887 /* Finally, make sure that changes to the mapped area do not
5888 percolate back to the file as seen by read(). (This is a bug on
5889 some variants of i386 svr4.0.) */
5890 for (i = 0; i < pagesize; ++i)
5891 *(data2 + i) = *(data2 + i) + 1;
5892 data3 = (char *) malloc (pagesize);
5895 if (read (fd, data3, pagesize) != pagesize)
5897 for (i = 0; i < pagesize; ++i)
5898 if (*(data + i) != *(data3 + i))
5904 rm -f conftest
$ac_exeext
5905 if { (eval echo "$as_me:5905: \"$ac_link\"") >&5
5906 (eval $ac_link) 2>&5
5908 echo "$as_me:5908: \$? = $ac_status" >&5
5909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5910 { (eval echo "$as_me:5910: \"$ac_try\"") >&5
5913 echo "$as_me:5913: \$? = $ac_status" >&5
5914 (exit $ac_status); }; }; then
5915 ac_cv_func_mmap_fixed_mapped
=yes
5917 echo "$as_me: program exited with status $ac_status" >&5
5918 echo "$as_me: failed program was:" >&5
5919 cat conftest.
$ac_ext >&5
5920 ac_cv_func_mmap_fixed_mapped
=no
5922 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5925 echo "$as_me:5925: result: $ac_cv_func_mmap_fixed_mapped" >&5
5926 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5927 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5929 cat >>confdefs.h
<<\EOF
5936 if test $use_mmap_for_buffers = yes; then
5940 LIBS
="$libsrc_libs $LIBS"
5942 echo "$as_me:5942: checking for dnet_ntoa in -ldnet" >&5
5943 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5944 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_check_lib_save_LIBS
=$LIBS
5949 cat >conftest.
$ac_ext <<_ACEOF
5950 #line 5950 "configure"
5951 #include "confdefs.h"
5953 /* Override any gcc2 internal prototype to avoid an error. */
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5968 rm -f conftest.
$ac_objext conftest
$ac_exeext
5969 if { (eval echo "$as_me:5969: \"$ac_link\"") >&5
5970 (eval $ac_link) 2>&5
5972 echo "$as_me:5972: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try
='test -s conftest$ac_exeext'
5975 { (eval echo "$as_me:5975: \"$ac_try\"") >&5
5978 echo "$as_me:5978: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_lib_dnet_dnet_ntoa
=yes
5982 echo "$as_me: failed program was:" >&5
5983 cat conftest.
$ac_ext >&5
5984 ac_cv_lib_dnet_dnet_ntoa
=no
5986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5987 LIBS
=$ac_check_lib_save_LIBS
5989 echo "$as_me:5989: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5990 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5991 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5992 cat >>confdefs.h
<<EOF
5993 #define HAVE_LIBDNET 1
6000 echo "$as_me:6000: checking for main in -lXbsd" >&5
6001 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6002 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 ac_check_lib_save_LIBS
=$LIBS
6007 cat >conftest.
$ac_ext <<_ACEOF
6008 #line 6008 "configure"
6009 #include "confdefs.h"
6019 rm -f conftest.
$ac_objext conftest
$ac_exeext
6020 if { (eval echo "$as_me:6020: \"$ac_link\"") >&5
6021 (eval $ac_link) 2>&5
6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try
='test -s conftest$ac_exeext'
6026 { (eval echo "$as_me:6026: \"$ac_try\"") >&5
6029 echo "$as_me:6029: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_lib_Xbsd_main
=yes
6033 echo "$as_me: failed program was:" >&5
6034 cat conftest.
$ac_ext >&5
6035 ac_cv_lib_Xbsd_main
=no
6037 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6038 LIBS
=$ac_check_lib_save_LIBS
6040 echo "$as_me:6040: result: $ac_cv_lib_Xbsd_main" >&5
6041 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6042 if test $ac_cv_lib_Xbsd_main = yes; then
6043 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6046 echo "$as_me:6046: checking for cma_open in -lpthreads" >&5
6047 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6048 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 ac_check_lib_save_LIBS
=$LIBS
6052 LIBS
="-lpthreads $LIBS"
6053 cat >conftest.
$ac_ext <<_ACEOF
6054 #line 6054 "configure"
6055 #include "confdefs.h"
6057 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6072 rm -f conftest.
$ac_objext conftest
$ac_exeext
6073 if { (eval echo "$as_me:6073: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>&5
6076 echo "$as_me:6076: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -s conftest$ac_exeext'
6079 { (eval echo "$as_me:6079: \"$ac_try\"") >&5
6082 echo "$as_me:6082: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
6084 ac_cv_lib_pthreads_cma_open
=yes
6086 echo "$as_me: failed program was:" >&5
6087 cat conftest.
$ac_ext >&5
6088 ac_cv_lib_pthreads_cma_open
=no
6090 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6091 LIBS
=$ac_check_lib_save_LIBS
6093 echo "$as_me:6093: result: $ac_cv_lib_pthreads_cma_open" >&5
6094 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6095 if test $ac_cv_lib_pthreads_cma_open = yes; then
6096 cat >>confdefs.h
<<EOF
6097 #define HAVE_LIBPTHREADS 1
6100 LIBS
="-lpthreads $LIBS"
6104 echo "$as_me:6104: checking for XFree86 in /usr/X386" >&5
6105 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6106 if test -d /usr
/X386
/include
; then
6108 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6112 echo "$as_me:6112: result: $HAVE_XFREE386" >&5
6113 echo "${ECHO_T}$HAVE_XFREE386" >&6
6115 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6116 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6118 REAL_CPPFLAGS
="$CPPFLAGS"
6120 if test "${HAVE_X11}" = "yes"; then
6121 DEFS
="$C_SWITCH_X_SITE $DEFS"
6122 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6124 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6125 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6129 # but it's more convenient here to set LD_RUN_PATH
6130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6131 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6132 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6136 if test "${opsys}" = "gnu-linux"; then
6137 echo "$as_me:6137: checking whether X on GNU/Linux needs -b to link" >&5
6138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6139 cat >conftest.
$ac_ext <<_ACEOF
6140 #line 6140 "configure"
6141 #include "confdefs.h"
6146 XOpenDisplay ("foo");
6151 rm -f conftest.
$ac_objext conftest
$ac_exeext
6152 if { (eval echo "$as_me:6152: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6155 echo "$as_me:6155: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try
='test -s conftest$ac_exeext'
6158 { (eval echo "$as_me:6158: \"$ac_try\"") >&5
6161 echo "$as_me:6161: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 xlinux_first_failure
=no
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.
$ac_ext >&5
6167 xlinux_first_failure
=yes
6169 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6170 if test "${xlinux_first_failure}" = "yes"; then
6171 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6172 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6173 OLD_CPPFLAGS
="$CPPFLAGS"
6175 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6176 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6177 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6178 LIBS
="$LIBS -b i486-linuxaout"
6179 cat >conftest.
$ac_ext <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6186 XOpenDisplay ("foo");
6191 rm -f conftest.
$ac_objext conftest
$ac_exeext
6192 if { (eval echo "$as_me:6192: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:6195: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try
='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:6198: \"$ac_try\"") >&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 xlinux_second_failure
=no
6205 echo "$as_me: failed program was:" >&5
6206 cat conftest.
$ac_ext >&5
6207 xlinux_second_failure
=yes
6209 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6210 if test "${xlinux_second_failure}" = "yes"; then
6211 # If we get the same failure with -b, there is no use adding -b.
6212 # So take it out. This plays safe.
6213 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6214 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6215 CPPFLAGS
="$OLD_CPPFLAGS"
6217 echo "$as_me:6217: result: no" >&5
6218 echo "${ECHO_T}no" >&6
6220 echo "$as_me:6220: result: yes" >&5
6221 echo "${ECHO_T}yes" >&6
6224 echo "$as_me:6224: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6229 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6230 # header files included from there.
6231 echo "$as_me:6231: checking for Xkb" >&5
6232 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6233 cat >conftest.
$ac_ext <<_ACEOF
6234 #line 6234 "configure"
6235 #include "confdefs.h"
6236 #include <X11/Xlib.h>
6237 #include <X11/XKBlib.h>
6241 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6246 rm -f conftest.
$ac_objext conftest
$ac_exeext
6247 if { (eval echo "$as_me:6247: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:6250: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try
='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:6253: \"$ac_try\"") >&5
6256 echo "$as_me:6256: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.
$ac_ext >&5
6264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6265 echo "$as_me:6265: result: $emacs_xkb" >&5
6266 echo "${ECHO_T}$emacs_xkb" >&6
6267 if test $emacs_xkb = yes; then
6268 cat >>confdefs.h
<<\EOF
6269 #define HAVE_XKBGETKEYBOARD 1
6274 for ac_func
in XrmSetDatabase XScreenResourceString \
6275 XScreenNumberOfScreen XSetWMProtocols
6277 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6278 echo "$as_me:6278: checking for $ac_func" >&5
6279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6280 if eval "test \"\${$as_ac_var+set}\" = set"; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 cat >conftest.
$ac_ext <<_ACEOF
6284 #line 6284 "configure"
6285 #include "confdefs.h"
6286 /* System header to define __stub macros and hopefully few prototypes,
6287 which can conflict with char $ac_func (); below. */
6289 /* Override any gcc2 internal prototype to avoid an error. */
6293 /* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6301 /* The GNU C library defines this for functions which it implements
6302 to always fail with ENOSYS. Some functions are actually named
6303 something starting with __ and the normal name is an alias. */
6304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6314 rm -f conftest.
$ac_objext conftest
$ac_exeext
6315 if { (eval echo "$as_me:6315: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try
='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:6321: \"$ac_try\"") >&5
6324 echo "$as_me:6324: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 eval "$as_ac_var=yes"
6328 echo "$as_me: failed program was:" >&5
6329 cat conftest.
$ac_ext >&5
6330 eval "$as_ac_var=no"
6332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6334 echo "$as_me:6334: result: `eval echo '${'$as_ac_var'}'`" >&5
6335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6336 if test `eval echo '${'$as_ac_var'}'` = yes; then
6337 cat >>confdefs.h
<<EOF
6338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6346 if test "${window_system}" = "x11"; then
6347 echo "$as_me:6347: checking X11 version 6" >&5
6348 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6349 if test "${emacs_cv_x11_version_6+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6353 #line 6353 "configure"
6354 #include "confdefs.h"
6355 #include <X11/Xlib.h>
6359 #if XlibSpecificationRelease < 6
6367 rm -f conftest.
$ac_objext conftest
$ac_exeext
6368 if { (eval echo "$as_me:6368: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>&5
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 (exit $ac_status); } &&
6373 { ac_try
='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:6374: \"$ac_try\"") >&5
6377 echo "$as_me:6377: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 emacs_cv_x11_version_6
=yes
6381 echo "$as_me: failed program was:" >&5
6382 cat conftest.
$ac_ext >&5
6383 emacs_cv_x11_version_6
=no
6385 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6388 if test $emacs_cv_x11_version_6 = yes; then
6389 echo "$as_me:6389: result: 6 or newer" >&5
6390 echo "${ECHO_T}6 or newer" >&6
6391 cat >>confdefs.h
<<\EOF
6392 #define HAVE_X11R6 1
6396 echo "$as_me:6396: result: before 6" >&5
6397 echo "${ECHO_T}before 6" >&6
6401 if test "${window_system}" = "x11"; then
6402 echo "$as_me:6402: checking X11 version 5" >&5
6403 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6404 if test "${emacs_cv_x11_version_5+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 cat >conftest.
$ac_ext <<_ACEOF
6408 #line 6408 "configure"
6409 #include "confdefs.h"
6410 #include <X11/Xlib.h>
6414 #if XlibSpecificationRelease < 5
6422 rm -f conftest.
$ac_objext conftest
$ac_exeext
6423 if { (eval echo "$as_me:6423: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>&5
6426 echo "$as_me:6426: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try
='test -s conftest$ac_exeext'
6429 { (eval echo "$as_me:6429: \"$ac_try\"") >&5
6432 echo "$as_me:6432: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_x11_version_5
=yes
6436 echo "$as_me: failed program was:" >&5
6437 cat conftest.
$ac_ext >&5
6438 emacs_cv_x11_version_5
=no
6440 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6443 if test $emacs_cv_x11_version_5 = yes; then
6444 echo "$as_me:6444: result: 5 or newer" >&5
6445 echo "${ECHO_T}5 or newer" >&6
6447 cat >>confdefs.h
<<\EOF
6448 #define HAVE_X11R5 1
6453 echo "$as_me:6453: result: before 5" >&5
6454 echo "${ECHO_T}before 5" >&6
6458 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6459 if test x
"${HAVE_X11R5}" = xyes
; then
6460 echo "$as_me:6460: checking X11 version 5 with Xaw" >&5
6461 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6462 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 cat >conftest.
$ac_ext <<_ACEOF
6466 #line 6466 "configure"
6467 #include "confdefs.h"
6469 #include <X11/Intrinsic.h>
6470 #include <X11/Xaw/Simple.h>
6479 rm -f conftest.
$ac_objext conftest
$ac_exeext
6480 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:6486: \"$ac_try\"") >&5
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 emacs_cv_x11_version_5_with_xaw
=yes
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6495 emacs_cv_x11_version_5_with_xaw
=no
6497 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6500 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6501 echo "$as_me:6501: result: 5 or newer, with Xaw; use toolkit by default" >&5
6502 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6505 echo "$as_me:6505: result: before 5 or no Xaw; do not use toolkit by default" >&5
6506 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6514 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6516 if test "${USE_X_TOOLKIT}" != "none"; then
6517 echo "$as_me:6517: checking X11 toolkit version" >&5
6518 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6519 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line 6523 "configure"
6524 #include "confdefs.h"
6525 #include <X11/Intrinsic.h>
6529 #if XtSpecificationRelease < 6
6537 rm -f conftest.
$ac_objext conftest
$ac_exeext
6538 if { (eval echo "$as_me:6538: \"$ac_link\"") >&5
6539 (eval $ac_link) 2>&5
6541 echo "$as_me:6541: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try
='test -s conftest$ac_exeext'
6544 { (eval echo "$as_me:6544: \"$ac_try\"") >&5
6547 echo "$as_me:6547: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6549 emacs_cv_x11_toolkit_version_6
=yes
6551 echo "$as_me: failed program was:" >&5
6552 cat conftest.
$ac_ext >&5
6553 emacs_cv_x11_toolkit_version_6
=no
6555 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6558 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6559 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6560 echo "$as_me:6560: result: 6 or newer" >&5
6561 echo "${ECHO_T}6 or newer" >&6
6562 cat >>confdefs.h
<<\EOF
6563 #define HAVE_X11XTR6 1
6567 echo "$as_me:6567: result: before 6" >&5
6568 echo "${ECHO_T}before 6" >&6
6572 if test x
$HAVE_X11XTR6 = xyes
; then
6573 LIBS
="-lXt -lSM -lICE $LIBS"
6578 echo "$as_me:6578: checking for XmuConvertStandardSelection in -lXmu" >&5
6579 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6580 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 ac_check_lib_save_LIBS
=$LIBS
6585 cat >conftest.
$ac_ext <<_ACEOF
6586 #line 6586 "configure"
6587 #include "confdefs.h"
6589 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6595 char XmuConvertStandardSelection ();
6599 XmuConvertStandardSelection ();
6604 rm -f conftest.
$ac_objext conftest
$ac_exeext
6605 if { (eval echo "$as_me:6605: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>&5
6608 echo "$as_me:6608: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -s conftest$ac_exeext'
6611 { (eval echo "$as_me:6611: \"$ac_try\"") >&5
6614 echo "$as_me:6614: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6618 echo "$as_me: failed program was:" >&5
6619 cat conftest.
$ac_ext >&5
6620 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6623 LIBS
=$ac_check_lib_save_LIBS
6625 echo "$as_me:6625: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6626 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6627 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6628 cat >>confdefs.h
<<EOF
6629 #define HAVE_LIBXMU 1
6636 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6639 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6640 if test "${HAVE_X11}" = "yes"; then
6641 if test "${USE_X_TOOLKIT}" != "none"; then
6643 echo "$as_me:6643: checking for XShapeQueryExtension in -lXext" >&5
6644 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6645 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_check_lib_save_LIBS
=$LIBS
6650 cat >conftest.
$ac_ext <<_ACEOF
6651 #line 6651 "configure"
6652 #include "confdefs.h"
6654 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6660 char XShapeQueryExtension ();
6664 XShapeQueryExtension ();
6669 rm -f conftest.
$ac_objext conftest
$ac_exeext
6670 if { (eval echo "$as_me:6670: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>&5
6673 echo "$as_me:6673: \$? = $ac_status" >&5
6674 (exit $ac_status); } &&
6675 { ac_try
='test -s conftest$ac_exeext'
6676 { (eval echo "$as_me:6676: \"$ac_try\"") >&5
6679 echo "$as_me:6679: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6683 echo "$as_me: failed program was:" >&5
6684 cat conftest.
$ac_ext >&5
6685 ac_cv_lib_Xext_XShapeQueryExtension
=no
6687 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6688 LIBS
=$ac_check_lib_save_LIBS
6690 echo "$as_me:6690: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6691 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6692 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6693 cat >>confdefs.h
<<EOF
6694 #define HAVE_LIBXEXT 1
6704 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6705 echo "$as_me:6705: checking for Motif version 2.1" >&5
6706 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6707 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 cat >conftest.
$ac_ext <<_ACEOF
6711 #line 6711 "configure"
6712 #include "confdefs.h"
6717 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6720 Motif version prior to 2.1.
6726 rm -f conftest.
$ac_objext
6727 if { (eval echo "$as_me:6727: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>&5
6730 echo "$as_me:6730: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try
='test -s conftest.$ac_objext'
6733 { (eval echo "$as_me:6733: \"$ac_try\"") >&5
6736 echo "$as_me:6736: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 emacs_cv_motif_version_2_1
=yes
6740 echo "$as_me: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6742 emacs_cv_motif_version_2_1
=no
6744 rm -f conftest.
$ac_objext conftest.
$ac_ext
6746 echo "$as_me:6746: result: $emacs_cv_motif_version_2_1" >&5
6747 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6748 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6749 if test $emacs_cv_motif_version_2_1 = yes; then
6751 cat >>confdefs.h
<<\EOF
6752 #define HAVE_MOTIF_2_1 1
6755 echo "$as_me:6755: checking for XpCreateContext in -lXp" >&5
6756 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6757 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 ac_check_lib_save_LIBS
=$LIBS
6762 cat >conftest.
$ac_ext <<_ACEOF
6763 #line 6763 "configure"
6764 #include "confdefs.h"
6766 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6772 char XpCreateContext ();
6781 rm -f conftest.
$ac_objext conftest
$ac_exeext
6782 if { (eval echo "$as_me:6782: \"$ac_link\"") >&5
6783 (eval $ac_link) 2>&5
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try
='test -s conftest$ac_exeext'
6788 { (eval echo "$as_me:6788: \"$ac_try\"") >&5
6791 echo "$as_me:6791: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 ac_cv_lib_Xp_XpCreateContext
=yes
6795 echo "$as_me: failed program was:" >&5
6796 cat conftest.
$ac_ext >&5
6797 ac_cv_lib_Xp_XpCreateContext
=no
6799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6800 LIBS
=$ac_check_lib_save_LIBS
6802 echo "$as_me:6802: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6803 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6804 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6808 if test ${HAVE_LIBXP} = yes; then
6809 cat >>confdefs.h
<<\EOF
6810 #define HAVE_LIBXP 1
6817 ### Is -lXaw3d available?
6819 if test "${HAVE_X11}" = "yes"; then
6820 if test "${USE_X_TOOLKIT}" != "none"; then
6821 echo "$as_me:6821: checking for X11/Xaw3d/Scrollbar.h" >&5
6822 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6823 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.
$ac_ext <<_ACEOF
6827 #line 6827 "configure"
6828 #include "confdefs.h"
6829 #include <X11/Xaw3d/Scrollbar.h>
6831 if { (eval echo "$as_me:6831: \"$ac_cpp conftest.$ac_ext\"") >&5
6832 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6834 egrep -v '^ *\+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 echo "$as_me:6837: \$? = $ac_status" >&5
6838 (exit $ac_status); } >/dev
/null
; then
6839 if test -s conftest.err
; then
6840 ac_cpp_err
=$ac_c_preproc_warn_flag
6847 if test -z "$ac_cpp_err"; then
6848 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6850 echo "$as_me: failed program was:" >&5
6851 cat conftest.
$ac_ext >&5
6852 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6854 rm -f conftest.err conftest.
$ac_ext
6856 echo "$as_me:6856: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6857 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6858 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6859 echo "$as_me:6859: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6860 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6861 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_check_lib_save_LIBS
=$LIBS
6865 LIBS
="-lXaw3d $LIBS"
6866 cat >conftest.
$ac_ext <<_ACEOF
6867 #line 6867 "configure"
6868 #include "confdefs.h"
6870 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6876 char XawScrollbarSetThumb ();
6880 XawScrollbarSetThumb ();
6885 rm -f conftest.
$ac_objext conftest
$ac_exeext
6886 if { (eval echo "$as_me:6886: \"$ac_link\"") >&5
6887 (eval $ac_link) 2>&5
6889 echo "$as_me:6889: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try
='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:6892: \"$ac_try\"") >&5
6895 echo "$as_me:6895: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6901 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6903 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6904 LIBS
=$ac_check_lib_save_LIBS
6906 echo "$as_me:6906: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6907 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6908 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6914 if test "${HAVE_XAW3D}" = "yes"; then
6915 cat >>confdefs.h
<<\EOF
6916 #define HAVE_XAW3D 1
6923 USE_TOOLKIT_SCROLL_BARS
=no
6924 if test "${with_toolkit_scroll_bars}" != "no"; then
6925 if test "${USE_X_TOOLKIT}" != "none"; then
6926 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6927 cat >>confdefs.h
<<\EOF
6928 #define USE_TOOLKIT_SCROLL_BARS 1
6932 USE_TOOLKIT_SCROLL_BARS
=yes
6933 elif test "${HAVE_XAW3D}" = "yes"; then
6934 cat >>confdefs.h
<<\EOF
6935 #define USE_TOOLKIT_SCROLL_BARS 1
6938 USE_TOOLKIT_SCROLL_BARS
=yes
6943 if test "${with_xim}" != "no"; then
6944 cat >>confdefs.h
<<\EOF
6950 ### Use -lXpm if available, unless `--with-xpm=no'.
6952 if test "${HAVE_X11}" = "yes"; then
6953 if test "${with_xpm}" != "no"; then
6954 echo "$as_me:6954: checking for X11/xpm.h" >&5
6955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6960 #line 6960 "configure"
6961 #include "confdefs.h"
6962 #include <X11/xpm.h>
6964 if { (eval echo "$as_me:6964: \"$ac_cpp conftest.$ac_ext\"") >&5
6965 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6967 egrep -v '^ *\+' conftest.er1
>conftest.err
6969 cat conftest.err
>&5
6970 echo "$as_me:6970: \$? = $ac_status" >&5
6971 (exit $ac_status); } >/dev
/null
; then
6972 if test -s conftest.err
; then
6973 ac_cpp_err
=$ac_c_preproc_warn_flag
6980 if test -z "$ac_cpp_err"; then
6981 ac_cv_header_X11_xpm_h
=yes
6983 echo "$as_me: failed program was:" >&5
6984 cat conftest.
$ac_ext >&5
6985 ac_cv_header_X11_xpm_h
=no
6987 rm -f conftest.err conftest.
$ac_ext
6989 echo "$as_me:6989: result: $ac_cv_header_X11_xpm_h" >&5
6990 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
6991 if test $ac_cv_header_X11_xpm_h = yes; then
6992 echo "$as_me:6992: checking for XpmReadFileToPixmap in -lXpm" >&5
6993 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
6994 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_check_lib_save_LIBS
=$LIBS
6998 LIBS
="-lXpm -lX11 $LIBS"
6999 cat >conftest.
$ac_ext <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7009 char XpmReadFileToPixmap ();
7013 XpmReadFileToPixmap ();
7018 rm -f conftest.
$ac_objext conftest
$ac_exeext
7019 if { (eval echo "$as_me:7019: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try
='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:7025: \"$ac_try\"") >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7032 echo "$as_me: failed program was:" >&5
7033 cat conftest.
$ac_ext >&5
7034 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7036 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7037 LIBS
=$ac_check_lib_save_LIBS
7039 echo "$as_me:7039: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7040 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7041 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7047 if test "${HAVE_XPM}" = "yes"; then
7048 echo "$as_me:7048: checking for XpmReturnAllocPixels preprocessor define" >&5
7049 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7051 #line 7051 "configure"
7052 #include "confdefs.h"
7053 #include "X11/xpm.h"
7054 #ifndef XpmReturnAllocPixels
7055 no_return_alloc_pixels
7059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7060 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7067 if test "${HAVE_XPM}" = "yes"; then
7068 echo "$as_me:7068: result: yes" >&5
7069 echo "${ECHO_T}yes" >&6
7071 echo "$as_me:7071: result: no" >&5
7072 echo "${ECHO_T}no" >&6
7077 if test "${HAVE_XPM}" = "yes"; then
7078 cat >>confdefs.h
<<\EOF
7085 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7087 if test "${HAVE_X11}" = "yes"; then
7088 if test "${with_jpeg}" != "no"; then
7089 echo "$as_me:7089: checking for jerror.h" >&5
7090 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7091 if test "${ac_cv_header_jerror_h+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 cat >conftest.
$ac_ext <<_ACEOF
7095 #line 7095 "configure"
7096 #include "confdefs.h"
7099 if { (eval echo "$as_me:7099: \"$ac_cpp conftest.$ac_ext\"") >&5
7100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7102 egrep -v '^ *\+' conftest.er1
>conftest.err
7104 cat conftest.err
>&5
7105 echo "$as_me:7105: \$? = $ac_status" >&5
7106 (exit $ac_status); } >/dev
/null
; then
7107 if test -s conftest.err
; then
7108 ac_cpp_err
=$ac_c_preproc_warn_flag
7115 if test -z "$ac_cpp_err"; then
7116 ac_cv_header_jerror_h
=yes
7118 echo "$as_me: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7120 ac_cv_header_jerror_h
=no
7122 rm -f conftest.err conftest.
$ac_ext
7124 echo "$as_me:7124: result: $ac_cv_header_jerror_h" >&5
7125 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7126 if test $ac_cv_header_jerror_h = yes; then
7127 echo "$as_me:7127: checking for jpeg_destroy_compress in -ljpeg" >&5
7128 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7129 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_check_lib_save_LIBS
=$LIBS
7134 cat >conftest.
$ac_ext <<_ACEOF
7135 #line 7135 "configure"
7136 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7144 char jpeg_destroy_compress ();
7148 jpeg_destroy_compress ();
7153 rm -f conftest.
$ac_objext conftest
$ac_exeext
7154 if { (eval echo "$as_me:7154: \"$ac_link\"") >&5
7155 (eval $ac_link) 2>&5
7157 echo "$as_me:7157: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try
='test -s conftest$ac_exeext'
7160 { (eval echo "$as_me:7160: \"$ac_try\"") >&5
7163 echo "$as_me:7163: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7167 echo "$as_me: failed program was:" >&5
7168 cat conftest.
$ac_ext >&5
7169 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7171 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7172 LIBS
=$ac_check_lib_save_LIBS
7174 echo "$as_me:7174: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7175 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7176 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7184 if test "${HAVE_JPEG}" = "yes"; then
7185 cat >>confdefs.h
<<\EOF
7192 ### Use -lpng if available, unless `--with-png=no'.
7194 if test "${HAVE_X11}" = "yes"; then
7195 if test "${with_png}" != "no"; then
7196 echo "$as_me:7196: checking for png.h" >&5
7197 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7198 if test "${ac_cv_header_png_h+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 cat >conftest.
$ac_ext <<_ACEOF
7202 #line 7202 "configure"
7203 #include "confdefs.h"
7206 if { (eval echo "$as_me:7206: \"$ac_cpp conftest.$ac_ext\"") >&5
7207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7209 egrep -v '^ *\+' conftest.er1
>conftest.err
7211 cat conftest.err
>&5
7212 echo "$as_me:7212: \$? = $ac_status" >&5
7213 (exit $ac_status); } >/dev
/null
; then
7214 if test -s conftest.err
; then
7215 ac_cpp_err
=$ac_c_preproc_warn_flag
7222 if test -z "$ac_cpp_err"; then
7223 ac_cv_header_png_h
=yes
7225 echo "$as_me: failed program was:" >&5
7226 cat conftest.
$ac_ext >&5
7227 ac_cv_header_png_h
=no
7229 rm -f conftest.err conftest.
$ac_ext
7231 echo "$as_me:7231: result: $ac_cv_header_png_h" >&5
7232 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7233 if test $ac_cv_header_png_h = yes; then
7234 echo "$as_me:7234: checking for png_get_channels in -lpng" >&5
7235 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7236 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_check_lib_save_LIBS
=$LIBS
7240 LIBS
="-lpng -lz -lm $LIBS"
7241 cat >conftest.
$ac_ext <<_ACEOF
7242 #line 7242 "configure"
7243 #include "confdefs.h"
7245 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7251 char png_get_channels ();
7255 png_get_channels ();
7260 rm -f conftest.
$ac_objext conftest
$ac_exeext
7261 if { (eval echo "$as_me:7261: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>&5
7264 echo "$as_me:7264: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try
='test -s conftest$ac_exeext'
7267 { (eval echo "$as_me:7267: \"$ac_try\"") >&5
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_lib_png_png_get_channels
=yes
7274 echo "$as_me: failed program was:" >&5
7275 cat conftest.
$ac_ext >&5
7276 ac_cv_lib_png_png_get_channels
=no
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7279 LIBS
=$ac_check_lib_save_LIBS
7281 echo "$as_me:7281: result: $ac_cv_lib_png_png_get_channels" >&5
7282 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7283 if test $ac_cv_lib_png_png_get_channels = yes; then
7291 if test "${HAVE_PNG}" = "yes"; then
7292 cat >>confdefs.h
<<\EOF
7299 ### Use -ltiff if available, unless `--with-tiff=no'.
7301 if test "${HAVE_X11}" = "yes"; then
7302 if test "${with_tiff}" != "no"; then
7303 echo "$as_me:7303: checking for tiffio.h" >&5
7304 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7305 if test "${ac_cv_header_tiffio_h+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7309 #line 7309 "configure"
7310 #include "confdefs.h"
7313 if { (eval echo "$as_me:7313: \"$ac_cpp conftest.$ac_ext\"") >&5
7314 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7316 egrep -v '^ *\+' conftest.er1
>conftest.err
7318 cat conftest.err
>&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 (exit $ac_status); } >/dev
/null
; then
7321 if test -s conftest.err
; then
7322 ac_cpp_err
=$ac_c_preproc_warn_flag
7329 if test -z "$ac_cpp_err"; then
7330 ac_cv_header_tiffio_h
=yes
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.
$ac_ext >&5
7334 ac_cv_header_tiffio_h
=no
7336 rm -f conftest.err conftest.
$ac_ext
7338 echo "$as_me:7338: result: $ac_cv_header_tiffio_h" >&5
7339 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7340 if test $ac_cv_header_tiffio_h = yes; then
7342 # At least one tiff package requires the jpeg library.
7343 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7344 echo "$as_me:7344: checking for TIFFGetVersion in -ltiff" >&5
7345 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7346 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 ac_check_lib_save_LIBS
=$LIBS
7350 LIBS
="-ltiff $tifflibs $LIBS"
7351 cat >conftest.
$ac_ext <<_ACEOF
7352 #line 7352 "configure"
7353 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7361 char TIFFGetVersion ();
7370 rm -f conftest.
$ac_objext conftest
$ac_exeext
7371 if { (eval echo "$as_me:7371: \"$ac_link\"") >&5
7372 (eval $ac_link) 2>&5
7374 echo "$as_me:7374: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try
='test -s conftest$ac_exeext'
7377 { (eval echo "$as_me:7377: \"$ac_try\"") >&5
7380 echo "$as_me:7380: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_lib_tiff_TIFFGetVersion
=yes
7384 echo "$as_me: failed program was:" >&5
7385 cat conftest.
$ac_ext >&5
7386 ac_cv_lib_tiff_TIFFGetVersion
=no
7388 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7389 LIBS
=$ac_check_lib_save_LIBS
7391 echo "$as_me:7391: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7392 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7393 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7401 if test "${HAVE_TIFF}" = "yes"; then
7402 cat >>confdefs.h
<<\EOF
7409 ### Use -lgif if available, unless `--with-gif=no'.
7411 if test "${HAVE_X11}" = "yes"; then
7412 if test "${with_gif}" != "no"; then
7413 echo "$as_me:7413: checking for gif_lib.h" >&5
7414 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7415 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 cat >conftest.
$ac_ext <<_ACEOF
7419 #line 7419 "configure"
7420 #include "confdefs.h"
7421 #include <gif_lib.h>
7423 if { (eval echo "$as_me:7423: \"$ac_cpp conftest.$ac_ext\"") >&5
7424 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7426 egrep -v '^ *\+' conftest.er1
>conftest.err
7428 cat conftest.err
>&5
7429 echo "$as_me:7429: \$? = $ac_status" >&5
7430 (exit $ac_status); } >/dev
/null
; then
7431 if test -s conftest.err
; then
7432 ac_cpp_err
=$ac_c_preproc_warn_flag
7439 if test -z "$ac_cpp_err"; then
7440 ac_cv_header_gif_lib_h
=yes
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.
$ac_ext >&5
7444 ac_cv_header_gif_lib_h
=no
7446 rm -f conftest.err conftest.
$ac_ext
7448 echo "$as_me:7448: result: $ac_cv_header_gif_lib_h" >&5
7449 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7450 if test $ac_cv_header_gif_lib_h = yes; then
7451 echo "$as_me:7451: checking for DGifOpen in -lungif" >&5
7452 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7453 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_check_lib_save_LIBS
=$LIBS
7457 LIBS
="-lungif $LIBS"
7458 cat >conftest.
$ac_ext <<_ACEOF
7459 #line 7459 "configure"
7460 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7477 rm -f conftest.
$ac_objext conftest
$ac_exeext
7478 if { (eval echo "$as_me:7478: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try
='test -s conftest$ac_exeext'
7484 { (eval echo "$as_me:7484: \"$ac_try\"") >&5
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_lib_ungif_DGifOpen
=yes
7491 echo "$as_me: failed program was:" >&5
7492 cat conftest.
$ac_ext >&5
7493 ac_cv_lib_ungif_DGifOpen
=no
7495 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7496 LIBS
=$ac_check_lib_save_LIBS
7498 echo "$as_me:7498: result: $ac_cv_lib_ungif_DGifOpen" >&5
7499 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7500 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7508 if test "${HAVE_GIF}" = "yes"; then
7509 cat >>confdefs.h
<<\EOF
7516 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7517 echo "$as_me:7517: checking whether netdb declares h_errno" >&5
7518 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7519 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 cat >conftest.
$ac_ext <<_ACEOF
7523 #line 7523 "configure"
7524 #include "confdefs.h"
7534 rm -f conftest.
$ac_objext conftest
$ac_exeext
7535 if { (eval echo "$as_me:7535: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>&5
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -s conftest$ac_exeext'
7541 { (eval echo "$as_me:7541: \"$ac_try\"") >&5
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 emacs_cv_netdb_declares_h_errno
=yes
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.
$ac_ext >&5
7550 emacs_cv_netdb_declares_h_errno
=no
7552 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7554 echo "$as_me:7554: result: $emacs_cv_netdb_declares_h_errno" >&5
7555 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7556 if test $emacs_cv_netdb_declares_h_errno = yes; then
7557 cat >>confdefs.h
<<\EOF
7558 #define HAVE_H_ERRNO 1
7563 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7564 # for constant arguments. Useless!
7565 echo "$as_me:7565: checking for working alloca.h" >&5
7566 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7567 if test "${ac_cv_working_alloca_h+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 cat >conftest.
$ac_ext <<_ACEOF
7571 #line 7571 "configure"
7572 #include "confdefs.h"
7577 char *p = (char *) alloca (2 * sizeof (int));
7582 rm -f conftest.
$ac_objext conftest
$ac_exeext
7583 if { (eval echo "$as_me:7583: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7586 echo "$as_me:7586: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try
='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:7589: \"$ac_try\"") >&5
7592 echo "$as_me:7592: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7594 ac_cv_working_alloca_h
=yes
7596 echo "$as_me: failed program was:" >&5
7597 cat conftest.
$ac_ext >&5
7598 ac_cv_working_alloca_h
=no
7600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7602 echo "$as_me:7602: result: $ac_cv_working_alloca_h" >&5
7603 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7604 if test $ac_cv_working_alloca_h = yes; then
7606 cat >>confdefs.h
<<\EOF
7607 #define HAVE_ALLOCA_H 1
7612 echo "$as_me:7612: checking for alloca" >&5
7613 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7614 if test "${ac_cv_func_alloca_works+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 cat >conftest.
$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7621 # define alloca __builtin_alloca
7624 # include <malloc.h>
7625 # define alloca _alloca
7628 # include <alloca.h>
7633 # ifndef alloca /* predefined by HP cc +Olibcalls */
7644 char *p = (char *) alloca (1);
7649 rm -f conftest.
$ac_objext conftest
$ac_exeext
7650 if { (eval echo "$as_me:7650: \"$ac_link\"") >&5
7651 (eval $ac_link) 2>&5
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try
='test -s conftest$ac_exeext'
7656 { (eval echo "$as_me:7656: \"$ac_try\"") >&5
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7661 ac_cv_func_alloca_works
=yes
7663 echo "$as_me: failed program was:" >&5
7664 cat conftest.
$ac_ext >&5
7665 ac_cv_func_alloca_works
=no
7667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7669 echo "$as_me:7669: result: $ac_cv_func_alloca_works" >&5
7670 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7672 if test $ac_cv_func_alloca_works = yes; then
7674 cat >>confdefs.h
<<\EOF
7675 #define HAVE_ALLOCA 1
7679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7680 # that cause trouble. Some versions do not even contain alloca or
7681 # contain a buggy version. If you still want to use their alloca,
7682 # use ar to extract alloca.o from them instead of compiling alloca.c.
7684 ALLOCA
=alloca.
$ac_objext
7686 cat >>confdefs.h
<<\EOF
7690 echo "$as_me:7690: checking whether \`alloca.c' needs Cray hooks" >&5
7691 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7692 if test "${ac_cv_os_cray+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 cat >conftest.
$ac_ext <<_ACEOF
7696 #line 7696 "configure"
7697 #include "confdefs.h"
7698 #if defined(CRAY) && ! defined(CRAY2)
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 egrep "webecray" >/dev
/null
2>&1; then
7714 echo "$as_me:7714: result: $ac_cv_os_cray" >&5
7715 echo "${ECHO_T}$ac_cv_os_cray" >&6
7716 if test $ac_cv_os_cray = yes; then
7717 for ac_func
in _getb67 GETB67 getb67
; do
7718 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7719 echo "$as_me:7719: checking for $ac_func" >&5
7720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7721 if eval "test \"\${$as_ac_var+set}\" = set"; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 cat >conftest.
$ac_ext <<_ACEOF
7725 #line 7725 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char $ac_func (); below. */
7730 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7742 /* The GNU C library defines this for functions which it implements
7743 to always fail with ENOSYS. Some functions are actually named
7744 something starting with __ and the normal name is an alias. */
7745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7755 rm -f conftest.
$ac_objext conftest
$ac_exeext
7756 if { (eval echo "$as_me:7756: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>&5
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try
='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:7762: \"$ac_try\"") >&5
7765 echo "$as_me:7765: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 eval "$as_ac_var=yes"
7769 echo "$as_me: failed program was:" >&5
7770 cat conftest.
$ac_ext >&5
7771 eval "$as_ac_var=no"
7773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7775 echo "$as_me:7775: result: `eval echo '${'$as_ac_var'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7777 if test `eval echo '${'$as_ac_var'}'` = yes; then
7779 cat >>confdefs.h
<<EOF
7780 #define CRAY_STACKSEG_END $ac_func
7789 echo "$as_me:7789: checking stack direction for C alloca" >&5
7790 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7791 if test "${ac_cv_c_stack_direction+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7794 if test "$cross_compiling" = yes; then
7795 ac_cv_c_stack_direction
=0
7797 cat >conftest.
$ac_ext <<_ACEOF
7798 #line 7798 "configure"
7799 #include "confdefs.h"
7801 find_stack_direction ()
7803 static char *addr = 0;
7808 return find_stack_direction ();
7811 return (&dummy > addr) ? 1 : -1;
7817 exit (find_stack_direction () < 0);
7820 rm -f conftest
$ac_exeext
7821 if { (eval echo "$as_me:7821: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:7824: \$? = $ac_status" >&5
7825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7826 { (eval echo "$as_me:7826: \"$ac_try\"") >&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 ac_cv_c_stack_direction
=1
7833 echo "$as_me: program exited with status $ac_status" >&5
7834 echo "$as_me: failed program was:" >&5
7835 cat conftest.
$ac_ext >&5
7836 ac_cv_c_stack_direction
=-1
7838 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7841 echo "$as_me:7841: result: $ac_cv_c_stack_direction" >&5
7842 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7844 cat >>confdefs.h
<<EOF
7845 #define STACK_DIRECTION $ac_cv_c_stack_direction
7850 # fmod, logb, and frexp are found in -lm on most systems.
7851 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7853 echo "$as_me:7853: checking for sqrt in -lm" >&5
7854 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7855 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 ac_check_lib_save_LIBS
=$LIBS
7860 cat >conftest.
$ac_ext <<_ACEOF
7861 #line 7861 "configure"
7862 #include "confdefs.h"
7864 /* Override any gcc2 internal prototype to avoid an error. */
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7879 rm -f conftest.
$ac_objext conftest
$ac_exeext
7880 if { (eval echo "$as_me:7880: \"$ac_link\"") >&5
7881 (eval $ac_link) 2>&5
7883 echo "$as_me:7883: \$? = $ac_status" >&5
7884 (exit $ac_status); } &&
7885 { ac_try
='test -s conftest$ac_exeext'
7886 { (eval echo "$as_me:7886: \"$ac_try\"") >&5
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_cv_lib_m_sqrt
=yes
7893 echo "$as_me: failed program was:" >&5
7894 cat conftest.
$ac_ext >&5
7897 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7898 LIBS
=$ac_check_lib_save_LIBS
7900 echo "$as_me:7900: result: $ac_cv_lib_m_sqrt" >&5
7901 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7902 if test $ac_cv_lib_m_sqrt = yes; then
7903 cat >>confdefs.h
<<EOF
7911 # Check for mail-locking functions in a "mail" library
7913 echo "$as_me:7913: checking for maillock in -lmail" >&5
7914 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7915 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_check_lib_save_LIBS
=$LIBS
7920 cat >conftest.
$ac_ext <<_ACEOF
7921 #line 7921 "configure"
7922 #include "confdefs.h"
7924 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */
7939 rm -f conftest.
$ac_objext conftest
$ac_exeext
7940 if { (eval echo "$as_me:7940: \"$ac_link\"") >&5
7941 (eval $ac_link) 2>&5
7943 echo "$as_me:7943: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try
='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:7946: \"$ac_try\"") >&5
7949 echo "$as_me:7949: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_cv_lib_mail_maillock
=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.
$ac_ext >&5
7955 ac_cv_lib_mail_maillock
=no
7957 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7958 LIBS
=$ac_check_lib_save_LIBS
7960 echo "$as_me:7960: result: $ac_cv_lib_mail_maillock" >&5
7961 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7962 if test $ac_cv_lib_mail_maillock = yes; then
7963 cat >>confdefs.h
<<EOF
7964 #define HAVE_LIBMAIL 1
7971 echo "$as_me:7971: checking for maillock in -llockfile" >&5
7972 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
7973 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_check_lib_save_LIBS
=$LIBS
7977 LIBS
="-llockfile $LIBS"
7978 cat >conftest.
$ac_ext <<_ACEOF
7979 #line 7979 "configure"
7980 #include "confdefs.h"
7982 /* Override any gcc2 internal prototype to avoid an error. */
7986 /* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7997 rm -f conftest.
$ac_objext conftest
$ac_exeext
7998 if { (eval echo "$as_me:7998: \"$ac_link\"") >&5
7999 (eval $ac_link) 2>&5
8001 echo "$as_me:8001: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try
='test -s conftest$ac_exeext'
8004 { (eval echo "$as_me:8004: \"$ac_try\"") >&5
8007 echo "$as_me:8007: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_cv_lib_lockfile_maillock
=yes
8011 echo "$as_me: failed program was:" >&5
8012 cat conftest.
$ac_ext >&5
8013 ac_cv_lib_lockfile_maillock
=no
8015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8016 LIBS
=$ac_check_lib_save_LIBS
8018 echo "$as_me:8018: result: $ac_cv_lib_lockfile_maillock" >&5
8019 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8020 if test $ac_cv_lib_lockfile_maillock = yes; then
8021 cat >>confdefs.h
<<EOF
8022 #define HAVE_LIBLOCKFILE 1
8025 LIBS
="-llockfile $LIBS"
8029 # If we have the shared liblockfile, assume we must use it for mail
8030 # locking (e.g. Debian). If we couldn't link against liblockfile
8031 # (no liblockfile.a installed), ensure that we don't need to.
8032 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8033 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8034 set dummy liblockfile.so
; ac_word
=$2
8035 echo "$as_me:8035: checking for $ac_word" >&5
8036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8037 if test "${ac_cv_prog_liblockfile+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 if test -n "$liblockfile"; then
8041 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8043 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8044 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8045 for ac_dir
in $ac_dummy; do
8047 test -z "$ac_dir" && ac_dir
=.
8048 $as_executable_p "$ac_dir/$ac_word" ||
continue
8049 ac_cv_prog_liblockfile
="yes"
8050 echo "$as_me:8050: found $ac_dir/$ac_word" >&5
8054 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8057 liblockfile
=$ac_cv_prog_liblockfile
8058 if test -n "$liblockfile"; then
8059 echo "$as_me:8059: result: $liblockfile" >&5
8060 echo "${ECHO_T}$liblockfile" >&6
8062 echo "$as_me:8062: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8066 if test $ac_cv_prog_liblockfile = yes; then
8067 { { echo "$as_me:8067: 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." >&5
8070 echo "$as_me: error: Shared liblockfile found but can't link against it.
8071 This probably means that movemail could lose mail.
8072 There may be a \`development' package to install containing liblockfile." >&2;}
8073 { (exit 1); exit 1; }; }
8074 else cat >>confdefs.h
<<\EOF
8075 #define LIBMAIL -llockfile
8082 for ac_func
in touchlock
8084 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8085 echo "$as_me:8085: checking for $ac_func" >&5
8086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8087 if eval "test \"\${$as_ac_var+set}\" = set"; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 cat >conftest.
$ac_ext <<_ACEOF
8091 #line 8091 "configure"
8092 #include "confdefs.h"
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below. */
8096 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8121 rm -f conftest.
$ac_objext conftest
$ac_exeext
8122 if { (eval echo "$as_me:8122: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try
='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:8128: \"$ac_try\"") >&5
8131 echo "$as_me:8131: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 eval "$as_ac_var=yes"
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.
$ac_ext >&5
8137 eval "$as_ac_var=no"
8139 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8141 echo "$as_me:8141: result: `eval echo '${'$as_ac_var'}'`" >&5
8142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8143 if test `eval echo '${'$as_ac_var'}'` = yes; then
8144 cat >>confdefs.h
<<EOF
8145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8151 for ac_header
in maillock.h
8153 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154 echo "$as_me:8154: checking for $ac_header" >&5
8155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 cat >conftest.
$ac_ext <<_ACEOF
8160 #line 8160 "configure"
8161 #include "confdefs.h"
8162 #include <$ac_header>
8164 if { (eval echo "$as_me:8164: \"$ac_cpp conftest.$ac_ext\"") >&5
8165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8167 egrep -v '^ *\+' conftest.er1
>conftest.err
8169 cat conftest.err
>&5
8170 echo "$as_me:8170: \$? = $ac_status" >&5
8171 (exit $ac_status); } >/dev
/null
; then
8172 if test -s conftest.err
; then
8173 ac_cpp_err
=$ac_c_preproc_warn_flag
8180 if test -z "$ac_cpp_err"; then
8181 eval "$as_ac_Header=yes"
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.
$ac_ext >&5
8185 eval "$as_ac_Header=no"
8187 rm -f conftest.err conftest.
$ac_ext
8189 echo "$as_me:8189: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8192 cat >>confdefs.h
<<EOF
8193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8199 for ac_func
in gethostname getdomainname dup2 \
8200 rename closedir mkdir
rmdir sysinfo \
8201 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8202 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8203 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8204 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
8205 gai_strerror mkstemp
8207 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8208 echo "$as_me:8208: checking for $ac_func" >&5
8209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8210 if eval "test \"\${$as_ac_var+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 cat >conftest.
$ac_ext <<_ACEOF
8214 #line 8214 "configure"
8215 #include "confdefs.h"
8216 /* System header to define __stub macros and hopefully few prototypes,
8217 which can conflict with char $ac_func (); below. */
8219 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8231 /* The GNU C library defines this for functions which it implements
8232 to always fail with ENOSYS. Some functions are actually named
8233 something starting with __ and the normal name is an alias. */
8234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 rm -f conftest.
$ac_objext conftest
$ac_exeext
8245 if { (eval echo "$as_me:8245: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>&5
8248 echo "$as_me:8248: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try
='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:8251: \"$ac_try\"") >&5
8254 echo "$as_me:8254: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 eval "$as_ac_var=yes"
8258 echo "$as_me: failed program was:" >&5
8259 cat conftest.
$ac_ext >&5
8260 eval "$as_ac_var=no"
8262 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8264 echo "$as_me:8264: result: `eval echo '${'$as_ac_var'}'`" >&5
8265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8266 if test `eval echo '${'$as_ac_var'}'` = yes; then
8267 cat >>confdefs.h
<<EOF
8268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8274 for ac_header
in sys
/time.h unistd.h
8276 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8277 echo "$as_me:8277: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8283 #line 8283 "configure"
8284 #include "confdefs.h"
8285 #include <$ac_header>
8287 if { (eval echo "$as_me:8287: \"$ac_cpp conftest.$ac_ext\"") >&5
8288 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8290 egrep -v '^ *\+' conftest.er1
>conftest.err
8292 cat conftest.err
>&5
8293 echo "$as_me:8293: \$? = $ac_status" >&5
8294 (exit $ac_status); } >/dev
/null
; then
8295 if test -s conftest.err
; then
8296 ac_cpp_err
=$ac_c_preproc_warn_flag
8303 if test -z "$ac_cpp_err"; then
8304 eval "$as_ac_Header=yes"
8306 echo "$as_me: failed program was:" >&5
8307 cat conftest.
$ac_ext >&5
8308 eval "$as_ac_Header=no"
8310 rm -f conftest.err conftest.
$ac_ext
8312 echo "$as_me:8312: result: `eval echo '${'$as_ac_Header'}'`" >&5
8313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8315 cat >>confdefs.h
<<EOF
8316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8322 for ac_func
in alarm
8324 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8325 echo "$as_me:8325: checking for $ac_func" >&5
8326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8327 if eval "test \"\${$as_ac_var+set}\" = set"; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.
$ac_ext <<_ACEOF
8331 #line 8331 "configure"
8332 #include "confdefs.h"
8333 /* System header to define __stub macros and hopefully few prototypes,
8334 which can conflict with char $ac_func (); below. */
8336 /* Override any gcc2 internal prototype to avoid an error. */
8340 /* We use char because int might match the return type of a gcc2
8341 builtin and then its argument prototype would still apply. */
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 rm -f conftest.
$ac_objext conftest
$ac_exeext
8362 if { (eval echo "$as_me:8362: \"$ac_link\"") >&5
8363 (eval $ac_link) 2>&5
8365 echo "$as_me:8365: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try
='test -s conftest$ac_exeext'
8368 { (eval echo "$as_me:8368: \"$ac_try\"") >&5
8371 echo "$as_me:8371: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 eval "$as_ac_var=yes"
8375 echo "$as_me: failed program was:" >&5
8376 cat conftest.
$ac_ext >&5
8377 eval "$as_ac_var=no"
8379 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8381 echo "$as_me:8381: result: `eval echo '${'$as_ac_var'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8383 if test `eval echo '${'$as_ac_var'}'` = yes; then
8384 cat >>confdefs.h
<<EOF
8385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8391 echo "$as_me:8391: checking for working mktime" >&5
8392 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8393 if test "${ac_cv_func_working_mktime+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 if test "$cross_compiling" = yes; then
8397 ac_cv_func_working_mktime
=no
8399 cat >conftest.
$ac_ext <<_ACEOF
8400 #line 8400 "configure"
8401 #include "confdefs.h"
8402 /* Test program from Paul Eggert and Tony Leneis. */
8403 #if TIME_WITH_SYS_TIME
8404 # include <sys/time.h>
8407 # if HAVE_SYS_TIME_H
8408 # include <sys/time.h>
8415 # include <unistd.h>
8419 # define alarm(X) /* empty */
8422 /* Work around redefinition to rpl_putenv by other config tests. */
8425 static time_t time_t_max;
8427 /* Values we'll use to set the TZ environment variable. */
8428 static const char *const tz_strings[] = {
8429 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8430 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8432 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8434 /* Fail if mktime fails to convert a date in the spring-forward gap.
8435 Based on a problem report from Andreas Jaeger. */
8437 spring_forward_gap ()
8439 /* glibc (up to about 1998-10-07) failed this test. */
8442 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8443 instead of "TZ=America/Vancouver" in order to detect the bug even
8444 on systems that don't support the Olson extension, or don't have the
8445 full zoneinfo tables installed. */
8446 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8455 if (mktime (&tm) == (time_t)-1)
8464 if ((lt = localtime (&now)) && mktime (lt) != now)
8466 now = time_t_max - now;
8467 if ((lt = localtime (&now)) && mktime (lt) != now)
8474 /* Based on code from Ariel Faigon. */
8484 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8494 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8496 if (now != (time_t) -1)
8498 struct tm *lt = localtime (&now);
8500 && lt->tm_year == tm.tm_year
8501 && lt->tm_mon == tm.tm_mon
8502 && lt->tm_mday == tm.tm_mday
8503 && lt->tm_hour == tm.tm_hour
8504 && lt->tm_min == tm.tm_min
8505 && lt->tm_sec == tm.tm_sec
8506 && lt->tm_yday == tm.tm_yday
8507 && lt->tm_wday == tm.tm_wday
8508 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8509 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8520 /* This test makes some buggy mktime implementations loop.
8521 Give up after 60 seconds; a mktime slower than that
8522 isn't worth using anyway. */
8525 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8528 delta = time_t_max / 997; /* a suitable prime number */
8529 for (i = 0; i < N_STRINGS; i++)
8532 putenv (tz_strings[i]);
8534 for (t = 0; t <= time_t_max - delta; t += delta)
8536 mktime_test ((time_t) 60 * 60);
8537 mktime_test ((time_t) 60 * 60 * 24);
8539 for (j = 1; 0 < j; j *= 2)
8541 bigtime_test (j - 1);
8544 spring_forward_gap ();
8548 rm -f conftest
$ac_exeext
8549 if { (eval echo "$as_me:8549: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8552 echo "$as_me:8552: \$? = $ac_status" >&5
8553 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8554 { (eval echo "$as_me:8554: \"$ac_try\"") >&5
8557 echo "$as_me:8557: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_func_working_mktime
=yes
8561 echo "$as_me: program exited with status $ac_status" >&5
8562 echo "$as_me: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8564 ac_cv_func_working_mktime
=no
8566 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8569 echo "$as_me:8569: result: $ac_cv_func_working_mktime" >&5
8570 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8571 if test $ac_cv_func_working_mktime = no
; then
8572 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8575 if test "$ac_cv_func_working_mktime" = no
; then
8576 cat >>confdefs.h
<<\EOF
8577 #define BROKEN_MKTIME 1
8582 ac_have_func
=no
# yes means we've found a way to get the load average.
8586 # Check for getloadavg, but be sure not to touch the cache variable.
8587 (echo "$as_me:8587: checking for getloadavg" >&5
8588 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8589 if test "${ac_cv_func_getloadavg+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 cat >conftest.
$ac_ext <<_ACEOF
8593 #line 8593 "configure"
8594 #include "confdefs.h"
8595 /* System header to define __stub macros and hopefully few prototypes,
8596 which can conflict with char getloadavg (); below. */
8598 /* Override any gcc2 internal prototype to avoid an error. */
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8610 /* The GNU C library defines this for functions which it implements
8611 to always fail with ENOSYS. Some functions are actually named
8612 something starting with __ and the normal name is an alias. */
8613 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8623 rm -f conftest.
$ac_objext conftest
$ac_exeext
8624 if { (eval echo "$as_me:8624: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try
='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:8630: \"$ac_try\"") >&5
8633 echo "$as_me:8633: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_func_getloadavg
=yes
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.
$ac_ext >&5
8639 ac_cv_func_getloadavg
=no
8641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8643 echo "$as_me:8643: result: $ac_cv_func_getloadavg" >&5
8644 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8645 if test $ac_cv_func_getloadavg = yes; then
8650 ) && ac_have_func
=yes
8652 # On HPUX9, an unprivileged user can get load averages through this function.
8654 for ac_func
in pstat_getdynamic
8656 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8657 echo "$as_me:8657: checking for $ac_func" >&5
8658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8659 if eval "test \"\${$as_ac_var+set}\" = set"; then
8660 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 cat >conftest.
$ac_ext <<_ACEOF
8663 #line 8663 "configure"
8664 #include "confdefs.h"
8665 /* System header to define __stub macros and hopefully few prototypes,
8666 which can conflict with char $ac_func (); below. */
8668 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8680 /* The GNU C library defines this for functions which it implements
8681 to always fail with ENOSYS. Some functions are actually named
8682 something starting with __ and the normal name is an alias. */
8683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8693 rm -f conftest.
$ac_objext conftest
$ac_exeext
8694 if { (eval echo "$as_me:8694: \"$ac_link\"") >&5
8695 (eval $ac_link) 2>&5
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try
='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:8700: \"$ac_try\"") >&5
8703 echo "$as_me:8703: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 eval "$as_ac_var=yes"
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.
$ac_ext >&5
8709 eval "$as_ac_var=no"
8711 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8713 echo "$as_me:8713: result: `eval echo '${'$as_ac_var'}'`" >&5
8714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8715 if test `eval echo '${'$as_ac_var'}'` = yes; then
8716 cat >>confdefs.h
<<EOF
8717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8723 # Solaris has libkstat which does not require root.
8725 echo "$as_me:8725: checking for kstat_open in -lkstat" >&5
8726 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8727 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 ac_check_lib_save_LIBS
=$LIBS
8731 LIBS
="-lkstat $LIBS"
8732 cat >conftest.
$ac_ext <<_ACEOF
8733 #line 8733 "configure"
8734 #include "confdefs.h"
8736 /* Override any gcc2 internal prototype to avoid an error. */
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8751 rm -f conftest.
$ac_objext conftest
$ac_exeext
8752 if { (eval echo "$as_me:8752: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8755 echo "$as_me:8755: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try
='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:8758: \"$ac_try\"") >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_lib_kstat_kstat_open
=yes
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.
$ac_ext >&5
8767 ac_cv_lib_kstat_kstat_open
=no
8769 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8770 LIBS
=$ac_check_lib_save_LIBS
8772 echo "$as_me:8772: result: $ac_cv_lib_kstat_kstat_open" >&5
8773 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8774 if test $ac_cv_lib_kstat_kstat_open = yes; then
8775 cat >>confdefs.h
<<EOF
8776 #define HAVE_LIBKSTAT 1
8779 LIBS
="-lkstat $LIBS"
8783 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
8785 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8786 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8787 # to get the right answer into the cache.
8788 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8789 if test $ac_have_func = no
; then
8790 echo "$as_me:8790: checking for elf_begin in -lelf" >&5
8791 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8792 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 ac_check_lib_save_LIBS
=$LIBS
8797 cat >conftest.
$ac_ext <<_ACEOF
8798 #line 8798 "configure"
8799 #include "confdefs.h"
8801 /* Override any gcc2 internal prototype to avoid an error. */
8805 /* We use char because int might match the return type of a gcc2
8806 builtin and then its argument prototype would still apply. */
8816 rm -f conftest.
$ac_objext conftest
$ac_exeext
8817 if { (eval echo "$as_me:8817: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>&5
8820 echo "$as_me:8820: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try
='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:8823: \"$ac_try\"") >&5
8826 echo "$as_me:8826: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_cv_lib_elf_elf_begin
=yes
8830 echo "$as_me: failed program was:" >&5
8831 cat conftest.
$ac_ext >&5
8832 ac_cv_lib_elf_elf_begin
=no
8834 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8835 LIBS
=$ac_check_lib_save_LIBS
8837 echo "$as_me:8837: result: $ac_cv_lib_elf_elf_begin" >&5
8838 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8839 if test $ac_cv_lib_elf_elf_begin = yes; then
8844 if test $ac_have_func = no
; then
8845 echo "$as_me:8845: checking for kvm_open in -lkvm" >&5
8846 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8847 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 ac_check_lib_save_LIBS
=$LIBS
8852 cat >conftest.
$ac_ext <<_ACEOF
8853 #line 8853 "configure"
8854 #include "confdefs.h"
8856 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8871 rm -f conftest.
$ac_objext conftest
$ac_exeext
8872 if { (eval echo "$as_me:8872: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
8877 { ac_try
='test -s conftest$ac_exeext'
8878 { (eval echo "$as_me:8878: \"$ac_try\"") >&5
8881 echo "$as_me:8881: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8883 ac_cv_lib_kvm_kvm_open
=yes
8885 echo "$as_me: failed program was:" >&5
8886 cat conftest.
$ac_ext >&5
8887 ac_cv_lib_kvm_kvm_open
=no
8889 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8890 LIBS
=$ac_check_lib_save_LIBS
8892 echo "$as_me:8892: result: $ac_cv_lib_kvm_kvm_open" >&5
8893 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8894 if test $ac_cv_lib_kvm_kvm_open = yes; then
8898 # Check for the 4.4BSD definition of getloadavg.
8899 echo "$as_me:8899: checking for getloadavg in -lutil" >&5
8900 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8901 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_check_lib_save_LIBS
=$LIBS
8906 cat >conftest.
$ac_ext <<_ACEOF
8907 #line 8907 "configure"
8908 #include "confdefs.h"
8910 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8925 rm -f conftest.
$ac_objext conftest
$ac_exeext
8926 if { (eval echo "$as_me:8926: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>&5
8929 echo "$as_me:8929: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try
='test -s conftest$ac_exeext'
8932 { (eval echo "$as_me:8932: \"$ac_try\"") >&5
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); }; }; then
8937 ac_cv_lib_util_getloadavg
=yes
8939 echo "$as_me: failed program was:" >&5
8940 cat conftest.
$ac_ext >&5
8941 ac_cv_lib_util_getloadavg
=no
8943 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8944 LIBS
=$ac_check_lib_save_LIBS
8946 echo "$as_me:8946: result: $ac_cv_lib_util_getloadavg" >&5
8947 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8948 if test $ac_cv_lib_util_getloadavg = yes; then
8949 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
8954 if test $ac_have_func = no
; then
8955 # There is a commonly available library for RS/6000 AIX.
8956 # Since it is not a standard part of AIX, it might be installed locally.
8957 ac_getloadavg_LIBS
=$LIBS
8958 LIBS
="-L/usr/local/lib $LIBS"
8959 echo "$as_me:8959: checking for getloadavg in -lgetloadavg" >&5
8960 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8961 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
8964 ac_check_lib_save_LIBS
=$LIBS
8965 LIBS
="-lgetloadavg $LIBS"
8966 cat >conftest.
$ac_ext <<_ACEOF
8967 #line 8967 "configure"
8968 #include "confdefs.h"
8970 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8985 rm -f conftest.
$ac_objext conftest
$ac_exeext
8986 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8987 (eval $ac_link) 2>&5
8989 echo "$as_me:8989: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try
='test -s conftest$ac_exeext'
8992 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8995 echo "$as_me:8995: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_lib_getloadavg_getloadavg
=yes
8999 echo "$as_me: failed program was:" >&5
9000 cat conftest.
$ac_ext >&5
9001 ac_cv_lib_getloadavg_getloadavg
=no
9003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9004 LIBS
=$ac_check_lib_save_LIBS
9006 echo "$as_me:9006: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9007 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9008 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9009 LIBS
="-lgetloadavg $LIBS"
9011 LIBS
=$ac_getloadavg_LIBS
9016 # Make sure it is really in the library, if we think we found it,
9017 # otherwise set up the replacement function.
9019 for ac_func
in getloadavg
9021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 echo "$as_me:9022: checking for $ac_func" >&5
9023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9024 if eval "test \"\${$as_ac_var+set}\" = set"; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.
$ac_ext <<_ACEOF
9028 #line 9028 "configure"
9029 #include "confdefs.h"
9030 /* System header to define __stub macros and hopefully few prototypes,
9031 which can conflict with char $ac_func (); below. */
9033 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9045 /* The GNU C library defines this for functions which it implements
9046 to always fail with ENOSYS. Some functions are actually named
9047 something starting with __ and the normal name is an alias. */
9048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9058 rm -f conftest.
$ac_objext conftest
$ac_exeext
9059 if { (eval echo "$as_me:9059: \"$ac_link\"") >&5
9060 (eval $ac_link) 2>&5
9062 echo "$as_me:9062: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try
='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:9065: \"$ac_try\"") >&5
9068 echo "$as_me:9068: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 eval "$as_ac_var=yes"
9072 echo "$as_me: failed program was:" >&5
9073 cat conftest.
$ac_ext >&5
9074 eval "$as_ac_var=no"
9076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9078 echo "$as_me:9078: result: `eval echo '${'$as_ac_var'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9080 if test `eval echo '${'$as_ac_var'}'` = yes; then
9081 cat >>confdefs.h
<<EOF
9082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9086 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9088 cat >>confdefs.h
<<\EOF
9089 #define C_GETLOADAVG 1
9092 # Figure out what our getloadavg.c needs.
9094 echo "$as_me:9094: checking for sys/dg_sys_info.h" >&5
9095 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9096 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9100 #line 9100 "configure"
9101 #include "confdefs.h"
9102 #include <sys/dg_sys_info.h>
9104 if { (eval echo "$as_me:9104: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9107 egrep -v '^ *\+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev
/null
; then
9112 if test -s conftest.err
; then
9113 ac_cpp_err
=$ac_c_preproc_warn_flag
9120 if test -z "$ac_cpp_err"; then
9121 ac_cv_header_sys_dg_sys_info_h
=yes
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.
$ac_ext >&5
9125 ac_cv_header_sys_dg_sys_info_h
=no
9127 rm -f conftest.err conftest.
$ac_ext
9129 echo "$as_me:9129: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9130 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9131 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9134 cat >>confdefs.h
<<\EOF
9138 echo "$as_me:9138: checking for dg_sys_info in -ldgc" >&5
9139 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9140 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 ac_check_lib_save_LIBS
=$LIBS
9145 cat >conftest.
$ac_ext <<_ACEOF
9146 #line 9146 "configure"
9147 #include "confdefs.h"
9149 /* Override any gcc2 internal prototype to avoid an error. */
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155 char dg_sys_info ();
9164 rm -f conftest.
$ac_objext conftest
$ac_exeext
9165 if { (eval echo "$as_me:9165: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>&5
9168 echo "$as_me:9168: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try
='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:9171: \"$ac_try\"") >&5
9174 echo "$as_me:9174: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_lib_dgc_dg_sys_info
=yes
9178 echo "$as_me: failed program was:" >&5
9179 cat conftest.
$ac_ext >&5
9180 ac_cv_lib_dgc_dg_sys_info
=no
9182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9183 LIBS
=$ac_check_lib_save_LIBS
9185 echo "$as_me:9185: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9186 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9187 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9188 cat >>confdefs.h
<<EOF
9189 #define HAVE_LIBDGC 1
9198 echo "$as_me:9198: checking for locale.h" >&5
9199 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9200 if test "${ac_cv_header_locale_h+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.
$ac_ext <<_ACEOF
9204 #line 9204 "configure"
9205 #include "confdefs.h"
9208 if { (eval echo "$as_me:9208: \"$ac_cpp conftest.$ac_ext\"") >&5
9209 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9211 egrep -v '^ *\+' conftest.er1
>conftest.err
9213 cat conftest.err
>&5
9214 echo "$as_me:9214: \$? = $ac_status" >&5
9215 (exit $ac_status); } >/dev
/null
; then
9216 if test -s conftest.err
; then
9217 ac_cpp_err
=$ac_c_preproc_warn_flag
9224 if test -z "$ac_cpp_err"; then
9225 ac_cv_header_locale_h
=yes
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.
$ac_ext >&5
9229 ac_cv_header_locale_h
=no
9231 rm -f conftest.err conftest.
$ac_ext
9233 echo "$as_me:9233: result: $ac_cv_header_locale_h" >&5
9234 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9236 for ac_func
in setlocale
9238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239 echo "$as_me:9239: checking for $ac_func" >&5
9240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_var+set}\" = set"; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 cat >conftest.
$ac_ext <<_ACEOF
9245 #line 9245 "configure"
9246 #include "confdefs.h"
9247 /* System header to define __stub macros and hopefully few prototypes,
9248 which can conflict with char $ac_func (); below. */
9250 /* Override any gcc2 internal prototype to avoid an error. */
9254 /* We use char because int might match the return type of a gcc2
9255 builtin and then its argument prototype would still apply. */
9262 /* The GNU C library defines this for functions which it implements
9263 to always fail with ENOSYS. Some functions are actually named
9264 something starting with __ and the normal name is an alias. */
9265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9275 rm -f conftest.
$ac_objext conftest
$ac_exeext
9276 if { (eval echo "$as_me:9276: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>&5
9279 echo "$as_me:9279: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try
='test -s conftest$ac_exeext'
9282 { (eval echo "$as_me:9282: \"$ac_try\"") >&5
9285 echo "$as_me:9285: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9287 eval "$as_ac_var=yes"
9289 echo "$as_me: failed program was:" >&5
9290 cat conftest.
$ac_ext >&5
9291 eval "$as_ac_var=no"
9293 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9295 echo "$as_me:9295: result: `eval echo '${'$as_ac_var'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297 if test `eval echo '${'$as_ac_var'}'` = yes; then
9298 cat >>confdefs.h
<<EOF
9299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9305 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9306 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9307 # Irix 4.0.5F has the header but not the library.
9308 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9311 cat >>confdefs.h
<<\EOF
9317 if test $ac_have_func = no
; then
9318 echo "$as_me:9318: checking for inq_stats/cpustats.h" >&5
9319 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9320 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 cat >conftest.
$ac_ext <<_ACEOF
9324 #line 9324 "configure"
9325 #include "confdefs.h"
9326 #include <inq_stats/cpustats.h>
9328 if { (eval echo "$as_me:9328: \"$ac_cpp conftest.$ac_ext\"") >&5
9329 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9331 egrep -v '^ *\+' conftest.er1
>conftest.err
9333 cat conftest.err
>&5
9334 echo "$as_me:9334: \$? = $ac_status" >&5
9335 (exit $ac_status); } >/dev
/null
; then
9336 if test -s conftest.err
; then
9337 ac_cpp_err
=$ac_c_preproc_warn_flag
9344 if test -z "$ac_cpp_err"; then
9345 ac_cv_header_inq_stats_cpustats_h
=yes
9347 echo "$as_me: failed program was:" >&5
9348 cat conftest.
$ac_ext >&5
9349 ac_cv_header_inq_stats_cpustats_h
=no
9351 rm -f conftest.err conftest.
$ac_ext
9353 echo "$as_me:9353: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9354 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9355 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9358 cat >>confdefs.h
<<\EOF
9362 cat >>confdefs.h
<<\EOF
9370 if test $ac_have_func = no
; then
9371 echo "$as_me:9371: checking for sys/cpustats.h" >&5
9372 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9373 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 cat >conftest.
$ac_ext <<_ACEOF
9377 #line 9377 "configure"
9378 #include "confdefs.h"
9379 #include <sys/cpustats.h>
9381 if { (eval echo "$as_me:9381: \"$ac_cpp conftest.$ac_ext\"") >&5
9382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9384 egrep -v '^ *\+' conftest.er1
>conftest.err
9386 cat conftest.err
>&5
9387 echo "$as_me:9387: \$? = $ac_status" >&5
9388 (exit $ac_status); } >/dev
/null
; then
9389 if test -s conftest.err
; then
9390 ac_cpp_err
=$ac_c_preproc_warn_flag
9397 if test -z "$ac_cpp_err"; then
9398 ac_cv_header_sys_cpustats_h
=yes
9400 echo "$as_me: failed program was:" >&5
9401 cat conftest.
$ac_ext >&5
9402 ac_cv_header_sys_cpustats_h
=no
9404 rm -f conftest.err conftest.
$ac_ext
9406 echo "$as_me:9406: result: $ac_cv_header_sys_cpustats_h" >&5
9407 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9408 if test $ac_cv_header_sys_cpustats_h = yes; then
9409 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9417 if test $ac_have_func = no
; then
9419 for ac_header
in mach
/mach.h
9421 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9422 echo "$as_me:9422: checking for $ac_header" >&5
9423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 cat >conftest.
$ac_ext <<_ACEOF
9428 #line 9428 "configure"
9429 #include "confdefs.h"
9430 #include <$ac_header>
9432 if { (eval echo "$as_me:9432: \"$ac_cpp conftest.$ac_ext\"") >&5
9433 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9435 egrep -v '^ *\+' conftest.er1
>conftest.err
9437 cat conftest.err
>&5
9438 echo "$as_me:9438: \$? = $ac_status" >&5
9439 (exit $ac_status); } >/dev
/null
; then
9440 if test -s conftest.err
; then
9441 ac_cpp_err
=$ac_c_preproc_warn_flag
9448 if test -z "$ac_cpp_err"; then
9449 eval "$as_ac_Header=yes"
9451 echo "$as_me: failed program was:" >&5
9452 cat conftest.
$ac_ext >&5
9453 eval "$as_ac_Header=no"
9455 rm -f conftest.err conftest.
$ac_ext
9457 echo "$as_me:9457: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9460 cat >>confdefs.h
<<EOF
9461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9469 for ac_header
in nlist.h
9471 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9472 echo "$as_me:9472: checking for $ac_header" >&5
9473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 cat >conftest.
$ac_ext <<_ACEOF
9478 #line 9478 "configure"
9479 #include "confdefs.h"
9480 #include <$ac_header>
9482 if { (eval echo "$as_me:9482: \"$ac_cpp conftest.$ac_ext\"") >&5
9483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9485 egrep -v '^ *\+' conftest.er1
>conftest.err
9487 cat conftest.err
>&5
9488 echo "$as_me:9488: \$? = $ac_status" >&5
9489 (exit $ac_status); } >/dev
/null
; then
9490 if test -s conftest.err
; then
9491 ac_cpp_err
=$ac_c_preproc_warn_flag
9498 if test -z "$ac_cpp_err"; then
9499 eval "$as_ac_Header=yes"
9501 echo "$as_me: failed program was:" >&5
9502 cat conftest.
$ac_ext >&5
9503 eval "$as_ac_Header=no"
9505 rm -f conftest.err conftest.
$ac_ext
9507 echo "$as_me:9507: result: `eval echo '${'$as_ac_Header'}'`" >&5
9508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9510 cat >>confdefs.h
<<EOF
9511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 echo "$as_me:9513: checking for struct nlist.n_un.n_name" >&5
9514 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9515 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 cat >conftest.
$ac_ext <<_ACEOF
9519 #line 9519 "configure"
9520 #include "confdefs.h"
9526 static struct nlist ac_aggr;
9527 if (ac_aggr.n_un.n_name)
9533 rm -f conftest.
$ac_objext
9534 if { (eval echo "$as_me:9534: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9537 echo "$as_me:9537: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try
='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:9540: \"$ac_try\"") >&5
9543 echo "$as_me:9543: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_cv_member_struct_nlist_n_un_n_name
=yes
9547 echo "$as_me: failed program was:" >&5
9548 cat conftest.
$ac_ext >&5
9549 ac_cv_member_struct_nlist_n_un_n_name
=no
9551 rm -f conftest.
$ac_objext conftest.
$ac_ext
9553 echo "$as_me:9553: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9554 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9555 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9557 cat >>confdefs.h
<<EOF
9558 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9561 cat >>confdefs.h
<<\EOF
9562 #define NLIST_NAME_UNION 1
9573 # Some definitions of getloadavg require that the program be installed setgid.
9574 echo "$as_me:9574: checking whether getloadavg requires setgid" >&5
9575 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9576 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.
$ac_ext <<_ACEOF
9580 #line 9580 "configure"
9581 #include "confdefs.h"
9582 #include "$srcdir/getloadavg.c"
9583 #ifdef LDAV_PRIVILEGED
9584 Yowza Am I SETGID yet
9587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9588 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9589 ac_cv_func_getloadavg_setgid
=yes
9591 ac_cv_func_getloadavg_setgid
=no
9596 echo "$as_me:9596: result: $ac_cv_func_getloadavg_setgid" >&5
9597 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9598 if test $ac_cv_func_getloadavg_setgid = yes; then
9601 cat >>confdefs.h
<<\EOF
9602 #define GETLOADAVG_PRIVILEGED 1
9609 if test $ac_cv_func_getloadavg_setgid = yes; then
9610 echo "$as_me:9610: checking group of /dev/kmem" >&5
9611 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9612 if test "${ac_cv_group_kmem+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9616 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9617 # If we got an error (system does not support symlinks), try without -L.
9618 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9619 ac_cv_group_kmem
=`echo $ac_ls_output \
9620 | sed -ne 's/[ ][ ]*/ /g;
9621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9625 echo "$as_me:9625: result: $ac_cv_group_kmem" >&5
9626 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9627 KMEM_GROUP
=$ac_cv_group_kmem
9629 if test "x$ac_save_LIBS" = x
; then
9630 GETLOADAVG_LIBS
=$LIBS
9632 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9636 echo "$as_me:9636: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9637 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9638 if test "${ac_cv_sys_largefile_source+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 ac_cv_sys_largefile_source
=no
9643 cat >conftest.
$ac_ext <<_ACEOF
9644 #line 9644 "configure"
9645 #include "confdefs.h"
9655 rm -f conftest.
$ac_objext
9656 if { (eval echo "$as_me:9656: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>&5
9659 echo "$as_me:9659: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try
='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:9662: \"$ac_try\"") >&5
9665 echo "$as_me:9665: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9669 echo "$as_me: failed program was:" >&5
9670 cat conftest.
$ac_ext >&5
9672 rm -f conftest.
$ac_objext conftest.
$ac_ext
9673 cat >conftest.
$ac_ext <<_ACEOF
9674 #line 9674 "configure"
9675 #include "confdefs.h"
9676 #define _LARGEFILE_SOURCE 1
9686 rm -f conftest.
$ac_objext
9687 if { (eval echo "$as_me:9687: \"$ac_compile\"") >&5
9688 (eval $ac_compile) 2>&5
9690 echo "$as_me:9690: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try
='test -s conftest.$ac_objext'
9693 { (eval echo "$as_me:9693: \"$ac_try\"") >&5
9696 echo "$as_me:9696: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_sys_largefile_source
=1; break
9700 echo "$as_me: failed program was:" >&5
9701 cat conftest.
$ac_ext >&5
9703 rm -f conftest.
$ac_objext conftest.
$ac_ext
9707 echo "$as_me:9707: result: $ac_cv_sys_largefile_source" >&5
9708 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9709 if test "$ac_cv_sys_largefile_source" != no
; then
9711 cat >>confdefs.h
<<EOF
9712 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9718 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9719 # in glibc 2.1.3, but that breaks too many other things.
9720 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9721 echo "$as_me:9721: checking for fseeko" >&5
9722 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9723 if test "${ac_cv_func_fseeko+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.
$ac_ext <<_ACEOF
9727 #line 9727 "configure"
9728 #include "confdefs.h"
9733 return fseeko && fseeko (stdin, 0, 0);
9738 rm -f conftest.
$ac_objext conftest
$ac_exeext
9739 if { (eval echo "$as_me:9739: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9742 echo "$as_me:9742: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try
='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:9745: \"$ac_try\"") >&5
9748 echo "$as_me:9748: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_func_fseeko
=yes
9752 echo "$as_me: failed program was:" >&5
9753 cat conftest.
$ac_ext >&5
9754 ac_cv_func_fseeko
=no
9756 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9758 echo "$as_me:9758: result: $ac_cv_func_fseeko" >&5
9759 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9760 if test $ac_cv_func_fseeko = yes; then
9762 cat >>confdefs.h
<<\EOF
9763 #define HAVE_FSEEKO 1
9770 for ac_func
in grantpt
9772 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9773 echo "$as_me:9773: checking for $ac_func" >&5
9774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9775 if eval "test \"\${$as_ac_var+set}\" = set"; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.
$ac_ext <<_ACEOF
9779 #line 9779 "configure"
9780 #include "confdefs.h"
9781 /* System header to define __stub macros and hopefully few prototypes,
9782 which can conflict with char $ac_func (); below. */
9784 /* Override any gcc2 internal prototype to avoid an error. */
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9796 /* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9809 rm -f conftest.
$ac_objext conftest
$ac_exeext
9810 if { (eval echo "$as_me:9810: \"$ac_link\"") >&5
9811 (eval $ac_link) 2>&5
9813 echo "$as_me:9813: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try
='test -s conftest$ac_exeext'
9816 { (eval echo "$as_me:9816: \"$ac_try\"") >&5
9819 echo "$as_me:9819: \$? = $ac_status" >&5
9820 (exit $ac_status); }; }; then
9821 eval "$as_ac_var=yes"
9823 echo "$as_me: failed program was:" >&5
9824 cat conftest.
$ac_ext >&5
9825 eval "$as_ac_var=no"
9827 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9829 echo "$as_me:9829: result: `eval echo '${'$as_ac_var'}'`" >&5
9830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9831 if test `eval echo '${'$as_ac_var'}'` = yes; then
9832 cat >>confdefs.h
<<EOF
9833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9839 # PTY-related GNU extensions.
9841 for ac_func
in getpt
9843 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9844 echo "$as_me:9844: checking for $ac_func" >&5
9845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9846 if eval "test \"\${$as_ac_var+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 cat >conftest.
$ac_ext <<_ACEOF
9850 #line 9850 "configure"
9851 #include "confdefs.h"
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below. */
9855 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9880 rm -f conftest.
$ac_objext conftest
$ac_exeext
9881 if { (eval echo "$as_me:9881: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try
='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 eval "$as_ac_var=yes"
9894 echo "$as_me: failed program was:" >&5
9895 cat conftest.
$ac_ext >&5
9896 eval "$as_ac_var=no"
9898 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9900 echo "$as_me:9900: result: `eval echo '${'$as_ac_var'}'`" >&5
9901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9902 if test `eval echo '${'$as_ac_var'}'` = yes; then
9903 cat >>confdefs.h
<<EOF
9904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9910 # Check this now, so that we will NOT find the above functions in ncurses.
9911 # That is because we have not set up to link ncurses in lib-src.
9912 # It's better to believe a function is not available
9913 # than to expect to find it in ncurses.
9915 echo "$as_me:9915: checking for tparm in -lncurses" >&5
9916 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9917 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 ac_check_lib_save_LIBS
=$LIBS
9921 LIBS
="-lncurses $LIBS"
9922 cat >conftest.
$ac_ext <<_ACEOF
9923 #line 9923 "configure"
9924 #include "confdefs.h"
9926 /* Override any gcc2 internal prototype to avoid an error. */
9930 /* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9941 rm -f conftest.
$ac_objext conftest
$ac_exeext
9942 if { (eval echo "$as_me:9942: \"$ac_link\"") >&5
9943 (eval $ac_link) 2>&5
9945 echo "$as_me:9945: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try
='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:9948: \"$ac_try\"") >&5
9951 echo "$as_me:9951: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_lib_ncurses_tparm
=yes
9955 echo "$as_me: failed program was:" >&5
9956 cat conftest.
$ac_ext >&5
9957 ac_cv_lib_ncurses_tparm
=no
9959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9960 LIBS
=$ac_check_lib_save_LIBS
9962 echo "$as_me:9962: result: $ac_cv_lib_ncurses_tparm" >&5
9963 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9964 if test $ac_cv_lib_ncurses_tparm = yes; then
9965 cat >>confdefs.h
<<EOF
9966 #define HAVE_LIBNCURSES 1
9969 LIBS
="-lncurses $LIBS"
9973 # Do we need the Hesiod library to provide the support routines?
9974 if test "$with_hesiod" = yes ; then
9975 # Don't set $LIBS here -- see comments above.
9977 echo "$as_me:9977: checking for res_send" >&5
9978 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
9979 if test "${ac_cv_func_res_send+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.
$ac_ext <<_ACEOF
9983 #line 9983 "configure"
9984 #include "confdefs.h"
9985 /* System header to define __stub macros and hopefully few prototypes,
9986 which can conflict with char res_send (); below. */
9988 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub_res_send) || defined (__stub___res_send)
10013 rm -f conftest.
$ac_objext conftest
$ac_exeext
10014 if { (eval echo "$as_me:10014: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>&5
10017 echo "$as_me:10017: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try
='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:10020: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:10023: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 ac_cv_func_res_send
=yes
10027 echo "$as_me: failed program was:" >&5
10028 cat conftest.
$ac_ext >&5
10029 ac_cv_func_res_send
=no
10031 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10033 echo "$as_me:10033: result: $ac_cv_func_res_send" >&5
10034 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10035 if test $ac_cv_func_res_send = yes; then
10038 echo "$as_me:10038: checking for __res_send" >&5
10039 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10040 if test "${ac_cv_func___res_send+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.
$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char __res_send (); below. */
10048 #include <assert.h>
10049 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10055 char __res_send ();
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub___res_send) || defined (__stub_____res_send)
10074 rm -f conftest.
$ac_objext conftest
$ac_exeext
10075 if { (eval echo "$as_me:10075: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>&5
10078 echo "$as_me:10078: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try
='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:10081: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_func___res_send
=yes
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.
$ac_ext >&5
10090 ac_cv_func___res_send
=no
10092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10094 echo "$as_me:10094: result: $ac_cv_func___res_send" >&5
10095 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10096 if test $ac_cv_func___res_send = yes; then
10099 echo "$as_me:10099: checking for res_send in -lresolv" >&5
10100 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10101 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 ac_check_lib_save_LIBS
=$LIBS
10105 LIBS
="-lresolv $LIBS"
10106 cat >conftest.
$ac_ext <<_ACEOF
10107 #line 10107 "configure"
10108 #include "confdefs.h"
10110 /* Override any gcc2 internal prototype to avoid an error. */
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10125 rm -f conftest.
$ac_objext conftest
$ac_exeext
10126 if { (eval echo "$as_me:10126: \"$ac_link\"") >&5
10127 (eval $ac_link) 2>&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try
='test -s conftest$ac_exeext'
10132 { (eval echo "$as_me:10132: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:10135: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_lib_resolv_res_send
=yes
10139 echo "$as_me: failed program was:" >&5
10140 cat conftest.
$ac_ext >&5
10141 ac_cv_lib_resolv_res_send
=no
10143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10144 LIBS
=$ac_check_lib_save_LIBS
10146 echo "$as_me:10146: result: $ac_cv_lib_resolv_res_send" >&5
10147 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10148 if test $ac_cv_lib_resolv_res_send = yes; then
10151 echo "$as_me:10151: checking for __res_send in -lresolv" >&5
10152 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10153 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS
=$LIBS
10157 LIBS
="-lresolv $LIBS"
10158 cat >conftest.
$ac_ext <<_ACEOF
10159 #line 10159 "configure"
10160 #include "confdefs.h"
10162 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168 char __res_send ();
10177 rm -f conftest.
$ac_objext conftest
$ac_exeext
10178 if { (eval echo "$as_me:10178: \"$ac_link\"") >&5
10179 (eval $ac_link) 2>&5
10181 echo "$as_me:10181: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try
='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:10184: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:10187: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_lib_resolv___res_send
=yes
10191 echo "$as_me: failed program was:" >&5
10192 cat conftest.
$ac_ext >&5
10193 ac_cv_lib_resolv___res_send
=no
10195 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10196 LIBS
=$ac_check_lib_save_LIBS
10198 echo "$as_me:10198: result: $ac_cv_lib_resolv___res_send" >&5
10199 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10200 if test $ac_cv_lib_resolv___res_send = yes; then
10210 if test "$resolv" = yes ; then
10212 cat >>confdefs.h
<<\EOF
10213 #define HAVE_LIBRESOLV 1
10219 echo "$as_me:10219: checking for hes_getmailhost" >&5
10220 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10221 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 cat >conftest.
$ac_ext <<_ACEOF
10225 #line 10225 "configure"
10226 #include "confdefs.h"
10227 /* System header to define __stub macros and hopefully few prototypes,
10228 which can conflict with char hes_getmailhost (); below. */
10229 #include <assert.h>
10230 /* Override any gcc2 internal prototype to avoid an error. */
10234 /* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10236 char hes_getmailhost ();
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10248 f = hes_getmailhost;
10255 rm -f conftest.
$ac_objext conftest
$ac_exeext
10256 if { (eval echo "$as_me:10256: \"$ac_link\"") >&5
10257 (eval $ac_link) 2>&5
10259 echo "$as_me:10259: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try
='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:10262: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:10265: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_func_hes_getmailhost
=yes
10269 echo "$as_me: failed program was:" >&5
10270 cat conftest.
$ac_ext >&5
10271 ac_cv_func_hes_getmailhost
=no
10273 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10275 echo "$as_me:10275: result: $ac_cv_func_hes_getmailhost" >&5
10276 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10277 if test $ac_cv_func_hes_getmailhost = yes; then
10280 echo "$as_me:10280: checking for hes_getmailhost in -lhesiod" >&5
10281 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10282 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 ac_check_lib_save_LIBS
=$LIBS
10286 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10287 cat >conftest.
$ac_ext <<_ACEOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10291 /* Override any gcc2 internal prototype to avoid an error. */
10295 /* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10297 char hes_getmailhost ();
10301 hes_getmailhost ();
10306 rm -f conftest.
$ac_objext conftest
$ac_exeext
10307 if { (eval echo "$as_me:10307: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10310 echo "$as_me:10310: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try
='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:10313: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_hesiod_hes_getmailhost
=yes
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.
$ac_ext >&5
10322 ac_cv_lib_hesiod_hes_getmailhost
=no
10324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10325 LIBS
=$ac_check_lib_save_LIBS
10327 echo "$as_me:10327: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10328 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10330 cat >>confdefs.h
<<\EOF
10331 #define HAVE_LIBHESIOD 1
10342 # These tell us which Kerberos-related libraries to use.
10343 if test "${with_kerberos+set}" = set; then
10345 echo "$as_me:10345: checking for com_err in -lcom_err" >&5
10346 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10347 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 ac_check_lib_save_LIBS
=$LIBS
10351 LIBS
="-lcom_err $LIBS"
10352 cat >conftest.
$ac_ext <<_ACEOF
10353 #line 10353 "configure"
10354 #include "confdefs.h"
10356 /* Override any gcc2 internal prototype to avoid an error. */
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10371 rm -f conftest.
$ac_objext conftest
$ac_exeext
10372 if { (eval echo "$as_me:10372: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>&5
10375 echo "$as_me:10375: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try
='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:10378: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:10381: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_lib_com_err_com_err
=yes
10385 echo "$as_me: failed program was:" >&5
10386 cat conftest.
$ac_ext >&5
10387 ac_cv_lib_com_err_com_err
=no
10389 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10390 LIBS
=$ac_check_lib_save_LIBS
10392 echo "$as_me:10392: result: $ac_cv_lib_com_err_com_err" >&5
10393 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10394 if test $ac_cv_lib_com_err_com_err = yes; then
10395 cat >>confdefs.h
<<EOF
10396 #define HAVE_LIBCOM_ERR 1
10399 LIBS
="-lcom_err $LIBS"
10403 echo "$as_me:10403: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10404 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10405 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 ac_check_lib_save_LIBS
=$LIBS
10409 LIBS
="-lk5crypto $LIBS"
10410 cat >conftest.
$ac_ext <<_ACEOF
10411 #line 10411 "configure"
10412 #include "confdefs.h"
10414 /* Override any gcc2 internal prototype to avoid an error. */
10418 /* We use char because int might match the return type of a gcc2
10419 builtin and then its argument prototype would still apply. */
10420 char mit_des_cbc_encrypt ();
10424 mit_des_cbc_encrypt ();
10429 rm -f conftest.
$ac_objext conftest
$ac_exeext
10430 if { (eval echo "$as_me:10430: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>&5
10433 echo "$as_me:10433: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try
='test -s conftest$ac_exeext'
10436 { (eval echo "$as_me:10436: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:10439: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10443 echo "$as_me: failed program was:" >&5
10444 cat conftest.
$ac_ext >&5
10445 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10448 LIBS
=$ac_check_lib_save_LIBS
10450 echo "$as_me:10450: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10451 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10452 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10453 cat >>confdefs.h
<<EOF
10454 #define HAVE_LIBK5CRYPTO 1
10457 LIBS
="-lk5crypto $LIBS"
10461 echo "$as_me:10461: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10462 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10463 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_check_lib_save_LIBS
=$LIBS
10467 LIBS
="-lcrypto $LIBS"
10468 cat >conftest.
$ac_ext <<_ACEOF
10469 #line 10469 "configure"
10470 #include "confdefs.h"
10472 /* Override any gcc2 internal prototype to avoid an error. */
10476 /* We use char because int might match the return type of a gcc2
10477 builtin and then its argument prototype would still apply. */
10478 char mit_des_cbc_encrypt ();
10482 mit_des_cbc_encrypt ();
10487 rm -f conftest.
$ac_objext conftest
$ac_exeext
10488 if { (eval echo "$as_me:10488: \"$ac_link\"") >&5
10489 (eval $ac_link) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try
='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10501 echo "$as_me: failed program was:" >&5
10502 cat conftest.
$ac_ext >&5
10503 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10505 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10506 LIBS
=$ac_check_lib_save_LIBS
10508 echo "$as_me:10508: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10509 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10510 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10511 cat >>confdefs.h
<<EOF
10512 #define HAVE_LIBCRYPTO 1
10515 LIBS
="-lcrypto $LIBS"
10519 echo "$as_me:10519: checking for krb5_init_context in -lkrb5" >&5
10520 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10521 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_check_lib_save_LIBS
=$LIBS
10525 LIBS
="-lkrb5 $LIBS"
10526 cat >conftest.
$ac_ext <<_ACEOF
10527 #line 10527 "configure"
10528 #include "confdefs.h"
10530 /* Override any gcc2 internal prototype to avoid an error. */
10534 /* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
10536 char krb5_init_context ();
10540 krb5_init_context ();
10545 rm -f conftest.
$ac_objext conftest
$ac_exeext
10546 if { (eval echo "$as_me:10546: \"$ac_link\"") >&5
10547 (eval $ac_link) 2>&5
10549 echo "$as_me:10549: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try
='test -s conftest$ac_exeext'
10552 { (eval echo "$as_me:10552: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:10555: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_lib_krb5_krb5_init_context
=yes
10559 echo "$as_me: failed program was:" >&5
10560 cat conftest.
$ac_ext >&5
10561 ac_cv_lib_krb5_krb5_init_context
=no
10563 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10564 LIBS
=$ac_check_lib_save_LIBS
10566 echo "$as_me:10566: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10567 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10568 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10569 cat >>confdefs.h
<<EOF
10570 #define HAVE_LIBKRB5 1
10573 LIBS
="-lkrb5 $LIBS"
10577 if test "${with_kerberos5+set}" != set; then
10579 echo "$as_me:10579: checking for des_cbc_encrypt in -ldes425" >&5
10580 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10581 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 ac_check_lib_save_LIBS
=$LIBS
10585 LIBS
="-ldes425 $LIBS"
10586 cat >conftest.
$ac_ext <<_ACEOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10590 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char des_cbc_encrypt ();
10600 des_cbc_encrypt ();
10605 rm -f conftest.
$ac_objext conftest
$ac_exeext
10606 if { (eval echo "$as_me:10606: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try
='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_des425_des_cbc_encrypt
=yes
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.
$ac_ext >&5
10621 ac_cv_lib_des425_des_cbc_encrypt
=no
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10624 LIBS
=$ac_check_lib_save_LIBS
10626 echo "$as_me:10626: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10627 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10628 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10629 cat >>confdefs.h
<<EOF
10630 #define HAVE_LIBDES425 1
10633 LIBS
="-ldes425 $LIBS"
10637 echo "$as_me:10637: checking for des_cbc_encrypt in -ldes" >&5
10638 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10639 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 ac_check_lib_save_LIBS
=$LIBS
10644 cat >conftest.
$ac_ext <<_ACEOF
10645 #line 10645 "configure"
10646 #include "confdefs.h"
10648 /* Override any gcc2 internal prototype to avoid an error. */
10652 /* We use char because int might match the return type of a gcc2
10653 builtin and then its argument prototype would still apply. */
10654 char des_cbc_encrypt ();
10658 des_cbc_encrypt ();
10663 rm -f conftest.
$ac_objext conftest
$ac_exeext
10664 if { (eval echo "$as_me:10664: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5
10667 echo "$as_me:10667: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
10669 { ac_try
='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:10670: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:10673: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_cv_lib_des_des_cbc_encrypt
=yes
10677 echo "$as_me: failed program was:" >&5
10678 cat conftest.
$ac_ext >&5
10679 ac_cv_lib_des_des_cbc_encrypt
=no
10681 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10682 LIBS
=$ac_check_lib_save_LIBS
10684 echo "$as_me:10684: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10685 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10686 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10687 cat >>confdefs.h
<<EOF
10688 #define HAVE_LIBDES 1
10697 echo "$as_me:10697: checking for krb_get_cred in -lkrb4" >&5
10698 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10699 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 ac_check_lib_save_LIBS
=$LIBS
10703 LIBS
="-lkrb4 $LIBS"
10704 cat >conftest.
$ac_ext <<_ACEOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10708 /* Override any gcc2 internal prototype to avoid an error. */
10712 /* We use char because int might match the return type of a gcc2
10713 builtin and then its argument prototype would still apply. */
10714 char krb_get_cred ();
10723 rm -f conftest.
$ac_objext conftest
$ac_exeext
10724 if { (eval echo "$as_me:10724: \"$ac_link\"") >&5
10725 (eval $ac_link) 2>&5
10727 echo "$as_me:10727: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try
='test -s conftest$ac_exeext'
10730 { (eval echo "$as_me:10730: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_lib_krb4_krb_get_cred
=yes
10737 echo "$as_me: failed program was:" >&5
10738 cat conftest.
$ac_ext >&5
10739 ac_cv_lib_krb4_krb_get_cred
=no
10741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10742 LIBS
=$ac_check_lib_save_LIBS
10744 echo "$as_me:10744: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10745 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10746 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10747 cat >>confdefs.h
<<EOF
10748 #define HAVE_LIBKRB4 1
10751 LIBS
="-lkrb4 $LIBS"
10755 echo "$as_me:10755: checking for krb_get_cred in -lkrb" >&5
10756 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10757 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 ac_check_lib_save_LIBS
=$LIBS
10762 cat >conftest.
$ac_ext <<_ACEOF
10763 #line 10763 "configure"
10764 #include "confdefs.h"
10766 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772 char krb_get_cred ();
10781 rm -f conftest.
$ac_objext conftest
$ac_exeext
10782 if { (eval echo "$as_me:10782: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:10785: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try
='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:10788: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:10791: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_lib_krb_krb_get_cred
=yes
10795 echo "$as_me: failed program was:" >&5
10796 cat conftest.
$ac_ext >&5
10797 ac_cv_lib_krb_krb_get_cred
=no
10799 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10800 LIBS
=$ac_check_lib_save_LIBS
10802 echo "$as_me:10802: result: $ac_cv_lib_krb_krb_get_cred" >&5
10803 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10804 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10805 cat >>confdefs.h
<<EOF
10806 #define HAVE_LIBKRB 1
10817 if test "${with_kerberos5+set}" = set; then
10819 for ac_header
in krb5.h
10821 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10822 echo "$as_me:10822: checking for $ac_header" >&5
10823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 cat >conftest.
$ac_ext <<_ACEOF
10828 #line 10828 "configure"
10829 #include "confdefs.h"
10830 #include <$ac_header>
10832 if { (eval echo "$as_me:10832: \"$ac_cpp conftest.$ac_ext\"") >&5
10833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10835 egrep -v '^ *\+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 echo "$as_me:10838: \$? = $ac_status" >&5
10839 (exit $ac_status); } >/dev
/null
; then
10840 if test -s conftest.err
; then
10841 ac_cpp_err
=$ac_c_preproc_warn_flag
10848 if test -z "$ac_cpp_err"; then
10849 eval "$as_ac_Header=yes"
10851 echo "$as_me: failed program was:" >&5
10852 cat conftest.
$ac_ext >&5
10853 eval "$as_ac_Header=no"
10855 rm -f conftest.err conftest.
$ac_ext
10857 echo "$as_me:10857: result: `eval echo '${'$as_ac_Header'}'`" >&5
10858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10860 cat >>confdefs.h
<<EOF
10861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10869 for ac_header
in des.h
10871 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10872 echo "$as_me:10872: checking for $ac_header" >&5
10873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 cat >conftest.
$ac_ext <<_ACEOF
10878 #line 10878 "configure"
10879 #include "confdefs.h"
10880 #include <$ac_header>
10882 if { (eval echo "$as_me:10882: \"$ac_cpp conftest.$ac_ext\"") >&5
10883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10885 egrep -v '^ *\+' conftest.er1
>conftest.err
10887 cat conftest.err
>&5
10888 echo "$as_me:10888: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev
/null
; then
10890 if test -s conftest.err
; then
10891 ac_cpp_err
=$ac_c_preproc_warn_flag
10898 if test -z "$ac_cpp_err"; then
10899 eval "$as_ac_Header=yes"
10901 echo "$as_me: failed program was:" >&5
10902 cat conftest.
$ac_ext >&5
10903 eval "$as_ac_Header=no"
10905 rm -f conftest.err conftest.
$ac_ext
10907 echo "$as_me:10907: result: `eval echo '${'$as_ac_Header'}'`" >&5
10908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10910 cat >>confdefs.h
<<EOF
10911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10916 for ac_header
in kerberosIV
/des.h
10918 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10919 echo "$as_me:10919: checking for $ac_header" >&5
10920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.
$ac_ext <<_ACEOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10927 #include <$ac_header>
10929 if { (eval echo "$as_me:10929: \"$ac_cpp conftest.$ac_ext\"") >&5
10930 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10932 egrep -v '^ *\+' conftest.er1
>conftest.err
10934 cat conftest.err
>&5
10935 echo "$as_me:10935: \$? = $ac_status" >&5
10936 (exit $ac_status); } >/dev
/null
; then
10937 if test -s conftest.err
; then
10938 ac_cpp_err
=$ac_c_preproc_warn_flag
10945 if test -z "$ac_cpp_err"; then
10946 eval "$as_ac_Header=yes"
10948 echo "$as_me: failed program was:" >&5
10949 cat conftest.
$ac_ext >&5
10950 eval "$as_ac_Header=no"
10952 rm -f conftest.err conftest.
$ac_ext
10954 echo "$as_me:10954: result: `eval echo '${'$as_ac_Header'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10957 cat >>confdefs.h
<<EOF
10958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10963 for ac_header
in kerberos
/des.h
10965 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966 echo "$as_me:10966: checking for $ac_header" >&5
10967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 cat >conftest.
$ac_ext <<_ACEOF
10972 #line 10972 "configure"
10973 #include "confdefs.h"
10974 #include <$ac_header>
10976 if { (eval echo "$as_me:10976: \"$ac_cpp conftest.$ac_ext\"") >&5
10977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10979 egrep -v '^ *\+' conftest.er1
>conftest.err
10981 cat conftest.err
>&5
10982 echo "$as_me:10982: \$? = $ac_status" >&5
10983 (exit $ac_status); } >/dev
/null
; then
10984 if test -s conftest.err
; then
10985 ac_cpp_err
=$ac_c_preproc_warn_flag
10992 if test -z "$ac_cpp_err"; then
10993 eval "$as_ac_Header=yes"
10995 echo "$as_me: failed program was:" >&5
10996 cat conftest.
$ac_ext >&5
10997 eval "$as_ac_Header=no"
10999 rm -f conftest.err conftest.
$ac_ext
11001 echo "$as_me:11001: result: `eval echo '${'$as_ac_Header'}'`" >&5
11002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11004 cat >>confdefs.h
<<EOF
11005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11017 for ac_header
in krb.h
11019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11020 echo "$as_me:11020: checking for $ac_header" >&5
11021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 cat >conftest.
$ac_ext <<_ACEOF
11026 #line 11026 "configure"
11027 #include "confdefs.h"
11028 #include <$ac_header>
11030 if { (eval echo "$as_me:11030: \"$ac_cpp conftest.$ac_ext\"") >&5
11031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11033 egrep -v '^ *\+' conftest.er1
>conftest.err
11035 cat conftest.err
>&5
11036 echo "$as_me:11036: \$? = $ac_status" >&5
11037 (exit $ac_status); } >/dev
/null
; then
11038 if test -s conftest.err
; then
11039 ac_cpp_err
=$ac_c_preproc_warn_flag
11046 if test -z "$ac_cpp_err"; then
11047 eval "$as_ac_Header=yes"
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.
$ac_ext >&5
11051 eval "$as_ac_Header=no"
11053 rm -f conftest.err conftest.
$ac_ext
11055 echo "$as_me:11055: result: `eval echo '${'$as_ac_Header'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11058 cat >>confdefs.h
<<EOF
11059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11064 for ac_header
in kerberosIV
/krb.h
11066 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 echo "$as_me:11067: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 cat >conftest.
$ac_ext <<_ACEOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11075 #include <$ac_header>
11077 if { (eval echo "$as_me:11077: \"$ac_cpp conftest.$ac_ext\"") >&5
11078 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11080 egrep -v '^ *\+' conftest.er1
>conftest.err
11082 cat conftest.err
>&5
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); } >/dev
/null
; then
11085 if test -s conftest.err
; then
11086 ac_cpp_err
=$ac_c_preproc_warn_flag
11093 if test -z "$ac_cpp_err"; then
11094 eval "$as_ac_Header=yes"
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.
$ac_ext >&5
11098 eval "$as_ac_Header=no"
11100 rm -f conftest.err conftest.
$ac_ext
11102 echo "$as_me:11102: result: `eval echo '${'$as_ac_Header'}'`" >&5
11103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11105 cat >>confdefs.h
<<EOF
11106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11111 for ac_header
in kerberos
/krb.h
11113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11114 echo "$as_me:11114: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.
$ac_ext <<_ACEOF
11120 #line 11120 "configure"
11121 #include "confdefs.h"
11122 #include <$ac_header>
11124 if { (eval echo "$as_me:11124: \"$ac_cpp conftest.$ac_ext\"") >&5
11125 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11127 egrep -v '^ *\+' conftest.er1
>conftest.err
11129 cat conftest.err
>&5
11130 echo "$as_me:11130: \$? = $ac_status" >&5
11131 (exit $ac_status); } >/dev
/null
; then
11132 if test -s conftest.err
; then
11133 ac_cpp_err
=$ac_c_preproc_warn_flag
11140 if test -z "$ac_cpp_err"; then
11141 eval "$as_ac_Header=yes"
11143 echo "$as_me: failed program was:" >&5
11144 cat conftest.
$ac_ext >&5
11145 eval "$as_ac_Header=no"
11147 rm -f conftest.err conftest.
$ac_ext
11149 echo "$as_me:11149: result: `eval echo '${'$as_ac_Header'}'`" >&5
11150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11152 cat >>confdefs.h
<<EOF
11153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11167 for ac_header
in com_err.h
11169 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11170 echo "$as_me:11170: checking for $ac_header" >&5
11171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.
$ac_ext <<_ACEOF
11176 #line 11176 "configure"
11177 #include "confdefs.h"
11178 #include <$ac_header>
11180 if { (eval echo "$as_me:11180: \"$ac_cpp conftest.$ac_ext\"") >&5
11181 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11183 egrep -v '^ *\+' conftest.er1
>conftest.err
11185 cat conftest.err
>&5
11186 echo "$as_me:11186: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev
/null
; then
11188 if test -s conftest.err
; then
11189 ac_cpp_err
=$ac_c_preproc_warn_flag
11196 if test -z "$ac_cpp_err"; then
11197 eval "$as_ac_Header=yes"
11199 echo "$as_me: failed program was:" >&5
11200 cat conftest.
$ac_ext >&5
11201 eval "$as_ac_Header=no"
11203 rm -f conftest.err conftest.
$ac_ext
11205 echo "$as_me:11205: result: `eval echo '${'$as_ac_Header'}'`" >&5
11206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11208 cat >>confdefs.h
<<EOF
11209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 # Solaris requires -lintl if you want strerror (which calls dgettext)
11218 # to return localized messages.
11220 echo "$as_me:11220: checking for dgettext in -lintl" >&5
11221 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11222 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11226 LIBS
="-lintl $LIBS"
11227 cat >conftest.
$ac_ext <<_ACEOF
11228 #line 11228 "configure"
11229 #include "confdefs.h"
11231 /* Override any gcc2 internal prototype to avoid an error. */
11235 /* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11246 rm -f conftest.
$ac_objext conftest
$ac_exeext
11247 if { (eval echo "$as_me:11247: \"$ac_link\"") >&5
11248 (eval $ac_link) 2>&5
11250 echo "$as_me:11250: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try
='test -s conftest$ac_exeext'
11253 { (eval echo "$as_me:11253: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:11256: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_lib_intl_dgettext
=yes
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.
$ac_ext >&5
11262 ac_cv_lib_intl_dgettext
=no
11264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11265 LIBS
=$ac_check_lib_save_LIBS
11267 echo "$as_me:11267: result: $ac_cv_lib_intl_dgettext" >&5
11268 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11269 if test $ac_cv_lib_intl_dgettext = yes; then
11270 cat >>confdefs.h
<<EOF
11271 #define HAVE_LIBINTL 1
11274 LIBS
="-lintl $LIBS"
11278 echo "$as_me:11278: checking whether localtime caches TZ" >&5
11279 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11280 if test "${emacs_cv_localtime_cache+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 if test x
$ac_cv_func_tzset = xyes
; then
11284 if test "$cross_compiling" = yes; then
11285 # If we have tzset, assume the worst when cross-compiling.
11286 emacs_cv_localtime_cache
=yes
11288 cat >conftest.
$ac_ext <<_ACEOF
11289 #line 11289 "configure"
11290 #include "confdefs.h"
11292 extern char **environ;
11296 for (to = from = environ; (*to = *from); from++)
11297 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11300 char TZ_GMT0[] = "TZ=GMT0";
11301 char TZ_PST8[] = "TZ=PST8";
11304 time_t now = time ((time_t *) 0);
11305 int hour_GMT0, hour_unset;
11306 if (putenv (TZ_GMT0) != 0)
11308 hour_GMT0 = localtime (&now)->tm_hour;
11310 hour_unset = localtime (&now)->tm_hour;
11311 if (putenv (TZ_PST8) != 0)
11313 if (localtime (&now)->tm_hour == hour_GMT0)
11316 if (localtime (&now)->tm_hour != hour_unset)
11321 rm -f conftest
$ac_exeext
11322 if { (eval echo "$as_me:11322: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11325 echo "$as_me:11325: \$? = $ac_status" >&5
11326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11327 { (eval echo "$as_me:11327: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:11330: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 emacs_cv_localtime_cache
=no
11334 echo "$as_me: program exited with status $ac_status" >&5
11335 echo "$as_me: failed program was:" >&5
11336 cat conftest.
$ac_ext >&5
11337 emacs_cv_localtime_cache
=yes
11339 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11342 # If we lack tzset, report that localtime does not cache TZ,
11343 # since we can't invalidate the cache if we don't have tzset.
11344 emacs_cv_localtime_cache
=no
11347 echo "$as_me:11347: result: $emacs_cv_localtime_cache" >&5
11348 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11349 if test $emacs_cv_localtime_cache = yes; then
11350 cat >>confdefs.h
<<\EOF
11351 #define LOCALTIME_CACHE 1
11356 if test "x$HAVE_TIMEVAL" = xyes
; then
11358 for ac_func
in gettimeofday
11360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 echo "$as_me:11361: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11363 if eval "test \"\${$as_ac_var+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 cat >conftest.
$ac_ext <<_ACEOF
11367 #line 11367 "configure"
11368 #include "confdefs.h"
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func (); below. */
11371 #include <assert.h>
11372 /* Override any gcc2 internal prototype to avoid an error. */
11376 /* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */
11384 /* The GNU C library defines this for functions which it implements
11385 to always fail with ENOSYS. Some functions are actually named
11386 something starting with __ and the normal name is an alias. */
11387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11397 rm -f conftest.
$ac_objext conftest
$ac_exeext
11398 if { (eval echo "$as_me:11398: \"$ac_link\"") >&5
11399 (eval $ac_link) 2>&5
11401 echo "$as_me:11401: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try
='test -s conftest$ac_exeext'
11404 { (eval echo "$as_me:11404: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:11407: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 eval "$as_ac_var=yes"
11411 echo "$as_me: failed program was:" >&5
11412 cat conftest.
$ac_ext >&5
11413 eval "$as_ac_var=no"
11415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11417 echo "$as_me:11417: result: `eval echo '${'$as_ac_var'}'`" >&5
11418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h
<<EOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11427 echo "$as_me:11427: checking whether gettimeofday can accept two arguments" >&5
11428 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11429 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 cat >conftest.
$ac_ext <<_ACEOF
11433 #line 11433 "configure"
11434 #include "confdefs.h"
11436 #ifdef TIME_WITH_SYS_TIME
11437 #include <sys/time.h>
11440 #ifdef HAVE_SYS_TIME_H
11441 #include <sys/time.h>
11449 struct timeval time;
11450 gettimeofday (&time, 0);
11455 rm -f conftest.
$ac_objext
11456 if { (eval echo "$as_me:11456: \"$ac_compile\"") >&5
11457 (eval $ac_compile) 2>&5
11459 echo "$as_me:11459: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
11461 { ac_try
='test -s conftest.$ac_objext'
11462 { (eval echo "$as_me:11462: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:11465: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 emacs_cv_gettimeofday_two_arguments
=yes
11469 echo "$as_me: failed program was:" >&5
11470 cat conftest.
$ac_ext >&5
11471 emacs_cv_gettimeofday_two_arguments
=no
11473 rm -f conftest.
$ac_objext conftest.
$ac_ext
11475 echo "$as_me:11475: result: $emacs_cv_gettimeofday_two_arguments" >&5
11476 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11477 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11478 cat >>confdefs.h
<<\EOF
11479 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11485 if test "$ac_cv_func_gettimeofday" = yes; then
11486 echo "$as_me:11486: checking for struct timezone" >&5
11487 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11488 if test "${emacs_cv_struct_timezone+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 cat >conftest.
$ac_ext <<_ACEOF
11492 #line 11492 "configure"
11493 #include "confdefs.h"
11494 #include <sys/time.h>
11498 struct timezone tz;
11503 rm -f conftest.
$ac_objext
11504 if { (eval echo "$as_me:11504: \"$ac_compile\"") >&5
11505 (eval $ac_compile) 2>&5
11507 echo "$as_me:11507: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try
='test -s conftest.$ac_objext'
11510 { (eval echo "$as_me:11510: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:11513: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 if test "$cross_compiling" = yes; then
11516 emacs_cv_struct_timezone
=yes
11518 cat >conftest.
$ac_ext <<_ACEOF
11519 #line 11519 "configure"
11520 #include "confdefs.h"
11522 #ifdef TIME_WITH_SYS_TIME
11523 #include <sys/time.h>
11526 #ifdef HAVE_SYS_TIME_H
11527 #include <sys/time.h>
11533 struct timeval time;
11534 struct timezone dummy;
11535 exit (gettimeofday (&time, &dummy));
11538 rm -f conftest
$ac_exeext
11539 if { (eval echo "$as_me:11539: \"$ac_link\"") >&5
11540 (eval $ac_link) 2>&5
11542 echo "$as_me:11542: \$? = $ac_status" >&5
11543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11544 { (eval echo "$as_me:11544: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11547 echo "$as_me:11547: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 emacs_cv_struct_timezone
=yes
11551 echo "$as_me: program exited with status $ac_status" >&5
11552 echo "$as_me: failed program was:" >&5
11553 cat conftest.
$ac_ext >&5
11554 emacs_cv_struct_timezone
=no
11556 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11559 echo "$as_me: failed program was:" >&5
11560 cat conftest.
$ac_ext >&5
11561 emacs_cv_struct_timezone
=no
11563 rm -f conftest.
$ac_objext conftest.
$ac_ext
11565 echo "$as_me:11565: result: $emacs_cv_struct_timezone" >&5
11566 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11570 echo "$as_me:11570: checking for socket" >&5
11571 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11572 if test "${ac_cv_func_socket+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.
$ac_ext <<_ACEOF
11576 #line 11576 "configure"
11577 #include "confdefs.h"
11578 /* System header to define __stub macros and hopefully few prototypes,
11579 which can conflict with char socket (); below. */
11580 #include <assert.h>
11581 /* Override any gcc2 internal prototype to avoid an error. */
11585 /* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11593 /* The GNU C library defines this for functions which it implements
11594 to always fail with ENOSYS. Some functions are actually named
11595 something starting with __ and the normal name is an alias. */
11596 #if defined (__stub_socket) || defined (__stub___socket)
11606 rm -f conftest.
$ac_objext conftest
$ac_exeext
11607 if { (eval echo "$as_me:11607: \"$ac_link\"") >&5
11608 (eval $ac_link) 2>&5
11610 echo "$as_me:11610: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try
='test -s conftest$ac_exeext'
11613 { (eval echo "$as_me:11613: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:11616: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_func_socket
=yes
11620 echo "$as_me: failed program was:" >&5
11621 cat conftest.
$ac_ext >&5
11622 ac_cv_func_socket
=no
11624 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11626 echo "$as_me:11626: result: $ac_cv_func_socket" >&5
11627 echo "${ECHO_T}$ac_cv_func_socket" >&6
11628 if test $ac_cv_func_socket = yes; then
11634 if test $ok_so_far = yes; then
11635 echo "$as_me:11635: checking for netinet/in.h" >&5
11636 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11637 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.
$ac_ext <<_ACEOF
11641 #line 11641 "configure"
11642 #include "confdefs.h"
11643 #include <netinet/in.h>
11645 if { (eval echo "$as_me:11645: \"$ac_cpp conftest.$ac_ext\"") >&5
11646 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11648 egrep -v '^ *\+' conftest.er1
>conftest.err
11650 cat conftest.err
>&5
11651 echo "$as_me:11651: \$? = $ac_status" >&5
11652 (exit $ac_status); } >/dev
/null
; then
11653 if test -s conftest.err
; then
11654 ac_cpp_err
=$ac_c_preproc_warn_flag
11661 if test -z "$ac_cpp_err"; then
11662 ac_cv_header_netinet_in_h
=yes
11664 echo "$as_me: failed program was:" >&5
11665 cat conftest.
$ac_ext >&5
11666 ac_cv_header_netinet_in_h
=no
11668 rm -f conftest.err conftest.
$ac_ext
11670 echo "$as_me:11670: result: $ac_cv_header_netinet_in_h" >&5
11671 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11672 if test $ac_cv_header_netinet_in_h = yes; then
11679 if test $ok_so_far = yes; then
11680 echo "$as_me:11680: checking for arpa/inet.h" >&5
11681 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11682 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.
$ac_ext <<_ACEOF
11686 #line 11686 "configure"
11687 #include "confdefs.h"
11688 #include <arpa/inet.h>
11690 if { (eval echo "$as_me:11690: \"$ac_cpp conftest.$ac_ext\"") >&5
11691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11693 egrep -v '^ *\+' conftest.er1
>conftest.err
11695 cat conftest.err
>&5
11696 echo "$as_me:11696: \$? = $ac_status" >&5
11697 (exit $ac_status); } >/dev
/null
; then
11698 if test -s conftest.err
; then
11699 ac_cpp_err
=$ac_c_preproc_warn_flag
11706 if test -z "$ac_cpp_err"; then
11707 ac_cv_header_arpa_inet_h
=yes
11709 echo "$as_me: failed program was:" >&5
11710 cat conftest.
$ac_ext >&5
11711 ac_cv_header_arpa_inet_h
=no
11713 rm -f conftest.err conftest.
$ac_ext
11715 echo "$as_me:11715: result: $ac_cv_header_arpa_inet_h" >&5
11716 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11717 if test $ac_cv_header_arpa_inet_h = yes; then
11724 if test $ok_so_far = yes; then
11725 cat >>confdefs.h
<<\EOF
11726 #define HAVE_INET_SOCKETS 1
11731 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11732 cat >>confdefs.h
<<\EOF
11733 #define HAVE_AIX_SMT_EXP 1
11738 echo "$as_me:11738: checking whether system supports dynamic ptys" >&5
11739 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11740 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11741 echo "$as_me:11741: result: yes" >&5
11742 echo "${ECHO_T}yes" >&6
11743 cat >>confdefs.h
<<\EOF
11744 #define HAVE_DEV_PTMX 1
11748 echo "$as_me:11748: result: no" >&5
11749 echo "${ECHO_T}no" >&6
11752 echo "$as_me:11752: checking for pid_t" >&5
11753 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11754 if test "${ac_cv_type_pid_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 cat >conftest.
$ac_ext <<_ACEOF
11758 #line 11758 "configure"
11759 #include "confdefs.h"
11760 $ac_includes_default
11766 if (sizeof (pid_t))
11772 rm -f conftest.
$ac_objext
11773 if { (eval echo "$as_me:11773: \"$ac_compile\"") >&5
11774 (eval $ac_compile) 2>&5
11776 echo "$as_me:11776: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try
='test -s conftest.$ac_objext'
11779 { (eval echo "$as_me:11779: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:11782: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_cv_type_pid_t
=yes
11786 echo "$as_me: failed program was:" >&5
11787 cat conftest.
$ac_ext >&5
11788 ac_cv_type_pid_t
=no
11790 rm -f conftest.
$ac_objext conftest.
$ac_ext
11792 echo "$as_me:11792: result: $ac_cv_type_pid_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11794 if test $ac_cv_type_pid_t = yes; then
11798 cat >>confdefs.h
<<EOF
11804 for ac_header
in unistd.h vfork.h
11806 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11807 echo "$as_me:11807: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 cat >conftest.
$ac_ext <<_ACEOF
11813 #line 11813 "configure"
11814 #include "confdefs.h"
11815 #include <$ac_header>
11817 if { (eval echo "$as_me:11817: \"$ac_cpp conftest.$ac_ext\"") >&5
11818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11820 egrep -v '^ *\+' conftest.er1
>conftest.err
11822 cat conftest.err
>&5
11823 echo "$as_me:11823: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev
/null
; then
11825 if test -s conftest.err
; then
11826 ac_cpp_err
=$ac_c_preproc_warn_flag
11833 if test -z "$ac_cpp_err"; then
11834 eval "$as_ac_Header=yes"
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.
$ac_ext >&5
11838 eval "$as_ac_Header=no"
11840 rm -f conftest.err conftest.
$ac_ext
11842 echo "$as_me:11842: result: `eval echo '${'$as_ac_Header'}'`" >&5
11843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11845 cat >>confdefs.h
<<EOF
11846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11852 for ac_func
in fork vfork
11854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11855 echo "$as_me:11855: checking for $ac_func" >&5
11856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_var+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.
$ac_ext <<_ACEOF
11861 #line 11861 "configure"
11862 #include "confdefs.h"
11863 /* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below. */
11865 #include <assert.h>
11866 /* Override any gcc2 internal prototype to avoid an error. */
11870 /* We use char because int might match the return type of a gcc2
11871 builtin and then its argument prototype would still apply. */
11878 /* The GNU C library defines this for functions which it implements
11879 to always fail with ENOSYS. Some functions are actually named
11880 something starting with __ and the normal name is an alias. */
11881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11891 rm -f conftest.
$ac_objext conftest
$ac_exeext
11892 if { (eval echo "$as_me:11892: \"$ac_link\"") >&5
11893 (eval $ac_link) 2>&5
11895 echo "$as_me:11895: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try
='test -s conftest$ac_exeext'
11898 { (eval echo "$as_me:11898: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:11901: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 eval "$as_ac_var=yes"
11905 echo "$as_me: failed program was:" >&5
11906 cat conftest.
$ac_ext >&5
11907 eval "$as_ac_var=no"
11909 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11911 echo "$as_me:11911: result: `eval echo '${'$as_ac_var'}'`" >&5
11912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11913 if test `eval echo '${'$as_ac_var'}'` = yes; then
11914 cat >>confdefs.h
<<EOF
11915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11921 ac_cv_func_fork_works
=$ac_cv_func_fork
11922 if test "x$ac_cv_func_fork" = xyes
; then
11923 echo "$as_me:11923: checking for working fork" >&5
11924 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11925 if test "${ac_cv_func_fork_works+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 if test "$cross_compiling" = yes; then
11929 ac_cv_func_fork_works
=cross
11931 cat >conftest.
$ac_ext <<_ACEOF
11932 /* By Rüdiger Kuhlmann. */
11933 #include <sys/types.h>
11935 # include <unistd.h>
11937 /* Some systems only have a dummy stub for fork() */
11945 rm -f conftest
$ac_exeext
11946 if { (eval echo "$as_me:11946: \"$ac_link\"") >&5
11947 (eval $ac_link) 2>&5
11949 echo "$as_me:11949: \$? = $ac_status" >&5
11950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11951 { (eval echo "$as_me:11951: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_func_fork_works
=yes
11958 echo "$as_me: program exited with status $ac_status" >&5
11959 echo "$as_me: failed program was:" >&5
11960 cat conftest.
$ac_ext >&5
11961 ac_cv_func_fork_works
=no
11963 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11966 echo "$as_me:11966: result: $ac_cv_func_fork_works" >&5
11967 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11970 if test "x$ac_cv_func_fork_works" = xcross
; then
11972 *-*-amigaos* |
*-*-msdosdjgpp*)
11973 # Override, as these systems have only a dummy fork() stub
11974 ac_cv_func_fork_works
=no
11977 ac_cv_func_fork_works
=yes
11980 { echo "$as_me:11980: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
11981 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
11983 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11984 if test "x$ac_cv_func_vfork" = xyes
; then
11985 echo "$as_me:11985: checking for working vfork" >&5
11986 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11987 if test "${ac_cv_func_vfork_works+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11990 if test "$cross_compiling" = yes; then
11991 ac_cv_func_vfork_works
=cross
11993 cat >conftest.
$ac_ext <<_ACEOF
11994 #line 11994 "configure"
11995 #include "confdefs.h"
11996 /* Thanks to Paul Eggert for this test. */
11998 #include <sys/types.h>
11999 #include <sys/stat.h>
12001 # include <unistd.h>
12004 # include <vfork.h>
12006 /* On some sparc systems, changes by the child to local and incoming
12007 argument registers are propagated back to the parent. The compiler
12008 is told about this with #include <vfork.h>, but some compilers
12009 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12010 static variable whose address is put into a register that is
12011 clobbered by the vfork. */
12014 sparc_address_test (int arg)
12016 sparc_address_test (arg) int arg;
12019 static pid_t child;
12037 pid_t parent = getpid ();
12040 sparc_address_test ();
12045 /* Here is another test for sparc vfork register problems. This
12046 test uses lots of local variables, at least as many local
12047 variables as main has allocated so far including compiler
12048 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12049 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12050 reuse the register of parent for one of the local variables,
12051 since it will think that parent can't possibly be used any more
12052 in this routine. Assigning to the local variable will thus
12053 munge parent in the parent process. */
12055 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12056 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12057 /* Convince the compiler that p..p7 are live; otherwise, it might
12058 use the same hardware register for all 8 local variables. */
12059 if (p != p1 || p != p2 || p != p3 || p != p4
12060 || p != p5 || p != p6 || p != p7)
12063 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12064 from child file descriptors. If the child closes a descriptor
12065 before it execs or exits, this munges the parent's descriptor
12066 as well. Test for this by closing stdout in the child. */
12067 _exit(close(fileno(stdout)) != 0);
12072 while (wait(&status) != child)
12075 /* Was there some problem with vforking? */
12078 /* Did the child fail? (This shouldn't happen.) */
12081 /* Did the vfork/compiler bug occur? */
12082 || parent != getpid()
12084 /* Did the file descriptor bug occur? */
12085 || fstat(fileno(stdout), &st) != 0
12090 rm -f conftest
$ac_exeext
12091 if { (eval echo "$as_me:12091: \"$ac_link\"") >&5
12092 (eval $ac_link) 2>&5
12094 echo "$as_me:12094: \$? = $ac_status" >&5
12095 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12096 { (eval echo "$as_me:12096: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:12099: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_func_vfork_works
=yes
12103 echo "$as_me: program exited with status $ac_status" >&5
12104 echo "$as_me: failed program was:" >&5
12105 cat conftest.
$ac_ext >&5
12106 ac_cv_func_vfork_works
=no
12108 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12111 echo "$as_me:12111: result: $ac_cv_func_vfork_works" >&5
12112 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12115 if test "x$ac_cv_func_fork_works" = xcross
; then
12116 ac_cv_func_vfork_works
=ac_cv_func_vfork
12117 { echo "$as_me:12117: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12118 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12121 if test "x$ac_cv_func_vfork_works" = xyes
; then
12123 cat >>confdefs.h
<<\EOF
12124 #define HAVE_WORKING_VFORK 1
12129 cat >>confdefs.h
<<\EOF
12134 if test "x$ac_cv_func_fork_works" = xyes
; then
12136 cat >>confdefs.h
<<\EOF
12137 #define HAVE_WORKING_FORK 1
12142 # Fixme: This should be replaced when we have autoconf 2.14.
12143 echo "$as_me:12143: checking for size_t" >&5
12144 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12145 if test "${ac_cv_type_size_t+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.
$ac_ext <<_ACEOF
12149 #line 12149 "configure"
12150 #include "confdefs.h"
12151 $ac_includes_default
12157 if (sizeof (size_t))
12163 rm -f conftest.
$ac_objext
12164 if { (eval echo "$as_me:12164: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>&5
12167 echo "$as_me:12167: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try
='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:12170: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:12173: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_type_size_t
=yes
12177 echo "$as_me: failed program was:" >&5
12178 cat conftest.
$ac_ext >&5
12179 ac_cv_type_size_t
=no
12181 rm -f conftest.
$ac_objext conftest.
$ac_ext
12183 echo "$as_me:12183: result: $ac_cv_type_size_t" >&5
12184 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12185 if test $ac_cv_type_size_t = yes; then
12189 cat >>confdefs.h
<<EOF
12190 #define size_t unsigned
12195 # Set up the CFLAGS for real compilation, so we can substitute it.
12196 CFLAGS
="$REAL_CFLAGS"
12197 CPPFLAGS
="$REAL_CPPFLAGS"
12199 #### Find out which version of Emacs this is.
12200 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12201 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12202 if test x
"${version}" = x
; then
12203 { { echo "$as_me:12203: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12204 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12205 { (exit 1); exit 1; }; }
12208 ### Specify what sort of things we'll be editing into Makefile and config.h.
12209 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12211 cat >>confdefs.h
<<EOF
12212 #define EMACS_CONFIGURATION "${canonical}"
12215 cat >>confdefs.h
<<EOF
12216 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12219 cat >>confdefs.h
<<EOF
12220 #define config_machfile "${machfile}"
12223 cat >>confdefs.h
<<EOF
12224 #define config_opsysfile "${opsysfile}"
12227 cat >>confdefs.h
<<EOF
12228 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12231 cat >>confdefs.h
<<EOF
12232 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12235 cat >>confdefs.h
<<EOF
12236 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12239 cat >>confdefs.h
<<EOF
12240 #define UNEXEC_SRC ${UNEXEC_SRC}
12243 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12244 cat >>confdefs.h
<<\EOF
12245 #define HAVE_X_WINDOWS 1
12249 if test "${USE_X_TOOLKIT}" != "none" ; then
12250 cat >>confdefs.h
<<\EOF
12251 #define USE_X_TOOLKIT 1
12255 if test "${HAVE_X11}" = "yes" ; then
12256 cat >>confdefs.h
<<\EOF
12261 if test "${HAVE_XFREE386}" = "yes" ; then
12262 cat >>confdefs.h
<<\EOF
12263 #define HAVE_XFREE386 1
12267 if test "${HAVE_MENUS}" = "yes" ; then
12268 cat >>confdefs.h
<<\EOF
12269 #define HAVE_MENUS 1
12273 if test "${GNU_MALLOC}" = "yes" ; then
12274 cat >>confdefs.h
<<\EOF
12275 #define GNU_MALLOC 1
12279 if test "${REL_ALLOC}" = "yes" ; then
12280 cat >>confdefs.h
<<\EOF
12281 #define REL_ALLOC 1
12286 for ac_header
in nlist.h
12288 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12289 echo "$as_me:12289: checking for $ac_header" >&5
12290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12294 cat >conftest.
$ac_ext <<_ACEOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12297 #include <$ac_header>
12299 if { (eval echo "$as_me:12299: \"$ac_cpp conftest.$ac_ext\"") >&5
12300 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12302 egrep -v '^ *\+' conftest.er1
>conftest.err
12304 cat conftest.err
>&5
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 (exit $ac_status); } >/dev
/null
; then
12307 if test -s conftest.err
; then
12308 ac_cpp_err
=$ac_c_preproc_warn_flag
12315 if test -z "$ac_cpp_err"; then
12316 eval "$as_ac_Header=yes"
12318 echo "$as_me: failed program was:" >&5
12319 cat conftest.
$ac_ext >&5
12320 eval "$as_ac_Header=no"
12322 rm -f conftest.err conftest.
$ac_ext
12324 echo "$as_me:12324: result: `eval echo '${'$as_ac_Header'}'`" >&5
12325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12327 cat >>confdefs.h
<<EOF
12328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12331 cat >>confdefs.h
<<\EOF
12332 #define NLIST_STRUCT 1
12338 #### Report on what we decided to do.
12340 Configured for \`${canonical}'.
12342 Where should the build process find the source code? ${srcdir}
12343 What operating system and machine description files should Emacs use?
12344 \`${opsysfile}' and \`${machfile}'
12345 What compiler should emacs be built with? ${CC} ${CFLAGS}
12346 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12347 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12348 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12349 What window system should Emacs use? ${window_system}
12350 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12352 if test -n "${x_includes}"; then
12353 echo " Where do we find X Windows header files? ${x_includes}"
12355 echo " Where do we find X Windows header files? Standard dirs"
12357 if test -n "${x_libraries}"; then
12358 echo " Where do we find X Windows libraries? ${x_libraries}"
12360 echo " Where do we find X Windows libraries? Standard dirs"
12363 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12364 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12365 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12366 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12367 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12368 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12369 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12372 # Remove any trailing slashes in these variables.
12373 test "${prefix}" != NONE
&&
12374 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12375 test "${exec_prefix}" != NONE
&&
12376 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12378 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12379 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12380 ## from Makefile.c can correctly provide the arg `-traditional' to the
12383 cat >conftest.
$ac_ext <<_ACEOF
12384 #line 12384 "configure"
12385 #include "confdefs.h"
12388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12389 egrep "yes..yes" >/dev
/null
2>&1; then
12390 CPP_NEED_TRADITIONAL
=no
12392 CPP_NEED_TRADITIONAL
=yes
12396 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile leim/Makefile"
12397 ac_config_commands
="$ac_config_commands default"
12398 cat >confcache
<<\_ACEOF
12399 # This file is a shell script that caches the results of configure
12400 # tests run on this system so they can be shared between configure
12401 # scripts and configure runs, see configure's option --config-cache.
12402 # It is not useful on other systems. If it contains results you don't
12403 # want to keep, you may remove or edit it.
12405 # config.status only pays attention to the cache file if you give it
12406 # the --recheck option to rerun configure.
12408 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12410 # following values.
12414 # The following way of writing the cache mishandles newlines in values,
12415 # but we know of no workaround that is simple, portable, and efficient.
12416 # So, don't put newlines in cache variables' values.
12417 # Ultrix sh set writes to stderr and can't be redirected directly,
12418 # and sets the high bit in the cache file unless we assign to the vars.
12421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12423 # `set' does not quote correctly, so add quotes (double-quote
12424 # substitution turns \\\\ into \\, and sed turns \\ into \).
12427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12430 # `set' quotes correctly as required by POSIX, so do not add quotes.
12432 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12441 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12443 if cmp -s $cache_file confcache
; then :; else
12444 if test -w $cache_file; then
12445 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12446 cat confcache
>$cache_file
12448 echo "not updating unwritable cache $cache_file"
12453 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12454 # Let make expand exec_prefix.
12455 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12459 # trailing colons and then remove the whole line if VPATH becomes empty
12460 # (actually we leave an empty line to preserve line numbers).
12461 if test "x$srcdir" = x.
; then
12462 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12463 s/:*\$(srcdir):*/:/;
12464 s/:*\${srcdir}:*/:/;
12466 s/^\([^=]*=[ ]*\):*/\1/;
12472 DEFS
=-DHAVE_CONFIG_H
12474 : ${CONFIG_STATUS=./config.status}
12475 ac_clean_files_save
=$ac_clean_files
12476 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12477 { echo "$as_me:12477: creating $CONFIG_STATUS" >&5
12478 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12479 cat >$CONFIG_STATUS <<_ACEOF
12481 # Generated automatically by configure.
12482 # Run this file to recreate the current configuration.
12483 # Compiler output produced by configure, useful for debugging
12484 # configure, is in config.log if it exists.
12487 SHELL=\${CONFIG_SHELL-$SHELL}
12488 ac_cs_invocation="\$0 \$@"
12492 cat >>$CONFIG_STATUS <<\_ACEOF
12493 # Be Bourne compatible
12494 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12497 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12501 # Name of the executable.
12502 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12504 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12510 rm -f conf$$ conf$$.exe conf$$.
file
12512 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12513 # We could just check for DJGPP; but this test a) works b) is more generic
12514 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12515 if test -f conf$$.exe
; then
12516 # Don't use ln at all; we don't have any links
12521 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12526 rm -f conf$$ conf$$.exe conf$$.
file
12528 as_executable_p
="test -f"
12530 # Support unset when possible.
12531 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12538 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12539 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12540 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12541 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12542 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12543 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12544 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12545 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12548 # We need space, tab and new line, in precisely that order.
12554 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12560 # Files that config.status was made for.
12561 if test -n "$ac_config_files"; then
12562 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12565 if test -n "$ac_config_headers"; then
12566 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12569 if test -n "$ac_config_links"; then
12570 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12573 if test -n "$ac_config_commands"; then
12574 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12577 cat >>$CONFIG_STATUS <<\EOF
12580 \`$as_me' instantiates files from templates according to the
12581 current configuration.
12583 Usage: $0 [OPTIONS] [FILE]...
12585 -h, --help print this help, then exit
12586 -V, --version print version number, then exit
12587 -d, --debug don't remove temporary files
12588 --recheck update $as_me by reconfiguring in the same conditions
12589 --file=FILE[:TEMPLATE]
12590 instantiate the configuration file FILE
12591 --header=FILE[:TEMPLATE]
12592 instantiate the configuration header FILE
12594 Configuration files:
12597 Configuration headers:
12600 Configuration commands:
12603 Report bugs to <bug-autoconf@gnu.org>."
12606 cat >>$CONFIG_STATUS <<EOF
12609 configured by $0, generated by GNU Autoconf 2.52,
12610 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12612 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12613 Free Software Foundation, Inc.
12614 This config.status script is free software; the Free Software Foundation
12615 gives unlimited permission to copy, distribute and modify it."
12620 cat >>$CONFIG_STATUS <<\EOF
12621 # If no file are specified by the user, then we need to provide default
12622 # value. By we need to know if files were specified by the user.
12628 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12629 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12631 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12635 *) # This is not an option, so the user has probably given explicit
12637 ac_need_defaults
=false
;;
12641 # Handling of the options.
12643 cat >>$CONFIG_STATUS <<EOF
12644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12645 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12646 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12648 cat >>$CONFIG_STATUS <<\EOF
12649 --version |
--vers* |
-V )
12650 echo "$ac_cs_version"; exit 0 ;;
12652 # Conflict between --help and --header
12653 { { echo "$as_me:12653: error: ambiguous option: $1
12654 Try \`$0 --help' for more information." >&5
12655 echo "$as_me: error: ambiguous option: $1
12656 Try \`$0 --help' for more information." >&2;}
12657 { (exit 1); exit 1; }; };;
12658 --help |
--hel |
-h )
12659 echo "$ac_cs_usage"; exit 0 ;;
12660 --debug |
--d* |
-d )
12662 --file |
--fil |
--fi |
--f )
12664 CONFIG_FILES
="$CONFIG_FILES $1"
12665 ac_need_defaults
=false
;;
12666 --header |
--heade |
--head |
--hea )
12668 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12669 ac_need_defaults
=false
;;
12671 # This is an error.
12672 -*) { { echo "$as_me:12672: error: unrecognized option: $1
12673 Try \`$0 --help' for more information." >&5
12674 echo "$as_me: error: unrecognized option: $1
12675 Try \`$0 --help' for more information." >&2;}
12676 { (exit 1); exit 1; }; } ;;
12678 *) ac_config_targets
="$ac_config_targets $1" ;;
12687 ## ----------------------- ##
12688 ## Running config.status. ##
12689 ## ----------------------- ##
12691 This file was extended by $as_me 2.52, executed with
12692 CONFIG_FILES = $CONFIG_FILES
12693 CONFIG_HEADERS = $CONFIG_HEADERS
12694 CONFIG_LINKS = $CONFIG_LINKS
12695 CONFIG_COMMANDS = $CONFIG_COMMANDS
12696 > $ac_cs_invocation
12697 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12702 cat >>$CONFIG_STATUS <<EOF
12704 # INIT-COMMANDS section.
12707 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12711 cat >>$CONFIG_STATUS <<\EOF
12712 for ac_config_target
in $ac_config_targets
12714 case "$ac_config_target" in
12715 # Handling of arguments.
12716 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12717 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12718 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12719 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12720 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12721 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12722 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12723 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12724 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12725 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12726 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12727 *) { { echo "$as_me:12727: error: invalid argument: $ac_config_target" >&5
12728 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12729 { (exit 1); exit 1; }; };;
12733 # If the user did not use the arguments to specify the items to instantiate,
12734 # then the envvar interface is used. Set only those that are not.
12735 # We use the long form for the default assignment because of an extremely
12736 # bizarre bug on SunOS 4.1.3.
12737 if $ac_need_defaults; then
12738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12743 # Create a temporary directory, and hook for its removal unless debugging.
12746 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12747 trap '{ (exit 1); exit 1; }' 1 2 13 15
12750 # Create a (secure) tmp directory for tmp files.
12753 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12754 test -n "$tmp" && test -d "$tmp"
12757 tmp
=$TMPDIR/cs$$
-$RANDOM
12758 (umask 077 && mkdir
$tmp)
12761 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12762 { (exit 1); exit 1; }
12767 cat >>$CONFIG_STATUS <<EOF
12770 # CONFIG_FILES section.
12773 # No need to generate the scripts if there are no CONFIG_FILES.
12774 # This happens for instance when ./config.status config.h
12775 if test -n "\$CONFIG_FILES"; then
12776 # Protect against being on the right side of a sed subst in config.status.
12777 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12778 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12779 s,@SHELL@,$SHELL,;t t
12780 s,@exec_prefix@,$exec_prefix,;t t
12781 s,@prefix@,$prefix,;t t
12782 s,@program_transform_name@,$program_transform_name,;t t
12783 s,@bindir@,$bindir,;t t
12784 s,@sbindir@,$sbindir,;t t
12785 s,@libexecdir@,$libexecdir,;t t
12786 s,@datadir@,$datadir,;t t
12787 s,@sysconfdir@,$sysconfdir,;t t
12788 s,@sharedstatedir@,$sharedstatedir,;t t
12789 s,@localstatedir@,$localstatedir,;t t
12790 s,@libdir@,$libdir,;t t
12791 s,@includedir@,$includedir,;t t
12792 s,@oldincludedir@,$oldincludedir,;t t
12793 s,@infodir@,$infodir,;t t
12794 s,@mandir@,$mandir,;t t
12795 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12796 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12797 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12798 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12799 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12800 s,@build_alias@,$build_alias,;t t
12801 s,@host_alias@,$host_alias,;t t
12802 s,@target_alias@,$target_alias,;t t
12803 s,@ECHO_C@,$ECHO_C,;t t
12804 s,@ECHO_N@,$ECHO_N,;t t
12805 s,@ECHO_T@,$ECHO_T,;t t
12806 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12807 s,@DEFS@,$DEFS,;t t
12808 s,@LIBS@,$LIBS,;t t
12809 s,@build@,$build,;t t
12810 s,@build_cpu@,$build_cpu,;t t
12811 s,@build_vendor@,$build_vendor,;t t
12812 s,@build_os@,$build_os,;t t
12813 s,@host@,$host,;t t
12814 s,@host_cpu@,$host_cpu,;t t
12815 s,@host_vendor@,$host_vendor,;t t
12816 s,@host_os@,$host_os,;t t
12818 s,@CFLAGS@,$CFLAGS,;t t
12819 s,@LDFLAGS@,$LDFLAGS,;t t
12820 s,@CPPFLAGS@,$CPPFLAGS,;t t
12821 s,@ac_ct_CC@,$ac_ct_CC,;t t
12822 s,@EXEEXT@,$EXEEXT,;t t
12823 s,@OBJEXT@,$OBJEXT,;t t
12824 s,@LN_S@,$LN_S,;t t
12826 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12827 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12828 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12829 s,@YACC@,$YACC,;t t
12830 s,@RANLIB@,$RANLIB,;t t
12831 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12832 s,@LIBSOUND@,$LIBSOUND,;t t
12833 s,@SET_MAKE@,$SET_MAKE,;t t
12834 s,@ALLOCA@,$ALLOCA,;t t
12835 s,@liblockfile@,$liblockfile,;t t
12836 s,@LIBOBJS@,$LIBOBJS,;t t
12837 s,@NEED_SETGID@,$NEED_SETGID,;t t
12838 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12839 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12840 s,@version@,$version,;t t
12841 s,@configuration@,$configuration,;t t
12842 s,@canonical@,$canonical,;t t
12843 s,@srcdir@,$srcdir,;t t
12844 s,@lispdir@,$lispdir,;t t
12845 s,@locallisppath@,$locallisppath,;t t
12846 s,@lisppath@,$lisppath,;t t
12847 s,@x_default_search_path@,$x_default_search_path,;t t
12848 s,@etcdir@,$etcdir,;t t
12849 s,@archlibdir@,$archlibdir,;t t
12850 s,@docdir@,$docdir,;t t
12851 s,@bitmapdir@,$bitmapdir,;t t
12852 s,@c_switch_system@,$c_switch_system,;t t
12853 s,@c_switch_machine@,$c_switch_machine,;t t
12854 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12855 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12856 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12857 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12858 s,@machfile@,$machfile,;t t
12859 s,@opsysfile@,$opsysfile,;t t
12864 cat >>$CONFIG_STATUS <<\EOF
12865 # Split the substitutions into bite-sized pieces for seds with
12866 # small command number limits, like on Digital OSF/1 and HP-UX.
12867 ac_max_sed_lines
=48
12868 ac_sed_frag
=1 # Number of current file.
12869 ac_beg
=1 # First line for current file.
12870 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12873 while $ac_more_lines; do
12874 if test $ac_beg -gt 1; then
12875 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12877 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12879 if test ! -s $tmp/subs.frag
; then
12880 ac_more_lines
=false
12882 # The purpose of the label and of the branching condition is to
12883 # speed up the sed processing (if there are no `@' at all, there
12884 # is no need to browse any of the substitutions).
12885 # These are the two extra sed commands mentioned above.
12887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12888 if test -z "$ac_sed_cmds"; then
12889 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12891 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12893 ac_sed_frag
=`expr $ac_sed_frag + 1`
12895 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12898 if test -z "$ac_sed_cmds"; then
12901 fi # test -n "$CONFIG_FILES"
12904 cat >>$CONFIG_STATUS <<\EOF
12905 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12908 - |
*:- |
*:-:* ) # input from stdin
12910 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12911 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12912 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12913 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12914 * ) ac_file_in
=$ac_file.
in ;;
12917 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12918 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$ac_file" : 'X\(//\)[^/]' \| \
12920 X"$ac_file" : 'X\(//\)$' \| \
12921 X"$ac_file" : 'X\(/\)' \| \
12922 . : '\(.\)' 2>/dev/null ||
12924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12926 /^X\(\/\/\)$/{ s//\1/; q; }
12927 /^X\(\/\).*/{ s//\1/; q; }
12929 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12930 { case "$ac_dir" in
12931 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
12935 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12936 case $as_mkdir_dir in
12937 # Skip DOS drivespec
12938 ?
:) as_incr_dir
=$as_mkdir_dir ;;
12940 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
12941 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
12946 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
12947 # A "../" for each directory in $ac_dir_suffix.
12948 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12950 ac_dir_suffix
= ac_dots
=
12955 if test -z "$ac_dots"; then
12958 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
12960 [\\/]* | ?
:[\\/]* )
12961 ac_srcdir
=$srcdir$ac_dir_suffix;
12962 ac_top_srcdir
=$srcdir ;;
12963 *) # Relative path.
12964 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
12965 ac_top_srcdir
=$ac_dots$srcdir ;;
12969 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12970 *) ac_INSTALL
=$ac_dots$INSTALL ;;
12973 if test x
"$ac_file" != x-
; then
12974 { echo "$as_me:12974: creating $ac_file" >&5
12975 echo "$as_me: creating $ac_file" >&6;}
12978 # Let's still pretend it is `configure' which instantiates (i.e., don't
12979 # use $as_me), people would be surprised to read:
12980 # /* config.h. Generated automatically by config.status. */
12981 configure_input
="Generated automatically from `echo $ac_file_in |
12982 sed 's,.*/,,'` by configure."
12984 # First look for the input files in the build tree, otherwise in the
12986 ac_file_inputs
=`IFS=:
12987 for f in $ac_file_in; do
12989 -) echo $tmp/stdin ;;
12991 # Absolute (can't be DOS-style, as IFS=:)
12992 test -f "$f" || { { echo "$as_me:12992: error: cannot find input file: $f" >&5
12993 echo "$as_me: error: cannot find input file: $f" >&2;}
12994 { (exit 1); exit 1; }; }
12997 if test -f "$f"; then
13000 elif test -f "$srcdir/$f"; then
13005 { { echo "$as_me:13005: error: cannot find input file: $f" >&5
13006 echo "$as_me: error: cannot find input file: $f" >&2;}
13007 { (exit 1); exit 1; }; }
13010 done` ||
{ (exit 1); exit 1; }
13012 cat >>$CONFIG_STATUS <<EOF
13016 cat >>$CONFIG_STATUS <<\EOF
13018 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13019 s
,@configure_input@
,$configure_input,;t t
13020 s
,@srcdir@
,$ac_srcdir,;t t
13021 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13022 s
,@INSTALL@
,$ac_INSTALL,;t t
13023 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13025 if test x"$ac_file" != x-; then
13026 mv $tmp/out $ac_file
13034 cat >>$CONFIG_STATUS <<\EOF
13037 # CONFIG_HEADER section.
13040 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13041 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13043 # ac_d sets the value in "#define NAME VALUE" lines.
13044 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13045 ac_dB
='[ ].*$,\1#\2'
13048 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13049 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13050 ac_uB
='$,\1#\2define\3'
13054 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13055 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13057 - |
*:- |
*:-:* ) # input from stdin
13059 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13060 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13061 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13062 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13063 * ) ac_file_in
=$ac_file.
in ;;
13066 test x
"$ac_file" != x-
&& { echo "$as_me:13066: creating $ac_file" >&5
13067 echo "$as_me: creating $ac_file" >&6;}
13069 # First look for the input files in the build tree, otherwise in the
13071 ac_file_inputs
=`IFS=:
13072 for f in $ac_file_in; do
13074 -) echo $tmp/stdin ;;
13076 # Absolute (can't be DOS-style, as IFS=:)
13077 test -f "$f" || { { echo "$as_me:13077: error: cannot find input file: $f" >&5
13078 echo "$as_me: error: cannot find input file: $f" >&2;}
13079 { (exit 1); exit 1; }; }
13082 if test -f "$f"; then
13085 elif test -f "$srcdir/$f"; then
13090 { { echo "$as_me:13090: error: cannot find input file: $f" >&5
13091 echo "$as_me: error: cannot find input file: $f" >&2;}
13092 { (exit 1); exit 1; }; }
13095 done` ||
{ (exit 1); exit 1; }
13096 # Remove the trailing spaces.
13097 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13101 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13102 # `conftest.undefs', that substitutes the proper values into
13103 # config.h.in to produce config.h. The first handles `#define'
13104 # templates, and the second `#undef' templates.
13105 # And first: Protect against being on the right side of a sed subst in
13106 # config.status. Protect against being in an unquoted here document
13107 # in config.status.
13108 rm -f conftest.defines conftest.undefs
13109 # Using a here document instead of a string reduces the quoting nightmare.
13110 # Putting comments in sed scripts is not portable.
13112 # `end' is used to avoid that the second main sed command (meant for
13113 # 0-ary CPP macros) applies to n-ary macro definitions.
13114 # See the Autoconf documentation for `clear'.
13115 cat >confdef2sed.
sed <<\EOF
13120 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13122 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13125 # If some macros were called several times there might be several times
13126 # the same #defines, which is useless. Nevertheless, we may not want to
13127 # sort them, since we want the *last* AC-DEFINE to be honored.
13128 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13129 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13130 rm -f confdef2sed.sed
13132 # This sed command replaces #undef with comments. This is necessary, for
13133 # example, in the case of _POSIX_SOURCE, which is predefined and required
13134 # on some systems where configure will not decide to define it.
13135 cat >>conftest.undefs <<\EOF
13136 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13139 # Break up conftest.defines because some shells have a limit on the size
13140 # of here documents, and old seds have small limits too (100 cmds).
13141 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13142 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13143 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13144 echo ' :' >>$CONFIG_STATUS
13145 rm -f conftest.tail
13146 while grep . conftest.defines >/dev/null
13148 # Write a limited-size here document to $tmp/defines.sed.
13149 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13150 # Speed up: don't consider the non `#define' lines.
13151 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13152 # Work around the forget-to-reset-the-flag bug.
13153 echo 't clr' >>$CONFIG_STATUS
13154 echo ': clr' >>$CONFIG_STATUS
13155 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13157 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13159 mv $tmp/out $tmp/in
13161 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13162 rm -f conftest.defines
13163 mv conftest.
tail conftest.defines
13165 rm -f conftest.defines
13166 echo ' fi # egrep' >>$CONFIG_STATUS
13167 echo >>$CONFIG_STATUS
13169 # Break up conftest.undefs because some shells have a limit on the size
13170 # of here documents, and old seds have small limits too (100 cmds).
13171 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13172 rm -f conftest.
tail
13173 while grep . conftest.undefs
>/dev
/null
13175 # Write a limited-size here document to $tmp/undefs.sed.
13176 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13177 # Speed up: don't consider the non
`#undef'
13178 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13179 # Work around the forget-to-reset-the-flag bug.
13180 echo 't clr' >>$CONFIG_STATUS
13181 echo ': clr' >>$CONFIG_STATUS
13182 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13184 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13186 mv $tmp/out $tmp/in
13188 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13189 rm -f conftest.undefs
13190 mv conftest.tail conftest.undefs
13192 rm -f conftest.undefs
13194 cat >>$CONFIG_STATUS <<\EOF
13195 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13196 # use $as_me), people would be surprised to read:
13197 # /* config.h. Generated automatically by config.status. */
13198 if test x
"$ac_file" = x-
; then
13199 echo "/* Generated automatically by configure. */" >$tmp/config.h
13201 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13203 cat $tmp/in >>$tmp/config.h
13205 if test x
"$ac_file" != x-
; then
13206 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13207 { echo "$as_me:13207: $ac_file is unchanged" >&5
13208 echo "$as_me: $ac_file is unchanged" >&6;}
13210 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13211 X"$ac_file" : 'X\(//\)[^/]' \| \
13212 X"$ac_file" : 'X\(//\)$' \| \
13213 X"$ac_file" : 'X\(/\)' \| \
13214 . : '\(.\)' 2>/dev/null ||
13216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13218 /^X\(\/\/\)$/{ s//\1/; q; }
13219 /^X\(\/\).*/{ s//\1/; q; }
13221 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13222 { case "$ac_dir" in
13223 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13227 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13228 case $as_mkdir_dir in
13229 # Skip DOS drivespec
13230 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13232 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13233 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13240 mv $tmp/config.h
$ac_file
13244 rm -f $tmp/config.h
13248 cat >>$CONFIG_STATUS <<\EOF
13251 # CONFIG_COMMANDS section.
13253 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13254 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13255 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13260 ### Make the necessary directories, if they don't exist.
13261 for dir
in etc lisp
; do
13262 test -d ${dir} || mkdir
${dir}
13265 # Build src/Makefile from ${srcdir}/src/Makefile.c
13266 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13267 # This must be done after src/config.h is built, since we rely on that file.
13269 # Now get this: Some word that is part of the ${srcdir} directory name
13270 # or the ${configuration} value might, just might, happen to be an
13271 # identifier like `sun4' or `i386' or something, and be predefined by
13272 # the C preprocessor to some helpful value like 1, or maybe the empty
13273 # string. Needless to say consequent macro substitutions are less
13274 # than conducive to the makefile finding the correct directory.
13275 undefs
="`echo $top_srcdir $configuration $canonical |
13276 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13277 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13280 echo creating src
/epaths.h
13281 ${MAKE-make} epaths-force
13283 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13284 # `..' to `. .' unless invoked with -traditional
13286 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13287 CPPFLAGS
="$CPPFLAGS -traditional"
13290 echo creating lib-src
/Makefile
13292 rm -f junk.c junk1.c junk2.c
13293 sed -e '/start of cpp stuff/q' \
13294 < Makefile.c
> junk1.c
13295 sed -e '1,/start of cpp stuff/d'\
13296 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13297 < Makefile.c
> junk.c
13298 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13299 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13300 cat junk1.c junk2.c
> Makefile.new
13301 rm -f junk.c junk1.c junk2.c
13302 chmod 444 Makefile.new
13303 mv -f Makefile.new Makefile
13306 echo creating src
/Makefile
13308 rm -f junk.c junk1.c junk2.c
13309 sed -e '/start of cpp stuff/q' \
13310 < Makefile.c
> junk1.c
13311 sed -e '1,/start of cpp stuff/d'\
13312 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13313 < Makefile.c
> junk.c
13314 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13315 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13316 cat junk1.c junk2.c
> Makefile.new
13317 rm -f junk.c junk1.c junk2.c
13318 chmod 444 Makefile.new
13319 mv -f Makefile.new Makefile
13322 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13323 echo creating src
/.gdbinit
13324 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13327 # This is how we know whether to re-run configure in certain cases.
13328 touch src
/config.stamp
13335 cat >>$CONFIG_STATUS <<\EOF
13337 { (exit 0); exit 0; }
13339 chmod +x
$CONFIG_STATUS
13340 ac_clean_files
=$ac_clean_files_save
13342 # configure is writing to config.log, and then calls config.status.
13343 # config.status does its own redirection, appending to config.log.
13344 # Unfortunately, on DOS this fails, as config.log is still kept open
13345 # by configure, so config.status won't be able to write to it; its
13346 # output is simply discarded. So we exec the FD to /dev/null,
13347 # effectively closing config.log, so it can be properly (re)opened and
13348 # appended to by config.status. When coming back to configure, we
13349 # need to make the FD available again.
13350 if test "$no_create" != yes; then
13353 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13356 # would make configure fail if this is the last instruction.
13357 $ac_cs_success ||
{ (exit 1); exit 1; }