2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="src/lisp.h"
108 # Factoring default headers for most tests.
109 ac_includes_default
="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version
=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name
=s
,x
,x
,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir
='${exec_prefix}/bin'
171 sbindir
='${exec_prefix}/sbin'
172 libexecdir
='${exec_prefix}/libexec'
173 datadir
='${prefix}/share'
174 sysconfdir
='${prefix}/etc'
175 sharedstatedir
='${prefix}/com'
176 localstatedir
='${prefix}/var'
177 libdir
='${exec_prefix}/lib'
178 includedir
='${prefix}/include'
179 oldincludedir
='/usr/include'
180 infodir
='${prefix}/info'
181 mandir
='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
208 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
211 -build |
--build |
--buil |
--bui |
--bu)
212 ac_prev
=build_alias
;;
213 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
214 build_alias
=$ac_optarg ;;
216 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
217 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
218 ac_prev
=cache_file
;;
219 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
220 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
221 cache_file
=$ac_optarg ;;
224 cache_file
=config.cache
;;
226 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
228 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
230 datadir
=$ac_optarg ;;
232 -disable-* |
--disable-*)
233 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* |
--enable-*)
242 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
255 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
256 |
--exec |
--exe |
--ex)
257 ac_prev
=exec_prefix
;;
258 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
259 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
260 |
--exec=* |
--exe=* |
--ex=*)
261 exec_prefix
=$ac_optarg ;;
263 -gas |
--gas |
--ga |
--g)
264 # Obsolete; use --with-gas.
267 -help |
--help |
--hel |
--he |
-h)
269 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
270 ac_init_help
=recursive
;;
271 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
272 ac_init_help
=short
;;
274 -host |
--host |
--hos |
--ho)
275 ac_prev
=host_alias
;;
276 -host=* |
--host=* |
--hos=* |
--ho=*)
277 host_alias
=$ac_optarg ;;
279 -includedir |
--includedir |
--includedi |
--included |
--include \
280 |
--includ |
--inclu |
--incl |
--inc)
281 ac_prev
=includedir
;;
282 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
283 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
284 includedir
=$ac_optarg ;;
286 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
288 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
289 infodir
=$ac_optarg ;;
291 -libdir |
--libdir |
--libdi |
--libd)
293 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
296 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
297 |
--libexe |
--libex |
--libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
300 |
--libexe=* |
--libex=* |
--libe=*)
301 libexecdir
=$ac_optarg ;;
303 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
304 |
--localstate |
--localstat |
--localsta |
--localst \
305 |
--locals |
--local |
--loca |
--loc |
--lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
308 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
309 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
310 localstatedir
=$ac_optarg ;;
312 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
314 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
318 # Obsolete; use --without-fp.
321 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
325 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
326 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
329 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
330 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
331 |
--oldin |
--oldi |
--old |
--ol |
--o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
334 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
335 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
336 oldincludedir
=$ac_optarg ;;
338 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
340 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
343 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
344 |
--program-pre |
--program-pr |
--program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
347 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
348 program_prefix
=$ac_optarg ;;
350 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
351 |
--program-suf |
--program-su |
--program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
354 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
355 program_suffix
=$ac_optarg ;;
357 -program-transform-name |
--program-transform-name \
358 |
--program-transform-nam |
--program-transform-na \
359 |
--program-transform-n |
--program-transform- \
360 |
--program-transform |
--program-transfor \
361 |
--program-transfo |
--program-transf \
362 |
--program-trans |
--program-tran \
363 |
--progr-tra |
--program-tr |
--program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* |
--program-transform-name=* \
366 |
--program-transform-nam=* |
--program-transform-na=* \
367 |
--program-transform-n=* |
--program-transform-=* \
368 |
--program-transform=* |
--program-transfor=* \
369 |
--program-transfo=* |
--program-transf=* \
370 |
--program-trans=* |
--program-tran=* \
371 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
372 program_transform_name
=$ac_optarg ;;
374 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
375 |
-silent |
--silent |
--silen |
--sile |
--sil)
378 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
380 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
382 sbindir
=$ac_optarg ;;
384 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
385 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
386 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
390 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
391 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
393 sharedstatedir
=$ac_optarg ;;
395 -site |
--site |
--sit)
397 -site=* |
--site=* |
--sit=*)
400 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
402 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
405 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
406 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
409 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
410 sysconfdir
=$ac_optarg ;;
412 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
413 ac_prev
=target_alias
;;
414 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
415 target_alias
=$ac_optarg ;;
417 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
420 -version |
--version |
--versio |
--versi |
--vers |
-V)
424 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* |
--without-*)
437 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package
=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
450 |
--x-incl |
--x-inc |
--x-in |
--x-i)
451 ac_prev
=x_includes
;;
452 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
453 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
454 x_includes
=$ac_optarg ;;
456 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
457 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
458 ac_prev
=x_libraries
;;
459 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
460 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
461 x_libraries
=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var
in exec_prefix prefix
498 eval ac_val
=$
`echo $ac_var`
500 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val
=$
`echo $ac_var`
512 [\\/$
]* | ?
:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x
; then
526 if test "x$build_alias" = x
; then
527 cross_compiling
=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
538 test "$silent" = yes && exec 6>/dev
/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted
=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted
=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set
=${build_alias+set}
565 ac_env_build_alias_value
=$build_alias
566 ac_cv_env_build_alias_set
=${build_alias+set}
567 ac_cv_env_build_alias_value
=$build_alias
568 ac_env_host_alias_set
=${host_alias+set}
569 ac_env_host_alias_value
=$host_alias
570 ac_cv_env_host_alias_set
=${host_alias+set}
571 ac_cv_env_host_alias_value
=$host_alias
572 ac_env_target_alias_set
=${target_alias+set}
573 ac_env_target_alias_value
=$target_alias
574 ac_cv_env_target_alias_set
=${target_alias+set}
575 ac_cv_env_target_alias_value
=$target_alias
576 ac_env_CC_set
=${CC+set}
578 ac_cv_env_CC_set
=${CC+set}
579 ac_cv_env_CC_value
=$CC
580 ac_env_CFLAGS_set
=${CFLAGS+set}
581 ac_env_CFLAGS_value
=$CFLAGS
582 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value
=$CFLAGS
584 ac_env_LDFLAGS_set
=${LDFLAGS+set}
585 ac_env_LDFLAGS_value
=$LDFLAGS
586 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value
=$LDFLAGS
588 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value
=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
592 ac_env_CPP_set
=${CPP+set}
593 ac_env_CPP_value
=$CPP
594 ac_cv_env_CPP_set
=${CPP+set}
595 ac_cv_env_CPP_value
=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
663 --x-includes=DIR X include files are
in DIR
664 --x-libraries=DIR X library files are
in DIR
667 --build=BUILD configure
for building on BUILD
[guessed
]
668 --host=HOST build programs to run on HOST
[BUILD
]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
678 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
679 --disable-largefile omit support
for large files
682 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
683 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
684 --without-gcc don
't use GCC to compile Emacs if GCC is found
685 --without-pop don't support POP
mail retrieval with movemail
686 --with-kerberos support Kerberos-authenticated POP
687 --with-kerberos5 support Kerberos version
5 authenticated POP
688 --with-hesiod support Hesiod to get the POP server
host
689 --without-sound don
't compile with sound support
690 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
691 --with-xpm use -lXpm for displaying XPM images
692 --with-jpeg use -ljpeg for displaying JPEG images
693 --with-tiff use -ltiff for displaying TIFF images
694 --with-gif use -lungif for displaying GIF images
695 --with-png use -lpng for displaying PNG images
696 --without-toolkit-scroll-bars
697 don't use Motif or Xaw3d scroll bars
698 --without-xim don
't use X11 XIM
699 --without-carbon don't use Carbon GUI on Mac OS X
700 --with-x use the X Window System
702 Some influential environment variables
:
703 CC C compiler
command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
706 nonstandard directory
<lib dir
>
707 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
708 headers
in a nonstandard directory
<include dir
>
711 Use these variables to override the choices made by
`configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52. Invocation command line was
781 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
782 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
783 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
784 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
785 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
787 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
788 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
790 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
791 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
792 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
793 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
794 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
795 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
796 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 # Get rid of the leading space.
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
836 # Save into config.log some information that might help in debugging.
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
842 # The following way of writing the cache mishandles newlines in values,
845 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
918 # Check that the precious variables saved in the cache have kept the same
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
930 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
933 { echo "$as_me:933: error: \`$ac_var' was not
set in the previous run
" >&5
934 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
941 { echo "$as_me:941: former value
: $ac_old_val" >&5
942 echo "$as_me: former value
: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value
: $ac_new_val" >&5
944 echo "$as_me: current value
: $ac_new_val" >&2;}
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error
: changes
in the environment can compromise the build
" >&5
963 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
964 { { echo "$as_me:964: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing
; echo 1,2,3` in
976 *c*,-n*) ECHO_N= ECHO_C='
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
981 echo "#! $SHELL" >conftest.sh
982 echo "exit 0" >>conftest.sh
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
985 (PATH=".;."; conftest.sh) 2>&5
987 echo "$as_me:987: \$? = $ac_status" >&5
988 (exit $ac_status); }; then
989 ac_path_separator=';'
993 PATH_SEPARATOR="$ac_path_separator"
996 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
998 test "$program_prefix" != NONE &&
999 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1000 # Use a double $ so make ignores it.
1001 test "$program_suffix" != NONE &&
1002 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1003 # Double any \ or $. echo might interpret backslashes.
1004 # By default was `s
,x
,x
', remove it if useless.
1005 cat <<\_ACEOF >conftest.sed
1006 s/[\\$]/&&/g;s/;s,x,x,$//
1008 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1011 lispdir='${datadir}/emacs
/${version}/lisp
'
1012 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1013 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1014 lisppath='${locallisppath}:${lispdir}'
1015 etcdir='${datadir}/emacs
/${version}/etc
'
1016 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1017 docdir='${datadir}/emacs
/${version}/etc
'
1018 gamedir='${localstatedir}/games
/emacs
'
1022 # Check whether --with-gcc or --without-gcc was given.
1023 if test "${with_gcc+set}" = set; then
1028 # Check whether --with-pop or --without-pop was given.
1029 if test "${with_pop+set}" = set; then
1031 if test "$withval" = yes; then
1032 cat >>confdefs.h <<\EOF
1033 #define MAIL_USE_POP 1
1039 cat >>confdefs.h <<\EOF
1040 #define MAIL_USE_POP 1
1045 # Check whether --with-kerberos or --without-kerberos was given.
1046 if test "${with_kerberos+set}" = set; then
1047 withval="$with_kerberos"
1048 cat >>confdefs.h <<\EOF
1054 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1055 if test "${with_kerberos5+set}" = set; then
1056 withval="$with_kerberos5"
1057 if test "${with_kerberos5+set}" = set; then
1058 if test "${with_kerberos+set}" != set; then
1060 cat >>confdefs.h <<\EOF
1067 cat >>confdefs.h <<\EOF
1073 # Check whether --with-hesiod or --without-hesiod was given.
1074 if test "${with_hesiod+set}" = set; then
1075 withval="$with_hesiod"
1077 cat >>confdefs.h <<\EOF
1083 # Check whether --with-sound or --without-sound was given.
1084 if test "${with_sound+set}" = set; then
1085 withval="$with_sound"
1089 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1090 if test "${with_x_toolkit+set}" = set; then
1091 withval="$with_x_toolkit"
1092 case "${withval}" in
1093 y | ye | yes ) val=athena ;;
1095 l | lu | luc | luci | lucid ) val=lucid ;;
1096 a | at | ath | athe | athen | athena ) val=athena ;;
1097 m | mo | mot | moti | motif ) val=motif ;;
1099 { { echo "$as_me:1099: error: \`--with-x-toolkit=$withval' is invalid\
;
1100 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1101 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1102 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1103 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1104 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1105 { (exit 1); exit 1; }; }
1112 # Check whether --with-xpm or --without-xpm was given.
1113 if test "${with_xpm+set}" = set; then
1118 # Check whether --with-jpeg or --without-jpeg was given.
1119 if test "${with_jpeg+set}" = set; then
1120 withval="$with_jpeg"
1124 # Check whether --with-tiff or --without-tiff was given.
1125 if test "${with_tiff+set}" = set; then
1126 withval="$with_tiff"
1130 # Check whether --with-gif or --without-gif was given.
1131 if test "${with_gif+set}" = set; then
1136 # Check whether --with-png or --without-png was given.
1137 if test "${with_png+set}" = set; then
1142 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1143 if test "${with_toolkit_scroll_bars+set}" = set; then
1144 withval="$with_toolkit_scroll_bars"
1148 # Check whether --with-xim or --without-xim was given.
1149 if test "${with_xim+set}" = set; then
1154 # Check whether --with-carbon or --without-carbon was given.
1155 if test "${with_carbon+set}" = set; then
1156 withval="$with_carbon"
1160 #### Make srcdir absolute, if it isn't already. It
's important to
1161 #### avoid running the path through pwd unnecessarily, since pwd can
1162 #### give you automounter prefixes, which can go away. We do all this
1163 #### so Emacs can find its files when run uninstalled.
1164 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1169 ## We may be able to use the $PWD environment variable to make this
1170 ## absolute. But sometimes PWD is inaccurate.
1171 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1172 ## but that tested only for a well-formed and valid PWD,
1173 ## it did not object when PWD was well-formed and valid but just wrong.
1174 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1178 srcdir
="`(cd ${srcdir}; pwd)`"
1181 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1184 #### Check if the source directory already has a configured system in it.
1185 if test `pwd` != `(cd ${srcdir} && pwd)` \
1186 && test -f "${srcdir}/src/config.h" ; then
1187 { echo "$as_me:1187: WARNING: The directory tree \`${srcdir}' is being used
1188 as a build directory right now; it has been configured in its own
1189 right. To configure in another directory as well, you MUST
1190 use GNU make. If you do not have GNU make, then you must
1191 now do \`make distclean' in ${srcdir},
1192 and then run $0 again." >&5
1193 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1194 as a build directory right now; it has been configured in its own
1195 right. To configure in another directory as well, you MUST
1196 use GNU make. If you do not have GNU make, then you must
1197 now do \`make distclean' in ${srcdir},
1198 and then run $0 again." >&2;}
1200 extrasub
='/^VPATH[ ]*=/c\
1201 vpath %.c $(srcdir)\
1202 vpath %.h $(srcdir)\
1203 vpath %.y $(srcdir)\
1204 vpath %.l $(srcdir)\
1205 vpath %.s $(srcdir)\
1206 vpath %.in $(srcdir)\
1207 vpath %.texi $(srcdir)'
1210 #### Given the configuration name, set machfile and opsysfile to the
1211 #### names of the m/*.h and s/*.h files we should use.
1213 ### Canonicalize the configuration name.
1216 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1217 if test -f $ac_dir/install-sh
; then
1219 ac_install_sh
="$ac_aux_dir/install-sh -c"
1221 elif test -f $ac_dir/install.sh
; then
1223 ac_install_sh
="$ac_aux_dir/install.sh -c"
1225 elif test -f $ac_dir/shtool
; then
1227 ac_install_sh
="$ac_aux_dir/shtool install -c"
1231 if test -z "$ac_aux_dir"; then
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1234 { (exit 1); exit 1; }; }
1236 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1237 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1238 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240 # Make sure we can run config.sub.
1241 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5
1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1244 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: checking build system type" >&5
1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1248 if test "${ac_cv_build+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 ac_cv_build_alias
=$build_alias
1252 test -z "$ac_cv_build_alias" &&
1253 ac_cv_build_alias
=`$ac_config_guess`
1254 test -z "$ac_cv_build_alias" &&
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5
1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1257 { (exit 1); exit 1; }; }
1258 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_build" >&5
1265 echo "${ECHO_T}$ac_cv_build" >&6
1267 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$as_me:1271: checking host system type" >&5
1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1273 if test "${ac_cv_host+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1276 ac_cv_host_alias
=$host_alias
1277 test -z "$ac_cv_host_alias" &&
1278 ac_cv_host_alias
=$ac_cv_build_alias
1279 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_host" >&5
1286 echo "${ECHO_T}$ac_cv_host" >&6
1288 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 configuration
=${host_alias-$host}
1295 ### If you add support for a new configuration, add code to this
1296 ### switch statement to recognize your configuration name and select
1297 ### the appropriate operating system and machine description files.
1299 ### You would hope that you could choose an m/*.h file pretty much
1300 ### based on the machine portion of the configuration name, and an s-
1301 ### file based on the operating system portion. However, it turns out
1302 ### that each m/*.h file is pretty manufacturer-specific - for
1303 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1304 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1305 ### machines. So we basically have to have a special case for each
1306 ### configuration name.
1308 ### As far as handling version numbers on operating systems is
1309 ### concerned, make sure things will fail in a fixable way. If
1310 ### /etc/MACHINES doesn't say anything about version numbers, be
1311 ### prepared to handle anything reasonably. If version numbers
1312 ### matter, be sure /etc/MACHINES says something about it.
1314 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1315 ### "System V Release 4"; he writes, "The old convention encouraged
1316 ### confusion between `system' and `release' levels'."
1318 machine
='' opsys
='' unported
=no
1319 case "${canonical}" in
1324 case "${canonical}" in
1325 alpha
*-*-freebsd*) machine
=alpha
;;
1326 i
[3456]86-*-freebsd*) machine
=intel386
;;
1333 case "${canonical}" in
1334 alpha
*-*-netbsd*) machine
=alpha
;;
1335 i
[3456]86-*-netbsd*) machine
=intel386
;;
1337 # This is somewhat bogus.
1338 machine
=hp9000s300
;;
1339 powerpc-apple-netbsd
*) machine
=macppc
;;
1340 mips-
*-netbsd*) machine
=pmax
;;
1341 mipsel-
*-netbsd*) machine
=pmax
;;
1342 mipseb-
*-netbsd*) machine
=pmax
;;
1343 ns32k-
*-netbsd*) machine
=ns32000
;;
1344 powerpc-
*-netbsd*) machine
=macppc
;;
1345 sparc
*-*-netbsd*) machine
=sparc
;;
1346 vax-
*-netbsd*) machine
=vax
;;
1347 arm-
*-netbsd*) machine
=arm
;;
1354 case "${canonical}" in
1355 alpha
*-*-openbsd*) machine
=alpha
;;
1356 i386-
*-openbsd*) machine
=intel386
;;
1357 m68k-
*-openbsd*) machine
=hp9000s300
;;
1358 mipsel-
*-openbsd*) machine
=pmax
;;
1359 ns32k-
*-openbsd*) machine
=ns32000
;;
1360 sparc-
*-openbsd*) machine
=sparc
;;
1361 vax-
*-openbsd*) machine
=vax
;;
1366 arm-acorn-riscix1.1
* )
1367 machine
=acorn opsys
=riscix1-1
1369 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1370 ## This name is riscix12 instead of riscix1.2
1371 ## to avoid a file name conflict on MSDOS.
1372 machine
=acorn opsys
=riscix12
1378 case "${canonical}" in
1379 i
[345]86-*-bsdi*) machine
=intel386
;;
1380 sparc-
*-bsdi*) machine
=sparc
;;
1381 powerpc-
*-bsdi*) machine
=macppc
;;
1383 case "${canonical}" in
1384 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1385 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1386 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1387 *-*-bsdi3* ) opsys
=bsdos3
;;
1388 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1393 ## Strictly speaking, we need the version of the alliant operating
1394 ## system to choose the right machine file, but currently the
1395 ## configuration name doesn't tell us enough to choose the right
1396 ## one; we need to give alliants their own operating system name to
1397 ## do this right. When someone cares, they can help us.
1399 machine
=alliant4 opsys
=bsd4-2
1402 machine
=alliant-2800 opsys
=bsd4-3
1405 ## Alpha (DEC) machines.
1407 machine
=alpha opsys
=osf1
1408 # This is needed to find X11R6.1 libraries for certain tests.
1409 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1410 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1411 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1412 # due to non-traditional preprocessing with the current compiler
1413 # defaults. OSF 4 can also have that compiler version, and there
1414 # seems always to have been a usable /usr/bin/cpp.
1415 NON_GNU_CPP
=/usr
/bin
/cpp
1416 case "${canonical}" in
1417 alpha
*-dec-osf[5-9]*)
1422 alpha
*-*-linux-gnu* )
1423 machine
=alpha opsys
=gnu-linux
1427 machine
=arm opsys
=gnu-linux
1432 machine
=macppc opsys
=gnu-linux
1437 machine
=altos opsys
=usg5-2
1442 machine
=amdahl opsys
=usg5-2-2
1445 ## Apollo, Domain/OS
1447 machine
=apollo opsys
=bsd4-3
1450 ## AT&T 3b2, 3b5, 3b15, 3b20
1452 machine
=att3b opsys
=usg5-2-2
1455 ## AT&T 3b1 - The Mighty Unix PC!
1457 machine
=7300 opsys
=usg5-2-2
1462 machine
=ibmrs6000 opsys
=aix3-2
1467 machine
=dpx2 opsys
=usg5-3
1472 machine
=sps7 opsys
=usg5-2
1475 ## CCI 5/32, 6/32 -- see "Tahoe".
1478 ## I don't know what configuration name to use for this; config.sub
1479 ## doesn't seem to know anything about it. Hey, Celerity users, get
1480 ## in touch with us!
1481 celerity-celerity-bsd
* )
1482 machine
=celerity opsys
=bsd4-2
1486 ## What operating systems does this chip run that Emacs has been
1490 ## We'll use the catch-all code at the bottom to guess the
1491 ## operating system.
1495 mips-compaq-nonstopux
* )
1496 machine
=nonstopux opsys
=nonstopux
1500 *-convex-bsd* |
*-convex-convexos* )
1501 machine
=convex opsys
=bsd4-3
1502 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1503 NON_GNU_CPP
="cc -E -P"
1507 i
[3456]86-cubix-sysv* )
1508 machine
=intel386 opsys
=usg5-3
1512 cydra
*-cydrome-sysv* )
1513 machine
=cydra5 opsys
=usg5-3
1516 ## Data General AViiON Machines
1517 ## DG changed naming conventions with the release of 5.4.4.10, they
1518 ## dropped the initial 5.4 but left the intervening R. Because of the
1519 ## R this shouldn't conflict with older versions of the OS (which I
1520 ## think were named like dgux4.*). In addition, DG new AViiONs series
1521 ## uses either Motorola M88k or Intel Pentium CPUs.
1522 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1523 machine
=aviion opsys
=dgux4
1525 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1526 ## This name is dgux5-4-3 instead of dgux5-4r3
1527 ## to avoid a file name conflict on MSDOS.
1528 machine
=aviion opsys
=dgux5-4-3
1530 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1531 machine
=aviion opsys
=dgux5-4r2
1534 machine
=aviion opsys
=dgux
1537 ## Data General AViiON Intel (x86) Machines
1538 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1539 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1540 i
[345]86-dg-dguxR4* )
1541 machine
=aviion-intel opsys
=dgux4
1545 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1546 machine
=pmax opsys
=bsd4-2
1548 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1549 machine
=pmax opsys
=bsd4-3
1552 machine
=pmax opsys
=ultrix4-3
1555 machine
=pmax opsys
=osf1
1557 mips-dec-mach_bsd4.3
* )
1558 machine
=pmax opsys
=mach-bsd4-3
1561 ## Motorola Delta machines
1562 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1563 machine
=delta opsys
=usg5-3
1564 if test -z "`type gnucc | grep 'not found'`"
1566 if test -s /etc
/167config
1567 then CC
="gnucc -m68040"
1568 else CC
="gnucc -m68881"
1571 if test -z "`type gcc | grep 'not found'`"
1577 m88k-motorola-sysv4
* )
1578 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1579 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1580 # I hope there are not other 4.0 versions for this machine
1581 # which really need usg5-4 instead.
1582 machine
=delta88k opsys
=usg5-4-2
1584 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1585 machine
=delta88k opsys
=usg5-3
1590 machine
=dual opsys
=usg5-2
1592 m68
*-dual-uniplus* )
1593 machine
=dual opsys
=unipl5-2
1598 machine
=elxsi opsys
=usg5-2
1603 machine
=ns16000 opsys
=umax
1606 ## The GEC 63 - apparently, this port isn't really finished yet.
1607 # I'm sure we finished off the last of the machines, though. -- fx
1609 ## Gould Power Node and NP1
1611 machine
=gould opsys
=bsd4-2
1614 machine
=gould opsys
=bsd4-3
1617 machine
=gould-np1 opsys
=bsd4-3
1620 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1621 ## as far as Emacs is concerned).
1623 # Build needs to be different on 7.0 and later releases
1624 case "`uname -r`" in
1625 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1626 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1628 NON_GNU_CPP
="/lib/cpp"
1630 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1632 machine
=nh3000 opsys
=cxux
1634 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1635 powerpc-harris-powerunix
)
1636 machine
=nh6000 opsys
=powerunix
1637 NON_GNU_CPP
="cc -Xo -E -P"
1639 ## SR2001/SR2201 running HI-UX/MPP
1640 hppa1.1
-hitachi-hiuxmpp* )
1641 machine
=sr2k opsys
=hiuxmpp
1643 hppa1.1
-hitachi-hiuxwe2* )
1644 machine
=sr2k opsys
=hiuxwe2
1647 xps
*-honeywell-sysv* )
1648 machine
=xps100 opsys
=usg5-2
1651 ## HP 9000 series 200 or 300
1653 machine
=hp9000s300 opsys
=bsd4-3
1655 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1657 case "`uname -r`" in
1658 ## Someone's system reports A.B8.05 for this.
1659 ## I wonder what other possibilities there are.
1660 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1661 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1662 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1663 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1664 *) machine
=hp9000s300 opsys
=hpux
;;
1668 ## HP 9000 series 700 and 800, running HP/UX
1670 machine
=hp800 opsys
=hpux
1673 machine
=hp800 opsys
=hpux8
1675 hppa
*-hp-hpux9shr* )
1676 machine
=hp800 opsys
=hpux9shr
1679 machine
=hp800 opsys
=hpux9
1682 machine
=hp800 opsys
=hpux10
1684 hppa
*-hp-hpux1[1-9]* )
1685 machine
=hp800 opsys
=hpux11
1688 hppa
*-*-linux-gnu* )
1689 machine
=hp800 opsys
=gnu-linux
1692 ## HP 9000 series 700 and 800, running HP/UX
1694 ## Cross-compilation? Nah!
1695 case "`uname -r`" in
1696 ## Someone's system reports A.B8.05 for this.
1697 ## I wonder what other possibilities there are.
1698 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1699 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1700 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1701 *) machine
=hp800 opsys
=hpux10
;;
1705 machine
=hp800 opsys
=nextstep
1710 machine
=orion opsys
=bsd4-2
1712 clipper-orion-bsd
* )
1713 machine
=orion105 opsys
=bsd4-2
1717 i
[3456]86-ibm-aix1.1
* )
1718 machine
=ibmps2-aix opsys
=usg5-2-2
1720 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1721 machine
=ibmps2-aix opsys
=usg5-3
1724 machine
=ibm370aix opsys
=usg5-3
1727 machine
=ibms390 opsys
=gnu-linux
1729 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1730 machine
=ibmrs6000 opsys
=aix3-1
1732 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1733 machine
=ibmrs6000 opsys
=aix3-2-5
1735 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1736 machine
=ibmrs6000 opsys
=aix4-1
1738 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1739 machine
=ibmrs6000 opsys
=aix4-2
1741 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1742 machine
=ibmrs6000 opsys
=aix4-2
1744 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1745 machine
=ibmrs6000 opsys
=aix4
1747 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1748 machine
=ibmrs6000 opsys
=aix4-1
1750 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1751 machine
=ibmrs6000 opsys
=aix3-2
1754 machine
=ibmrt opsys
=bsd4-3
1757 machine
=ibmrt opsys
=bsd4-2
1760 machine
=ibmrt opsys
=bsd4-3
1763 machine
=ibmrt opsys
=bsd4-2
1766 machine
=ibmrt opsys
=bsd4-3
1769 machine
=ibmrt opsys
=bsd4-3
1772 machine
=ibmrt-aix opsys
=usg5-2-2
1775 ## Integrated Solutions `Optimum V'
1777 machine
=isi-ov opsys
=bsd4-2
1780 machine
=isi-ov opsys
=bsd4-3
1783 ## Intel 386 machines where we do care about the manufacturer
1784 i
[3456]86-intsys-sysv* )
1785 machine
=is386 opsys
=usg5-2-2
1789 i
[3456]86-prime-sysv* )
1790 machine
=i386 opsys
=usg5-3
1793 ## Sequent Symmetry running Dynix
1794 i
[3456]86-sequent-bsd* )
1795 machine
=symmetry opsys
=bsd4-3
1798 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1799 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1800 machine
=sequent-ptx opsys
=ptx4
1801 NON_GNU_CPP
=/lib
/cpp
1804 ## Sequent Symmetry running DYNIX/ptx
1805 ## Use the old cpp rather than the newer ANSI one.
1806 i
[3456]86-sequent-ptx* )
1807 machine
=sequent-ptx opsys
=ptx
1808 NON_GNU_CPP
="/lib/cpp"
1811 ## ncr machine running svr4.3.
1812 i
[3456]86-ncr-sysv4.3
)
1813 machine
=ncr386 opsys
=usg5-4-3
1816 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1817 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1818 i
[3456]86-ncr-sysv* )
1819 machine
=ncr386 opsys
=usg5-4-2
1822 ## Intel Paragon OSF/1
1824 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1829 machine
=i860 opsys
=usg5-4
1830 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1831 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1834 ## Macintosh PowerPC
1835 powerpc
*-*-linux-gnu* )
1836 machine
=macppc opsys
=gnu-linux
1839 ## Masscomp machines
1840 m68
*-masscomp-rtu* )
1841 machine
=masscomp opsys
=rtu
1844 ## Megatest machines
1845 m68
*-megatest-bsd* )
1846 machine
=mega68 opsys
=bsd4-2
1849 ## Workstations sold by MIPS
1850 ## This is not necessarily all workstations using the MIPS processor -
1851 ## Irises are produced by SGI, and DECstations by DEC.
1853 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1854 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1855 ## it gives for choosing between the alternatives seems to be "Use
1856 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1857 ## the BSD world." I'll assume that these are instructions for
1858 ## handling two odd situations, and that every other situation
1859 ## should use mips.h and usg5-2-2, they being listed first.
1862 ## Fall through to the general code at the bottom to decide on the OS.
1864 mips-mips-riscos4
* )
1865 machine
=mips4 opsys
=bsd4-3
1866 NON_GNU_CC
="cc -systype bsd43"
1867 NON_GNU_CPP
="cc -systype bsd43 -E"
1869 mips-mips-riscos5
* )
1870 machine
=mips4 opsys
=riscos5
1871 NON_GNU_CC
="cc -systype bsd43"
1872 NON_GNU_CPP
="cc -systype bsd43 -E"
1875 machine
=mips opsys
=bsd4-3
1878 machine
=mips opsys
=usg5-2-2
1882 m68
*-next-* | m68k-
*-nextstep* )
1883 machine
=m68k opsys
=nextstep
1886 ## The complete machine from National Semiconductor
1888 machine
=ns32000 opsys
=usg5-2
1892 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1893 machine
=tower32 opsys
=usg5-2-2
1895 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1896 machine
=tower32v3 opsys
=usg5-3
1901 machine
=ews4800 opsys
=ux4800
1904 ## Nixdorf Targon 31
1905 m68
*-nixdorf-sysv* )
1906 machine
=targon31 opsys
=usg5-2-2
1911 machine
=nu opsys
=usg5-2
1916 machine
=plexus opsys
=usg5-2
1919 ## PowerPC reference platform
1920 powerpcle-
*-solaris2.5
* )
1925 ## PowerPC reference platform
1926 powerpcle-
*-solaris2* )
1932 ## I don't really have any idea what sort of processor the Pyramid has,
1933 ## so I'm assuming it is its own architecture.
1934 pyramid-pyramid-bsd
* )
1935 machine
=pyramid opsys
=bsd4-2
1939 ns32k-sequent-bsd4.2
* )
1940 machine
=sequent opsys
=bsd4-2
1942 ns32k-sequent-bsd4.3
* )
1943 machine
=sequent opsys
=bsd4-3
1947 mips-siemens-sysv
* | mips-sni-sysv
*)
1948 machine
=mips-siemens opsys
=usg5-4
1949 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1950 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1953 ## Silicon Graphics machines
1954 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1956 machine
=irist opsys
=iris3-5
1958 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1959 machine
=irist opsys
=iris3-6
1963 machine
=iris4d opsys
=irix3-3
1966 machine
=iris4d opsys
=irix4-0
1969 machine
=iris4d opsys
=irix6-5
1970 # Without defining _LANGUAGE_C, things get masked out in the headers
1971 # so that, for instance, grepping for `free' in stdlib.h fails and
1972 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1973 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1974 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1977 machine
=iris4d opsys
=irix6-0
1978 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1979 # but presumably it does no harm.
1980 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1981 # -32 probably isn't necessary in later v.6s -- anyone know which?
1982 NON_GCC_TEST_OPTIONS
=-32
1984 mips-sgi-irix5.
[01]* )
1985 machine
=iris4d opsys
=irix5-0
1987 mips-sgi-irix5
* | mips-sgi-irix
* )
1988 machine
=iris4d opsys
=irix5-2
1993 machine
=news opsys
=bsd4-2
1996 machine
=news opsys
=bsd4-3
1998 m68
*-sony-newsos3* | m68
*-sony-news3*)
1999 machine
=news opsys
=bsd4-3
2001 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2002 machine
=news-risc opsys
=bsd4-3
2004 mips-sony-newsos6
* )
2005 machine
=news-r6 opsys
=newsos6
2008 machine
=news-risc opsys
=newsos5
2013 machine
=stride opsys
=usg5-2
2017 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2018 machine
=sparc opsys
=gnu-linux
2021 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2022 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2023 | rs6000-
*-solaris2*)
2024 case "${canonical}" in
2025 m68
*-sunos1* ) machine
=sun1
;;
2026 m68
*-sunos2* ) machine
=sun2
;;
2027 m68
* ) machine
=sun3
;;
2028 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2029 i
[3456]86-*-* ) machine
=intel386
;;
2030 powerpcle
* ) machine
=powerpcle
;;
2031 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2032 sparc
* ) machine
=sparc
;;
2035 case "${canonical}" in
2036 ## The Sun386 didn't get past 4.0.
2037 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2038 *-sunos4.0
* ) opsys
=sunos4-0
;;
2039 *-sunos4.1.
[3-9]*noshare
)
2040 ## This name is sunos413 instead of sunos4-1-3
2041 ## to avoid a file name conflict on MSDOS.
2043 NON_GNU_CPP
=/usr
/lib
/cpp
2044 NON_GCC_TEST_OPTIONS
=-Bstatic
2045 GCC_TEST_OPTIONS
=-static
2047 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2049 NON_GNU_CPP
=/usr
/lib
/cpp
2051 *-sunos4* |
*-sunos )
2053 NON_GCC_TEST_OPTIONS
=-Bstatic
2054 GCC_TEST_OPTIONS
=-static
2056 *-sunos5.3
* |
*-solaris2.3
* )
2058 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2060 *-sunos5.4
* |
*-solaris2.4
* )
2062 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2065 *-sunos5.5
* |
*-solaris2.5
* )
2067 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2070 *-sunos5.6
* |
*-solaris2.6
* )
2072 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2075 *-sunos5* |
*-solaris* )
2077 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2081 ## Watch out for a compiler that we know will not work.
2082 case "${canonical}" in
2083 *-solaris* |
*-sunos5* )
2084 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2085 ## /usr/ucb/cc doesn't work;
2086 ## we should find some other compiler that does work.
2094 machine
=sparc opsys
=nextstep
2098 m68
*-tadpole-sysv* )
2099 machine
=tad68k opsys
=usg5-3
2103 tahoe-tahoe-bsd4.2
* )
2104 machine
=tahoe opsys
=bsd4-2
2106 tahoe-tahoe-bsd4.3
* )
2107 machine
=tahoe opsys
=bsd4-3
2110 ## Tandem Integrity S2
2112 machine
=tandem-s2 opsys
=usg5-3
2116 m88k-tektronix-sysv3
* )
2117 machine
=tekxd88 opsys
=usg5-3
2120 ## Tektronix 16000 box (6130?)
2121 ns16k-tektronix-bsd
* )
2122 machine
=ns16000 opsys
=bsd4-2
2125 ## src/m/tek4300.h hints that this is a m68k machine.
2126 m68
*-tektronix-bsd* )
2127 machine
=tek4300 opsys
=bsd4-3
2131 ## We seem to have lost the machine-description file titan.h!
2133 machine
=titan opsys
=usg5-3
2136 ## Ustation E30 (SS5E)
2137 m68
*-unisys-uniplus* )
2138 machine
=ustation opsystem
=unipl5-2
2144 case "${canonical}" in
2145 *-bsd4.1
* ) opsys
=bsd4-1
;;
2146 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2147 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2148 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2149 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2150 *-vms* ) opsys
=vms
;;
2156 ns16k-whitechapel-
* )
2158 ## We don't know what sort of OS runs on these; we'll let the
2159 ## operating system guessing code below try.
2164 machine
=wicat opsys
=usg5-2
2169 machine
=ia64 opsys
=gnu-linux
2172 ## Intel 386 machines where we don't care about the manufacturer
2175 case "${canonical}" in
2176 *-lynxos* ) opsys
=lynxos
;;
2177 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2178 *-isc2.2
* ) opsys
=isc2-2
;;
2179 *-isc4.0
* ) opsys
=isc4-0
;;
2180 *-isc4.
* ) opsys
=isc4-1
2181 GCC_TEST_OPTIONS
=-posix
2182 NON_GCC_TEST_OPTIONS
=-Xp
2184 *-isc* ) opsys
=isc3-0
;;
2185 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2186 *-esix* ) opsys
=esix
;;
2187 *-xenix* ) opsys
=xenix
;;
2188 *-linux-gnu* ) opsys
=gnu-linux
;;
2189 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2190 *-sco3.2v5
* ) opsys
=sco5
2191 NON_GNU_CPP
=/lib
/cpp
2192 # Prevent -belf from being passed to $CPP.
2193 # /lib/cpp does not accept it.
2194 OVERRIDE_CPPFLAGS
=" "
2196 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2197 *-386bsd* ) opsys
=386bsd
;;
2198 *-nextstep* ) opsys
=nextstep
;;
2199 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2203 ## m68k Linux-based GNU system
2205 machine
=m68k opsys
=gnu-linux
2208 ## Mips Linux-based GNU system
2210 machine
=mips opsys
=gnu-linux
2214 sparc-fujitsu-sysv4
* )
2215 machine
=sparc opsys
=uxpds
2216 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2221 f301-fujitsu-uxpv4.1
)
2222 machine
=f301 opsys
=uxpv
2225 ## Darwin / Mac OS X
2226 powerpc-apple-darwin
* )
2227 machine
=powermac opsys
=darwin
2228 # Define CPP as follows to make autoconf work correctly.
2229 CPP
="cc -E -traditional-cpp"
2232 ## AMD x86-64 Linux-based GNU system
2233 x86_64-
*-linux-gnu* )
2234 machine
=amdx86-64 opsys
=gnu-linux
2242 ### If the code above didn't choose an operating system, just choose
2243 ### an operating system based on the configuration name. You really
2244 ### only want to use this when you have no idea what the right
2245 ### operating system is; if you know what operating systems a machine
2246 ### runs, it's cleaner to make it explicit in the case statement
2248 if test x
"${opsys}" = x
; then
2249 case "${canonical}" in
2250 *-gnu* ) opsys
=gnu
;;
2251 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2252 *-bsd4.2
) opsys
=bsd4-2
;;
2253 *-bsd4.3
) opsys
=bsd4-3
;;
2254 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2255 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2256 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2257 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2258 *-sysv4.2uw
* ) opsys
=unixware
;;
2259 *-sysv4.1
* |
*-sysvr4.1
* )
2260 NON_GNU_CPP
=/usr
/lib
/cpp
2262 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2263 if [ x
$NON_GNU_CPP = x
]; then
2264 if [ -f /usr
/ccs
/lib
/cpp
]; then
2265 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2267 NON_GNU_CPP
=/lib
/cpp
2271 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2278 if test $unported = yes; then
2279 { { echo "$as_me:2279: error: Emacs hasn't been ported to \`${canonical}' systems.
2280 Check \`etc/MACHINES' for recognized configuration names." >&5
2281 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2282 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2283 { (exit 1); exit 1; }; }
2286 machfile
="m/${machine}.h"
2287 opsysfile
="s/${opsys}.h"
2289 #### Choose a compiler.
2290 test -n "$CC" && cc_specified
=yes
2292 # Save the value of CFLAGS that the user specified.
2293 SPECIFIED_CFLAGS
="$CFLAGS"
2296 "yes" ) CC
="gcc" GCC
=yes ;;
2297 "no" ) : ${CC=cc} ;;
2301 ac_cpp
='$CPP $CPPFLAGS'
2302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2308 echo "$as_me:2308: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC
="$CC" # Let the user override the test.
2316 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2318 for ac_dir
in $ac_dummy; do
2320 test -z "$ac_dir" && ac_dir
=.
2321 $as_executable_p "$ac_dir/$ac_word" ||
continue
2322 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2323 echo "$as_me:2323: found $ac_dir/$ac_word" >&5
2330 if test -n "$CC"; then
2331 echo "$as_me:2331: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6
2334 echo "$as_me:2334: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2339 if test -z "$ac_cv_prog_CC"; then
2341 # Extract the first word of "gcc", so it can be a program name with args.
2342 set dummy gcc
; ac_word
=$2
2343 echo "$as_me:2343: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2351 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2353 for ac_dir
in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir
=.
2356 $as_executable_p "$ac_dir/$ac_word" ||
continue
2357 ac_cv_prog_ac_ct_CC
="gcc"
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5
2364 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 echo "$as_me:2366: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6
2369 echo "$as_me:2369: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2378 if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2381 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC
="$CC" # Let the user override the test.
2390 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2392 for ac_dir
in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir
=.
2395 $as_executable_p "$ac_dir/$ac_word" ||
continue
2396 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2404 if test -n "$CC"; then
2405 echo "$as_me:2405: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 if test -z "$ac_cv_prog_CC"; then
2415 # Extract the first word of "cc", so it can be a program name with args.
2416 set dummy cc
; ac_word
=$2
2417 echo "$as_me:2417: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$ac_ct_CC"; then
2423 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2425 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2427 for ac_dir
in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir
=.
2430 $as_executable_p "$ac_dir/$ac_word" ||
continue
2431 ac_cv_prog_ac_ct_CC
="cc"
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2438 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 echo "$as_me:2440: result: $ac_ct_CC" >&5
2441 echo "${ECHO_T}$ac_ct_CC" >&6
2443 echo "$as_me:2443: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc
; ac_word
=$2
2456 echo "$as_me:2456: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC
="$CC" # Let the user override the test.
2465 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2467 for ac_dir
in $ac_dummy; do
2469 test -z "$ac_dir" && ac_dir
=.
2470 $as_executable_p "$ac_dir/$ac_word" ||
continue
2471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2472 ac_prog_rejected
=yes
2476 echo "$as_me:2476: found $ac_dir/$ac_word" >&5
2480 if test $ac_prog_rejected = yes; then
2481 # We found a bogon in the path, so make sure we never use it.
2482 set dummy
$ac_cv_prog_CC
2484 if test $# != 0; then
2485 # We chose a different compiler from the bogus one.
2486 # However, it has the same basename, so the bogon will be chosen
2487 # first if we set CC to just the basename; use the full file name.
2489 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2497 if test -n "$CC"; then
2498 echo "$as_me:2498: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6
2501 echo "$as_me:2501: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2512 echo "$as_me:2512: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC
="$CC" # Let the user override the test.
2520 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2522 for ac_dir
in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir
=.
2525 $as_executable_p "$ac_dir/$ac_word" ||
continue
2526 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2527 echo "$as_me:2527: found $ac_dir/$ac_word" >&5
2534 if test -n "$CC"; then
2535 echo "$as_me:2535: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6
2538 echo "$as_me:2538: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2542 test -n "$CC" && break
2545 if test -z "$CC"; then
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy
$ac_prog; ac_word
=$2
2551 echo "$as_me:2551: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2559 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2561 for ac_dir
in $ac_dummy; do
2563 test -z "$ac_dir" && ac_dir
=.
2564 $as_executable_p "$ac_dir/$ac_word" ||
continue
2565 ac_cv_prog_ac_ct_CC
="$ac_prog"
2566 echo "$as_me:2566: found $ac_dir/$ac_word" >&5
2572 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 echo "$as_me:2574: result: $ac_ct_CC" >&5
2575 echo "${ECHO_T}$ac_ct_CC" >&6
2577 echo "$as_me:2577: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2581 test -n "$ac_ct_CC" && break
2589 test -z "$CC" && { { echo "$as_me:2589: error: no acceptable cc found in \$PATH" >&5
2590 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2591 { (exit 1); exit 1; }; }
2593 # Provide some information about the compiler.
2594 echo "$as_me:2594:" \
2595 "checking for C compiler version" >&5
2596 ac_compiler
=`set X $ac_compile; echo $2`
2597 { (eval echo "$as_me:2597: \"$ac_compiler --version </dev/null >&5\"") >&5
2598 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2600 echo "$as_me:2600: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602 { (eval echo "$as_me:2602: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:2607: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2610 echo "$as_me:2610: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2613 cat >conftest.
$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2625 ac_clean_files_save
=$ac_clean_files
2626 ac_clean_files
="$ac_clean_files a.out a.exe"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2630 echo "$as_me:2630: checking for C compiler default output" >&5
2631 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2632 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2633 if { (eval echo "$as_me:2633: \"$ac_link_default\"") >&5
2634 (eval $ac_link_default) 2>&5
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # Find the output, starting from the most likely. This scheme is
2639 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2641 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2642 ls a.out conftest 2>/dev/null;
2643 ls a.* conftest.* 2>/dev/null`; do
2645 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2646 a.out
) # We found the default executable, but exeext='' is most
2649 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2659 { { echo "$as_me:2659: error: C compiler cannot create executables" >&5
2660 echo "$as_me: error: C compiler cannot create executables" >&2;}
2661 { (exit 77); exit 77; }; }
2664 ac_exeext
=$ac_cv_exeext
2665 echo "$as_me:2665: result: $ac_file" >&5
2666 echo "${ECHO_T}$ac_file" >&6
2668 # Check the compiler produces executables we can run. If not, either
2669 # the compiler is broken, or we cross compile.
2670 echo "$as_me:2670: checking whether the C compiler works" >&5
2671 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2672 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673 # If not cross compiling, check that we can run a simple program.
2674 if test "$cross_compiling" != yes; then
2675 if { ac_try
='./$ac_file'
2676 { (eval echo "$as_me:2676: \"$ac_try\"") >&5
2679 echo "$as_me:2679: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2683 if test "$cross_compiling" = maybe
; then
2686 { { echo "$as_me:2686: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'." >&5
2688 echo "$as_me: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'." >&2;}
2690 { (exit 1); exit 1; }; }
2694 echo "$as_me:2694: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2697 rm -f a.out a.exe conftest
$ac_cv_exeext
2698 ac_clean_files
=$ac_clean_files_save
2699 # Check the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 echo "$as_me:2701: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2703 echo "$as_me:2703: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6
2706 echo "$as_me:2706: checking for executable suffix" >&5
2707 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2708 if { (eval echo "$as_me:2708: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>&5
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2717 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2719 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2720 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 { { echo "$as_me:2727: error: cannot compute EXEEXT: cannot compile and link" >&5
2728 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2729 { (exit 1); exit 1; }; }
2732 rm -f conftest
$ac_cv_exeext
2733 echo "$as_me:2733: result: $ac_cv_exeext" >&5
2734 echo "${ECHO_T}$ac_cv_exeext" >&6
2736 rm -f conftest.
$ac_ext
2737 EXEEXT
=$ac_cv_exeext
2739 echo "$as_me:2739: checking for object suffix" >&5
2740 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2741 if test "${ac_cv_objext+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 cat >conftest.
$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2756 rm -f conftest.o conftest.obj
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2764 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2765 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2770 echo "$as_me: failed program was:" >&5
2771 cat conftest.
$ac_ext >&5
2772 { { echo "$as_me:2772: error: cannot compute OBJEXT: cannot compile" >&5
2773 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2774 { (exit 1); exit 1; }; }
2777 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2779 echo "$as_me:2779: result: $ac_cv_objext" >&5
2780 echo "${ECHO_T}$ac_cv_objext" >&6
2781 OBJEXT
=$ac_cv_objext
2783 echo "$as_me:2783: checking whether we are using the GNU C compiler" >&5
2784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.
$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2803 rm -f conftest.
$ac_objext
2804 if { (eval echo "$as_me:2804: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2807 echo "$as_me:2807: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try
='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:2810: \"$ac_try\"") >&5
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2817 echo "$as_me: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2821 rm -f conftest.
$ac_objext conftest.
$ac_ext
2822 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2825 echo "$as_me:2825: result: $ac_cv_c_compiler_gnu" >&5
2826 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2827 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2828 ac_test_CFLAGS
=${CFLAGS+set}
2829 ac_save_CFLAGS
=$CFLAGS
2831 echo "$as_me:2831: checking whether $CC accepts -g" >&5
2832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_g+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 cat >conftest.
$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2848 rm -f conftest.
$ac_objext
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try
='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2862 echo "$as_me: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2866 rm -f conftest.
$ac_objext conftest.
$ac_ext
2868 echo "$as_me:2868: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS
=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2879 if test "$GCC" = yes; then
2885 # Some people use a C++ compiler to compile C. Since we use `exit',
2886 # in C++ we need to declare it. In case someone uses the same compiler
2887 # for both compiling C and C++ we need to have the C++ compiler decide
2888 # the declaration of exit, since it's the most demanding environment.
2889 cat >conftest.
$ac_ext <<_ACEOF
2894 rm -f conftest.
$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try
='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration
in \
2908 '#include <stdlib.h>' \
2909 'extern "C" void std::exit (int) throw (); using std::exit;' \
2910 'extern "C" void std::exit (int); using std::exit;' \
2911 'extern "C" void exit (int) throw ();' \
2912 'extern "C" void exit (int);' \
2915 cat >conftest.
$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2928 rm -f conftest.
$ac_objext
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try
='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.
$ac_ext >&5
2946 rm -f conftest.
$ac_objext conftest.
$ac_ext
2947 cat >conftest.
$ac_ext <<_ACEOF
2948 #line 2948 "configure"
2949 #include "confdefs.h"
2959 rm -f conftest.
$ac_objext
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try
='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2976 rm -f conftest.
$ac_objext conftest.
$ac_ext
2979 if test -n "$ac_declaration"; then
2980 echo '#ifdef __cplusplus' >>confdefs.h
2981 echo $ac_declaration >>confdefs.h
2982 echo '#endif' >>confdefs.h
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.
$ac_ext >&5
2989 rm -f conftest.
$ac_objext conftest.
$ac_ext
2991 ac_cpp
='$CPP $CPPFLAGS'
2992 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
3001 #### Some systems specify a CPP to use unless we are using GCC.
3002 #### Now that we know whether we are using GCC, we can decide whether
3003 #### to use that one.
3004 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3009 #### Some systems specify a CC to use unless we are using GCC.
3010 #### Now that we know whether we are using GCC, we can decide whether
3011 #### to use that one.
3012 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3013 test x
$cc_specified != xyes
3018 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3020 CC
="$CC $GCC_TEST_OPTIONS"
3023 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3025 CC
="$CC $NON_GCC_TEST_OPTIONS"
3028 #### Some other nice autoconf tests. If you add a test here which
3029 #### should make an entry in src/config.h, don't forget to add an
3030 #### #undef clause to src/config.h.in for autoconf to modify.
3032 echo "$as_me:3032: checking whether ln -s works" >&5
3033 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3035 if test "$LN_S" = "ln -s"; then
3036 echo "$as_me:3036: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6
3039 echo "$as_me:3039: result: no, using $LN_S" >&5
3040 echo "${ECHO_T}no, using $LN_S" >&6
3044 ac_cpp
='$CPP $CPPFLAGS'
3045 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3048 echo "$as_me:3048: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3054 if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 # Double quotes because CPP needs to be expanded
3059 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3062 for ac_c_preproc_warn_flag
in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat >conftest.
$ac_ext <<_ACEOF
3069 #line 3069 "configure"
3070 #include "confdefs.h"
3074 if { (eval echo "$as_me:3074: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3077 egrep -v '^ *\+' conftest.er1
>conftest.err
3079 cat conftest.err
>&5
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev
/null
; then
3082 if test -s conftest.err
; then
3083 ac_cpp_err
=$ac_c_preproc_warn_flag
3090 if test -z "$ac_cpp_err"; then
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.
$ac_ext >&5
3095 # Broken: fails on valid input.
3098 rm -f conftest.err conftest.
$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.
$ac_ext <<_ACEOF
3103 #line 3103 "configure"
3104 #include "confdefs.h"
3105 #include <ac_nonexistent.h>
3107 if { (eval echo "$as_me:3107: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3110 egrep -v '^ *\+' conftest.er1
>conftest.err
3112 cat conftest.err
>&5
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev
/null
; then
3115 if test -s conftest.err
; then
3116 ac_cpp_err
=$ac_c_preproc_warn_flag
3123 if test -z "$ac_cpp_err"; then
3124 # Broken: success on invalid input.
3127 echo "$as_me: failed program was:" >&5
3128 cat conftest.
$ac_ext >&5
3129 # Passes both tests.
3133 rm -f conftest.err conftest.
$ac_ext
3136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3137 rm -f conftest.err conftest.
$ac_ext
3138 if $ac_preproc_ok; then
3150 echo "$as_me:3150: result: $CPP" >&5
3151 echo "${ECHO_T}$CPP" >&6
3153 for ac_c_preproc_warn_flag
in '' yes
3155 # Use a header file that comes with gcc, so configuring glibc
3156 # with a fresh cross-compiler works.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.
$ac_ext <<_ACEOF
3160 #line 3160 "configure"
3161 #include "confdefs.h"
3165 if { (eval echo "$as_me:3165: \"$ac_cpp conftest.$ac_ext\"") >&5
3166 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3168 egrep -v '^ *\+' conftest.er1
>conftest.err
3170 cat conftest.err
>&5
3171 echo "$as_me:3171: \$? = $ac_status" >&5
3172 (exit $ac_status); } >/dev
/null
; then
3173 if test -s conftest.err
; then
3174 ac_cpp_err
=$ac_c_preproc_warn_flag
3181 if test -z "$ac_cpp_err"; then
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.
$ac_ext >&5
3186 # Broken: fails on valid input.
3189 rm -f conftest.err conftest.
$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.
$ac_ext <<_ACEOF
3194 #line 3194 "configure"
3195 #include "confdefs.h"
3196 #include <ac_nonexistent.h>
3198 if { (eval echo "$as_me:3198: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3201 egrep -v '^ *\+' conftest.er1
>conftest.err
3203 cat conftest.err
>&5
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev
/null
; then
3206 if test -s conftest.err
; then
3207 ac_cpp_err
=$ac_c_preproc_warn_flag
3214 if test -z "$ac_cpp_err"; then
3215 # Broken: success on invalid input.
3218 echo "$as_me: failed program was:" >&5
3219 cat conftest.
$ac_ext >&5
3220 # Passes both tests.
3224 rm -f conftest.err conftest.
$ac_ext
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228 rm -f conftest.err conftest.
$ac_ext
3229 if $ac_preproc_ok; then
3232 { { echo "$as_me:3232: error: C preprocessor \"$CPP\" fails sanity check" >&5
3233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3234 { (exit 1); exit 1; }; }
3238 ac_cpp
='$CPP $CPPFLAGS'
3239 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3243 # Find a good install program. We prefer a C program (faster),
3244 # so one script is as good as another. But avoid the broken or
3245 # incompatible versions:
3246 # SysV /etc/install, /usr/sbin/install
3247 # SunOS /usr/etc/install
3248 # IRIX /sbin/install
3250 # AmigaOS /C/install, which installs bootblocks on floppy discs
3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 echo "$as_me:3255: checking for a BSD compatible install" >&5
3256 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3257 if test -z "$INSTALL"; then
3258 if test "${ac_cv_path_install+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3262 for ac_dir
in $PATH; do
3264 # Account for people who put trailing slashes in PATH elements.
3266 / | .
/ | .
// |
/cC
/* \
3267 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3270 # OSF1 and SCO ODT 3.0 have their own names for install.
3271 # Don't use installbsd from OSF since it installs stuff as root
3273 for ac_prog
in ginstall scoinst
install; do
3274 if $as_executable_p "$ac_dir/$ac_prog"; then
3275 if test $ac_prog = install &&
3276 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3277 # AIX install. It has an incompatible calling convention.
3279 elif test $ac_prog = install &&
3280 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3281 # program-specific install script used by HP pwplus--don't use.
3284 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3294 if test "${ac_cv_path_install+set}" = set; then
3295 INSTALL
=$ac_cv_path_install
3297 # As a last resort, use the slow shell script. We don't cache a
3298 # path for INSTALL within a source directory, because that will
3299 # break other packages using the cache if that directory is
3300 # removed, or if the path is relative.
3301 INSTALL
=$ac_install_sh
3304 echo "$as_me:3304: result: $INSTALL" >&5
3305 echo "${ECHO_T}$INSTALL" >&6
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3313 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3315 for ac_prog
in 'bison -y' byacc
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy
$ac_prog; ac_word
=$2
3319 echo "$as_me:3319: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_YACC+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 if test -n "$YACC"; then
3325 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3327 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3329 for ac_dir
in $ac_dummy; do
3331 test -z "$ac_dir" && ac_dir
=.
3332 $as_executable_p "$ac_dir/$ac_word" ||
continue
3333 ac_cv_prog_YACC
="$ac_prog"
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5
3340 YACC
=$ac_cv_prog_YACC
3341 if test -n "$YACC"; then
3342 echo "$as_me:3342: result: $YACC" >&5
3343 echo "${ECHO_T}$YACC" >&6
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$YACC" && break
3351 test -n "$YACC" || YACC
="yacc"
3353 if test "x$RANLIB" = x
; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3357 echo "$as_me:3357: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3365 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3367 for ac_dir
in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir
=.
3370 $as_executable_p "$ac_dir/$ac_word" ||
continue
3371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5
3378 RANLIB
=$ac_cv_prog_RANLIB
3379 if test -n "$RANLIB"; then
3380 echo "$as_me:3380: result: $RANLIB" >&5
3381 echo "${ECHO_T}$RANLIB" >&6
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB
=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib
; ac_word
=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3400 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3402 for ac_dir
in $ac_dummy; do
3404 test -z "$ac_dir" && ac_dir
=.
3405 $as_executable_p "$ac_dir/$ac_word" ||
continue
3406 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3414 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3415 if test -n "$ac_ct_RANLIB"; then
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5
3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 RANLIB
=$ac_ct_RANLIB
3425 RANLIB
="$ac_cv_prog_RANLIB"
3430 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3432 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3435 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3437 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3440 echo "$as_me:3440: checking for AIX" >&5
3441 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3442 cat >conftest.
$ac_ext <<_ACEOF
3443 #line 3443 "configure"
3444 #include "confdefs.h"
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "yes" >/dev
/null
2>&1; then
3452 echo "$as_me:3452: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6
3454 cat >>confdefs.h
<<\EOF
3455 #define _ALL_SOURCE 1
3459 echo "$as_me:3459: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3464 #### Extract some information from the operating system and machine files.
3466 { echo "$as_me:3466: checking the machine- and system-dependent files to find out
3467 - which libraries the lib-src programs will want, and
3468 - whether the GNU malloc routines are usable..." >&5
3469 echo "$as_me: checking the machine- and system-dependent files to find out
3470 - which libraries the lib-src programs will want, and
3471 - whether the GNU malloc routines are usable..." >&6;}
3473 ### First figure out CFLAGS (which we use for running the compiler here)
3474 ### and REAL_CFLAGS (which we use for real compilation).
3475 ### The two are the same except on a few systems, where they are made
3476 ### different to work around various lossages. For example,
3477 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3478 ### as implying static linking.
3480 ### If the CFLAGS env var is specified, we use that value
3481 ### instead of the default.
3483 ### It's not important that this name contain the PID; you can't run
3484 ### two configures in the same directory and have anything work
3486 tempcname
="conftest.c"
3489 #include "'${srcdir}'/src/'${opsysfile}'"
3490 #include "'${srcdir}'/src/'${machfile}'"
3491 #ifndef LIBS_MACHINE
3492 #define LIBS_MACHINE
3497 #ifndef C_SWITCH_SYSTEM
3498 #define C_SWITCH_SYSTEM
3500 #ifndef C_SWITCH_MACHINE
3501 #define C_SWITCH_MACHINE
3503 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3504 configure___ c_switch_system=C_SWITCH_SYSTEM
3505 configure___ c_switch_machine=C_SWITCH_MACHINE
3508 #define LIB_X11_LIB -lX11
3511 #ifndef LIBX11_MACHINE
3512 #define LIBX11_MACHINE
3515 #ifndef LIBX11_SYSTEM
3516 #define LIBX11_SYSTEM
3518 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3521 configure___ unexec=UNEXEC
3523 configure___ unexec=unexec.o
3526 #ifdef SYSTEM_MALLOC
3527 configure___ system_malloc=yes
3529 configure___ system_malloc=no
3532 #ifdef USE_MMAP_FOR_BUFFERS
3533 configure___ use_mmap_for_buffers=yes
3535 configure___ use_mmap_for_buffers=no
3538 #ifndef C_DEBUG_SWITCH
3539 #define C_DEBUG_SWITCH -g
3542 #ifndef C_OPTIMIZE_SWITCH
3544 #define C_OPTIMIZE_SWITCH -O2
3546 #define C_OPTIMIZE_SWITCH -O
3550 #ifndef LD_SWITCH_MACHINE
3551 #define LD_SWITCH_MACHINE
3554 #ifndef LD_SWITCH_SYSTEM
3555 #define LD_SWITCH_SYSTEM
3558 #ifndef LD_SWITCH_X_SITE_AUX
3559 #define LD_SWITCH_X_SITE_AUX
3562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3565 #ifdef THIS_IS_CONFIGURE
3567 /* Get the CFLAGS for tests in configure. */
3569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3574 #else /* not THIS_IS_CONFIGURE */
3576 /* Get the CFLAGS for real compilation. */
3578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3583 #endif /* not THIS_IS_CONFIGURE */
3586 # The value of CPP is a quoted variable reference, so we need to do this
3587 # to get its actual value...
3588 CPP
=`eval "echo $CPP"`
3589 eval `${CPP} -Isrc ${tempcname} \
3590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3591 if test "x$SPECIFIED_CFLAGS" = x
; then
3592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3595 REAL_CFLAGS
="$CFLAGS"
3599 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3601 ### Make sure subsequent tests use flags consistent with the build flags.
3603 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3604 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3606 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3609 # Check whether --enable-largefile or --disable-largefile was given.
3610 if test "${enable_largefile+set}" = set; then
3611 enableval
="$enable_largefile"
3614 if test "$enable_largefile" != no
; then
3616 echo "$as_me:3616: checking for special C compiler options needed for large files" >&5
3617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3618 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 ac_cv_sys_largefile_CC
=no
3622 if test "$GCC" != yes; then
3625 # IRIX 6.2 and later do not support large files by default,
3626 # so use the C compiler's -n32 option if that helps.
3627 cat >conftest.
$ac_ext <<_ACEOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3630 #include <sys/types.h>
3631 /* Check that off_t can represent 2**63 - 1 correctly.
3632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3633 since some C++ compilers masquerading as C compilers
3634 incorrectly reject 9223372036854775807. */
3635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3637 && LARGE_OFF_T % 2147483647 == 1)
3647 rm -f conftest.
$ac_objext
3648 if { (eval echo "$as_me:3648: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try
='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.
$ac_ext >&5
3664 rm -f conftest.
$ac_objext
3666 rm -f conftest.
$ac_objext
3667 if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3670 echo "$as_me:3670: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try
='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5
3676 echo "$as_me:3676: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_sys_largefile_CC
=' -n32'; break
3680 echo "$as_me: failed program was:" >&5
3681 cat conftest.
$ac_ext >&5
3683 rm -f conftest.
$ac_objext
3687 rm -f conftest.
$ac_ext
3690 echo "$as_me:3690: result: $ac_cv_sys_largefile_CC" >&5
3691 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3692 if test "$ac_cv_sys_largefile_CC" != no
; then
3693 CC
=$CC$ac_cv_sys_largefile_CC
3696 echo "$as_me:3696: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3697 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3698 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 ac_cv_sys_file_offset_bits
=no
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line 3704 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3707 /* Check that off_t can represent 2**63 - 1 correctly.
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3709 since some C++ compilers masquerading as C compilers
3710 incorrectly reject 9223372036854775807. */
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3713 && LARGE_OFF_T % 2147483647 == 1)
3723 rm -f conftest.
$ac_objext
3724 if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3727 echo "$as_me:3727: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5
3733 echo "$as_me:3733: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: failed program was:" >&5
3738 cat conftest.
$ac_ext >&5
3740 rm -f conftest.
$ac_objext conftest.
$ac_ext
3741 cat >conftest.
$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3744 #define _FILE_OFFSET_BITS 64
3745 #include <sys/types.h>
3746 /* Check that off_t can represent 2**63 - 1 correctly.
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3748 since some C++ compilers masquerading as C compilers
3749 incorrectly reject 9223372036854775807. */
3750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3752 && LARGE_OFF_T % 2147483647 == 1)
3762 rm -f conftest.
$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try
='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_sys_file_offset_bits
=64; break
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3779 rm -f conftest.
$ac_objext conftest.
$ac_ext
3783 echo "$as_me:3783: result: $ac_cv_sys_file_offset_bits" >&5
3784 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3785 if test "$ac_cv_sys_file_offset_bits" != no
; then
3787 cat >>confdefs.h
<<EOF
3788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3793 echo "$as_me:3793: checking for _LARGE_FILES value needed for large files" >&5
3794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3795 if test "${ac_cv_sys_large_files+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_cv_sys_large_files
=no
3800 cat >conftest.
$ac_ext <<_ACEOF
3801 #line 3801 "configure"
3802 #include "confdefs.h"
3803 #include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3820 rm -f conftest.
$ac_objext
3821 if { (eval echo "$as_me:3821: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>&5
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try
='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:3827: \"$ac_try\"") >&5
3830 echo "$as_me:3830: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3834 echo "$as_me: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3837 rm -f conftest.
$ac_objext conftest.
$ac_ext
3838 cat >conftest.
$ac_ext <<_ACEOF
3839 #line 3839 "configure"
3840 #include "confdefs.h"
3841 #define _LARGE_FILES 1
3842 #include <sys/types.h>
3843 /* Check that off_t can represent 2**63 - 1 correctly.
3844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3845 since some C++ compilers masquerading as C compilers
3846 incorrectly reject 9223372036854775807. */
3847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3849 && LARGE_OFF_T % 2147483647 == 1)
3859 rm -f conftest.
$ac_objext
3860 if { (eval echo "$as_me:3860: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3863 echo "$as_me:3863: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try
='test -s conftest.$ac_objext'
3866 { (eval echo "$as_me:3866: \"$ac_try\"") >&5
3869 echo "$as_me:3869: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sys_large_files
=1; break
3873 echo "$as_me: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 rm -f conftest.
$ac_objext conftest.
$ac_ext
3880 echo "$as_me:3880: result: $ac_cv_sys_large_files" >&5
3881 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3882 if test "$ac_cv_sys_large_files" != no
; then
3884 cat >>confdefs.h
<<EOF
3885 #define _LARGE_FILES $ac_cv_sys_large_files
3892 if test "${with_sound}" != "no"; then
3893 # Sound support for GNU/Linux and the free BSDs.
3895 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898 echo "$as_me:3898: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 cat >conftest.
$ac_ext <<_ACEOF
3904 #line 3904 "configure"
3905 #include "confdefs.h"
3906 #include <$ac_header>
3908 if { (eval echo "$as_me:3908: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3911 egrep -v '^ *\+' conftest.er1
>conftest.err
3913 cat conftest.err
>&5
3914 echo "$as_me:3914: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev
/null
; then
3916 if test -s conftest.err
; then
3917 ac_cpp_err
=$ac_c_preproc_warn_flag
3924 if test -z "$ac_cpp_err"; then
3925 eval "$as_ac_Header=yes"
3927 echo "$as_me: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3929 eval "$as_ac_Header=no"
3931 rm -f conftest.err conftest.
$ac_ext
3933 echo "$as_me:3933: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936 cat >>confdefs.h
<<EOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943 # Emulation library used on NetBSD.
3944 echo "$as_me:3944: checking for _oss_ioctl in -lossaudio" >&5
3945 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 ac_check_lib_save_LIBS
=$LIBS
3950 LIBS
="-lossaudio $LIBS"
3951 cat >conftest.
$ac_ext <<_ACEOF
3952 #line 3952 "configure"
3953 #include "confdefs.h"
3955 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3970 rm -f conftest.
$ac_objext conftest
$ac_exeext
3971 if { (eval echo "$as_me:3971: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try
='test -s conftest$ac_exeext'
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5
3980 echo "$as_me:3980: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_lib_ossaudio__oss_ioctl
=yes
3984 echo "$as_me: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3986 ac_cv_lib_ossaudio__oss_ioctl
=no
3988 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3989 LIBS
=$ac_check_lib_save_LIBS
3991 echo "$as_me:3991: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3992 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3993 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4001 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4002 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4003 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4005 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 echo "$as_me:4006: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.
$ac_ext <<_ACEOF
4012 #line 4012 "configure"
4013 #include "confdefs.h"
4014 #include <$ac_header>
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4019 egrep -v '^ *\+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev
/null
; then
4024 if test -s conftest.err
; then
4025 ac_cpp_err
=$ac_c_preproc_warn_flag
4032 if test -z "$ac_cpp_err"; then
4033 eval "$as_ac_Header=yes"
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.
$ac_ext >&5
4037 eval "$as_ac_Header=no"
4039 rm -f conftest.err conftest.
$ac_ext
4041 echo "$as_me:4041: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h
<<EOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 echo "$as_me:4051: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 cat >conftest.
$ac_ext <<_ACEOF
4057 #line 4057 "configure"
4058 #include "confdefs.h"
4065 if { (eval echo "$as_me:4065: \"$ac_cpp conftest.$ac_ext\"") >&5
4066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4068 egrep -v '^ *\+' conftest.er1
>conftest.err
4070 cat conftest.err
>&5
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev
/null
; then
4073 if test -s conftest.err
; then
4074 ac_cpp_err
=$ac_c_preproc_warn_flag
4081 if test -z "$ac_cpp_err"; then
4082 ac_cv_header_stdc
=yes
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4086 ac_cv_header_stdc
=no
4088 rm -f conftest.err conftest.
$ac_ext
4090 if test $ac_cv_header_stdc = yes; then
4091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092 cat >conftest.
$ac_ext <<_ACEOF
4093 #line 4093 "configure"
4094 #include "confdefs.h"
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "memchr" >/dev
/null
2>&1; then
4102 ac_cv_header_stdc
=no
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat >conftest.
$ac_ext <<_ACEOF
4111 #line 4111 "configure"
4112 #include "confdefs.h"
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "free" >/dev
/null
2>&1; then
4120 ac_cv_header_stdc
=no
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4131 cat >conftest.
$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4135 #if ((' ' & 0x0FF) == 0x020)
4136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4139 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4140 || ('j' <= (c) && (c) <= 'r') \
4141 || ('s' <= (c) && (c) <= 'z'))
4142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4150 for (i = 0; i < 256; i++)
4151 if (XOR (islower (i), ISLOWER (i))
4152 || toupper (i) != TOUPPER (i))
4157 rm -f conftest
$ac_exeext
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4163 { (eval echo "$as_me:4163: \"$ac_try\"") >&5
4166 echo "$as_me:4166: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4170 echo "$as_me: program exited with status $ac_status" >&5
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.
$ac_ext >&5
4173 ac_cv_header_stdc
=no
4175 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4179 echo "$as_me:4179: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4181 if test $ac_cv_header_stdc = yes; then
4183 cat >>confdefs.h
<<\EOF
4184 #define STDC_HEADERS 1
4189 echo "$as_me:4189: checking whether time.h and sys/time.h may both be included" >&5
4190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4191 if test "${ac_cv_header_time+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 cat >conftest.
$ac_ext <<_ACEOF
4195 #line 4195 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4198 #include <sys/time.h>
4204 if ((struct tm *) 0)
4210 rm -f conftest.
$ac_objext
4211 if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try
='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 ac_cv_header_time
=yes
4224 echo "$as_me: failed program was:" >&5
4225 cat conftest.
$ac_ext >&5
4226 ac_cv_header_time
=no
4228 rm -f conftest.
$ac_objext conftest.
$ac_ext
4230 echo "$as_me:4230: result: $ac_cv_header_time" >&5
4231 echo "${ECHO_T}$ac_cv_header_time" >&6
4232 if test $ac_cv_header_time = yes; then
4234 cat >>confdefs.h
<<\EOF
4235 #define TIME_WITH_SYS_TIME 1
4240 echo "$as_me:4240: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4241 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4242 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.
$ac_ext <<_ACEOF
4246 #line 4246 "configure"
4247 #include "confdefs.h"
4248 #include <sys/types.h>
4250 /* NetBSD declares sys_siglist in unistd.h. */
4252 # include <unistd.h>
4258 char *msg = *(sys_siglist + 1);
4263 rm -f conftest.
$ac_objext
4264 if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try
='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_decl_sys_siglist
=yes
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4279 ac_cv_decl_sys_siglist
=no
4281 rm -f conftest.
$ac_objext conftest.
$ac_ext
4283 echo "$as_me:4283: result: $ac_cv_decl_sys_siglist" >&5
4284 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4285 if test $ac_cv_decl_sys_siglist = yes; then
4287 cat >>confdefs.h
<<\EOF
4288 #define SYS_SIGLIST_DECLARED 1
4293 echo "$as_me:4293: checking for sys/wait.h that is POSIX.1 compatible" >&5
4294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 cat >conftest.
$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #include <sys/types.h>
4302 #include <sys/wait.h>
4304 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4307 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4315 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4320 rm -f conftest.
$ac_objext
4321 if { (eval echo "$as_me:4321: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>&5
4324 echo "$as_me:4324: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try
='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:4327: \"$ac_try\"") >&5
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_header_sys_wait_h
=yes
4334 echo "$as_me: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4336 ac_cv_header_sys_wait_h
=no
4338 rm -f conftest.
$ac_objext conftest.
$ac_ext
4340 echo "$as_me:4340: result: $ac_cv_header_sys_wait_h" >&5
4341 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4342 if test $ac_cv_header_sys_wait_h = yes; then
4344 cat >>confdefs.h
<<\EOF
4345 #define HAVE_SYS_WAIT_H 1
4350 echo "$as_me:4350: checking for struct utimbuf" >&5
4351 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4352 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 cat >conftest.
$ac_ext <<_ACEOF
4356 #line 4356 "configure"
4357 #include "confdefs.h"
4358 #ifdef TIME_WITH_SYS_TIME
4359 #include <sys/time.h>
4362 #ifdef HAVE_SYS_TIME_H
4363 #include <sys/time.h>
4374 static struct utimbuf x; x.actime = x.modtime;
4379 rm -f conftest.
$ac_objext
4380 if { (eval echo "$as_me:4380: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4383 echo "$as_me:4383: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try
='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:4386: \"$ac_try\"") >&5
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 emacs_cv_struct_utimbuf
=yes
4393 echo "$as_me: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4395 emacs_cv_struct_utimbuf
=no
4397 rm -f conftest.
$ac_objext conftest.
$ac_ext
4399 echo "$as_me:4399: result: $emacs_cv_struct_utimbuf" >&5
4400 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4401 if test $emacs_cv_struct_utimbuf = yes; then
4403 cat >>confdefs.h
<<\EOF
4404 #define HAVE_STRUCT_UTIMBUF 1
4409 echo "$as_me:4409: checking return type of signal handlers" >&5
4410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4411 if test "${ac_cv_type_signal+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 cat >conftest.
$ac_ext <<_ACEOF
4415 #line 4415 "configure"
4416 #include "confdefs.h"
4417 #include <sys/types.h>
4423 extern "C" void (*signal (int, void (*)(int)))(int);
4425 void (*signal ()) ();
4436 rm -f conftest.
$ac_objext
4437 if { (eval echo "$as_me:4437: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try
='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:4443: \"$ac_try\"") >&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_type_signal
=void
4450 echo "$as_me: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4452 ac_cv_type_signal
=int
4454 rm -f conftest.
$ac_objext conftest.
$ac_ext
4456 echo "$as_me:4456: result: $ac_cv_type_signal" >&5
4457 echo "${ECHO_T}$ac_cv_type_signal" >&6
4459 cat >>confdefs.h
<<EOF
4460 #define RETSIGTYPE $ac_cv_type_signal
4463 echo "$as_me:4463: checking for speed_t" >&5
4464 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4465 if test "${emacs_cv_speed_t+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 cat >conftest.
$ac_ext <<_ACEOF
4469 #line 4469 "configure"
4470 #include "confdefs.h"
4471 #include <termios.h>
4480 rm -f conftest.
$ac_objext
4481 if { (eval echo "$as_me:4481: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:4487: \"$ac_try\"") >&5
4490 echo "$as_me:4490: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 emacs_cv_speed_t
=yes
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4498 rm -f conftest.
$ac_objext conftest.
$ac_ext
4500 echo "$as_me:4500: result: $emacs_cv_speed_t" >&5
4501 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4502 if test $emacs_cv_speed_t = yes; then
4504 cat >>confdefs.h
<<\EOF
4505 #define HAVE_SPEED_T 1
4510 echo "$as_me:4510: checking for struct timeval" >&5
4511 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4512 if test "${emacs_cv_struct_timeval+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.
$ac_ext <<_ACEOF
4516 #line 4516 "configure"
4517 #include "confdefs.h"
4518 #ifdef TIME_WITH_SYS_TIME
4519 #include <sys/time.h>
4522 #ifdef HAVE_SYS_TIME_H
4523 #include <sys/time.h>
4531 static struct timeval x; x.tv_sec = x.tv_usec;
4536 rm -f conftest.
$ac_objext
4537 if { (eval echo "$as_me:4537: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>&5
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try
='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:4543: \"$ac_try\"") >&5
4546 echo "$as_me:4546: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 emacs_cv_struct_timeval
=yes
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.
$ac_ext >&5
4552 emacs_cv_struct_timeval
=no
4554 rm -f conftest.
$ac_objext conftest.
$ac_ext
4556 echo "$as_me:4556: result: $emacs_cv_struct_timeval" >&5
4557 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4558 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4559 if test $emacs_cv_struct_timeval = yes; then
4561 cat >>confdefs.h
<<\EOF
4562 #define HAVE_TIMEVAL 1
4567 echo "$as_me:4567: checking for struct exception" >&5
4568 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4569 if test "${emacs_cv_struct_exception+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 cat >conftest.
$ac_ext <<_ACEOF
4573 #line 4573 "configure"
4574 #include "confdefs.h"
4579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try
='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 emacs_cv_struct_exception
=yes
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.
$ac_ext >&5
4600 emacs_cv_struct_exception
=no
4602 rm -f conftest.
$ac_objext conftest.
$ac_ext
4604 echo "$as_me:4604: result: $emacs_cv_struct_exception" >&5
4605 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4606 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4607 if test $emacs_cv_struct_exception != yes; then
4609 cat >>confdefs.h
<<\EOF
4610 #define NO_MATHERR 1
4615 echo "$as_me:4615: checking whether struct tm is in sys/time.h or time.h" >&5
4616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4617 if test "${ac_cv_struct_tm+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 cat >conftest.
$ac_ext <<_ACEOF
4621 #line 4621 "configure"
4622 #include "confdefs.h"
4623 #include <sys/types.h>
4629 struct tm *tp; tp->tm_sec;
4634 rm -f conftest.
$ac_objext
4635 if { (eval echo "$as_me:4635: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>&5
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_struct_tm
=time.h
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.
$ac_ext >&5
4650 ac_cv_struct_tm
=sys
/time.h
4652 rm -f conftest.
$ac_objext conftest.
$ac_ext
4654 echo "$as_me:4654: result: $ac_cv_struct_tm" >&5
4655 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4656 if test $ac_cv_struct_tm = sys
/time.h
; then
4658 cat >>confdefs.h
<<\EOF
4659 #define TM_IN_SYS_TIME 1
4664 echo "$as_me:4664: checking for struct tm.tm_zone" >&5
4665 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4666 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 cat >conftest.
$ac_ext <<_ACEOF
4670 #line 4670 "configure"
4671 #include "confdefs.h"
4672 #include <sys/types.h>
4673 #include <$ac_cv_struct_tm>
4678 static struct tm ac_aggr;
4679 if (ac_aggr.tm_zone)
4685 rm -f conftest.
$ac_objext
4686 if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4689 echo "$as_me:4689: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try
='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5
4695 echo "$as_me:4695: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_member_struct_tm_tm_zone
=yes
4699 echo "$as_me: failed program was:" >&5
4700 cat conftest.
$ac_ext >&5
4701 ac_cv_member_struct_tm_tm_zone
=no
4703 rm -f conftest.
$ac_objext conftest.
$ac_ext
4705 echo "$as_me:4705: result: $ac_cv_member_struct_tm_tm_zone" >&5
4706 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4707 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4709 cat >>confdefs.h
<<EOF
4710 #define HAVE_STRUCT_TM_TM_ZONE 1
4715 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4717 cat >>confdefs.h
<<\EOF
4718 #define HAVE_TM_ZONE 1
4722 echo "$as_me:4722: checking for tzname" >&5
4723 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4724 if test "${ac_cv_var_tzname+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.
$ac_ext <<_ACEOF
4728 #line 4728 "configure"
4729 #include "confdefs.h"
4731 #ifndef tzname /* For SGI. */
4732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4743 rm -f conftest.
$ac_objext conftest
$ac_exeext
4744 if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try
='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:4750: \"$ac_try\"") >&5
4753 echo "$as_me:4753: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_var_tzname
=yes
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4763 echo "$as_me:4763: result: $ac_cv_var_tzname" >&5
4764 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4765 if test $ac_cv_var_tzname = yes; then
4767 cat >>confdefs.h
<<\EOF
4768 #define HAVE_TZNAME 1
4774 echo "$as_me:4774: checking for struct tm.tm_gmtoff" >&5
4775 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4776 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 cat >conftest.
$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4787 static struct tm ac_aggr;
4788 if (ac_aggr.tm_gmtoff)
4794 rm -f conftest.
$ac_objext
4795 if { (eval echo "$as_me:4795: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4798 echo "$as_me:4798: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try
='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:4801: \"$ac_try\"") >&5
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_member_struct_tm_tm_gmtoff
=yes
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4810 ac_cv_member_struct_tm_tm_gmtoff
=no
4812 rm -f conftest.
$ac_objext conftest.
$ac_ext
4814 echo "$as_me:4814: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4818 cat >>confdefs.h
<<\EOF
4819 #define HAVE_TM_GMTOFF 1
4824 echo "$as_me:4824: checking for $CC option to accept ANSI C" >&5
4825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_cv_prog_cc_stdc
=no
4831 cat >conftest.
$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4852 s = g (p, va_arg (v,int));
4856 int test (int i, double x);
4857 struct s1 {int (*f) (int a);};
4858 struct s2 {int (*f) (double a);};
4859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 # Don't try gcc -ansi; that turns off useful extensions and
4871 # breaks some systems' header files.
4872 # AIX -qlanglvl=ansi
4873 # Ultrix and OSF/1 -std1
4874 # HP-UX 10.20 and later -Ae
4875 # HP-UX older versions -Aa -D_HPUX_SOURCE
4876 # SVR4 -Xc -D__EXTENSIONS__
4877 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 CC
="$ac_save_CC $ac_arg"
4880 rm -f conftest.
$ac_objext
4881 if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try
='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_prog_cc_stdc
=$ac_arg
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.
$ac_ext >&5
4898 rm -f conftest.
$ac_objext
4900 rm -f conftest.
$ac_ext conftest.
$ac_objext
4905 case "x$ac_cv_prog_cc_stdc" in
4907 echo "$as_me:4907: result: none needed" >&5
4908 echo "${ECHO_T}none needed" >&6 ;;
4910 echo "$as_me:4910: result: $ac_cv_prog_cc_stdc" >&5
4911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4912 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4915 echo "$as_me:4915: checking for function prototypes" >&5
4916 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4917 if test "$ac_cv_prog_cc_stdc" != no
; then
4918 echo "$as_me:4918: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4921 cat >>confdefs.h
<<\EOF
4922 #define PROTOTYPES 1
4926 echo "$as_me:4926: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 echo "$as_me:4930: checking for working volatile" >&5
4931 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4932 if test "${ac_cv_c_volatile+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4949 rm -f conftest.
$ac_objext
4950 if { (eval echo "$as_me:4950: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4953 echo "$as_me:4953: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try
='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:4956: \"$ac_try\"") >&5
4959 echo "$as_me:4959: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_c_volatile
=yes
4963 echo "$as_me: failed program was:" >&5
4964 cat conftest.
$ac_ext >&5
4967 rm -f conftest.
$ac_objext conftest.
$ac_ext
4969 echo "$as_me:4969: result: $ac_cv_c_volatile" >&5
4970 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4971 if test $ac_cv_c_volatile = no
; then
4973 cat >>confdefs.h
<<\EOF
4979 echo "$as_me:4979: checking for an ANSI C-conforming const" >&5
4980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4981 if test "${ac_cv_c_const+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4985 #line 4985 "configure"
4986 #include "confdefs.h"
4991 /* FIXME: Include the comments suggested by Paul. */
4993 /* Ultrix mips cc rejects this. */
4994 typedef int charset[2];
4996 /* SunOS 4.1.1 cc rejects this. */
4997 char const *const *ccp;
4999 /* NEC SVR4.0.2 mips cc rejects this. */
5000 struct point {int x, y;};
5001 static struct point const zero = {0,0};
5002 /* AIX XL C 1.02.0.0 rejects this.
5003 It does not let you subtract one const X* pointer from another in
5004 an arm of an if-expression whose if-part is not a constant
5006 const char *g = "string";
5007 ccp = &g + (g ? g-g : 0);
5008 /* HPUX 7.0 cc rejects these. */
5011 ccp = (char const *const *) p;
5012 { /* SCO 3.2v4 cc rejects this. */
5014 char const *s = 0 ? (char *) 0 : (char const *) 0;
5018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5020 const int *foo = &x[0];
5023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5024 typedef const int *iptr;
5028 { /* AIX XL C 1.02.0.0 rejects this saying
5029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5030 struct s { int j; const int *ap[3]; };
5031 struct s *b; b->j = 5;
5033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5042 rm -f conftest.
$ac_objext
5043 if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5046 echo "$as_me:5046: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try
='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5060 rm -f conftest.
$ac_objext conftest.
$ac_ext
5062 echo "$as_me:5062: result: $ac_cv_c_const" >&5
5063 echo "${ECHO_T}$ac_cv_c_const" >&6
5064 if test $ac_cv_c_const = no
; then
5066 cat >>confdefs.h
<<\EOF
5072 echo "$as_me:5072: checking for void * support" >&5
5073 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5074 if test "${emacs_cv_void_star+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 cat >conftest.
$ac_ext <<_ACEOF
5078 #line 5078 "configure"
5079 #include "confdefs.h"
5089 rm -f conftest.
$ac_objext
5090 if { (eval echo "$as_me:5090: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5093 echo "$as_me:5093: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try
='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:5096: \"$ac_try\"") >&5
5099 echo "$as_me:5099: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 emacs_cv_void_star
=yes
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.
$ac_ext >&5
5105 emacs_cv_void_star
=no
5107 rm -f conftest.
$ac_objext conftest.
$ac_ext
5109 echo "$as_me:5109: result: $emacs_cv_void_star" >&5
5110 echo "${ECHO_T}$emacs_cv_void_star" >&6
5111 if test $emacs_cv_void_star = yes; then
5112 cat >>confdefs.h
<<\EOF
5113 #define POINTER_TYPE void
5117 cat >>confdefs.h
<<\EOF
5118 #define POINTER_TYPE char
5123 echo "$as_me:5123: checking whether ${MAKE-make} sets \${MAKE}" >&5
5124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5125 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 cat >conftest.
make <<\EOF
5131 @
echo 'ac_maketemp="${MAKE}"'
5133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5135 if test -n "$ac_maketemp"; then
5136 eval ac_cv_prog_make_
${ac_make}_set
=yes
5138 eval ac_cv_prog_make_
${ac_make}_set
=no
5142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5143 echo "$as_me:5143: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5147 echo "$as_me:5147: result: no" >&5
5148 echo "${ECHO_T}no" >&6
5149 SET_MAKE
="MAKE=${MAKE-make}"
5152 echo "$as_me:5152: checking for long file names" >&5
5153 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5154 if test "${ac_cv_sys_long_file_names+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_cv_sys_long_file_names
=yes
5158 # Test for long file names in all the places we know might matter:
5159 # . the current directory, where building will happen
5160 # $prefix/lib where we will be installing things
5161 # $exec_prefix/lib likewise
5162 # eval it to expand exec_prefix.
5163 # $TMPDIR if set, where it might want to write temporary files
5164 # if $TMPDIR is not set:
5165 # /tmp where it might want to write temporary files
5168 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5171 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5173 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5174 test -d $ac_dir ||
continue
5175 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5176 ac_xdir
=$ac_dir/cf$$
5177 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5178 ac_tf1
=$ac_xdir/conftest9012345
5179 ac_tf2
=$ac_xdir/conftest9012346
5180 (echo 1 >$ac_tf1) 2>/dev
/null
5181 (echo 2 >$ac_tf2) 2>/dev
/null
5182 ac_val
=`cat $ac_tf1 2>/dev/null`
5183 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5184 ac_cv_sys_long_file_names
=no
5185 rm -rf $ac_xdir 2>/dev
/null
5188 rm -rf $ac_xdir 2>/dev
/null
5191 echo "$as_me:5191: result: $ac_cv_sys_long_file_names" >&5
5192 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5193 if test $ac_cv_sys_long_file_names = yes; then
5195 cat >>confdefs.h
<<\EOF
5196 #define HAVE_LONG_FILE_NAMES 1
5201 #### Choose a window system.
5203 echo "$as_me:5203: checking for X" >&5
5204 echo $ECHO_N "checking for X... $ECHO_C" >&6
5206 # Check whether --with-x or --without-x was given.
5207 if test "${with_x+set}" = set; then
5211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5212 if test "x$with_x" = xno
; then
5213 # The user explicitly disabled X.
5216 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5217 # Both variables are already set.
5220 if test "${ac_cv_have_x+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 # One or both of the vars are not set, and there is no cached value.
5224 ac_x_includes
=no ac_x_libraries
=no
5226 if mkdir conftest.dir
; then
5228 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5229 cat >Imakefile
<<'EOF'
5231 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5233 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5235 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5237 for ac_extension
in a so sl
; do
5238 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5239 test -f $ac_im_libdir/libX11.
$ac_extension; then
5240 ac_im_usrlibdir
=$ac_im_libdir; break
5243 # Screen out bogus values from the imake configuration. They are
5244 # bogus both because they are the default anyway, and because
5245 # using them would break gcc on systems where it needs fixed includes.
5246 case $ac_im_incroot in
5248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5250 case $ac_im_usrlibdir in
5252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5259 # Standard set of common directories for X headers.
5260 # Check X11 before X11Rn because it is often a symlink to the current release.
5272 /usr/local/X11/include
5273 /usr/local/X11R6/include
5274 /usr/local/X11R5/include
5275 /usr/local/X11R4/include
5277 /usr/local/include/X11
5278 /usr/local/include/X11R6
5279 /usr/local/include/X11R5
5280 /usr/local/include/X11R4
5284 /usr/XFree86/include/X11
5288 /usr/unsupported/include
5290 /usr/local/x11r5/include
5291 /usr/lpp/Xamples/include
5293 /usr/openwin/include
5294 /usr/openwin/share/include'
5296 if test "$ac_x_includes" = no
; then
5297 # Guess where to find include files, by looking for Intrinsic.h.
5298 # First, try using that file with no special directory specified.
5299 cat >conftest.
$ac_ext <<_ACEOF
5300 #line 5300 "configure"
5301 #include "confdefs.h"
5302 #include <X11/Intrinsic.h>
5304 if { (eval echo "$as_me:5304: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5307 egrep -v '^ *\+' conftest.er1
>conftest.err
5309 cat conftest.err
>&5
5310 echo "$as_me:5310: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev
/null
; then
5312 if test -s conftest.err
; then
5313 ac_cpp_err
=$ac_c_preproc_warn_flag
5320 if test -z "$ac_cpp_err"; then
5321 # We can compile using X headers with no special include directory.
5324 echo "$as_me: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5326 for ac_dir
in $ac_x_header_dirs; do
5327 if test -r "$ac_dir/X11/Intrinsic.h"; then
5328 ac_x_includes
=$ac_dir
5333 rm -f conftest.err conftest.
$ac_ext
5334 fi # $ac_x_includes = no
5336 if test "$ac_x_libraries" = no
; then
5337 # Check for the libraries.
5338 # See if we find them without any special options.
5339 # Don't add to $LIBS permanently.
5342 cat >conftest.
$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 #include <X11/Intrinsic.h>
5354 rm -f conftest.
$ac_objext conftest
$ac_exeext
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try
='test -s conftest$ac_exeext'
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5367 # We can link X programs with no special library path.
5370 echo "$as_me: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5375 # Don't even attempt the hair of trying to link an X program!
5376 for ac_extension
in a so sl
; do
5377 if test -r $ac_dir/libXt.
$ac_extension; then
5378 ac_x_libraries
=$ac_dir
5384 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5385 fi # $ac_x_libraries = no
5387 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5388 # Didn't find X anywhere. Cache the known absence of X.
5389 ac_cv_have_x
="have_x=no"
5391 # Record where we found X for the cache.
5392 ac_cv_have_x
="have_x=yes \
5393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5398 eval "$ac_cv_have_x"
5401 if test "$have_x" != yes; then
5402 echo "$as_me:5402: result: $have_x" >&5
5403 echo "${ECHO_T}$have_x" >&6
5406 # If each of the values was on the command line, it overrides each guess.
5407 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5408 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5409 # Update the cache value to reflect the command line values.
5410 ac_cv_have_x
="have_x=yes \
5411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5412 echo "$as_me:5412: result: libraries $x_libraries, headers $x_includes" >&5
5413 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5416 if test "$no_x" = yes; then
5422 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5423 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5424 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5425 x_default_search_path
=""
5426 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5428 ${x_library}/X11/%L/%T/%N%C%S:\
5429 ${x_library}/X11/%l/%T/%N%C%S:\
5430 ${x_library}/X11/%T/%N%C%S:\
5431 ${x_library}/X11/%L/%T/%N%S:\
5432 ${x_library}/X11/%l/%T/%N%S:\
5433 ${x_library}/X11/%T/%N%S"
5434 if test x
"${x_default_search_path}" = x
; then
5435 x_default_search_path
=${x_search_path}
5437 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5441 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5442 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5445 if test x
"${x_includes}" = x
; then
5446 bitmapdir
=/usr
/include
/X11
/bitmaps
5448 # accumulate include directories that have X11 bitmap subdirectories
5450 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5451 if test -d "${bmd}/X11/bitmaps"; then
5452 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5454 if test -d "${bmd}/bitmaps"; then
5455 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5458 if test ${bmd_acc} != "dummyval"; then
5459 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5463 case "${window_system}" in
5467 case "${with_x_toolkit}" in
5468 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5469 motif
) USE_X_TOOLKIT
=MOTIF
;;
5470 no
) USE_X_TOOLKIT
=none
;;
5471 * ) USE_X_TOOLKIT
=maybe
;;
5481 ### If we're using X11, we should use the X menu package.
5484 yes ) HAVE_MENUS
=yes ;;
5487 if test "${opsys}" = "hpux9"; then
5488 case "${x_libraries}" in
5490 opsysfile
="s/hpux9-x11r4.h"
5495 if test "${opsys}" = "hpux9shr"; then
5496 case "${x_libraries}" in
5498 opsysfile
="s/hpux9shxr4.h"
5503 ### Compute the unexec source name from the object name.
5504 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5506 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5507 # Assume not, until told otherwise.
5510 echo "$as_me:5510: checking for malloc_get_state" >&5
5511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5512 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 cat >conftest.
$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5518 /* System header to define __stub macros and hopefully few prototypes,
5519 which can conflict with char malloc_get_state (); below. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5527 char malloc_get_state ();
5533 /* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5539 f = malloc_get_state;
5546 rm -f conftest.
$ac_objext conftest
$ac_exeext
5547 if { (eval echo "$as_me:5547: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try
='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:5553: \"$ac_try\"") >&5
5556 echo "$as_me:5556: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_func_malloc_get_state
=yes
5560 echo "$as_me: failed program was:" >&5
5561 cat conftest.
$ac_ext >&5
5562 ac_cv_func_malloc_get_state
=no
5564 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5566 echo "$as_me:5566: result: $ac_cv_func_malloc_get_state" >&5
5567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5568 if test $ac_cv_func_malloc_get_state = yes; then
5574 echo "$as_me:5574: checking for malloc_set_state" >&5
5575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 cat >conftest.
$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 /* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char malloc_set_state (); below. */
5585 /* Override any gcc2 internal prototype to avoid an error. */
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5591 char malloc_set_state ();
5597 /* The GNU C library defines this for functions which it implements
5598 to always fail with ENOSYS. Some functions are actually named
5599 something starting with __ and the normal name is an alias. */
5600 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5603 f = malloc_set_state;
5610 rm -f conftest.
$ac_objext conftest
$ac_exeext
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try
='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_func_malloc_set_state
=yes
5624 echo "$as_me: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5626 ac_cv_func_malloc_set_state
=no
5628 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5630 echo "$as_me:5630: result: $ac_cv_func_malloc_set_state" >&5
5631 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5632 if test $ac_cv_func_malloc_set_state = yes; then
5638 echo "$as_me:5638: checking whether __after_morecore_hook exists" >&5
5639 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5640 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 cat >conftest.
$ac_ext <<_ACEOF
5644 #line 5644 "configure"
5645 #include "confdefs.h"
5646 extern void (* __after_morecore_hook)();
5650 __after_morecore_hook = 0
5655 rm -f conftest.
$ac_objext conftest
$ac_exeext
5656 if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:5662: \"$ac_try\"") >&5
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 emacs_cv_var___after_morecore_hook
=yes
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.
$ac_ext >&5
5671 emacs_cv_var___after_morecore_hook
=no
5673 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5675 echo "$as_me:5675: result: $emacs_cv_var___after_morecore_hook" >&5
5676 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5677 if test $emacs_cv_var___after_morecore_hook = no
; then
5680 if test "${system_malloc}" = "yes"; then
5683 (The GNU allocators don't work with this system configuration.)"
5685 if test "$doug_lea_malloc" = "yes" ; then
5686 if test "$GNU_MALLOC" = yes ; then
5688 (Using Doug Lea's new malloc from the GNU C Library.)"
5691 cat >>confdefs.h
<<\EOF
5692 #define DOUG_LEA_MALLOC 1
5697 if test x
"${REL_ALLOC}" = x
; then
5698 REL_ALLOC
=${GNU_MALLOC}
5701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5703 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5704 inttypes.h stdint.h unistd.h
5706 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707 echo "$as_me:5707: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 cat >conftest.
$ac_ext <<_ACEOF
5713 #line 5713 "configure"
5714 #include "confdefs.h"
5715 $ac_includes_default
5716 #include <$ac_header>
5718 rm -f conftest.
$ac_objext
5719 if { (eval echo "$as_me:5719: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try
='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:5725: \"$ac_try\"") >&5
5728 echo "$as_me:5728: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 eval "$as_ac_Header=yes"
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.
$ac_ext >&5
5734 eval "$as_ac_Header=no"
5736 rm -f conftest.
$ac_objext conftest.
$ac_ext
5738 echo "$as_me:5738: result: `eval echo '${'$as_ac_Header'}'`" >&5
5739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5741 cat >>confdefs.h
<<EOF
5742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5748 for ac_header
in stdlib.h unistd.h
5750 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5751 echo "$as_me:5751: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.
$ac_ext <<_ACEOF
5757 #line 5757 "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5761 if { (eval echo "$as_me:5761: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5764 egrep -v '^ *\+' conftest.er1
>conftest.err
5766 cat conftest.err
>&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev
/null
; then
5769 if test -s conftest.err
; then
5770 ac_cpp_err
=$ac_c_preproc_warn_flag
5777 if test -z "$ac_cpp_err"; then
5778 eval "$as_ac_Header=yes"
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.
$ac_ext >&5
5782 eval "$as_ac_Header=no"
5784 rm -f conftest.err conftest.
$ac_ext
5786 echo "$as_me:5786: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h
<<EOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796 for ac_func
in getpagesize
5798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5799 echo "$as_me:5799: checking for $ac_func" >&5
5800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5801 if eval "test \"\${$as_ac_var+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 cat >conftest.
$ac_ext <<_ACEOF
5805 #line 5805 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func (); below. */
5810 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5835 rm -f conftest.
$ac_objext conftest
$ac_exeext
5836 if { (eval echo "$as_me:5836: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try
='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:5842: \"$ac_try\"") >&5
5845 echo "$as_me:5845: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 eval "$as_ac_var=yes"
5849 echo "$as_me: failed program was:" >&5
5850 cat conftest.
$ac_ext >&5
5851 eval "$as_ac_var=no"
5853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5855 echo "$as_me:5855: result: `eval echo '${'$as_ac_var'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5857 if test `eval echo '${'$as_ac_var'}'` = yes; then
5858 cat >>confdefs.h
<<EOF
5859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5865 echo "$as_me:5865: checking for working mmap" >&5
5866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test "$cross_compiling" = yes; then
5871 ac_cv_func_mmap_fixed_mapped
=no
5873 cat >conftest.
$ac_ext <<_ACEOF
5874 #line 5874 "configure"
5875 #include "confdefs.h"
5876 $ac_includes_default
5877 /* Thanks to Mike Haertel and Jim Avera for this test.
5878 Here is a matrix of mmap possibilities:
5879 mmap private not fixed
5880 mmap private fixed at somewhere currently unmapped
5881 mmap private fixed at somewhere already mapped
5882 mmap shared not fixed
5883 mmap shared fixed at somewhere currently unmapped
5884 mmap shared fixed at somewhere already mapped
5885 For private mappings, we should verify that changes cannot be read()
5886 back from the file, nor mmap's back from the file at a different
5887 address. (There have been systems where private was not correctly
5888 implemented like the infamous i386 svr4.0, and systems where the
5889 VM page cache was not coherent with the file system buffer cache
5890 like early versions of FreeBSD and possibly contemporary NetBSD.)
5891 For shared mappings, we should conversely verify that changes get
5892 propogated back to all the places they're supposed to be.
5894 Grep wants private fixed already mapped.
5895 The main things grep needs to know about mmap are:
5896 * does it exist and is it safe to write into the mmap'd area
5897 * how to use it (BSD variants) */
5900 #include <sys/mman.h>
5902 #if !STDC_HEADERS && !HAVE_STDLIB_H
5906 /* This mess was copied from the GNU getpagesize.h. */
5907 #if !HAVE_GETPAGESIZE
5908 /* Assume that all systems that can run configure have sys/param.h. */
5909 # if !HAVE_SYS_PARAM_H
5910 # define HAVE_SYS_PARAM_H 1
5913 # ifdef _SC_PAGESIZE
5914 # define getpagesize() sysconf(_SC_PAGESIZE)
5915 # else /* no _SC_PAGESIZE */
5916 # if HAVE_SYS_PARAM_H
5917 # include <sys/param.h>
5918 # ifdef EXEC_PAGESIZE
5919 # define getpagesize() EXEC_PAGESIZE
5920 # else /* no EXEC_PAGESIZE */
5922 # define getpagesize() NBPG * CLSIZE
5925 # endif /* no CLSIZE */
5926 # else /* no NBPG */
5928 # define getpagesize() NBPC
5929 # else /* no NBPC */
5931 # define getpagesize() PAGESIZE
5932 # endif /* PAGESIZE */
5933 # endif /* no NBPC */
5934 # endif /* no NBPG */
5935 # endif /* no EXEC_PAGESIZE */
5936 # else /* no HAVE_SYS_PARAM_H */
5937 # define getpagesize() 8192 /* punt totally */
5938 # endif /* no HAVE_SYS_PARAM_H */
5939 # endif /* no _SC_PAGESIZE */
5941 #endif /* no HAVE_GETPAGESIZE */
5946 char *data, *data2, *data3;
5950 pagesize = getpagesize ();
5952 /* First, make a file with some known garbage in it. */
5953 data = (char *) malloc (pagesize);
5956 for (i = 0; i < pagesize; ++i)
5957 *(data + i) = rand ();
5959 fd = creat ("conftest.mmap", 0600);
5962 if (write (fd, data, pagesize) != pagesize)
5966 /* Next, try to mmap the file at a fixed address which already has
5967 something else allocated at it. If we can, also make sure that
5968 we see the same garbage. */
5969 fd = open ("conftest.mmap", O_RDWR);
5972 data2 = (char *) malloc (2 * pagesize);
5975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5979 for (i = 0; i < pagesize; ++i)
5980 if (*(data + i) != *(data2 + i))
5983 /* Finally, make sure that changes to the mapped area do not
5984 percolate back to the file as seen by read(). (This is a bug on
5985 some variants of i386 svr4.0.) */
5986 for (i = 0; i < pagesize; ++i)
5987 *(data2 + i) = *(data2 + i) + 1;
5988 data3 = (char *) malloc (pagesize);
5991 if (read (fd, data3, pagesize) != pagesize)
5993 for (i = 0; i < pagesize; ++i)
5994 if (*(data + i) != *(data3 + i))
6000 rm -f conftest
$ac_exeext
6001 if { (eval echo "$as_me:6001: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6006 { (eval echo "$as_me:6006: \"$ac_try\"") >&5
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_func_mmap_fixed_mapped
=yes
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.
$ac_ext >&5
6016 ac_cv_func_mmap_fixed_mapped
=no
6018 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6021 echo "$as_me:6021: result: $ac_cv_func_mmap_fixed_mapped" >&5
6022 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6025 cat >>confdefs.h
<<\EOF
6032 if test $use_mmap_for_buffers = yes; then
6036 LIBS
="$libsrc_libs $LIBS"
6038 echo "$as_me:6038: checking for dnet_ntoa in -ldnet" >&5
6039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_check_lib_save_LIBS
=$LIBS
6045 cat >conftest.
$ac_ext <<_ACEOF
6046 #line 6046 "configure"
6047 #include "confdefs.h"
6049 /* Override any gcc2 internal prototype to avoid an error. */
6053 /* We use char because int might match the return type of a gcc2
6054 builtin and then its argument prototype would still apply. */
6064 rm -f conftest.
$ac_objext conftest
$ac_exeext
6065 if { (eval echo "$as_me:6065: \"$ac_link\"") >&5
6066 (eval $ac_link) 2>&5
6068 echo "$as_me:6068: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try
='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:6071: \"$ac_try\"") >&5
6074 echo "$as_me:6074: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_lib_dnet_dnet_ntoa
=yes
6078 echo "$as_me: failed program was:" >&5
6079 cat conftest.
$ac_ext >&5
6080 ac_cv_lib_dnet_dnet_ntoa
=no
6082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6083 LIBS
=$ac_check_lib_save_LIBS
6085 echo "$as_me:6085: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6088 cat >>confdefs.h
<<EOF
6089 #define HAVE_LIBDNET 1
6096 echo "$as_me:6096: checking for main in -lXbsd" >&5
6097 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6098 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 ac_check_lib_save_LIBS
=$LIBS
6103 cat >conftest.
$ac_ext <<_ACEOF
6104 #line 6104 "configure"
6105 #include "confdefs.h"
6115 rm -f conftest.
$ac_objext conftest
$ac_exeext
6116 if { (eval echo "$as_me:6116: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try
='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_lib_Xbsd_main
=yes
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.
$ac_ext >&5
6131 ac_cv_lib_Xbsd_main
=no
6133 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6134 LIBS
=$ac_check_lib_save_LIBS
6136 echo "$as_me:6136: result: $ac_cv_lib_Xbsd_main" >&5
6137 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6138 if test $ac_cv_lib_Xbsd_main = yes; then
6139 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6142 echo "$as_me:6142: checking for cma_open in -lpthreads" >&5
6143 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6144 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_check_lib_save_LIBS
=$LIBS
6148 LIBS
="-lpthreads $LIBS"
6149 cat >conftest.
$ac_ext <<_ACEOF
6150 #line 6150 "configure"
6151 #include "confdefs.h"
6153 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6168 rm -f conftest.
$ac_objext conftest
$ac_exeext
6169 if { (eval echo "$as_me:6169: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try
='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:6175: \"$ac_try\"") >&5
6178 echo "$as_me:6178: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_pthreads_cma_open
=yes
6182 echo "$as_me: failed program was:" >&5
6183 cat conftest.
$ac_ext >&5
6184 ac_cv_lib_pthreads_cma_open
=no
6186 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6187 LIBS
=$ac_check_lib_save_LIBS
6189 echo "$as_me:6189: result: $ac_cv_lib_pthreads_cma_open" >&5
6190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6191 if test $ac_cv_lib_pthreads_cma_open = yes; then
6192 cat >>confdefs.h
<<EOF
6193 #define HAVE_LIBPTHREADS 1
6196 LIBS
="-lpthreads $LIBS"
6200 echo "$as_me:6200: checking for XFree86 in /usr/X386" >&5
6201 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6202 if test -d /usr
/X386
/include
; then
6204 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6208 echo "$as_me:6208: result: $HAVE_XFREE386" >&5
6209 echo "${ECHO_T}$HAVE_XFREE386" >&6
6211 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
6212 # used for the tests that follow. We set them back to REAL_CFLAGS and
6213 # REAL_CPPFLAGS later on.
6215 REAL_CPPFLAGS
="$CPPFLAGS"
6217 if test "${HAVE_X11}" = "yes"; then
6218 DEFS
="$C_SWITCH_X_SITE $DEFS"
6219 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6221 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6222 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6224 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6225 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6226 # but it's more convenient here to set LD_RUN_PATH
6227 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6228 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6229 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6233 if test "${opsys}" = "gnu-linux"; then
6234 echo "$as_me:6234: checking whether X on GNU/Linux needs -b to link" >&5
6235 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6236 cat >conftest.
$ac_ext <<_ACEOF
6237 #line 6237 "configure"
6238 #include "confdefs.h"
6243 XOpenDisplay ("foo");
6248 rm -f conftest.
$ac_objext conftest
$ac_exeext
6249 if { (eval echo "$as_me:6249: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>&5
6252 echo "$as_me:6252: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try
='test -s conftest$ac_exeext'
6255 { (eval echo "$as_me:6255: \"$ac_try\"") >&5
6258 echo "$as_me:6258: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 xlinux_first_failure
=no
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.
$ac_ext >&5
6264 xlinux_first_failure
=yes
6266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6267 if test "${xlinux_first_failure}" = "yes"; then
6268 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6269 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6270 OLD_CPPFLAGS
="$CPPFLAGS"
6272 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6273 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6274 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6275 LIBS
="$LIBS -b i486-linuxaout"
6276 cat >conftest.
$ac_ext <<_ACEOF
6277 #line 6277 "configure"
6278 #include "confdefs.h"
6283 XOpenDisplay ("foo");
6288 rm -f conftest.
$ac_objext conftest
$ac_exeext
6289 if { (eval echo "$as_me:6289: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>&5
6292 echo "$as_me:6292: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try
='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:6295: \"$ac_try\"") >&5
6298 echo "$as_me:6298: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 xlinux_second_failure
=no
6302 echo "$as_me: failed program was:" >&5
6303 cat conftest.
$ac_ext >&5
6304 xlinux_second_failure
=yes
6306 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6307 if test "${xlinux_second_failure}" = "yes"; then
6308 # If we get the same failure with -b, there is no use adding -b.
6309 # So take it out. This plays safe.
6310 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6311 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6312 CPPFLAGS
="$OLD_CPPFLAGS"
6314 echo "$as_me:6314: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6317 echo "$as_me:6317: result: yes" >&5
6318 echo "${ECHO_T}yes" >&6
6321 echo "$as_me:6321: result: no" >&5
6322 echo "${ECHO_T}no" >&6
6326 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6327 # header files included from there.
6328 echo "$as_me:6328: checking for Xkb" >&5
6329 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6330 cat >conftest.
$ac_ext <<_ACEOF
6331 #line 6331 "configure"
6332 #include "confdefs.h"
6333 #include <X11/Xlib.h>
6334 #include <X11/XKBlib.h>
6338 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6343 rm -f conftest.
$ac_objext conftest
$ac_exeext
6344 if { (eval echo "$as_me:6344: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6347 echo "$as_me:6347: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try
='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:6350: \"$ac_try\"") >&5
6353 echo "$as_me:6353: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6357 echo "$as_me: failed program was:" >&5
6358 cat conftest.
$ac_ext >&5
6361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6362 echo "$as_me:6362: result: $emacs_xkb" >&5
6363 echo "${ECHO_T}$emacs_xkb" >&6
6364 if test $emacs_xkb = yes; then
6366 cat >>confdefs.h
<<\EOF
6367 #define HAVE_XKBGETKEYBOARD 1
6372 for ac_func
in XrmSetDatabase XScreenResourceString \
6373 XScreenNumberOfScreen XSetWMProtocols
6375 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6376 echo "$as_me:6376: checking for $ac_func" >&5
6377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6378 if eval "test \"\${$as_ac_var+set}\" = set"; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 cat >conftest.
$ac_ext <<_ACEOF
6382 #line 6382 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func (); below. */
6387 /* Override any gcc2 internal prototype to avoid an error. */
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 rm -f conftest.
$ac_objext conftest
$ac_exeext
6413 if { (eval echo "$as_me:6413: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>&5
6416 echo "$as_me:6416: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try
='test -s conftest$ac_exeext'
6419 { (eval echo "$as_me:6419: \"$ac_try\"") >&5
6422 echo "$as_me:6422: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 eval "$as_ac_var=yes"
6426 echo "$as_me: failed program was:" >&5
6427 cat conftest.
$ac_ext >&5
6428 eval "$as_ac_var=no"
6430 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6432 echo "$as_me:6432: result: `eval echo '${'$as_ac_var'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6434 if test `eval echo '${'$as_ac_var'}'` = yes; then
6435 cat >>confdefs.h
<<EOF
6436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6444 if test "${window_system}" = "x11"; then
6445 echo "$as_me:6445: checking X11 version 6" >&5
6446 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6447 if test "${emacs_cv_x11_version_6+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.
$ac_ext <<_ACEOF
6451 #line 6451 "configure"
6452 #include "confdefs.h"
6453 #include <X11/Xlib.h>
6457 #if XlibSpecificationRelease < 6
6465 rm -f conftest.
$ac_objext conftest
$ac_exeext
6466 if { (eval echo "$as_me:6466: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>&5
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try
='test -s conftest$ac_exeext'
6472 { (eval echo "$as_me:6472: \"$ac_try\"") >&5
6475 echo "$as_me:6475: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 emacs_cv_x11_version_6
=yes
6479 echo "$as_me: failed program was:" >&5
6480 cat conftest.
$ac_ext >&5
6481 emacs_cv_x11_version_6
=no
6483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6486 if test $emacs_cv_x11_version_6 = yes; then
6487 echo "$as_me:6487: result: 6 or newer" >&5
6488 echo "${ECHO_T}6 or newer" >&6
6490 cat >>confdefs.h
<<\EOF
6491 #define HAVE_X11R6 1
6495 echo "$as_me:6495: result: before 6" >&5
6496 echo "${ECHO_T}before 6" >&6
6500 if test "${window_system}" = "x11"; then
6501 echo "$as_me:6501: checking X11 version 5" >&5
6502 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6503 if test "${emacs_cv_x11_version_5+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.
$ac_ext <<_ACEOF
6507 #line 6507 "configure"
6508 #include "confdefs.h"
6509 #include <X11/Xlib.h>
6513 #if XlibSpecificationRelease < 5
6521 rm -f conftest.
$ac_objext conftest
$ac_exeext
6522 if { (eval echo "$as_me:6522: \"$ac_link\"") >&5
6523 (eval $ac_link) 2>&5
6525 echo "$as_me:6525: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try
='test -s conftest$ac_exeext'
6528 { (eval echo "$as_me:6528: \"$ac_try\"") >&5
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 emacs_cv_x11_version_5
=yes
6535 echo "$as_me: failed program was:" >&5
6536 cat conftest.
$ac_ext >&5
6537 emacs_cv_x11_version_5
=no
6539 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6542 if test $emacs_cv_x11_version_5 = yes; then
6543 echo "$as_me:6543: result: 5 or newer" >&5
6544 echo "${ECHO_T}5 or newer" >&6
6547 cat >>confdefs.h
<<\EOF
6548 #define HAVE_X11R5 1
6553 echo "$as_me:6553: result: before 5" >&5
6554 echo "${ECHO_T}before 5" >&6
6558 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6559 if test x
"${HAVE_X11R5}" = xyes
; then
6560 echo "$as_me:6560: checking X11 version 5 with Xaw" >&5
6561 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6562 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.
$ac_ext <<_ACEOF
6566 #line 6566 "configure"
6567 #include "confdefs.h"
6569 #include <X11/Intrinsic.h>
6570 #include <X11/Xaw/Simple.h>
6579 rm -f conftest.
$ac_objext conftest
$ac_exeext
6580 if { (eval echo "$as_me:6580: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try
='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:6586: \"$ac_try\"") >&5
6589 echo "$as_me:6589: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 emacs_cv_x11_version_5_with_xaw
=yes
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.
$ac_ext >&5
6595 emacs_cv_x11_version_5_with_xaw
=no
6597 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6600 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6601 echo "$as_me:6601: result: 5 or newer, with Xaw; use toolkit by default" >&5
6602 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6605 echo "$as_me:6605: result: before 5 or no Xaw; do not use toolkit by default" >&5
6606 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6614 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6616 if test "${USE_X_TOOLKIT}" != "none"; then
6617 echo "$as_me:6617: checking X11 toolkit version" >&5
6618 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6619 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 cat >conftest.
$ac_ext <<_ACEOF
6623 #line 6623 "configure"
6624 #include "confdefs.h"
6625 #include <X11/Intrinsic.h>
6629 #if XtSpecificationRelease < 6
6637 rm -f conftest.
$ac_objext conftest
$ac_exeext
6638 if { (eval echo "$as_me:6638: \"$ac_link\"") >&5
6639 (eval $ac_link) 2>&5
6641 echo "$as_me:6641: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try
='test -s conftest$ac_exeext'
6644 { (eval echo "$as_me:6644: \"$ac_try\"") >&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 (exit $ac_status); }; }; then
6649 emacs_cv_x11_toolkit_version_6
=yes
6651 echo "$as_me: failed program was:" >&5
6652 cat conftest.
$ac_ext >&5
6653 emacs_cv_x11_toolkit_version_6
=no
6655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6658 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6659 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6660 echo "$as_me:6660: result: 6 or newer" >&5
6661 echo "${ECHO_T}6 or newer" >&6
6663 cat >>confdefs.h
<<\EOF
6664 #define HAVE_X11XTR6 1
6668 echo "$as_me:6668: result: before 6" >&5
6669 echo "${ECHO_T}before 6" >&6
6673 if test x
$HAVE_X11XTR6 = xyes
; then
6674 LIBS
="-lXt -lSM -lICE $LIBS"
6679 echo "$as_me:6679: checking for XmuConvertStandardSelection in -lXmu" >&5
6680 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6681 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 ac_check_lib_save_LIBS
=$LIBS
6686 cat >conftest.
$ac_ext <<_ACEOF
6687 #line 6687 "configure"
6688 #include "confdefs.h"
6690 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6696 char XmuConvertStandardSelection ();
6700 XmuConvertStandardSelection ();
6705 rm -f conftest.
$ac_objext conftest
$ac_exeext
6706 if { (eval echo "$as_me:6706: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>&5
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); } &&
6711 { ac_try
='test -s conftest$ac_exeext'
6712 { (eval echo "$as_me:6712: \"$ac_try\"") >&5
6715 echo "$as_me:6715: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6719 echo "$as_me: failed program was:" >&5
6720 cat conftest.
$ac_ext >&5
6721 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6724 LIBS
=$ac_check_lib_save_LIBS
6726 echo "$as_me:6726: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6727 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6728 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6729 cat >>confdefs.h
<<EOF
6730 #define HAVE_LIBXMU 1
6737 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6740 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6741 if test "${HAVE_X11}" = "yes"; then
6742 if test "${USE_X_TOOLKIT}" != "none"; then
6744 echo "$as_me:6744: checking for XShapeQueryExtension in -lXext" >&5
6745 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6746 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_check_lib_save_LIBS
=$LIBS
6751 cat >conftest.
$ac_ext <<_ACEOF
6752 #line 6752 "configure"
6753 #include "confdefs.h"
6755 /* Override any gcc2 internal prototype to avoid an error. */
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6761 char XShapeQueryExtension ();
6765 XShapeQueryExtension ();
6770 rm -f conftest.
$ac_objext conftest
$ac_exeext
6771 if { (eval echo "$as_me:6771: \"$ac_link\"") >&5
6772 (eval $ac_link) 2>&5
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try
='test -s conftest$ac_exeext'
6777 { (eval echo "$as_me:6777: \"$ac_try\"") >&5
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6784 echo "$as_me: failed program was:" >&5
6785 cat conftest.
$ac_ext >&5
6786 ac_cv_lib_Xext_XShapeQueryExtension
=no
6788 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6789 LIBS
=$ac_check_lib_save_LIBS
6791 echo "$as_me:6791: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6792 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6793 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6794 cat >>confdefs.h
<<EOF
6795 #define HAVE_LIBXEXT 1
6805 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6806 echo "$as_me:6806: checking for LessTif where some systems put it" >&5
6807 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
6808 if test "${emacs_cv_lesstif+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 # We put this in CFLAGS temporarily to precede other -I options
6812 # that might be in CFLAGS temporarily.
6813 # We put this in CPPFLAGS where it precedes the other -I options.
6814 OLD_CPPFLAGS
=$CPPFLAGS
6816 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
6817 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
6818 cat >conftest.
$ac_ext <<_ACEOF
6819 #line 6819 "configure"
6820 #include "confdefs.h"
6821 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
6830 rm -f conftest.
$ac_objext
6831 if { (eval echo "$as_me:6831: \"$ac_compile\"") >&5
6832 (eval $ac_compile) 2>&5
6834 echo "$as_me:6834: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try
='test -s conftest.$ac_objext'
6837 { (eval echo "$as_me:6837: \"$ac_try\"") >&5
6840 echo "$as_me:6840: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 emacs_cv_lesstif
=yes
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.
$ac_ext >&5
6848 rm -f conftest.
$ac_objext conftest.
$ac_ext
6850 echo "$as_me:6850: result: $emacs_cv_lesstif" >&5
6851 echo "${ECHO_T}$emacs_cv_lesstif" >&6
6852 if test $emacs_cv_lesstif = yes; then
6853 # Make sure this -I option remains in CPPFLAGS after it is set
6854 # back to REAL_CPPFLAGS.
6855 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
6856 # have those other -I options anyway. Ultimately, having this
6857 # directory ultimately in CPPFLAGS will be enough.
6858 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
6859 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
6862 CPPFLAGS
=$OLD_CPPFLAGS
6864 echo "$as_me:6864: checking for Motif version 2.1" >&5
6865 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6866 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.
$ac_ext <<_ACEOF
6870 #line 6870 "configure"
6871 #include "confdefs.h"
6876 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6879 Motif version prior to 2.1.
6885 rm -f conftest.
$ac_objext
6886 if { (eval echo "$as_me:6886: \"$ac_compile\"") >&5
6887 (eval $ac_compile) 2>&5
6889 echo "$as_me:6889: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try
='test -s conftest.$ac_objext'
6892 { (eval echo "$as_me:6892: \"$ac_try\"") >&5
6895 echo "$as_me:6895: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 emacs_cv_motif_version_2_1
=yes
6899 echo "$as_me: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6901 emacs_cv_motif_version_2_1
=no
6903 rm -f conftest.
$ac_objext conftest.
$ac_ext
6905 echo "$as_me:6905: result: $emacs_cv_motif_version_2_1" >&5
6906 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6907 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6908 if test $emacs_cv_motif_version_2_1 = yes; then
6911 cat >>confdefs.h
<<\EOF
6912 #define HAVE_MOTIF_2_1 1
6915 echo "$as_me:6915: checking for XpCreateContext in -lXp" >&5
6916 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6917 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 ac_check_lib_save_LIBS
=$LIBS
6922 cat >conftest.
$ac_ext <<_ACEOF
6923 #line 6923 "configure"
6924 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char XpCreateContext ();
6941 rm -f conftest.
$ac_objext conftest
$ac_exeext
6942 if { (eval echo "$as_me:6942: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try
='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:6948: \"$ac_try\"") >&5
6951 echo "$as_me:6951: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_lib_Xp_XpCreateContext
=yes
6955 echo "$as_me: failed program was:" >&5
6956 cat conftest.
$ac_ext >&5
6957 ac_cv_lib_Xp_XpCreateContext
=no
6959 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6960 LIBS
=$ac_check_lib_save_LIBS
6962 echo "$as_me:6962: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6963 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6964 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6968 if test ${HAVE_LIBXP} = yes; then
6970 cat >>confdefs.h
<<\EOF
6971 #define HAVE_LIBXP 1
6978 ### Is -lXaw3d available?
6980 if test "${HAVE_X11}" = "yes"; then
6981 if test "${USE_X_TOOLKIT}" != "none"; then
6982 echo "$as_me:6982: checking for X11/Xaw3d/Scrollbar.h" >&5
6983 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6984 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.
$ac_ext <<_ACEOF
6988 #line 6988 "configure"
6989 #include "confdefs.h"
6990 #include <X11/Xaw3d/Scrollbar.h>
6992 if { (eval echo "$as_me:6992: \"$ac_cpp conftest.$ac_ext\"") >&5
6993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6995 egrep -v '^ *\+' conftest.er1
>conftest.err
6997 cat conftest.err
>&5
6998 echo "$as_me:6998: \$? = $ac_status" >&5
6999 (exit $ac_status); } >/dev
/null
; then
7000 if test -s conftest.err
; then
7001 ac_cpp_err
=$ac_c_preproc_warn_flag
7008 if test -z "$ac_cpp_err"; then
7009 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.
$ac_ext >&5
7013 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
7015 rm -f conftest.err conftest.
$ac_ext
7017 echo "$as_me:7017: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7018 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7019 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7020 echo "$as_me:7020: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7021 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7022 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_check_lib_save_LIBS
=$LIBS
7026 LIBS
="-lXaw3d $LIBS"
7027 cat >conftest.
$ac_ext <<_ACEOF
7028 #line 7028 "configure"
7029 #include "confdefs.h"
7031 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7037 char XawScrollbarSetThumb ();
7041 XawScrollbarSetThumb ();
7046 rm -f conftest.
$ac_objext conftest
$ac_exeext
7047 if { (eval echo "$as_me:7047: \"$ac_link\"") >&5
7048 (eval $ac_link) 2>&5
7050 echo "$as_me:7050: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try
='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:7053: \"$ac_try\"") >&5
7056 echo "$as_me:7056: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
7060 echo "$as_me: failed program was:" >&5
7061 cat conftest.
$ac_ext >&5
7062 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
7064 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7065 LIBS
=$ac_check_lib_save_LIBS
7067 echo "$as_me:7067: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7068 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7069 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7075 if test "${HAVE_XAW3D}" = "yes"; then
7077 cat >>confdefs.h
<<\EOF
7078 #define HAVE_XAW3D 1
7085 USE_TOOLKIT_SCROLL_BARS
=no
7086 if test "${with_toolkit_scroll_bars}" != "no"; then
7087 if test "${USE_X_TOOLKIT}" != "none"; then
7088 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7089 cat >>confdefs.h
<<\EOF
7090 #define USE_TOOLKIT_SCROLL_BARS 1
7094 USE_TOOLKIT_SCROLL_BARS
=yes
7095 elif test "${HAVE_XAW3D}" = "yes"; then
7096 cat >>confdefs.h
<<\EOF
7097 #define USE_TOOLKIT_SCROLL_BARS 1
7100 USE_TOOLKIT_SCROLL_BARS
=yes
7105 if test "${with_xim}" != "no"; then
7107 cat >>confdefs.h
<<\EOF
7113 ### Use -lXpm if available, unless `--with-xpm=no'.
7115 if test "${HAVE_X11}" = "yes"; then
7116 if test "${with_xpm}" != "no"; then
7117 echo "$as_me:7117: checking for X11/xpm.h" >&5
7118 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7119 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7123 #line 7123 "configure"
7124 #include "confdefs.h"
7125 #include <X11/xpm.h>
7127 if { (eval echo "$as_me:7127: \"$ac_cpp conftest.$ac_ext\"") >&5
7128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7130 egrep -v '^ *\+' conftest.er1
>conftest.err
7132 cat conftest.err
>&5
7133 echo "$as_me:7133: \$? = $ac_status" >&5
7134 (exit $ac_status); } >/dev
/null
; then
7135 if test -s conftest.err
; then
7136 ac_cpp_err
=$ac_c_preproc_warn_flag
7143 if test -z "$ac_cpp_err"; then
7144 ac_cv_header_X11_xpm_h
=yes
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.
$ac_ext >&5
7148 ac_cv_header_X11_xpm_h
=no
7150 rm -f conftest.err conftest.
$ac_ext
7152 echo "$as_me:7152: result: $ac_cv_header_X11_xpm_h" >&5
7153 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7154 if test $ac_cv_header_X11_xpm_h = yes; then
7155 echo "$as_me:7155: checking for XpmReadFileToPixmap in -lXpm" >&5
7156 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7157 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_check_lib_save_LIBS
=$LIBS
7161 LIBS
="-lXpm -lX11 $LIBS"
7162 cat >conftest.
$ac_ext <<_ACEOF
7163 #line 7163 "configure"
7164 #include "confdefs.h"
7166 /* Override any gcc2 internal prototype to avoid an error. */
7170 /* We use char because int might match the return type of a gcc2
7171 builtin and then its argument prototype would still apply. */
7172 char XpmReadFileToPixmap ();
7176 XpmReadFileToPixmap ();
7181 rm -f conftest.
$ac_objext conftest
$ac_exeext
7182 if { (eval echo "$as_me:7182: \"$ac_link\"") >&5
7183 (eval $ac_link) 2>&5
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try
='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:7188: \"$ac_try\"") >&5
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7195 echo "$as_me: failed program was:" >&5
7196 cat conftest.
$ac_ext >&5
7197 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7200 LIBS
=$ac_check_lib_save_LIBS
7202 echo "$as_me:7202: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7203 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7204 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7210 if test "${HAVE_XPM}" = "yes"; then
7211 echo "$as_me:7211: checking for XpmReturnAllocPixels preprocessor define" >&5
7212 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7213 cat >conftest.
$ac_ext <<_ACEOF
7214 #line 7214 "configure"
7215 #include "confdefs.h"
7216 #include "X11/xpm.h"
7217 #ifndef XpmReturnAllocPixels
7218 no_return_alloc_pixels
7222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7223 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7230 if test "${HAVE_XPM}" = "yes"; then
7231 echo "$as_me:7231: result: yes" >&5
7232 echo "${ECHO_T}yes" >&6
7234 echo "$as_me:7234: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7240 if test "${HAVE_XPM}" = "yes"; then
7242 cat >>confdefs.h
<<\EOF
7249 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7251 if test "${HAVE_X11}" = "yes"; then
7252 if test "${with_jpeg}" != "no"; then
7253 echo "$as_me:7253: checking for jerror.h" >&5
7254 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7255 if test "${ac_cv_header_jerror_h+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 cat >conftest.
$ac_ext <<_ACEOF
7259 #line 7259 "configure"
7260 #include "confdefs.h"
7263 if { (eval echo "$as_me:7263: \"$ac_cpp conftest.$ac_ext\"") >&5
7264 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7266 egrep -v '^ *\+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:7269: \$? = $ac_status" >&5
7270 (exit $ac_status); } >/dev
/null
; then
7271 if test -s conftest.err
; then
7272 ac_cpp_err
=$ac_c_preproc_warn_flag
7279 if test -z "$ac_cpp_err"; then
7280 ac_cv_header_jerror_h
=yes
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.
$ac_ext >&5
7284 ac_cv_header_jerror_h
=no
7286 rm -f conftest.err conftest.
$ac_ext
7288 echo "$as_me:7288: result: $ac_cv_header_jerror_h" >&5
7289 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7290 if test $ac_cv_header_jerror_h = yes; then
7291 echo "$as_me:7291: checking for jpeg_destroy_compress in -ljpeg" >&5
7292 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7293 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_check_lib_save_LIBS
=$LIBS
7298 cat >conftest.
$ac_ext <<_ACEOF
7299 #line 7299 "configure"
7300 #include "confdefs.h"
7302 /* Override any gcc2 internal prototype to avoid an error. */
7306 /* We use char because int might match the return type of a gcc2
7307 builtin and then its argument prototype would still apply. */
7308 char jpeg_destroy_compress ();
7312 jpeg_destroy_compress ();
7317 rm -f conftest.
$ac_objext conftest
$ac_exeext
7318 if { (eval echo "$as_me:7318: \"$ac_link\"") >&5
7319 (eval $ac_link) 2>&5
7321 echo "$as_me:7321: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try
='test -s conftest$ac_exeext'
7324 { (eval echo "$as_me:7324: \"$ac_try\"") >&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7331 echo "$as_me: failed program was:" >&5
7332 cat conftest.
$ac_ext >&5
7333 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7335 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7336 LIBS
=$ac_check_lib_save_LIBS
7338 echo "$as_me:7338: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7339 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7340 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7348 if test "${HAVE_JPEG}" = "yes"; then
7349 cat >>confdefs.h
<<\EOF
7353 cat >conftest.
$ac_ext <<_ACEOF
7354 #line 7354 "configure"
7355 #include "confdefs.h"
7356 #include <jpeglib.h>
7357 version=JPEG_LIB_VERSION
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7362 cat >>confdefs.h
<<\EOF
7367 { echo "$as_me:7367: WARNING: libjpeg found, but not version 6b or later" >&5
7368 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7376 ### Use -lpng if available, unless `--with-png=no'.
7378 if test "${HAVE_X11}" = "yes"; then
7379 if test "${with_png}" != "no"; then
7380 echo "$as_me:7380: checking for png.h" >&5
7381 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7382 if test "${ac_cv_header_png_h+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 cat >conftest.
$ac_ext <<_ACEOF
7386 #line 7386 "configure"
7387 #include "confdefs.h"
7390 if { (eval echo "$as_me:7390: \"$ac_cpp conftest.$ac_ext\"") >&5
7391 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7393 egrep -v '^ *\+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:7396: \$? = $ac_status" >&5
7397 (exit $ac_status); } >/dev
/null
; then
7398 if test -s conftest.err
; then
7399 ac_cpp_err
=$ac_c_preproc_warn_flag
7406 if test -z "$ac_cpp_err"; then
7407 ac_cv_header_png_h
=yes
7409 echo "$as_me: failed program was:" >&5
7410 cat conftest.
$ac_ext >&5
7411 ac_cv_header_png_h
=no
7413 rm -f conftest.err conftest.
$ac_ext
7415 echo "$as_me:7415: result: $ac_cv_header_png_h" >&5
7416 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7417 if test $ac_cv_header_png_h = yes; then
7418 echo "$as_me:7418: checking for png_get_channels in -lpng" >&5
7419 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7420 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_check_lib_save_LIBS
=$LIBS
7424 LIBS
="-lpng -lz -lm $LIBS"
7425 cat >conftest.
$ac_ext <<_ACEOF
7426 #line 7426 "configure"
7427 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7433 /* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7435 char png_get_channels ();
7439 png_get_channels ();
7444 rm -f conftest.
$ac_objext conftest
$ac_exeext
7445 if { (eval echo "$as_me:7445: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try
='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_lib_png_png_get_channels
=yes
7458 echo "$as_me: failed program was:" >&5
7459 cat conftest.
$ac_ext >&5
7460 ac_cv_lib_png_png_get_channels
=no
7462 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7463 LIBS
=$ac_check_lib_save_LIBS
7465 echo "$as_me:7465: result: $ac_cv_lib_png_png_get_channels" >&5
7466 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7467 if test $ac_cv_lib_png_png_get_channels = yes; then
7475 if test "${HAVE_PNG}" = "yes"; then
7477 cat >>confdefs.h
<<\EOF
7484 ### Use -ltiff if available, unless `--with-tiff=no'.
7486 if test "${HAVE_X11}" = "yes"; then
7487 if test "${with_tiff}" != "no"; then
7488 echo "$as_me:7488: checking for tiffio.h" >&5
7489 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7490 if test "${ac_cv_header_tiffio_h+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.
$ac_ext <<_ACEOF
7494 #line 7494 "configure"
7495 #include "confdefs.h"
7498 if { (eval echo "$as_me:7498: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7501 egrep -v '^ *\+' conftest.er1
>conftest.err
7503 cat conftest.err
>&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); } >/dev
/null
; then
7506 if test -s conftest.err
; then
7507 ac_cpp_err
=$ac_c_preproc_warn_flag
7514 if test -z "$ac_cpp_err"; then
7515 ac_cv_header_tiffio_h
=yes
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.
$ac_ext >&5
7519 ac_cv_header_tiffio_h
=no
7521 rm -f conftest.err conftest.
$ac_ext
7523 echo "$as_me:7523: result: $ac_cv_header_tiffio_h" >&5
7524 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7525 if test $ac_cv_header_tiffio_h = yes; then
7527 # At least one tiff package requires the jpeg library.
7528 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7529 echo "$as_me:7529: checking for TIFFGetVersion in -ltiff" >&5
7530 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7531 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 ac_check_lib_save_LIBS
=$LIBS
7535 LIBS
="-ltiff $tifflibs $LIBS"
7536 cat >conftest.
$ac_ext <<_ACEOF
7537 #line 7537 "configure"
7538 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error. */
7544 /* We use char because int might match the return type of a gcc2
7545 builtin and then its argument prototype would still apply. */
7546 char TIFFGetVersion ();
7555 rm -f conftest.
$ac_objext conftest
$ac_exeext
7556 if { (eval echo "$as_me:7556: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7559 echo "$as_me:7559: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try
='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:7562: \"$ac_try\"") >&5
7565 echo "$as_me:7565: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7567 ac_cv_lib_tiff_TIFFGetVersion
=yes
7569 echo "$as_me: failed program was:" >&5
7570 cat conftest.
$ac_ext >&5
7571 ac_cv_lib_tiff_TIFFGetVersion
=no
7573 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7574 LIBS
=$ac_check_lib_save_LIBS
7576 echo "$as_me:7576: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7586 if test "${HAVE_TIFF}" = "yes"; then
7588 cat >>confdefs.h
<<\EOF
7595 ### Use -lgif if available, unless `--with-gif=no'.
7597 if test "${HAVE_X11}" = "yes"; then
7598 if test "${with_gif}" != "no"; then
7599 echo "$as_me:7599: checking for gif_lib.h" >&5
7600 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7601 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 cat >conftest.
$ac_ext <<_ACEOF
7605 #line 7605 "configure"
7606 #include "confdefs.h"
7607 #include <gif_lib.h>
7609 if { (eval echo "$as_me:7609: \"$ac_cpp conftest.$ac_ext\"") >&5
7610 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7612 egrep -v '^ *\+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:7615: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev
/null
; then
7617 if test -s conftest.err
; then
7618 ac_cpp_err
=$ac_c_preproc_warn_flag
7625 if test -z "$ac_cpp_err"; then
7626 ac_cv_header_gif_lib_h
=yes
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.
$ac_ext >&5
7630 ac_cv_header_gif_lib_h
=no
7632 rm -f conftest.err conftest.
$ac_ext
7634 echo "$as_me:7634: result: $ac_cv_header_gif_lib_h" >&5
7635 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7636 if test $ac_cv_header_gif_lib_h = yes; then
7637 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7638 # Earlier versions can crash Emacs.
7639 echo "$as_me:7639: checking for EGifPutExtensionLast in -lungif" >&5
7640 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7641 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_check_lib_save_LIBS
=$LIBS
7645 LIBS
="-lungif $LIBS"
7646 cat >conftest.
$ac_ext <<_ACEOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7650 /* Override any gcc2 internal prototype to avoid an error. */
7654 /* We use char because int might match the return type of a gcc2
7655 builtin and then its argument prototype would still apply. */
7656 char EGifPutExtensionLast ();
7660 EGifPutExtensionLast ();
7665 rm -f conftest.
$ac_objext conftest
$ac_exeext
7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try
='test -s conftest$ac_exeext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.
$ac_ext >&5
7681 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7684 LIBS
=$ac_check_lib_save_LIBS
7686 echo "$as_me:7686: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7687 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7688 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7696 if test "${HAVE_GIF}" = "yes"; then
7698 cat >>confdefs.h
<<\EOF
7705 ### Use Mac OS X Carbon API to implement GUI.
7707 if test "${with_carbon}" != "no"; then
7708 echo "$as_me:7708: checking for Carbon/Carbon.h" >&5
7709 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7710 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.
$ac_ext <<_ACEOF
7714 #line 7714 "configure"
7715 #include "confdefs.h"
7716 #include <Carbon/Carbon.h>
7718 if { (eval echo "$as_me:7718: \"$ac_cpp conftest.$ac_ext\"") >&5
7719 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7721 egrep -v '^ *\+' conftest.er1
>conftest.err
7723 cat conftest.err
>&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); } >/dev
/null
; then
7726 if test -s conftest.err
; then
7727 ac_cpp_err
=$ac_c_preproc_warn_flag
7734 if test -z "$ac_cpp_err"; then
7735 ac_cv_header_Carbon_Carbon_h
=yes
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7739 ac_cv_header_Carbon_Carbon_h
=no
7741 rm -f conftest.err conftest.
$ac_ext
7743 echo "$as_me:7743: result: $ac_cv_header_Carbon_Carbon_h" >&5
7744 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7745 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7751 if test "${HAVE_CARBON}" = "yes"; then
7753 cat >>confdefs.h
<<\EOF
7754 #define HAVE_CARBON 1
7759 ### Use session management (-lSM -lICE) if available
7761 if test "${HAVE_X11}" = "yes"; then
7762 echo "$as_me:7762: checking for X11/SM/SMlib.h" >&5
7763 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7764 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 cat >conftest.
$ac_ext <<_ACEOF
7768 #line 7768 "configure"
7769 #include "confdefs.h"
7770 #include <X11/SM/SMlib.h>
7772 if { (eval echo "$as_me:7772: \"$ac_cpp conftest.$ac_ext\"") >&5
7773 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7775 egrep -v '^ *\+' conftest.er1
>conftest.err
7777 cat conftest.err
>&5
7778 echo "$as_me:7778: \$? = $ac_status" >&5
7779 (exit $ac_status); } >/dev
/null
; then
7780 if test -s conftest.err
; then
7781 ac_cpp_err
=$ac_c_preproc_warn_flag
7788 if test -z "$ac_cpp_err"; then
7789 ac_cv_header_X11_SM_SMlib_h
=yes
7791 echo "$as_me: failed program was:" >&5
7792 cat conftest.
$ac_ext >&5
7793 ac_cv_header_X11_SM_SMlib_h
=no
7795 rm -f conftest.err conftest.
$ac_ext
7797 echo "$as_me:7797: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7798 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7799 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7800 echo "$as_me:7800: checking for SmcOpenConnection in -lSM" >&5
7801 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7802 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 ac_check_lib_save_LIBS
=$LIBS
7807 cat >conftest.
$ac_ext <<_ACEOF
7808 #line 7808 "configure"
7809 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7817 char SmcOpenConnection ();
7821 SmcOpenConnection ();
7826 rm -f conftest.
$ac_objext conftest
$ac_exeext
7827 if { (eval echo "$as_me:7827: \"$ac_link\"") >&5
7828 (eval $ac_link) 2>&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try
='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:7833: \"$ac_try\"") >&5
7836 echo "$as_me:7836: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_SM_SmcOpenConnection
=yes
7840 echo "$as_me: failed program was:" >&5
7841 cat conftest.
$ac_ext >&5
7842 ac_cv_lib_SM_SmcOpenConnection
=no
7844 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7845 LIBS
=$ac_check_lib_save_LIBS
7847 echo "$as_me:7847: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7848 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7849 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7857 if test "${HAVE_X_SM}" = "yes"; then
7859 cat >>confdefs.h
<<\EOF
7865 *) LIBS
="-lSM -lICE $LIBS" ;;
7870 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7871 echo "$as_me:7871: checking whether netdb declares h_errno" >&5
7872 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7873 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 cat >conftest.
$ac_ext <<_ACEOF
7877 #line 7877 "configure"
7878 #include "confdefs.h"
7888 rm -f conftest.
$ac_objext conftest
$ac_exeext
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try
='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 emacs_cv_netdb_declares_h_errno
=yes
7902 echo "$as_me: failed program was:" >&5
7903 cat conftest.
$ac_ext >&5
7904 emacs_cv_netdb_declares_h_errno
=no
7906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7908 echo "$as_me:7908: result: $emacs_cv_netdb_declares_h_errno" >&5
7909 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7910 if test $emacs_cv_netdb_declares_h_errno = yes; then
7912 cat >>confdefs.h
<<\EOF
7913 #define HAVE_H_ERRNO 1
7918 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7919 # for constant arguments. Useless!
7920 echo "$as_me:7920: checking for working alloca.h" >&5
7921 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7922 if test "${ac_cv_working_alloca_h+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 cat >conftest.
$ac_ext <<_ACEOF
7926 #line 7926 "configure"
7927 #include "confdefs.h"
7932 char *p = (char *) alloca (2 * sizeof (int));
7937 rm -f conftest.
$ac_objext conftest
$ac_exeext
7938 if { (eval echo "$as_me:7938: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>&5
7941 echo "$as_me:7941: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try
='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:7944: \"$ac_try\"") >&5
7947 echo "$as_me:7947: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_working_alloca_h
=yes
7951 echo "$as_me: failed program was:" >&5
7952 cat conftest.
$ac_ext >&5
7953 ac_cv_working_alloca_h
=no
7955 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7957 echo "$as_me:7957: result: $ac_cv_working_alloca_h" >&5
7958 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7959 if test $ac_cv_working_alloca_h = yes; then
7961 cat >>confdefs.h
<<\EOF
7962 #define HAVE_ALLOCA_H 1
7967 echo "$as_me:7967: checking for alloca" >&5
7968 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7969 if test "${ac_cv_func_alloca_works+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 cat >conftest.
$ac_ext <<_ACEOF
7973 #line 7973 "configure"
7974 #include "confdefs.h"
7976 # define alloca __builtin_alloca
7979 # include <malloc.h>
7980 # define alloca _alloca
7983 # include <alloca.h>
7988 # ifndef alloca /* predefined by HP cc +Olibcalls */
7999 char *p = (char *) alloca (1);
8004 rm -f conftest.
$ac_objext conftest
$ac_exeext
8005 if { (eval echo "$as_me:8005: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try
='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:8011: \"$ac_try\"") >&5
8014 echo "$as_me:8014: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 ac_cv_func_alloca_works
=yes
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8020 ac_cv_func_alloca_works
=no
8022 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8024 echo "$as_me:8024: result: $ac_cv_func_alloca_works" >&5
8025 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8027 if test $ac_cv_func_alloca_works = yes; then
8029 cat >>confdefs.h
<<\EOF
8030 #define HAVE_ALLOCA 1
8034 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8035 # that cause trouble. Some versions do not even contain alloca or
8036 # contain a buggy version. If you still want to use their alloca,
8037 # use ar to extract alloca.o from them instead of compiling alloca.c.
8039 ALLOCA
=alloca.
$ac_objext
8041 cat >>confdefs.h
<<\EOF
8045 echo "$as_me:8045: checking whether \`alloca.c' needs Cray hooks" >&5
8046 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8047 if test "${ac_cv_os_cray+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.
$ac_ext <<_ACEOF
8051 #line 8051 "configure"
8052 #include "confdefs.h"
8053 #if defined(CRAY) && ! defined(CRAY2)
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 egrep "webecray" >/dev
/null
2>&1; then
8069 echo "$as_me:8069: result: $ac_cv_os_cray" >&5
8070 echo "${ECHO_T}$ac_cv_os_cray" >&6
8071 if test $ac_cv_os_cray = yes; then
8072 for ac_func
in _getb67 GETB67 getb67
; do
8073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8074 echo "$as_me:8074: checking for $ac_func" >&5
8075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8076 if eval "test \"\${$as_ac_var+set}\" = set"; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.
$ac_ext <<_ACEOF
8080 #line 8080 "configure"
8081 #include "confdefs.h"
8082 /* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char $ac_func (); below. */
8085 /* Override any gcc2 internal prototype to avoid an error. */
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8097 /* The GNU C library defines this for functions which it implements
8098 to always fail with ENOSYS. Some functions are actually named
8099 something starting with __ and the normal name is an alias. */
8100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8110 rm -f conftest.
$ac_objext conftest
$ac_exeext
8111 if { (eval echo "$as_me:8111: \"$ac_link\"") >&5
8112 (eval $ac_link) 2>&5
8114 echo "$as_me:8114: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try
='test -s conftest$ac_exeext'
8117 { (eval echo "$as_me:8117: \"$ac_try\"") >&5
8120 echo "$as_me:8120: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_var=yes"
8124 echo "$as_me: failed program was:" >&5
8125 cat conftest.
$ac_ext >&5
8126 eval "$as_ac_var=no"
8128 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8130 echo "$as_me:8130: result: `eval echo '${'$as_ac_var'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8132 if test `eval echo '${'$as_ac_var'}'` = yes; then
8134 cat >>confdefs.h
<<EOF
8135 #define CRAY_STACKSEG_END $ac_func
8144 echo "$as_me:8144: checking stack direction for C alloca" >&5
8145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8146 if test "${ac_cv_c_stack_direction+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 if test "$cross_compiling" = yes; then
8150 ac_cv_c_stack_direction
=0
8152 cat >conftest.
$ac_ext <<_ACEOF
8153 #line 8153 "configure"
8154 #include "confdefs.h"
8156 find_stack_direction ()
8158 static char *addr = 0;
8163 return find_stack_direction ();
8166 return (&dummy > addr) ? 1 : -1;
8172 exit (find_stack_direction () < 0);
8175 rm -f conftest
$ac_exeext
8176 if { (eval echo "$as_me:8176: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8181 { (eval echo "$as_me:8181: \"$ac_try\"") >&5
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_c_stack_direction
=1
8188 echo "$as_me: program exited with status $ac_status" >&5
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.
$ac_ext >&5
8191 ac_cv_c_stack_direction
=-1
8193 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8196 echo "$as_me:8196: result: $ac_cv_c_stack_direction" >&5
8197 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8199 cat >>confdefs.h
<<EOF
8200 #define STACK_DIRECTION $ac_cv_c_stack_direction
8205 # fmod, logb, and frexp are found in -lm on most systems.
8206 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8208 echo "$as_me:8208: checking for sqrt in -lm" >&5
8209 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8210 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 ac_check_lib_save_LIBS
=$LIBS
8215 cat >conftest.
$ac_ext <<_ACEOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
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. */
8234 rm -f conftest.
$ac_objext conftest
$ac_exeext
8235 if { (eval echo "$as_me:8235: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8238 echo "$as_me:8238: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try
='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:8241: \"$ac_try\"") >&5
8244 echo "$as_me:8244: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_lib_m_sqrt
=yes
8248 echo "$as_me: failed program was:" >&5
8249 cat conftest.
$ac_ext >&5
8252 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8253 LIBS
=$ac_check_lib_save_LIBS
8255 echo "$as_me:8255: result: $ac_cv_lib_m_sqrt" >&5
8256 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8257 if test $ac_cv_lib_m_sqrt = yes; then
8258 cat >>confdefs.h
<<EOF
8266 # Check for mail-locking functions in a "mail" library
8268 echo "$as_me:8268: checking for maillock in -lmail" >&5
8269 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8270 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 ac_check_lib_save_LIBS
=$LIBS
8275 cat >conftest.
$ac_ext <<_ACEOF
8276 #line 8276 "configure"
8277 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8294 rm -f conftest.
$ac_objext conftest
$ac_exeext
8295 if { (eval echo "$as_me:8295: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8298 echo "$as_me:8298: \$? = $ac_status" >&5
8299 (exit $ac_status); } &&
8300 { ac_try
='test -s conftest$ac_exeext'
8301 { (eval echo "$as_me:8301: \"$ac_try\"") >&5
8304 echo "$as_me:8304: \$? = $ac_status" >&5
8305 (exit $ac_status); }; }; then
8306 ac_cv_lib_mail_maillock
=yes
8308 echo "$as_me: failed program was:" >&5
8309 cat conftest.
$ac_ext >&5
8310 ac_cv_lib_mail_maillock
=no
8312 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8313 LIBS
=$ac_check_lib_save_LIBS
8315 echo "$as_me:8315: result: $ac_cv_lib_mail_maillock" >&5
8316 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8317 if test $ac_cv_lib_mail_maillock = yes; then
8318 cat >>confdefs.h
<<EOF
8319 #define HAVE_LIBMAIL 1
8326 echo "$as_me:8326: checking for maillock in -llockfile" >&5
8327 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8328 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_check_lib_save_LIBS
=$LIBS
8332 LIBS
="-llockfile $LIBS"
8333 cat >conftest.
$ac_ext <<_ACEOF
8334 #line 8334 "configure"
8335 #include "confdefs.h"
8337 /* Override any gcc2 internal prototype to avoid an error. */
8341 /* We use char because int might match the return type of a gcc2
8342 builtin and then its argument prototype would still apply. */
8352 rm -f conftest.
$ac_objext conftest
$ac_exeext
8353 if { (eval echo "$as_me:8353: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try
='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:8359: \"$ac_try\"") >&5
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_lib_lockfile_maillock
=yes
8366 echo "$as_me: failed program was:" >&5
8367 cat conftest.
$ac_ext >&5
8368 ac_cv_lib_lockfile_maillock
=no
8370 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8371 LIBS
=$ac_check_lib_save_LIBS
8373 echo "$as_me:8373: result: $ac_cv_lib_lockfile_maillock" >&5
8374 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8375 if test $ac_cv_lib_lockfile_maillock = yes; then
8376 cat >>confdefs.h
<<EOF
8377 #define HAVE_LIBLOCKFILE 1
8380 LIBS
="-llockfile $LIBS"
8384 # If we have the shared liblockfile, assume we must use it for mail
8385 # locking (e.g. Debian). If we couldn't link against liblockfile
8386 # (no liblockfile.a installed), ensure that we don't need to.
8387 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8388 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8389 set dummy liblockfile.so
; ac_word
=$2
8390 echo "$as_me:8390: checking for $ac_word" >&5
8391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8392 if test "${ac_cv_prog_liblockfile+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 if test -n "$liblockfile"; then
8396 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8398 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8399 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8400 for ac_dir
in $ac_dummy; do
8402 test -z "$ac_dir" && ac_dir
=.
8403 $as_executable_p "$ac_dir/$ac_word" ||
continue
8404 ac_cv_prog_liblockfile
="yes"
8405 echo "$as_me:8405: found $ac_dir/$ac_word" >&5
8409 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8412 liblockfile
=$ac_cv_prog_liblockfile
8413 if test -n "$liblockfile"; then
8414 echo "$as_me:8414: result: $liblockfile" >&5
8415 echo "${ECHO_T}$liblockfile" >&6
8417 echo "$as_me:8417: result: no" >&5
8418 echo "${ECHO_T}no" >&6
8421 if test $ac_cv_prog_liblockfile = yes; then
8422 { { echo "$as_me:8422: error: Shared liblockfile found but can't link against it.
8423 This probably means that movemail could lose mail.
8424 There may be a \`development' package to install containing liblockfile." >&5
8425 echo "$as_me: error: Shared liblockfile found but can't link against it.
8426 This probably means that movemail could lose mail.
8427 There may be a \`development' package to install containing liblockfile." >&2;}
8428 { (exit 1); exit 1; }; }
8430 cat >>confdefs.h
<<\EOF
8431 #define LIBMAIL -llockfile
8438 for ac_func
in touchlock
8440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8441 echo "$as_me:8441: checking for $ac_func" >&5
8442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8443 if eval "test \"\${$as_ac_var+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.
$ac_ext <<_ACEOF
8447 #line 8447 "configure"
8448 #include "confdefs.h"
8449 /* System header to define __stub macros and hopefully few prototypes,
8450 which can conflict with char $ac_func (); below. */
8452 /* Override any gcc2 internal prototype to avoid an error. */
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8464 /* The GNU C library defines this for functions which it implements
8465 to always fail with ENOSYS. Some functions are actually named
8466 something starting with __ and the normal name is an alias. */
8467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8477 rm -f conftest.
$ac_objext conftest
$ac_exeext
8478 if { (eval echo "$as_me:8478: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8481 echo "$as_me:8481: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try
='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:8484: \"$ac_try\"") >&5
8487 echo "$as_me:8487: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 eval "$as_ac_var=yes"
8491 echo "$as_me: failed program was:" >&5
8492 cat conftest.
$ac_ext >&5
8493 eval "$as_ac_var=no"
8495 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8497 echo "$as_me:8497: result: `eval echo '${'$as_ac_var'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8499 if test `eval echo '${'$as_ac_var'}'` = yes; then
8500 cat >>confdefs.h
<<EOF
8501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8507 for ac_header
in maillock.h
8509 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8510 echo "$as_me:8510: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.
$ac_ext <<_ACEOF
8516 #line 8516 "configure"
8517 #include "confdefs.h"
8518 #include <$ac_header>
8520 if { (eval echo "$as_me:8520: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8523 egrep -v '^ *\+' conftest.er1
>conftest.err
8525 cat conftest.err
>&5
8526 echo "$as_me:8526: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev
/null
; then
8528 if test -s conftest.err
; then
8529 ac_cpp_err
=$ac_c_preproc_warn_flag
8536 if test -z "$ac_cpp_err"; then
8537 eval "$as_ac_Header=yes"
8539 echo "$as_me: failed program was:" >&5
8540 cat conftest.
$ac_ext >&5
8541 eval "$as_ac_Header=no"
8543 rm -f conftest.err conftest.
$ac_ext
8545 echo "$as_me:8545: result: `eval echo '${'$as_ac_Header'}'`" >&5
8546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8548 cat >>confdefs.h
<<EOF
8549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 for ac_func
in gethostname getdomainname dup2 \
8556 rename closedir mkdir
rmdir sysinfo \
8557 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8558 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8559 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8560 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8561 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8562 gai_strerror mkstemp getline getdelim
8564 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8565 echo "$as_me:8565: checking for $ac_func" >&5
8566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8567 if eval "test \"\${$as_ac_var+set}\" = set"; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 cat >conftest.
$ac_ext <<_ACEOF
8571 #line 8571 "configure"
8572 #include "confdefs.h"
8573 /* System header to define __stub macros and hopefully few prototypes,
8574 which can conflict with char $ac_func (); below. */
8576 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8588 /* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8601 rm -f conftest.
$ac_objext conftest
$ac_exeext
8602 if { (eval echo "$as_me:8602: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8605 echo "$as_me:8605: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try
='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:8608: \"$ac_try\"") >&5
8611 echo "$as_me:8611: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 eval "$as_ac_var=yes"
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.
$ac_ext >&5
8617 eval "$as_ac_var=no"
8619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8621 echo "$as_me:8621: result: `eval echo '${'$as_ac_var'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8623 if test `eval echo '${'$as_ac_var'}'` = yes; then
8624 cat >>confdefs.h
<<EOF
8625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8631 for ac_header
in sys
/un.h
8633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 echo "$as_me:8634: checking for $ac_header" >&5
8635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.
$ac_ext <<_ACEOF
8640 #line 8640 "configure"
8641 #include "confdefs.h"
8642 #include <$ac_header>
8644 if { (eval echo "$as_me:8644: \"$ac_cpp conftest.$ac_ext\"") >&5
8645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8647 egrep -v '^ *\+' conftest.er1
>conftest.err
8649 cat conftest.err
>&5
8650 echo "$as_me:8650: \$? = $ac_status" >&5
8651 (exit $ac_status); } >/dev
/null
; then
8652 if test -s conftest.err
; then
8653 ac_cpp_err
=$ac_c_preproc_warn_flag
8660 if test -z "$ac_cpp_err"; then
8661 eval "$as_ac_Header=yes"
8663 echo "$as_me: failed program was:" >&5
8664 cat conftest.
$ac_ext >&5
8665 eval "$as_ac_Header=no"
8667 rm -f conftest.err conftest.
$ac_ext
8669 echo "$as_me:8669: result: `eval echo '${'$as_ac_Header'}'`" >&5
8670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672 cat >>confdefs.h
<<EOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8679 for ac_header
in sys
/time.h unistd.h
8681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682 echo "$as_me:8682: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.
$ac_ext <<_ACEOF
8688 #line 8688 "configure"
8689 #include "confdefs.h"
8690 #include <$ac_header>
8692 if { (eval echo "$as_me:8692: \"$ac_cpp conftest.$ac_ext\"") >&5
8693 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8695 egrep -v '^ *\+' conftest.er1
>conftest.err
8697 cat conftest.err
>&5
8698 echo "$as_me:8698: \$? = $ac_status" >&5
8699 (exit $ac_status); } >/dev
/null
; then
8700 if test -s conftest.err
; then
8701 ac_cpp_err
=$ac_c_preproc_warn_flag
8708 if test -z "$ac_cpp_err"; then
8709 eval "$as_ac_Header=yes"
8711 echo "$as_me: failed program was:" >&5
8712 cat conftest.
$ac_ext >&5
8713 eval "$as_ac_Header=no"
8715 rm -f conftest.err conftest.
$ac_ext
8717 echo "$as_me:8717: result: `eval echo '${'$as_ac_Header'}'`" >&5
8718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720 cat >>confdefs.h
<<EOF
8721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 for ac_func
in alarm
8729 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8730 echo "$as_me:8730: checking for $ac_func" >&5
8731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8732 if eval "test \"\${$as_ac_var+set}\" = set"; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cat >conftest.
$ac_ext <<_ACEOF
8736 #line 8736 "configure"
8737 #include "confdefs.h"
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func (); below. */
8741 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8766 rm -f conftest.
$ac_objext conftest
$ac_exeext
8767 if { (eval echo "$as_me:8767: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>&5
8770 echo "$as_me:8770: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try
='test -s conftest$ac_exeext'
8773 { (eval echo "$as_me:8773: \"$ac_try\"") >&5
8776 echo "$as_me:8776: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 eval "$as_ac_var=yes"
8780 echo "$as_me: failed program was:" >&5
8781 cat conftest.
$ac_ext >&5
8782 eval "$as_ac_var=no"
8784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8786 echo "$as_me:8786: result: `eval echo '${'$as_ac_var'}'`" >&5
8787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8788 if test `eval echo '${'$as_ac_var'}'` = yes; then
8789 cat >>confdefs.h
<<EOF
8790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8796 echo "$as_me:8796: checking for working mktime" >&5
8797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8798 if test "${ac_cv_func_working_mktime+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 if test "$cross_compiling" = yes; then
8802 ac_cv_func_working_mktime
=no
8804 cat >conftest.
$ac_ext <<_ACEOF
8805 #line 8805 "configure"
8806 #include "confdefs.h"
8807 /* Test program from Paul Eggert and Tony Leneis. */
8808 #if TIME_WITH_SYS_TIME
8809 # include <sys/time.h>
8812 # if HAVE_SYS_TIME_H
8813 # include <sys/time.h>
8820 # include <unistd.h>
8824 # define alarm(X) /* empty */
8827 /* Work around redefinition to rpl_putenv by other config tests. */
8830 static time_t time_t_max;
8832 /* Values we'll use to set the TZ environment variable. */
8833 static const char *const tz_strings[] = {
8834 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8835 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8837 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8839 /* Fail if mktime fails to convert a date in the spring-forward gap.
8840 Based on a problem report from Andreas Jaeger. */
8842 spring_forward_gap ()
8844 /* glibc (up to about 1998-10-07) failed this test. */
8847 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8848 instead of "TZ=America/Vancouver" in order to detect the bug even
8849 on systems that don't support the Olson extension, or don't have the
8850 full zoneinfo tables installed. */
8851 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8860 if (mktime (&tm) == (time_t)-1)
8869 if ((lt = localtime (&now)) && mktime (lt) != now)
8871 now = time_t_max - now;
8872 if ((lt = localtime (&now)) && mktime (lt) != now)
8879 /* Based on code from Ariel Faigon. */
8889 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8899 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8901 if (now != (time_t) -1)
8903 struct tm *lt = localtime (&now);
8905 && lt->tm_year == tm.tm_year
8906 && lt->tm_mon == tm.tm_mon
8907 && lt->tm_mday == tm.tm_mday
8908 && lt->tm_hour == tm.tm_hour
8909 && lt->tm_min == tm.tm_min
8910 && lt->tm_sec == tm.tm_sec
8911 && lt->tm_yday == tm.tm_yday
8912 && lt->tm_wday == tm.tm_wday
8913 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8914 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8925 /* This test makes some buggy mktime implementations loop.
8926 Give up after 60 seconds; a mktime slower than that
8927 isn't worth using anyway. */
8930 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8933 delta = time_t_max / 997; /* a suitable prime number */
8934 for (i = 0; i < N_STRINGS; i++)
8937 putenv (tz_strings[i]);
8939 for (t = 0; t <= time_t_max - delta; t += delta)
8941 mktime_test ((time_t) 60 * 60);
8942 mktime_test ((time_t) 60 * 60 * 24);
8944 for (j = 1; 0 < j; j *= 2)
8946 bigtime_test (j - 1);
8949 spring_forward_gap ();
8953 rm -f conftest
$ac_exeext
8954 if { (eval echo "$as_me:8954: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8957 echo "$as_me:8957: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8959 { (eval echo "$as_me:8959: \"$ac_try\"") >&5
8962 echo "$as_me:8962: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_func_working_mktime
=yes
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 cat conftest.
$ac_ext >&5
8969 ac_cv_func_working_mktime
=no
8971 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8974 echo "$as_me:8974: result: $ac_cv_func_working_mktime" >&5
8975 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8976 if test $ac_cv_func_working_mktime = no
; then
8977 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8980 if test "$ac_cv_func_working_mktime" = no
; then
8982 cat >>confdefs.h
<<\EOF
8983 #define BROKEN_MKTIME 1
8988 ac_have_func
=no
# yes means we've found a way to get the load average.
8992 # Check for getloadavg, but be sure not to touch the cache variable.
8993 (echo "$as_me:8993: checking for getloadavg" >&5
8994 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8995 if test "${ac_cv_func_getloadavg+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 cat >conftest.
$ac_ext <<_ACEOF
8999 #line 8999 "configure"
9000 #include "confdefs.h"
9001 /* System header to define __stub macros and hopefully few prototypes,
9002 which can conflict with char getloadavg (); below. */
9004 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9016 /* The GNU C library defines this for functions which it implements
9017 to always fail with ENOSYS. Some functions are actually named
9018 something starting with __ and the normal name is an alias. */
9019 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9029 rm -f conftest.
$ac_objext conftest
$ac_exeext
9030 if { (eval echo "$as_me:9030: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>&5
9033 echo "$as_me:9033: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try
='test -s conftest$ac_exeext'
9036 { (eval echo "$as_me:9036: \"$ac_try\"") >&5
9039 echo "$as_me:9039: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_func_getloadavg
=yes
9043 echo "$as_me: failed program was:" >&5
9044 cat conftest.
$ac_ext >&5
9045 ac_cv_func_getloadavg
=no
9047 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9049 echo "$as_me:9049: result: $ac_cv_func_getloadavg" >&5
9050 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9051 if test $ac_cv_func_getloadavg = yes; then
9056 ) && ac_have_func
=yes
9058 # On HPUX9, an unprivileged user can get load averages through this function.
9060 for ac_func
in pstat_getdynamic
9062 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9063 echo "$as_me:9063: checking for $ac_func" >&5
9064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_var+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 cat >conftest.
$ac_ext <<_ACEOF
9069 #line 9069 "configure"
9070 #include "confdefs.h"
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func (); below. */
9074 /* Override any gcc2 internal prototype to avoid an error. */
9078 /* We use char because int might match the return type of a gcc2
9079 builtin and then its argument prototype would still apply. */
9086 /* The GNU C library defines this for functions which it implements
9087 to always fail with ENOSYS. Some functions are actually named
9088 something starting with __ and the normal name is an alias. */
9089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9099 rm -f conftest.
$ac_objext conftest
$ac_exeext
9100 if { (eval echo "$as_me:9100: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>&5
9103 echo "$as_me:9103: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try
='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:9106: \"$ac_try\"") >&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 eval "$as_ac_var=yes"
9113 echo "$as_me: failed program was:" >&5
9114 cat conftest.
$ac_ext >&5
9115 eval "$as_ac_var=no"
9117 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9119 echo "$as_me:9119: result: `eval echo '${'$as_ac_var'}'`" >&5
9120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9121 if test `eval echo '${'$as_ac_var'}'` = yes; then
9122 cat >>confdefs.h
<<EOF
9123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9129 # Solaris has libkstat which does not require root.
9131 echo "$as_me:9131: checking for kstat_open in -lkstat" >&5
9132 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9133 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 ac_check_lib_save_LIBS
=$LIBS
9137 LIBS
="-lkstat $LIBS"
9138 cat >conftest.
$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9142 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */
9157 rm -f conftest.
$ac_objext conftest
$ac_exeext
9158 if { (eval echo "$as_me:9158: \"$ac_link\"") >&5
9159 (eval $ac_link) 2>&5
9161 echo "$as_me:9161: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try
='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:9164: \"$ac_try\"") >&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9169 ac_cv_lib_kstat_kstat_open
=yes
9171 echo "$as_me: failed program was:" >&5
9172 cat conftest.
$ac_ext >&5
9173 ac_cv_lib_kstat_kstat_open
=no
9175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9176 LIBS
=$ac_check_lib_save_LIBS
9178 echo "$as_me:9178: result: $ac_cv_lib_kstat_kstat_open" >&5
9179 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9180 if test $ac_cv_lib_kstat_kstat_open = yes; then
9181 cat >>confdefs.h
<<EOF
9182 #define HAVE_LIBKSTAT 1
9185 LIBS
="-lkstat $LIBS"
9189 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
9191 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9192 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9193 # to get the right answer into the cache.
9194 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9195 if test $ac_have_func = no
; then
9196 echo "$as_me:9196: checking for elf_begin in -lelf" >&5
9197 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9198 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 ac_check_lib_save_LIBS
=$LIBS
9203 cat >conftest.
$ac_ext <<_ACEOF
9204 #line 9204 "configure"
9205 #include "confdefs.h"
9207 /* Override any gcc2 internal prototype to avoid an error. */
9211 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */
9222 rm -f conftest.
$ac_objext conftest
$ac_exeext
9223 if { (eval echo "$as_me:9223: \"$ac_link\"") >&5
9224 (eval $ac_link) 2>&5
9226 echo "$as_me:9226: \$? = $ac_status" >&5
9227 (exit $ac_status); } &&
9228 { ac_try
='test -s conftest$ac_exeext'
9229 { (eval echo "$as_me:9229: \"$ac_try\"") >&5
9232 echo "$as_me:9232: \$? = $ac_status" >&5
9233 (exit $ac_status); }; }; then
9234 ac_cv_lib_elf_elf_begin
=yes
9236 echo "$as_me: failed program was:" >&5
9237 cat conftest.
$ac_ext >&5
9238 ac_cv_lib_elf_elf_begin
=no
9240 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9241 LIBS
=$ac_check_lib_save_LIBS
9243 echo "$as_me:9243: result: $ac_cv_lib_elf_elf_begin" >&5
9244 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9245 if test $ac_cv_lib_elf_elf_begin = yes; then
9250 if test $ac_have_func = no
; then
9251 echo "$as_me:9251: checking for kvm_open in -lkvm" >&5
9252 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9253 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 ac_check_lib_save_LIBS
=$LIBS
9258 cat >conftest.
$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9262 /* Override any gcc2 internal prototype to avoid an error. */
9266 /* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9277 rm -f conftest.
$ac_objext conftest
$ac_exeext
9278 if { (eval echo "$as_me:9278: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>&5
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try
='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:9284: \"$ac_try\"") >&5
9287 echo "$as_me:9287: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_lib_kvm_kvm_open
=yes
9291 echo "$as_me: failed program was:" >&5
9292 cat conftest.
$ac_ext >&5
9293 ac_cv_lib_kvm_kvm_open
=no
9295 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9296 LIBS
=$ac_check_lib_save_LIBS
9298 echo "$as_me:9298: result: $ac_cv_lib_kvm_kvm_open" >&5
9299 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9300 if test $ac_cv_lib_kvm_kvm_open = yes; then
9304 # Check for the 4.4BSD definition of getloadavg.
9305 echo "$as_me:9305: checking for getloadavg in -lutil" >&5
9306 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9307 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 ac_check_lib_save_LIBS
=$LIBS
9312 cat >conftest.
$ac_ext <<_ACEOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9316 /* Override any gcc2 internal prototype to avoid an error. */
9320 /* We use char because int might match the return type of a gcc2
9321 builtin and then its argument prototype would still apply. */
9331 rm -f conftest.
$ac_objext conftest
$ac_exeext
9332 if { (eval echo "$as_me:9332: \"$ac_link\"") >&5
9333 (eval $ac_link) 2>&5
9335 echo "$as_me:9335: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try
='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:9338: \"$ac_try\"") >&5
9341 echo "$as_me:9341: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_lib_util_getloadavg
=yes
9345 echo "$as_me: failed program was:" >&5
9346 cat conftest.
$ac_ext >&5
9347 ac_cv_lib_util_getloadavg
=no
9349 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9350 LIBS
=$ac_check_lib_save_LIBS
9352 echo "$as_me:9352: result: $ac_cv_lib_util_getloadavg" >&5
9353 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9354 if test $ac_cv_lib_util_getloadavg = yes; then
9355 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9360 if test $ac_have_func = no
; then
9361 # There is a commonly available library for RS/6000 AIX.
9362 # Since it is not a standard part of AIX, it might be installed locally.
9363 ac_getloadavg_LIBS
=$LIBS
9364 LIBS
="-L/usr/local/lib $LIBS"
9365 echo "$as_me:9365: checking for getloadavg in -lgetloadavg" >&5
9366 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9367 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 ac_check_lib_save_LIBS
=$LIBS
9371 LIBS
="-lgetloadavg $LIBS"
9372 cat >conftest.
$ac_ext <<_ACEOF
9373 #line 9373 "configure"
9374 #include "confdefs.h"
9376 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9391 rm -f conftest.
$ac_objext conftest
$ac_exeext
9392 if { (eval echo "$as_me:9392: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:9395: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try
='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:9398: \"$ac_try\"") >&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_getloadavg_getloadavg
=yes
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.
$ac_ext >&5
9407 ac_cv_lib_getloadavg_getloadavg
=no
9409 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9410 LIBS
=$ac_check_lib_save_LIBS
9412 echo "$as_me:9412: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9413 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9414 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9415 LIBS
="-lgetloadavg $LIBS"
9417 LIBS
=$ac_getloadavg_LIBS
9422 # Make sure it is really in the library, if we think we found it,
9423 # otherwise set up the replacement function.
9425 for ac_func
in getloadavg
9427 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9428 echo "$as_me:9428: checking for $ac_func" >&5
9429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_var+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 cat >conftest.
$ac_ext <<_ACEOF
9434 #line 9434 "configure"
9435 #include "confdefs.h"
9436 /* System header to define __stub macros and hopefully few prototypes,
9437 which can conflict with char $ac_func (); below. */
9439 /* Override any gcc2 internal prototype to avoid an error. */
9443 /* We use char because int might match the return type of a gcc2
9444 builtin and then its argument prototype would still apply. */
9451 /* The GNU C library defines this for functions which it implements
9452 to always fail with ENOSYS. Some functions are actually named
9453 something starting with __ and the normal name is an alias. */
9454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9464 rm -f conftest.
$ac_objext conftest
$ac_exeext
9465 if { (eval echo "$as_me:9465: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try
='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:9471: \"$ac_try\"") >&5
9474 echo "$as_me:9474: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 eval "$as_ac_var=yes"
9478 echo "$as_me: failed program was:" >&5
9479 cat conftest.
$ac_ext >&5
9480 eval "$as_ac_var=no"
9482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9484 echo "$as_me:9484: result: `eval echo '${'$as_ac_var'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9486 if test `eval echo '${'$as_ac_var'}'` = yes; then
9487 cat >>confdefs.h
<<EOF
9488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9492 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9494 cat >>confdefs.h
<<\EOF
9495 #define C_GETLOADAVG 1
9498 # Figure out what our getloadavg.c needs.
9500 echo "$as_me:9500: checking for sys/dg_sys_info.h" >&5
9501 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9502 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.
$ac_ext <<_ACEOF
9506 #line 9506 "configure"
9507 #include "confdefs.h"
9508 #include <sys/dg_sys_info.h>
9510 if { (eval echo "$as_me:9510: \"$ac_cpp conftest.$ac_ext\"") >&5
9511 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9513 egrep -v '^ *\+' conftest.er1
>conftest.err
9515 cat conftest.err
>&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 (exit $ac_status); } >/dev
/null
; then
9518 if test -s conftest.err
; then
9519 ac_cpp_err
=$ac_c_preproc_warn_flag
9526 if test -z "$ac_cpp_err"; then
9527 ac_cv_header_sys_dg_sys_info_h
=yes
9529 echo "$as_me: failed program was:" >&5
9530 cat conftest.
$ac_ext >&5
9531 ac_cv_header_sys_dg_sys_info_h
=no
9533 rm -f conftest.err conftest.
$ac_ext
9535 echo "$as_me:9535: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9537 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9540 cat >>confdefs.h
<<\EOF
9544 echo "$as_me:9544: checking for dg_sys_info in -ldgc" >&5
9545 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9546 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_check_lib_save_LIBS
=$LIBS
9551 cat >conftest.
$ac_ext <<_ACEOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9555 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9561 char dg_sys_info ();
9570 rm -f conftest.
$ac_objext conftest
$ac_exeext
9571 if { (eval echo "$as_me:9571: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9574 echo "$as_me:9574: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try
='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:9577: \"$ac_try\"") >&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_dgc_dg_sys_info
=yes
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.
$ac_ext >&5
9586 ac_cv_lib_dgc_dg_sys_info
=no
9588 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9589 LIBS
=$ac_check_lib_save_LIBS
9591 echo "$as_me:9591: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9592 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9593 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9594 cat >>confdefs.h
<<EOF
9595 #define HAVE_LIBDGC 1
9604 echo "$as_me:9604: checking for locale.h" >&5
9605 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9606 if test "${ac_cv_header_locale_h+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 cat >conftest.
$ac_ext <<_ACEOF
9610 #line 9610 "configure"
9611 #include "confdefs.h"
9614 if { (eval echo "$as_me:9614: \"$ac_cpp conftest.$ac_ext\"") >&5
9615 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9617 egrep -v '^ *\+' conftest.er1
>conftest.err
9619 cat conftest.err
>&5
9620 echo "$as_me:9620: \$? = $ac_status" >&5
9621 (exit $ac_status); } >/dev
/null
; then
9622 if test -s conftest.err
; then
9623 ac_cpp_err
=$ac_c_preproc_warn_flag
9630 if test -z "$ac_cpp_err"; then
9631 ac_cv_header_locale_h
=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.
$ac_ext >&5
9635 ac_cv_header_locale_h
=no
9637 rm -f conftest.err conftest.
$ac_ext
9639 echo "$as_me:9639: result: $ac_cv_header_locale_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9642 for ac_func
in setlocale
9644 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9645 echo "$as_me:9645: checking for $ac_func" >&5
9646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9647 if eval "test \"\${$as_ac_var+set}\" = set"; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cat >conftest.
$ac_ext <<_ACEOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char $ac_func (); below. */
9656 /* Override any gcc2 internal prototype to avoid an error. */
9660 /* We use char because int might match the return type of a gcc2
9661 builtin and then its argument prototype would still apply. */
9668 /* The GNU C library defines this for functions which it implements
9669 to always fail with ENOSYS. Some functions are actually named
9670 something starting with __ and the normal name is an alias. */
9671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (eval echo "$as_me:9682: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>&5
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try
='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:9688: \"$ac_try\"") >&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 eval "$as_ac_var=yes"
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.
$ac_ext >&5
9697 eval "$as_ac_var=no"
9699 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9701 echo "$as_me:9701: result: `eval echo '${'$as_ac_var'}'`" >&5
9702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9703 if test `eval echo '${'$as_ac_var'}'` = yes; then
9704 cat >>confdefs.h
<<EOF
9705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9711 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9712 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9713 # Irix 4.0.5F has the header but not the library.
9714 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9717 cat >>confdefs.h
<<\EOF
9723 if test $ac_have_func = no
; then
9724 echo "$as_me:9724: checking for inq_stats/cpustats.h" >&5
9725 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9726 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 cat >conftest.
$ac_ext <<_ACEOF
9730 #line 9730 "configure"
9731 #include "confdefs.h"
9732 #include <inq_stats/cpustats.h>
9734 if { (eval echo "$as_me:9734: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9737 egrep -v '^ *\+' conftest.er1
>conftest.err
9739 cat conftest.err
>&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev
/null
; then
9742 if test -s conftest.err
; then
9743 ac_cpp_err
=$ac_c_preproc_warn_flag
9750 if test -z "$ac_cpp_err"; then
9751 ac_cv_header_inq_stats_cpustats_h
=yes
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.
$ac_ext >&5
9755 ac_cv_header_inq_stats_cpustats_h
=no
9757 rm -f conftest.err conftest.
$ac_ext
9759 echo "$as_me:9759: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9760 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9761 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9764 cat >>confdefs.h
<<\EOF
9768 cat >>confdefs.h
<<\EOF
9776 if test $ac_have_func = no
; then
9777 echo "$as_me:9777: checking for sys/cpustats.h" >&5
9778 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9779 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 cat >conftest.
$ac_ext <<_ACEOF
9783 #line 9783 "configure"
9784 #include "confdefs.h"
9785 #include <sys/cpustats.h>
9787 if { (eval echo "$as_me:9787: \"$ac_cpp conftest.$ac_ext\"") >&5
9788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9790 egrep -v '^ *\+' conftest.er1
>conftest.err
9792 cat conftest.err
>&5
9793 echo "$as_me:9793: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev
/null
; then
9795 if test -s conftest.err
; then
9796 ac_cpp_err
=$ac_c_preproc_warn_flag
9803 if test -z "$ac_cpp_err"; then
9804 ac_cv_header_sys_cpustats_h
=yes
9806 echo "$as_me: failed program was:" >&5
9807 cat conftest.
$ac_ext >&5
9808 ac_cv_header_sys_cpustats_h
=no
9810 rm -f conftest.err conftest.
$ac_ext
9812 echo "$as_me:9812: result: $ac_cv_header_sys_cpustats_h" >&5
9813 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9814 if test $ac_cv_header_sys_cpustats_h = yes; then
9815 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9823 if test $ac_have_func = no
; then
9825 for ac_header
in mach
/mach.h
9827 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9828 echo "$as_me:9828: checking for $ac_header" >&5
9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 cat >conftest.
$ac_ext <<_ACEOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9836 #include <$ac_header>
9838 if { (eval echo "$as_me:9838: \"$ac_cpp conftest.$ac_ext\"") >&5
9839 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9841 egrep -v '^ *\+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:9844: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev
/null
; then
9846 if test -s conftest.err
; then
9847 ac_cpp_err
=$ac_c_preproc_warn_flag
9854 if test -z "$ac_cpp_err"; then
9855 eval "$as_ac_Header=yes"
9857 echo "$as_me: failed program was:" >&5
9858 cat conftest.
$ac_ext >&5
9859 eval "$as_ac_Header=no"
9861 rm -f conftest.err conftest.
$ac_ext
9863 echo "$as_me:9863: result: `eval echo '${'$as_ac_Header'}'`" >&5
9864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866 cat >>confdefs.h
<<EOF
9867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9875 for ac_header
in nlist.h
9877 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 echo "$as_me:9878: checking for $ac_header" >&5
9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 cat >conftest.
$ac_ext <<_ACEOF
9884 #line 9884 "configure"
9885 #include "confdefs.h"
9886 #include <$ac_header>
9888 if { (eval echo "$as_me:9888: \"$ac_cpp conftest.$ac_ext\"") >&5
9889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9891 egrep -v '^ *\+' conftest.er1
>conftest.err
9893 cat conftest.err
>&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev
/null
; then
9896 if test -s conftest.err
; then
9897 ac_cpp_err
=$ac_c_preproc_warn_flag
9904 if test -z "$ac_cpp_err"; then
9905 eval "$as_ac_Header=yes"
9907 echo "$as_me: failed program was:" >&5
9908 cat conftest.
$ac_ext >&5
9909 eval "$as_ac_Header=no"
9911 rm -f conftest.err conftest.
$ac_ext
9913 echo "$as_me:9913: result: `eval echo '${'$as_ac_Header'}'`" >&5
9914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9916 cat >>confdefs.h
<<EOF
9917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 echo "$as_me:9919: checking for struct nlist.n_un.n_name" >&5
9920 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9921 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 cat >conftest.
$ac_ext <<_ACEOF
9925 #line 9925 "configure"
9926 #include "confdefs.h"
9932 static struct nlist ac_aggr;
9933 if (ac_aggr.n_un.n_name)
9939 rm -f conftest.
$ac_objext
9940 if { (eval echo "$as_me:9940: \"$ac_compile\"") >&5
9941 (eval $ac_compile) 2>&5
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try
='test -s conftest.$ac_objext'
9946 { (eval echo "$as_me:9946: \"$ac_try\"") >&5
9949 echo "$as_me:9949: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_member_struct_nlist_n_un_n_name
=yes
9953 echo "$as_me: failed program was:" >&5
9954 cat conftest.
$ac_ext >&5
9955 ac_cv_member_struct_nlist_n_un_n_name
=no
9957 rm -f conftest.
$ac_objext conftest.
$ac_ext
9959 echo "$as_me:9959: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9960 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9961 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9963 cat >>confdefs.h
<<EOF
9964 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9967 cat >>confdefs.h
<<\EOF
9968 #define NLIST_NAME_UNION 1
9979 # Some definitions of getloadavg require that the program be installed setgid.
9980 echo "$as_me:9980: checking whether getloadavg requires setgid" >&5
9981 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9982 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 cat >conftest.
$ac_ext <<_ACEOF
9986 #line 9986 "configure"
9987 #include "confdefs.h"
9988 #include "$srcdir/getloadavg.c"
9989 #ifdef LDAV_PRIVILEGED
9990 Yowza Am I SETGID yet
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9995 ac_cv_func_getloadavg_setgid
=yes
9997 ac_cv_func_getloadavg_setgid
=no
10002 echo "$as_me:10002: result: $ac_cv_func_getloadavg_setgid" >&5
10003 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
10004 if test $ac_cv_func_getloadavg_setgid = yes; then
10007 cat >>confdefs.h
<<\EOF
10008 #define GETLOADAVG_PRIVILEGED 1
10015 if test $ac_cv_func_getloadavg_setgid = yes; then
10016 echo "$as_me:10016: checking group of /dev/kmem" >&5
10017 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
10018 if test "${ac_cv_group_kmem+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
10022 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
10023 # If we got an error (system does not support symlinks), try without -L.
10024 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
10025 ac_cv_group_kmem
=`echo $ac_ls_output \
10026 | sed -ne 's/[ ][ ]*/ /g;
10027 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
10031 echo "$as_me:10031: result: $ac_cv_group_kmem" >&5
10032 echo "${ECHO_T}$ac_cv_group_kmem" >&6
10033 KMEM_GROUP
=$ac_cv_group_kmem
10035 if test "x$ac_save_LIBS" = x
; then
10036 GETLOADAVG_LIBS
=$LIBS
10038 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
10042 echo "$as_me:10042: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10043 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10044 if test "${ac_cv_sys_largefile_source+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 ac_cv_sys_largefile_source
=no
10049 cat >conftest.
$ac_ext <<_ACEOF
10050 #line 10050 "configure"
10051 #include "confdefs.h"
10061 rm -f conftest.
$ac_objext
10062 if { (eval echo "$as_me:10062: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:10065: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try
='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:10068: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:10071: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.
$ac_ext >&5
10078 rm -f conftest.
$ac_objext conftest.
$ac_ext
10079 cat >conftest.
$ac_ext <<_ACEOF
10080 #line 10080 "configure"
10081 #include "confdefs.h"
10082 #define _LARGEFILE_SOURCE 1
10092 rm -f conftest.
$ac_objext
10093 if { (eval echo "$as_me:10093: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try
='test -s conftest.$ac_objext'
10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_sys_largefile_source
=1; break
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.
$ac_ext >&5
10109 rm -f conftest.
$ac_objext conftest.
$ac_ext
10113 echo "$as_me:10113: result: $ac_cv_sys_largefile_source" >&5
10114 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10115 if test "$ac_cv_sys_largefile_source" != no
; then
10117 cat >>confdefs.h
<<EOF
10118 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10124 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10125 # in glibc 2.1.3, but that breaks too many other things.
10126 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10127 echo "$as_me:10127: checking for fseeko" >&5
10128 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10129 if test "${ac_cv_func_fseeko+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 cat >conftest.
$ac_ext <<_ACEOF
10133 #line 10133 "configure"
10134 #include "confdefs.h"
10139 return fseeko && fseeko (stdin, 0, 0);
10144 rm -f conftest.
$ac_objext conftest
$ac_exeext
10145 if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
10146 (eval $ac_link) 2>&5
10148 echo "$as_me:10148: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try
='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:10151: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_func_fseeko
=yes
10158 echo "$as_me: failed program was:" >&5
10159 cat conftest.
$ac_ext >&5
10160 ac_cv_func_fseeko
=no
10162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10164 echo "$as_me:10164: result: $ac_cv_func_fseeko" >&5
10165 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10166 if test $ac_cv_func_fseeko = yes; then
10168 cat >>confdefs.h
<<\EOF
10169 #define HAVE_FSEEKO 1
10176 for ac_func
in grantpt
10178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 echo "$as_me:10179: checking for $ac_func" >&5
10180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10181 if eval "test \"\${$as_ac_var+set}\" = set"; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.
$ac_ext <<_ACEOF
10185 #line 10185 "configure"
10186 #include "confdefs.h"
10187 /* System header to define __stub macros and hopefully few prototypes,
10188 which can conflict with char $ac_func (); below. */
10189 #include <assert.h>
10190 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10202 /* The GNU C library defines this for functions which it implements
10203 to always fail with ENOSYS. Some functions are actually named
10204 something starting with __ and the normal name is an alias. */
10205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 rm -f conftest.
$ac_objext conftest
$ac_exeext
10216 if { (eval echo "$as_me:10216: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>&5
10219 echo "$as_me:10219: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try
='test -s conftest$ac_exeext'
10222 { (eval echo "$as_me:10222: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10225 echo "$as_me:10225: \$? = $ac_status" >&5
10226 (exit $ac_status); }; }; then
10227 eval "$as_ac_var=yes"
10229 echo "$as_me: failed program was:" >&5
10230 cat conftest.
$ac_ext >&5
10231 eval "$as_ac_var=no"
10233 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10235 echo "$as_me:10235: result: `eval echo '${'$as_ac_var'}'`" >&5
10236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10237 if test `eval echo '${'$as_ac_var'}'` = yes; then
10238 cat >>confdefs.h
<<EOF
10239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10245 # PTY-related GNU extensions.
10247 for ac_func
in getpt
10249 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10250 echo "$as_me:10250: checking for $ac_func" >&5
10251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10252 if eval "test \"\${$as_ac_var+set}\" = set"; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 cat >conftest.
$ac_ext <<_ACEOF
10256 #line 10256 "configure"
10257 #include "confdefs.h"
10258 /* System header to define __stub macros and hopefully few prototypes,
10259 which can conflict with char $ac_func (); below. */
10260 #include <assert.h>
10261 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10286 rm -f conftest.
$ac_objext conftest
$ac_exeext
10287 if { (eval echo "$as_me:10287: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10290 echo "$as_me:10290: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try
='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:10293: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:10296: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 eval "$as_ac_var=yes"
10300 echo "$as_me: failed program was:" >&5
10301 cat conftest.
$ac_ext >&5
10302 eval "$as_ac_var=no"
10304 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10306 echo "$as_me:10306: result: `eval echo '${'$as_ac_var'}'`" >&5
10307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10308 if test `eval echo '${'$as_ac_var'}'` = yes; then
10309 cat >>confdefs.h
<<EOF
10310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10316 # Check this now, so that we will NOT find the above functions in ncurses.
10317 # That is because we have not set up to link ncurses in lib-src.
10318 # It's better to believe a function is not available
10319 # than to expect to find it in ncurses.
10321 echo "$as_me:10321: checking for tparm in -lncurses" >&5
10322 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10323 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 ac_check_lib_save_LIBS
=$LIBS
10327 LIBS
="-lncurses $LIBS"
10328 cat >conftest.
$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10347 rm -f conftest.
$ac_objext conftest
$ac_exeext
10348 if { (eval echo "$as_me:10348: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try
='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_lib_ncurses_tparm
=yes
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.
$ac_ext >&5
10363 ac_cv_lib_ncurses_tparm
=no
10365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10366 LIBS
=$ac_check_lib_save_LIBS
10368 echo "$as_me:10368: result: $ac_cv_lib_ncurses_tparm" >&5
10369 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10370 if test $ac_cv_lib_ncurses_tparm = yes; then
10371 cat >>confdefs.h
<<EOF
10372 #define HAVE_LIBNCURSES 1
10375 LIBS
="-lncurses $LIBS"
10379 # Do we need the Hesiod library to provide the support routines?
10380 if test "$with_hesiod" = yes ; then
10381 # Don't set $LIBS here -- see comments above.
10383 echo "$as_me:10383: checking for res_send" >&5
10384 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10385 if test "${ac_cv_func_res_send+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 cat >conftest.
$ac_ext <<_ACEOF
10389 #line 10389 "configure"
10390 #include "confdefs.h"
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char res_send (); below. */
10393 #include <assert.h>
10394 /* Override any gcc2 internal prototype to avoid an error. */
10398 /* We use char because int might match the return type of a gcc2
10399 builtin and then its argument prototype would still apply. */
10406 /* The GNU C library defines this for functions which it implements
10407 to always fail with ENOSYS. Some functions are actually named
10408 something starting with __ and the normal name is an alias. */
10409 #if defined (__stub_res_send) || defined (__stub___res_send)
10419 rm -f conftest.
$ac_objext conftest
$ac_exeext
10420 if { (eval echo "$as_me:10420: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>&5
10423 echo "$as_me:10423: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try
='test -s conftest$ac_exeext'
10426 { (eval echo "$as_me:10426: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:10429: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
10431 ac_cv_func_res_send
=yes
10433 echo "$as_me: failed program was:" >&5
10434 cat conftest.
$ac_ext >&5
10435 ac_cv_func_res_send
=no
10437 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10439 echo "$as_me:10439: result: $ac_cv_func_res_send" >&5
10440 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10441 if test $ac_cv_func_res_send = yes; then
10444 echo "$as_me:10444: checking for __res_send" >&5
10445 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10446 if test "${ac_cv_func___res_send+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 cat >conftest.
$ac_ext <<_ACEOF
10450 #line 10450 "configure"
10451 #include "confdefs.h"
10452 /* System header to define __stub macros and hopefully few prototypes,
10453 which can conflict with char __res_send (); below. */
10454 #include <assert.h>
10455 /* Override any gcc2 internal prototype to avoid an error. */
10459 /* We use char because int might match the return type of a gcc2
10460 builtin and then its argument prototype would still apply. */
10461 char __res_send ();
10467 /* The GNU C library defines this for functions which it implements
10468 to always fail with ENOSYS. Some functions are actually named
10469 something starting with __ and the normal name is an alias. */
10470 #if defined (__stub___res_send) || defined (__stub_____res_send)
10480 rm -f conftest.
$ac_objext conftest
$ac_exeext
10481 if { (eval echo "$as_me:10481: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>&5
10484 echo "$as_me:10484: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try
='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:10487: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_func___res_send
=yes
10494 echo "$as_me: failed program was:" >&5
10495 cat conftest.
$ac_ext >&5
10496 ac_cv_func___res_send
=no
10498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10500 echo "$as_me:10500: result: $ac_cv_func___res_send" >&5
10501 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10502 if test $ac_cv_func___res_send = yes; then
10505 echo "$as_me:10505: checking for res_send in -lresolv" >&5
10506 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10507 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 ac_check_lib_save_LIBS
=$LIBS
10511 LIBS
="-lresolv $LIBS"
10512 cat >conftest.
$ac_ext <<_ACEOF
10513 #line 10513 "configure"
10514 #include "confdefs.h"
10516 /* Override any gcc2 internal prototype to avoid an error. */
10520 /* We use char because int might match the return type of a gcc2
10521 builtin and then its argument prototype would still apply. */
10531 rm -f conftest.
$ac_objext conftest
$ac_exeext
10532 if { (eval echo "$as_me:10532: \"$ac_link\"") >&5
10533 (eval $ac_link) 2>&5
10535 echo "$as_me:10535: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try
='test -s conftest$ac_exeext'
10538 { (eval echo "$as_me:10538: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:10541: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_lib_resolv_res_send
=yes
10545 echo "$as_me: failed program was:" >&5
10546 cat conftest.
$ac_ext >&5
10547 ac_cv_lib_resolv_res_send
=no
10549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10550 LIBS
=$ac_check_lib_save_LIBS
10552 echo "$as_me:10552: result: $ac_cv_lib_resolv_res_send" >&5
10553 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10554 if test $ac_cv_lib_resolv_res_send = yes; then
10557 echo "$as_me:10557: checking for __res_send in -lresolv" >&5
10558 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10559 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 ac_check_lib_save_LIBS
=$LIBS
10563 LIBS
="-lresolv $LIBS"
10564 cat >conftest.
$ac_ext <<_ACEOF
10565 #line 10565 "configure"
10566 #include "confdefs.h"
10568 /* Override any gcc2 internal prototype to avoid an error. */
10572 /* We use char because int might match the return type of a gcc2
10573 builtin and then its argument prototype would still apply. */
10574 char __res_send ();
10583 rm -f conftest.
$ac_objext conftest
$ac_exeext
10584 if { (eval echo "$as_me:10584: \"$ac_link\"") >&5
10585 (eval $ac_link) 2>&5
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try
='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:10590: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:10593: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_lib_resolv___res_send
=yes
10597 echo "$as_me: failed program was:" >&5
10598 cat conftest.
$ac_ext >&5
10599 ac_cv_lib_resolv___res_send
=no
10601 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10602 LIBS
=$ac_check_lib_save_LIBS
10604 echo "$as_me:10604: result: $ac_cv_lib_resolv___res_send" >&5
10605 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10606 if test $ac_cv_lib_resolv___res_send = yes; then
10616 if test "$resolv" = yes ; then
10619 cat >>confdefs.h
<<\EOF
10620 #define HAVE_LIBRESOLV 1
10626 echo "$as_me:10626: checking for hes_getmailhost" >&5
10627 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10628 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 cat >conftest.
$ac_ext <<_ACEOF
10632 #line 10632 "configure"
10633 #include "confdefs.h"
10634 /* System header to define __stub macros and hopefully few prototypes,
10635 which can conflict with char hes_getmailhost (); below. */
10636 #include <assert.h>
10637 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10643 char hes_getmailhost ();
10649 /* The GNU C library defines this for functions which it implements
10650 to always fail with ENOSYS. Some functions are actually named
10651 something starting with __ and the normal name is an alias. */
10652 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10655 f = hes_getmailhost;
10662 rm -f conftest.
$ac_objext conftest
$ac_exeext
10663 if { (eval echo "$as_me:10663: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10666 echo "$as_me:10666: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try
='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:10669: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:10672: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_func_hes_getmailhost
=yes
10676 echo "$as_me: failed program was:" >&5
10677 cat conftest.
$ac_ext >&5
10678 ac_cv_func_hes_getmailhost
=no
10680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10682 echo "$as_me:10682: result: $ac_cv_func_hes_getmailhost" >&5
10683 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10684 if test $ac_cv_func_hes_getmailhost = yes; then
10687 echo "$as_me:10687: checking for hes_getmailhost in -lhesiod" >&5
10688 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10689 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 ac_check_lib_save_LIBS
=$LIBS
10693 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10694 cat >conftest.
$ac_ext <<_ACEOF
10695 #line 10695 "configure"
10696 #include "confdefs.h"
10698 /* Override any gcc2 internal prototype to avoid an error. */
10702 /* We use char because int might match the return type of a gcc2
10703 builtin and then its argument prototype would still apply. */
10704 char hes_getmailhost ();
10708 hes_getmailhost ();
10713 rm -f conftest.
$ac_objext conftest
$ac_exeext
10714 if { (eval echo "$as_me:10714: \"$ac_link\"") >&5
10715 (eval $ac_link) 2>&5
10717 echo "$as_me:10717: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try
='test -s conftest$ac_exeext'
10720 { (eval echo "$as_me:10720: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:10723: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_lib_hesiod_hes_getmailhost
=yes
10727 echo "$as_me: failed program was:" >&5
10728 cat conftest.
$ac_ext >&5
10729 ac_cv_lib_hesiod_hes_getmailhost
=no
10731 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10732 LIBS
=$ac_check_lib_save_LIBS
10734 echo "$as_me:10734: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10735 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10736 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10738 cat >>confdefs.h
<<\EOF
10739 #define HAVE_LIBHESIOD 1
10750 # These tell us which Kerberos-related libraries to use.
10751 if test "${with_kerberos+set}" = set; then
10753 echo "$as_me:10753: checking for com_err in -lcom_err" >&5
10754 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 ac_check_lib_save_LIBS
=$LIBS
10759 LIBS
="-lcom_err $LIBS"
10760 cat >conftest.
$ac_ext <<_ACEOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10764 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10779 rm -f conftest.
$ac_objext conftest
$ac_exeext
10780 if { (eval echo "$as_me:10780: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>&5
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try
='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:10786: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:10789: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_lib_com_err_com_err
=yes
10793 echo "$as_me: failed program was:" >&5
10794 cat conftest.
$ac_ext >&5
10795 ac_cv_lib_com_err_com_err
=no
10797 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10798 LIBS
=$ac_check_lib_save_LIBS
10800 echo "$as_me:10800: result: $ac_cv_lib_com_err_com_err" >&5
10801 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10802 if test $ac_cv_lib_com_err_com_err = yes; then
10803 cat >>confdefs.h
<<EOF
10804 #define HAVE_LIBCOM_ERR 1
10807 LIBS
="-lcom_err $LIBS"
10811 echo "$as_me:10811: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10812 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10813 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 ac_check_lib_save_LIBS
=$LIBS
10817 LIBS
="-lk5crypto $LIBS"
10818 cat >conftest.
$ac_ext <<_ACEOF
10819 #line 10819 "configure"
10820 #include "confdefs.h"
10822 /* Override any gcc2 internal prototype to avoid an error. */
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char mit_des_cbc_encrypt ();
10832 mit_des_cbc_encrypt ();
10837 rm -f conftest.
$ac_objext conftest
$ac_exeext
10838 if { (eval echo "$as_me:10838: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10841 echo "$as_me:10841: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try
='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:10844: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10847 echo "$as_me:10847: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10851 echo "$as_me: failed program was:" >&5
10852 cat conftest.
$ac_ext >&5
10853 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10856 LIBS
=$ac_check_lib_save_LIBS
10858 echo "$as_me:10858: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10859 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10860 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10861 cat >>confdefs.h
<<EOF
10862 #define HAVE_LIBK5CRYPTO 1
10865 LIBS
="-lk5crypto $LIBS"
10869 echo "$as_me:10869: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10870 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10871 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 ac_check_lib_save_LIBS
=$LIBS
10875 LIBS
="-lcrypto $LIBS"
10876 cat >conftest.
$ac_ext <<_ACEOF
10877 #line 10877 "configure"
10878 #include "confdefs.h"
10880 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10886 char mit_des_cbc_encrypt ();
10890 mit_des_cbc_encrypt ();
10895 rm -f conftest.
$ac_objext conftest
$ac_exeext
10896 if { (eval echo "$as_me:10896: \"$ac_link\"") >&5
10897 (eval $ac_link) 2>&5
10899 echo "$as_me:10899: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try
='test -s conftest$ac_exeext'
10902 { (eval echo "$as_me:10902: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10909 echo "$as_me: failed program was:" >&5
10910 cat conftest.
$ac_ext >&5
10911 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10913 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10914 LIBS
=$ac_check_lib_save_LIBS
10916 echo "$as_me:10916: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10917 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10918 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10919 cat >>confdefs.h
<<EOF
10920 #define HAVE_LIBCRYPTO 1
10923 LIBS
="-lcrypto $LIBS"
10927 echo "$as_me:10927: checking for krb5_init_context in -lkrb5" >&5
10928 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10929 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 ac_check_lib_save_LIBS
=$LIBS
10933 LIBS
="-lkrb5 $LIBS"
10934 cat >conftest.
$ac_ext <<_ACEOF
10935 #line 10935 "configure"
10936 #include "confdefs.h"
10938 /* Override any gcc2 internal prototype to avoid an error. */
10942 /* We use char because int might match the return type of a gcc2
10943 builtin and then its argument prototype would still apply. */
10944 char krb5_init_context ();
10948 krb5_init_context ();
10953 rm -f conftest.
$ac_objext conftest
$ac_exeext
10954 if { (eval echo "$as_me:10954: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>&5
10957 echo "$as_me:10957: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try
='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:10960: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10963 echo "$as_me:10963: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_lib_krb5_krb5_init_context
=yes
10967 echo "$as_me: failed program was:" >&5
10968 cat conftest.
$ac_ext >&5
10969 ac_cv_lib_krb5_krb5_init_context
=no
10971 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10972 LIBS
=$ac_check_lib_save_LIBS
10974 echo "$as_me:10974: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10975 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10976 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10977 cat >>confdefs.h
<<EOF
10978 #define HAVE_LIBKRB5 1
10981 LIBS
="-lkrb5 $LIBS"
10985 if test "${with_kerberos5+set}" != set; then
10987 echo "$as_me:10987: checking for des_cbc_encrypt in -ldes425" >&5
10988 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10989 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_check_lib_save_LIBS
=$LIBS
10993 LIBS
="-ldes425 $LIBS"
10994 cat >conftest.
$ac_ext <<_ACEOF
10995 #line 10995 "configure"
10996 #include "confdefs.h"
10998 /* Override any gcc2 internal prototype to avoid an error. */
11002 /* We use char because int might match the return type of a gcc2
11003 builtin and then its argument prototype would still apply. */
11004 char des_cbc_encrypt ();
11008 des_cbc_encrypt ();
11013 rm -f conftest.
$ac_objext conftest
$ac_exeext
11014 if { (eval echo "$as_me:11014: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>&5
11017 echo "$as_me:11017: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try
='test -s conftest$ac_exeext'
11020 { (eval echo "$as_me:11020: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:11023: \$? = $ac_status" >&5
11024 (exit $ac_status); }; }; then
11025 ac_cv_lib_des425_des_cbc_encrypt
=yes
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.
$ac_ext >&5
11029 ac_cv_lib_des425_des_cbc_encrypt
=no
11031 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11032 LIBS
=$ac_check_lib_save_LIBS
11034 echo "$as_me:11034: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
11035 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
11036 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
11037 cat >>confdefs.h
<<EOF
11038 #define HAVE_LIBDES425 1
11041 LIBS
="-ldes425 $LIBS"
11045 echo "$as_me:11045: checking for des_cbc_encrypt in -ldes" >&5
11046 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11047 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 ac_check_lib_save_LIBS
=$LIBS
11052 cat >conftest.
$ac_ext <<_ACEOF
11053 #line 11053 "configure"
11054 #include "confdefs.h"
11056 /* Override any gcc2 internal prototype to avoid an error. */
11060 /* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062 char des_cbc_encrypt ();
11066 des_cbc_encrypt ();
11071 rm -f conftest.
$ac_objext conftest
$ac_exeext
11072 if { (eval echo "$as_me:11072: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try
='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:11078: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:11081: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_lib_des_des_cbc_encrypt
=yes
11085 echo "$as_me: failed program was:" >&5
11086 cat conftest.
$ac_ext >&5
11087 ac_cv_lib_des_des_cbc_encrypt
=no
11089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11090 LIBS
=$ac_check_lib_save_LIBS
11092 echo "$as_me:11092: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11095 cat >>confdefs.h
<<EOF
11096 #define HAVE_LIBDES 1
11105 echo "$as_me:11105: checking for krb_get_cred in -lkrb4" >&5
11106 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11107 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 ac_check_lib_save_LIBS
=$LIBS
11111 LIBS
="-lkrb4 $LIBS"
11112 cat >conftest.
$ac_ext <<_ACEOF
11113 #line 11113 "configure"
11114 #include "confdefs.h"
11116 /* Override any gcc2 internal prototype to avoid an error. */
11120 /* We use char because int might match the return type of a gcc2
11121 builtin and then its argument prototype would still apply. */
11122 char krb_get_cred ();
11131 rm -f conftest.
$ac_objext conftest
$ac_exeext
11132 if { (eval echo "$as_me:11132: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try
='test -s conftest$ac_exeext'
11138 { (eval echo "$as_me:11138: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:11141: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_lib_krb4_krb_get_cred
=yes
11145 echo "$as_me: failed program was:" >&5
11146 cat conftest.
$ac_ext >&5
11147 ac_cv_lib_krb4_krb_get_cred
=no
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11150 LIBS
=$ac_check_lib_save_LIBS
11152 echo "$as_me:11152: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11153 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11154 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11155 cat >>confdefs.h
<<EOF
11156 #define HAVE_LIBKRB4 1
11159 LIBS
="-lkrb4 $LIBS"
11163 echo "$as_me:11163: checking for krb_get_cred in -lkrb" >&5
11164 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11165 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 ac_check_lib_save_LIBS
=$LIBS
11170 cat >conftest.
$ac_ext <<_ACEOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11174 /* Override any gcc2 internal prototype to avoid an error. */
11178 /* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11180 char krb_get_cred ();
11189 rm -f conftest.
$ac_objext conftest
$ac_exeext
11190 if { (eval echo "$as_me:11190: \"$ac_link\"") >&5
11191 (eval $ac_link) 2>&5
11193 echo "$as_me:11193: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try
='test -s conftest$ac_exeext'
11196 { (eval echo "$as_me:11196: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
11201 ac_cv_lib_krb_krb_get_cred
=yes
11203 echo "$as_me: failed program was:" >&5
11204 cat conftest.
$ac_ext >&5
11205 ac_cv_lib_krb_krb_get_cred
=no
11207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11208 LIBS
=$ac_check_lib_save_LIBS
11210 echo "$as_me:11210: result: $ac_cv_lib_krb_krb_get_cred" >&5
11211 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11212 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11213 cat >>confdefs.h
<<EOF
11214 #define HAVE_LIBKRB 1
11225 if test "${with_kerberos5+set}" = set; then
11227 for ac_header
in krb5.h
11229 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:11230: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.
$ac_ext <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11238 #include <$ac_header>
11240 if { (eval echo "$as_me:11240: \"$ac_cpp conftest.$ac_ext\"") >&5
11241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11243 egrep -v '^ *\+' conftest.er1
>conftest.err
11245 cat conftest.err
>&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); } >/dev
/null
; then
11248 if test -s conftest.err
; then
11249 ac_cpp_err
=$ac_c_preproc_warn_flag
11256 if test -z "$ac_cpp_err"; then
11257 eval "$as_ac_Header=yes"
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.
$ac_ext >&5
11261 eval "$as_ac_Header=no"
11263 rm -f conftest.err conftest.
$ac_ext
11265 echo "$as_me:11265: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11268 cat >>confdefs.h
<<EOF
11269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11277 for ac_header
in des.h
11279 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 echo "$as_me:11280: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.
$ac_ext <<_ACEOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11288 #include <$ac_header>
11290 if { (eval echo "$as_me:11290: \"$ac_cpp conftest.$ac_ext\"") >&5
11291 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11293 egrep -v '^ *\+' conftest.er1
>conftest.err
11295 cat conftest.err
>&5
11296 echo "$as_me:11296: \$? = $ac_status" >&5
11297 (exit $ac_status); } >/dev
/null
; then
11298 if test -s conftest.err
; then
11299 ac_cpp_err
=$ac_c_preproc_warn_flag
11306 if test -z "$ac_cpp_err"; then
11307 eval "$as_ac_Header=yes"
11309 echo "$as_me: failed program was:" >&5
11310 cat conftest.
$ac_ext >&5
11311 eval "$as_ac_Header=no"
11313 rm -f conftest.err conftest.
$ac_ext
11315 echo "$as_me:11315: result: `eval echo '${'$as_ac_Header'}'`" >&5
11316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11318 cat >>confdefs.h
<<EOF
11319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324 for ac_header
in kerberosIV
/des.h
11326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 echo "$as_me:11327: checking for $ac_header" >&5
11328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.
$ac_ext <<_ACEOF
11333 #line 11333 "configure"
11334 #include "confdefs.h"
11335 #include <$ac_header>
11337 if { (eval echo "$as_me:11337: \"$ac_cpp conftest.$ac_ext\"") >&5
11338 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11340 egrep -v '^ *\+' conftest.er1
>conftest.err
11342 cat conftest.err
>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev
/null
; then
11345 if test -s conftest.err
; then
11346 ac_cpp_err
=$ac_c_preproc_warn_flag
11353 if test -z "$ac_cpp_err"; then
11354 eval "$as_ac_Header=yes"
11356 echo "$as_me: failed program was:" >&5
11357 cat conftest.
$ac_ext >&5
11358 eval "$as_ac_Header=no"
11360 rm -f conftest.err conftest.
$ac_ext
11362 echo "$as_me:11362: result: `eval echo '${'$as_ac_Header'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h
<<EOF
11366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11371 for ac_header
in kerberos
/des.h
11373 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 echo "$as_me:11374: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 cat >conftest.
$ac_ext <<_ACEOF
11380 #line 11380 "configure"
11381 #include "confdefs.h"
11382 #include <$ac_header>
11384 if { (eval echo "$as_me:11384: \"$ac_cpp conftest.$ac_ext\"") >&5
11385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11387 egrep -v '^ *\+' conftest.er1
>conftest.err
11389 cat conftest.err
>&5
11390 echo "$as_me:11390: \$? = $ac_status" >&5
11391 (exit $ac_status); } >/dev
/null
; then
11392 if test -s conftest.err
; then
11393 ac_cpp_err
=$ac_c_preproc_warn_flag
11400 if test -z "$ac_cpp_err"; then
11401 eval "$as_ac_Header=yes"
11403 echo "$as_me: failed program was:" >&5
11404 cat conftest.
$ac_ext >&5
11405 eval "$as_ac_Header=no"
11407 rm -f conftest.err conftest.
$ac_ext
11409 echo "$as_me:11409: result: `eval echo '${'$as_ac_Header'}'`" >&5
11410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11412 cat >>confdefs.h
<<EOF
11413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 for ac_header
in krb.h
11427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 echo "$as_me:11428: checking for $ac_header" >&5
11429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 cat >conftest.
$ac_ext <<_ACEOF
11434 #line 11434 "configure"
11435 #include "confdefs.h"
11436 #include <$ac_header>
11438 if { (eval echo "$as_me:11438: \"$ac_cpp conftest.$ac_ext\"") >&5
11439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11441 egrep -v '^ *\+' conftest.er1
>conftest.err
11443 cat conftest.err
>&5
11444 echo "$as_me:11444: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev
/null
; then
11446 if test -s conftest.err
; then
11447 ac_cpp_err
=$ac_c_preproc_warn_flag
11454 if test -z "$ac_cpp_err"; then
11455 eval "$as_ac_Header=yes"
11457 echo "$as_me: failed program was:" >&5
11458 cat conftest.
$ac_ext >&5
11459 eval "$as_ac_Header=no"
11461 rm -f conftest.err conftest.
$ac_ext
11463 echo "$as_me:11463: result: `eval echo '${'$as_ac_Header'}'`" >&5
11464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11466 cat >>confdefs.h
<<EOF
11467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472 for ac_header
in kerberosIV
/krb.h
11474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 echo "$as_me:11475: checking for $ac_header" >&5
11476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 cat >conftest.
$ac_ext <<_ACEOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11483 #include <$ac_header>
11485 if { (eval echo "$as_me:11485: \"$ac_cpp conftest.$ac_ext\"") >&5
11486 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11488 egrep -v '^ *\+' conftest.er1
>conftest.err
11490 cat conftest.err
>&5
11491 echo "$as_me:11491: \$? = $ac_status" >&5
11492 (exit $ac_status); } >/dev
/null
; then
11493 if test -s conftest.err
; then
11494 ac_cpp_err
=$ac_c_preproc_warn_flag
11501 if test -z "$ac_cpp_err"; then
11502 eval "$as_ac_Header=yes"
11504 echo "$as_me: failed program was:" >&5
11505 cat conftest.
$ac_ext >&5
11506 eval "$as_ac_Header=no"
11508 rm -f conftest.err conftest.
$ac_ext
11510 echo "$as_me:11510: result: `eval echo '${'$as_ac_Header'}'`" >&5
11511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11513 cat >>confdefs.h
<<EOF
11514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11519 for ac_header
in kerberos
/krb.h
11521 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11522 echo "$as_me:11522: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.
$ac_ext <<_ACEOF
11528 #line 11528 "configure"
11529 #include "confdefs.h"
11530 #include <$ac_header>
11532 if { (eval echo "$as_me:11532: \"$ac_cpp conftest.$ac_ext\"") >&5
11533 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11535 egrep -v '^ *\+' conftest.er1
>conftest.err
11537 cat conftest.err
>&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit $ac_status); } >/dev
/null
; then
11540 if test -s conftest.err
; then
11541 ac_cpp_err
=$ac_c_preproc_warn_flag
11548 if test -z "$ac_cpp_err"; then
11549 eval "$as_ac_Header=yes"
11551 echo "$as_me: failed program was:" >&5
11552 cat conftest.
$ac_ext >&5
11553 eval "$as_ac_Header=no"
11555 rm -f conftest.err conftest.
$ac_ext
11557 echo "$as_me:11557: result: `eval echo '${'$as_ac_Header'}'`" >&5
11558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h
<<EOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575 for ac_header
in com_err.h
11577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11578 echo "$as_me:11578: checking for $ac_header" >&5
11579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.
$ac_ext <<_ACEOF
11584 #line 11584 "configure"
11585 #include "confdefs.h"
11586 #include <$ac_header>
11588 if { (eval echo "$as_me:11588: \"$ac_cpp conftest.$ac_ext\"") >&5
11589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11591 egrep -v '^ *\+' conftest.er1
>conftest.err
11593 cat conftest.err
>&5
11594 echo "$as_me:11594: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev
/null
; then
11596 if test -s conftest.err
; then
11597 ac_cpp_err
=$ac_c_preproc_warn_flag
11604 if test -z "$ac_cpp_err"; then
11605 eval "$as_ac_Header=yes"
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.
$ac_ext >&5
11609 eval "$as_ac_Header=no"
11611 rm -f conftest.err conftest.
$ac_ext
11613 echo "$as_me:11613: result: `eval echo '${'$as_ac_Header'}'`" >&5
11614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h
<<EOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11625 # Solaris requires -lintl if you want strerror (which calls dgettext)
11626 # to return localized messages.
11628 echo "$as_me:11628: checking for dgettext in -lintl" >&5
11629 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11630 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_check_lib_save_LIBS
=$LIBS
11634 LIBS
="-lintl $LIBS"
11635 cat >conftest.
$ac_ext <<_ACEOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11639 /* Override any gcc2 internal prototype to avoid an error. */
11643 /* We use char because int might match the return type of a gcc2
11644 builtin and then its argument prototype would still apply. */
11654 rm -f conftest.
$ac_objext conftest
$ac_exeext
11655 if { (eval echo "$as_me:11655: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11658 echo "$as_me:11658: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try
='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:11661: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:11664: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_lib_intl_dgettext
=yes
11668 echo "$as_me: failed program was:" >&5
11669 cat conftest.
$ac_ext >&5
11670 ac_cv_lib_intl_dgettext
=no
11672 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11673 LIBS
=$ac_check_lib_save_LIBS
11675 echo "$as_me:11675: result: $ac_cv_lib_intl_dgettext" >&5
11676 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11677 if test $ac_cv_lib_intl_dgettext = yes; then
11678 cat >>confdefs.h
<<EOF
11679 #define HAVE_LIBINTL 1
11682 LIBS
="-lintl $LIBS"
11686 echo "$as_me:11686: checking whether localtime caches TZ" >&5
11687 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11688 if test "${emacs_cv_localtime_cache+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 if test x
$ac_cv_func_tzset = xyes
; then
11692 if test "$cross_compiling" = yes; then
11693 # If we have tzset, assume the worst when cross-compiling.
11694 emacs_cv_localtime_cache
=yes
11696 cat >conftest.
$ac_ext <<_ACEOF
11697 #line 11697 "configure"
11698 #include "confdefs.h"
11700 extern char **environ;
11704 for (to = from = environ; (*to = *from); from++)
11705 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11708 char TZ_GMT0[] = "TZ=GMT0";
11709 char TZ_PST8[] = "TZ=PST8";
11712 time_t now = time ((time_t *) 0);
11713 int hour_GMT0, hour_unset;
11714 if (putenv (TZ_GMT0) != 0)
11716 hour_GMT0 = localtime (&now)->tm_hour;
11718 hour_unset = localtime (&now)->tm_hour;
11719 if (putenv (TZ_PST8) != 0)
11721 if (localtime (&now)->tm_hour == hour_GMT0)
11724 if (localtime (&now)->tm_hour != hour_unset)
11729 rm -f conftest
$ac_exeext
11730 if { (eval echo "$as_me:11730: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>&5
11733 echo "$as_me:11733: \$? = $ac_status" >&5
11734 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11735 { (eval echo "$as_me:11735: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11738 echo "$as_me:11738: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 emacs_cv_localtime_cache
=no
11742 echo "$as_me: program exited with status $ac_status" >&5
11743 echo "$as_me: failed program was:" >&5
11744 cat conftest.
$ac_ext >&5
11745 emacs_cv_localtime_cache
=yes
11747 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11750 # If we lack tzset, report that localtime does not cache TZ,
11751 # since we can't invalidate the cache if we don't have tzset.
11752 emacs_cv_localtime_cache
=no
11755 echo "$as_me:11755: result: $emacs_cv_localtime_cache" >&5
11756 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11757 if test $emacs_cv_localtime_cache = yes; then
11759 cat >>confdefs.h
<<\EOF
11760 #define LOCALTIME_CACHE 1
11765 if test "x$HAVE_TIMEVAL" = xyes
; then
11767 for ac_func
in gettimeofday
11769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770 echo "$as_me:11770: checking for $ac_func" >&5
11771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11772 if eval "test \"\${$as_ac_var+set}\" = set"; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 cat >conftest.
$ac_ext <<_ACEOF
11776 #line 11776 "configure"
11777 #include "confdefs.h"
11778 /* System header to define __stub macros and hopefully few prototypes,
11779 which can conflict with char $ac_func (); below. */
11780 #include <assert.h>
11781 /* Override any gcc2 internal prototype to avoid an error. */
11785 /* We use char because int might match the return type of a gcc2
11786 builtin and then its argument prototype would still apply. */
11793 /* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11806 rm -f conftest.
$ac_objext conftest
$ac_exeext
11807 if { (eval echo "$as_me:11807: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>&5
11810 echo "$as_me:11810: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try
='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:11813: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:11816: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11820 echo "$as_me: failed program was:" >&5
11821 cat conftest.
$ac_ext >&5
11822 eval "$as_ac_var=no"
11824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11826 echo "$as_me:11826: result: `eval echo '${'$as_ac_var'}'`" >&5
11827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11828 if test `eval echo '${'$as_ac_var'}'` = yes; then
11829 cat >>confdefs.h
<<EOF
11830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11836 if test $ac_cv_func_gettimeofday = yes; then
11837 echo "$as_me:11837: checking whether gettimeofday can accept two arguments" >&5
11838 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11839 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.
$ac_ext <<_ACEOF
11843 #line 11843 "configure"
11844 #include "confdefs.h"
11846 #ifdef TIME_WITH_SYS_TIME
11847 #include <sys/time.h>
11850 #ifdef HAVE_SYS_TIME_H
11851 #include <sys/time.h>
11859 struct timeval time;
11860 gettimeofday (&time, 0);
11865 rm -f conftest.
$ac_objext
11866 if { (eval echo "$as_me:11866: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>&5
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try
='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:11872: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 emacs_cv_gettimeofday_two_arguments
=yes
11879 echo "$as_me: failed program was:" >&5
11880 cat conftest.
$ac_ext >&5
11881 emacs_cv_gettimeofday_two_arguments
=no
11883 rm -f conftest.
$ac_objext conftest.
$ac_ext
11885 echo "$as_me:11885: result: $emacs_cv_gettimeofday_two_arguments" >&5
11886 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11887 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11889 cat >>confdefs.h
<<\EOF
11890 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11897 if test "$ac_cv_func_gettimeofday" = yes; then
11898 echo "$as_me:11898: checking for struct timezone" >&5
11899 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11900 if test "${emacs_cv_struct_timezone+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.
$ac_ext <<_ACEOF
11904 #line 11904 "configure"
11905 #include "confdefs.h"
11906 #include <sys/time.h>
11910 struct timezone tz;
11915 rm -f conftest.
$ac_objext
11916 if { (eval echo "$as_me:11916: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11919 echo "$as_me:11919: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try
='test -s conftest.$ac_objext'
11922 { (eval echo "$as_me:11922: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:11925: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 if test "$cross_compiling" = yes; then
11928 emacs_cv_struct_timezone
=yes
11930 cat >conftest.
$ac_ext <<_ACEOF
11931 #line 11931 "configure"
11932 #include "confdefs.h"
11934 #ifdef TIME_WITH_SYS_TIME
11935 #include <sys/time.h>
11938 #ifdef HAVE_SYS_TIME_H
11939 #include <sys/time.h>
11945 struct timeval time;
11946 struct timezone dummy;
11947 exit (gettimeofday (&time, &dummy));
11950 rm -f conftest
$ac_exeext
11951 if { (eval echo "$as_me:11951: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11956 { (eval echo "$as_me:11956: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:11959: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 emacs_cv_struct_timezone
=yes
11963 echo "$as_me: program exited with status $ac_status" >&5
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.
$ac_ext >&5
11966 emacs_cv_struct_timezone
=no
11968 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11971 echo "$as_me: failed program was:" >&5
11972 cat conftest.
$ac_ext >&5
11973 emacs_cv_struct_timezone
=no
11975 rm -f conftest.
$ac_objext conftest.
$ac_ext
11977 echo "$as_me:11977: result: $emacs_cv_struct_timezone" >&5
11978 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11982 echo "$as_me:11982: checking for socket" >&5
11983 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11984 if test "${ac_cv_func_socket+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.
$ac_ext <<_ACEOF
11988 #line 11988 "configure"
11989 #include "confdefs.h"
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char socket (); below. */
11992 #include <assert.h>
11993 /* Override any gcc2 internal prototype to avoid an error. */
11997 /* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
12005 /* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008 #if defined (__stub_socket) || defined (__stub___socket)
12018 rm -f conftest.
$ac_objext conftest
$ac_exeext
12019 if { (eval echo "$as_me:12019: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>&5
12022 echo "$as_me:12022: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try
='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:12025: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:12028: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_func_socket
=yes
12032 echo "$as_me: failed program was:" >&5
12033 cat conftest.
$ac_ext >&5
12034 ac_cv_func_socket
=no
12036 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12038 echo "$as_me:12038: result: $ac_cv_func_socket" >&5
12039 echo "${ECHO_T}$ac_cv_func_socket" >&6
12040 if test $ac_cv_func_socket = yes; then
12046 if test $ok_so_far = yes; then
12047 echo "$as_me:12047: checking for netinet/in.h" >&5
12048 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12049 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.
$ac_ext <<_ACEOF
12053 #line 12053 "configure"
12054 #include "confdefs.h"
12055 #include <netinet/in.h>
12057 if { (eval echo "$as_me:12057: \"$ac_cpp conftest.$ac_ext\"") >&5
12058 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12060 egrep -v '^ *\+' conftest.er1
>conftest.err
12062 cat conftest.err
>&5
12063 echo "$as_me:12063: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev
/null
; then
12065 if test -s conftest.err
; then
12066 ac_cpp_err
=$ac_c_preproc_warn_flag
12073 if test -z "$ac_cpp_err"; then
12074 ac_cv_header_netinet_in_h
=yes
12076 echo "$as_me: failed program was:" >&5
12077 cat conftest.
$ac_ext >&5
12078 ac_cv_header_netinet_in_h
=no
12080 rm -f conftest.err conftest.
$ac_ext
12082 echo "$as_me:12082: result: $ac_cv_header_netinet_in_h" >&5
12083 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12084 if test $ac_cv_header_netinet_in_h = yes; then
12091 if test $ok_so_far = yes; then
12092 echo "$as_me:12092: checking for arpa/inet.h" >&5
12093 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12094 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 cat >conftest.
$ac_ext <<_ACEOF
12098 #line 12098 "configure"
12099 #include "confdefs.h"
12100 #include <arpa/inet.h>
12102 if { (eval echo "$as_me:12102: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12105 egrep -v '^ *\+' conftest.er1
>conftest.err
12107 cat conftest.err
>&5
12108 echo "$as_me:12108: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev
/null
; then
12110 if test -s conftest.err
; then
12111 ac_cpp_err
=$ac_c_preproc_warn_flag
12118 if test -z "$ac_cpp_err"; then
12119 ac_cv_header_arpa_inet_h
=yes
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.
$ac_ext >&5
12123 ac_cv_header_arpa_inet_h
=no
12125 rm -f conftest.err conftest.
$ac_ext
12127 echo "$as_me:12127: result: $ac_cv_header_arpa_inet_h" >&5
12128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12129 if test $ac_cv_header_arpa_inet_h = yes; then
12136 if test $ok_so_far = yes; then
12138 cat >>confdefs.h
<<\EOF
12139 #define HAVE_INET_SOCKETS 1
12144 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
12146 cat >>confdefs.h
<<\EOF
12147 #define HAVE_AIX_SMT_EXP 1
12152 echo "$as_me:12152: checking whether system supports dynamic ptys" >&5
12153 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12154 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
12155 echo "$as_me:12155: result: yes" >&5
12156 echo "${ECHO_T}yes" >&6
12158 cat >>confdefs.h
<<\EOF
12159 #define HAVE_DEV_PTMX 1
12163 echo "$as_me:12163: result: no" >&5
12164 echo "${ECHO_T}no" >&6
12167 echo "$as_me:12167: checking for pid_t" >&5
12168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12169 if test "${ac_cv_type_pid_t+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.
$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 $ac_includes_default
12181 if (sizeof (pid_t))
12187 rm -f conftest.
$ac_objext
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try
='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_type_pid_t
=yes
12201 echo "$as_me: failed program was:" >&5
12202 cat conftest.
$ac_ext >&5
12203 ac_cv_type_pid_t
=no
12205 rm -f conftest.
$ac_objext conftest.
$ac_ext
12207 echo "$as_me:12207: result: $ac_cv_type_pid_t" >&5
12208 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12209 if test $ac_cv_type_pid_t = yes; then
12213 cat >>confdefs.h
<<EOF
12219 for ac_header
in unistd.h vfork.h
12221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 echo "$as_me:12222: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 cat >conftest.
$ac_ext <<_ACEOF
12228 #line 12228 "configure"
12229 #include "confdefs.h"
12230 #include <$ac_header>
12232 if { (eval echo "$as_me:12232: \"$ac_cpp conftest.$ac_ext\"") >&5
12233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12235 egrep -v '^ *\+' conftest.er1
>conftest.err
12237 cat conftest.err
>&5
12238 echo "$as_me:12238: \$? = $ac_status" >&5
12239 (exit $ac_status); } >/dev
/null
; then
12240 if test -s conftest.err
; then
12241 ac_cpp_err
=$ac_c_preproc_warn_flag
12248 if test -z "$ac_cpp_err"; then
12249 eval "$as_ac_Header=yes"
12251 echo "$as_me: failed program was:" >&5
12252 cat conftest.
$ac_ext >&5
12253 eval "$as_ac_Header=no"
12255 rm -f conftest.err conftest.
$ac_ext
12257 echo "$as_me:12257: result: `eval echo '${'$as_ac_Header'}'`" >&5
12258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12260 cat >>confdefs.h
<<EOF
12261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12267 for ac_func
in fork vfork
12269 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12270 echo "$as_me:12270: checking for $ac_func" >&5
12271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12272 if eval "test \"\${$as_ac_var+set}\" = set"; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.
$ac_ext <<_ACEOF
12276 #line 12276 "configure"
12277 #include "confdefs.h"
12278 /* System header to define __stub macros and hopefully few prototypes,
12279 which can conflict with char $ac_func (); below. */
12280 #include <assert.h>
12281 /* Override any gcc2 internal prototype to avoid an error. */
12285 /* We use char because int might match the return type of a gcc2
12286 builtin and then its argument prototype would still apply. */
12293 /* The GNU C library defines this for functions which it implements
12294 to always fail with ENOSYS. Some functions are actually named
12295 something starting with __ and the normal name is an alias. */
12296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12306 rm -f conftest.
$ac_objext conftest
$ac_exeext
12307 if { (eval echo "$as_me:12307: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try
='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:12313: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:12316: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 eval "$as_ac_var=yes"
12320 echo "$as_me: failed program was:" >&5
12321 cat conftest.
$ac_ext >&5
12322 eval "$as_ac_var=no"
12324 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12326 echo "$as_me:12326: result: `eval echo '${'$as_ac_var'}'`" >&5
12327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12328 if test `eval echo '${'$as_ac_var'}'` = yes; then
12329 cat >>confdefs.h
<<EOF
12330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12336 ac_cv_func_fork_works
=$ac_cv_func_fork
12337 if test "x$ac_cv_func_fork" = xyes
; then
12338 echo "$as_me:12338: checking for working fork" >&5
12339 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12340 if test "${ac_cv_func_fork_works+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 if test "$cross_compiling" = yes; then
12344 ac_cv_func_fork_works
=cross
12346 cat >conftest.
$ac_ext <<_ACEOF
12347 /* By Rüdiger Kuhlmann. */
12348 #include <sys/types.h>
12350 # include <unistd.h>
12352 /* Some systems only have a dummy stub for fork() */
12360 rm -f conftest
$ac_exeext
12361 if { (eval echo "$as_me:12361: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>&5
12364 echo "$as_me:12364: \$? = $ac_status" >&5
12365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12366 { (eval echo "$as_me:12366: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:12369: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_cv_func_fork_works
=yes
12373 echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 cat conftest.
$ac_ext >&5
12376 ac_cv_func_fork_works
=no
12378 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12381 echo "$as_me:12381: result: $ac_cv_func_fork_works" >&5
12382 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12385 if test "x$ac_cv_func_fork_works" = xcross
; then
12387 *-*-amigaos* |
*-*-msdosdjgpp*)
12388 # Override, as these systems have only a dummy fork() stub
12389 ac_cv_func_fork_works
=no
12392 ac_cv_func_fork_works
=yes
12395 { echo "$as_me:12395: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12396 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12398 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12399 if test "x$ac_cv_func_vfork" = xyes
; then
12400 echo "$as_me:12400: checking for working vfork" >&5
12401 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12402 if test "${ac_cv_func_vfork_works+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 if test "$cross_compiling" = yes; then
12406 ac_cv_func_vfork_works
=cross
12408 cat >conftest.
$ac_ext <<_ACEOF
12409 #line 12409 "configure"
12410 #include "confdefs.h"
12411 /* Thanks to Paul Eggert for this test. */
12413 #include <sys/types.h>
12414 #include <sys/stat.h>
12416 # include <unistd.h>
12419 # include <vfork.h>
12421 /* On some sparc systems, changes by the child to local and incoming
12422 argument registers are propagated back to the parent. The compiler
12423 is told about this with #include <vfork.h>, but some compilers
12424 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12425 static variable whose address is put into a register that is
12426 clobbered by the vfork. */
12429 sparc_address_test (int arg)
12431 sparc_address_test (arg) int arg;
12434 static pid_t child;
12452 pid_t parent = getpid ();
12455 sparc_address_test ();
12460 /* Here is another test for sparc vfork register problems. This
12461 test uses lots of local variables, at least as many local
12462 variables as main has allocated so far including compiler
12463 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12464 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12465 reuse the register of parent for one of the local variables,
12466 since it will think that parent can't possibly be used any more
12467 in this routine. Assigning to the local variable will thus
12468 munge parent in the parent process. */
12470 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12471 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12472 /* Convince the compiler that p..p7 are live; otherwise, it might
12473 use the same hardware register for all 8 local variables. */
12474 if (p != p1 || p != p2 || p != p3 || p != p4
12475 || p != p5 || p != p6 || p != p7)
12478 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12479 from child file descriptors. If the child closes a descriptor
12480 before it execs or exits, this munges the parent's descriptor
12481 as well. Test for this by closing stdout in the child. */
12482 _exit(close(fileno(stdout)) != 0);
12487 while (wait(&status) != child)
12490 /* Was there some problem with vforking? */
12493 /* Did the child fail? (This shouldn't happen.) */
12496 /* Did the vfork/compiler bug occur? */
12497 || parent != getpid()
12499 /* Did the file descriptor bug occur? */
12500 || fstat(fileno(stdout), &st) != 0
12505 rm -f conftest
$ac_exeext
12506 if { (eval echo "$as_me:12506: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>&5
12509 echo "$as_me:12509: \$? = $ac_status" >&5
12510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12511 { (eval echo "$as_me:12511: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:12514: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_func_vfork_works
=yes
12518 echo "$as_me: program exited with status $ac_status" >&5
12519 echo "$as_me: failed program was:" >&5
12520 cat conftest.
$ac_ext >&5
12521 ac_cv_func_vfork_works
=no
12523 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12526 echo "$as_me:12526: result: $ac_cv_func_vfork_works" >&5
12527 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12530 if test "x$ac_cv_func_fork_works" = xcross
; then
12531 ac_cv_func_vfork_works
=ac_cv_func_vfork
12532 { echo "$as_me:12532: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12533 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12536 if test "x$ac_cv_func_vfork_works" = xyes
; then
12538 cat >>confdefs.h
<<\EOF
12539 #define HAVE_WORKING_VFORK 1
12544 cat >>confdefs.h
<<\EOF
12549 if test "x$ac_cv_func_fork_works" = xyes
; then
12551 cat >>confdefs.h
<<\EOF
12552 #define HAVE_WORKING_FORK 1
12557 # Fixme: This should be replaced when we have autoconf 2.14.
12558 echo "$as_me:12558: checking for size_t" >&5
12559 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12560 if test "${ac_cv_type_size_t+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 cat >conftest.
$ac_ext <<_ACEOF
12564 #line 12564 "configure"
12565 #include "confdefs.h"
12566 $ac_includes_default
12572 if (sizeof (size_t))
12578 rm -f conftest.
$ac_objext
12579 if { (eval echo "$as_me:12579: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12582 echo "$as_me:12582: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try
='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:12585: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:12588: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_type_size_t
=yes
12592 echo "$as_me: failed program was:" >&5
12593 cat conftest.
$ac_ext >&5
12594 ac_cv_type_size_t
=no
12596 rm -f conftest.
$ac_objext conftest.
$ac_ext
12598 echo "$as_me:12598: result: $ac_cv_type_size_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12600 if test $ac_cv_type_size_t = yes; then
12604 cat >>confdefs.h
<<EOF
12605 #define size_t unsigned
12610 # Set up the CFLAGS for real compilation, so we can substitute it.
12611 CFLAGS
="$REAL_CFLAGS"
12612 CPPFLAGS
="$REAL_CPPFLAGS"
12614 #### Find out which version of Emacs this is.
12615 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12616 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12617 if test x
"${version}" = x
; then
12618 { { echo "$as_me:12618: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12619 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12620 { (exit 1); exit 1; }; }
12623 ### Specify what sort of things we'll be editing into Makefile and config.h.
12624 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12626 cat >>confdefs.h
<<EOF
12627 #define EMACS_CONFIGURATION "${canonical}"
12630 cat >>confdefs.h
<<EOF
12631 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12634 cat >>confdefs.h
<<EOF
12635 #define config_machfile "${machfile}"
12638 cat >>confdefs.h
<<EOF
12639 #define config_opsysfile "${opsysfile}"
12642 cat >>confdefs.h
<<EOF
12643 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12646 cat >>confdefs.h
<<EOF
12647 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12650 cat >>confdefs.h
<<EOF
12651 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12654 cat >>confdefs.h
<<EOF
12655 #define UNEXEC_SRC ${UNEXEC_SRC}
12658 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12660 cat >>confdefs.h
<<\EOF
12661 #define HAVE_X_WINDOWS 1
12665 if test "${USE_X_TOOLKIT}" != "none" ; then
12667 cat >>confdefs.h
<<\EOF
12668 #define USE_X_TOOLKIT 1
12672 if test "${HAVE_X11}" = "yes" ; then
12674 cat >>confdefs.h
<<\EOF
12679 if test "${HAVE_XFREE386}" = "yes" ; then
12681 cat >>confdefs.h
<<\EOF
12682 #define HAVE_XFREE386 1
12686 if test "${HAVE_MENUS}" = "yes" ; then
12688 cat >>confdefs.h
<<\EOF
12689 #define HAVE_MENUS 1
12693 if test "${GNU_MALLOC}" = "yes" ; then
12695 cat >>confdefs.h
<<\EOF
12696 #define GNU_MALLOC 1
12700 if test "${REL_ALLOC}" = "yes" ; then
12702 cat >>confdefs.h
<<\EOF
12703 #define REL_ALLOC 1
12708 for ac_header
in nlist.h
12710 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12711 echo "$as_me:12711: checking for $ac_header" >&5
12712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12716 cat >conftest.
$ac_ext <<_ACEOF
12717 #line 12717 "configure"
12718 #include "confdefs.h"
12719 #include <$ac_header>
12721 if { (eval echo "$as_me:12721: \"$ac_cpp conftest.$ac_ext\"") >&5
12722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12724 egrep -v '^ *\+' conftest.er1
>conftest.err
12726 cat conftest.err
>&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); } >/dev
/null
; then
12729 if test -s conftest.err
; then
12730 ac_cpp_err
=$ac_c_preproc_warn_flag
12737 if test -z "$ac_cpp_err"; then
12738 eval "$as_ac_Header=yes"
12740 echo "$as_me: failed program was:" >&5
12741 cat conftest.
$ac_ext >&5
12742 eval "$as_ac_Header=no"
12744 rm -f conftest.err conftest.
$ac_ext
12746 echo "$as_me:12746: result: `eval echo '${'$as_ac_Header'}'`" >&5
12747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12749 cat >>confdefs.h
<<EOF
12750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12753 cat >>confdefs.h
<<\EOF
12754 #define NLIST_STRUCT 1
12760 #### Report on what we decided to do.
12762 Configured for \`${canonical}'.
12764 Where should the build process find the source code? ${srcdir}
12765 What operating system and machine description files should Emacs use?
12766 \`${opsysfile}' and \`${machfile}'
12767 What compiler should emacs be built with? ${CC} ${CFLAGS}
12768 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12769 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12770 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12771 What window system should Emacs use? ${window_system}
12772 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12774 if test -n "${x_includes}"; then
12775 echo " Where do we find X Windows header files? ${x_includes}"
12777 echo " Where do we find X Windows header files? Standard dirs"
12779 if test -n "${x_libraries}"; then
12780 echo " Where do we find X Windows libraries? ${x_libraries}"
12782 echo " Where do we find X Windows libraries? Standard dirs"
12785 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12786 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12787 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12788 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12789 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12790 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12791 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12794 # Remove any trailing slashes in these variables.
12795 test "${prefix}" != NONE
&&
12796 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12797 test "${exec_prefix}" != NONE
&&
12798 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12800 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12801 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12802 ## from Makefile.c can correctly provide the arg `-traditional' to the
12805 cat >conftest.
$ac_ext <<_ACEOF
12806 #line 12806 "configure"
12807 #include "confdefs.h"
12810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12811 egrep "yes..yes" >/dev
/null
2>&1; then
12812 CPP_NEED_TRADITIONAL
=no
12814 CPP_NEED_TRADITIONAL
=yes
12818 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
12819 ac_config_commands
="$ac_config_commands default"
12820 cat >confcache
<<\_ACEOF
12821 # This file is a shell script that caches the results of configure
12822 # tests run on this system so they can be shared between configure
12823 # scripts and configure runs, see configure's option --config-cache.
12824 # It is not useful on other systems. If it contains results you don't
12825 # want to keep, you may remove or edit it.
12827 # config.status only pays attention to the cache file if you give it
12828 # the --recheck option to rerun configure.
12830 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12832 # following values.
12836 # The following way of writing the cache mishandles newlines in values,
12837 # but we know of no workaround that is simple, portable, and efficient.
12838 # So, don't put newlines in cache variables' values.
12839 # Ultrix sh set writes to stderr and can't be redirected directly,
12840 # and sets the high bit in the cache file unless we assign to the vars.
12843 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12845 # `set' does not quote correctly, so add quotes (double-quote
12846 # substitution turns \\\\ into \\, and sed turns \\ into \).
12849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12852 # `set' quotes correctly as required by POSIX, so do not add quotes.
12854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12863 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12865 if cmp -s $cache_file confcache
; then :; else
12866 if test -w $cache_file; then
12867 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12868 cat confcache
>$cache_file
12870 echo "not updating unwritable cache $cache_file"
12875 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12876 # Let make expand exec_prefix.
12877 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12879 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12881 # trailing colons and then remove the whole line if VPATH becomes empty
12882 # (actually we leave an empty line to preserve line numbers).
12883 if test "x$srcdir" = x.
; then
12884 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12885 s/:*\$(srcdir):*/:/;
12886 s/:*\${srcdir}:*/:/;
12888 s/^\([^=]*=[ ]*\):*/\1/;
12894 DEFS
=-DHAVE_CONFIG_H
12896 : ${CONFIG_STATUS=./config.status}
12897 ac_clean_files_save
=$ac_clean_files
12898 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12899 { echo "$as_me:12899: creating $CONFIG_STATUS" >&5
12900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12901 cat >$CONFIG_STATUS <<_ACEOF
12903 # Generated automatically by configure.
12904 # Run this file to recreate the current configuration.
12905 # Compiler output produced by configure, useful for debugging
12906 # configure, is in config.log if it exists.
12909 SHELL=\${CONFIG_SHELL-$SHELL}
12910 ac_cs_invocation="\$0 \$@"
12914 cat >>$CONFIG_STATUS <<\_ACEOF
12915 # Be Bourne compatible
12916 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12919 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12923 # Name of the executable.
12924 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12926 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12932 rm -f conf$$ conf$$.exe conf$$.
file
12934 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12935 # We could just check for DJGPP; but this test a) works b) is more generic
12936 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12937 if test -f conf$$.exe
; then
12938 # Don't use ln at all; we don't have any links
12943 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12948 rm -f conf$$ conf$$.exe conf$$.
file
12950 as_executable_p
="test -f"
12952 # Support unset when possible.
12953 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12960 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12961 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12962 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12963 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12964 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12965 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12966 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12967 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12970 # We need space, tab and new line, in precisely that order.
12976 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12982 # Files that config.status was made for.
12983 if test -n "$ac_config_files"; then
12984 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12987 if test -n "$ac_config_headers"; then
12988 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12991 if test -n "$ac_config_links"; then
12992 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12995 if test -n "$ac_config_commands"; then
12996 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12999 cat >>$CONFIG_STATUS <<\EOF
13002 \`$as_me' instantiates files from templates according to the
13003 current configuration.
13005 Usage: $0 [OPTIONS] [FILE]...
13007 -h, --help print this help, then exit
13008 -V, --version print version number, then exit
13009 -d, --debug don't remove temporary files
13010 --recheck update $as_me by reconfiguring in the same conditions
13011 --file=FILE[:TEMPLATE]
13012 instantiate the configuration file FILE
13013 --header=FILE[:TEMPLATE]
13014 instantiate the configuration header FILE
13016 Configuration files:
13019 Configuration headers:
13022 Configuration commands:
13025 Report bugs to <bug-autoconf@gnu.org>."
13028 cat >>$CONFIG_STATUS <<EOF
13031 configured by $0, generated by GNU Autoconf 2.52,
13032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13034 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13035 Free Software Foundation, Inc.
13036 This config.status script is free software; the Free Software Foundation
13037 gives unlimited permission to copy, distribute and modify it."
13042 cat >>$CONFIG_STATUS <<\EOF
13043 # If no file are specified by the user, then we need to provide default
13044 # value. By we need to know if files were specified by the user.
13050 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13051 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13053 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
13057 *) # This is not an option, so the user has probably given explicit
13059 ac_need_defaults
=false
;;
13063 # Handling of the options.
13065 cat >>$CONFIG_STATUS <<EOF
13066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13067 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13068 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13070 cat >>$CONFIG_STATUS <<\EOF
13071 --version |
--vers* |
-V )
13072 echo "$ac_cs_version"; exit 0 ;;
13074 # Conflict between --help and --header
13075 { { echo "$as_me:13075: error: ambiguous option: $1
13076 Try \`$0 --help' for more information." >&5
13077 echo "$as_me: error: ambiguous option: $1
13078 Try \`$0 --help' for more information." >&2;}
13079 { (exit 1); exit 1; }; };;
13080 --help |
--hel |
-h )
13081 echo "$ac_cs_usage"; exit 0 ;;
13082 --debug |
--d* |
-d )
13084 --file |
--fil |
--fi |
--f )
13086 CONFIG_FILES
="$CONFIG_FILES $1"
13087 ac_need_defaults
=false
;;
13088 --header |
--heade |
--head |
--hea )
13090 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
13091 ac_need_defaults
=false
;;
13093 # This is an error.
13094 -*) { { echo "$as_me:13094: error: unrecognized option: $1
13095 Try \`$0 --help' for more information." >&5
13096 echo "$as_me: error: unrecognized option: $1
13097 Try \`$0 --help' for more information." >&2;}
13098 { (exit 1); exit 1; }; } ;;
13100 *) ac_config_targets
="$ac_config_targets $1" ;;
13109 ## ----------------------- ##
13110 ## Running config.status. ##
13111 ## ----------------------- ##
13113 This file was extended by $as_me 2.52, executed with
13114 CONFIG_FILES = $CONFIG_FILES
13115 CONFIG_HEADERS = $CONFIG_HEADERS
13116 CONFIG_LINKS = $CONFIG_LINKS
13117 CONFIG_COMMANDS = $CONFIG_COMMANDS
13118 > $ac_cs_invocation
13119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13124 cat >>$CONFIG_STATUS <<EOF
13126 # INIT-COMMANDS section.
13129 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13133 cat >>$CONFIG_STATUS <<\EOF
13134 for ac_config_target
in $ac_config_targets
13136 case "$ac_config_target" in
13137 # Handling of arguments.
13138 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13139 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13140 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
13141 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13142 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
13143 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13144 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
13145 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
13146 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
13147 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
13148 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13149 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13150 *) { { echo "$as_me:13150: error: invalid argument: $ac_config_target" >&5
13151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13152 { (exit 1); exit 1; }; };;
13156 # If the user did not use the arguments to specify the items to instantiate,
13157 # then the envvar interface is used. Set only those that are not.
13158 # We use the long form for the default assignment because of an extremely
13159 # bizarre bug on SunOS 4.1.3.
13160 if $ac_need_defaults; then
13161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13166 # Create a temporary directory, and hook for its removal unless debugging.
13169 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13170 trap '{ (exit 1); exit 1; }' 1 2 13 15
13173 # Create a (secure) tmp directory for tmp files.
13176 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13177 test -n "$tmp" && test -d "$tmp"
13180 tmp
=$TMPDIR/cs$$
-$RANDOM
13181 (umask 077 && mkdir
$tmp)
13184 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13185 { (exit 1); exit 1; }
13190 cat >>$CONFIG_STATUS <<EOF
13193 # CONFIG_FILES section.
13196 # No need to generate the scripts if there are no CONFIG_FILES.
13197 # This happens for instance when ./config.status config.h
13198 if test -n "\$CONFIG_FILES"; then
13199 # Protect against being on the right side of a sed subst in config.status.
13200 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13201 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13202 s,@SHELL@,$SHELL,;t t
13203 s,@exec_prefix@,$exec_prefix,;t t
13204 s,@prefix@,$prefix,;t t
13205 s,@program_transform_name@,$program_transform_name,;t t
13206 s,@bindir@,$bindir,;t t
13207 s,@sbindir@,$sbindir,;t t
13208 s,@libexecdir@,$libexecdir,;t t
13209 s,@datadir@,$datadir,;t t
13210 s,@sysconfdir@,$sysconfdir,;t t
13211 s,@sharedstatedir@,$sharedstatedir,;t t
13212 s,@localstatedir@,$localstatedir,;t t
13213 s,@libdir@,$libdir,;t t
13214 s,@includedir@,$includedir,;t t
13215 s,@oldincludedir@,$oldincludedir,;t t
13216 s,@infodir@,$infodir,;t t
13217 s,@mandir@,$mandir,;t t
13218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13223 s,@build_alias@,$build_alias,;t t
13224 s,@host_alias@,$host_alias,;t t
13225 s,@target_alias@,$target_alias,;t t
13226 s,@ECHO_C@,$ECHO_C,;t t
13227 s,@ECHO_N@,$ECHO_N,;t t
13228 s,@ECHO_T@,$ECHO_T,;t t
13229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13230 s,@DEFS@,$DEFS,;t t
13231 s,@LIBS@,$LIBS,;t t
13232 s,@build@,$build,;t t
13233 s,@build_cpu@,$build_cpu,;t t
13234 s,@build_vendor@,$build_vendor,;t t
13235 s,@build_os@,$build_os,;t t
13236 s,@host@,$host,;t t
13237 s,@host_cpu@,$host_cpu,;t t
13238 s,@host_vendor@,$host_vendor,;t t
13239 s,@host_os@,$host_os,;t t
13241 s,@CFLAGS@,$CFLAGS,;t t
13242 s,@LDFLAGS@,$LDFLAGS,;t t
13243 s,@CPPFLAGS@,$CPPFLAGS,;t t
13244 s,@ac_ct_CC@,$ac_ct_CC,;t t
13245 s,@EXEEXT@,$EXEEXT,;t t
13246 s,@OBJEXT@,$OBJEXT,;t t
13247 s,@LN_S@,$LN_S,;t t
13249 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13250 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13251 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13252 s,@YACC@,$YACC,;t t
13253 s,@RANLIB@,$RANLIB,;t t
13254 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13255 s,@LIBSOUND@,$LIBSOUND,;t t
13256 s,@SET_MAKE@,$SET_MAKE,;t t
13257 s,@ALLOCA@,$ALLOCA,;t t
13258 s,@liblockfile@,$liblockfile,;t t
13259 s,@LIBOBJS@,$LIBOBJS,;t t
13260 s,@NEED_SETGID@,$NEED_SETGID,;t t
13261 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13262 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13263 s,@version@,$version,;t t
13264 s,@configuration@,$configuration,;t t
13265 s,@canonical@,$canonical,;t t
13266 s,@srcdir@,$srcdir,;t t
13267 s,@lispdir@,$lispdir,;t t
13268 s,@locallisppath@,$locallisppath,;t t
13269 s,@lisppath@,$lisppath,;t t
13270 s,@x_default_search_path@,$x_default_search_path,;t t
13271 s,@etcdir@,$etcdir,;t t
13272 s,@archlibdir@,$archlibdir,;t t
13273 s,@docdir@,$docdir,;t t
13274 s,@bitmapdir@,$bitmapdir,;t t
13275 s,@gamedir@,$gamedir,;t t
13276 s,@gameuser@,$gameuser,;t t
13277 s,@c_switch_system@,$c_switch_system,;t t
13278 s,@c_switch_machine@,$c_switch_machine,;t t
13279 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13280 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13281 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13282 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13283 s,@machfile@,$machfile,;t t
13284 s,@opsysfile@,$opsysfile,;t t
13289 cat >>$CONFIG_STATUS <<\EOF
13290 # Split the substitutions into bite-sized pieces for seds with
13291 # small command number limits, like on Digital OSF/1 and HP-UX.
13292 ac_max_sed_lines
=48
13293 ac_sed_frag
=1 # Number of current file.
13294 ac_beg
=1 # First line for current file.
13295 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13298 while $ac_more_lines; do
13299 if test $ac_beg -gt 1; then
13300 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13302 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13304 if test ! -s $tmp/subs.frag
; then
13305 ac_more_lines
=false
13307 # The purpose of the label and of the branching condition is to
13308 # speed up the sed processing (if there are no `@' at all, there
13309 # is no need to browse any of the substitutions).
13310 # These are the two extra sed commands mentioned above.
13312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13313 if test -z "$ac_sed_cmds"; then
13314 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13316 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13318 ac_sed_frag
=`expr $ac_sed_frag + 1`
13320 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13323 if test -z "$ac_sed_cmds"; then
13326 fi # test -n "$CONFIG_FILES"
13329 cat >>$CONFIG_STATUS <<\EOF
13330 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13331 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13333 - |
*:- |
*:-:* ) # input from stdin
13335 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13336 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13337 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13338 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13339 * ) ac_file_in
=$ac_file.
in ;;
13342 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13343 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13344 X"$ac_file" : 'X\(//\)[^/]' \| \
13345 X"$ac_file" : 'X\(//\)$' \| \
13346 X"$ac_file" : 'X\(/\)' \| \
13347 . : '\(.\)' 2>/dev/null ||
13349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13351 /^X\(\/\/\)$/{ s//\1/; q; }
13352 /^X\(\/\).*/{ s//\1/; q; }
13354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13355 { case "$ac_dir" in
13356 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13360 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13361 case $as_mkdir_dir in
13362 # Skip DOS drivespec
13363 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13365 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13366 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13371 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13372 # A "../" for each directory in $ac_dir_suffix.
13373 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13375 ac_dir_suffix
= ac_dots
=
13380 if test -z "$ac_dots"; then
13383 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13385 [\\/]* | ?
:[\\/]* )
13386 ac_srcdir
=$srcdir$ac_dir_suffix;
13387 ac_top_srcdir
=$srcdir ;;
13388 *) # Relative path.
13389 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13390 ac_top_srcdir
=$ac_dots$srcdir ;;
13394 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13395 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13398 if test x
"$ac_file" != x-
; then
13399 { echo "$as_me:13399: creating $ac_file" >&5
13400 echo "$as_me: creating $ac_file" >&6;}
13403 # Let's still pretend it is `configure' which instantiates (i.e., don't
13404 # use $as_me), people would be surprised to read:
13405 # /* config.h. Generated automatically by config.status. */
13406 configure_input
="Generated automatically from `echo $ac_file_in |
13407 sed 's,.*/,,'` by configure."
13409 # First look for the input files in the build tree, otherwise in the
13411 ac_file_inputs
=`IFS=:
13412 for f in $ac_file_in; do
13414 -) echo $tmp/stdin ;;
13416 # Absolute (can't be DOS-style, as IFS=:)
13417 test -f "$f" || { { echo "$as_me:13417: error: cannot find input file: $f" >&5
13418 echo "$as_me: error: cannot find input file: $f" >&2;}
13419 { (exit 1); exit 1; }; }
13422 if test -f "$f"; then
13425 elif test -f "$srcdir/$f"; then
13430 { { echo "$as_me:13430: error: cannot find input file: $f" >&5
13431 echo "$as_me: error: cannot find input file: $f" >&2;}
13432 { (exit 1); exit 1; }; }
13435 done` ||
{ (exit 1); exit 1; }
13437 cat >>$CONFIG_STATUS <<EOF
13441 cat >>$CONFIG_STATUS <<\EOF
13443 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13444 s
,@configure_input@
,$configure_input,;t t
13445 s
,@srcdir@
,$ac_srcdir,;t t
13446 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13447 s
,@INSTALL@
,$ac_INSTALL,;t t
13448 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13450 if test x"$ac_file" != x-; then
13451 mv $tmp/out $ac_file
13459 cat >>$CONFIG_STATUS <<\EOF
13462 # CONFIG_HEADER section.
13465 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13466 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13468 # ac_d sets the value in "#define NAME VALUE" lines.
13469 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13470 ac_dB
='[ ].*$,\1#\2'
13473 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13474 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13475 ac_uB
='$,\1#\2define\3'
13479 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13482 - |
*:- |
*:-:* ) # input from stdin
13484 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13485 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13486 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13487 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13488 * ) ac_file_in
=$ac_file.
in ;;
13491 test x
"$ac_file" != x-
&& { echo "$as_me:13491: creating $ac_file" >&5
13492 echo "$as_me: creating $ac_file" >&6;}
13494 # First look for the input files in the build tree, otherwise in the
13496 ac_file_inputs
=`IFS=:
13497 for f in $ac_file_in; do
13499 -) echo $tmp/stdin ;;
13501 # Absolute (can't be DOS-style, as IFS=:)
13502 test -f "$f" || { { echo "$as_me:13502: error: cannot find input file: $f" >&5
13503 echo "$as_me: error: cannot find input file: $f" >&2;}
13504 { (exit 1); exit 1; }; }
13507 if test -f "$f"; then
13510 elif test -f "$srcdir/$f"; then
13515 { { echo "$as_me:13515: error: cannot find input file: $f" >&5
13516 echo "$as_me: error: cannot find input file: $f" >&2;}
13517 { (exit 1); exit 1; }; }
13520 done` ||
{ (exit 1); exit 1; }
13521 # Remove the trailing spaces.
13522 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13526 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13527 # `conftest.undefs', that substitutes the proper values into
13528 # config.h.in to produce config.h. The first handles `#define'
13529 # templates, and the second `#undef' templates.
13530 # And first: Protect against being on the right side of a sed subst in
13531 # config.status. Protect against being in an unquoted here document
13532 # in config.status.
13533 rm -f conftest.defines conftest.undefs
13534 # Using a here document instead of a string reduces the quoting nightmare.
13535 # Putting comments in sed scripts is not portable.
13537 # `end' is used to avoid that the second main sed command (meant for
13538 # 0-ary CPP macros) applies to n-ary macro definitions.
13539 # See the Autoconf documentation for `clear'.
13540 cat >confdef2sed.
sed <<\EOF
13545 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13547 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13550 # If some macros were called several times there might be several times
13551 # the same #defines, which is useless. Nevertheless, we may not want to
13552 # sort them, since we want the *last* AC-DEFINE to be honored.
13553 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13554 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13555 rm -f confdef2sed.sed
13557 # This sed command replaces #undef with comments. This is necessary, for
13558 # example, in the case of _POSIX_SOURCE, which is predefined and required
13559 # on some systems where configure will not decide to define it.
13560 cat >>conftest.undefs <<\EOF
13561 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13564 # Break up conftest.defines because some shells have a limit on the size
13565 # of here documents, and old seds have small limits too (100 cmds).
13566 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13567 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13568 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13569 echo ' :' >>$CONFIG_STATUS
13570 rm -f conftest.tail
13571 while grep . conftest.defines >/dev/null
13573 # Write a limited-size here document to $tmp/defines.sed.
13574 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13575 # Speed up: don't consider the non `#define' lines.
13576 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13577 # Work around the forget-to-reset-the-flag bug.
13578 echo 't clr' >>$CONFIG_STATUS
13579 echo ': clr' >>$CONFIG_STATUS
13580 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13582 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13584 mv $tmp/out $tmp/in
13586 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13587 rm -f conftest.defines
13588 mv conftest.
tail conftest.defines
13590 rm -f conftest.defines
13591 echo ' fi # egrep' >>$CONFIG_STATUS
13592 echo >>$CONFIG_STATUS
13594 # Break up conftest.undefs because some shells have a limit on the size
13595 # of here documents, and old seds have small limits too (100 cmds).
13596 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13597 rm -f conftest.
tail
13598 while grep . conftest.undefs
>/dev
/null
13600 # Write a limited-size here document to $tmp/undefs.sed.
13601 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13602 # Speed up: don't consider the non
`#undef'
13603 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13604 # Work around the forget-to-reset-the-flag bug.
13605 echo 't clr' >>$CONFIG_STATUS
13606 echo ': clr' >>$CONFIG_STATUS
13607 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13609 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13611 mv $tmp/out $tmp/in
13613 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13614 rm -f conftest.undefs
13615 mv conftest.tail conftest.undefs
13617 rm -f conftest.undefs
13619 cat >>$CONFIG_STATUS <<\EOF
13620 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13621 # use $as_me), people would be surprised to read:
13622 # /* config.h. Generated automatically by config.status. */
13623 if test x
"$ac_file" = x-
; then
13624 echo "/* Generated automatically by configure. */" >$tmp/config.h
13626 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13628 cat $tmp/in >>$tmp/config.h
13630 if test x
"$ac_file" != x-
; then
13631 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13632 { echo "$as_me:13632: $ac_file is unchanged" >&5
13633 echo "$as_me: $ac_file is unchanged" >&6;}
13635 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636 X"$ac_file" : 'X\(//\)[^/]' \| \
13637 X"$ac_file" : 'X\(//\)$' \| \
13638 X"$ac_file" : 'X\(/\)' \| \
13639 . : '\(.\)' 2>/dev/null ||
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13643 /^X\(\/\/\)$/{ s//\1/; q; }
13644 /^X\(\/\).*/{ s//\1/; q; }
13646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13647 { case "$ac_dir" in
13648 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13652 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13653 case $as_mkdir_dir in
13654 # Skip DOS drivespec
13655 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13657 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13658 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13665 mv $tmp/config.h
$ac_file
13669 rm -f $tmp/config.h
13673 cat >>$CONFIG_STATUS <<\EOF
13676 # CONFIG_COMMANDS section.
13678 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13679 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13680 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13685 ### Make the necessary directories, if they don't exist.
13686 for dir
in etc lisp
; do
13687 test -d ${dir} || mkdir
${dir}
13690 # Build src/Makefile from ${srcdir}/src/Makefile.c
13691 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13692 # This must be done after src/config.h is built, since we rely on that file.
13694 # Now get this: Some word that is part of the ${srcdir} directory name
13695 # or the ${configuration} value might, just might, happen to be an
13696 # identifier like `sun4' or `i386' or something, and be predefined by
13697 # the C preprocessor to some helpful value like 1, or maybe the empty
13698 # string. Needless to say consequent macro substitutions are less
13699 # than conducive to the makefile finding the correct directory.
13700 undefs
="`echo $top_srcdir $configuration $canonical |
13701 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13702 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13705 echo creating src
/epaths.h
13706 ${MAKE-make} epaths-force
13708 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13709 # `..' to `. .' unless invoked with -traditional
13711 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13712 CPPFLAGS
="$CPPFLAGS -traditional"
13715 echo creating lib-src
/Makefile
13717 rm -f junk.c junk1.c junk2.c
13718 sed -e '/start of cpp stuff/q' \
13719 < Makefile.c
> junk1.c
13720 sed -e '1,/start of cpp stuff/d'\
13721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13722 < Makefile.c
> junk.c
13723 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13725 cat junk1.c junk2.c
> Makefile.new
13726 rm -f junk.c junk1.c junk2.c
13727 chmod 444 Makefile.new
13728 mv -f Makefile.new Makefile
13731 echo creating src
/Makefile
13733 rm -f junk.c junk1.c junk2.c
13734 sed -e '/start of cpp stuff/q' \
13735 < Makefile.c
> junk1.c
13736 sed -e '1,/start of cpp stuff/d'\
13737 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13738 < Makefile.c
> junk.c
13739 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13740 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13741 cat junk1.c junk2.c
> Makefile.new
13742 rm -f junk.c junk1.c junk2.c
13743 chmod 444 Makefile.new
13744 mv -f Makefile.new Makefile
13747 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13748 echo creating src
/.gdbinit
13749 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13752 # This is how we know whether to re-run configure in certain cases.
13753 touch src
/config.stamp
13760 cat >>$CONFIG_STATUS <<\EOF
13762 { (exit 0); exit 0; }
13764 chmod +x
$CONFIG_STATUS
13765 ac_clean_files
=$ac_clean_files_save
13767 # configure is writing to config.log, and then calls config.status.
13768 # config.status does its own redirection, appending to config.log.
13769 # Unfortunately, on DOS this fails, as config.log is still kept open
13770 # by configure, so config.status won't be able to write to it; its
13771 # output is simply discarded. So we exec the FD to /dev/null,
13772 # effectively closing config.log, so it can be properly (re)opened and
13773 # appended to by config.status. When coming back to configure, we
13774 # need to make the FD available again.
13775 if test "$no_create" != yes; then
13778 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13781 # would make configure fail if this is the last instruction.
13782 $ac_cs_success ||
{ (exit 1); exit 1; }