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 --with-x use the X Window System
701 Some influential environment variables:
702 CC C compiler command
703 CFLAGS C compiler flags
704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
705 nonstandard directory <lib dir>
706 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
707 headers in a nonstandard directory <include dir>
710 Use these variables to override the choices made by `configure' or to
help
711 it to
find libraries and programs with nonstandard names
/locations.
716 if test "$ac_init_help" = "recursive"; then
717 # If there are subdirs, report their specific --help.
719 for ac_subdir
in : $ac_subdirs_all; do test "x$ac_subdir" = x
: && continue
721 # A "../" for each directory in /$ac_subdir.
722 ac_dots
=`echo $ac_subdir |
723 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
726 .
) # No --srcdir option. We are building in place.
727 ac_sub_srcdir
=$srcdir ;;
728 [\\/]* | ?
:[\\/]* ) # Absolute path.
729 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
731 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
734 # Check for guested configure; otherwise get Cygnus style configure.
735 if test -f $ac_sub_srcdir/configure.gnu
; then
737 $SHELL $ac_sub_srcdir/configure.gnu
--help=recursive
738 elif test -f $ac_sub_srcdir/configure
; then
740 $SHELL $ac_sub_srcdir/configure
--help=recursive
741 elif test -f $ac_sub_srcdir/configure.ac ||
742 test -f $ac_sub_srcdir/configure.
in; then
746 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
752 test -n "$ac_init_help" && exit 0
753 if $ac_init_version; then
756 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
757 Free Software Foundation
, Inc.
758 This configure
script is free software
; the Free Software Foundation
759 gives unlimited permission to copy
, distribute and modify it.
765 This file contains any messages produced by compilers while
766 running configure, to aid debugging if configure makes a mistake.
768 It was created by $as_me, which was
769 generated by GNU Autoconf 2.52. Invocation command line was
780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
787 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
789 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
790 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
792 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
793 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
794 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
795 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
809 # Keep a trace of the command line.
810 # Strip out --no-create and --no-recursion so they do not pile up.
811 # Also quote any args containing shell meta-characters.
817 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
818 |
--no-cr |
--no-c) ;;
819 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
820 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
821 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
822 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
823 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
825 *) ac_configure_args
="$ac_configure_args$ac_sep$ac_arg"
828 # Get rid of the leading space.
831 # When interrupted or exit'd, cleanup temporary files, and complete
832 # config.log. We remove comments because anyway the quotes in there
833 # would cause problems or look ugly.
835 # Save into config.log some information that might help in debugging.
837 echo "## ----------------- ##" >&5
838 echo "## Cache variables. ##" >&5
839 echo "## ----------------- ##" >&5
841 # The following way of writing the cache mishandles newlines in values,
844 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
847 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
852 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
856 sed "/^$/d" confdefs.h >conftest.log
857 if test -s conftest.log; then
859 echo "## ------------ ##" >&5
860 echo "## confdefs.h. ##" >&5
861 echo "## ------------ ##" >&5
866 test "$ac_signal" != 0 &&
867 echo "$as_me: caught signal $ac_signal" >&5
868 echo "$as_me: exit $exit_status" >&5
869 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
872 for ac_signal
in 1 2 13 15; do
873 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
878 rm -rf conftest
* confdefs.h
879 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
882 # Let the site file select an alternate cache file if it wants to.
883 # Prefer explicitly selected file to automatically selected ones.
884 if test -z "$CONFIG_SITE"; then
885 if test "x$prefix" != xNONE
; then
886 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
888 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
891 for ac_site_file
in $CONFIG_SITE; do
892 if test -r "$ac_site_file"; then
893 { echo "$as_me:893: loading site script $ac_site_file" >&5
894 echo "$as_me: loading site script $ac_site_file" >&6;}
895 cat "$ac_site_file" >&5
900 if test -r "$cache_file"; then
901 # Some versions of bash will fail to source /dev/null (special
902 # files actually), so we avoid doing that.
903 if test -f "$cache_file"; then
904 { echo "$as_me:904: loading cache $cache_file" >&5
905 echo "$as_me: loading cache $cache_file" >&6;}
907 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
912 { echo "$as_me:912: creating cache $cache_file" >&5
913 echo "$as_me: creating cache $cache_file" >&6;}
917 # Check that the precious variables saved in the cache have kept the same
919 ac_cache_corrupted
=false
920 for ac_var
in `(set) 2>&1 |
921 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
922 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
923 eval ac_new_set
=\
$ac_env_${ac_var}_set
924 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
925 eval ac_new_val
="\$ac_env_${ac_var}_value"
926 case $ac_old_set,$ac_new_set in
928 { echo "$as_me:928: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
930 ac_cache_corrupted
=: ;;
932 { echo "$as_me:932: error: \`$ac_var' was not set in the previous run" >&5
933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
934 ac_cache_corrupted
=: ;;
937 if test "x$ac_old_val" != "x$ac_new_val"; then
938 { echo "$as_me:938: error: \`$ac_var' has changed since the previous run:" >&5
939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
940 { echo "$as_me:940: former value: $ac_old_val" >&5
941 echo "$as_me: former value: $ac_old_val" >&2;}
942 { echo "$as_me:942: current value: $ac_new_val" >&5
943 echo "$as_me: current value: $ac_new_val" >&2;}
947 # Pass precious variables to config.status. It doesn't matter if
948 # we pass some twice (in addition to the command line arguments).
949 if test "$ac_new_set" = set; then
951 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
952 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
953 ac_configure_args
="$ac_configure_args '$ac_arg'"
955 *) ac_configure_args
="$ac_configure_args $ac_var=$ac_new_val"
960 if $ac_cache_corrupted; then
961 { echo "$as_me:961: error: changes in the environment can compromise the build" >&5
962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
963 { { echo "$as_me:963: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
965 { (exit 1); exit 1; }; }
969 ac_cpp
='$CPP $CPPFLAGS'
970 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
971 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
972 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
974 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
975 *c
*,-n*) ECHO_N
= ECHO_C
='
977 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
978 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
980 echo "#! $SHELL" >conftest.sh
981 echo "exit 0" >>conftest.sh
983 if { (echo "$as_me:983: PATH=\".;.\"; conftest.sh") >&5
984 (PATH
=".;."; conftest.sh
) 2>&5
986 echo "$as_me:986: \$? = $ac_status" >&5
987 (exit $ac_status); }; then
988 ac_path_separator
=';'
992 PATH_SEPARATOR
="$ac_path_separator"
995 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
997 test "$program_prefix" != NONE
&&
998 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
999 # Use a double $ so make ignores it.
1000 test "$program_suffix" != NONE
&&
1001 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1002 # Double any \ or $. echo might interpret backslashes.
1003 # By default was `s,x,x', remove it if useless.
1004 cat <<\_ACEOF
>conftest.
sed
1005 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1007 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1010 lispdir
='${datadir}/emacs/${version}/lisp'
1011 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1012 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1013 lisppath
='${locallisppath}:${lispdir}'
1014 etcdir
='${datadir}/emacs/${version}/etc'
1015 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1016 docdir
='${datadir}/emacs/${version}/etc'
1018 # Check whether --with-gcc or --without-gcc was given.
1019 if test "${with_gcc+set}" = set; then
1024 # Check whether --with-pop or --without-pop was given.
1025 if test "${with_pop+set}" = set; then
1027 if test "$withval" = yes; then
1028 cat >>confdefs.h
<<\EOF
1029 #define MAIL_USE_POP 1
1035 cat >>confdefs.h
<<\EOF
1036 #define MAIL_USE_POP 1
1041 # Check whether --with-kerberos or --without-kerberos was given.
1042 if test "${with_kerberos+set}" = set; then
1043 withval
="$with_kerberos"
1044 cat >>confdefs.h
<<\EOF
1050 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1051 if test "${with_kerberos5+set}" = set; then
1052 withval
="$with_kerberos5"
1053 if test "${with_kerberos5+set}" = set; then
1054 if test "${with_kerberos+set}" != set; then
1056 cat >>confdefs.h
<<\EOF
1062 cat >>confdefs.h
<<\EOF
1068 # Check whether --with-hesiod or --without-hesiod was given.
1069 if test "${with_hesiod+set}" = set; then
1070 withval
="$with_hesiod"
1071 cat >>confdefs.h
<<\EOF
1077 # Check whether --with-sound or --without-sound was given.
1078 if test "${with_sound+set}" = set; then
1079 withval
="$with_sound"
1083 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1084 if test "${with_x_toolkit+set}" = set; then
1085 withval
="$with_x_toolkit"
1086 case "${withval}" in
1087 y | ye |
yes ) val
=athena
;;
1089 l | lu | luc | luci | lucid
) val
=lucid
;;
1090 a |
at | ath | athe | athen | athena
) val
=athena
;;
1091 m | mo | mot | moti | motif
) val
=motif
;;
1093 { { echo "$as_me:1093: error: \`--with-x-toolkit=$withval' is invalid\;
1094 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1095 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1096 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1097 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1098 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1099 { (exit 1); exit 1; }; }
1106 # Check whether --with-xpm or --without-xpm was given.
1107 if test "${with_xpm+set}" = set; then
1112 # Check whether --with-jpeg or --without-jpeg was given.
1113 if test "${with_jpeg+set}" = set; then
1114 withval
="$with_jpeg"
1118 # Check whether --with-tiff or --without-tiff was given.
1119 if test "${with_tiff+set}" = set; then
1120 withval
="$with_tiff"
1124 # Check whether --with-gif or --without-gif was given.
1125 if test "${with_gif+set}" = set; then
1130 # Check whether --with-png or --without-png was given.
1131 if test "${with_png+set}" = set; then
1136 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1137 if test "${with_toolkit_scroll_bars+set}" = set; then
1138 withval
="$with_toolkit_scroll_bars"
1142 # Check whether --with-xim or --without-xim was given.
1143 if test "${with_xim+set}" = set; then
1148 #### Make srcdir absolute, if it isn't already. It's important to
1149 #### avoid running the path through pwd unnecessarily, since pwd can
1150 #### give you automounter prefixes, which can go away. We do all this
1151 #### so Emacs can find its files when run uninstalled.
1152 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1157 ## We may be able to use the $PWD environment variable to make this
1158 ## absolute. But sometimes PWD is inaccurate.
1159 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1160 ## but that tested only for a well-formed and valid PWD,
1161 ## it did not object when PWD was well-formed and valid but just wrong.
1162 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1166 srcdir
="`(cd ${srcdir}; pwd)`"
1169 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1172 #### Check if the source directory already has a configured system in it.
1173 if test `pwd` != `(cd ${srcdir} && pwd)` \
1174 && test -f "${srcdir}/src/config.h" ; then
1175 { echo "$as_me:1175: WARNING: The directory tree \`${srcdir}' is being used
1176 as a build directory right now; it has been configured in its own
1177 right. To configure in another directory as well, you MUST
1178 use GNU make. If you do not have GNU make, then you must
1179 now do \`make distclean' in ${srcdir},
1180 and then run $0 again." >&5
1181 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1182 as a build directory right now; it has been configured in its own
1183 right. To configure in another directory as well, you MUST
1184 use GNU make. If you do not have GNU make, then you must
1185 now do \`make distclean' in ${srcdir},
1186 and then run $0 again." >&2;}
1188 extrasub
='/^VPATH[ ]*=/c\
1189 vpath %.c $(srcdir)\
1190 vpath %.h $(srcdir)\
1191 vpath %.y $(srcdir)\
1192 vpath %.l $(srcdir)\
1193 vpath %.s $(srcdir)\
1194 vpath %.in $(srcdir)\
1195 vpath %.texi $(srcdir)'
1198 #### Given the configuration name, set machfile and opsysfile to the
1199 #### names of the m/*.h and s/*.h files we should use.
1201 ### Canonicalize the configuration name.
1204 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1205 if test -f $ac_dir/install-sh
; then
1207 ac_install_sh
="$ac_aux_dir/install-sh -c"
1209 elif test -f $ac_dir/install.sh
; then
1211 ac_install_sh
="$ac_aux_dir/install.sh -c"
1213 elif test -f $ac_dir/shtool
; then
1215 ac_install_sh
="$ac_aux_dir/shtool install -c"
1219 if test -z "$ac_aux_dir"; then
1220 { { echo "$as_me:1220: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1221 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1222 { (exit 1); exit 1; }; }
1224 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1225 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1226 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1228 # Make sure we can run config.sub.
1229 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1230 { { echo "$as_me:1230: error: cannot run $ac_config_sub" >&5
1231 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1232 { (exit 1); exit 1; }; }
1234 echo "$as_me:1234: checking build system type" >&5
1235 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1236 if test "${ac_cv_build+set}" = set; then
1237 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 ac_cv_build_alias
=$build_alias
1240 test -z "$ac_cv_build_alias" &&
1241 ac_cv_build_alias
=`$ac_config_guess`
1242 test -z "$ac_cv_build_alias" &&
1243 { { echo "$as_me:1243: error: cannot guess build type; you must specify one" >&5
1244 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1245 { (exit 1); exit 1; }; }
1246 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1247 { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1248 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1249 { (exit 1); exit 1; }; }
1252 echo "$as_me:1252: result: $ac_cv_build" >&5
1253 echo "${ECHO_T}$ac_cv_build" >&6
1255 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1256 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1257 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1259 test -z "$build_alias" &&
1260 build_alias
=$ac_cv_build
1262 echo "$as_me:1262: checking host system type" >&5
1263 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1264 if test "${ac_cv_host+set}" = set; then
1265 echo $ECHO_N "(cached) $ECHO_C" >&6
1267 ac_cv_host_alias
=$host_alias
1268 test -z "$ac_cv_host_alias" &&
1269 ac_cv_host_alias
=$ac_cv_build_alias
1270 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1271 { { echo "$as_me:1271: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1272 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1273 { (exit 1); exit 1; }; }
1276 echo "$as_me:1276: result: $ac_cv_host" >&5
1277 echo "${ECHO_T}$ac_cv_host" >&6
1279 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1280 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1281 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1283 test -z "$host_alias" &&
1284 host_alias
=$ac_cv_host
1287 configuration
=${host_alias-$host}
1289 ### If you add support for a new configuration, add code to this
1290 ### switch statement to recognize your configuration name and select
1291 ### the appropriate operating system and machine description files.
1293 ### You would hope that you could choose an m/*.h file pretty much
1294 ### based on the machine portion of the configuration name, and an s-
1295 ### file based on the operating system portion. However, it turns out
1296 ### that each m/*.h file is pretty manufacturer-specific - for
1297 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1298 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1299 ### machines. So we basically have to have a special case for each
1300 ### configuration name.
1302 ### As far as handling version numbers on operating systems is
1303 ### concerned, make sure things will fail in a fixable way. If
1304 ### /etc/MACHINES doesn't say anything about version numbers, be
1305 ### prepared to handle anything reasonably. If version numbers
1306 ### matter, be sure /etc/MACHINES says something about it.
1308 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1309 ### "System V Release 4"; he writes, "The old convention encouraged
1310 ### confusion between `system' and `release' levels'."
1312 machine
='' opsys
='' unported
=no
1313 case "${canonical}" in
1318 case "${canonical}" in
1319 alpha
*-*-freebsd*) machine
=alpha
;;
1320 i
[3456]86-*-freebsd*) machine
=intel386
;;
1327 case "${canonical}" in
1328 alpha
*-*-netbsd*) machine
=alpha
;;
1329 i
[3456]86-*-netbsd*) machine
=intel386
;;
1331 # This is somewhat bogus.
1332 machine
=hp9000s300
;;
1333 powerpc-apple-netbsd
*) machine
=macppc
;;
1334 mips-
*-netbsd*) machine
=pmax
;;
1335 mipsel-
*-netbsd*) machine
=pmax
;;
1336 ns32k-
*-netbsd*) machine
=ns32000
;;
1337 powerpc-
*-netbsd*) machine
=macppc
;;
1338 sparc
*-*-netbsd*) machine
=sparc
;;
1339 vax-
*-netbsd*) machine
=vax
;;
1340 arm-
*-netbsd*) machine
=arm
;;
1347 case "${canonical}" in
1348 alpha
*-*-openbsd*) machine
=alpha
;;
1349 i386-
*-openbsd*) machine
=intel386
;;
1350 m68k-
*-openbsd*) machine
=hp9000s300
;;
1351 mipsel-
*-openbsd*) machine
=pmax
;;
1352 ns32k-
*-openbsd*) machine
=ns32000
;;
1353 sparc-
*-openbsd*) machine
=sparc
;;
1354 vax-
*-openbsd*) machine
=vax
;;
1359 arm-acorn-riscix1.1
* )
1360 machine
=acorn opsys
=riscix1-1
1362 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1363 ## This name is riscix12 instead of riscix1.2
1364 ## to avoid a file name conflict on MSDOS.
1365 machine
=acorn opsys
=riscix12
1371 case "${canonical}" in
1372 i
[345]86-*-bsdi*) machine
=intel386
;;
1373 sparc-
*-bsdi*) machine
=sparc
;;
1374 powerpc-
*-bsdi*) machine
=macppc
;;
1376 case "${canonical}" in
1377 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1378 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1379 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1380 *-*-bsdi3* ) opsys
=bsdos3
;;
1381 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1386 ## Strictly speaking, we need the version of the alliant operating
1387 ## system to choose the right machine file, but currently the
1388 ## configuration name doesn't tell us enough to choose the right
1389 ## one; we need to give alliants their own operating system name to
1390 ## do this right. When someone cares, they can help us.
1392 machine
=alliant4 opsys
=bsd4-2
1395 machine
=alliant-2800 opsys
=bsd4-3
1398 ## Alpha (DEC) machines.
1400 machine
=alpha opsys
=osf1
1401 # This is needed to find X11R6.1 libraries for certain tests.
1402 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1403 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1404 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1405 # due to non-traditional preprocessing with the current compiler
1406 # defaults. OSF 4 can also have that compiler version, and there
1407 # seems always to have been a usable /usr/bin/cpp.
1408 NON_GNU_CPP
=/usr
/bin
/cpp
1409 case "${canonical}" in
1410 alpha
*-dec-osf[5-9]*)
1415 alpha
*-*-linux-gnu* )
1416 machine
=alpha opsys
=gnu-linux
1420 machine
=arm opsys
=gnu-linux
1425 machine
=macppc opsys
=gnu-linux
1430 machine
=altos opsys
=usg5-2
1435 machine
=amdahl opsys
=usg5-2-2
1438 ## Apollo, Domain/OS
1440 machine
=apollo opsys
=bsd4-3
1443 ## AT&T 3b2, 3b5, 3b15, 3b20
1445 machine
=att3b opsys
=usg5-2-2
1448 ## AT&T 3b1 - The Mighty Unix PC!
1450 machine
=7300 opsys
=usg5-2-2
1455 machine
=ibmrs6000 opsys
=aix3-2
1460 machine
=dpx2 opsys
=usg5-3
1465 machine
=sps7 opsys
=usg5-2
1468 ## CCI 5/32, 6/32 -- see "Tahoe".
1471 ## I don't know what configuration name to use for this; config.sub
1472 ## doesn't seem to know anything about it. Hey, Celerity users, get
1473 ## in touch with us!
1474 celerity-celerity-bsd
* )
1475 machine
=celerity opsys
=bsd4-2
1479 ## What operating systems does this chip run that Emacs has been
1483 ## We'll use the catch-all code at the bottom to guess the
1484 ## operating system.
1488 mips-compaq-nonstopux
* )
1489 machine
=nonstopux opsys
=nonstopux
1493 *-convex-bsd* |
*-convex-convexos* )
1494 machine
=convex opsys
=bsd4-3
1495 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1496 NON_GNU_CPP
="cc -E -P"
1500 i
[3456]86-cubix-sysv* )
1501 machine
=intel386 opsys
=usg5-3
1505 cydra
*-cydrome-sysv* )
1506 machine
=cydra5 opsys
=usg5-3
1509 ## Data General AViiON Machines
1510 ## DG changed naming conventions with the release of 5.4.4.10, they
1511 ## dropped the initial 5.4 but left the intervening R. Because of the
1512 ## R this shouldn't conflict with older versions of the OS (which I
1513 ## think were named like dgux4.*). In addition, DG new AViiONs series
1514 ## uses either Motorola M88k or Intel Pentium CPUs.
1515 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1516 machine
=aviion opsys
=dgux4
1518 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1519 ## This name is dgux5-4-3 instead of dgux5-4r3
1520 ## to avoid a file name conflict on MSDOS.
1521 machine
=aviion opsys
=dgux5-4-3
1523 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1524 machine
=aviion opsys
=dgux5-4r2
1527 machine
=aviion opsys
=dgux
1530 ## Data General AViiON Intel (x86) Machines
1531 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1532 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1533 i
[345]86-dg-dguxR4* )
1534 machine
=aviion-intel opsys
=dgux4
1538 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1539 machine
=pmax opsys
=bsd4-2
1541 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1542 machine
=pmax opsys
=bsd4-3
1545 machine
=pmax opsys
=ultrix4-3
1548 machine
=pmax opsys
=osf1
1550 mips-dec-mach_bsd4.3
* )
1551 machine
=pmax opsys
=mach-bsd4-3
1554 ## Motorola Delta machines
1555 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1556 machine
=delta opsys
=usg5-3
1557 if test -z "`type gnucc | grep 'not found'`"
1559 if test -s /etc
/167config
1560 then CC
="gnucc -m68040"
1561 else CC
="gnucc -m68881"
1564 if test -z "`type gcc | grep 'not found'`"
1570 m88k-motorola-sysv4
* )
1571 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1572 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1573 # I hope there are not other 4.0 versions for this machine
1574 # which really need usg5-4 instead.
1575 machine
=delta88k opsys
=usg5-4-2
1577 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1578 machine
=delta88k opsys
=usg5-3
1583 machine
=dual opsys
=usg5-2
1585 m68
*-dual-uniplus* )
1586 machine
=dual opsys
=unipl5-2
1591 machine
=elxsi opsys
=usg5-2
1596 machine
=ns16000 opsys
=umax
1599 ## The GEC 63 - apparently, this port isn't really finished yet.
1600 # I'm sure we finished off the last of the machines, though. -- fx
1602 ## Gould Power Node and NP1
1604 machine
=gould opsys
=bsd4-2
1607 machine
=gould opsys
=bsd4-3
1610 machine
=gould-np1 opsys
=bsd4-3
1613 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1614 ## as far as Emacs is concerned).
1616 # Build needs to be different on 7.0 and later releases
1617 case "`uname -r`" in
1618 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1619 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1621 NON_GNU_CPP
="/lib/cpp"
1623 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1625 machine
=nh3000 opsys
=cxux
1627 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1628 powerpc-harris-powerunix
)
1629 machine
=nh6000 opsys
=powerunix
1630 NON_GNU_CPP
="cc -Xo -E -P"
1632 ## SR2001/SR2201 running HI-UX/MPP
1633 hppa1.1
-hitachi-hiuxmpp* )
1634 machine
=sr2k opsys
=hiuxmpp
1636 hppa1.1
-hitachi-hiuxwe2* )
1637 machine
=sr2k opsys
=hiuxwe2
1640 xps
*-honeywell-sysv* )
1641 machine
=xps100 opsys
=usg5-2
1644 ## HP 9000 series 200 or 300
1646 machine
=hp9000s300 opsys
=bsd4-3
1648 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1650 case "`uname -r`" in
1651 ## Someone's system reports A.B8.05 for this.
1652 ## I wonder what other possibilities there are.
1653 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1654 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1655 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1656 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1657 *) machine
=hp9000s300 opsys
=hpux
;;
1661 ## HP 9000 series 700 and 800, running HP/UX
1663 machine
=hp800 opsys
=hpux
1666 machine
=hp800 opsys
=hpux8
1668 hppa
*-hp-hpux9shr* )
1669 machine
=hp800 opsys
=hpux9shr
1672 machine
=hp800 opsys
=hpux9
1675 machine
=hp800 opsys
=hpux10
1677 hppa
*-hp-hpux1[1-9]* )
1678 machine
=hp800 opsys
=hpux11
1681 hppa
*-*-linux-gnu* )
1682 machine
=hp800 opsys
=gnu-linux
1685 ## HP 9000 series 700 and 800, running HP/UX
1687 ## Cross-compilation? Nah!
1688 case "`uname -r`" in
1689 ## Someone's system reports A.B8.05 for this.
1690 ## I wonder what other possibilities there are.
1691 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1692 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1693 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1694 *) machine
=hp800 opsys
=hpux10
;;
1698 machine
=hp800 opsys
=nextstep
1703 machine
=orion opsys
=bsd4-2
1705 clipper-orion-bsd
* )
1706 machine
=orion105 opsys
=bsd4-2
1710 i
[3456]86-ibm-aix1.1
* )
1711 machine
=ibmps2-aix opsys
=usg5-2-2
1713 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1714 machine
=ibmps2-aix opsys
=usg5-3
1717 machine
=ibm370aix opsys
=usg5-3
1720 machine
=ibms390 opsys
=gnu-linux
1722 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1723 machine
=ibmrs6000 opsys
=aix3-1
1725 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1726 machine
=ibmrs6000 opsys
=aix3-2-5
1728 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1729 machine
=ibmrs6000 opsys
=aix4-1
1731 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1732 machine
=ibmrs6000 opsys
=aix4-2
1734 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1735 machine
=ibmrs6000 opsys
=aix4-2
1737 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1738 machine
=ibmrs6000 opsys
=aix4
1740 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1741 machine
=ibmrs6000 opsys
=aix4-1
1743 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1744 machine
=ibmrs6000 opsys
=aix3-2
1747 machine
=ibmrt opsys
=bsd4-3
1750 machine
=ibmrt opsys
=bsd4-2
1753 machine
=ibmrt opsys
=bsd4-3
1756 machine
=ibmrt opsys
=bsd4-2
1759 machine
=ibmrt opsys
=bsd4-3
1762 machine
=ibmrt opsys
=bsd4-3
1765 machine
=ibmrt-aix opsys
=usg5-2-2
1768 ## Integrated Solutions `Optimum V'
1770 machine
=isi-ov opsys
=bsd4-2
1773 machine
=isi-ov opsys
=bsd4-3
1776 ## Intel 386 machines where we do care about the manufacturer
1777 i
[3456]86-intsys-sysv* )
1778 machine
=is386 opsys
=usg5-2-2
1782 i
[3456]86-prime-sysv* )
1783 machine
=i386 opsys
=usg5-3
1786 ## Sequent Symmetry running Dynix
1787 i
[3456]86-sequent-bsd* )
1788 machine
=symmetry opsys
=bsd4-3
1791 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1792 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1793 machine
=sequent-ptx opsys
=ptx4
1794 NON_GNU_CPP
=/lib
/cpp
1797 ## Sequent Symmetry running DYNIX/ptx
1798 ## Use the old cpp rather than the newer ANSI one.
1799 i
[3456]86-sequent-ptx* )
1800 machine
=sequent-ptx opsys
=ptx
1801 NON_GNU_CPP
="/lib/cpp"
1804 ## ncr machine running svr4.3.
1805 i
[3456]86-ncr-sysv4.3
)
1806 machine
=ncr386 opsys
=usg5-4-3
1809 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1810 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1811 i
[3456]86-ncr-sysv* )
1812 machine
=ncr386 opsys
=usg5-4-2
1815 ## Intel Paragon OSF/1
1817 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1822 machine
=i860 opsys
=usg5-4
1823 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1824 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1827 ## Macintosh PowerPC
1828 powerpc
*-*-linux-gnu* )
1829 machine
=macppc opsys
=gnu-linux
1832 ## Masscomp machines
1833 m68
*-masscomp-rtu* )
1834 machine
=masscomp opsys
=rtu
1837 ## Megatest machines
1838 m68
*-megatest-bsd* )
1839 machine
=mega68 opsys
=bsd4-2
1842 ## Workstations sold by MIPS
1843 ## This is not necessarily all workstations using the MIPS processor -
1844 ## Irises are produced by SGI, and DECstations by DEC.
1846 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1847 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1848 ## it gives for choosing between the alternatives seems to be "Use
1849 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1850 ## the BSD world." I'll assume that these are instructions for
1851 ## handling two odd situations, and that every other situation
1852 ## should use mips.h and usg5-2-2, they being listed first.
1855 ## Fall through to the general code at the bottom to decide on the OS.
1857 mips-mips-riscos4
* )
1858 machine
=mips4 opsys
=bsd4-3
1859 NON_GNU_CC
="cc -systype bsd43"
1860 NON_GNU_CPP
="cc -systype bsd43 -E"
1862 mips-mips-riscos5
* )
1863 machine
=mips4 opsys
=riscos5
1864 NON_GNU_CC
="cc -systype bsd43"
1865 NON_GNU_CPP
="cc -systype bsd43 -E"
1868 machine
=mips opsys
=bsd4-3
1871 machine
=mips opsys
=usg5-2-2
1875 m68
*-next-* | m68k-
*-nextstep* )
1876 machine
=m68k opsys
=nextstep
1879 ## The complete machine from National Semiconductor
1881 machine
=ns32000 opsys
=usg5-2
1885 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1886 machine
=tower32 opsys
=usg5-2-2
1888 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1889 machine
=tower32v3 opsys
=usg5-3
1894 machine
=ews4800 opsys
=ux4800
1897 ## Nixdorf Targon 31
1898 m68
*-nixdorf-sysv* )
1899 machine
=targon31 opsys
=usg5-2-2
1904 machine
=nu opsys
=usg5-2
1909 machine
=plexus opsys
=usg5-2
1912 ## PowerPC reference platform
1913 powerpcle-
*-solaris2* )
1919 ## I don't really have any idea what sort of processor the Pyramid has,
1920 ## so I'm assuming it is its own architecture.
1921 pyramid-pyramid-bsd
* )
1922 machine
=pyramid opsys
=bsd4-2
1926 ns32k-sequent-bsd4.2
* )
1927 machine
=sequent opsys
=bsd4-2
1929 ns32k-sequent-bsd4.3
* )
1930 machine
=sequent opsys
=bsd4-3
1934 mips-siemens-sysv
* | mips-sni-sysv
*)
1935 machine
=mips-siemens opsys
=usg5-4
1936 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1937 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1940 ## Silicon Graphics machines
1941 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1943 machine
=irist opsys
=iris3-5
1945 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1946 machine
=irist opsys
=iris3-6
1950 machine
=iris4d opsys
=irix3-3
1953 machine
=iris4d opsys
=irix4-0
1956 machine
=iris4d opsys
=irix6-5
1957 # Without defining _LANGUAGE_C, things get masked out in the headers
1958 # so that, for instance, grepping for `free' in stdlib.h fails and
1959 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1960 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1961 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1964 machine
=iris4d opsys
=irix6-0
1965 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1966 # but presumably it does no harm.
1967 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1968 # -32 probably isn't necessary in later v.6s -- anyone know which?
1969 NON_GCC_TEST_OPTIONS
=-32
1971 mips-sgi-irix5.
[01]* )
1972 machine
=iris4d opsys
=irix5-0
1974 mips-sgi-irix5
* | mips-sgi-irix
* )
1975 machine
=iris4d opsys
=irix5-2
1980 machine
=news opsys
=bsd4-2
1983 machine
=news opsys
=bsd4-3
1985 m68
*-sony-newsos3* | m68
*-sony-news3*)
1986 machine
=news opsys
=bsd4-3
1988 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1989 machine
=news-risc opsys
=bsd4-3
1991 mips-sony-newsos6
* )
1992 machine
=news-r6 opsys
=newsos6
1995 machine
=news-risc opsys
=newsos5
2000 machine
=stride opsys
=usg5-2
2004 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2005 machine
=sparc opsys
=gnu-linux
2008 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2009 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2010 | rs6000-
*-solaris2*)
2011 case "${canonical}" in
2012 m68
*-sunos1* ) machine
=sun1
;;
2013 m68
*-sunos2* ) machine
=sun2
;;
2014 m68
* ) machine
=sun3
;;
2015 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2016 i
[3456]86-*-* ) machine
=intel386
;;
2017 powerpcle
* ) machine
=powerpcle
;;
2018 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2019 sparc
* ) machine
=sparc
;;
2022 case "${canonical}" in
2023 ## The Sun386 didn't get past 4.0.
2024 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2025 *-sunos4.0
* ) opsys
=sunos4-0
;;
2026 *-sunos4.1.
[3-9]*noshare
)
2027 ## This name is sunos413 instead of sunos4-1-3
2028 ## to avoid a file name conflict on MSDOS.
2030 NON_GNU_CPP
=/usr
/lib
/cpp
2031 NON_GCC_TEST_OPTIONS
=-Bstatic
2032 GCC_TEST_OPTIONS
=-static
2034 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2036 NON_GNU_CPP
=/usr
/lib
/cpp
2038 *-sunos4* |
*-sunos )
2040 NON_GCC_TEST_OPTIONS
=-Bstatic
2041 GCC_TEST_OPTIONS
=-static
2043 *-sunos5.3
* |
*-solaris2.3
* )
2045 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2047 *-sunos5.4
* |
*-solaris2.4
* )
2049 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2052 *-sunos5.5
* |
*-solaris2.5
* )
2054 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2057 *-sunos5* |
*-solaris* )
2059 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2063 ## Watch out for a compiler that we know will not work.
2064 case "${canonical}" in
2065 *-solaris* |
*-sunos5* )
2066 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2067 ## /usr/ucb/cc doesn't work;
2068 ## we should find some other compiler that does work.
2076 machine
=sparc opsys
=nextstep
2080 m68
*-tadpole-sysv* )
2081 machine
=tad68k opsys
=usg5-3
2085 tahoe-tahoe-bsd4.2
* )
2086 machine
=tahoe opsys
=bsd4-2
2088 tahoe-tahoe-bsd4.3
* )
2089 machine
=tahoe opsys
=bsd4-3
2092 ## Tandem Integrity S2
2094 machine
=tandem-s2 opsys
=usg5-3
2098 m88k-tektronix-sysv3
* )
2099 machine
=tekxd88 opsys
=usg5-3
2102 ## Tektronix 16000 box (6130?)
2103 ns16k-tektronix-bsd
* )
2104 machine
=ns16000 opsys
=bsd4-2
2107 ## src/m/tek4300.h hints that this is a m68k machine.
2108 m68
*-tektronix-bsd* )
2109 machine
=tek4300 opsys
=bsd4-3
2113 ## We seem to have lost the machine-description file titan.h!
2115 machine
=titan opsys
=usg5-3
2118 ## Ustation E30 (SS5E)
2119 m68
*-unisys-uniplus* )
2120 machine
=ustation opsystem
=unipl5-2
2126 case "${canonical}" in
2127 *-bsd4.1
* ) opsys
=bsd4-1
;;
2128 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2129 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2130 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2131 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2132 *-vms* ) opsys
=vms
;;
2138 ns16k-whitechapel-
* )
2140 ## We don't know what sort of OS runs on these; we'll let the
2141 ## operating system guessing code below try.
2146 machine
=wicat opsys
=usg5-2
2151 machine
=ia64 opsys
=gnu-linux
2154 ## Intel 386 machines where we don't care about the manufacturer
2157 case "${canonical}" in
2158 *-lynxos* ) opsys
=lynxos
;;
2159 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2160 *-isc2.2
* ) opsys
=isc2-2
;;
2161 *-isc4.0
* ) opsys
=isc4-0
;;
2162 *-isc4.
* ) opsys
=isc4-1
2163 GCC_TEST_OPTIONS
=-posix
2164 NON_GCC_TEST_OPTIONS
=-Xp
2166 *-isc* ) opsys
=isc3-0
;;
2167 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2168 *-esix* ) opsys
=esix
;;
2169 *-xenix* ) opsys
=xenix
;;
2170 *-linux-gnu* ) opsys
=gnu-linux
;;
2171 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2172 *-sco3.2v5
* ) opsys
=sco5
2173 NON_GNU_CPP
=/lib
/cpp
2174 # Prevent -belf from being passed to $CPP.
2175 # /lib/cpp does not accept it.
2176 OVERRIDE_CPPFLAGS
=" "
2178 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2179 *-386bsd* ) opsys
=386bsd
;;
2180 *-nextstep* ) opsys
=nextstep
;;
2181 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2185 ## m68k Linux-based GNU system
2187 machine
=m68k opsys
=gnu-linux
2190 ## Mips Linux-based GNU system
2192 machine
=mips opsys
=gnu-linux
2196 sparc-fujitsu-sysv4
* )
2197 machine
=sparc opsys
=uxpds
2198 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2203 f301-fujitsu-uxpv4.1
)
2204 machine
=f301 opsys
=uxpv
2212 ### If the code above didn't choose an operating system, just choose
2213 ### an operating system based on the configuration name. You really
2214 ### only want to use this when you have no idea what the right
2215 ### operating system is; if you know what operating systems a machine
2216 ### runs, it's cleaner to make it explicit in the case statement
2218 if test x
"${opsys}" = x
; then
2219 case "${canonical}" in
2220 *-gnu* ) opsys
=gnu
;;
2221 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2222 *-bsd4.2
) opsys
=bsd4-2
;;
2223 *-bsd4.3
) opsys
=bsd4-3
;;
2224 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2225 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2226 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2227 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2228 *-sysv4.2uw
* ) opsys
=unixware
;;
2229 *-sysv4.1
* |
*-sysvr4.1
* )
2230 NON_GNU_CPP
=/usr
/lib
/cpp
2232 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2233 if [ x
$NON_GNU_CPP = x
]; then
2234 if [ -f /usr
/ccs
/lib
/cpp
]; then
2235 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2237 NON_GNU_CPP
=/lib
/cpp
2241 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2248 if test $unported = yes; then
2249 { { echo "$as_me:2249: error: Emacs hasn't been ported to \`${canonical}' systems.
2250 Check \`etc/MACHINES' for recognized configuration names." >&5
2251 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2252 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2253 { (exit 1); exit 1; }; }
2256 machfile
="m/${machine}.h"
2257 opsysfile
="s/${opsys}.h"
2259 #### Choose a compiler.
2260 test -n "$CC" && cc_specified
=yes
2262 # Save the value of CFLAGS that the user specified.
2263 SPECIFIED_CFLAGS
="$CFLAGS"
2266 "yes" ) CC
="gcc" GCC
=yes ;;
2267 "no" ) : ${CC=cc} ;;
2271 ac_cpp
='$CPP $CPPFLAGS'
2272 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2278 echo "$as_me:2278: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC
="$CC" # Let the user override the test.
2286 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2288 for ac_dir
in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir
=.
2291 $as_executable_p "$ac_dir/$ac_word" ||
continue
2292 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2293 echo "$as_me:2293: found $ac_dir/$ac_word" >&5
2300 if test -n "$CC"; then
2301 echo "$as_me:2301: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2304 echo "$as_me:2304: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2309 if test -z "$ac_cv_prog_CC"; then
2311 # Extract the first word of "gcc", so it can be a program name with args.
2312 set dummy gcc
; ac_word
=$2
2313 echo "$as_me:2313: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2321 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2323 for ac_dir
in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir
=.
2326 $as_executable_p "$ac_dir/$ac_word" ||
continue
2327 ac_cv_prog_ac_ct_CC
="gcc"
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2334 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 echo "$as_me:2336: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2339 echo "$as_me:2339: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2348 if test -z "$CC"; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2351 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2352 echo "$as_me:2352: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354 if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC
="$CC" # Let the user override the test.
2360 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2362 for ac_dir
in $ac_dummy; do
2364 test -z "$ac_dir" && ac_dir
=.
2365 $as_executable_p "$ac_dir/$ac_word" ||
continue
2366 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2367 echo "$as_me:2367: found $ac_dir/$ac_word" >&5
2374 if test -n "$CC"; then
2375 echo "$as_me:2375: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6
2378 echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2383 if test -z "$ac_cv_prog_CC"; then
2385 # Extract the first word of "cc", so it can be a program name with args.
2386 set dummy cc
; ac_word
=$2
2387 echo "$as_me:2387: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2395 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2397 for ac_dir
in $ac_dummy; do
2399 test -z "$ac_dir" && ac_dir
=.
2400 $as_executable_p "$ac_dir/$ac_word" ||
continue
2401 ac_cv_prog_ac_ct_CC
="cc"
2402 echo "$as_me:2402: found $ac_dir/$ac_word" >&5
2408 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 echo "$as_me:2410: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6
2413 echo "$as_me:2413: result: no" >&5
2414 echo "${ECHO_T}no" >&6
2423 if test -z "$CC"; then
2424 # Extract the first word of "cc", so it can be a program name with args.
2425 set dummy cc
; ac_word
=$2
2426 echo "$as_me:2426: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_CC+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$CC"; then
2432 ac_cv_prog_CC
="$CC" # Let the user override the test.
2435 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2437 for ac_dir
in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir
=.
2440 $as_executable_p "$ac_dir/$ac_word" ||
continue
2441 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2442 ac_prog_rejected
=yes
2446 echo "$as_me:2446: found $ac_dir/$ac_word" >&5
2450 if test $ac_prog_rejected = yes; then
2451 # We found a bogon in the path, so make sure we never use it.
2452 set dummy
$ac_cv_prog_CC
2454 if test $# != 0; then
2455 # We chose a different compiler from the bogus one.
2456 # However, it has the same basename, so the bogon will be chosen
2457 # first if we set CC to just the basename; use the full file name.
2459 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
2467 if test -n "$CC"; then
2468 echo "$as_me:2468: result: $CC" >&5
2469 echo "${ECHO_T}$CC" >&6
2471 echo "$as_me:2471: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2476 if test -z "$CC"; then
2477 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2482 echo "$as_me:2482: checking for $ac_word" >&5
2483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484 if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC
="$CC" # Let the user override the test.
2490 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2492 for ac_dir
in $ac_dummy; do
2494 test -z "$ac_dir" && ac_dir
=.
2495 $as_executable_p "$ac_dir/$ac_word" ||
continue
2496 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2497 echo "$as_me:2497: found $ac_dir/$ac_word" >&5
2504 if test -n "$CC"; then
2505 echo "$as_me:2505: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6
2508 echo "$as_me:2508: result: no" >&5
2509 echo "${ECHO_T}no" >&6
2512 test -n "$CC" && break
2515 if test -z "$CC"; then
2519 # Extract the first word of "$ac_prog", so it can be a program name with args.
2520 set dummy
$ac_prog; ac_word
=$2
2521 echo "$as_me:2521: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2529 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2531 for ac_dir
in $ac_dummy; do
2533 test -z "$ac_dir" && ac_dir
=.
2534 $as_executable_p "$ac_dir/$ac_word" ||
continue
2535 ac_cv_prog_ac_ct_CC
="$ac_prog"
2536 echo "$as_me:2536: found $ac_dir/$ac_word" >&5
2542 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 echo "$as_me:2544: result: $ac_ct_CC" >&5
2545 echo "${ECHO_T}$ac_ct_CC" >&6
2547 echo "$as_me:2547: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2551 test -n "$ac_ct_CC" && break
2559 test -z "$CC" && { { echo "$as_me:2559: error: no acceptable cc found in \$PATH" >&5
2560 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2561 { (exit 1); exit 1; }; }
2563 # Provide some information about the compiler.
2564 echo "$as_me:2564:" \
2565 "checking for C compiler version" >&5
2566 ac_compiler
=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:2567: \"$ac_compiler --version </dev/null >&5\"") >&5
2568 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2570 echo "$as_me:2570: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2572 { (eval echo "$as_me:2572: \"$ac_compiler -v </dev/null >&5\"") >&5
2573 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2575 echo "$as_me:2575: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577 { (eval echo "$as_me:2577: \"$ac_compiler -V </dev/null >&5\"") >&5
2578 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2580 echo "$as_me:2580: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2583 cat >conftest.
$ac_ext <<_ACEOF
2584 #line 2584 "configure"
2585 #include "confdefs.h"
2595 ac_clean_files_save
=$ac_clean_files
2596 ac_clean_files
="$ac_clean_files a.out a.exe"
2597 # Try to create an executable without -o first, disregard a.out.
2598 # It will help us diagnose broken compilers, and finding out an intuition
2600 echo "$as_me:2600: checking for C compiler default output" >&5
2601 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2602 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2603 if { (eval echo "$as_me:2603: \"$ac_link_default\"") >&5
2604 (eval $ac_link_default) 2>&5
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 # Find the output, starting from the most likely. This scheme is
2609 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2611 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
2612 ls a.out conftest 2>/dev/null;
2613 ls a.* conftest.* 2>/dev/null`; do
2615 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2616 a.out
) # We found the default executable, but exeext='' is most
2619 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2629 { { echo "$as_me:2629: error: C compiler cannot create executables" >&5
2630 echo "$as_me: error: C compiler cannot create executables" >&2;}
2631 { (exit 77); exit 77; }; }
2634 ac_exeext
=$ac_cv_exeext
2635 echo "$as_me:2635: result: $ac_file" >&5
2636 echo "${ECHO_T}$ac_file" >&6
2638 # Check the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile.
2640 echo "$as_me:2640: checking whether the C compiler works" >&5
2641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2643 # If not cross compiling, check that we can run a simple program.
2644 if test "$cross_compiling" != yes; then
2645 if { ac_try
='./$ac_file'
2646 { (eval echo "$as_me:2646: \"$ac_try\"") >&5
2649 echo "$as_me:2649: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 if test "$cross_compiling" = maybe
; then
2656 { { echo "$as_me:2656: error: cannot run C compiled programs.
2657 If you meant to cross compile, use \`--host'." >&5
2658 echo "$as_me: error: cannot run C compiled programs.
2659 If you meant to cross compile, use \`--host'." >&2;}
2660 { (exit 1); exit 1; }; }
2664 echo "$as_me:2664: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6
2667 rm -f a.out a.exe conftest
$ac_cv_exeext
2668 ac_clean_files
=$ac_clean_files_save
2669 # Check the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 echo "$as_me:2671: checking whether we are cross compiling" >&5
2672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2673 echo "$as_me:2673: result: $cross_compiling" >&5
2674 echo "${ECHO_T}$cross_compiling" >&6
2676 echo "$as_me:2676: checking for executable suffix" >&5
2677 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2678 if { (eval echo "$as_me:2678: \"$ac_link\"") >&5
2679 (eval $ac_link) 2>&5
2681 echo "$as_me:2681: \$? = $ac_status" >&5
2682 (exit $ac_status); }; then
2683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2685 # work properly (i.e., refer to `conftest.exe'), while it won't with
2687 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2689 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2690 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 { { echo "$as_me:2697: error: cannot compute EXEEXT: cannot compile and link" >&5
2698 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2699 { (exit 1); exit 1; }; }
2702 rm -f conftest
$ac_cv_exeext
2703 echo "$as_me:2703: result: $ac_cv_exeext" >&5
2704 echo "${ECHO_T}$ac_cv_exeext" >&6
2706 rm -f conftest.
$ac_ext
2707 EXEEXT
=$ac_cv_exeext
2709 echo "$as_me:2709: checking for object suffix" >&5
2710 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2711 if test "${ac_cv_objext+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 cat >conftest.
$ac_ext <<_ACEOF
2715 #line 2715 "configure"
2716 #include "confdefs.h"
2726 rm -f conftest.o conftest.obj
2727 if { (eval echo "$as_me:2727: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2730 echo "$as_me:2730: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2734 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2735 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2740 echo "$as_me: failed program was:" >&5
2741 cat conftest.
$ac_ext >&5
2742 { { echo "$as_me:2742: error: cannot compute OBJEXT: cannot compile" >&5
2743 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2744 { (exit 1); exit 1; }; }
2747 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2749 echo "$as_me:2749: result: $ac_cv_objext" >&5
2750 echo "${ECHO_T}$ac_cv_objext" >&6
2751 OBJEXT
=$ac_cv_objext
2753 echo "$as_me:2753: checking whether we are using the GNU C compiler" >&5
2754 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2755 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.
$ac_ext <<_ACEOF
2759 #line 2759 "configure"
2760 #include "confdefs.h"
2773 rm -f conftest.
$ac_objext
2774 if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5
2777 echo "$as_me:2777: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try
='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:2780: \"$ac_try\"") >&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2787 echo "$as_me: failed program was:" >&5
2788 cat conftest.
$ac_ext >&5
2791 rm -f conftest.
$ac_objext conftest.
$ac_ext
2792 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2795 echo "$as_me:2795: result: $ac_cv_c_compiler_gnu" >&5
2796 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2797 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2798 ac_test_CFLAGS
=${CFLAGS+set}
2799 ac_save_CFLAGS
=$CFLAGS
2801 echo "$as_me:2801: checking whether $CC accepts -g" >&5
2802 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2803 if test "${ac_cv_prog_cc_g+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 cat >conftest.
$ac_ext <<_ACEOF
2807 #line 2807 "configure"
2808 #include "confdefs.h"
2818 rm -f conftest.
$ac_objext
2819 if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>&5
2822 echo "$as_me:2822: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try
='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2828 echo "$as_me:2828: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2832 echo "$as_me: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2836 rm -f conftest.
$ac_objext conftest.
$ac_ext
2838 echo "$as_me:2838: result: $ac_cv_prog_cc_g" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2840 if test "$ac_test_CFLAGS" = set; then
2841 CFLAGS
=$ac_save_CFLAGS
2842 elif test $ac_cv_prog_cc_g = yes; then
2843 if test "$GCC" = yes; then
2849 if test "$GCC" = yes; then
2855 # Some people use a C++ compiler to compile C. Since we use `exit',
2856 # in C++ we need to declare it. In case someone uses the same compiler
2857 # for both compiling C and C++ we need to have the C++ compiler decide
2858 # the declaration of exit, since it's the most demanding environment.
2859 cat >conftest.
$ac_ext <<_ACEOF
2864 rm -f conftest.
$ac_objext
2865 if { (eval echo "$as_me:2865: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try
='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2871: \"$ac_try\"") >&5
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 for ac_declaration
in \
2878 '#include <stdlib.h>' \
2879 'extern "C" void std::exit (int) throw (); using std::exit;' \
2880 'extern "C" void std::exit (int); using std::exit;' \
2881 'extern "C" void exit (int) throw ();' \
2882 'extern "C" void exit (int);' \
2885 cat >conftest.
$ac_ext <<_ACEOF
2886 #line 2886 "configure"
2887 #include "confdefs.h"
2898 rm -f conftest.
$ac_objext
2899 if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>&5
2902 echo "$as_me:2902: \$? = $ac_status" >&5
2903 (exit $ac_status); } &&
2904 { ac_try
='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:2905: \"$ac_try\"") >&5
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2912 echo "$as_me: failed program was:" >&5
2913 cat conftest.
$ac_ext >&5
2916 rm -f conftest.
$ac_objext conftest.
$ac_ext
2917 cat >conftest.
$ac_ext <<_ACEOF
2918 #line 2918 "configure"
2919 #include "confdefs.h"
2929 rm -f conftest.
$ac_objext
2930 if { (eval echo "$as_me:2930: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2933 echo "$as_me:2933: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try
='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:2936: \"$ac_try\"") >&5
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2943 echo "$as_me: failed program was:" >&5
2944 cat conftest.
$ac_ext >&5
2946 rm -f conftest.
$ac_objext conftest.
$ac_ext
2949 if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2956 echo "$as_me: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2959 rm -f conftest.
$ac_objext conftest.
$ac_ext
2961 ac_cpp
='$CPP $CPPFLAGS'
2962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2966 # On Suns, sometimes $CPP names a directory.
2967 if test -n "$CPP" && test -d "$CPP"; then
2971 #### Some systems specify a CPP to use unless we are using GCC.
2972 #### Now that we know whether we are using GCC, we can decide whether
2973 #### to use that one.
2974 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
2979 #### Some systems specify a CC to use unless we are using GCC.
2980 #### Now that we know whether we are using GCC, we can decide whether
2981 #### to use that one.
2982 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
2983 test x
$cc_specified != xyes
2988 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
2990 CC
="$CC $GCC_TEST_OPTIONS"
2993 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
2995 CC
="$CC $NON_GCC_TEST_OPTIONS"
2998 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3000 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3003 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3005 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3008 #### Some other nice autoconf tests. If you add a test here which
3009 #### should make an entry in src/config.h, don't forget to add an
3010 #### #undef clause to src/config.h.in for autoconf to modify.
3012 echo "$as_me:3012: checking whether ln -s works" >&5
3013 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3015 if test "$LN_S" = "ln -s"; then
3016 echo "$as_me:3016: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6
3019 echo "$as_me:3019: result: no, using $LN_S" >&5
3020 echo "${ECHO_T}no, using $LN_S" >&6
3024 ac_cpp
='$CPP $CPPFLAGS'
3025 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3028 echo "$as_me:3028: checking how to run the C preprocessor" >&5
3029 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3030 # On Suns, sometimes $CPP names a directory.
3031 if test -n "$CPP" && test -d "$CPP"; then
3034 if test -z "$CPP"; then
3035 if test "${ac_cv_prog_CPP+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 # Double quotes because CPP needs to be expanded
3039 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3042 for ac_c_preproc_warn_flag
in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.
$ac_ext <<_ACEOF
3049 #line 3049 "configure"
3050 #include "confdefs.h"
3054 if { (eval echo "$as_me:3054: \"$ac_cpp conftest.$ac_ext\"") >&5
3055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3057 egrep -v '^ *\+' conftest.er1
>conftest.err
3059 cat conftest.err
>&5
3060 echo "$as_me:3060: \$? = $ac_status" >&5
3061 (exit $ac_status); } >/dev
/null
; then
3062 if test -s conftest.err
; then
3063 ac_cpp_err
=$ac_c_preproc_warn_flag
3070 if test -z "$ac_cpp_err"; then
3073 echo "$as_me: failed program was:" >&5
3074 cat conftest.
$ac_ext >&5
3075 # Broken: fails on valid input.
3078 rm -f conftest.err conftest.
$ac_ext
3080 # OK, works on sane cases. Now check whether non-existent headers
3081 # can be detected and how.
3082 cat >conftest.
$ac_ext <<_ACEOF
3083 #line 3083 "configure"
3084 #include "confdefs.h"
3085 #include <ac_nonexistent.h>
3087 if { (eval echo "$as_me:3087: \"$ac_cpp conftest.$ac_ext\"") >&5
3088 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3090 egrep -v '^ *\+' conftest.er1
>conftest.err
3092 cat conftest.err
>&5
3093 echo "$as_me:3093: \$? = $ac_status" >&5
3094 (exit $ac_status); } >/dev
/null
; then
3095 if test -s conftest.err
; then
3096 ac_cpp_err
=$ac_c_preproc_warn_flag
3103 if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3107 echo "$as_me: failed program was:" >&5
3108 cat conftest.
$ac_ext >&5
3109 # Passes both tests.
3113 rm -f conftest.err conftest.
$ac_ext
3116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117 rm -f conftest.err conftest.
$ac_ext
3118 if $ac_preproc_ok; then
3130 echo "$as_me:3130: result: $CPP" >&5
3131 echo "${ECHO_T}$CPP" >&6
3133 for ac_c_preproc_warn_flag
in '' yes
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.
$ac_ext <<_ACEOF
3140 #line 3140 "configure"
3141 #include "confdefs.h"
3145 if { (eval echo "$as_me:3145: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3148 egrep -v '^ *\+' conftest.er1
>conftest.err
3150 cat conftest.err
>&5
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev
/null
; then
3153 if test -s conftest.err
; then
3154 ac_cpp_err
=$ac_c_preproc_warn_flag
3161 if test -z "$ac_cpp_err"; then
3164 echo "$as_me: failed program was:" >&5
3165 cat conftest.
$ac_ext >&5
3166 # Broken: fails on valid input.
3169 rm -f conftest.err conftest.
$ac_ext
3171 # OK, works on sane cases. Now check whether non-existent headers
3172 # can be detected and how.
3173 cat >conftest.
$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <ac_nonexistent.h>
3178 if { (eval echo "$as_me:3178: \"$ac_cpp conftest.$ac_ext\"") >&5
3179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3181 egrep -v '^ *\+' conftest.er1
>conftest.err
3183 cat conftest.err
>&5
3184 echo "$as_me:3184: \$? = $ac_status" >&5
3185 (exit $ac_status); } >/dev
/null
; then
3186 if test -s conftest.err
; then
3187 ac_cpp_err
=$ac_c_preproc_warn_flag
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3198 echo "$as_me: failed program was:" >&5
3199 cat conftest.
$ac_ext >&5
3200 # Passes both tests.
3204 rm -f conftest.err conftest.
$ac_ext
3207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3208 rm -f conftest.err conftest.
$ac_ext
3209 if $ac_preproc_ok; then
3212 { { echo "$as_me:3212: error: C preprocessor \"$CPP\" fails sanity check" >&5
3213 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3214 { (exit 1); exit 1; }; }
3218 ac_cpp
='$CPP $CPPFLAGS'
3219 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3223 # Find a good install program. We prefer a C program (faster),
3224 # so one script is as good as another. But avoid the broken or
3225 # incompatible versions:
3226 # SysV /etc/install, /usr/sbin/install
3227 # SunOS /usr/etc/install
3228 # IRIX /sbin/install
3230 # AmigaOS /C/install, which installs bootblocks on floppy discs
3231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3234 # ./install, which can be erroneously created by make from ./install.sh.
3235 echo "$as_me:3235: checking for a BSD compatible install" >&5
3236 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3237 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3242 for ac_dir
in $PATH; do
3244 # Account for people who put trailing slashes in PATH elements.
3246 / | .
/ | .
// |
/cC
/* \
3247 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3250 # OSF1 and SCO ODT 3.0 have their own names for install.
3251 # Don't use installbsd from OSF since it installs stuff as root
3253 for ac_prog
in ginstall scoinst
install; do
3254 if $as_executable_p "$ac_dir/$ac_prog"; then
3255 if test $ac_prog = install &&
3256 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3257 # AIX install. It has an incompatible calling convention.
3259 elif test $ac_prog = install &&
3260 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3261 # program-specific install script used by HP pwplus--don't use.
3264 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3274 if test "${ac_cv_path_install+set}" = set; then
3275 INSTALL
=$ac_cv_path_install
3277 # As a last resort, use the slow shell script. We don't cache a
3278 # path for INSTALL within a source directory, because that will
3279 # break other packages using the cache if that directory is
3280 # removed, or if the path is relative.
3281 INSTALL
=$ac_install_sh
3284 echo "$as_me:3284: result: $INSTALL" >&5
3285 echo "${ECHO_T}$INSTALL" >&6
3287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3288 # It thinks the first close brace ends the variable substitution.
3289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3293 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3295 for ac_prog
in 'bison -y' byacc
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy
$ac_prog; ac_word
=$2
3299 echo "$as_me:3299: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3301 if test "${ac_cv_prog_YACC+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 if test -n "$YACC"; then
3305 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3307 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3309 for ac_dir
in $ac_dummy; do
3311 test -z "$ac_dir" && ac_dir
=.
3312 $as_executable_p "$ac_dir/$ac_word" ||
continue
3313 ac_cv_prog_YACC
="$ac_prog"
3314 echo "$as_me:3314: found $ac_dir/$ac_word" >&5
3320 YACC
=$ac_cv_prog_YACC
3321 if test -n "$YACC"; then
3322 echo "$as_me:3322: result: $YACC" >&5
3323 echo "${ECHO_T}$YACC" >&6
3325 echo "$as_me:3325: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3329 test -n "$YACC" && break
3331 test -n "$YACC" || YACC
="yacc"
3333 if test "x$RANLIB" = x
; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3336 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3337 echo "$as_me:3337: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_RANLIB+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$RANLIB"; then
3343 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3345 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3347 for ac_dir
in $ac_dummy; do
3349 test -z "$ac_dir" && ac_dir
=.
3350 $as_executable_p "$ac_dir/$ac_word" ||
continue
3351 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3352 echo "$as_me:3352: found $ac_dir/$ac_word" >&5
3358 RANLIB
=$ac_cv_prog_RANLIB
3359 if test -n "$RANLIB"; then
3360 echo "$as_me:3360: result: $RANLIB" >&5
3361 echo "${ECHO_T}$RANLIB" >&6
3363 echo "$as_me:3363: result: no" >&5
3364 echo "${ECHO_T}no" >&6
3368 if test -z "$ac_cv_prog_RANLIB"; then
3369 ac_ct_RANLIB
=$RANLIB
3370 # Extract the first word of "ranlib", so it can be a program name with args.
3371 set dummy ranlib
; ac_word
=$2
3372 echo "$as_me:3372: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$ac_ct_RANLIB"; then
3378 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3380 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3382 for ac_dir
in $ac_dummy; do
3384 test -z "$ac_dir" && ac_dir
=.
3385 $as_executable_p "$ac_dir/$ac_word" ||
continue
3386 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3387 echo "$as_me:3387: found $ac_dir/$ac_word" >&5
3391 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3394 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3395 if test -n "$ac_ct_RANLIB"; then
3396 echo "$as_me:3396: result: $ac_ct_RANLIB" >&5
3397 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3399 echo "$as_me:3399: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3403 RANLIB
=$ac_ct_RANLIB
3405 RANLIB
="$ac_cv_prog_RANLIB"
3410 echo "$as_me:3410: checking for AIX" >&5
3411 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3412 cat >conftest.
$ac_ext <<_ACEOF
3413 #line 3413 "configure"
3414 #include "confdefs.h"
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 egrep "yes" >/dev
/null
2>&1; then
3422 echo "$as_me:3422: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6
3424 cat >>confdefs.h
<<\EOF
3425 #define _ALL_SOURCE 1
3429 echo "$as_me:3429: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3434 #### Extract some information from the operating system and machine files.
3436 { echo "$as_me:3436: checking the machine- and system-dependent files to find out
3437 - which libraries the lib-src programs will want, and
3438 - whether the GNU malloc routines are usable..." >&5
3439 echo "$as_me: checking the machine- and system-dependent files to find out
3440 - which libraries the lib-src programs will want, and
3441 - whether the GNU malloc routines are usable..." >&6;}
3443 ### First figure out CFLAGS (which we use for running the compiler here)
3444 ### and REAL_CFLAGS (which we use for real compilation).
3445 ### The two are the same except on a few systems, where they are made
3446 ### different to work around various lossages. For example,
3447 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3448 ### as implying static linking.
3450 ### If the CFLAGS env var is specified, we use that value
3451 ### instead of the default.
3453 ### It's not important that this name contain the PID; you can't run
3454 ### two configures in the same directory and have anything work
3456 tempcname
="conftest.c"
3459 #include "'${srcdir}'/src/'${opsysfile}'"
3460 #include "'${srcdir}'/src/'${machfile}'"
3461 #ifndef LIBS_MACHINE
3462 #define LIBS_MACHINE
3467 #ifndef C_SWITCH_SYSTEM
3468 #define C_SWITCH_SYSTEM
3470 #ifndef C_SWITCH_MACHINE
3471 #define C_SWITCH_MACHINE
3473 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3474 configure___ c_switch_system=C_SWITCH_SYSTEM
3475 configure___ c_switch_machine=C_SWITCH_MACHINE
3478 #define LIB_X11_LIB -lX11
3481 #ifndef LIBX11_MACHINE
3482 #define LIBX11_MACHINE
3485 #ifndef LIBX11_SYSTEM
3486 #define LIBX11_SYSTEM
3488 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3491 configure___ unexec=UNEXEC
3493 configure___ unexec=unexec.o
3496 #ifdef SYSTEM_MALLOC
3497 configure___ system_malloc=yes
3499 configure___ system_malloc=no
3502 #ifdef USE_MMAP_FOR_BUFFERS
3503 configure___ use_mmap_for_buffers=yes
3505 configure___ use_mmap_for_buffers=no
3508 #ifndef C_DEBUG_SWITCH
3509 #define C_DEBUG_SWITCH -g
3512 #ifndef C_OPTIMIZE_SWITCH
3514 #define C_OPTIMIZE_SWITCH -O2
3516 #define C_OPTIMIZE_SWITCH -O
3520 #ifndef LD_SWITCH_MACHINE
3521 #define LD_SWITCH_MACHINE
3524 #ifndef LD_SWITCH_SYSTEM
3525 #define LD_SWITCH_SYSTEM
3528 #ifndef LD_SWITCH_X_SITE_AUX
3529 #define LD_SWITCH_X_SITE_AUX
3532 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3533 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3535 #ifdef THIS_IS_CONFIGURE
3537 /* Get the CFLAGS for tests in configure. */
3539 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3541 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3544 #else /* not THIS_IS_CONFIGURE */
3546 /* Get the CFLAGS for real compilation. */
3548 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3550 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3553 #endif /* not THIS_IS_CONFIGURE */
3556 # The value of CPP is a quoted variable reference, so we need to do this
3557 # to get its actual value...
3558 CPP
=`eval "echo $CPP"`
3559 eval `${CPP} -Isrc ${tempcname} \
3560 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3561 if test "x$SPECIFIED_CFLAGS" = x
; then
3562 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3563 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3565 REAL_CFLAGS
="$CFLAGS"
3569 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3571 ### Make sure subsequent tests use flags consistent with the build flags.
3573 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3574 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3576 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3579 # Check whether --enable-largefile or --disable-largefile was given.
3580 if test "${enable_largefile+set}" = set; then
3581 enableval
="$enable_largefile"
3584 if test "$enable_largefile" != no
; then
3586 echo "$as_me:3586: checking for special C compiler options needed for large files" >&5
3587 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3588 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 ac_cv_sys_largefile_CC
=no
3592 if test "$GCC" != yes; then
3595 # IRIX 6.2 and later do not support large files by default,
3596 # so use the C compiler's -n32 option if that helps.
3597 cat >conftest.
$ac_ext <<_ACEOF
3598 #line 3598 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 /* Check that off_t can represent 2**63 - 1 correctly.
3602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3603 since some C++ compilers masquerading as C compilers
3604 incorrectly reject 9223372036854775807. */
3605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3607 && LARGE_OFF_T % 2147483647 == 1)
3617 rm -f conftest.
$ac_objext
3618 if { (eval echo "$as_me:3618: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>&5
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
3623 { ac_try
='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:3624: \"$ac_try\"") >&5
3627 echo "$as_me:3627: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 rm -f conftest.
$ac_objext
3636 rm -f conftest.
$ac_objext
3637 if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5
3638 (eval $ac_compile) 2>&5
3640 echo "$as_me:3640: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:3643: \"$ac_try\"") >&5
3646 echo "$as_me:3646: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_cv_sys_largefile_CC
=' -n32'; break
3650 echo "$as_me: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3653 rm -f conftest.
$ac_objext
3657 rm -f conftest.
$ac_ext
3660 echo "$as_me:3660: result: $ac_cv_sys_largefile_CC" >&5
3661 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3662 if test "$ac_cv_sys_largefile_CC" != no
; then
3663 CC
=$CC$ac_cv_sys_largefile_CC
3666 echo "$as_me:3666: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3667 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 ac_cv_sys_file_offset_bits
=no
3673 cat >conftest.
$ac_ext <<_ACEOF
3674 #line 3674 "configure"
3675 #include "confdefs.h"
3676 #include <sys/types.h>
3677 /* Check that off_t can represent 2**63 - 1 correctly.
3678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3679 since some C++ compilers masquerading as C compilers
3680 incorrectly reject 9223372036854775807. */
3681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3683 && LARGE_OFF_T % 2147483647 == 1)
3693 rm -f conftest.
$ac_objext
3694 if { (eval echo "$as_me:3694: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3697 echo "$as_me:3697: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try
='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:3700: \"$ac_try\"") >&5
3703 echo "$as_me:3703: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3707 echo "$as_me: failed program was:" >&5
3708 cat conftest.
$ac_ext >&5
3710 rm -f conftest.
$ac_objext conftest.
$ac_ext
3711 cat >conftest.
$ac_ext <<_ACEOF
3712 #line 3712 "configure"
3713 #include "confdefs.h"
3714 #define _FILE_OFFSET_BITS 64
3715 #include <sys/types.h>
3716 /* Check that off_t can represent 2**63 - 1 correctly.
3717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3718 since some C++ compilers masquerading as C compilers
3719 incorrectly reject 9223372036854775807. */
3720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3722 && LARGE_OFF_T % 2147483647 == 1)
3732 rm -f conftest.
$ac_objext
3733 if { (eval echo "$as_me:3733: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); } &&
3738 { ac_try
='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:3739: \"$ac_try\"") >&5
3742 echo "$as_me:3742: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_sys_file_offset_bits
=64; break
3746 echo "$as_me: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3749 rm -f conftest.
$ac_objext conftest.
$ac_ext
3753 echo "$as_me:3753: result: $ac_cv_sys_file_offset_bits" >&5
3754 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3755 if test "$ac_cv_sys_file_offset_bits" != no
; then
3757 cat >>confdefs.h
<<EOF
3758 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3763 echo "$as_me:3763: checking for _LARGE_FILES value needed for large files" >&5
3764 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3765 if test "${ac_cv_sys_large_files+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 ac_cv_sys_large_files
=no
3770 cat >conftest.
$ac_ext <<_ACEOF
3771 #line 3771 "configure"
3772 #include "confdefs.h"
3773 #include <sys/types.h>
3774 /* Check that off_t can represent 2**63 - 1 correctly.
3775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3776 since some C++ compilers masquerading as C compilers
3777 incorrectly reject 9223372036854775807. */
3778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3780 && LARGE_OFF_T % 2147483647 == 1)
3790 rm -f conftest.
$ac_objext
3791 if { (eval echo "$as_me:3791: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>&5
3794 echo "$as_me:3794: \$? = $ac_status" >&5
3795 (exit $ac_status); } &&
3796 { ac_try
='test -s conftest.$ac_objext'
3797 { (eval echo "$as_me:3797: \"$ac_try\"") >&5
3800 echo "$as_me:3800: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3804 echo "$as_me: failed program was:" >&5
3805 cat conftest.
$ac_ext >&5
3807 rm -f conftest.
$ac_objext conftest.
$ac_ext
3808 cat >conftest.
$ac_ext <<_ACEOF
3809 #line 3809 "configure"
3810 #include "confdefs.h"
3811 #define _LARGE_FILES 1
3812 #include <sys/types.h>
3813 /* Check that off_t can represent 2**63 - 1 correctly.
3814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3815 since some C++ compilers masquerading as C compilers
3816 incorrectly reject 9223372036854775807. */
3817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3819 && LARGE_OFF_T % 2147483647 == 1)
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:3830: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>&5
3833 echo "$as_me:3833: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try
='test -s conftest.$ac_objext'
3836 { (eval echo "$as_me:3836: \"$ac_try\"") >&5
3839 echo "$as_me:3839: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
3841 ac_cv_sys_large_files
=1; break
3843 echo "$as_me: failed program was:" >&5
3844 cat conftest.
$ac_ext >&5
3846 rm -f conftest.
$ac_objext conftest.
$ac_ext
3850 echo "$as_me:3850: result: $ac_cv_sys_large_files" >&5
3851 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3852 if test "$ac_cv_sys_large_files" != no
; then
3854 cat >>confdefs.h
<<EOF
3855 #define _LARGE_FILES $ac_cv_sys_large_files
3862 if test "${with_sound}" != "no"; then
3863 # Sound support for GNU/Linux and the free BSDs.
3865 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
3867 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868 echo "$as_me:3868: checking for $ac_header" >&5
3869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 cat >conftest.
$ac_ext <<_ACEOF
3874 #line 3874 "configure"
3875 #include "confdefs.h"
3876 #include <$ac_header>
3878 if { (eval echo "$as_me:3878: \"$ac_cpp conftest.$ac_ext\"") >&5
3879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3881 egrep -v '^ *\+' conftest.er1
>conftest.err
3883 cat conftest.err
>&5
3884 echo "$as_me:3884: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev
/null
; then
3886 if test -s conftest.err
; then
3887 ac_cpp_err
=$ac_c_preproc_warn_flag
3894 if test -z "$ac_cpp_err"; then
3895 eval "$as_ac_Header=yes"
3897 echo "$as_me: failed program was:" >&5
3898 cat conftest.
$ac_ext >&5
3899 eval "$as_ac_Header=no"
3901 rm -f conftest.err conftest.
$ac_ext
3903 echo "$as_me:3903: result: `eval echo '${'$as_ac_Header'}'`" >&5
3904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3906 cat >>confdefs.h
<<EOF
3907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3913 # Emulation library used on NetBSD.
3914 echo "$as_me:3914: checking for _oss_ioctl in -lossaudio" >&5
3915 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3916 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_check_lib_save_LIBS
=$LIBS
3920 LIBS
="-lossaudio $LIBS"
3921 cat >conftest.
$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error. */
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3940 rm -f conftest.
$ac_objext conftest
$ac_exeext
3941 if { (eval echo "$as_me:3941: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3944 echo "$as_me:3944: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try
='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:3947: \"$ac_try\"") >&5
3950 echo "$as_me:3950: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_cv_lib_ossaudio__oss_ioctl
=yes
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3956 ac_cv_lib_ossaudio__oss_ioctl
=no
3958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3959 LIBS
=$ac_check_lib_save_LIBS
3961 echo "$as_me:3961: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3962 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3963 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3971 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
3972 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
3973 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
3975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976 echo "$as_me:3976: checking for $ac_header" >&5
3977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 cat >conftest.
$ac_ext <<_ACEOF
3982 #line 3982 "configure"
3983 #include "confdefs.h"
3984 #include <$ac_header>
3986 if { (eval echo "$as_me:3986: \"$ac_cpp conftest.$ac_ext\"") >&5
3987 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3989 egrep -v '^ *\+' conftest.er1
>conftest.err
3991 cat conftest.err
>&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev
/null
; then
3994 if test -s conftest.err
; then
3995 ac_cpp_err
=$ac_c_preproc_warn_flag
4002 if test -z "$ac_cpp_err"; then
4003 eval "$as_ac_Header=yes"
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4007 eval "$as_ac_Header=no"
4009 rm -f conftest.err conftest.
$ac_ext
4011 echo "$as_me:4011: result: `eval echo '${'$as_ac_Header'}'`" >&5
4012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4014 cat >>confdefs.h
<<EOF
4015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4021 echo "$as_me:4021: checking for ANSI C header files" >&5
4022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4023 if test "${ac_cv_header_stdc+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 cat >conftest.
$ac_ext <<_ACEOF
4027 #line 4027 "configure"
4028 #include "confdefs.h"
4035 if { (eval echo "$as_me:4035: \"$ac_cpp conftest.$ac_ext\"") >&5
4036 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4038 egrep -v '^ *\+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:4041: \$? = $ac_status" >&5
4042 (exit $ac_status); } >/dev
/null
; then
4043 if test -s conftest.err
; then
4044 ac_cpp_err
=$ac_c_preproc_warn_flag
4051 if test -z "$ac_cpp_err"; then
4052 ac_cv_header_stdc
=yes
4054 echo "$as_me: failed program was:" >&5
4055 cat conftest.
$ac_ext >&5
4056 ac_cv_header_stdc
=no
4058 rm -f conftest.err conftest.
$ac_ext
4060 if test $ac_cv_header_stdc = yes; then
4061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4062 cat >conftest.
$ac_ext <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 egrep "memchr" >/dev
/null
2>&1; then
4072 ac_cv_header_stdc
=no
4078 if test $ac_cv_header_stdc = yes; then
4079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4080 cat >conftest.
$ac_ext <<_ACEOF
4081 #line 4081 "configure"
4082 #include "confdefs.h"
4086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 egrep "free" >/dev
/null
2>&1; then
4090 ac_cv_header_stdc
=no
4096 if test $ac_cv_header_stdc = yes; then
4097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4098 if test "$cross_compiling" = yes; then
4101 cat >conftest.
$ac_ext <<_ACEOF
4102 #line 4102 "configure"
4103 #include "confdefs.h"
4105 #if ((' ' & 0x0FF) == 0x020)
4106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4109 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4110 || ('j' <= (c) && (c) <= 'r') \
4111 || ('s' <= (c) && (c) <= 'z'))
4112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4120 for (i = 0; i < 256; i++)
4121 if (XOR (islower (i), ISLOWER (i))
4122 || toupper (i) != TOUPPER (i))
4127 rm -f conftest
$ac_exeext
4128 if { (eval echo "$as_me:4128: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>&5
4131 echo "$as_me:4131: \$? = $ac_status" >&5
4132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4133 { (eval echo "$as_me:4133: \"$ac_try\"") >&5
4136 echo "$as_me:4136: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4140 echo "$as_me: program exited with status $ac_status" >&5
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.
$ac_ext >&5
4143 ac_cv_header_stdc
=no
4145 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4149 echo "$as_me:4149: result: $ac_cv_header_stdc" >&5
4150 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4151 if test $ac_cv_header_stdc = yes; then
4153 cat >>confdefs.h
<<\EOF
4154 #define STDC_HEADERS 1
4159 echo "$as_me:4159: checking whether time.h and sys/time.h may both be included" >&5
4160 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4161 if test "${ac_cv_header_time+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 cat >conftest.
$ac_ext <<_ACEOF
4165 #line 4165 "configure"
4166 #include "confdefs.h"
4167 #include <sys/types.h>
4168 #include <sys/time.h>
4174 if ((struct tm *) 0)
4180 rm -f conftest.
$ac_objext
4181 if { (eval echo "$as_me:4181: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>&5
4184 echo "$as_me:4184: \$? = $ac_status" >&5
4185 (exit $ac_status); } &&
4186 { ac_try
='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:4187: \"$ac_try\"") >&5
4190 echo "$as_me:4190: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_cv_header_time
=yes
4194 echo "$as_me: failed program was:" >&5
4195 cat conftest.
$ac_ext >&5
4196 ac_cv_header_time
=no
4198 rm -f conftest.
$ac_objext conftest.
$ac_ext
4200 echo "$as_me:4200: result: $ac_cv_header_time" >&5
4201 echo "${ECHO_T}$ac_cv_header_time" >&6
4202 if test $ac_cv_header_time = yes; then
4204 cat >>confdefs.h
<<\EOF
4205 #define TIME_WITH_SYS_TIME 1
4210 echo "$as_me:4210: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4211 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4212 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 cat >conftest.
$ac_ext <<_ACEOF
4216 #line 4216 "configure"
4217 #include "confdefs.h"
4218 #include <sys/types.h>
4220 /* NetBSD declares sys_siglist in unistd.h. */
4222 # include <unistd.h>
4228 char *msg = *(sys_siglist + 1);
4233 rm -f conftest.
$ac_objext
4234 if { (eval echo "$as_me:4234: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try
='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:4240: \"$ac_try\"") >&5
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_decl_sys_siglist
=yes
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.
$ac_ext >&5
4249 ac_cv_decl_sys_siglist
=no
4251 rm -f conftest.
$ac_objext conftest.
$ac_ext
4253 echo "$as_me:4253: result: $ac_cv_decl_sys_siglist" >&5
4254 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4255 if test $ac_cv_decl_sys_siglist = yes; then
4257 cat >>confdefs.h
<<\EOF
4258 #define SYS_SIGLIST_DECLARED 1
4263 echo "$as_me:4263: checking for sys/wait.h that is POSIX.1 compatible" >&5
4264 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4265 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 cat >conftest.
$ac_ext <<_ACEOF
4269 #line 4269 "configure"
4270 #include "confdefs.h"
4271 #include <sys/types.h>
4272 #include <sys/wait.h>
4274 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4277 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4285 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4290 rm -f conftest.
$ac_objext
4291 if { (eval echo "$as_me:4291: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>&5
4294 echo "$as_me:4294: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try
='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:4297: \"$ac_try\"") >&5
4300 echo "$as_me:4300: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_header_sys_wait_h
=yes
4304 echo "$as_me: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4306 ac_cv_header_sys_wait_h
=no
4308 rm -f conftest.
$ac_objext conftest.
$ac_ext
4310 echo "$as_me:4310: result: $ac_cv_header_sys_wait_h" >&5
4311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4312 if test $ac_cv_header_sys_wait_h = yes; then
4314 cat >>confdefs.h
<<\EOF
4315 #define HAVE_SYS_WAIT_H 1
4320 echo "$as_me:4320: checking for struct utimbuf" >&5
4321 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4322 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 cat >conftest.
$ac_ext <<_ACEOF
4326 #line 4326 "configure"
4327 #include "confdefs.h"
4328 #ifdef TIME_WITH_SYS_TIME
4329 #include <sys/time.h>
4332 #ifdef HAVE_SYS_TIME_H
4333 #include <sys/time.h>
4344 static struct utimbuf x; x.actime = x.modtime;
4349 rm -f conftest.
$ac_objext
4350 if { (eval echo "$as_me:4350: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>&5
4353 echo "$as_me:4353: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try
='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:4356: \"$ac_try\"") >&5
4359 echo "$as_me:4359: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 emacs_cv_struct_utimbuf
=yes
4363 echo "$as_me: failed program was:" >&5
4364 cat conftest.
$ac_ext >&5
4365 emacs_cv_struct_utimbuf
=no
4367 rm -f conftest.
$ac_objext conftest.
$ac_ext
4369 echo "$as_me:4369: result: $emacs_cv_struct_utimbuf" >&5
4370 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4371 if test $emacs_cv_struct_utimbuf = yes; then
4372 cat >>confdefs.h
<<\EOF
4373 #define HAVE_STRUCT_UTIMBUF 1
4378 echo "$as_me:4378: checking return type of signal handlers" >&5
4379 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4380 if test "${ac_cv_type_signal+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 cat >conftest.
$ac_ext <<_ACEOF
4384 #line 4384 "configure"
4385 #include "confdefs.h"
4386 #include <sys/types.h>
4392 extern "C" void (*signal (int, void (*)(int)))(int);
4394 void (*signal ()) ();
4405 rm -f conftest.
$ac_objext
4406 if { (eval echo "$as_me:4406: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4409 echo "$as_me:4409: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try
='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:4412: \"$ac_try\"") >&5
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_type_signal
=void
4419 echo "$as_me: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4421 ac_cv_type_signal
=int
4423 rm -f conftest.
$ac_objext conftest.
$ac_ext
4425 echo "$as_me:4425: result: $ac_cv_type_signal" >&5
4426 echo "${ECHO_T}$ac_cv_type_signal" >&6
4428 cat >>confdefs.h
<<EOF
4429 #define RETSIGTYPE $ac_cv_type_signal
4432 echo "$as_me:4432: checking for speed_t" >&5
4433 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4434 if test "${emacs_cv_speed_t+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 cat >conftest.
$ac_ext <<_ACEOF
4438 #line 4438 "configure"
4439 #include "confdefs.h"
4440 #include <termios.h>
4449 rm -f conftest.
$ac_objext
4450 if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:4453: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try
='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:4456: \"$ac_try\"") >&5
4459 echo "$as_me:4459: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 emacs_cv_speed_t
=yes
4463 echo "$as_me: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4467 rm -f conftest.
$ac_objext conftest.
$ac_ext
4469 echo "$as_me:4469: result: $emacs_cv_speed_t" >&5
4470 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4471 if test $emacs_cv_speed_t = yes; then
4472 cat >>confdefs.h
<<\EOF
4473 #define HAVE_SPEED_T 1
4478 echo "$as_me:4478: checking for struct timeval" >&5
4479 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4480 if test "${emacs_cv_struct_timeval+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 cat >conftest.
$ac_ext <<_ACEOF
4484 #line 4484 "configure"
4485 #include "confdefs.h"
4486 #ifdef TIME_WITH_SYS_TIME
4487 #include <sys/time.h>
4490 #ifdef HAVE_SYS_TIME_H
4491 #include <sys/time.h>
4499 static struct timeval x; x.tv_sec = x.tv_usec;
4504 rm -f conftest.
$ac_objext
4505 if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:4508: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try
='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:4511: \"$ac_try\"") >&5
4514 echo "$as_me:4514: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 emacs_cv_struct_timeval
=yes
4518 echo "$as_me: failed program was:" >&5
4519 cat conftest.
$ac_ext >&5
4520 emacs_cv_struct_timeval
=no
4522 rm -f conftest.
$ac_objext conftest.
$ac_ext
4524 echo "$as_me:4524: result: $emacs_cv_struct_timeval" >&5
4525 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4526 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
4527 if test $emacs_cv_struct_timeval = yes; then
4528 cat >>confdefs.h
<<\EOF
4529 #define HAVE_TIMEVAL 1
4534 echo "$as_me:4534: checking for struct exception" >&5
4535 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4536 if test "${emacs_cv_struct_exception+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.
$ac_ext <<_ACEOF
4540 #line 4540 "configure"
4541 #include "confdefs.h"
4546 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4551 rm -f conftest.
$ac_objext
4552 if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>&5
4555 echo "$as_me:4555: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -s conftest.$ac_objext'
4558 { (eval echo "$as_me:4558: \"$ac_try\"") >&5
4561 echo "$as_me:4561: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 emacs_cv_struct_exception
=yes
4565 echo "$as_me: failed program was:" >&5
4566 cat conftest.
$ac_ext >&5
4567 emacs_cv_struct_exception
=no
4569 rm -f conftest.
$ac_objext conftest.
$ac_ext
4571 echo "$as_me:4571: result: $emacs_cv_struct_exception" >&5
4572 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4573 HAVE_EXCEPTION
=$emacs_cv_struct_exception
4574 if test $emacs_cv_struct_exception != yes; then
4575 cat >>confdefs.h
<<\EOF
4576 #define NO_MATHERR 1
4581 echo "$as_me:4581: checking whether struct tm is in sys/time.h or time.h" >&5
4582 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4583 if test "${ac_cv_struct_tm+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 cat >conftest.
$ac_ext <<_ACEOF
4587 #line 4587 "configure"
4588 #include "confdefs.h"
4589 #include <sys/types.h>
4595 struct tm *tp; tp->tm_sec;
4600 rm -f conftest.
$ac_objext
4601 if { (eval echo "$as_me:4601: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try
='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:4607: \"$ac_try\"") >&5
4610 echo "$as_me:4610: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_struct_tm
=time.h
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.
$ac_ext >&5
4616 ac_cv_struct_tm
=sys
/time.h
4618 rm -f conftest.
$ac_objext conftest.
$ac_ext
4620 echo "$as_me:4620: result: $ac_cv_struct_tm" >&5
4621 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4622 if test $ac_cv_struct_tm = sys
/time.h
; then
4624 cat >>confdefs.h
<<\EOF
4625 #define TM_IN_SYS_TIME 1
4630 echo "$as_me:4630: checking for struct tm.tm_zone" >&5
4631 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4632 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 cat >conftest.
$ac_ext <<_ACEOF
4636 #line 4636 "configure"
4637 #include "confdefs.h"
4638 #include <sys/types.h>
4639 #include <$ac_cv_struct_tm>
4644 static struct tm ac_aggr;
4645 if (ac_aggr.tm_zone)
4651 rm -f conftest.
$ac_objext
4652 if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4655 echo "$as_me:4655: \$? = $ac_status" >&5
4656 (exit $ac_status); } &&
4657 { ac_try
='test -s conftest.$ac_objext'
4658 { (eval echo "$as_me:4658: \"$ac_try\"") >&5
4661 echo "$as_me:4661: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4663 ac_cv_member_struct_tm_tm_zone
=yes
4665 echo "$as_me: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4667 ac_cv_member_struct_tm_tm_zone
=no
4669 rm -f conftest.
$ac_objext conftest.
$ac_ext
4671 echo "$as_me:4671: result: $ac_cv_member_struct_tm_tm_zone" >&5
4672 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4673 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4675 cat >>confdefs.h
<<EOF
4676 #define HAVE_STRUCT_TM_TM_ZONE 1
4681 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4683 cat >>confdefs.h
<<\EOF
4684 #define HAVE_TM_ZONE 1
4688 echo "$as_me:4688: checking for tzname" >&5
4689 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4690 if test "${ac_cv_var_tzname+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 cat >conftest.
$ac_ext <<_ACEOF
4694 #line 4694 "configure"
4695 #include "confdefs.h"
4697 #ifndef tzname /* For SGI. */
4698 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4709 rm -f conftest.
$ac_objext conftest
$ac_exeext
4710 if { (eval echo "$as_me:4710: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4713 echo "$as_me:4713: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try
='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:4716: \"$ac_try\"") >&5
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_var_tzname
=yes
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4727 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4729 echo "$as_me:4729: result: $ac_cv_var_tzname" >&5
4730 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4731 if test $ac_cv_var_tzname = yes; then
4733 cat >>confdefs.h
<<\EOF
4734 #define HAVE_TZNAME 1
4740 echo "$as_me:4740: checking for tm_gmtoff in struct tm" >&5
4741 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4742 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 cat >conftest.
$ac_ext <<_ACEOF
4746 #line 4746 "configure"
4747 #include "confdefs.h"
4752 struct tm t; t.tm_gmtoff = 0
4757 rm -f conftest.
$ac_objext conftest
$ac_exeext
4758 if { (eval echo "$as_me:4758: \"$ac_link\"") >&5
4759 (eval $ac_link) 2>&5
4761 echo "$as_me:4761: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try
='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:4764: \"$ac_try\"") >&5
4767 echo "$as_me:4767: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 emacs_cv_tm_gmtoff
=yes
4771 echo "$as_me: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4773 emacs_cv_tm_gmtoff
=no
4775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4777 echo "$as_me:4777: result: $emacs_cv_tm_gmtoff" >&5
4778 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4779 if test $emacs_cv_tm_gmtoff = yes; then
4780 cat >>confdefs.h
<<\EOF
4781 #define HAVE_TM_GMTOFF 1
4786 echo "$as_me:4786: checking for $CC option to accept ANSI C" >&5
4787 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4788 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 ac_cv_prog_cc_stdc
=no
4793 cat >conftest.
$ac_ext <<_ACEOF
4794 #line 4794 "configure"
4795 #include "confdefs.h"
4798 #include <sys/types.h>
4799 #include <sys/stat.h>
4800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4801 struct buf { int x; };
4802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4803 static char *e (p, i)
4809 static char *f (char * (*g) (char **, int), char **p, ...)
4814 s = g (p, va_arg (v,int));
4818 int test (int i, double x);
4819 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 # Don't try gcc -ansi; that turns off useful extensions and
4833 # breaks some systems' header files.
4834 # AIX -qlanglvl=ansi
4835 # Ultrix and OSF/1 -std1
4836 # HP-UX 10.20 and later -Ae
4837 # HP-UX older versions -Aa -D_HPUX_SOURCE
4838 # SVR4 -Xc -D__EXTENSIONS__
4839 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4841 CC
="$ac_save_CC $ac_arg"
4842 rm -f conftest.
$ac_objext
4843 if { (eval echo "$as_me:4843: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try
='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:4849: \"$ac_try\"") >&5
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_prog_cc_stdc
=$ac_arg
4857 echo "$as_me: failed program was:" >&5
4858 cat conftest.
$ac_ext >&5
4860 rm -f conftest.
$ac_objext
4862 rm -f conftest.
$ac_ext conftest.
$ac_objext
4867 case "x$ac_cv_prog_cc_stdc" in
4869 echo "$as_me:4869: result: none needed" >&5
4870 echo "${ECHO_T}none needed" >&6 ;;
4872 echo "$as_me:4872: result: $ac_cv_prog_cc_stdc" >&5
4873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4874 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4877 echo "$as_me:4877: checking for function prototypes" >&5
4878 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4879 if test "$ac_cv_prog_cc_stdc" != no
; then
4880 echo "$as_me:4880: result: yes" >&5
4881 echo "${ECHO_T}yes" >&6
4883 cat >>confdefs.h
<<\EOF
4884 #define PROTOTYPES 1
4888 echo "$as_me:4888: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4892 echo "$as_me:4892: checking for working volatile" >&5
4893 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4894 if test "${ac_cv_c_volatile+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 cat >conftest.
$ac_ext <<_ACEOF
4898 #line 4898 "configure"
4899 #include "confdefs.h"
4911 rm -f conftest.
$ac_objext
4912 if { (eval echo "$as_me:4912: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>&5
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try
='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:4918: \"$ac_try\"") >&5
4921 echo "$as_me:4921: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_c_volatile
=yes
4925 echo "$as_me: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4929 rm -f conftest.
$ac_objext conftest.
$ac_ext
4931 echo "$as_me:4931: result: $ac_cv_c_volatile" >&5
4932 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4933 if test $ac_cv_c_volatile = no
; then
4935 cat >>confdefs.h
<<\EOF
4941 echo "$as_me:4941: checking for an ANSI C-conforming const" >&5
4942 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4943 if test "${ac_cv_c_const+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 cat >conftest.
$ac_ext <<_ACEOF
4947 #line 4947 "configure"
4948 #include "confdefs.h"
4953 /* FIXME: Include the comments suggested by Paul. */
4955 /* Ultrix mips cc rejects this. */
4956 typedef int charset[2];
4958 /* SunOS 4.1.1 cc rejects this. */
4959 char const *const *ccp;
4961 /* NEC SVR4.0.2 mips cc rejects this. */
4962 struct point {int x, y;};
4963 static struct point const zero = {0,0};
4964 /* AIX XL C 1.02.0.0 rejects this.
4965 It does not let you subtract one const X* pointer from another in
4966 an arm of an if-expression whose if-part is not a constant
4968 const char *g = "string";
4969 ccp = &g + (g ? g-g : 0);
4970 /* HPUX 7.0 cc rejects these. */
4973 ccp = (char const *const *) p;
4974 { /* SCO 3.2v4 cc rejects this. */
4976 char const *s = 0 ? (char *) 0 : (char const *) 0;
4980 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4982 const int *foo = &x[0];
4985 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4986 typedef const int *iptr;
4990 { /* AIX XL C 1.02.0.0 rejects this saying
4991 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4992 struct s { int j; const int *ap[3]; };
4993 struct s *b; b->j = 5;
4995 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5004 rm -f conftest.
$ac_objext
5005 if { (eval echo "$as_me:5005: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>&5
5008 echo "$as_me:5008: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try
='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:5011: \"$ac_try\"") >&5
5014 echo "$as_me:5014: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5018 echo "$as_me: failed program was:" >&5
5019 cat conftest.
$ac_ext >&5
5022 rm -f conftest.
$ac_objext conftest.
$ac_ext
5024 echo "$as_me:5024: result: $ac_cv_c_const" >&5
5025 echo "${ECHO_T}$ac_cv_c_const" >&6
5026 if test $ac_cv_c_const = no
; then
5028 cat >>confdefs.h
<<\EOF
5034 echo "$as_me:5034: checking for void * support" >&5
5035 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5036 if test "${emacs_cv_void_star+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 cat >conftest.
$ac_ext <<_ACEOF
5040 #line 5040 "configure"
5041 #include "confdefs.h"
5051 rm -f conftest.
$ac_objext
5052 if { (eval echo "$as_me:5052: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>&5
5055 echo "$as_me:5055: \$? = $ac_status" >&5
5056 (exit $ac_status); } &&
5057 { ac_try
='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:5058: \"$ac_try\"") >&5
5061 echo "$as_me:5061: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 emacs_cv_void_star
=yes
5065 echo "$as_me: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5067 emacs_cv_void_star
=no
5069 rm -f conftest.
$ac_objext conftest.
$ac_ext
5071 echo "$as_me:5071: result: $emacs_cv_void_star" >&5
5072 echo "${ECHO_T}$emacs_cv_void_star" >&6
5073 if test $emacs_cv_void_star = yes; then
5074 cat >>confdefs.h
<<\EOF
5075 #define POINTER_TYPE void
5079 cat >>confdefs.h
<<\EOF
5080 #define POINTER_TYPE char
5085 echo "$as_me:5085: checking whether ${MAKE-make} sets \${MAKE}" >&5
5086 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5087 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5088 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 cat >conftest.
make <<\EOF
5093 @
echo 'ac_maketemp="${MAKE}"'
5095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5096 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5097 if test -n "$ac_maketemp"; then
5098 eval ac_cv_prog_make_
${ac_make}_set
=yes
5100 eval ac_cv_prog_make_
${ac_make}_set
=no
5104 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5105 echo "$as_me:5105: result: yes" >&5
5106 echo "${ECHO_T}yes" >&6
5109 echo "$as_me:5109: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5111 SET_MAKE
="MAKE=${MAKE-make}"
5114 echo "$as_me:5114: checking for long file names" >&5
5115 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5116 if test "${ac_cv_sys_long_file_names+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_cv_sys_long_file_names
=yes
5120 # Test for long file names in all the places we know might matter:
5121 # . the current directory, where building will happen
5122 # $prefix/lib where we will be installing things
5123 # $exec_prefix/lib likewise
5124 # eval it to expand exec_prefix.
5125 # $TMPDIR if set, where it might want to write temporary files
5126 # if $TMPDIR is not set:
5127 # /tmp where it might want to write temporary files
5130 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5133 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5135 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5136 test -d $ac_dir ||
continue
5137 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5138 ac_xdir
=$ac_dir/cf$$
5139 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
5140 ac_tf1
=$ac_xdir/conftest9012345
5141 ac_tf2
=$ac_xdir/conftest9012346
5142 (echo 1 >$ac_tf1) 2>/dev
/null
5143 (echo 2 >$ac_tf2) 2>/dev
/null
5144 ac_val
=`cat $ac_tf1 2>/dev/null`
5145 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
5146 ac_cv_sys_long_file_names
=no
5147 rm -rf $ac_xdir 2>/dev
/null
5150 rm -rf $ac_xdir 2>/dev
/null
5153 echo "$as_me:5153: result: $ac_cv_sys_long_file_names" >&5
5154 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5155 if test $ac_cv_sys_long_file_names = yes; then
5157 cat >>confdefs.h
<<\EOF
5158 #define HAVE_LONG_FILE_NAMES 1
5163 #### Choose a window system.
5165 echo "$as_me:5165: checking for X" >&5
5166 echo $ECHO_N "checking for X... $ECHO_C" >&6
5168 # Check whether --with-x or --without-x was given.
5169 if test "${with_x+set}" = set; then
5173 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5174 if test "x$with_x" = xno
; then
5175 # The user explicitly disabled X.
5178 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5179 # Both variables are already set.
5182 if test "${ac_cv_have_x+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 # One or both of the vars are not set, and there is no cached value.
5186 ac_x_includes
=no ac_x_libraries
=no
5188 if mkdir conftest.dir
; then
5190 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5191 cat >Imakefile
<<'EOF'
5193 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5195 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5197 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5199 for ac_extension
in a so sl
; do
5200 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5201 test -f $ac_im_libdir/libX11.
$ac_extension; then
5202 ac_im_usrlibdir
=$ac_im_libdir; break
5205 # Screen out bogus values from the imake configuration. They are
5206 # bogus both because they are the default anyway, and because
5207 # using them would break gcc on systems where it needs fixed includes.
5208 case $ac_im_incroot in
5210 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5212 case $ac_im_usrlibdir in
5214 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5221 # Standard set of common directories for X headers.
5222 # Check X11 before X11Rn because it is often a symlink to the current release.
5234 /usr/local/X11/include
5235 /usr/local/X11R6/include
5236 /usr/local/X11R5/include
5237 /usr/local/X11R4/include
5239 /usr/local/include/X11
5240 /usr/local/include/X11R6
5241 /usr/local/include/X11R5
5242 /usr/local/include/X11R4
5246 /usr/XFree86/include/X11
5250 /usr/unsupported/include
5252 /usr/local/x11r5/include
5253 /usr/lpp/Xamples/include
5255 /usr/openwin/include
5256 /usr/openwin/share/include'
5258 if test "$ac_x_includes" = no
; then
5259 # Guess where to find include files, by looking for Intrinsic.h.
5260 # First, try using that file with no special directory specified.
5261 cat >conftest.
$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5264 #include <X11/Intrinsic.h>
5266 if { (eval echo "$as_me:5266: \"$ac_cpp conftest.$ac_ext\"") >&5
5267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5269 egrep -v '^ *\+' conftest.er1
>conftest.err
5271 cat conftest.err
>&5
5272 echo "$as_me:5272: \$? = $ac_status" >&5
5273 (exit $ac_status); } >/dev
/null
; then
5274 if test -s conftest.err
; then
5275 ac_cpp_err
=$ac_c_preproc_warn_flag
5282 if test -z "$ac_cpp_err"; then
5283 # We can compile using X headers with no special include directory.
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.
$ac_ext >&5
5288 for ac_dir
in $ac_x_header_dirs; do
5289 if test -r "$ac_dir/X11/Intrinsic.h"; then
5290 ac_x_includes
=$ac_dir
5295 rm -f conftest.err conftest.
$ac_ext
5296 fi # $ac_x_includes = no
5298 if test "$ac_x_libraries" = no
; then
5299 # Check for the libraries.
5300 # See if we find them without any special options.
5301 # Don't add to $LIBS permanently.
5304 cat >conftest.
$ac_ext <<_ACEOF
5305 #line 5305 "configure"
5306 #include "confdefs.h"
5307 #include <X11/Intrinsic.h>
5316 rm -f conftest.
$ac_objext conftest
$ac_exeext
5317 if { (eval echo "$as_me:5317: \"$ac_link\"") >&5
5318 (eval $ac_link) 2>&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try
='test -s conftest$ac_exeext'
5323 { (eval echo "$as_me:5323: \"$ac_try\"") >&5
5326 echo "$as_me:5326: \$? = $ac_status" >&5
5327 (exit $ac_status); }; }; then
5329 # We can link X programs with no special library path.
5332 echo "$as_me: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5337 # Don't even attempt the hair of trying to link an X program!
5338 for ac_extension
in a so sl
; do
5339 if test -r $ac_dir/libXt.
$ac_extension; then
5340 ac_x_libraries
=$ac_dir
5346 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5347 fi # $ac_x_libraries = no
5349 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
5350 # Didn't find X anywhere. Cache the known absence of X.
5351 ac_cv_have_x
="have_x=no"
5353 # Record where we found X for the cache.
5354 ac_cv_have_x
="have_x=yes \
5355 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5360 eval "$ac_cv_have_x"
5363 if test "$have_x" != yes; then
5364 echo "$as_me:5364: result: $have_x" >&5
5365 echo "${ECHO_T}$have_x" >&6
5368 # If each of the values was on the command line, it overrides each guess.
5369 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5370 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5371 # Update the cache value to reflect the command line values.
5372 ac_cv_have_x
="have_x=yes \
5373 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5374 echo "$as_me:5374: result: libraries $x_libraries, headers $x_includes" >&5
5375 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5378 if test "$no_x" = yes; then
5384 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
5385 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5386 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5387 x_default_search_path
=""
5388 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5390 ${x_library}/X11/%L/%T/%N%C%S:\
5391 ${x_library}/X11/%l/%T/%N%C%S:\
5392 ${x_library}/X11/%T/%N%C%S:\
5393 ${x_library}/X11/%L/%T/%N%S:\
5394 ${x_library}/X11/%l/%T/%N%S:\
5395 ${x_library}/X11/%T/%N%S"
5396 if test x
"${x_default_search_path}" = x
; then
5397 x_default_search_path
=${x_search_path}
5399 x_default_search_path
="${x_search_path}:${x_default_search_path}"
5403 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
5404 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5407 if test x
"${x_includes}" = x
; then
5408 bitmapdir
=/usr
/include
/X11
/bitmaps
5410 # accumulate include directories that have X11 bitmap subdirectories
5412 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5413 if test -d "${bmd}/X11/bitmaps"; then
5414 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
5416 if test -d "${bmd}/bitmaps"; then
5417 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
5420 if test ${bmd_acc} != "dummyval"; then
5421 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5425 case "${window_system}" in
5429 case "${with_x_toolkit}" in
5430 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
5431 motif
) USE_X_TOOLKIT
=MOTIF
;;
5432 no
) USE_X_TOOLKIT
=none
;;
5433 * ) USE_X_TOOLKIT
=maybe
;;
5443 ### If we're using X11, we should use the X menu package.
5446 yes ) HAVE_MENUS
=yes ;;
5449 if test "${opsys}" = "hpux9"; then
5450 case "${x_libraries}" in
5452 opsysfile
="s/hpux9-x11r4.h"
5457 if test "${opsys}" = "hpux9shr"; then
5458 case "${x_libraries}" in
5460 opsysfile
="s/hpux9shxr4.h"
5465 ### Compute the unexec source name from the object name.
5466 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
5468 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5469 # Assume not, until told otherwise.
5472 echo "$as_me:5472: checking for malloc_get_state" >&5
5473 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5474 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 cat >conftest.
$ac_ext <<_ACEOF
5478 #line 5478 "configure"
5479 #include "confdefs.h"
5480 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char malloc_get_state (); below. */
5483 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5489 char malloc_get_state ();
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5501 f = malloc_get_state;
5508 rm -f conftest.
$ac_objext conftest
$ac_exeext
5509 if { (eval echo "$as_me:5509: \"$ac_link\"") >&5
5510 (eval $ac_link) 2>&5
5512 echo "$as_me:5512: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try
='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:5515: \"$ac_try\"") >&5
5518 echo "$as_me:5518: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_func_malloc_get_state
=yes
5522 echo "$as_me: failed program was:" >&5
5523 cat conftest.
$ac_ext >&5
5524 ac_cv_func_malloc_get_state
=no
5526 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5528 echo "$as_me:5528: result: $ac_cv_func_malloc_get_state" >&5
5529 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5530 if test $ac_cv_func_malloc_get_state = yes; then
5536 echo "$as_me:5536: checking for malloc_set_state" >&5
5537 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5538 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 cat >conftest.
$ac_ext <<_ACEOF
5542 #line 5542 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char malloc_set_state (); below. */
5547 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5553 char malloc_set_state ();
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5565 f = malloc_set_state;
5572 rm -f conftest.
$ac_objext conftest
$ac_exeext
5573 if { (eval echo "$as_me:5573: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5
5576 echo "$as_me:5576: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try
='test -s conftest$ac_exeext'
5579 { (eval echo "$as_me:5579: \"$ac_try\"") >&5
5582 echo "$as_me:5582: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 ac_cv_func_malloc_set_state
=yes
5586 echo "$as_me: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5588 ac_cv_func_malloc_set_state
=no
5590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5592 echo "$as_me:5592: result: $ac_cv_func_malloc_set_state" >&5
5593 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5594 if test $ac_cv_func_malloc_set_state = yes; then
5600 echo "$as_me:5600: checking whether __after_morecore_hook exists" >&5
5601 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5602 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat >conftest.
$ac_ext <<_ACEOF
5606 #line 5606 "configure"
5607 #include "confdefs.h"
5608 extern void (* __after_morecore_hook)();
5612 __after_morecore_hook = 0
5617 rm -f conftest.
$ac_objext conftest
$ac_exeext
5618 if { (eval echo "$as_me:5618: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5
5621 echo "$as_me:5621: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try
='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:5624: \"$ac_try\"") >&5
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 emacs_cv_var___after_morecore_hook
=yes
5631 echo "$as_me: failed program was:" >&5
5632 cat conftest.
$ac_ext >&5
5633 emacs_cv_var___after_morecore_hook
=no
5635 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5637 echo "$as_me:5637: result: $emacs_cv_var___after_morecore_hook" >&5
5638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5639 if test $emacs_cv_var___after_morecore_hook = no
; then
5642 if test "${system_malloc}" = "yes"; then
5645 (The GNU allocators don't work with this system configuration.)"
5647 if test "$doug_lea_malloc" = "yes" ; then
5648 if test "$GNU_MALLOC" = yes ; then
5650 (Using Doug Lea's new malloc from the GNU C Library.)"
5652 cat >>confdefs.h
<<\EOF
5653 #define DOUG_LEA_MALLOC 1
5658 if test x
"${REL_ALLOC}" = x
; then
5659 REL_ALLOC
=${GNU_MALLOC}
5662 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5664 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5665 inttypes.h stdint.h unistd.h
5667 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 echo "$as_me:5668: checking for $ac_header" >&5
5669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 cat >conftest.
$ac_ext <<_ACEOF
5674 #line 5674 "configure"
5675 #include "confdefs.h"
5676 $ac_includes_default
5677 #include <$ac_header>
5679 rm -f conftest.
$ac_objext
5680 if { (eval echo "$as_me:5680: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:5683: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try
='test -s conftest.$ac_objext'
5686 { (eval echo "$as_me:5686: \"$ac_try\"") >&5
5689 echo "$as_me:5689: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 eval "$as_ac_Header=yes"
5693 echo "$as_me: failed program was:" >&5
5694 cat conftest.
$ac_ext >&5
5695 eval "$as_ac_Header=no"
5697 rm -f conftest.
$ac_objext conftest.
$ac_ext
5699 echo "$as_me:5699: result: `eval echo '${'$as_ac_Header'}'`" >&5
5700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5702 cat >>confdefs.h
<<EOF
5703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5709 for ac_header
in stdlib.h unistd.h
5711 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5712 echo "$as_me:5712: checking for $ac_header" >&5
5713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.
$ac_ext <<_ACEOF
5718 #line 5718 "configure"
5719 #include "confdefs.h"
5720 #include <$ac_header>
5722 if { (eval echo "$as_me:5722: \"$ac_cpp conftest.$ac_ext\"") >&5
5723 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5725 egrep -v '^ *\+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:5728: \$? = $ac_status" >&5
5729 (exit $ac_status); } >/dev
/null
; then
5730 if test -s conftest.err
; then
5731 ac_cpp_err
=$ac_c_preproc_warn_flag
5738 if test -z "$ac_cpp_err"; then
5739 eval "$as_ac_Header=yes"
5741 echo "$as_me: failed program was:" >&5
5742 cat conftest.
$ac_ext >&5
5743 eval "$as_ac_Header=no"
5745 rm -f conftest.err conftest.
$ac_ext
5747 echo "$as_me:5747: result: `eval echo '${'$as_ac_Header'}'`" >&5
5748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h
<<EOF
5751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5757 for ac_func
in getpagesize
5759 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5760 echo "$as_me:5760: checking for $ac_func" >&5
5761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5762 if eval "test \"\${$as_ac_var+set}\" = set"; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.
$ac_ext <<_ACEOF
5766 #line 5766 "configure"
5767 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func (); below. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5783 /* The GNU C library defines this for functions which it implements
5784 to always fail with ENOSYS. Some functions are actually named
5785 something starting with __ and the normal name is an alias. */
5786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5796 rm -f conftest.
$ac_objext conftest
$ac_exeext
5797 if { (eval echo "$as_me:5797: \"$ac_link\"") >&5
5798 (eval $ac_link) 2>&5
5800 echo "$as_me:5800: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try
='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:5803: \"$ac_try\"") >&5
5806 echo "$as_me:5806: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 eval "$as_ac_var=yes"
5810 echo "$as_me: failed program was:" >&5
5811 cat conftest.
$ac_ext >&5
5812 eval "$as_ac_var=no"
5814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5816 echo "$as_me:5816: result: `eval echo '${'$as_ac_var'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5818 if test `eval echo '${'$as_ac_var'}'` = yes; then
5819 cat >>confdefs.h
<<EOF
5820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5826 echo "$as_me:5826: checking for working mmap" >&5
5827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test "$cross_compiling" = yes; then
5832 ac_cv_func_mmap_fixed_mapped
=no
5834 cat >conftest.
$ac_ext <<_ACEOF
5835 #line 5835 "configure"
5836 #include "confdefs.h"
5837 $ac_includes_default
5838 /* Thanks to Mike Haertel and Jim Avera for this test.
5839 Here is a matrix of mmap possibilities:
5840 mmap private not fixed
5841 mmap private fixed at somewhere currently unmapped
5842 mmap private fixed at somewhere already mapped
5843 mmap shared not fixed
5844 mmap shared fixed at somewhere currently unmapped
5845 mmap shared fixed at somewhere already mapped
5846 For private mappings, we should verify that changes cannot be read()
5847 back from the file, nor mmap's back from the file at a different
5848 address. (There have been systems where private was not correctly
5849 implemented like the infamous i386 svr4.0, and systems where the
5850 VM page cache was not coherent with the file system buffer cache
5851 like early versions of FreeBSD and possibly contemporary NetBSD.)
5852 For shared mappings, we should conversely verify that changes get
5853 propogated back to all the places they're supposed to be.
5855 Grep wants private fixed already mapped.
5856 The main things grep needs to know about mmap are:
5857 * does it exist and is it safe to write into the mmap'd area
5858 * how to use it (BSD variants) */
5861 #include <sys/mman.h>
5863 #if !STDC_HEADERS && !HAVE_STDLIB_H
5867 /* This mess was copied from the GNU getpagesize.h. */
5868 #if !HAVE_GETPAGESIZE
5869 /* Assume that all systems that can run configure have sys/param.h. */
5870 # if !HAVE_SYS_PARAM_H
5871 # define HAVE_SYS_PARAM_H 1
5874 # ifdef _SC_PAGESIZE
5875 # define getpagesize() sysconf(_SC_PAGESIZE)
5876 # else /* no _SC_PAGESIZE */
5877 # if HAVE_SYS_PARAM_H
5878 # include <sys/param.h>
5879 # ifdef EXEC_PAGESIZE
5880 # define getpagesize() EXEC_PAGESIZE
5881 # else /* no EXEC_PAGESIZE */
5883 # define getpagesize() NBPG * CLSIZE
5886 # endif /* no CLSIZE */
5887 # else /* no NBPG */
5889 # define getpagesize() NBPC
5890 # else /* no NBPC */
5892 # define getpagesize() PAGESIZE
5893 # endif /* PAGESIZE */
5894 # endif /* no NBPC */
5895 # endif /* no NBPG */
5896 # endif /* no EXEC_PAGESIZE */
5897 # else /* no HAVE_SYS_PARAM_H */
5898 # define getpagesize() 8192 /* punt totally */
5899 # endif /* no HAVE_SYS_PARAM_H */
5900 # endif /* no _SC_PAGESIZE */
5902 #endif /* no HAVE_GETPAGESIZE */
5907 char *data, *data2, *data3;
5911 pagesize = getpagesize ();
5913 /* First, make a file with some known garbage in it. */
5914 data = (char *) malloc (pagesize);
5917 for (i = 0; i < pagesize; ++i)
5918 *(data + i) = rand ();
5920 fd = creat ("conftest.mmap", 0600);
5923 if (write (fd, data, pagesize) != pagesize)
5927 /* Next, try to mmap the file at a fixed address which already has
5928 something else allocated at it. If we can, also make sure that
5929 we see the same garbage. */
5930 fd = open ("conftest.mmap", O_RDWR);
5933 data2 = (char *) malloc (2 * pagesize);
5936 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5940 for (i = 0; i < pagesize; ++i)
5941 if (*(data + i) != *(data2 + i))
5944 /* Finally, make sure that changes to the mapped area do not
5945 percolate back to the file as seen by read(). (This is a bug on
5946 some variants of i386 svr4.0.) */
5947 for (i = 0; i < pagesize; ++i)
5948 *(data2 + i) = *(data2 + i) + 1;
5949 data3 = (char *) malloc (pagesize);
5952 if (read (fd, data3, pagesize) != pagesize)
5954 for (i = 0; i < pagesize; ++i)
5955 if (*(data + i) != *(data3 + i))
5961 rm -f conftest
$ac_exeext
5962 if { (eval echo "$as_me:5962: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:5965: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5967 { (eval echo "$as_me:5967: \"$ac_try\"") >&5
5970 echo "$as_me:5970: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_func_mmap_fixed_mapped
=yes
5974 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 cat conftest.
$ac_ext >&5
5977 ac_cv_func_mmap_fixed_mapped
=no
5979 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5982 echo "$as_me:5982: result: $ac_cv_func_mmap_fixed_mapped" >&5
5983 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5984 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5986 cat >>confdefs.h
<<\EOF
5993 if test $use_mmap_for_buffers = yes; then
5997 LIBS
="$libsrc_libs $LIBS"
5999 echo "$as_me:5999: checking for dnet_ntoa in -ldnet" >&5
6000 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6001 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 ac_check_lib_save_LIBS
=$LIBS
6006 cat >conftest.
$ac_ext <<_ACEOF
6007 #line 6007 "configure"
6008 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error. */
6014 /* We use char because int might match the return type of a gcc2
6015 builtin and then its argument prototype would still apply. */
6025 rm -f conftest.
$ac_objext conftest
$ac_exeext
6026 if { (eval echo "$as_me:6026: \"$ac_link\"") >&5
6027 (eval $ac_link) 2>&5
6029 echo "$as_me:6029: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try
='test -s conftest$ac_exeext'
6032 { (eval echo "$as_me:6032: \"$ac_try\"") >&5
6035 echo "$as_me:6035: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_cv_lib_dnet_dnet_ntoa
=yes
6039 echo "$as_me: failed program was:" >&5
6040 cat conftest.
$ac_ext >&5
6041 ac_cv_lib_dnet_dnet_ntoa
=no
6043 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6044 LIBS
=$ac_check_lib_save_LIBS
6046 echo "$as_me:6046: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6047 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6048 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6049 cat >>confdefs.h
<<EOF
6050 #define HAVE_LIBDNET 1
6057 echo "$as_me:6057: checking for main in -lXbsd" >&5
6058 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6059 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_check_lib_save_LIBS
=$LIBS
6064 cat >conftest.
$ac_ext <<_ACEOF
6065 #line 6065 "configure"
6066 #include "confdefs.h"
6076 rm -f conftest.
$ac_objext conftest
$ac_exeext
6077 if { (eval echo "$as_me:6077: \"$ac_link\"") >&5
6078 (eval $ac_link) 2>&5
6080 echo "$as_me:6080: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try
='test -s conftest$ac_exeext'
6083 { (eval echo "$as_me:6083: \"$ac_try\"") >&5
6086 echo "$as_me:6086: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_cv_lib_Xbsd_main
=yes
6090 echo "$as_me: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6092 ac_cv_lib_Xbsd_main
=no
6094 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6095 LIBS
=$ac_check_lib_save_LIBS
6097 echo "$as_me:6097: result: $ac_cv_lib_Xbsd_main" >&5
6098 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6099 if test $ac_cv_lib_Xbsd_main = yes; then
6100 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
6103 echo "$as_me:6103: checking for cma_open in -lpthreads" >&5
6104 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6105 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_check_lib_save_LIBS
=$LIBS
6109 LIBS
="-lpthreads $LIBS"
6110 cat >conftest.
$ac_ext <<_ACEOF
6111 #line 6111 "configure"
6112 #include "confdefs.h"
6114 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6129 rm -f conftest.
$ac_objext conftest
$ac_exeext
6130 if { (eval echo "$as_me:6130: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>&5
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try
='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:6136: \"$ac_try\"") >&5
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_lib_pthreads_cma_open
=yes
6143 echo "$as_me: failed program was:" >&5
6144 cat conftest.
$ac_ext >&5
6145 ac_cv_lib_pthreads_cma_open
=no
6147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6148 LIBS
=$ac_check_lib_save_LIBS
6150 echo "$as_me:6150: result: $ac_cv_lib_pthreads_cma_open" >&5
6151 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6152 if test $ac_cv_lib_pthreads_cma_open = yes; then
6153 cat >>confdefs.h
<<EOF
6154 #define HAVE_LIBPTHREADS 1
6157 LIBS
="-lpthreads $LIBS"
6161 echo "$as_me:6161: checking for XFree86 in /usr/X386" >&5
6162 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6163 if test -d /usr
/X386
/include
; then
6165 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6169 echo "$as_me:6169: result: $HAVE_XFREE386" >&5
6170 echo "${ECHO_T}$HAVE_XFREE386" >&6
6172 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6173 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6175 REAL_CPPFLAGS
="$CPPFLAGS"
6177 if test "${HAVE_X11}" = "yes"; then
6178 DEFS
="$C_SWITCH_X_SITE $DEFS"
6179 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
6181 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
6182 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
6184 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6185 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6186 # but it's more convenient here to set LD_RUN_PATH
6187 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6188 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6189 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6193 if test "${opsys}" = "gnu-linux"; then
6194 echo "$as_me:6194: checking whether X on GNU/Linux needs -b to link" >&5
6195 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6196 cat >conftest.
$ac_ext <<_ACEOF
6197 #line 6197 "configure"
6198 #include "confdefs.h"
6203 XOpenDisplay ("foo");
6208 rm -f conftest.
$ac_objext conftest
$ac_exeext
6209 if { (eval echo "$as_me:6209: \"$ac_link\"") >&5
6210 (eval $ac_link) 2>&5
6212 echo "$as_me:6212: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try
='test -s conftest$ac_exeext'
6215 { (eval echo "$as_me:6215: \"$ac_try\"") >&5
6218 echo "$as_me:6218: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 xlinux_first_failure
=no
6222 echo "$as_me: failed program was:" >&5
6223 cat conftest.
$ac_ext >&5
6224 xlinux_first_failure
=yes
6226 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6227 if test "${xlinux_first_failure}" = "yes"; then
6228 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
6229 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
6230 OLD_CPPFLAGS
="$CPPFLAGS"
6232 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
6233 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
6234 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
6235 LIBS
="$LIBS -b i486-linuxaout"
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_second_failure
=no
6262 echo "$as_me: failed program was:" >&5
6263 cat conftest.
$ac_ext >&5
6264 xlinux_second_failure
=yes
6266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6267 if test "${xlinux_second_failure}" = "yes"; then
6268 # If we get the same failure with -b, there is no use adding -b.
6269 # So take it out. This plays safe.
6270 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
6271 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
6272 CPPFLAGS
="$OLD_CPPFLAGS"
6274 echo "$as_me:6274: result: no" >&5
6275 echo "${ECHO_T}no" >&6
6277 echo "$as_me:6277: result: yes" >&5
6278 echo "${ECHO_T}yes" >&6
6281 echo "$as_me:6281: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6286 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6287 # header files included from there.
6288 echo "$as_me:6288: checking for Xkb" >&5
6289 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6290 cat >conftest.
$ac_ext <<_ACEOF
6291 #line 6291 "configure"
6292 #include "confdefs.h"
6293 #include <X11/Xlib.h>
6294 #include <X11/XKBlib.h>
6298 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6303 rm -f conftest.
$ac_objext conftest
$ac_exeext
6304 if { (eval echo "$as_me:6304: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6307 echo "$as_me:6307: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:6310: \"$ac_try\"") >&5
6313 echo "$as_me:6313: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6317 echo "$as_me: failed program was:" >&5
6318 cat conftest.
$ac_ext >&5
6321 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6322 echo "$as_me:6322: result: $emacs_xkb" >&5
6323 echo "${ECHO_T}$emacs_xkb" >&6
6324 if test $emacs_xkb = yes; then
6325 cat >>confdefs.h
<<\EOF
6326 #define HAVE_XKBGETKEYBOARD 1
6331 for ac_func
in XrmSetDatabase XScreenResourceString \
6332 XScreenNumberOfScreen XSetWMProtocols
6334 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6335 echo "$as_me:6335: checking for $ac_func" >&5
6336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_var+set}\" = set"; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 cat >conftest.
$ac_ext <<_ACEOF
6341 #line 6341 "configure"
6342 #include "confdefs.h"
6343 /* System header to define __stub macros and hopefully few prototypes,
6344 which can conflict with char $ac_func (); below. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6358 /* The GNU C library defines this for functions which it implements
6359 to always fail with ENOSYS. Some functions are actually named
6360 something starting with __ and the normal name is an alias. */
6361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6371 rm -f conftest.
$ac_objext conftest
$ac_exeext
6372 if { (eval echo "$as_me:6372: \"$ac_link\"") >&5
6373 (eval $ac_link) 2>&5
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try
='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:6378: \"$ac_try\"") >&5
6381 echo "$as_me:6381: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 eval "$as_ac_var=yes"
6385 echo "$as_me: failed program was:" >&5
6386 cat conftest.
$ac_ext >&5
6387 eval "$as_ac_var=no"
6389 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6391 echo "$as_me:6391: result: `eval echo '${'$as_ac_var'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6393 if test `eval echo '${'$as_ac_var'}'` = yes; then
6394 cat >>confdefs.h
<<EOF
6395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6403 if test "${window_system}" = "x11"; then
6404 echo "$as_me:6404: checking X11 version 6" >&5
6405 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6406 if test "${emacs_cv_x11_version_6+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line 6410 "configure"
6411 #include "confdefs.h"
6412 #include <X11/Xlib.h>
6416 #if XlibSpecificationRelease < 6
6424 rm -f conftest.
$ac_objext conftest
$ac_exeext
6425 if { (eval echo "$as_me:6425: \"$ac_link\"") >&5
6426 (eval $ac_link) 2>&5
6428 echo "$as_me:6428: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try
='test -s conftest$ac_exeext'
6431 { (eval echo "$as_me:6431: \"$ac_try\"") >&5
6434 echo "$as_me:6434: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 emacs_cv_x11_version_6
=yes
6438 echo "$as_me: failed program was:" >&5
6439 cat conftest.
$ac_ext >&5
6440 emacs_cv_x11_version_6
=no
6442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6445 if test $emacs_cv_x11_version_6 = yes; then
6446 echo "$as_me:6446: result: 6 or newer" >&5
6447 echo "${ECHO_T}6 or newer" >&6
6448 cat >>confdefs.h
<<\EOF
6449 #define HAVE_X11R6 1
6453 echo "$as_me:6453: result: before 6" >&5
6454 echo "${ECHO_T}before 6" >&6
6458 if test "${window_system}" = "x11"; then
6459 echo "$as_me:6459: checking X11 version 5" >&5
6460 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6461 if test "${emacs_cv_x11_version_5+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 cat >conftest.
$ac_ext <<_ACEOF
6465 #line 6465 "configure"
6466 #include "confdefs.h"
6467 #include <X11/Xlib.h>
6471 #if XlibSpecificationRelease < 5
6479 rm -f conftest.
$ac_objext conftest
$ac_exeext
6480 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:6486: \"$ac_try\"") >&5
6489 echo "$as_me:6489: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 emacs_cv_x11_version_5
=yes
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.
$ac_ext >&5
6495 emacs_cv_x11_version_5
=no
6497 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6500 if test $emacs_cv_x11_version_5 = yes; then
6501 echo "$as_me:6501: result: 5 or newer" >&5
6502 echo "${ECHO_T}5 or newer" >&6
6504 cat >>confdefs.h
<<\EOF
6505 #define HAVE_X11R5 1
6510 echo "$as_me:6510: result: before 5" >&5
6511 echo "${ECHO_T}before 5" >&6
6515 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
6516 if test x
"${HAVE_X11R5}" = xyes
; then
6517 echo "$as_me:6517: checking X11 version 5 with Xaw" >&5
6518 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6519 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.
$ac_ext <<_ACEOF
6523 #line 6523 "configure"
6524 #include "confdefs.h"
6526 #include <X11/Intrinsic.h>
6527 #include <X11/Xaw/Simple.h>
6536 rm -f conftest.
$ac_objext conftest
$ac_exeext
6537 if { (eval echo "$as_me:6537: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6543: \"$ac_try\"") >&5
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 emacs_cv_x11_version_5_with_xaw
=yes
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6552 emacs_cv_x11_version_5_with_xaw
=no
6554 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6557 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6558 echo "$as_me:6558: result: 5 or newer, with Xaw; use toolkit by default" >&5
6559 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6562 echo "$as_me:6562: result: before 5 or no Xaw; do not use toolkit by default" >&5
6563 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6571 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
6573 if test "${USE_X_TOOLKIT}" != "none"; then
6574 echo "$as_me:6574: checking X11 toolkit version" >&5
6575 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6576 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 cat >conftest.
$ac_ext <<_ACEOF
6580 #line 6580 "configure"
6581 #include "confdefs.h"
6582 #include <X11/Intrinsic.h>
6586 #if XtSpecificationRelease < 6
6594 rm -f conftest.
$ac_objext conftest
$ac_exeext
6595 if { (eval echo "$as_me:6595: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try
='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:6601: \"$ac_try\"") >&5
6604 echo "$as_me:6604: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 emacs_cv_x11_toolkit_version_6
=yes
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6610 emacs_cv_x11_toolkit_version_6
=no
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6615 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
6616 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6617 echo "$as_me:6617: result: 6 or newer" >&5
6618 echo "${ECHO_T}6 or newer" >&6
6619 cat >>confdefs.h
<<\EOF
6620 #define HAVE_X11XTR6 1
6624 echo "$as_me:6624: result: before 6" >&5
6625 echo "${ECHO_T}before 6" >&6
6629 if test x
$HAVE_X11XTR6 = xyes
; then
6630 LIBS
="-lXt -lSM -lICE $LIBS"
6635 echo "$as_me:6635: checking for XmuConvertStandardSelection in -lXmu" >&5
6636 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6637 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS
=$LIBS
6642 cat >conftest.
$ac_ext <<_ACEOF
6643 #line 6643 "configure"
6644 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char XmuConvertStandardSelection ();
6656 XmuConvertStandardSelection ();
6661 rm -f conftest.
$ac_objext conftest
$ac_exeext
6662 if { (eval echo "$as_me:6662: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5
6665 echo "$as_me:6665: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try
='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:6668: \"$ac_try\"") >&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
6675 echo "$as_me: failed program was:" >&5
6676 cat conftest.
$ac_ext >&5
6677 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
6679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6680 LIBS
=$ac_check_lib_save_LIBS
6682 echo "$as_me:6682: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6683 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6684 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6685 cat >>confdefs.h
<<EOF
6686 #define HAVE_LIBXMU 1
6693 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
6696 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6697 if test "${HAVE_X11}" = "yes"; then
6698 if test "${USE_X_TOOLKIT}" != "none"; then
6700 echo "$as_me:6700: checking for XShapeQueryExtension in -lXext" >&5
6701 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6702 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 ac_check_lib_save_LIBS
=$LIBS
6707 cat >conftest.
$ac_ext <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6711 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6717 char XShapeQueryExtension ();
6721 XShapeQueryExtension ();
6726 rm -f conftest.
$ac_objext conftest
$ac_exeext
6727 if { (eval echo "$as_me:6727: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6730 echo "$as_me:6730: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try
='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:6733: \"$ac_try\"") >&5
6736 echo "$as_me:6736: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_lib_Xext_XShapeQueryExtension
=yes
6740 echo "$as_me: failed program was:" >&5
6741 cat conftest.
$ac_ext >&5
6742 ac_cv_lib_Xext_XShapeQueryExtension
=no
6744 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6745 LIBS
=$ac_check_lib_save_LIBS
6747 echo "$as_me:6747: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6748 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6749 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6750 cat >>confdefs.h
<<EOF
6751 #define HAVE_LIBXEXT 1
6761 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6762 echo "$as_me:6762: checking for Motif version 2.1" >&5
6763 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6764 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6768 #line 6768 "configure"
6769 #include "confdefs.h"
6774 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6777 Motif version prior to 2.1.
6783 rm -f conftest.
$ac_objext
6784 if { (eval echo "$as_me:6784: \"$ac_compile\"") >&5
6785 (eval $ac_compile) 2>&5
6787 echo "$as_me:6787: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try
='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:6790: \"$ac_try\"") >&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 emacs_cv_motif_version_2_1
=yes
6797 echo "$as_me: failed program was:" >&5
6798 cat conftest.
$ac_ext >&5
6799 emacs_cv_motif_version_2_1
=no
6801 rm -f conftest.
$ac_objext conftest.
$ac_ext
6803 echo "$as_me:6803: result: $emacs_cv_motif_version_2_1" >&5
6804 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6805 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
6806 if test $emacs_cv_motif_version_2_1 = yes; then
6808 cat >>confdefs.h
<<\EOF
6809 #define HAVE_MOTIF_2_1 1
6812 echo "$as_me:6812: checking for XpCreateContext in -lXp" >&5
6813 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6814 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_check_lib_save_LIBS
=$LIBS
6819 cat >conftest.
$ac_ext <<_ACEOF
6820 #line 6820 "configure"
6821 #include "confdefs.h"
6823 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6829 char XpCreateContext ();
6838 rm -f conftest.
$ac_objext conftest
$ac_exeext
6839 if { (eval echo "$as_me:6839: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try
='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:6845: \"$ac_try\"") >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_lib_Xp_XpCreateContext
=yes
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6854 ac_cv_lib_Xp_XpCreateContext
=no
6856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6857 LIBS
=$ac_check_lib_save_LIBS
6859 echo "$as_me:6859: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6860 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6861 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6865 if test ${HAVE_LIBXP} = yes; then
6866 cat >>confdefs.h
<<\EOF
6867 #define HAVE_LIBXP 1
6874 ### Is -lXaw3d available?
6876 if test "${HAVE_X11}" = "yes"; then
6877 if test "${USE_X_TOOLKIT}" != "none"; then
6878 echo "$as_me:6878: checking for X11/Xaw3d/Scrollbar.h" >&5
6879 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6880 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 cat >conftest.
$ac_ext <<_ACEOF
6884 #line 6884 "configure"
6885 #include "confdefs.h"
6886 #include <X11/Xaw3d/Scrollbar.h>
6888 if { (eval echo "$as_me:6888: \"$ac_cpp conftest.$ac_ext\"") >&5
6889 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6891 egrep -v '^ *\+' conftest.er1
>conftest.err
6893 cat conftest.err
>&5
6894 echo "$as_me:6894: \$? = $ac_status" >&5
6895 (exit $ac_status); } >/dev
/null
; then
6896 if test -s conftest.err
; then
6897 ac_cpp_err
=$ac_c_preproc_warn_flag
6904 if test -z "$ac_cpp_err"; then
6905 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
6907 echo "$as_me: failed program was:" >&5
6908 cat conftest.
$ac_ext >&5
6909 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
6911 rm -f conftest.err conftest.
$ac_ext
6913 echo "$as_me:6913: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6914 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6915 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6916 echo "$as_me:6916: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6917 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6918 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 ac_check_lib_save_LIBS
=$LIBS
6922 LIBS
="-lXaw3d $LIBS"
6923 cat >conftest.
$ac_ext <<_ACEOF
6924 #line 6924 "configure"
6925 #include "confdefs.h"
6927 /* Override any gcc2 internal prototype to avoid an error. */
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6933 char XawScrollbarSetThumb ();
6937 XawScrollbarSetThumb ();
6942 rm -f conftest.
$ac_objext conftest
$ac_exeext
6943 if { (eval echo "$as_me:6943: \"$ac_link\"") >&5
6944 (eval $ac_link) 2>&5
6946 echo "$as_me:6946: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try
='test -s conftest$ac_exeext'
6949 { (eval echo "$as_me:6949: \"$ac_try\"") >&5
6952 echo "$as_me:6952: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
6956 echo "$as_me: failed program was:" >&5
6957 cat conftest.
$ac_ext >&5
6958 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
6960 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6961 LIBS
=$ac_check_lib_save_LIBS
6963 echo "$as_me:6963: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6964 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6965 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6971 if test "${HAVE_XAW3D}" = "yes"; then
6972 cat >>confdefs.h
<<\EOF
6973 #define HAVE_XAW3D 1
6980 USE_TOOLKIT_SCROLL_BARS
=no
6981 if test "${with_toolkit_scroll_bars}" != "no"; then
6982 if test "${USE_X_TOOLKIT}" != "none"; then
6983 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6984 cat >>confdefs.h
<<\EOF
6985 #define USE_TOOLKIT_SCROLL_BARS 1
6989 USE_TOOLKIT_SCROLL_BARS
=yes
6990 elif test "${HAVE_XAW3D}" = "yes"; then
6991 cat >>confdefs.h
<<\EOF
6992 #define USE_TOOLKIT_SCROLL_BARS 1
6995 USE_TOOLKIT_SCROLL_BARS
=yes
7000 if test "${with_xim}" != "no"; then
7001 cat >>confdefs.h
<<\EOF
7007 ### Use -lXpm if available, unless `--with-xpm=no'.
7009 if test "${HAVE_X11}" = "yes"; then
7010 if test "${with_xpm}" != "no"; then
7011 echo "$as_me:7011: checking for X11/xpm.h" >&5
7012 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7013 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 cat >conftest.
$ac_ext <<_ACEOF
7017 #line 7017 "configure"
7018 #include "confdefs.h"
7019 #include <X11/xpm.h>
7021 if { (eval echo "$as_me:7021: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7024 egrep -v '^ *\+' conftest.er1
>conftest.err
7026 cat conftest.err
>&5
7027 echo "$as_me:7027: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev
/null
; then
7029 if test -s conftest.err
; then
7030 ac_cpp_err
=$ac_c_preproc_warn_flag
7037 if test -z "$ac_cpp_err"; then
7038 ac_cv_header_X11_xpm_h
=yes
7040 echo "$as_me: failed program was:" >&5
7041 cat conftest.
$ac_ext >&5
7042 ac_cv_header_X11_xpm_h
=no
7044 rm -f conftest.err conftest.
$ac_ext
7046 echo "$as_me:7046: result: $ac_cv_header_X11_xpm_h" >&5
7047 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7048 if test $ac_cv_header_X11_xpm_h = yes; then
7049 echo "$as_me:7049: checking for XpmReadFileToPixmap in -lXpm" >&5
7050 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7051 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 ac_check_lib_save_LIBS
=$LIBS
7055 LIBS
="-lXpm -lX11 $LIBS"
7056 cat >conftest.
$ac_ext <<_ACEOF
7057 #line 7057 "configure"
7058 #include "confdefs.h"
7060 /* Override any gcc2 internal prototype to avoid an error. */
7064 /* We use char because int might match the return type of a gcc2
7065 builtin and then its argument prototype would still apply. */
7066 char XpmReadFileToPixmap ();
7070 XpmReadFileToPixmap ();
7075 rm -f conftest.
$ac_objext conftest
$ac_exeext
7076 if { (eval echo "$as_me:7076: \"$ac_link\"") >&5
7077 (eval $ac_link) 2>&5
7079 echo "$as_me:7079: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try
='test -s conftest$ac_exeext'
7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
7089 echo "$as_me: failed program was:" >&5
7090 cat conftest.
$ac_ext >&5
7091 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
7093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7094 LIBS
=$ac_check_lib_save_LIBS
7096 echo "$as_me:7096: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7097 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7098 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7104 if test "${HAVE_XPM}" = "yes"; then
7105 echo "$as_me:7105: checking for XpmReturnAllocPixels preprocessor define" >&5
7106 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7107 cat >conftest.
$ac_ext <<_ACEOF
7108 #line 7108 "configure"
7109 #include "confdefs.h"
7110 #include "X11/xpm.h"
7111 #ifndef XpmReturnAllocPixels
7112 no_return_alloc_pixels
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
7124 if test "${HAVE_XPM}" = "yes"; then
7125 echo "$as_me:7125: result: yes" >&5
7126 echo "${ECHO_T}yes" >&6
7128 echo "$as_me:7128: result: no" >&5
7129 echo "${ECHO_T}no" >&6
7134 if test "${HAVE_XPM}" = "yes"; then
7135 cat >>confdefs.h
<<\EOF
7142 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7144 if test "${HAVE_X11}" = "yes"; then
7145 if test "${with_jpeg}" != "no"; then
7146 echo "$as_me:7146: checking for jerror.h" >&5
7147 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7148 if test "${ac_cv_header_jerror_h+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7152 #line 7152 "configure"
7153 #include "confdefs.h"
7156 if { (eval echo "$as_me:7156: \"$ac_cpp conftest.$ac_ext\"") >&5
7157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7159 egrep -v '^ *\+' conftest.er1
>conftest.err
7161 cat conftest.err
>&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 (exit $ac_status); } >/dev
/null
; then
7164 if test -s conftest.err
; then
7165 ac_cpp_err
=$ac_c_preproc_warn_flag
7172 if test -z "$ac_cpp_err"; then
7173 ac_cv_header_jerror_h
=yes
7175 echo "$as_me: failed program was:" >&5
7176 cat conftest.
$ac_ext >&5
7177 ac_cv_header_jerror_h
=no
7179 rm -f conftest.err conftest.
$ac_ext
7181 echo "$as_me:7181: result: $ac_cv_header_jerror_h" >&5
7182 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7183 if test $ac_cv_header_jerror_h = yes; then
7184 echo "$as_me:7184: checking for jpeg_destroy_compress in -ljpeg" >&5
7185 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7186 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 ac_check_lib_save_LIBS
=$LIBS
7191 cat >conftest.
$ac_ext <<_ACEOF
7192 #line 7192 "configure"
7193 #include "confdefs.h"
7195 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char jpeg_destroy_compress ();
7205 jpeg_destroy_compress ();
7210 rm -f conftest.
$ac_objext conftest
$ac_exeext
7211 if { (eval echo "$as_me:7211: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try
='test -s conftest$ac_exeext'
7217 { (eval echo "$as_me:7217: \"$ac_try\"") >&5
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
7224 echo "$as_me: failed program was:" >&5
7225 cat conftest.
$ac_ext >&5
7226 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
7228 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7229 LIBS
=$ac_check_lib_save_LIBS
7231 echo "$as_me:7231: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7232 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7233 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7241 if test "${HAVE_JPEG}" = "yes"; then
7242 cat >>confdefs.h
<<\EOF
7246 cat >conftest.
$ac_ext <<_ACEOF
7247 #line 7247 "configure"
7248 #include "confdefs.h"
7249 #include <jpeglib.h>
7250 version=JPEG_LIB_VERSION
7253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7254 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
7255 cat >>confdefs.h
<<\EOF
7260 { echo "$as_me:7260: WARNING: libjpeg found, but not version 6b or later" >&5
7261 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7269 ### Use -lpng if available, unless `--with-png=no'.
7271 if test "${HAVE_X11}" = "yes"; then
7272 if test "${with_png}" != "no"; then
7273 echo "$as_me:7273: checking for png.h" >&5
7274 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7275 if test "${ac_cv_header_png_h+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.
$ac_ext <<_ACEOF
7279 #line 7279 "configure"
7280 #include "confdefs.h"
7283 if { (eval echo "$as_me:7283: \"$ac_cpp conftest.$ac_ext\"") >&5
7284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7286 egrep -v '^ *\+' conftest.er1
>conftest.err
7288 cat conftest.err
>&5
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); } >/dev
/null
; then
7291 if test -s conftest.err
; then
7292 ac_cpp_err
=$ac_c_preproc_warn_flag
7299 if test -z "$ac_cpp_err"; then
7300 ac_cv_header_png_h
=yes
7302 echo "$as_me: failed program was:" >&5
7303 cat conftest.
$ac_ext >&5
7304 ac_cv_header_png_h
=no
7306 rm -f conftest.err conftest.
$ac_ext
7308 echo "$as_me:7308: result: $ac_cv_header_png_h" >&5
7309 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7310 if test $ac_cv_header_png_h = yes; then
7311 echo "$as_me:7311: checking for png_get_channels in -lpng" >&5
7312 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7313 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_check_lib_save_LIBS
=$LIBS
7317 LIBS
="-lpng -lz -lm $LIBS"
7318 cat >conftest.
$ac_ext <<_ACEOF
7319 #line 7319 "configure"
7320 #include "confdefs.h"
7322 /* Override any gcc2 internal prototype to avoid an error. */
7326 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7328 char png_get_channels ();
7332 png_get_channels ();
7337 rm -f conftest.
$ac_objext conftest
$ac_exeext
7338 if { (eval echo "$as_me:7338: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>&5
7341 echo "$as_me:7341: \$? = $ac_status" >&5
7342 (exit $ac_status); } &&
7343 { ac_try
='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:7344: \"$ac_try\"") >&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_lib_png_png_get_channels
=yes
7351 echo "$as_me: failed program was:" >&5
7352 cat conftest.
$ac_ext >&5
7353 ac_cv_lib_png_png_get_channels
=no
7355 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7356 LIBS
=$ac_check_lib_save_LIBS
7358 echo "$as_me:7358: result: $ac_cv_lib_png_png_get_channels" >&5
7359 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7360 if test $ac_cv_lib_png_png_get_channels = yes; then
7368 if test "${HAVE_PNG}" = "yes"; then
7369 cat >>confdefs.h
<<\EOF
7376 ### Use -ltiff if available, unless `--with-tiff=no'.
7378 if test "${HAVE_X11}" = "yes"; then
7379 if test "${with_tiff}" != "no"; then
7380 echo "$as_me:7380: checking for tiffio.h" >&5
7381 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7382 if test "${ac_cv_header_tiffio_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_tiffio_h
=yes
7409 echo "$as_me: failed program was:" >&5
7410 cat conftest.
$ac_ext >&5
7411 ac_cv_header_tiffio_h
=no
7413 rm -f conftest.err conftest.
$ac_ext
7415 echo "$as_me:7415: result: $ac_cv_header_tiffio_h" >&5
7416 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7417 if test $ac_cv_header_tiffio_h = yes; then
7419 # At least one tiff package requires the jpeg library.
7420 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
7421 echo "$as_me:7421: checking for TIFFGetVersion in -ltiff" >&5
7422 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7423 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 ac_check_lib_save_LIBS
=$LIBS
7427 LIBS
="-ltiff $tifflibs $LIBS"
7428 cat >conftest.
$ac_ext <<_ACEOF
7429 #line 7429 "configure"
7430 #include "confdefs.h"
7432 /* Override any gcc2 internal prototype to avoid an error. */
7436 /* We use char because int might match the return type of a gcc2
7437 builtin and then its argument prototype would still apply. */
7438 char TIFFGetVersion ();
7447 rm -f conftest.
$ac_objext conftest
$ac_exeext
7448 if { (eval echo "$as_me:7448: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7451 echo "$as_me:7451: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try
='test -s conftest$ac_exeext'
7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_lib_tiff_TIFFGetVersion
=yes
7461 echo "$as_me: failed program was:" >&5
7462 cat conftest.
$ac_ext >&5
7463 ac_cv_lib_tiff_TIFFGetVersion
=no
7465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7466 LIBS
=$ac_check_lib_save_LIBS
7468 echo "$as_me:7468: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7469 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7470 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7478 if test "${HAVE_TIFF}" = "yes"; then
7479 cat >>confdefs.h
<<\EOF
7486 ### Use -lgif if available, unless `--with-gif=no'.
7488 if test "${HAVE_X11}" = "yes"; then
7489 if test "${with_gif}" != "no"; then
7490 echo "$as_me:7490: checking for gif_lib.h" >&5
7491 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7492 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.
$ac_ext <<_ACEOF
7496 #line 7496 "configure"
7497 #include "confdefs.h"
7498 #include <gif_lib.h>
7500 if { (eval echo "$as_me:7500: \"$ac_cpp conftest.$ac_ext\"") >&5
7501 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7503 egrep -v '^ *\+' conftest.er1
>conftest.err
7505 cat conftest.err
>&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 (exit $ac_status); } >/dev
/null
; then
7508 if test -s conftest.err
; then
7509 ac_cpp_err
=$ac_c_preproc_warn_flag
7516 if test -z "$ac_cpp_err"; then
7517 ac_cv_header_gif_lib_h
=yes
7519 echo "$as_me: failed program was:" >&5
7520 cat conftest.
$ac_ext >&5
7521 ac_cv_header_gif_lib_h
=no
7523 rm -f conftest.err conftest.
$ac_ext
7525 echo "$as_me:7525: result: $ac_cv_header_gif_lib_h" >&5
7526 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7527 if test $ac_cv_header_gif_lib_h = yes; then
7528 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7529 # Earlier versions can crash Emacs.
7530 echo "$as_me:7530: checking for EGifPutExtensionLast in -lungif" >&5
7531 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7532 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_check_lib_save_LIBS
=$LIBS
7536 LIBS
="-lungif $LIBS"
7537 cat >conftest.
$ac_ext <<_ACEOF
7538 #line 7538 "configure"
7539 #include "confdefs.h"
7541 /* Override any gcc2 internal prototype to avoid an error. */
7545 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */
7547 char EGifPutExtensionLast ();
7551 EGifPutExtensionLast ();
7556 rm -f conftest.
$ac_objext conftest
$ac_exeext
7557 if { (eval echo "$as_me:7557: \"$ac_link\"") >&5
7558 (eval $ac_link) 2>&5
7560 echo "$as_me:7560: \$? = $ac_status" >&5
7561 (exit $ac_status); } &&
7562 { ac_try
='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:7563: \"$ac_try\"") >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
7570 echo "$as_me: failed program was:" >&5
7571 cat conftest.
$ac_ext >&5
7572 ac_cv_lib_ungif_EGifPutExtensionLast
=no
7574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7575 LIBS
=$ac_check_lib_save_LIBS
7577 echo "$as_me:7577: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7578 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7579 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7587 if test "${HAVE_GIF}" = "yes"; then
7588 cat >>confdefs.h
<<\EOF
7595 ### Use session management (-lSM -lICE) if available
7597 if test "${HAVE_X11}" = "yes"; then
7598 echo "$as_me:7598: checking for X11/SM/SMlib.h" >&5
7599 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7600 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 cat >conftest.
$ac_ext <<_ACEOF
7604 #line 7604 "configure"
7605 #include "confdefs.h"
7606 #include <X11/SM/SMlib.h>
7608 if { (eval echo "$as_me:7608: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7611 egrep -v '^ *\+' conftest.er1
>conftest.err
7613 cat conftest.err
>&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev
/null
; then
7616 if test -s conftest.err
; then
7617 ac_cpp_err
=$ac_c_preproc_warn_flag
7624 if test -z "$ac_cpp_err"; then
7625 ac_cv_header_X11_SM_SMlib_h
=yes
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7629 ac_cv_header_X11_SM_SMlib_h
=no
7631 rm -f conftest.err conftest.
$ac_ext
7633 echo "$as_me:7633: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7634 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7635 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7636 echo "$as_me:7636: checking for SmcOpenConnection in -lSM" >&5
7637 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7638 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_check_lib_save_LIBS
=$LIBS
7643 cat >conftest.
$ac_ext <<_ACEOF
7644 #line 7644 "configure"
7645 #include "confdefs.h"
7647 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7653 char SmcOpenConnection ();
7657 SmcOpenConnection ();
7662 rm -f conftest.
$ac_objext conftest
$ac_exeext
7663 if { (eval echo "$as_me:7663: \"$ac_link\"") >&5
7664 (eval $ac_link) 2>&5
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 (exit $ac_status); } &&
7668 { ac_try
='test -s conftest$ac_exeext'
7669 { (eval echo "$as_me:7669: \"$ac_try\"") >&5
7672 echo "$as_me:7672: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 ac_cv_lib_SM_SmcOpenConnection
=yes
7676 echo "$as_me: failed program was:" >&5
7677 cat conftest.
$ac_ext >&5
7678 ac_cv_lib_SM_SmcOpenConnection
=no
7680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7681 LIBS
=$ac_check_lib_save_LIBS
7683 echo "$as_me:7683: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7684 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7685 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7693 if test "${HAVE_X_SM}" = "yes"; then
7694 cat >>confdefs.h
<<\EOF
7700 *) LIBS
="-lSM -lICE $LIBS" ;;
7705 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7706 echo "$as_me:7706: checking whether netdb declares h_errno" >&5
7707 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7708 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 cat >conftest.
$ac_ext <<_ACEOF
7712 #line 7712 "configure"
7713 #include "confdefs.h"
7723 rm -f conftest.
$ac_objext conftest
$ac_exeext
7724 if { (eval echo "$as_me:7724: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>&5
7727 echo "$as_me:7727: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try
='test -s conftest$ac_exeext'
7730 { (eval echo "$as_me:7730: \"$ac_try\"") >&5
7733 echo "$as_me:7733: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
7735 emacs_cv_netdb_declares_h_errno
=yes
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7739 emacs_cv_netdb_declares_h_errno
=no
7741 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7743 echo "$as_me:7743: result: $emacs_cv_netdb_declares_h_errno" >&5
7744 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7745 if test $emacs_cv_netdb_declares_h_errno = yes; then
7746 cat >>confdefs.h
<<\EOF
7747 #define HAVE_H_ERRNO 1
7752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7753 # for constant arguments. Useless!
7754 echo "$as_me:7754: checking for working alloca.h" >&5
7755 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7756 if test "${ac_cv_working_alloca_h+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 cat >conftest.
$ac_ext <<_ACEOF
7760 #line 7760 "configure"
7761 #include "confdefs.h"
7766 char *p = (char *) alloca (2 * sizeof (int));
7771 rm -f conftest.
$ac_objext conftest
$ac_exeext
7772 if { (eval echo "$as_me:7772: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -s conftest$ac_exeext'
7778 { (eval echo "$as_me:7778: \"$ac_try\"") >&5
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_working_alloca_h
=yes
7785 echo "$as_me: failed program was:" >&5
7786 cat conftest.
$ac_ext >&5
7787 ac_cv_working_alloca_h
=no
7789 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7791 echo "$as_me:7791: result: $ac_cv_working_alloca_h" >&5
7792 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7793 if test $ac_cv_working_alloca_h = yes; then
7795 cat >>confdefs.h
<<\EOF
7796 #define HAVE_ALLOCA_H 1
7801 echo "$as_me:7801: checking for alloca" >&5
7802 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7803 if test "${ac_cv_func_alloca_works+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.
$ac_ext <<_ACEOF
7807 #line 7807 "configure"
7808 #include "confdefs.h"
7810 # define alloca __builtin_alloca
7813 # include <malloc.h>
7814 # define alloca _alloca
7817 # include <alloca.h>
7822 # ifndef alloca /* predefined by HP cc +Olibcalls */
7833 char *p = (char *) alloca (1);
7838 rm -f conftest.
$ac_objext conftest
$ac_exeext
7839 if { (eval echo "$as_me:7839: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try
='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:7845: \"$ac_try\"") >&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_cv_func_alloca_works
=yes
7852 echo "$as_me: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7854 ac_cv_func_alloca_works
=no
7856 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7858 echo "$as_me:7858: result: $ac_cv_func_alloca_works" >&5
7859 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7861 if test $ac_cv_func_alloca_works = yes; then
7863 cat >>confdefs.h
<<\EOF
7864 #define HAVE_ALLOCA 1
7868 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7869 # that cause trouble. Some versions do not even contain alloca or
7870 # contain a buggy version. If you still want to use their alloca,
7871 # use ar to extract alloca.o from them instead of compiling alloca.c.
7873 ALLOCA
=alloca.
$ac_objext
7875 cat >>confdefs.h
<<\EOF
7879 echo "$as_me:7879: checking whether \`alloca.c' needs Cray hooks" >&5
7880 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7881 if test "${ac_cv_os_cray+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 cat >conftest.
$ac_ext <<_ACEOF
7885 #line 7885 "configure"
7886 #include "confdefs.h"
7887 #if defined(CRAY) && ! defined(CRAY2)
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 egrep "webecray" >/dev
/null
2>&1; then
7903 echo "$as_me:7903: result: $ac_cv_os_cray" >&5
7904 echo "${ECHO_T}$ac_cv_os_cray" >&6
7905 if test $ac_cv_os_cray = yes; then
7906 for ac_func
in _getb67 GETB67 getb67
; do
7907 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7908 echo "$as_me:7908: checking for $ac_func" >&5
7909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_var+set}\" = set"; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 cat >conftest.
$ac_ext <<_ACEOF
7914 #line 7914 "configure"
7915 #include "confdefs.h"
7916 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char $ac_func (); below. */
7919 /* Override any gcc2 internal prototype to avoid an error. */
7923 /* We use char because int might match the return type of a gcc2
7924 builtin and then its argument prototype would still apply. */
7931 /* The GNU C library defines this for functions which it implements
7932 to always fail with ENOSYS. Some functions are actually named
7933 something starting with __ and the normal name is an alias. */
7934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7944 rm -f conftest.
$ac_objext conftest
$ac_exeext
7945 if { (eval echo "$as_me:7945: \"$ac_link\"") >&5
7946 (eval $ac_link) 2>&5
7948 echo "$as_me:7948: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try
='test -s conftest$ac_exeext'
7951 { (eval echo "$as_me:7951: \"$ac_try\"") >&5
7954 echo "$as_me:7954: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
7956 eval "$as_ac_var=yes"
7958 echo "$as_me: failed program was:" >&5
7959 cat conftest.
$ac_ext >&5
7960 eval "$as_ac_var=no"
7962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7964 echo "$as_me:7964: result: `eval echo '${'$as_ac_var'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7966 if test `eval echo '${'$as_ac_var'}'` = yes; then
7968 cat >>confdefs.h
<<EOF
7969 #define CRAY_STACKSEG_END $ac_func
7978 echo "$as_me:7978: checking stack direction for C alloca" >&5
7979 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7980 if test "${ac_cv_c_stack_direction+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 if test "$cross_compiling" = yes; then
7984 ac_cv_c_stack_direction
=0
7986 cat >conftest.
$ac_ext <<_ACEOF
7987 #line 7987 "configure"
7988 #include "confdefs.h"
7990 find_stack_direction ()
7992 static char *addr = 0;
7997 return find_stack_direction ();
8000 return (&dummy > addr) ? 1 : -1;
8006 exit (find_stack_direction () < 0);
8009 rm -f conftest
$ac_exeext
8010 if { (eval echo "$as_me:8010: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>&5
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8015 { (eval echo "$as_me:8015: \"$ac_try\"") >&5
8018 echo "$as_me:8018: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_c_stack_direction
=1
8022 echo "$as_me: program exited with status $ac_status" >&5
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.
$ac_ext >&5
8025 ac_cv_c_stack_direction
=-1
8027 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8030 echo "$as_me:8030: result: $ac_cv_c_stack_direction" >&5
8031 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8033 cat >>confdefs.h
<<EOF
8034 #define STACK_DIRECTION $ac_cv_c_stack_direction
8039 # fmod, logb, and frexp are found in -lm on most systems.
8040 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8042 echo "$as_me:8042: checking for sqrt in -lm" >&5
8043 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8044 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 ac_check_lib_save_LIBS
=$LIBS
8049 cat >conftest.
$ac_ext <<_ACEOF
8050 #line 8050 "configure"
8051 #include "confdefs.h"
8053 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8068 rm -f conftest.
$ac_objext conftest
$ac_exeext
8069 if { (eval echo "$as_me:8069: \"$ac_link\"") >&5
8070 (eval $ac_link) 2>&5
8072 echo "$as_me:8072: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try
='test -s conftest$ac_exeext'
8075 { (eval echo "$as_me:8075: \"$ac_try\"") >&5
8078 echo "$as_me:8078: \$? = $ac_status" >&5
8079 (exit $ac_status); }; }; then
8080 ac_cv_lib_m_sqrt
=yes
8082 echo "$as_me: failed program was:" >&5
8083 cat conftest.
$ac_ext >&5
8086 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8087 LIBS
=$ac_check_lib_save_LIBS
8089 echo "$as_me:8089: result: $ac_cv_lib_m_sqrt" >&5
8090 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8091 if test $ac_cv_lib_m_sqrt = yes; then
8092 cat >>confdefs.h
<<EOF
8100 # Check for mail-locking functions in a "mail" library
8102 echo "$as_me:8102: checking for maillock in -lmail" >&5
8103 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8104 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 ac_check_lib_save_LIBS
=$LIBS
8109 cat >conftest.
$ac_ext <<_ACEOF
8110 #line 8110 "configure"
8111 #include "confdefs.h"
8113 /* Override any gcc2 internal prototype to avoid an error. */
8117 /* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8128 rm -f conftest.
$ac_objext conftest
$ac_exeext
8129 if { (eval echo "$as_me:8129: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:8132: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try
='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:8135: \"$ac_try\"") >&5
8138 echo "$as_me:8138: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_lib_mail_maillock
=yes
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.
$ac_ext >&5
8144 ac_cv_lib_mail_maillock
=no
8146 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8147 LIBS
=$ac_check_lib_save_LIBS
8149 echo "$as_me:8149: result: $ac_cv_lib_mail_maillock" >&5
8150 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8151 if test $ac_cv_lib_mail_maillock = yes; then
8152 cat >>confdefs.h
<<EOF
8153 #define HAVE_LIBMAIL 1
8160 echo "$as_me:8160: checking for maillock in -llockfile" >&5
8161 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8162 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 ac_check_lib_save_LIBS
=$LIBS
8166 LIBS
="-llockfile $LIBS"
8167 cat >conftest.
$ac_ext <<_ACEOF
8168 #line 8168 "configure"
8169 #include "confdefs.h"
8171 /* Override any gcc2 internal prototype to avoid an error. */
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8186 rm -f conftest.
$ac_objext conftest
$ac_exeext
8187 if { (eval echo "$as_me:8187: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>&5
8190 echo "$as_me:8190: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try
='test -s conftest$ac_exeext'
8193 { (eval echo "$as_me:8193: \"$ac_try\"") >&5
8196 echo "$as_me:8196: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_lib_lockfile_maillock
=yes
8200 echo "$as_me: failed program was:" >&5
8201 cat conftest.
$ac_ext >&5
8202 ac_cv_lib_lockfile_maillock
=no
8204 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8205 LIBS
=$ac_check_lib_save_LIBS
8207 echo "$as_me:8207: result: $ac_cv_lib_lockfile_maillock" >&5
8208 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8209 if test $ac_cv_lib_lockfile_maillock = yes; then
8210 cat >>confdefs.h
<<EOF
8211 #define HAVE_LIBLOCKFILE 1
8214 LIBS
="-llockfile $LIBS"
8218 # If we have the shared liblockfile, assume we must use it for mail
8219 # locking (e.g. Debian). If we couldn't link against liblockfile
8220 # (no liblockfile.a installed), ensure that we don't need to.
8221 if test "$ac_cv_lib_lockfile_maillock" = no
; then
8222 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8223 set dummy liblockfile.so
; ac_word
=$2
8224 echo "$as_me:8224: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226 if test "${ac_cv_prog_liblockfile+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 if test -n "$liblockfile"; then
8230 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
8232 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
8233 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8234 for ac_dir
in $ac_dummy; do
8236 test -z "$ac_dir" && ac_dir
=.
8237 $as_executable_p "$ac_dir/$ac_word" ||
continue
8238 ac_cv_prog_liblockfile
="yes"
8239 echo "$as_me:8239: found $ac_dir/$ac_word" >&5
8243 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
8246 liblockfile
=$ac_cv_prog_liblockfile
8247 if test -n "$liblockfile"; then
8248 echo "$as_me:8248: result: $liblockfile" >&5
8249 echo "${ECHO_T}$liblockfile" >&6
8251 echo "$as_me:8251: result: no" >&5
8252 echo "${ECHO_T}no" >&6
8255 if test $ac_cv_prog_liblockfile = yes; then
8256 { { echo "$as_me:8256: error: Shared liblockfile found but can't link against it.
8257 This probably means that movemail could lose mail.
8258 There may be a \`development' package to install containing liblockfile." >&5
8259 echo "$as_me: error: Shared liblockfile found but can't link against it.
8260 This probably means that movemail could lose mail.
8261 There may be a \`development' package to install containing liblockfile." >&2;}
8262 { (exit 1); exit 1; }; }
8263 else cat >>confdefs.h
<<\EOF
8264 #define LIBMAIL -llockfile
8271 for ac_func
in touchlock
8273 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8274 echo "$as_me:8274: checking for $ac_func" >&5
8275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8276 if eval "test \"\${$as_ac_var+set}\" = set"; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 cat >conftest.
$ac_ext <<_ACEOF
8280 #line 8280 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func (); below. */
8285 /* Override any gcc2 internal prototype to avoid an error. */
8289 /* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8310 rm -f conftest.
$ac_objext conftest
$ac_exeext
8311 if { (eval echo "$as_me:8311: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8314 echo "$as_me:8314: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try
='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:8317: \"$ac_try\"") >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 eval "$as_ac_var=yes"
8324 echo "$as_me: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8326 eval "$as_ac_var=no"
8328 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8330 echo "$as_me:8330: result: `eval echo '${'$as_ac_var'}'`" >&5
8331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8332 if test `eval echo '${'$as_ac_var'}'` = yes; then
8333 cat >>confdefs.h
<<EOF
8334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8340 for ac_header
in maillock.h
8342 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8343 echo "$as_me:8343: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.
$ac_ext <<_ACEOF
8349 #line 8349 "configure"
8350 #include "confdefs.h"
8351 #include <$ac_header>
8353 if { (eval echo "$as_me:8353: \"$ac_cpp conftest.$ac_ext\"") >&5
8354 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8356 egrep -v '^ *\+' conftest.er1
>conftest.err
8358 cat conftest.err
>&5
8359 echo "$as_me:8359: \$? = $ac_status" >&5
8360 (exit $ac_status); } >/dev
/null
; then
8361 if test -s conftest.err
; then
8362 ac_cpp_err
=$ac_c_preproc_warn_flag
8369 if test -z "$ac_cpp_err"; then
8370 eval "$as_ac_Header=yes"
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.
$ac_ext >&5
8374 eval "$as_ac_Header=no"
8376 rm -f conftest.err conftest.
$ac_ext
8378 echo "$as_me:8378: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8381 cat >>confdefs.h
<<EOF
8382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8388 for ac_func
in gethostname getdomainname dup2 \
8389 rename closedir mkdir
rmdir sysinfo \
8390 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8391 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
8392 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8393 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8394 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8395 gai_strerror mkstemp
8397 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8398 echo "$as_me:8398: checking for $ac_func" >&5
8399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8400 if eval "test \"\${$as_ac_var+set}\" = set"; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.
$ac_ext <<_ACEOF
8404 #line 8404 "configure"
8405 #include "confdefs.h"
8406 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char $ac_func (); below. */
8409 /* Override any gcc2 internal prototype to avoid an error. */
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8434 rm -f conftest.
$ac_objext conftest
$ac_exeext
8435 if { (eval echo "$as_me:8435: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try
='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:8441: \"$ac_try\"") >&5
8444 echo "$as_me:8444: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 eval "$as_ac_var=yes"
8448 echo "$as_me: failed program was:" >&5
8449 cat conftest.
$ac_ext >&5
8450 eval "$as_ac_var=no"
8452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8454 echo "$as_me:8454: result: `eval echo '${'$as_ac_var'}'`" >&5
8455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8456 if test `eval echo '${'$as_ac_var'}'` = yes; then
8457 cat >>confdefs.h
<<EOF
8458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8464 for ac_header
in sys
/un.h
8466 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 echo "$as_me:8467: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.
$ac_ext <<_ACEOF
8473 #line 8473 "configure"
8474 #include "confdefs.h"
8475 #include <$ac_header>
8477 if { (eval echo "$as_me:8477: \"$ac_cpp conftest.$ac_ext\"") >&5
8478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8480 egrep -v '^ *\+' conftest.er1
>conftest.err
8482 cat conftest.err
>&5
8483 echo "$as_me:8483: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev
/null
; then
8485 if test -s conftest.err
; then
8486 ac_cpp_err
=$ac_c_preproc_warn_flag
8493 if test -z "$ac_cpp_err"; then
8494 eval "$as_ac_Header=yes"
8496 echo "$as_me: failed program was:" >&5
8497 cat conftest.
$ac_ext >&5
8498 eval "$as_ac_Header=no"
8500 rm -f conftest.err conftest.
$ac_ext
8502 echo "$as_me:8502: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505 cat >>confdefs.h
<<EOF
8506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512 for ac_header
in sys
/time.h unistd.h
8514 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515 echo "$as_me:8515: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 cat >conftest.
$ac_ext <<_ACEOF
8521 #line 8521 "configure"
8522 #include "confdefs.h"
8523 #include <$ac_header>
8525 if { (eval echo "$as_me:8525: \"$ac_cpp conftest.$ac_ext\"") >&5
8526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8528 egrep -v '^ *\+' conftest.er1
>conftest.err
8530 cat conftest.err
>&5
8531 echo "$as_me:8531: \$? = $ac_status" >&5
8532 (exit $ac_status); } >/dev
/null
; then
8533 if test -s conftest.err
; then
8534 ac_cpp_err
=$ac_c_preproc_warn_flag
8541 if test -z "$ac_cpp_err"; then
8542 eval "$as_ac_Header=yes"
8544 echo "$as_me: failed program was:" >&5
8545 cat conftest.
$ac_ext >&5
8546 eval "$as_ac_Header=no"
8548 rm -f conftest.err conftest.
$ac_ext
8550 echo "$as_me:8550: result: `eval echo '${'$as_ac_Header'}'`" >&5
8551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h
<<EOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 for ac_func
in alarm
8562 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8563 echo "$as_me:8563: checking for $ac_func" >&5
8564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8565 if eval "test \"\${$as_ac_var+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 cat >conftest.
$ac_ext <<_ACEOF
8569 #line 8569 "configure"
8570 #include "confdefs.h"
8571 /* System header to define __stub macros and hopefully few prototypes,
8572 which can conflict with char $ac_func (); below. */
8574 /* Override any gcc2 internal prototype to avoid an error. */
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8586 /* The GNU C library defines this for functions which it implements
8587 to always fail with ENOSYS. Some functions are actually named
8588 something starting with __ and the normal name is an alias. */
8589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8599 rm -f conftest.
$ac_objext conftest
$ac_exeext
8600 if { (eval echo "$as_me:8600: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>&5
8603 echo "$as_me:8603: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try
='test -s conftest$ac_exeext'
8606 { (eval echo "$as_me:8606: \"$ac_try\"") >&5
8609 echo "$as_me:8609: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
8611 eval "$as_ac_var=yes"
8613 echo "$as_me: failed program was:" >&5
8614 cat conftest.
$ac_ext >&5
8615 eval "$as_ac_var=no"
8617 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8619 echo "$as_me:8619: result: `eval echo '${'$as_ac_var'}'`" >&5
8620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8621 if test `eval echo '${'$as_ac_var'}'` = yes; then
8622 cat >>confdefs.h
<<EOF
8623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8629 echo "$as_me:8629: checking for working mktime" >&5
8630 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8631 if test "${ac_cv_func_working_mktime+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 if test "$cross_compiling" = yes; then
8635 ac_cv_func_working_mktime
=no
8637 cat >conftest.
$ac_ext <<_ACEOF
8638 #line 8638 "configure"
8639 #include "confdefs.h"
8640 /* Test program from Paul Eggert and Tony Leneis. */
8641 #if TIME_WITH_SYS_TIME
8642 # include <sys/time.h>
8645 # if HAVE_SYS_TIME_H
8646 # include <sys/time.h>
8653 # include <unistd.h>
8657 # define alarm(X) /* empty */
8660 /* Work around redefinition to rpl_putenv by other config tests. */
8663 static time_t time_t_max;
8665 /* Values we'll use to set the TZ environment variable. */
8666 static const char *const tz_strings[] = {
8667 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8668 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8670 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8672 /* Fail if mktime fails to convert a date in the spring-forward gap.
8673 Based on a problem report from Andreas Jaeger. */
8675 spring_forward_gap ()
8677 /* glibc (up to about 1998-10-07) failed this test. */
8680 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8681 instead of "TZ=America/Vancouver" in order to detect the bug even
8682 on systems that don't support the Olson extension, or don't have the
8683 full zoneinfo tables installed. */
8684 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8693 if (mktime (&tm) == (time_t)-1)
8702 if ((lt = localtime (&now)) && mktime (lt) != now)
8704 now = time_t_max - now;
8705 if ((lt = localtime (&now)) && mktime (lt) != now)
8712 /* Based on code from Ariel Faigon. */
8722 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8732 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8734 if (now != (time_t) -1)
8736 struct tm *lt = localtime (&now);
8738 && lt->tm_year == tm.tm_year
8739 && lt->tm_mon == tm.tm_mon
8740 && lt->tm_mday == tm.tm_mday
8741 && lt->tm_hour == tm.tm_hour
8742 && lt->tm_min == tm.tm_min
8743 && lt->tm_sec == tm.tm_sec
8744 && lt->tm_yday == tm.tm_yday
8745 && lt->tm_wday == tm.tm_wday
8746 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8747 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8758 /* This test makes some buggy mktime implementations loop.
8759 Give up after 60 seconds; a mktime slower than that
8760 isn't worth using anyway. */
8763 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8766 delta = time_t_max / 997; /* a suitable prime number */
8767 for (i = 0; i < N_STRINGS; i++)
8770 putenv (tz_strings[i]);
8772 for (t = 0; t <= time_t_max - delta; t += delta)
8774 mktime_test ((time_t) 60 * 60);
8775 mktime_test ((time_t) 60 * 60 * 24);
8777 for (j = 1; 0 < j; j *= 2)
8779 bigtime_test (j - 1);
8782 spring_forward_gap ();
8786 rm -f conftest
$ac_exeext
8787 if { (eval echo "$as_me:8787: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>&5
8790 echo "$as_me:8790: \$? = $ac_status" >&5
8791 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8792 { (eval echo "$as_me:8792: \"$ac_try\"") >&5
8795 echo "$as_me:8795: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
8797 ac_cv_func_working_mktime
=yes
8799 echo "$as_me: program exited with status $ac_status" >&5
8800 echo "$as_me: failed program was:" >&5
8801 cat conftest.
$ac_ext >&5
8802 ac_cv_func_working_mktime
=no
8804 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8807 echo "$as_me:8807: result: $ac_cv_func_working_mktime" >&5
8808 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8809 if test $ac_cv_func_working_mktime = no
; then
8810 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
8813 if test "$ac_cv_func_working_mktime" = no
; then
8814 cat >>confdefs.h
<<\EOF
8815 #define BROKEN_MKTIME 1
8820 ac_have_func
=no
# yes means we've found a way to get the load average.
8824 # Check for getloadavg, but be sure not to touch the cache variable.
8825 (echo "$as_me:8825: checking for getloadavg" >&5
8826 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8827 if test "${ac_cv_func_getloadavg+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 cat >conftest.
$ac_ext <<_ACEOF
8831 #line 8831 "configure"
8832 #include "confdefs.h"
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char getloadavg (); below. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */
8848 /* The GNU C library defines this for functions which it implements
8849 to always fail with ENOSYS. Some functions are actually named
8850 something starting with __ and the normal name is an alias. */
8851 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8861 rm -f conftest.
$ac_objext conftest
$ac_exeext
8862 if { (eval echo "$as_me:8862: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5
8865 echo "$as_me:8865: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try
='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:8868: \"$ac_try\"") >&5
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_cv_func_getloadavg
=yes
8875 echo "$as_me: failed program was:" >&5
8876 cat conftest.
$ac_ext >&5
8877 ac_cv_func_getloadavg
=no
8879 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8881 echo "$as_me:8881: result: $ac_cv_func_getloadavg" >&5
8882 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8883 if test $ac_cv_func_getloadavg = yes; then
8888 ) && ac_have_func
=yes
8890 # On HPUX9, an unprivileged user can get load averages through this function.
8892 for ac_func
in pstat_getdynamic
8894 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8895 echo "$as_me:8895: checking for $ac_func" >&5
8896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_var+set}\" = set"; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 cat >conftest.
$ac_ext <<_ACEOF
8901 #line 8901 "configure"
8902 #include "confdefs.h"
8903 /* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char $ac_func (); below. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8918 /* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8931 rm -f conftest.
$ac_objext conftest
$ac_exeext
8932 if { (eval echo "$as_me:8932: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8935 echo "$as_me:8935: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try
='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:8938: \"$ac_try\"") >&5
8941 echo "$as_me:8941: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 eval "$as_ac_var=yes"
8945 echo "$as_me: failed program was:" >&5
8946 cat conftest.
$ac_ext >&5
8947 eval "$as_ac_var=no"
8949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8951 echo "$as_me:8951: result: `eval echo '${'$as_ac_var'}'`" >&5
8952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8953 if test `eval echo '${'$as_ac_var'}'` = yes; then
8954 cat >>confdefs.h
<<EOF
8955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8961 # Solaris has libkstat which does not require root.
8963 echo "$as_me:8963: checking for kstat_open in -lkstat" >&5
8964 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8965 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 ac_check_lib_save_LIBS
=$LIBS
8969 LIBS
="-lkstat $LIBS"
8970 cat >conftest.
$ac_ext <<_ACEOF
8971 #line 8971 "configure"
8972 #include "confdefs.h"
8974 /* Override any gcc2 internal prototype to avoid an error. */
8978 /* We use char because int might match the return type of a gcc2
8979 builtin and then its argument prototype would still apply. */
8989 rm -f conftest.
$ac_objext conftest
$ac_exeext
8990 if { (eval echo "$as_me:8990: \"$ac_link\"") >&5
8991 (eval $ac_link) 2>&5
8993 echo "$as_me:8993: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try
='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:8996: \"$ac_try\"") >&5
8999 echo "$as_me:8999: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 ac_cv_lib_kstat_kstat_open
=yes
9003 echo "$as_me: failed program was:" >&5
9004 cat conftest.
$ac_ext >&5
9005 ac_cv_lib_kstat_kstat_open
=no
9007 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9008 LIBS
=$ac_check_lib_save_LIBS
9010 echo "$as_me:9010: result: $ac_cv_lib_kstat_kstat_open" >&5
9011 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9012 if test $ac_cv_lib_kstat_kstat_open = yes; then
9013 cat >>confdefs.h
<<EOF
9014 #define HAVE_LIBKSTAT 1
9017 LIBS
="-lkstat $LIBS"
9021 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
9023 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9024 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9025 # to get the right answer into the cache.
9026 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9027 if test $ac_have_func = no
; then
9028 echo "$as_me:9028: checking for elf_begin in -lelf" >&5
9029 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9030 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 ac_check_lib_save_LIBS
=$LIBS
9035 cat >conftest.
$ac_ext <<_ACEOF
9036 #line 9036 "configure"
9037 #include "confdefs.h"
9039 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9054 rm -f conftest.
$ac_objext conftest
$ac_exeext
9055 if { (eval echo "$as_me:9055: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:9058: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try
='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:9061: \"$ac_try\"") >&5
9064 echo "$as_me:9064: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_elf_elf_begin
=yes
9068 echo "$as_me: failed program was:" >&5
9069 cat conftest.
$ac_ext >&5
9070 ac_cv_lib_elf_elf_begin
=no
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9073 LIBS
=$ac_check_lib_save_LIBS
9075 echo "$as_me:9075: result: $ac_cv_lib_elf_elf_begin" >&5
9076 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9077 if test $ac_cv_lib_elf_elf_begin = yes; then
9082 if test $ac_have_func = no
; then
9083 echo "$as_me:9083: checking for kvm_open in -lkvm" >&5
9084 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9085 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_check_lib_save_LIBS
=$LIBS
9090 cat >conftest.
$ac_ext <<_ACEOF
9091 #line 9091 "configure"
9092 #include "confdefs.h"
9094 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9109 rm -f conftest.
$ac_objext conftest
$ac_exeext
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try
='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_cv_lib_kvm_kvm_open
=yes
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.
$ac_ext >&5
9125 ac_cv_lib_kvm_kvm_open
=no
9127 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9128 LIBS
=$ac_check_lib_save_LIBS
9130 echo "$as_me:9130: result: $ac_cv_lib_kvm_kvm_open" >&5
9131 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9132 if test $ac_cv_lib_kvm_kvm_open = yes; then
9136 # Check for the 4.4BSD definition of getloadavg.
9137 echo "$as_me:9137: checking for getloadavg in -lutil" >&5
9138 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9139 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 ac_check_lib_save_LIBS
=$LIBS
9144 cat >conftest.
$ac_ext <<_ACEOF
9145 #line 9145 "configure"
9146 #include "confdefs.h"
9148 /* Override any gcc2 internal prototype to avoid an error. */
9152 /* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9163 rm -f conftest.
$ac_objext conftest
$ac_exeext
9164 if { (eval echo "$as_me:9164: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5
9167 echo "$as_me:9167: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try
='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:9170: \"$ac_try\"") >&5
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_lib_util_getloadavg
=yes
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.
$ac_ext >&5
9179 ac_cv_lib_util_getloadavg
=no
9181 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9182 LIBS
=$ac_check_lib_save_LIBS
9184 echo "$as_me:9184: result: $ac_cv_lib_util_getloadavg" >&5
9185 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9186 if test $ac_cv_lib_util_getloadavg = yes; then
9187 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
9192 if test $ac_have_func = no
; then
9193 # There is a commonly available library for RS/6000 AIX.
9194 # Since it is not a standard part of AIX, it might be installed locally.
9195 ac_getloadavg_LIBS
=$LIBS
9196 LIBS
="-L/usr/local/lib $LIBS"
9197 echo "$as_me:9197: checking for getloadavg in -lgetloadavg" >&5
9198 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9199 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 ac_check_lib_save_LIBS
=$LIBS
9203 LIBS
="-lgetloadavg $LIBS"
9204 cat >conftest.
$ac_ext <<_ACEOF
9205 #line 9205 "configure"
9206 #include "confdefs.h"
9208 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9223 rm -f conftest.
$ac_objext conftest
$ac_exeext
9224 if { (eval echo "$as_me:9224: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>&5
9227 echo "$as_me:9227: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try
='test -s conftest$ac_exeext'
9230 { (eval echo "$as_me:9230: \"$ac_try\"") >&5
9233 echo "$as_me:9233: \$? = $ac_status" >&5
9234 (exit $ac_status); }; }; then
9235 ac_cv_lib_getloadavg_getloadavg
=yes
9237 echo "$as_me: failed program was:" >&5
9238 cat conftest.
$ac_ext >&5
9239 ac_cv_lib_getloadavg_getloadavg
=no
9241 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9242 LIBS
=$ac_check_lib_save_LIBS
9244 echo "$as_me:9244: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9245 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9246 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9247 LIBS
="-lgetloadavg $LIBS"
9249 LIBS
=$ac_getloadavg_LIBS
9254 # Make sure it is really in the library, if we think we found it,
9255 # otherwise set up the replacement function.
9257 for ac_func
in getloadavg
9259 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9260 echo "$as_me:9260: checking for $ac_func" >&5
9261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_var+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 cat >conftest.
$ac_ext <<_ACEOF
9266 #line 9266 "configure"
9267 #include "confdefs.h"
9268 /* System header to define __stub macros and hopefully few prototypes,
9269 which can conflict with char $ac_func (); below. */
9271 /* Override any gcc2 internal prototype to avoid an error. */
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9283 /* The GNU C library defines this for functions which it implements
9284 to always fail with ENOSYS. Some functions are actually named
9285 something starting with __ and the normal name is an alias. */
9286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9296 rm -f conftest.
$ac_objext conftest
$ac_exeext
9297 if { (eval echo "$as_me:9297: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5
9300 echo "$as_me:9300: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try
='test -s conftest$ac_exeext'
9303 { (eval echo "$as_me:9303: \"$ac_try\"") >&5
9306 echo "$as_me:9306: \$? = $ac_status" >&5
9307 (exit $ac_status); }; }; then
9308 eval "$as_ac_var=yes"
9310 echo "$as_me: failed program was:" >&5
9311 cat conftest.
$ac_ext >&5
9312 eval "$as_ac_var=no"
9314 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9316 echo "$as_me:9316: result: `eval echo '${'$as_ac_var'}'`" >&5
9317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9318 if test `eval echo '${'$as_ac_var'}'` = yes; then
9319 cat >>confdefs.h
<<EOF
9320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9324 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
9326 cat >>confdefs.h
<<\EOF
9327 #define C_GETLOADAVG 1
9330 # Figure out what our getloadavg.c needs.
9332 echo "$as_me:9332: checking for sys/dg_sys_info.h" >&5
9333 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9334 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 cat >conftest.
$ac_ext <<_ACEOF
9338 #line 9338 "configure"
9339 #include "confdefs.h"
9340 #include <sys/dg_sys_info.h>
9342 if { (eval echo "$as_me:9342: \"$ac_cpp conftest.$ac_ext\"") >&5
9343 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9345 egrep -v '^ *\+' conftest.er1
>conftest.err
9347 cat conftest.err
>&5
9348 echo "$as_me:9348: \$? = $ac_status" >&5
9349 (exit $ac_status); } >/dev
/null
; then
9350 if test -s conftest.err
; then
9351 ac_cpp_err
=$ac_c_preproc_warn_flag
9358 if test -z "$ac_cpp_err"; then
9359 ac_cv_header_sys_dg_sys_info_h
=yes
9361 echo "$as_me: failed program was:" >&5
9362 cat conftest.
$ac_ext >&5
9363 ac_cv_header_sys_dg_sys_info_h
=no
9365 rm -f conftest.err conftest.
$ac_ext
9367 echo "$as_me:9367: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9368 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9369 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9372 cat >>confdefs.h
<<\EOF
9376 echo "$as_me:9376: checking for dg_sys_info in -ldgc" >&5
9377 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9378 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 ac_check_lib_save_LIBS
=$LIBS
9383 cat >conftest.
$ac_ext <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9387 /* Override any gcc2 internal prototype to avoid an error. */
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9393 char dg_sys_info ();
9402 rm -f conftest.
$ac_objext conftest
$ac_exeext
9403 if { (eval echo "$as_me:9403: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>&5
9406 echo "$as_me:9406: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try
='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:9409: \"$ac_try\"") >&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_lib_dgc_dg_sys_info
=yes
9416 echo "$as_me: failed program was:" >&5
9417 cat conftest.
$ac_ext >&5
9418 ac_cv_lib_dgc_dg_sys_info
=no
9420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9421 LIBS
=$ac_check_lib_save_LIBS
9423 echo "$as_me:9423: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9424 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9425 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9426 cat >>confdefs.h
<<EOF
9427 #define HAVE_LIBDGC 1
9436 echo "$as_me:9436: checking for locale.h" >&5
9437 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9438 if test "${ac_cv_header_locale_h+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.
$ac_ext <<_ACEOF
9442 #line 9442 "configure"
9443 #include "confdefs.h"
9446 if { (eval echo "$as_me:9446: \"$ac_cpp conftest.$ac_ext\"") >&5
9447 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9449 egrep -v '^ *\+' conftest.er1
>conftest.err
9451 cat conftest.err
>&5
9452 echo "$as_me:9452: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev
/null
; then
9454 if test -s conftest.err
; then
9455 ac_cpp_err
=$ac_c_preproc_warn_flag
9462 if test -z "$ac_cpp_err"; then
9463 ac_cv_header_locale_h
=yes
9465 echo "$as_me: failed program was:" >&5
9466 cat conftest.
$ac_ext >&5
9467 ac_cv_header_locale_h
=no
9469 rm -f conftest.err conftest.
$ac_ext
9471 echo "$as_me:9471: result: $ac_cv_header_locale_h" >&5
9472 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9474 for ac_func
in setlocale
9476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:9477: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.
$ac_ext <<_ACEOF
9483 #line 9483 "configure"
9484 #include "confdefs.h"
9485 /* System header to define __stub macros and hopefully few prototypes,
9486 which can conflict with char $ac_func (); below. */
9488 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9500 /* The GNU C library defines this for functions which it implements
9501 to always fail with ENOSYS. Some functions are actually named
9502 something starting with __ and the normal name is an alias. */
9503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9513 rm -f conftest.
$ac_objext conftest
$ac_exeext
9514 if { (eval echo "$as_me:9514: \"$ac_link\"") >&5
9515 (eval $ac_link) 2>&5
9517 echo "$as_me:9517: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try
='test -s conftest$ac_exeext'
9520 { (eval echo "$as_me:9520: \"$ac_try\"") >&5
9523 echo "$as_me:9523: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 eval "$as_ac_var=yes"
9527 echo "$as_me: failed program was:" >&5
9528 cat conftest.
$ac_ext >&5
9529 eval "$as_ac_var=no"
9531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9533 echo "$as_me:9533: result: `eval echo '${'$as_ac_var'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536 cat >>confdefs.h
<<EOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9544 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9545 # Irix 4.0.5F has the header but not the library.
9546 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
9549 cat >>confdefs.h
<<\EOF
9555 if test $ac_have_func = no
; then
9556 echo "$as_me:9556: checking for inq_stats/cpustats.h" >&5
9557 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9558 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.
$ac_ext <<_ACEOF
9562 #line 9562 "configure"
9563 #include "confdefs.h"
9564 #include <inq_stats/cpustats.h>
9566 if { (eval echo "$as_me:9566: \"$ac_cpp conftest.$ac_ext\"") >&5
9567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9569 egrep -v '^ *\+' conftest.er1
>conftest.err
9571 cat conftest.err
>&5
9572 echo "$as_me:9572: \$? = $ac_status" >&5
9573 (exit $ac_status); } >/dev
/null
; then
9574 if test -s conftest.err
; then
9575 ac_cpp_err
=$ac_c_preproc_warn_flag
9582 if test -z "$ac_cpp_err"; then
9583 ac_cv_header_inq_stats_cpustats_h
=yes
9585 echo "$as_me: failed program was:" >&5
9586 cat conftest.
$ac_ext >&5
9587 ac_cv_header_inq_stats_cpustats_h
=no
9589 rm -f conftest.err conftest.
$ac_ext
9591 echo "$as_me:9591: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9592 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9593 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9596 cat >>confdefs.h
<<\EOF
9600 cat >>confdefs.h
<<\EOF
9608 if test $ac_have_func = no
; then
9609 echo "$as_me:9609: checking for sys/cpustats.h" >&5
9610 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9611 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.
$ac_ext <<_ACEOF
9615 #line 9615 "configure"
9616 #include "confdefs.h"
9617 #include <sys/cpustats.h>
9619 if { (eval echo "$as_me:9619: \"$ac_cpp conftest.$ac_ext\"") >&5
9620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9622 egrep -v '^ *\+' conftest.er1
>conftest.err
9624 cat conftest.err
>&5
9625 echo "$as_me:9625: \$? = $ac_status" >&5
9626 (exit $ac_status); } >/dev
/null
; then
9627 if test -s conftest.err
; then
9628 ac_cpp_err
=$ac_c_preproc_warn_flag
9635 if test -z "$ac_cpp_err"; then
9636 ac_cv_header_sys_cpustats_h
=yes
9638 echo "$as_me: failed program was:" >&5
9639 cat conftest.
$ac_ext >&5
9640 ac_cv_header_sys_cpustats_h
=no
9642 rm -f conftest.err conftest.
$ac_ext
9644 echo "$as_me:9644: result: $ac_cv_header_sys_cpustats_h" >&5
9645 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9646 if test $ac_cv_header_sys_cpustats_h = yes; then
9647 ac_have_func
=yes; cat >>confdefs.h
<<\EOF
9655 if test $ac_have_func = no
; then
9657 for ac_header
in mach
/mach.h
9659 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9660 echo "$as_me:9660: checking for $ac_header" >&5
9661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 cat >conftest.
$ac_ext <<_ACEOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9668 #include <$ac_header>
9670 if { (eval echo "$as_me:9670: \"$ac_cpp conftest.$ac_ext\"") >&5
9671 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9673 egrep -v '^ *\+' conftest.er1
>conftest.err
9675 cat conftest.err
>&5
9676 echo "$as_me:9676: \$? = $ac_status" >&5
9677 (exit $ac_status); } >/dev
/null
; then
9678 if test -s conftest.err
; then
9679 ac_cpp_err
=$ac_c_preproc_warn_flag
9686 if test -z "$ac_cpp_err"; then
9687 eval "$as_ac_Header=yes"
9689 echo "$as_me: failed program was:" >&5
9690 cat conftest.
$ac_ext >&5
9691 eval "$as_ac_Header=no"
9693 rm -f conftest.err conftest.
$ac_ext
9695 echo "$as_me:9695: result: `eval echo '${'$as_ac_Header'}'`" >&5
9696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9698 cat >>confdefs.h
<<EOF
9699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9707 for ac_header
in nlist.h
9709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 echo "$as_me:9710: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.
$ac_ext <<_ACEOF
9716 #line 9716 "configure"
9717 #include "confdefs.h"
9718 #include <$ac_header>
9720 if { (eval echo "$as_me:9720: \"$ac_cpp conftest.$ac_ext\"") >&5
9721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9723 egrep -v '^ *\+' conftest.er1
>conftest.err
9725 cat conftest.err
>&5
9726 echo "$as_me:9726: \$? = $ac_status" >&5
9727 (exit $ac_status); } >/dev
/null
; then
9728 if test -s conftest.err
; then
9729 ac_cpp_err
=$ac_c_preproc_warn_flag
9736 if test -z "$ac_cpp_err"; then
9737 eval "$as_ac_Header=yes"
9739 echo "$as_me: failed program was:" >&5
9740 cat conftest.
$ac_ext >&5
9741 eval "$as_ac_Header=no"
9743 rm -f conftest.err conftest.
$ac_ext
9745 echo "$as_me:9745: result: `eval echo '${'$as_ac_Header'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9748 cat >>confdefs.h
<<EOF
9749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 echo "$as_me:9751: checking for struct nlist.n_un.n_name" >&5
9752 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9753 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 cat >conftest.
$ac_ext <<_ACEOF
9757 #line 9757 "configure"
9758 #include "confdefs.h"
9764 static struct nlist ac_aggr;
9765 if (ac_aggr.n_un.n_name)
9771 rm -f conftest.
$ac_objext
9772 if { (eval echo "$as_me:9772: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>&5
9775 echo "$as_me:9775: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try
='test -s conftest.$ac_objext'
9778 { (eval echo "$as_me:9778: \"$ac_try\"") >&5
9781 echo "$as_me:9781: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_member_struct_nlist_n_un_n_name
=yes
9785 echo "$as_me: failed program was:" >&5
9786 cat conftest.
$ac_ext >&5
9787 ac_cv_member_struct_nlist_n_un_n_name
=no
9789 rm -f conftest.
$ac_objext conftest.
$ac_ext
9791 echo "$as_me:9791: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9792 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9793 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9795 cat >>confdefs.h
<<EOF
9796 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9799 cat >>confdefs.h
<<\EOF
9800 #define NLIST_NAME_UNION 1
9811 # Some definitions of getloadavg require that the program be installed setgid.
9812 echo "$as_me:9812: checking whether getloadavg requires setgid" >&5
9813 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9814 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 cat >conftest.
$ac_ext <<_ACEOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9820 #include "$srcdir/getloadavg.c"
9821 #ifdef LDAV_PRIVILEGED
9822 Yowza Am I SETGID yet
9825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9826 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
9827 ac_cv_func_getloadavg_setgid
=yes
9829 ac_cv_func_getloadavg_setgid
=no
9834 echo "$as_me:9834: result: $ac_cv_func_getloadavg_setgid" >&5
9835 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9836 if test $ac_cv_func_getloadavg_setgid = yes; then
9839 cat >>confdefs.h
<<\EOF
9840 #define GETLOADAVG_PRIVILEGED 1
9847 if test $ac_cv_func_getloadavg_setgid = yes; then
9848 echo "$as_me:9848: checking group of /dev/kmem" >&5
9849 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9850 if test "${ac_cv_group_kmem+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9853 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9854 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
9855 # If we got an error (system does not support symlinks), try without -L.
9856 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
9857 ac_cv_group_kmem
=`echo $ac_ls_output \
9858 | sed -ne 's/[ ][ ]*/ /g;
9859 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9863 echo "$as_me:9863: result: $ac_cv_group_kmem" >&5
9864 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9865 KMEM_GROUP
=$ac_cv_group_kmem
9867 if test "x$ac_save_LIBS" = x
; then
9868 GETLOADAVG_LIBS
=$LIBS
9870 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9874 echo "$as_me:9874: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9875 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9876 if test "${ac_cv_sys_largefile_source+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 ac_cv_sys_largefile_source
=no
9881 cat >conftest.
$ac_ext <<_ACEOF
9882 #line 9882 "configure"
9883 #include "confdefs.h"
9893 rm -f conftest.
$ac_objext
9894 if { (eval echo "$as_me:9894: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>&5
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try
='test -s conftest.$ac_objext'
9900 { (eval echo "$as_me:9900: \"$ac_try\"") >&5
9903 echo "$as_me:9903: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9907 echo "$as_me: failed program was:" >&5
9908 cat conftest.
$ac_ext >&5
9910 rm -f conftest.
$ac_objext conftest.
$ac_ext
9911 cat >conftest.
$ac_ext <<_ACEOF
9912 #line 9912 "configure"
9913 #include "confdefs.h"
9914 #define _LARGEFILE_SOURCE 1
9924 rm -f conftest.
$ac_objext
9925 if { (eval echo "$as_me:9925: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>&5
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try
='test -s conftest.$ac_objext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 ac_cv_sys_largefile_source
=1; break
9938 echo "$as_me: failed program was:" >&5
9939 cat conftest.
$ac_ext >&5
9941 rm -f conftest.
$ac_objext conftest.
$ac_ext
9945 echo "$as_me:9945: result: $ac_cv_sys_largefile_source" >&5
9946 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9947 if test "$ac_cv_sys_largefile_source" != no
; then
9949 cat >>confdefs.h
<<EOF
9950 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9956 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9957 # in glibc 2.1.3, but that breaks too many other things.
9958 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9959 echo "$as_me:9959: checking for fseeko" >&5
9960 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9961 if test "${ac_cv_func_fseeko+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.
$ac_ext <<_ACEOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9971 return fseeko && fseeko (stdin, 0, 0);
9976 rm -f conftest.
$ac_objext conftest
$ac_exeext
9977 if { (eval echo "$as_me:9977: \"$ac_link\"") >&5
9978 (eval $ac_link) 2>&5
9980 echo "$as_me:9980: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try
='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:9983: \"$ac_try\"") >&5
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_fseeko
=yes
9990 echo "$as_me: failed program was:" >&5
9991 cat conftest.
$ac_ext >&5
9992 ac_cv_func_fseeko
=no
9994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9996 echo "$as_me:9996: result: $ac_cv_func_fseeko" >&5
9997 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9998 if test $ac_cv_func_fseeko = yes; then
10000 cat >>confdefs.h
<<\EOF
10001 #define HAVE_FSEEKO 1
10008 for ac_func
in grantpt
10010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 echo "$as_me:10011: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10013 if eval "test \"\${$as_ac_var+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >conftest.
$ac_ext <<_ACEOF
10017 #line 10017 "configure"
10018 #include "confdefs.h"
10019 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char $ac_func (); below. */
10021 #include <assert.h>
10022 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10034 /* The GNU C library defines this for functions which it implements
10035 to always fail with ENOSYS. Some functions are actually named
10036 something starting with __ and the normal name is an alias. */
10037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10047 rm -f conftest.
$ac_objext conftest
$ac_exeext
10048 if { (eval echo "$as_me:10048: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try
='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:10054: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 eval "$as_ac_var=yes"
10061 echo "$as_me: failed program was:" >&5
10062 cat conftest.
$ac_ext >&5
10063 eval "$as_ac_var=no"
10065 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10067 echo "$as_me:10067: result: `eval echo '${'$as_ac_var'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10069 if test `eval echo '${'$as_ac_var'}'` = yes; then
10070 cat >>confdefs.h
<<EOF
10071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 # PTY-related GNU extensions.
10079 for ac_func
in getpt
10081 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10082 echo "$as_me:10082: checking for $ac_func" >&5
10083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10084 if eval "test \"\${$as_ac_var+set}\" = set"; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10088 #line 10088 "configure"
10089 #include "confdefs.h"
10090 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func (); below. */
10092 #include <assert.h>
10093 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10105 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 rm -f conftest.
$ac_objext conftest
$ac_exeext
10119 if { (eval echo "$as_me:10119: \"$ac_link\"") >&5
10120 (eval $ac_link) 2>&5
10122 echo "$as_me:10122: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
10124 { ac_try
='test -s conftest$ac_exeext'
10125 { (eval echo "$as_me:10125: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
10130 eval "$as_ac_var=yes"
10132 echo "$as_me: failed program was:" >&5
10133 cat conftest.
$ac_ext >&5
10134 eval "$as_ac_var=no"
10136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10138 echo "$as_me:10138: result: `eval echo '${'$as_ac_var'}'`" >&5
10139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10140 if test `eval echo '${'$as_ac_var'}'` = yes; then
10141 cat >>confdefs.h
<<EOF
10142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10148 # Check this now, so that we will NOT find the above functions in ncurses.
10149 # That is because we have not set up to link ncurses in lib-src.
10150 # It's better to believe a function is not available
10151 # than to expect to find it in ncurses.
10153 echo "$as_me:10153: checking for tparm in -lncurses" >&5
10154 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10155 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 ac_check_lib_save_LIBS
=$LIBS
10159 LIBS
="-lncurses $LIBS"
10160 cat >conftest.
$ac_ext <<_ACEOF
10161 #line 10161 "configure"
10162 #include "confdefs.h"
10164 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10179 rm -f conftest.
$ac_objext conftest
$ac_exeext
10180 if { (eval echo "$as_me:10180: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10183 echo "$as_me:10183: \$? = $ac_status" >&5
10184 (exit $ac_status); } &&
10185 { ac_try
='test -s conftest$ac_exeext'
10186 { (eval echo "$as_me:10186: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:10189: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_cv_lib_ncurses_tparm
=yes
10193 echo "$as_me: failed program was:" >&5
10194 cat conftest.
$ac_ext >&5
10195 ac_cv_lib_ncurses_tparm
=no
10197 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10198 LIBS
=$ac_check_lib_save_LIBS
10200 echo "$as_me:10200: result: $ac_cv_lib_ncurses_tparm" >&5
10201 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10202 if test $ac_cv_lib_ncurses_tparm = yes; then
10203 cat >>confdefs.h
<<EOF
10204 #define HAVE_LIBNCURSES 1
10207 LIBS
="-lncurses $LIBS"
10211 # Do we need the Hesiod library to provide the support routines?
10212 if test "$with_hesiod" = yes ; then
10213 # Don't set $LIBS here -- see comments above.
10215 echo "$as_me:10215: checking for res_send" >&5
10216 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10217 if test "${ac_cv_func_res_send+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.
$ac_ext <<_ACEOF
10221 #line 10221 "configure"
10222 #include "confdefs.h"
10223 /* System header to define __stub macros and hopefully few prototypes,
10224 which can conflict with char res_send (); below. */
10225 #include <assert.h>
10226 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10238 /* The GNU C library defines this for functions which it implements
10239 to always fail with ENOSYS. Some functions are actually named
10240 something starting with __ and the normal name is an alias. */
10241 #if defined (__stub_res_send) || defined (__stub___res_send)
10251 rm -f conftest.
$ac_objext conftest
$ac_exeext
10252 if { (eval echo "$as_me:10252: \"$ac_link\"") >&5
10253 (eval $ac_link) 2>&5
10255 echo "$as_me:10255: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try
='test -s conftest$ac_exeext'
10258 { (eval echo "$as_me:10258: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10261 echo "$as_me:10261: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 ac_cv_func_res_send
=yes
10265 echo "$as_me: failed program was:" >&5
10266 cat conftest.
$ac_ext >&5
10267 ac_cv_func_res_send
=no
10269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10271 echo "$as_me:10271: result: $ac_cv_func_res_send" >&5
10272 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10273 if test $ac_cv_func_res_send = yes; then
10276 echo "$as_me:10276: checking for __res_send" >&5
10277 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10278 if test "${ac_cv_func___res_send+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 cat >conftest.
$ac_ext <<_ACEOF
10282 #line 10282 "configure"
10283 #include "confdefs.h"
10284 /* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char __res_send (); below. */
10286 #include <assert.h>
10287 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */
10293 char __res_send ();
10299 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named
10301 something starting with __ and the normal name is an alias. */
10302 #if defined (__stub___res_send) || defined (__stub_____res_send)
10312 rm -f conftest.
$ac_objext conftest
$ac_exeext
10313 if { (eval echo "$as_me:10313: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try
='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:10319: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:10322: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_func___res_send
=yes
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.
$ac_ext >&5
10328 ac_cv_func___res_send
=no
10330 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10332 echo "$as_me:10332: result: $ac_cv_func___res_send" >&5
10333 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10334 if test $ac_cv_func___res_send = yes; then
10337 echo "$as_me:10337: checking for res_send in -lresolv" >&5
10338 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10339 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 ac_check_lib_save_LIBS
=$LIBS
10343 LIBS
="-lresolv $LIBS"
10344 cat >conftest.
$ac_ext <<_ACEOF
10345 #line 10345 "configure"
10346 #include "confdefs.h"
10348 /* Override any gcc2 internal prototype to avoid an error. */
10352 /* We use char because int might match the return type of a gcc2
10353 builtin and then its argument prototype would still apply. */
10363 rm -f conftest.
$ac_objext conftest
$ac_exeext
10364 if { (eval echo "$as_me:10364: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10367 echo "$as_me:10367: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try
='test -s conftest$ac_exeext'
10370 { (eval echo "$as_me:10370: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:10373: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_lib_resolv_res_send
=yes
10377 echo "$as_me: failed program was:" >&5
10378 cat conftest.
$ac_ext >&5
10379 ac_cv_lib_resolv_res_send
=no
10381 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10382 LIBS
=$ac_check_lib_save_LIBS
10384 echo "$as_me:10384: result: $ac_cv_lib_resolv_res_send" >&5
10385 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10386 if test $ac_cv_lib_resolv_res_send = yes; then
10389 echo "$as_me:10389: checking for __res_send in -lresolv" >&5
10390 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10391 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 ac_check_lib_save_LIBS
=$LIBS
10395 LIBS
="-lresolv $LIBS"
10396 cat >conftest.
$ac_ext <<_ACEOF
10397 #line 10397 "configure"
10398 #include "confdefs.h"
10400 /* Override any gcc2 internal prototype to avoid an error. */
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char __res_send ();
10415 rm -f conftest.
$ac_objext conftest
$ac_exeext
10416 if { (eval echo "$as_me:10416: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>&5
10419 echo "$as_me:10419: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try
='test -s conftest$ac_exeext'
10422 { (eval echo "$as_me:10422: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:10425: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_lib_resolv___res_send
=yes
10429 echo "$as_me: failed program was:" >&5
10430 cat conftest.
$ac_ext >&5
10431 ac_cv_lib_resolv___res_send
=no
10433 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10434 LIBS
=$ac_check_lib_save_LIBS
10436 echo "$as_me:10436: result: $ac_cv_lib_resolv___res_send" >&5
10437 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10438 if test $ac_cv_lib_resolv___res_send = yes; then
10448 if test "$resolv" = yes ; then
10450 cat >>confdefs.h
<<\EOF
10451 #define HAVE_LIBRESOLV 1
10457 echo "$as_me:10457: checking for hes_getmailhost" >&5
10458 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10459 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 cat >conftest.
$ac_ext <<_ACEOF
10463 #line 10463 "configure"
10464 #include "confdefs.h"
10465 /* System header to define __stub macros and hopefully few prototypes,
10466 which can conflict with char hes_getmailhost (); below. */
10467 #include <assert.h>
10468 /* Override any gcc2 internal prototype to avoid an error. */
10472 /* We use char because int might match the return type of a gcc2
10473 builtin and then its argument prototype would still apply. */
10474 char hes_getmailhost ();
10480 /* The GNU C library defines this for functions which it implements
10481 to always fail with ENOSYS. Some functions are actually named
10482 something starting with __ and the normal name is an alias. */
10483 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10486 f = hes_getmailhost;
10493 rm -f conftest.
$ac_objext conftest
$ac_exeext
10494 if { (eval echo "$as_me:10494: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try
='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:10500: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:10503: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_func_hes_getmailhost
=yes
10507 echo "$as_me: failed program was:" >&5
10508 cat conftest.
$ac_ext >&5
10509 ac_cv_func_hes_getmailhost
=no
10511 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10513 echo "$as_me:10513: result: $ac_cv_func_hes_getmailhost" >&5
10514 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10515 if test $ac_cv_func_hes_getmailhost = yes; then
10518 echo "$as_me:10518: checking for hes_getmailhost in -lhesiod" >&5
10519 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10520 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 ac_check_lib_save_LIBS
=$LIBS
10524 LIBS
="-lhesiod $RESOLVLIB $LIBS"
10525 cat >conftest.
$ac_ext <<_ACEOF
10526 #line 10526 "configure"
10527 #include "confdefs.h"
10529 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535 char hes_getmailhost ();
10539 hes_getmailhost ();
10544 rm -f conftest.
$ac_objext conftest
$ac_exeext
10545 if { (eval echo "$as_me:10545: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10548 echo "$as_me:10548: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try
='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:10551: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:10554: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_cv_lib_hesiod_hes_getmailhost
=yes
10558 echo "$as_me: failed program was:" >&5
10559 cat conftest.
$ac_ext >&5
10560 ac_cv_lib_hesiod_hes_getmailhost
=no
10562 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10563 LIBS
=$ac_check_lib_save_LIBS
10565 echo "$as_me:10565: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10566 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10567 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10568 cat >>confdefs.h
<<\EOF
10569 #define HAVE_LIBHESIOD 1
10580 # These tell us which Kerberos-related libraries to use.
10581 if test "${with_kerberos+set}" = set; then
10583 echo "$as_me:10583: checking for com_err in -lcom_err" >&5
10584 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10585 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 ac_check_lib_save_LIBS
=$LIBS
10589 LIBS
="-lcom_err $LIBS"
10590 cat >conftest.
$ac_ext <<_ACEOF
10591 #line 10591 "configure"
10592 #include "confdefs.h"
10594 /* Override any gcc2 internal prototype to avoid an error. */
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10609 rm -f conftest.
$ac_objext conftest
$ac_exeext
10610 if { (eval echo "$as_me:10610: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10613 echo "$as_me:10613: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try
='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:10616: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:10619: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_lib_com_err_com_err
=yes
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.
$ac_ext >&5
10625 ac_cv_lib_com_err_com_err
=no
10627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10628 LIBS
=$ac_check_lib_save_LIBS
10630 echo "$as_me:10630: result: $ac_cv_lib_com_err_com_err" >&5
10631 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10632 if test $ac_cv_lib_com_err_com_err = yes; then
10633 cat >>confdefs.h
<<EOF
10634 #define HAVE_LIBCOM_ERR 1
10637 LIBS
="-lcom_err $LIBS"
10641 echo "$as_me:10641: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10642 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10643 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS
=$LIBS
10647 LIBS
="-lk5crypto $LIBS"
10648 cat >conftest.
$ac_ext <<_ACEOF
10649 #line 10649 "configure"
10650 #include "confdefs.h"
10652 /* Override any gcc2 internal prototype to avoid an error. */
10656 /* We use char because int might match the return type of a gcc2
10657 builtin and then its argument prototype would still apply. */
10658 char mit_des_cbc_encrypt ();
10662 mit_des_cbc_encrypt ();
10667 rm -f conftest.
$ac_objext conftest
$ac_exeext
10668 if { (eval echo "$as_me:10668: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5
10671 echo "$as_me:10671: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try
='test -s conftest$ac_exeext'
10674 { (eval echo "$as_me:10674: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:10677: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
10681 echo "$as_me: failed program was:" >&5
10682 cat conftest.
$ac_ext >&5
10683 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
10685 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10686 LIBS
=$ac_check_lib_save_LIBS
10688 echo "$as_me:10688: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10689 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10690 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10691 cat >>confdefs.h
<<EOF
10692 #define HAVE_LIBK5CRYPTO 1
10695 LIBS
="-lk5crypto $LIBS"
10699 echo "$as_me:10699: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10700 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10701 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 ac_check_lib_save_LIBS
=$LIBS
10705 LIBS
="-lcrypto $LIBS"
10706 cat >conftest.
$ac_ext <<_ACEOF
10707 #line 10707 "configure"
10708 #include "confdefs.h"
10710 /* Override any gcc2 internal prototype to avoid an error. */
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char mit_des_cbc_encrypt ();
10720 mit_des_cbc_encrypt ();
10725 rm -f conftest.
$ac_objext conftest
$ac_exeext
10726 if { (eval echo "$as_me:10726: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10729 echo "$as_me:10729: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try
='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:10732: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10735 echo "$as_me:10735: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
10739 echo "$as_me: failed program was:" >&5
10740 cat conftest.
$ac_ext >&5
10741 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
10743 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10744 LIBS
=$ac_check_lib_save_LIBS
10746 echo "$as_me:10746: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10747 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10748 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10749 cat >>confdefs.h
<<EOF
10750 #define HAVE_LIBCRYPTO 1
10753 LIBS
="-lcrypto $LIBS"
10757 echo "$as_me:10757: checking for krb5_init_context in -lkrb5" >&5
10758 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10759 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 ac_check_lib_save_LIBS
=$LIBS
10763 LIBS
="-lkrb5 $LIBS"
10764 cat >conftest.
$ac_ext <<_ACEOF
10765 #line 10765 "configure"
10766 #include "confdefs.h"
10768 /* Override any gcc2 internal prototype to avoid an error. */
10772 /* We use char because int might match the return type of a gcc2
10773 builtin and then its argument prototype would still apply. */
10774 char krb5_init_context ();
10778 krb5_init_context ();
10783 rm -f conftest.
$ac_objext conftest
$ac_exeext
10784 if { (eval echo "$as_me:10784: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>&5
10787 echo "$as_me:10787: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try
='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:10790: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:10793: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_krb5_krb5_init_context
=yes
10797 echo "$as_me: failed program was:" >&5
10798 cat conftest.
$ac_ext >&5
10799 ac_cv_lib_krb5_krb5_init_context
=no
10801 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10802 LIBS
=$ac_check_lib_save_LIBS
10804 echo "$as_me:10804: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10805 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10806 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10807 cat >>confdefs.h
<<EOF
10808 #define HAVE_LIBKRB5 1
10811 LIBS
="-lkrb5 $LIBS"
10815 if test "${with_kerberos5+set}" != set; then
10817 echo "$as_me:10817: checking for des_cbc_encrypt in -ldes425" >&5
10818 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10819 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 ac_check_lib_save_LIBS
=$LIBS
10823 LIBS
="-ldes425 $LIBS"
10824 cat >conftest.
$ac_ext <<_ACEOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10828 /* Override any gcc2 internal prototype to avoid an error. */
10832 /* We use char because int might match the return type of a gcc2
10833 builtin and then its argument prototype would still apply. */
10834 char des_cbc_encrypt ();
10838 des_cbc_encrypt ();
10843 rm -f conftest.
$ac_objext conftest
$ac_exeext
10844 if { (eval echo "$as_me:10844: \"$ac_link\"") >&5
10845 (eval $ac_link) 2>&5
10847 echo "$as_me:10847: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
10849 { ac_try
='test -s conftest$ac_exeext'
10850 { (eval echo "$as_me:10850: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10853 echo "$as_me:10853: \$? = $ac_status" >&5
10854 (exit $ac_status); }; }; then
10855 ac_cv_lib_des425_des_cbc_encrypt
=yes
10857 echo "$as_me: failed program was:" >&5
10858 cat conftest.
$ac_ext >&5
10859 ac_cv_lib_des425_des_cbc_encrypt
=no
10861 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10862 LIBS
=$ac_check_lib_save_LIBS
10864 echo "$as_me:10864: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10865 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10866 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10867 cat >>confdefs.h
<<EOF
10868 #define HAVE_LIBDES425 1
10871 LIBS
="-ldes425 $LIBS"
10875 echo "$as_me:10875: checking for des_cbc_encrypt in -ldes" >&5
10876 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10877 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 ac_check_lib_save_LIBS
=$LIBS
10882 cat >conftest.
$ac_ext <<_ACEOF
10883 #line 10883 "configure"
10884 #include "confdefs.h"
10886 /* Override any gcc2 internal prototype to avoid an error. */
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char des_cbc_encrypt ();
10896 des_cbc_encrypt ();
10901 rm -f conftest.
$ac_objext conftest
$ac_exeext
10902 if { (eval echo "$as_me:10902: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>&5
10905 echo "$as_me:10905: \$? = $ac_status" >&5
10906 (exit $ac_status); } &&
10907 { ac_try
='test -s conftest$ac_exeext'
10908 { (eval echo "$as_me:10908: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:10911: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_lib_des_des_cbc_encrypt
=yes
10915 echo "$as_me: failed program was:" >&5
10916 cat conftest.
$ac_ext >&5
10917 ac_cv_lib_des_des_cbc_encrypt
=no
10919 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10920 LIBS
=$ac_check_lib_save_LIBS
10922 echo "$as_me:10922: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10923 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10924 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10925 cat >>confdefs.h
<<EOF
10926 #define HAVE_LIBDES 1
10935 echo "$as_me:10935: checking for krb_get_cred in -lkrb4" >&5
10936 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10937 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 ac_check_lib_save_LIBS
=$LIBS
10941 LIBS
="-lkrb4 $LIBS"
10942 cat >conftest.
$ac_ext <<_ACEOF
10943 #line 10943 "configure"
10944 #include "confdefs.h"
10946 /* Override any gcc2 internal prototype to avoid an error. */
10950 /* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952 char krb_get_cred ();
10961 rm -f conftest.
$ac_objext conftest
$ac_exeext
10962 if { (eval echo "$as_me:10962: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>&5
10965 echo "$as_me:10965: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try
='test -s conftest$ac_exeext'
10968 { (eval echo "$as_me:10968: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:10971: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_cv_lib_krb4_krb_get_cred
=yes
10975 echo "$as_me: failed program was:" >&5
10976 cat conftest.
$ac_ext >&5
10977 ac_cv_lib_krb4_krb_get_cred
=no
10979 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10980 LIBS
=$ac_check_lib_save_LIBS
10982 echo "$as_me:10982: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10983 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10984 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10985 cat >>confdefs.h
<<EOF
10986 #define HAVE_LIBKRB4 1
10989 LIBS
="-lkrb4 $LIBS"
10993 echo "$as_me:10993: checking for krb_get_cred in -lkrb" >&5
10994 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10995 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 ac_check_lib_save_LIBS
=$LIBS
11000 cat >conftest.
$ac_ext <<_ACEOF
11001 #line 11001 "configure"
11002 #include "confdefs.h"
11004 /* Override any gcc2 internal prototype to avoid an error. */
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11010 char krb_get_cred ();
11019 rm -f conftest.
$ac_objext conftest
$ac_exeext
11020 if { (eval echo "$as_me:11020: \"$ac_link\"") >&5
11021 (eval $ac_link) 2>&5
11023 echo "$as_me:11023: \$? = $ac_status" >&5
11024 (exit $ac_status); } &&
11025 { ac_try
='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:11026: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:11029: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_lib_krb_krb_get_cred
=yes
11033 echo "$as_me: failed program was:" >&5
11034 cat conftest.
$ac_ext >&5
11035 ac_cv_lib_krb_krb_get_cred
=no
11037 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11038 LIBS
=$ac_check_lib_save_LIBS
11040 echo "$as_me:11040: result: $ac_cv_lib_krb_krb_get_cred" >&5
11041 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11042 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11043 cat >>confdefs.h
<<EOF
11044 #define HAVE_LIBKRB 1
11055 if test "${with_kerberos5+set}" = set; then
11057 for ac_header
in krb5.h
11059 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 echo "$as_me:11060: checking for $ac_header" >&5
11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.
$ac_ext <<_ACEOF
11066 #line 11066 "configure"
11067 #include "confdefs.h"
11068 #include <$ac_header>
11070 if { (eval echo "$as_me:11070: \"$ac_cpp conftest.$ac_ext\"") >&5
11071 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11073 egrep -v '^ *\+' conftest.er1
>conftest.err
11075 cat conftest.err
>&5
11076 echo "$as_me:11076: \$? = $ac_status" >&5
11077 (exit $ac_status); } >/dev
/null
; then
11078 if test -s conftest.err
; then
11079 ac_cpp_err
=$ac_c_preproc_warn_flag
11086 if test -z "$ac_cpp_err"; then
11087 eval "$as_ac_Header=yes"
11089 echo "$as_me: failed program was:" >&5
11090 cat conftest.
$ac_ext >&5
11091 eval "$as_ac_Header=no"
11093 rm -f conftest.err conftest.
$ac_ext
11095 echo "$as_me:11095: result: `eval echo '${'$as_ac_Header'}'`" >&5
11096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11098 cat >>confdefs.h
<<EOF
11099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11107 for ac_header
in des.h
11109 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11110 echo "$as_me:11110: checking for $ac_header" >&5
11111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 cat >conftest.
$ac_ext <<_ACEOF
11116 #line 11116 "configure"
11117 #include "confdefs.h"
11118 #include <$ac_header>
11120 if { (eval echo "$as_me:11120: \"$ac_cpp conftest.$ac_ext\"") >&5
11121 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11123 egrep -v '^ *\+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 echo "$as_me:11126: \$? = $ac_status" >&5
11127 (exit $ac_status); } >/dev
/null
; then
11128 if test -s conftest.err
; then
11129 ac_cpp_err
=$ac_c_preproc_warn_flag
11136 if test -z "$ac_cpp_err"; then
11137 eval "$as_ac_Header=yes"
11139 echo "$as_me: failed program was:" >&5
11140 cat conftest.
$ac_ext >&5
11141 eval "$as_ac_Header=no"
11143 rm -f conftest.err conftest.
$ac_ext
11145 echo "$as_me:11145: result: `eval echo '${'$as_ac_Header'}'`" >&5
11146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11148 cat >>confdefs.h
<<EOF
11149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11154 for ac_header
in kerberosIV
/des.h
11156 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157 echo "$as_me:11157: checking for $ac_header" >&5
11158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11163 #line 11163 "configure"
11164 #include "confdefs.h"
11165 #include <$ac_header>
11167 if { (eval echo "$as_me:11167: \"$ac_cpp conftest.$ac_ext\"") >&5
11168 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11170 egrep -v '^ *\+' conftest.er1
>conftest.err
11172 cat conftest.err
>&5
11173 echo "$as_me:11173: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev
/null
; then
11175 if test -s conftest.err
; then
11176 ac_cpp_err
=$ac_c_preproc_warn_flag
11183 if test -z "$ac_cpp_err"; then
11184 eval "$as_ac_Header=yes"
11186 echo "$as_me: failed program was:" >&5
11187 cat conftest.
$ac_ext >&5
11188 eval "$as_ac_Header=no"
11190 rm -f conftest.err conftest.
$ac_ext
11192 echo "$as_me:11192: result: `eval echo '${'$as_ac_Header'}'`" >&5
11193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h
<<EOF
11196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11201 for ac_header
in kerberos
/des.h
11203 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 echo "$as_me:11204: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 cat >conftest.
$ac_ext <<_ACEOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11212 #include <$ac_header>
11214 if { (eval echo "$as_me:11214: \"$ac_cpp conftest.$ac_ext\"") >&5
11215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11217 egrep -v '^ *\+' conftest.er1
>conftest.err
11219 cat conftest.err
>&5
11220 echo "$as_me:11220: \$? = $ac_status" >&5
11221 (exit $ac_status); } >/dev
/null
; then
11222 if test -s conftest.err
; then
11223 ac_cpp_err
=$ac_c_preproc_warn_flag
11230 if test -z "$ac_cpp_err"; then
11231 eval "$as_ac_Header=yes"
11233 echo "$as_me: failed program was:" >&5
11234 cat conftest.
$ac_ext >&5
11235 eval "$as_ac_Header=no"
11237 rm -f conftest.err conftest.
$ac_ext
11239 echo "$as_me:11239: result: `eval echo '${'$as_ac_Header'}'`" >&5
11240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11242 cat >>confdefs.h
<<EOF
11243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255 for ac_header
in krb.h
11257 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11258 echo "$as_me:11258: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 cat >conftest.
$ac_ext <<_ACEOF
11264 #line 11264 "configure"
11265 #include "confdefs.h"
11266 #include <$ac_header>
11268 if { (eval echo "$as_me:11268: \"$ac_cpp conftest.$ac_ext\"") >&5
11269 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11271 egrep -v '^ *\+' conftest.er1
>conftest.err
11273 cat conftest.err
>&5
11274 echo "$as_me:11274: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev
/null
; then
11276 if test -s conftest.err
; then
11277 ac_cpp_err
=$ac_c_preproc_warn_flag
11284 if test -z "$ac_cpp_err"; then
11285 eval "$as_ac_Header=yes"
11287 echo "$as_me: failed program was:" >&5
11288 cat conftest.
$ac_ext >&5
11289 eval "$as_ac_Header=no"
11291 rm -f conftest.err conftest.
$ac_ext
11293 echo "$as_me:11293: result: `eval echo '${'$as_ac_Header'}'`" >&5
11294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11296 cat >>confdefs.h
<<EOF
11297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 for ac_header
in kerberosIV
/krb.h
11304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 echo "$as_me:11305: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 cat >conftest.
$ac_ext <<_ACEOF
11311 #line 11311 "configure"
11312 #include "confdefs.h"
11313 #include <$ac_header>
11315 if { (eval echo "$as_me:11315: \"$ac_cpp conftest.$ac_ext\"") >&5
11316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11318 egrep -v '^ *\+' conftest.er1
>conftest.err
11320 cat conftest.err
>&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev
/null
; then
11323 if test -s conftest.err
; then
11324 ac_cpp_err
=$ac_c_preproc_warn_flag
11331 if test -z "$ac_cpp_err"; then
11332 eval "$as_ac_Header=yes"
11334 echo "$as_me: failed program was:" >&5
11335 cat conftest.
$ac_ext >&5
11336 eval "$as_ac_Header=no"
11338 rm -f conftest.err conftest.
$ac_ext
11340 echo "$as_me:11340: result: `eval echo '${'$as_ac_Header'}'`" >&5
11341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11343 cat >>confdefs.h
<<EOF
11344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11349 for ac_header
in kerberos
/krb.h
11351 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11352 echo "$as_me:11352: checking for $ac_header" >&5
11353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 cat >conftest.
$ac_ext <<_ACEOF
11358 #line 11358 "configure"
11359 #include "confdefs.h"
11360 #include <$ac_header>
11362 if { (eval echo "$as_me:11362: \"$ac_cpp conftest.$ac_ext\"") >&5
11363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11365 egrep -v '^ *\+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:11368: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev
/null
; then
11370 if test -s conftest.err
; then
11371 ac_cpp_err
=$ac_c_preproc_warn_flag
11378 if test -z "$ac_cpp_err"; then
11379 eval "$as_ac_Header=yes"
11381 echo "$as_me: failed program was:" >&5
11382 cat conftest.
$ac_ext >&5
11383 eval "$as_ac_Header=no"
11385 rm -f conftest.err conftest.
$ac_ext
11387 echo "$as_me:11387: result: `eval echo '${'$as_ac_Header'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h
<<EOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 for ac_header
in com_err.h
11407 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 echo "$as_me:11408: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.
$ac_ext <<_ACEOF
11414 #line 11414 "configure"
11415 #include "confdefs.h"
11416 #include <$ac_header>
11418 if { (eval echo "$as_me:11418: \"$ac_cpp conftest.$ac_ext\"") >&5
11419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11421 egrep -v '^ *\+' conftest.er1
>conftest.err
11423 cat conftest.err
>&5
11424 echo "$as_me:11424: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev
/null
; then
11426 if test -s conftest.err
; then
11427 ac_cpp_err
=$ac_c_preproc_warn_flag
11434 if test -z "$ac_cpp_err"; then
11435 eval "$as_ac_Header=yes"
11437 echo "$as_me: failed program was:" >&5
11438 cat conftest.
$ac_ext >&5
11439 eval "$as_ac_Header=no"
11441 rm -f conftest.err conftest.
$ac_ext
11443 echo "$as_me:11443: result: `eval echo '${'$as_ac_Header'}'`" >&5
11444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h
<<EOF
11447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11455 # Solaris requires -lintl if you want strerror (which calls dgettext)
11456 # to return localized messages.
11458 echo "$as_me:11458: checking for dgettext in -lintl" >&5
11459 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11460 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 ac_check_lib_save_LIBS
=$LIBS
11464 LIBS
="-lintl $LIBS"
11465 cat >conftest.
$ac_ext <<_ACEOF
11466 #line 11466 "configure"
11467 #include "confdefs.h"
11469 /* Override any gcc2 internal prototype to avoid an error. */
11473 /* We use char because int might match the return type of a gcc2
11474 builtin and then its argument prototype would still apply. */
11484 rm -f conftest.
$ac_objext conftest
$ac_exeext
11485 if { (eval echo "$as_me:11485: \"$ac_link\"") >&5
11486 (eval $ac_link) 2>&5
11488 echo "$as_me:11488: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try
='test -s conftest$ac_exeext'
11491 { (eval echo "$as_me:11491: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11494 echo "$as_me:11494: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 ac_cv_lib_intl_dgettext
=yes
11498 echo "$as_me: failed program was:" >&5
11499 cat conftest.
$ac_ext >&5
11500 ac_cv_lib_intl_dgettext
=no
11502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11503 LIBS
=$ac_check_lib_save_LIBS
11505 echo "$as_me:11505: result: $ac_cv_lib_intl_dgettext" >&5
11506 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11507 if test $ac_cv_lib_intl_dgettext = yes; then
11508 cat >>confdefs.h
<<EOF
11509 #define HAVE_LIBINTL 1
11512 LIBS
="-lintl $LIBS"
11516 echo "$as_me:11516: checking whether localtime caches TZ" >&5
11517 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11518 if test "${emacs_cv_localtime_cache+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 if test x
$ac_cv_func_tzset = xyes
; then
11522 if test "$cross_compiling" = yes; then
11523 # If we have tzset, assume the worst when cross-compiling.
11524 emacs_cv_localtime_cache
=yes
11526 cat >conftest.
$ac_ext <<_ACEOF
11527 #line 11527 "configure"
11528 #include "confdefs.h"
11530 extern char **environ;
11534 for (to = from = environ; (*to = *from); from++)
11535 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11538 char TZ_GMT0[] = "TZ=GMT0";
11539 char TZ_PST8[] = "TZ=PST8";
11542 time_t now = time ((time_t *) 0);
11543 int hour_GMT0, hour_unset;
11544 if (putenv (TZ_GMT0) != 0)
11546 hour_GMT0 = localtime (&now)->tm_hour;
11548 hour_unset = localtime (&now)->tm_hour;
11549 if (putenv (TZ_PST8) != 0)
11551 if (localtime (&now)->tm_hour == hour_GMT0)
11554 if (localtime (&now)->tm_hour != hour_unset)
11559 rm -f conftest
$ac_exeext
11560 if { (eval echo "$as_me:11560: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>&5
11563 echo "$as_me:11563: \$? = $ac_status" >&5
11564 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 emacs_cv_localtime_cache
=no
11572 echo "$as_me: program exited with status $ac_status" >&5
11573 echo "$as_me: failed program was:" >&5
11574 cat conftest.
$ac_ext >&5
11575 emacs_cv_localtime_cache
=yes
11577 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11580 # If we lack tzset, report that localtime does not cache TZ,
11581 # since we can't invalidate the cache if we don't have tzset.
11582 emacs_cv_localtime_cache
=no
11585 echo "$as_me:11585: result: $emacs_cv_localtime_cache" >&5
11586 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11587 if test $emacs_cv_localtime_cache = yes; then
11588 cat >>confdefs.h
<<\EOF
11589 #define LOCALTIME_CACHE 1
11594 if test "x$HAVE_TIMEVAL" = xyes
; then
11596 for ac_func
in gettimeofday
11598 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 echo "$as_me:11599: checking for $ac_func" >&5
11600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11601 if eval "test \"\${$as_ac_var+set}\" = set"; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 cat >conftest.
$ac_ext <<_ACEOF
11605 #line 11605 "configure"
11606 #include "confdefs.h"
11607 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below. */
11609 #include <assert.h>
11610 /* Override any gcc2 internal prototype to avoid an error. */
11614 /* We use char because int might match the return type of a gcc2
11615 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11635 rm -f conftest.
$ac_objext conftest
$ac_exeext
11636 if { (eval echo "$as_me:11636: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>&5
11639 echo "$as_me:11639: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try
='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:11642: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:11645: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11649 echo "$as_me: failed program was:" >&5
11650 cat conftest.
$ac_ext >&5
11651 eval "$as_ac_var=no"
11653 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11655 echo "$as_me:11655: result: `eval echo '${'$as_ac_var'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11657 if test `eval echo '${'$as_ac_var'}'` = yes; then
11658 cat >>confdefs.h
<<EOF
11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665 echo "$as_me:11665: checking whether gettimeofday can accept two arguments" >&5
11666 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11667 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 cat >conftest.
$ac_ext <<_ACEOF
11671 #line 11671 "configure"
11672 #include "confdefs.h"
11674 #ifdef TIME_WITH_SYS_TIME
11675 #include <sys/time.h>
11678 #ifdef HAVE_SYS_TIME_H
11679 #include <sys/time.h>
11687 struct timeval time;
11688 gettimeofday (&time, 0);
11693 rm -f conftest.
$ac_objext
11694 if { (eval echo "$as_me:11694: \"$ac_compile\"") >&5
11695 (eval $ac_compile) 2>&5
11697 echo "$as_me:11697: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
11699 { ac_try
='test -s conftest.$ac_objext'
11700 { (eval echo "$as_me:11700: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:11703: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 emacs_cv_gettimeofday_two_arguments
=yes
11707 echo "$as_me: failed program was:" >&5
11708 cat conftest.
$ac_ext >&5
11709 emacs_cv_gettimeofday_two_arguments
=no
11711 rm -f conftest.
$ac_objext conftest.
$ac_ext
11713 echo "$as_me:11713: result: $emacs_cv_gettimeofday_two_arguments" >&5
11714 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11715 if test $emacs_cv_gettimeofday_two_arguments = no
; then
11716 cat >>confdefs.h
<<\EOF
11717 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11723 if test "$ac_cv_func_gettimeofday" = yes; then
11724 echo "$as_me:11724: checking for struct timezone" >&5
11725 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11726 if test "${emacs_cv_struct_timezone+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.
$ac_ext <<_ACEOF
11730 #line 11730 "configure"
11731 #include "confdefs.h"
11732 #include <sys/time.h>
11736 struct timezone tz;
11741 rm -f conftest.
$ac_objext
11742 if { (eval echo "$as_me:11742: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>&5
11745 echo "$as_me:11745: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try
='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:11748: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:11751: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 if test "$cross_compiling" = yes; then
11754 emacs_cv_struct_timezone
=yes
11756 cat >conftest.
$ac_ext <<_ACEOF
11757 #line 11757 "configure"
11758 #include "confdefs.h"
11760 #ifdef TIME_WITH_SYS_TIME
11761 #include <sys/time.h>
11764 #ifdef HAVE_SYS_TIME_H
11765 #include <sys/time.h>
11771 struct timeval time;
11772 struct timezone dummy;
11773 exit (gettimeofday (&time, &dummy));
11776 rm -f conftest
$ac_exeext
11777 if { (eval echo "$as_me:11777: \"$ac_link\"") >&5
11778 (eval $ac_link) 2>&5
11780 echo "$as_me:11780: \$? = $ac_status" >&5
11781 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11782 { (eval echo "$as_me:11782: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:11785: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 emacs_cv_struct_timezone
=yes
11789 echo "$as_me: program exited with status $ac_status" >&5
11790 echo "$as_me: failed program was:" >&5
11791 cat conftest.
$ac_ext >&5
11792 emacs_cv_struct_timezone
=no
11794 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11797 echo "$as_me: failed program was:" >&5
11798 cat conftest.
$ac_ext >&5
11799 emacs_cv_struct_timezone
=no
11801 rm -f conftest.
$ac_objext conftest.
$ac_ext
11803 echo "$as_me:11803: result: $emacs_cv_struct_timezone" >&5
11804 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11808 echo "$as_me:11808: checking for socket" >&5
11809 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11810 if test "${ac_cv_func_socket+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 cat >conftest.
$ac_ext <<_ACEOF
11814 #line 11814 "configure"
11815 #include "confdefs.h"
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char socket (); below. */
11818 #include <assert.h>
11819 /* Override any gcc2 internal prototype to avoid an error. */
11823 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined (__stub_socket) || defined (__stub___socket)
11844 rm -f conftest.
$ac_objext conftest
$ac_exeext
11845 if { (eval echo "$as_me:11845: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>&5
11848 echo "$as_me:11848: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try
='test -s conftest$ac_exeext'
11851 { (eval echo "$as_me:11851: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:11854: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 ac_cv_func_socket
=yes
11858 echo "$as_me: failed program was:" >&5
11859 cat conftest.
$ac_ext >&5
11860 ac_cv_func_socket
=no
11862 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11864 echo "$as_me:11864: result: $ac_cv_func_socket" >&5
11865 echo "${ECHO_T}$ac_cv_func_socket" >&6
11866 if test $ac_cv_func_socket = yes; then
11872 if test $ok_so_far = yes; then
11873 echo "$as_me:11873: checking for netinet/in.h" >&5
11874 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11875 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 cat >conftest.
$ac_ext <<_ACEOF
11879 #line 11879 "configure"
11880 #include "confdefs.h"
11881 #include <netinet/in.h>
11883 if { (eval echo "$as_me:11883: \"$ac_cpp conftest.$ac_ext\"") >&5
11884 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11886 egrep -v '^ *\+' conftest.er1
>conftest.err
11888 cat conftest.err
>&5
11889 echo "$as_me:11889: \$? = $ac_status" >&5
11890 (exit $ac_status); } >/dev
/null
; then
11891 if test -s conftest.err
; then
11892 ac_cpp_err
=$ac_c_preproc_warn_flag
11899 if test -z "$ac_cpp_err"; then
11900 ac_cv_header_netinet_in_h
=yes
11902 echo "$as_me: failed program was:" >&5
11903 cat conftest.
$ac_ext >&5
11904 ac_cv_header_netinet_in_h
=no
11906 rm -f conftest.err conftest.
$ac_ext
11908 echo "$as_me:11908: result: $ac_cv_header_netinet_in_h" >&5
11909 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11910 if test $ac_cv_header_netinet_in_h = yes; then
11917 if test $ok_so_far = yes; then
11918 echo "$as_me:11918: checking for arpa/inet.h" >&5
11919 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11920 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.
$ac_ext <<_ACEOF
11924 #line 11924 "configure"
11925 #include "confdefs.h"
11926 #include <arpa/inet.h>
11928 if { (eval echo "$as_me:11928: \"$ac_cpp conftest.$ac_ext\"") >&5
11929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11931 egrep -v '^ *\+' conftest.er1
>conftest.err
11933 cat conftest.err
>&5
11934 echo "$as_me:11934: \$? = $ac_status" >&5
11935 (exit $ac_status); } >/dev
/null
; then
11936 if test -s conftest.err
; then
11937 ac_cpp_err
=$ac_c_preproc_warn_flag
11944 if test -z "$ac_cpp_err"; then
11945 ac_cv_header_arpa_inet_h
=yes
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.
$ac_ext >&5
11949 ac_cv_header_arpa_inet_h
=no
11951 rm -f conftest.err conftest.
$ac_ext
11953 echo "$as_me:11953: result: $ac_cv_header_arpa_inet_h" >&5
11954 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11955 if test $ac_cv_header_arpa_inet_h = yes; then
11962 if test $ok_so_far = yes; then
11963 cat >>confdefs.h
<<\EOF
11964 #define HAVE_INET_SOCKETS 1
11969 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
11970 cat >>confdefs.h
<<\EOF
11971 #define HAVE_AIX_SMT_EXP 1
11976 echo "$as_me:11976: checking whether system supports dynamic ptys" >&5
11977 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11978 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
11979 echo "$as_me:11979: result: yes" >&5
11980 echo "${ECHO_T}yes" >&6
11981 cat >>confdefs.h
<<\EOF
11982 #define HAVE_DEV_PTMX 1
11986 echo "$as_me:11986: result: no" >&5
11987 echo "${ECHO_T}no" >&6
11990 echo "$as_me:11990: checking for pid_t" >&5
11991 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11992 if test "${ac_cv_type_pid_t+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 cat >conftest.
$ac_ext <<_ACEOF
11996 #line 11996 "configure"
11997 #include "confdefs.h"
11998 $ac_includes_default
12004 if (sizeof (pid_t))
12010 rm -f conftest.
$ac_objext
12011 if { (eval echo "$as_me:12011: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>&5
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try
='test -s conftest.$ac_objext'
12017 { (eval echo "$as_me:12017: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:12020: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_cv_type_pid_t
=yes
12024 echo "$as_me: failed program was:" >&5
12025 cat conftest.
$ac_ext >&5
12026 ac_cv_type_pid_t
=no
12028 rm -f conftest.
$ac_objext conftest.
$ac_ext
12030 echo "$as_me:12030: result: $ac_cv_type_pid_t" >&5
12031 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12032 if test $ac_cv_type_pid_t = yes; then
12036 cat >>confdefs.h
<<EOF
12042 for ac_header
in unistd.h vfork.h
12044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12045 echo "$as_me:12045: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.
$ac_ext <<_ACEOF
12051 #line 12051 "configure"
12052 #include "confdefs.h"
12053 #include <$ac_header>
12055 if { (eval echo "$as_me:12055: \"$ac_cpp conftest.$ac_ext\"") >&5
12056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12058 egrep -v '^ *\+' conftest.er1
>conftest.err
12060 cat conftest.err
>&5
12061 echo "$as_me:12061: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev
/null
; then
12063 if test -s conftest.err
; then
12064 ac_cpp_err
=$ac_c_preproc_warn_flag
12071 if test -z "$ac_cpp_err"; then
12072 eval "$as_ac_Header=yes"
12074 echo "$as_me: failed program was:" >&5
12075 cat conftest.
$ac_ext >&5
12076 eval "$as_ac_Header=no"
12078 rm -f conftest.err conftest.
$ac_ext
12080 echo "$as_me:12080: result: `eval echo '${'$as_ac_Header'}'`" >&5
12081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h
<<EOF
12084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12090 for ac_func
in fork vfork
12092 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 echo "$as_me:12093: checking for $ac_func" >&5
12094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_var+set}\" = set"; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 cat >conftest.
$ac_ext <<_ACEOF
12099 #line 12099 "configure"
12100 #include "confdefs.h"
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below. */
12103 #include <assert.h>
12104 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12129 rm -f conftest.
$ac_objext conftest
$ac_exeext
12130 if { (eval echo "$as_me:12130: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12133 echo "$as_me:12133: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try
='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:12136: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:12139: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "$as_ac_var=yes"
12143 echo "$as_me: failed program was:" >&5
12144 cat conftest.
$ac_ext >&5
12145 eval "$as_ac_var=no"
12147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12149 echo "$as_me:12149: result: `eval echo '${'$as_ac_var'}'`" >&5
12150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h
<<EOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12159 ac_cv_func_fork_works
=$ac_cv_func_fork
12160 if test "x$ac_cv_func_fork" = xyes
; then
12161 echo "$as_me:12161: checking for working fork" >&5
12162 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12163 if test "${ac_cv_func_fork_works+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 if test "$cross_compiling" = yes; then
12167 ac_cv_func_fork_works
=cross
12169 cat >conftest.
$ac_ext <<_ACEOF
12170 /* By Rüdiger Kuhlmann. */
12171 #include <sys/types.h>
12173 # include <unistd.h>
12175 /* Some systems only have a dummy stub for fork() */
12183 rm -f conftest
$ac_exeext
12184 if { (eval echo "$as_me:12184: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>&5
12187 echo "$as_me:12187: \$? = $ac_status" >&5
12188 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12189 { (eval echo "$as_me:12189: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:12192: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12194 ac_cv_func_fork_works
=yes
12196 echo "$as_me: program exited with status $ac_status" >&5
12197 echo "$as_me: failed program was:" >&5
12198 cat conftest.
$ac_ext >&5
12199 ac_cv_func_fork_works
=no
12201 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12204 echo "$as_me:12204: result: $ac_cv_func_fork_works" >&5
12205 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12208 if test "x$ac_cv_func_fork_works" = xcross
; then
12210 *-*-amigaos* |
*-*-msdosdjgpp*)
12211 # Override, as these systems have only a dummy fork() stub
12212 ac_cv_func_fork_works
=no
12215 ac_cv_func_fork_works
=yes
12218 { echo "$as_me:12218: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12219 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12221 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12222 if test "x$ac_cv_func_vfork" = xyes
; then
12223 echo "$as_me:12223: checking for working vfork" >&5
12224 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12225 if test "${ac_cv_func_vfork_works+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 if test "$cross_compiling" = yes; then
12229 ac_cv_func_vfork_works
=cross
12231 cat >conftest.
$ac_ext <<_ACEOF
12232 #line 12232 "configure"
12233 #include "confdefs.h"
12234 /* Thanks to Paul Eggert for this test. */
12236 #include <sys/types.h>
12237 #include <sys/stat.h>
12239 # include <unistd.h>
12242 # include <vfork.h>
12244 /* On some sparc systems, changes by the child to local and incoming
12245 argument registers are propagated back to the parent. The compiler
12246 is told about this with #include <vfork.h>, but some compilers
12247 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12248 static variable whose address is put into a register that is
12249 clobbered by the vfork. */
12252 sparc_address_test (int arg)
12254 sparc_address_test (arg) int arg;
12257 static pid_t child;
12275 pid_t parent = getpid ();
12278 sparc_address_test ();
12283 /* Here is another test for sparc vfork register problems. This
12284 test uses lots of local variables, at least as many local
12285 variables as main has allocated so far including compiler
12286 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12287 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12288 reuse the register of parent for one of the local variables,
12289 since it will think that parent can't possibly be used any more
12290 in this routine. Assigning to the local variable will thus
12291 munge parent in the parent process. */
12293 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12294 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12295 /* Convince the compiler that p..p7 are live; otherwise, it might
12296 use the same hardware register for all 8 local variables. */
12297 if (p != p1 || p != p2 || p != p3 || p != p4
12298 || p != p5 || p != p6 || p != p7)
12301 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12302 from child file descriptors. If the child closes a descriptor
12303 before it execs or exits, this munges the parent's descriptor
12304 as well. Test for this by closing stdout in the child. */
12305 _exit(close(fileno(stdout)) != 0);
12310 while (wait(&status) != child)
12313 /* Was there some problem with vforking? */
12316 /* Did the child fail? (This shouldn't happen.) */
12319 /* Did the vfork/compiler bug occur? */
12320 || parent != getpid()
12322 /* Did the file descriptor bug occur? */
12323 || fstat(fileno(stdout), &st) != 0
12328 rm -f conftest
$ac_exeext
12329 if { (eval echo "$as_me:12329: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12332 echo "$as_me:12332: \$? = $ac_status" >&5
12333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12334 { (eval echo "$as_me:12334: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:12337: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_func_vfork_works
=yes
12341 echo "$as_me: program exited with status $ac_status" >&5
12342 echo "$as_me: failed program was:" >&5
12343 cat conftest.
$ac_ext >&5
12344 ac_cv_func_vfork_works
=no
12346 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12349 echo "$as_me:12349: result: $ac_cv_func_vfork_works" >&5
12350 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12353 if test "x$ac_cv_func_fork_works" = xcross
; then
12354 ac_cv_func_vfork_works
=ac_cv_func_vfork
12355 { echo "$as_me:12355: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12356 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12359 if test "x$ac_cv_func_vfork_works" = xyes
; then
12361 cat >>confdefs.h
<<\EOF
12362 #define HAVE_WORKING_VFORK 1
12367 cat >>confdefs.h
<<\EOF
12372 if test "x$ac_cv_func_fork_works" = xyes
; then
12374 cat >>confdefs.h
<<\EOF
12375 #define HAVE_WORKING_FORK 1
12380 # Fixme: This should be replaced when we have autoconf 2.14.
12381 echo "$as_me:12381: checking for size_t" >&5
12382 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12383 if test "${ac_cv_type_size_t+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12386 cat >conftest.
$ac_ext <<_ACEOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12389 $ac_includes_default
12395 if (sizeof (size_t))
12401 rm -f conftest.
$ac_objext
12402 if { (eval echo "$as_me:12402: \"$ac_compile\"") >&5
12403 (eval $ac_compile) 2>&5
12405 echo "$as_me:12405: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
12407 { ac_try
='test -s conftest.$ac_objext'
12408 { (eval echo "$as_me:12408: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12411 echo "$as_me:12411: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_type_size_t
=yes
12415 echo "$as_me: failed program was:" >&5
12416 cat conftest.
$ac_ext >&5
12417 ac_cv_type_size_t
=no
12419 rm -f conftest.
$ac_objext conftest.
$ac_ext
12421 echo "$as_me:12421: result: $ac_cv_type_size_t" >&5
12422 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12423 if test $ac_cv_type_size_t = yes; then
12427 cat >>confdefs.h
<<EOF
12428 #define size_t unsigned
12433 # Set up the CFLAGS for real compilation, so we can substitute it.
12434 CFLAGS
="$REAL_CFLAGS"
12435 CPPFLAGS
="$REAL_CPPFLAGS"
12437 #### Find out which version of Emacs this is.
12438 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12439 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12440 if test x
"${version}" = x
; then
12441 { { echo "$as_me:12441: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12442 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12443 { (exit 1); exit 1; }; }
12446 ### Specify what sort of things we'll be editing into Makefile and config.h.
12447 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12449 cat >>confdefs.h
<<EOF
12450 #define EMACS_CONFIGURATION "${canonical}"
12453 cat >>confdefs.h
<<EOF
12454 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12457 cat >>confdefs.h
<<EOF
12458 #define config_machfile "${machfile}"
12461 cat >>confdefs.h
<<EOF
12462 #define config_opsysfile "${opsysfile}"
12465 cat >>confdefs.h
<<EOF
12466 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12469 cat >>confdefs.h
<<EOF
12470 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12473 cat >>confdefs.h
<<EOF
12474 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12477 cat >>confdefs.h
<<EOF
12478 #define UNEXEC_SRC ${UNEXEC_SRC}
12481 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12482 cat >>confdefs.h
<<\EOF
12483 #define HAVE_X_WINDOWS 1
12487 if test "${USE_X_TOOLKIT}" != "none" ; then
12488 cat >>confdefs.h
<<\EOF
12489 #define USE_X_TOOLKIT 1
12493 if test "${HAVE_X11}" = "yes" ; then
12494 cat >>confdefs.h
<<\EOF
12499 if test "${HAVE_XFREE386}" = "yes" ; then
12500 cat >>confdefs.h
<<\EOF
12501 #define HAVE_XFREE386 1
12505 if test "${HAVE_MENUS}" = "yes" ; then
12506 cat >>confdefs.h
<<\EOF
12507 #define HAVE_MENUS 1
12511 if test "${GNU_MALLOC}" = "yes" ; then
12512 cat >>confdefs.h
<<\EOF
12513 #define GNU_MALLOC 1
12517 if test "${REL_ALLOC}" = "yes" ; then
12518 cat >>confdefs.h
<<\EOF
12519 #define REL_ALLOC 1
12524 for ac_header
in nlist.h
12526 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 echo "$as_me:12527: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.
$ac_ext <<_ACEOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12535 #include <$ac_header>
12537 if { (eval echo "$as_me:12537: \"$ac_cpp conftest.$ac_ext\"") >&5
12538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12540 egrep -v '^ *\+' conftest.er1
>conftest.err
12542 cat conftest.err
>&5
12543 echo "$as_me:12543: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev
/null
; then
12545 if test -s conftest.err
; then
12546 ac_cpp_err
=$ac_c_preproc_warn_flag
12553 if test -z "$ac_cpp_err"; then
12554 eval "$as_ac_Header=yes"
12556 echo "$as_me: failed program was:" >&5
12557 cat conftest.
$ac_ext >&5
12558 eval "$as_ac_Header=no"
12560 rm -f conftest.err conftest.
$ac_ext
12562 echo "$as_me:12562: result: `eval echo '${'$as_ac_Header'}'`" >&5
12563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12565 cat >>confdefs.h
<<EOF
12566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12569 cat >>confdefs.h
<<\EOF
12570 #define NLIST_STRUCT 1
12576 #### Report on what we decided to do.
12578 Configured for \`${canonical}'.
12580 Where should the build process find the source code? ${srcdir}
12581 What operating system and machine description files should Emacs use?
12582 \`${opsysfile}' and \`${machfile}'
12583 What compiler should emacs be built with? ${CC} ${CFLAGS}
12584 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12585 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12586 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12587 What window system should Emacs use? ${window_system}
12588 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12590 if test -n "${x_includes}"; then
12591 echo " Where do we find X Windows header files? ${x_includes}"
12593 echo " Where do we find X Windows header files? Standard dirs"
12595 if test -n "${x_libraries}"; then
12596 echo " Where do we find X Windows libraries? ${x_libraries}"
12598 echo " Where do we find X Windows libraries? Standard dirs"
12601 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12602 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12603 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12604 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12605 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12606 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12607 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12610 # Remove any trailing slashes in these variables.
12611 test "${prefix}" != NONE
&&
12612 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12613 test "${exec_prefix}" != NONE
&&
12614 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12616 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12617 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12618 ## from Makefile.c can correctly provide the arg `-traditional' to the
12621 cat >conftest.
$ac_ext <<_ACEOF
12622 #line 12622 "configure"
12623 #include "confdefs.h"
12626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12627 egrep "yes..yes" >/dev
/null
2>&1; then
12628 CPP_NEED_TRADITIONAL
=no
12630 CPP_NEED_TRADITIONAL
=yes
12634 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"
12635 ac_config_commands
="$ac_config_commands default"
12636 cat >confcache
<<\_ACEOF
12637 # This file is a shell script that caches the results of configure
12638 # tests run on this system so they can be shared between configure
12639 # scripts and configure runs, see configure's option --config-cache.
12640 # It is not useful on other systems. If it contains results you don't
12641 # want to keep, you may remove or edit it.
12643 # config.status only pays attention to the cache file if you give it
12644 # the --recheck option to rerun configure.
12646 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12648 # following values.
12652 # The following way of writing the cache mishandles newlines in values,
12653 # but we know of no workaround that is simple, portable, and efficient.
12654 # So, don't put newlines in cache variables' values.
12655 # Ultrix sh set writes to stderr and can't be redirected directly,
12656 # and sets the high bit in the cache file unless we assign to the vars.
12659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12661 # `set' does not quote correctly, so add quotes (double-quote
12662 # substitution turns \\\\ into \\, and sed turns \\ into \).
12665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12668 # `set' quotes correctly as required by POSIX, so do not add quotes.
12670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12681 if cmp -s $cache_file confcache
; then :; else
12682 if test -w $cache_file; then
12683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12684 cat confcache
>$cache_file
12686 echo "not updating unwritable cache $cache_file"
12691 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12692 # Let make expand exec_prefix.
12693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12697 # trailing colons and then remove the whole line if VPATH becomes empty
12698 # (actually we leave an empty line to preserve line numbers).
12699 if test "x$srcdir" = x.
; then
12700 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12701 s/:*\$(srcdir):*/:/;
12702 s/:*\${srcdir}:*/:/;
12704 s/^\([^=]*=[ ]*\):*/\1/;
12710 DEFS
=-DHAVE_CONFIG_H
12712 : ${CONFIG_STATUS=./config.status}
12713 ac_clean_files_save
=$ac_clean_files
12714 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12715 { echo "$as_me:12715: creating $CONFIG_STATUS" >&5
12716 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12717 cat >$CONFIG_STATUS <<_ACEOF
12719 # Generated automatically by configure.
12720 # Run this file to recreate the current configuration.
12721 # Compiler output produced by configure, useful for debugging
12722 # configure, is in config.log if it exists.
12725 SHELL=\${CONFIG_SHELL-$SHELL}
12726 ac_cs_invocation="\$0 \$@"
12730 cat >>$CONFIG_STATUS <<\_ACEOF
12731 # Be Bourne compatible
12732 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12735 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12739 # Name of the executable.
12740 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
12742 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12748 rm -f conf$$ conf$$.exe conf$$.
file
12750 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12751 # We could just check for DJGPP; but this test a) works b) is more generic
12752 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12753 if test -f conf$$.exe
; then
12754 # Don't use ln at all; we don't have any links
12759 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12764 rm -f conf$$ conf$$.exe conf$$.
file
12766 as_executable_p
="test -f"
12768 # Support unset when possible.
12769 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
12776 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
12777 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
12778 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
12779 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
12780 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
12781 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
12782 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
12783 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
12786 # We need space, tab and new line, in precisely that order.
12792 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
12798 # Files that config.status was made for.
12799 if test -n "$ac_config_files"; then
12800 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12803 if test -n "$ac_config_headers"; then
12804 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12807 if test -n "$ac_config_links"; then
12808 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12811 if test -n "$ac_config_commands"; then
12812 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12815 cat >>$CONFIG_STATUS <<\EOF
12818 \`$as_me' instantiates files from templates according to the
12819 current configuration.
12821 Usage: $0 [OPTIONS] [FILE]...
12823 -h, --help print this help, then exit
12824 -V, --version print version number, then exit
12825 -d, --debug don't remove temporary files
12826 --recheck update $as_me by reconfiguring in the same conditions
12827 --file=FILE[:TEMPLATE]
12828 instantiate the configuration file FILE
12829 --header=FILE[:TEMPLATE]
12830 instantiate the configuration header FILE
12832 Configuration files:
12835 Configuration headers:
12838 Configuration commands:
12841 Report bugs to <bug-autoconf@gnu.org>."
12844 cat >>$CONFIG_STATUS <<EOF
12847 configured by $0, generated by GNU Autoconf 2.52,
12848 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12850 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12851 Free Software Foundation, Inc.
12852 This config.status script is free software; the Free Software Foundation
12853 gives unlimited permission to copy, distribute and modify it."
12858 cat >>$CONFIG_STATUS <<\EOF
12859 # If no file are specified by the user, then we need to provide default
12860 # value. By we need to know if files were specified by the user.
12866 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12867 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12869 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
12873 *) # This is not an option, so the user has probably given explicit
12875 ac_need_defaults
=false
;;
12879 # Handling of the options.
12881 cat >>$CONFIG_STATUS <<EOF
12882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12883 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12884 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12886 cat >>$CONFIG_STATUS <<\EOF
12887 --version |
--vers* |
-V )
12888 echo "$ac_cs_version"; exit 0 ;;
12890 # Conflict between --help and --header
12891 { { echo "$as_me:12891: error: ambiguous option: $1
12892 Try \`$0 --help' for more information." >&5
12893 echo "$as_me: error: ambiguous option: $1
12894 Try \`$0 --help' for more information." >&2;}
12895 { (exit 1); exit 1; }; };;
12896 --help |
--hel |
-h )
12897 echo "$ac_cs_usage"; exit 0 ;;
12898 --debug |
--d* |
-d )
12900 --file |
--fil |
--fi |
--f )
12902 CONFIG_FILES
="$CONFIG_FILES $1"
12903 ac_need_defaults
=false
;;
12904 --header |
--heade |
--head |
--hea )
12906 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
12907 ac_need_defaults
=false
;;
12909 # This is an error.
12910 -*) { { echo "$as_me:12910: error: unrecognized option: $1
12911 Try \`$0 --help' for more information." >&5
12912 echo "$as_me: error: unrecognized option: $1
12913 Try \`$0 --help' for more information." >&2;}
12914 { (exit 1); exit 1; }; } ;;
12916 *) ac_config_targets
="$ac_config_targets $1" ;;
12925 ## ----------------------- ##
12926 ## Running config.status. ##
12927 ## ----------------------- ##
12929 This file was extended by $as_me 2.52, executed with
12930 CONFIG_FILES = $CONFIG_FILES
12931 CONFIG_HEADERS = $CONFIG_HEADERS
12932 CONFIG_LINKS = $CONFIG_LINKS
12933 CONFIG_COMMANDS = $CONFIG_COMMANDS
12934 > $ac_cs_invocation
12935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12940 cat >>$CONFIG_STATUS <<EOF
12942 # INIT-COMMANDS section.
12945 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12949 cat >>$CONFIG_STATUS <<\EOF
12950 for ac_config_target
in $ac_config_targets
12952 case "$ac_config_target" in
12953 # Handling of arguments.
12954 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12955 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12956 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
12957 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
12958 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
12959 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12960 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
12961 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
12962 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
12963 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
12964 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12965 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12966 *) { { echo "$as_me:12966: error: invalid argument: $ac_config_target" >&5
12967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12968 { (exit 1); exit 1; }; };;
12972 # If the user did not use the arguments to specify the items to instantiate,
12973 # then the envvar interface is used. Set only those that are not.
12974 # We use the long form for the default assignment because of an extremely
12975 # bizarre bug on SunOS 4.1.3.
12976 if $ac_need_defaults; then
12977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12982 # Create a temporary directory, and hook for its removal unless debugging.
12985 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12986 trap '{ (exit 1); exit 1; }' 1 2 13 15
12989 # Create a (secure) tmp directory for tmp files.
12992 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12993 test -n "$tmp" && test -d "$tmp"
12996 tmp
=$TMPDIR/cs$$
-$RANDOM
12997 (umask 077 && mkdir
$tmp)
13000 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13001 { (exit 1); exit 1; }
13006 cat >>$CONFIG_STATUS <<EOF
13009 # CONFIG_FILES section.
13012 # No need to generate the scripts if there are no CONFIG_FILES.
13013 # This happens for instance when ./config.status config.h
13014 if test -n "\$CONFIG_FILES"; then
13015 # Protect against being on the right side of a sed subst in config.status.
13016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13018 s,@SHELL@,$SHELL,;t t
13019 s,@exec_prefix@,$exec_prefix,;t t
13020 s,@prefix@,$prefix,;t t
13021 s,@program_transform_name@,$program_transform_name,;t t
13022 s,@bindir@,$bindir,;t t
13023 s,@sbindir@,$sbindir,;t t
13024 s,@libexecdir@,$libexecdir,;t t
13025 s,@datadir@,$datadir,;t t
13026 s,@sysconfdir@,$sysconfdir,;t t
13027 s,@sharedstatedir@,$sharedstatedir,;t t
13028 s,@localstatedir@,$localstatedir,;t t
13029 s,@libdir@,$libdir,;t t
13030 s,@includedir@,$includedir,;t t
13031 s,@oldincludedir@,$oldincludedir,;t t
13032 s,@infodir@,$infodir,;t t
13033 s,@mandir@,$mandir,;t t
13034 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13035 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13036 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13037 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13038 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13039 s,@build_alias@,$build_alias,;t t
13040 s,@host_alias@,$host_alias,;t t
13041 s,@target_alias@,$target_alias,;t t
13042 s,@ECHO_C@,$ECHO_C,;t t
13043 s,@ECHO_N@,$ECHO_N,;t t
13044 s,@ECHO_T@,$ECHO_T,;t t
13045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13046 s,@DEFS@,$DEFS,;t t
13047 s,@LIBS@,$LIBS,;t t
13048 s,@build@,$build,;t t
13049 s,@build_cpu@,$build_cpu,;t t
13050 s,@build_vendor@,$build_vendor,;t t
13051 s,@build_os@,$build_os,;t t
13052 s,@host@,$host,;t t
13053 s,@host_cpu@,$host_cpu,;t t
13054 s,@host_vendor@,$host_vendor,;t t
13055 s,@host_os@,$host_os,;t t
13057 s,@CFLAGS@,$CFLAGS,;t t
13058 s,@LDFLAGS@,$LDFLAGS,;t t
13059 s,@CPPFLAGS@,$CPPFLAGS,;t t
13060 s,@ac_ct_CC@,$ac_ct_CC,;t t
13061 s,@EXEEXT@,$EXEEXT,;t t
13062 s,@OBJEXT@,$OBJEXT,;t t
13063 s,@LN_S@,$LN_S,;t t
13065 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13066 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13067 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13068 s,@YACC@,$YACC,;t t
13069 s,@RANLIB@,$RANLIB,;t t
13070 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13071 s,@LIBSOUND@,$LIBSOUND,;t t
13072 s,@SET_MAKE@,$SET_MAKE,;t t
13073 s,@ALLOCA@,$ALLOCA,;t t
13074 s,@liblockfile@,$liblockfile,;t t
13075 s,@LIBOBJS@,$LIBOBJS,;t t
13076 s,@NEED_SETGID@,$NEED_SETGID,;t t
13077 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13078 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13079 s,@version@,$version,;t t
13080 s,@configuration@,$configuration,;t t
13081 s,@canonical@,$canonical,;t t
13082 s,@srcdir@,$srcdir,;t t
13083 s,@lispdir@,$lispdir,;t t
13084 s,@locallisppath@,$locallisppath,;t t
13085 s,@lisppath@,$lisppath,;t t
13086 s,@x_default_search_path@,$x_default_search_path,;t t
13087 s,@etcdir@,$etcdir,;t t
13088 s,@archlibdir@,$archlibdir,;t t
13089 s,@docdir@,$docdir,;t t
13090 s,@bitmapdir@,$bitmapdir,;t t
13091 s,@c_switch_system@,$c_switch_system,;t t
13092 s,@c_switch_machine@,$c_switch_machine,;t t
13093 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13094 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13095 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13096 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13097 s,@machfile@,$machfile,;t t
13098 s,@opsysfile@,$opsysfile,;t t
13103 cat >>$CONFIG_STATUS <<\EOF
13104 # Split the substitutions into bite-sized pieces for seds with
13105 # small command number limits, like on Digital OSF/1 and HP-UX.
13106 ac_max_sed_lines
=48
13107 ac_sed_frag
=1 # Number of current file.
13108 ac_beg
=1 # First line for current file.
13109 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13112 while $ac_more_lines; do
13113 if test $ac_beg -gt 1; then
13114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13116 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13118 if test ! -s $tmp/subs.frag
; then
13119 ac_more_lines
=false
13121 # The purpose of the label and of the branching condition is to
13122 # speed up the sed processing (if there are no `@' at all, there
13123 # is no need to browse any of the substitutions).
13124 # These are the two extra sed commands mentioned above.
13126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13127 if test -z "$ac_sed_cmds"; then
13128 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13130 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13132 ac_sed_frag
=`expr $ac_sed_frag + 1`
13134 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13137 if test -z "$ac_sed_cmds"; then
13140 fi # test -n "$CONFIG_FILES"
13143 cat >>$CONFIG_STATUS <<\EOF
13144 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13147 - |
*:- |
*:-:* ) # input from stdin
13149 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13150 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13151 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13152 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13153 * ) ac_file_in
=$ac_file.
in ;;
13156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13157 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13158 X"$ac_file" : 'X\(//\)[^/]' \| \
13159 X"$ac_file" : 'X\(//\)$' \| \
13160 X"$ac_file" : 'X\(/\)' \| \
13161 . : '\(.\)' 2>/dev/null ||
13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13165 /^X\(\/\/\)$/{ s//\1/; q; }
13166 /^X\(\/\).*/{ s//\1/; q; }
13168 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13169 { case "$ac_dir" in
13170 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13174 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13175 case $as_mkdir_dir in
13176 # Skip DOS drivespec
13177 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13179 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13180 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13185 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
13186 # A "../" for each directory in $ac_dir_suffix.
13187 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13189 ac_dir_suffix
= ac_dots
=
13194 if test -z "$ac_dots"; then
13197 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
13199 [\\/]* | ?
:[\\/]* )
13200 ac_srcdir
=$srcdir$ac_dir_suffix;
13201 ac_top_srcdir
=$srcdir ;;
13202 *) # Relative path.
13203 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
13204 ac_top_srcdir
=$ac_dots$srcdir ;;
13208 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13209 *) ac_INSTALL
=$ac_dots$INSTALL ;;
13212 if test x
"$ac_file" != x-
; then
13213 { echo "$as_me:13213: creating $ac_file" >&5
13214 echo "$as_me: creating $ac_file" >&6;}
13217 # Let's still pretend it is `configure' which instantiates (i.e., don't
13218 # use $as_me), people would be surprised to read:
13219 # /* config.h. Generated automatically by config.status. */
13220 configure_input
="Generated automatically from `echo $ac_file_in |
13221 sed 's,.*/,,'` by configure."
13223 # First look for the input files in the build tree, otherwise in the
13225 ac_file_inputs
=`IFS=:
13226 for f in $ac_file_in; do
13228 -) echo $tmp/stdin ;;
13230 # Absolute (can't be DOS-style, as IFS=:)
13231 test -f "$f" || { { echo "$as_me:13231: error: cannot find input file: $f" >&5
13232 echo "$as_me: error: cannot find input file: $f" >&2;}
13233 { (exit 1); exit 1; }; }
13236 if test -f "$f"; then
13239 elif test -f "$srcdir/$f"; then
13244 { { echo "$as_me:13244: error: cannot find input file: $f" >&5
13245 echo "$as_me: error: cannot find input file: $f" >&2;}
13246 { (exit 1); exit 1; }; }
13249 done` ||
{ (exit 1); exit 1; }
13251 cat >>$CONFIG_STATUS <<EOF
13255 cat >>$CONFIG_STATUS <<\EOF
13257 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13258 s
,@configure_input@
,$configure_input,;t t
13259 s
,@srcdir@
,$ac_srcdir,;t t
13260 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13261 s
,@INSTALL@
,$ac_INSTALL,;t t
13262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13264 if test x"$ac_file" != x-; then
13265 mv $tmp/out $ac_file
13273 cat >>$CONFIG_STATUS <<\EOF
13276 # CONFIG_HEADER section.
13279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13282 # ac_d sets the value in "#define NAME VALUE" lines.
13283 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13284 ac_dB
='[ ].*$,\1#\2'
13287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13288 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13289 ac_uB
='$,\1#\2define\3'
13293 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13296 - |
*:- |
*:-:* ) # input from stdin
13298 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13299 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13300 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13301 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13302 * ) ac_file_in
=$ac_file.
in ;;
13305 test x
"$ac_file" != x-
&& { echo "$as_me:13305: creating $ac_file" >&5
13306 echo "$as_me: creating $ac_file" >&6;}
13308 # First look for the input files in the build tree, otherwise in the
13310 ac_file_inputs
=`IFS=:
13311 for f in $ac_file_in; do
13313 -) echo $tmp/stdin ;;
13315 # Absolute (can't be DOS-style, as IFS=:)
13316 test -f "$f" || { { echo "$as_me:13316: error: cannot find input file: $f" >&5
13317 echo "$as_me: error: cannot find input file: $f" >&2;}
13318 { (exit 1); exit 1; }; }
13321 if test -f "$f"; then
13324 elif test -f "$srcdir/$f"; then
13329 { { echo "$as_me:13329: error: cannot find input file: $f" >&5
13330 echo "$as_me: error: cannot find input file: $f" >&2;}
13331 { (exit 1); exit 1; }; }
13334 done` ||
{ (exit 1); exit 1; }
13335 # Remove the trailing spaces.
13336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13341 # `conftest.undefs', that substitutes the proper values into
13342 # config.h.in to produce config.h. The first handles `#define'
13343 # templates, and the second `#undef' templates.
13344 # And first: Protect against being on the right side of a sed subst in
13345 # config.status. Protect against being in an unquoted here document
13346 # in config.status.
13347 rm -f conftest.defines conftest.undefs
13348 # Using a here document instead of a string reduces the quoting nightmare.
13349 # Putting comments in sed scripts is not portable.
13351 # `end' is used to avoid that the second main sed command (meant for
13352 # 0-ary CPP macros) applies to n-ary macro definitions.
13353 # See the Autoconf documentation for `clear'.
13354 cat >confdef2sed.
sed <<\EOF
13359 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13364 # If some macros were called several times there might be several times
13365 # the same #defines, which is useless. Nevertheless, we may not want to
13366 # sort them, since we want the *last* AC-DEFINE to be honored.
13367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13369 rm -f confdef2sed.sed
13371 # This sed command replaces #undef with comments. This is necessary, for
13372 # example, in the case of _POSIX_SOURCE, which is predefined and required
13373 # on some systems where configure will not decide to define it.
13374 cat >>conftest.undefs <<\EOF
13375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13378 # Break up conftest.defines because some shells have a limit on the size
13379 # of here documents, and old seds have small limits too (100 cmds).
13380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13381 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13383 echo ' :' >>$CONFIG_STATUS
13384 rm -f conftest.tail
13385 while grep . conftest.defines >/dev/null
13387 # Write a limited-size here document to $tmp/defines.sed.
13388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13389 # Speed up: don't consider the non `#define' lines.
13390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13391 # Work around the forget-to-reset-the-flag bug.
13392 echo 't clr' >>$CONFIG_STATUS
13393 echo ': clr' >>$CONFIG_STATUS
13394 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13398 mv $tmp/out $tmp/in
13400 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13401 rm -f conftest.defines
13402 mv conftest.
tail conftest.defines
13404 rm -f conftest.defines
13405 echo ' fi # egrep' >>$CONFIG_STATUS
13406 echo >>$CONFIG_STATUS
13408 # Break up conftest.undefs because some shells have a limit on the size
13409 # of here documents, and old seds have small limits too (100 cmds).
13410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13411 rm -f conftest.
tail
13412 while grep . conftest.undefs
>/dev
/null
13414 # Write a limited-size here document to $tmp/undefs.sed.
13415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13416 # Speed up: don't consider the non
`#undef'
13417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13418 # Work around the forget-to-reset-the-flag bug.
13419 echo 't clr' >>$CONFIG_STATUS
13420 echo ': clr' >>$CONFIG_STATUS
13421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13425 mv $tmp/out $tmp/in
13427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13428 rm -f conftest.undefs
13429 mv conftest.tail conftest.undefs
13431 rm -f conftest.undefs
13433 cat >>$CONFIG_STATUS <<\EOF
13434 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13435 # use $as_me), people would be surprised to read:
13436 # /* config.h. Generated automatically by config.status. */
13437 if test x
"$ac_file" = x-
; then
13438 echo "/* Generated automatically by configure. */" >$tmp/config.h
13440 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13442 cat $tmp/in >>$tmp/config.h
13444 if test x
"$ac_file" != x-
; then
13445 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
13446 { echo "$as_me:13446: $ac_file is unchanged" >&5
13447 echo "$as_me: $ac_file is unchanged" >&6;}
13449 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13450 X"$ac_file" : 'X\(//\)[^/]' \| \
13451 X"$ac_file" : 'X\(//\)$' \| \
13452 X"$ac_file" : 'X\(/\)' \| \
13453 . : '\(.\)' 2>/dev/null ||
13455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13457 /^X\(\/\/\)$/{ s//\1/; q; }
13458 /^X\(\/\).*/{ s//\1/; q; }
13460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13461 { case "$ac_dir" in
13462 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
13466 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13467 case $as_mkdir_dir in
13468 # Skip DOS drivespec
13469 ?
:) as_incr_dir
=$as_mkdir_dir ;;
13471 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
13472 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
13479 mv $tmp/config.h
$ac_file
13483 rm -f $tmp/config.h
13487 cat >>$CONFIG_STATUS <<\EOF
13490 # CONFIG_COMMANDS section.
13492 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13493 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13494 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13499 ### Make the necessary directories, if they don't exist.
13500 for dir
in etc lisp
; do
13501 test -d ${dir} || mkdir
${dir}
13504 # Build src/Makefile from ${srcdir}/src/Makefile.c
13505 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13506 # This must be done after src/config.h is built, since we rely on that file.
13508 # Now get this: Some word that is part of the ${srcdir} directory name
13509 # or the ${configuration} value might, just might, happen to be an
13510 # identifier like `sun4' or `i386' or something, and be predefined by
13511 # the C preprocessor to some helpful value like 1, or maybe the empty
13512 # string. Needless to say consequent macro substitutions are less
13513 # than conducive to the makefile finding the correct directory.
13514 undefs
="`echo $top_srcdir $configuration $canonical |
13515 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13516 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13519 echo creating src
/epaths.h
13520 ${MAKE-make} epaths-force
13522 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13523 # `..' to `. .' unless invoked with -traditional
13525 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
13526 CPPFLAGS
="$CPPFLAGS -traditional"
13529 echo creating lib-src
/Makefile
13531 rm -f junk.c junk1.c junk2.c
13532 sed -e '/start of cpp stuff/q' \
13533 < Makefile.c
> junk1.c
13534 sed -e '1,/start of cpp stuff/d'\
13535 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13536 < Makefile.c
> junk.c
13537 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13538 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13539 cat junk1.c junk2.c
> Makefile.new
13540 rm -f junk.c junk1.c junk2.c
13541 chmod 444 Makefile.new
13542 mv -f Makefile.new Makefile
13545 echo creating src
/Makefile
13547 rm -f junk.c junk1.c junk2.c
13548 sed -e '/start of cpp stuff/q' \
13549 < Makefile.c
> junk1.c
13550 sed -e '1,/start of cpp stuff/d'\
13551 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13552 < Makefile.c
> junk.c
13553 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
13554 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13555 cat junk1.c junk2.c
> Makefile.new
13556 rm -f junk.c junk1.c junk2.c
13557 chmod 444 Makefile.new
13558 mv -f Makefile.new Makefile
13561 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
13562 echo creating src
/.gdbinit
13563 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
13566 # This is how we know whether to re-run configure in certain cases.
13567 touch src
/config.stamp
13574 cat >>$CONFIG_STATUS <<\EOF
13576 { (exit 0); exit 0; }
13578 chmod +x
$CONFIG_STATUS
13579 ac_clean_files
=$ac_clean_files_save
13581 # configure is writing to config.log, and then calls config.status.
13582 # config.status does its own redirection, appending to config.log.
13583 # Unfortunately, on DOS this fails, as config.log is still kept open
13584 # by configure, so config.status won't be able to write to it; its
13585 # output is simply discarded. So we exec the FD to /dev/null,
13586 # effectively closing config.log, so it can be properly (re)opened and
13587 # appended to by config.status. When coming back to configure, we
13588 # need to make the FD available again.
13589 if test "$no_create" != yes; then
13592 $SHELL $CONFIG_STATUS || ac_cs_success
=false
13594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13595 # would make configure fail if this is the last instruction.
13596 $ac_cs_success ||
{ (exit 1); exit 1; }