*** empty log message ***
[emacs.git] / configure
blobb541039a57bb5a119bed5f67a752540e08d79658
1 #! /bin/sh
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
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >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
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
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
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
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; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
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`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
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="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
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.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
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 ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
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'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
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.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
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)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
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)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
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)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
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)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
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)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
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'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
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" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
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; }; }
468 *=*)
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'"
476 export $ac_envvar ;;
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}
486 esac
487 done
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`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
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`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
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
531 cross_compiling=yes
535 ac_tool_prefix=
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.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
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; }; }
558 else
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}
577 ac_env_CC_value=$CC
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.
603 cat <<EOF
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.
613 Configuration:
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 \`..']
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
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]
655 cat <<\EOF
657 Program names:
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
662 X features:
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
666 System types:
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
674 cat <<\EOF
676 Optional Features:
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
681 Optional Packages:
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 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
690 --with-xpm use -lXpm for displaying XPM images
691 --with-jpeg use -ljpeg for displaying JPEG images
692 --with-tiff use -ltiff for displaying TIFF images
693 --with-gif use -lungif for displaying GIF images
694 --with-png use -lpng for displaying PNG images
695 --without-toolkit-scroll-bars
696 don't use Motif or Xaw3d scroll bars
697 --without-xim don't use X11 XIM
698 --with-x use the X Window System
700 Some influential environment variables:
701 CC C compiler command
702 CFLAGS C compiler flags
703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
704 nonstandard directory <lib dir>
705 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
706 headers in a nonstandard directory <include dir>
707 CPP C preprocessor
709 Use these variables to override the choices made by `configure' or to help
710 it to find libraries and programs with nonstandard names/locations.
715 if test "$ac_init_help" = "recursive"; then
716 # If there are subdirs, report their specific --help.
717 ac_popdir=`pwd`
718 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
719 cd $ac_subdir
720 # A "../" for each directory in /$ac_subdir.
721 ac_dots=`echo $ac_subdir |
722 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
724 case $srcdir in
725 .) # No --srcdir option. We are building in place.
726 ac_sub_srcdir=$srcdir ;;
727 [\\/]* | ?:[\\/]* ) # Absolute path.
728 ac_sub_srcdir=$srcdir/$ac_subdir ;;
729 *) # Relative path.
730 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
731 esac
733 # Check for guested configure; otherwise get Cygnus style configure.
734 if test -f $ac_sub_srcdir/configure.gnu; then
735 echo
736 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
737 elif test -f $ac_sub_srcdir/configure; then
738 echo
739 $SHELL $ac_sub_srcdir/configure --help=recursive
740 elif test -f $ac_sub_srcdir/configure.ac ||
741 test -f $ac_sub_srcdir/configure.in; then
742 echo
743 $ac_configure --help
744 else
745 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
747 cd $ac_popdir
748 done
751 test -n "$ac_init_help" && exit 0
752 if $ac_init_version; then
753 cat <<\EOF
755 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
756 Free Software Foundation, Inc.
757 This configure script is free software; the Free Software Foundation
758 gives unlimited permission to copy, distribute and modify it.
760 exit 0
762 exec 5>config.log
763 cat >&5 <<EOF
764 This file contains any messages produced by compilers while
765 running configure, to aid debugging if configure makes a mistake.
767 It was created by $as_me, which was
768 generated by GNU Autoconf 2.52. Invocation command line was
770 $ $0 $@
774 cat <<_ASUNAME
775 ## ---------- ##
776 ## Platform. ##
777 ## ---------- ##
779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
786 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
788 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
789 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
791 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
792 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
793 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
794 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 PATH = $PATH
798 _ASUNAME
799 } >&5
801 cat >&5 <<EOF
802 ## ------------ ##
803 ## Core tests. ##
804 ## ------------ ##
808 # Keep a trace of the command line.
809 # Strip out --no-create and --no-recursion so they do not pile up.
810 # Also quote any args containing shell meta-characters.
811 ac_configure_args=
812 ac_sep=
813 for ac_arg
815 case $ac_arg in
816 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
817 | --no-cr | --no-c) ;;
818 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
819 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
820 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
821 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
822 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
823 ac_sep=" " ;;
824 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
825 ac_sep=" " ;;
826 esac
827 # Get rid of the leading space.
828 done
830 # When interrupted or exit'd, cleanup temporary files, and complete
831 # config.log. We remove comments because anyway the quotes in there
832 # would cause problems or look ugly.
833 trap 'exit_status=$?
834 # Save into config.log some information that might help in debugging.
835 echo >&5
836 echo "## ----------------- ##" >&5
837 echo "## Cache variables. ##" >&5
838 echo "## ----------------- ##" >&5
839 echo >&5
840 # The following way of writing the cache mishandles newlines in values,
842 (set) 2>&1 |
843 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
844 *ac_space=\ *)
845 sed -n \
846 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
850 sed -n \
851 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
853 esac;
854 } >&5
855 sed "/^$/d" confdefs.h >conftest.log
856 if test -s conftest.log; then
857 echo >&5
858 echo "## ------------ ##" >&5
859 echo "## confdefs.h. ##" >&5
860 echo "## ------------ ##" >&5
861 echo >&5
862 cat conftest.log >&5
864 (echo; echo) >&5
865 test "$ac_signal" != 0 &&
866 echo "$as_me: caught signal $ac_signal" >&5
867 echo "$as_me: exit $exit_status" >&5
868 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
869 exit $exit_status
871 for ac_signal in 1 2 13 15; do
872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
873 done
874 ac_signal=0
876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
877 rm -rf conftest* confdefs.h
878 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
879 echo >confdefs.h
881 # Let the site file select an alternate cache file if it wants to.
882 # Prefer explicitly selected file to automatically selected ones.
883 if test -z "$CONFIG_SITE"; then
884 if test "x$prefix" != xNONE; then
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
886 else
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
890 for ac_site_file in $CONFIG_SITE; do
891 if test -r "$ac_site_file"; then
892 { echo "$as_me:892: loading site script $ac_site_file" >&5
893 echo "$as_me: loading site script $ac_site_file" >&6;}
894 cat "$ac_site_file" >&5
895 . "$ac_site_file"
897 done
899 if test -r "$cache_file"; then
900 # Some versions of bash will fail to source /dev/null (special
901 # files actually), so we avoid doing that.
902 if test -f "$cache_file"; then
903 { echo "$as_me:903: loading cache $cache_file" >&5
904 echo "$as_me: loading cache $cache_file" >&6;}
905 case $cache_file in
906 [\\/]* | ?:[\\/]* ) . $cache_file;;
907 *) . ./$cache_file;;
908 esac
910 else
911 { echo "$as_me:911: creating cache $cache_file" >&5
912 echo "$as_me: creating cache $cache_file" >&6;}
913 >$cache_file
916 # Check that the precious variables saved in the cache have kept the same
917 # value.
918 ac_cache_corrupted=false
919 for ac_var in `(set) 2>&1 |
920 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
922 eval ac_new_set=\$ac_env_${ac_var}_set
923 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
924 eval ac_new_val="\$ac_env_${ac_var}_value"
925 case $ac_old_set,$ac_new_set in
926 set,)
927 { echo "$as_me:927: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
928 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
929 ac_cache_corrupted=: ;;
930 ,set)
931 { echo "$as_me:931: error: \`$ac_var' was not set in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
934 ,);;
936 if test "x$ac_old_val" != "x$ac_new_val"; then
937 { echo "$as_me:937: error: \`$ac_var' has changed since the previous run:" >&5
938 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
939 { echo "$as_me:939: former value: $ac_old_val" >&5
940 echo "$as_me: former value: $ac_old_val" >&2;}
941 { echo "$as_me:941: current value: $ac_new_val" >&5
942 echo "$as_me: current value: $ac_new_val" >&2;}
943 ac_cache_corrupted=:
944 fi;;
945 esac
946 # Pass precious variables to config.status. It doesn't matter if
947 # we pass some twice (in addition to the command line arguments).
948 if test "$ac_new_set" = set; then
949 case $ac_new_val in
950 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
951 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
952 ac_configure_args="$ac_configure_args '$ac_arg'"
954 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
956 esac
958 done
959 if $ac_cache_corrupted; then
960 { echo "$as_me:960: error: changes in the environment can compromise the build" >&5
961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
962 { { echo "$as_me:962: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
964 { (exit 1); exit 1; }; }
967 ac_ext=c
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
973 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
974 *c*,-n*) ECHO_N= ECHO_C='
975 ' ECHO_T=' ' ;;
976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
978 esac
979 echo "#! $SHELL" >conftest.sh
980 echo "exit 0" >>conftest.sh
981 chmod +x conftest.sh
982 if { (echo "$as_me:982: PATH=\".;.\"; conftest.sh") >&5
983 (PATH=".;."; conftest.sh) 2>&5
984 ac_status=$?
985 echo "$as_me:985: \$? = $ac_status" >&5
986 (exit $ac_status); }; then
987 ac_path_separator=';'
988 else
989 ac_path_separator=:
991 PATH_SEPARATOR="$ac_path_separator"
992 rm -f conftest.sh
994 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
996 test "$program_prefix" != NONE &&
997 program_transform_name="s,^,$program_prefix,;$program_transform_name"
998 # Use a double $ so make ignores it.
999 test "$program_suffix" != NONE &&
1000 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1001 # Double any \ or $. echo might interpret backslashes.
1002 # By default was `s,x,x', remove it if useless.
1003 cat <<\_ACEOF >conftest.sed
1004 s/[\\$]/&&/g;s/;s,x,x,$//
1005 _ACEOF
1006 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1007 rm conftest.sed
1009 lispdir='${datadir}/emacs/${version}/lisp'
1010 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1011 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1012 lisppath='${locallisppath}:${lispdir}'
1013 etcdir='${datadir}/emacs/${version}/etc'
1014 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1015 docdir='${datadir}/emacs/${version}/etc'
1017 # Check whether --with-gcc or --without-gcc was given.
1018 if test "${with_gcc+set}" = set; then
1019 withval="$with_gcc"
1023 # Check whether --with-pop or --without-pop was given.
1024 if test "${with_pop+set}" = set; then
1025 withval="$with_pop"
1026 if test "$withval" = yes; then
1027 cat >>confdefs.h <<\EOF
1028 #define MAIL_USE_POP 1
1031 else :
1033 else
1034 cat >>confdefs.h <<\EOF
1035 #define MAIL_USE_POP 1
1040 # Check whether --with-kerberos or --without-kerberos was given.
1041 if test "${with_kerberos+set}" = set; then
1042 withval="$with_kerberos"
1043 cat >>confdefs.h <<\EOF
1044 #define KERBEROS 1
1049 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1050 if test "${with_kerberos5+set}" = set; then
1051 withval="$with_kerberos5"
1052 if test "${with_kerberos5+set}" = set; then
1053 if test "${with_kerberos+set}" != set; then
1054 with_kerberos=yes
1055 cat >>confdefs.h <<\EOF
1056 #define KERBEROS 1
1061 cat >>confdefs.h <<\EOF
1062 #define KERBEROS5 1
1067 # Check whether --with-hesiod or --without-hesiod was given.
1068 if test "${with_hesiod+set}" = set; then
1069 withval="$with_hesiod"
1070 cat >>confdefs.h <<\EOF
1071 #define HESIOD 1
1076 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1077 if test "${with_x_toolkit+set}" = set; then
1078 withval="$with_x_toolkit"
1079 case "${withval}" in
1080 y | ye | yes ) val=athena ;;
1081 n | no ) val=no ;;
1082 l | lu | luc | luci | lucid ) val=lucid ;;
1083 a | at | ath | athe | athen | athena ) val=athena ;;
1084 m | mo | mot | moti | motif ) val=motif ;;
1086 { { echo "$as_me:1086: error: \`--with-x-toolkit=$withval' is invalid\;
1087 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1088 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1089 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1090 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1091 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1092 { (exit 1); exit 1; }; }
1094 esac
1095 with_x_toolkit=$val
1099 # Check whether --with-xpm or --without-xpm was given.
1100 if test "${with_xpm+set}" = set; then
1101 withval="$with_xpm"
1105 # Check whether --with-jpeg or --without-jpeg was given.
1106 if test "${with_jpeg+set}" = set; then
1107 withval="$with_jpeg"
1111 # Check whether --with-tiff or --without-tiff was given.
1112 if test "${with_tiff+set}" = set; then
1113 withval="$with_tiff"
1117 # Check whether --with-gif or --without-gif was given.
1118 if test "${with_gif+set}" = set; then
1119 withval="$with_gif"
1123 # Check whether --with-png or --without-png was given.
1124 if test "${with_png+set}" = set; then
1125 withval="$with_png"
1129 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1130 if test "${with_toolkit_scroll_bars+set}" = set; then
1131 withval="$with_toolkit_scroll_bars"
1135 # Check whether --with-xim or --without-xim was given.
1136 if test "${with_xim+set}" = set; then
1137 withval="$with_xim"
1141 #### Make srcdir absolute, if it isn't already. It's important to
1142 #### avoid running the path through pwd unnecessarily, since pwd can
1143 #### give you automounter prefixes, which can go away. We do all this
1144 #### so Emacs can find its files when run uninstalled.
1145 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1146 unset CDPATH
1147 case "${srcdir}" in
1148 /* ) ;;
1150 ## We may be able to use the $PWD environment variable to make this
1151 ## absolute. But sometimes PWD is inaccurate.
1152 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1153 then
1154 srcdir="$PWD"
1155 else
1156 srcdir="`(cd ${srcdir}; pwd)`"
1159 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1160 esac
1162 #### Check if the source directory already has a configured system in it.
1163 if test `pwd` != `(cd ${srcdir} && pwd)` \
1164 && test -f "${srcdir}/src/config.h" ; then
1165 { echo "$as_me:1165: WARNING: The directory tree \`${srcdir}' is being used
1166 as a build directory right now; it has been configured in its own
1167 right. To configure in another directory as well, you MUST
1168 use GNU make. If you do not have GNU make, then you must
1169 now do \`make distclean' in ${srcdir},
1170 and then run $0 again." >&5
1171 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1172 as a build directory right now; it has been configured in its own
1173 right. To configure in another directory as well, you MUST
1174 use GNU make. If you do not have GNU make, then you must
1175 now do \`make distclean' in ${srcdir},
1176 and then run $0 again." >&2;}
1178 extrasub='/^VPATH[ ]*=/c\
1179 vpath %.c $(srcdir)\
1180 vpath %.h $(srcdir)\
1181 vpath %.y $(srcdir)\
1182 vpath %.l $(srcdir)\
1183 vpath %.s $(srcdir)\
1184 vpath %.in $(srcdir)\
1185 vpath %.texi $(srcdir)'
1188 #### Given the configuration name, set machfile and opsysfile to the
1189 #### names of the m/*.h and s/*.h files we should use.
1191 ### Canonicalize the configuration name.
1193 ac_aux_dir=
1194 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1195 if test -f $ac_dir/install-sh; then
1196 ac_aux_dir=$ac_dir
1197 ac_install_sh="$ac_aux_dir/install-sh -c"
1198 break
1199 elif test -f $ac_dir/install.sh; then
1200 ac_aux_dir=$ac_dir
1201 ac_install_sh="$ac_aux_dir/install.sh -c"
1202 break
1203 elif test -f $ac_dir/shtool; then
1204 ac_aux_dir=$ac_dir
1205 ac_install_sh="$ac_aux_dir/shtool install -c"
1206 break
1208 done
1209 if test -z "$ac_aux_dir"; then
1210 { { echo "$as_me:1210: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1211 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1212 { (exit 1); exit 1; }; }
1214 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1215 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1216 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1218 # Make sure we can run config.sub.
1219 $ac_config_sub sun4 >/dev/null 2>&1 ||
1220 { { echo "$as_me:1220: error: cannot run $ac_config_sub" >&5
1221 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1222 { (exit 1); exit 1; }; }
1224 echo "$as_me:1224: checking build system type" >&5
1225 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1226 if test "${ac_cv_build+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229 ac_cv_build_alias=$build_alias
1230 test -z "$ac_cv_build_alias" &&
1231 ac_cv_build_alias=`$ac_config_guess`
1232 test -z "$ac_cv_build_alias" &&
1233 { { echo "$as_me:1233: error: cannot guess build type; you must specify one" >&5
1234 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1235 { (exit 1); exit 1; }; }
1236 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1237 { { echo "$as_me:1237: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1238 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1239 { (exit 1); exit 1; }; }
1242 echo "$as_me:1242: result: $ac_cv_build" >&5
1243 echo "${ECHO_T}$ac_cv_build" >&6
1244 build=$ac_cv_build
1245 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1246 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1247 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1249 echo "$as_me:1249: checking host system type" >&5
1250 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1251 if test "${ac_cv_host+set}" = set; then
1252 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 else
1254 ac_cv_host_alias=$host_alias
1255 test -z "$ac_cv_host_alias" &&
1256 ac_cv_host_alias=$ac_cv_build_alias
1257 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1258 { { echo "$as_me:1258: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1259 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1260 { (exit 1); exit 1; }; }
1263 echo "$as_me:1263: result: $ac_cv_host" >&5
1264 echo "${ECHO_T}$ac_cv_host" >&6
1265 host=$ac_cv_host
1266 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1267 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1268 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1270 canonical=$host
1271 configuration=${host_alias-$host}
1273 ### If you add support for a new configuration, add code to this
1274 ### switch statement to recognize your configuration name and select
1275 ### the appropriate operating system and machine description files.
1277 ### You would hope that you could choose an m/*.h file pretty much
1278 ### based on the machine portion of the configuration name, and an s-
1279 ### file based on the operating system portion. However, it turns out
1280 ### that each m/*.h file is pretty manufacturer-specific - for
1281 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1282 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1283 ### machines. So we basically have to have a special case for each
1284 ### configuration name.
1286 ### As far as handling version numbers on operating systems is
1287 ### concerned, make sure things will fail in a fixable way. If
1288 ### /etc/MACHINES doesn't say anything about version numbers, be
1289 ### prepared to handle anything reasonably. If version numbers
1290 ### matter, be sure /etc/MACHINES says something about it.
1292 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1293 ### "System V Release 4"; he writes, "The old convention encouraged
1294 ### confusion between `system' and `release' levels'."
1296 machine='' opsys='' unported=no
1297 case "${canonical}" in
1299 ## FreeBSD ports
1300 *-*-freebsd* )
1301 opsys=freebsd
1302 case "${canonical}" in
1303 alpha*-*-freebsd*) machine=alpha ;;
1304 i[3456]86-*-freebsd*) machine=intel386 ;;
1305 esac
1308 ## NetBSD ports
1309 *-*-netbsd* )
1310 opsys=netbsd
1311 case "${canonical}" in
1312 alpha*-*-netbsd*) machine=alpha ;;
1313 i[3456]86-*-netbsd*) machine=intel386 ;;
1314 m68k-*-netbsd*)
1315 # This is somewhat bogus.
1316 machine=hp9000s300 ;;
1317 powerpc-apple-netbsd*) machine=macppc ;;
1318 mips-*-netbsd*) machine=pmax ;;
1319 mipsel-*-netbsd*) machine=pmax ;;
1320 ns32k-*-netbsd*) machine=ns32000 ;;
1321 powerpc-*-netbsd*) machine=macppc ;;
1322 sparc*-*-netbsd*) machine=sparc ;;
1323 vax-*-netbsd*) machine=vax ;;
1324 arm-*-netbsd*) machine=arm ;;
1325 esac
1328 ## OpenBSD ports
1329 *-*-openbsd* )
1330 opsys=openbsd
1331 case "${canonical}" in
1332 alpha*-*-openbsd*) machine=alpha ;;
1333 i386-*-openbsd*) machine=intel386 ;;
1334 m68k-*-openbsd*) machine=hp9000s300 ;;
1335 mipsel-*-openbsd*) machine=pmax ;;
1336 ns32k-*-openbsd*) machine=ns32000 ;;
1337 sparc-*-openbsd*) machine=sparc ;;
1338 vax-*-openbsd*) machine=vax ;;
1339 esac
1342 ## Acorn RISCiX:
1343 arm-acorn-riscix1.1* )
1344 machine=acorn opsys=riscix1-1
1346 arm-acorn-riscix1.2* | arm-acorn-riscix )
1347 ## This name is riscix12 instead of riscix1.2
1348 ## to avoid a file name conflict on MSDOS.
1349 machine=acorn opsys=riscix12
1352 ## BSDI ports
1353 *-*-bsdi* )
1354 opsys=bsdi
1355 case "${canonical}" in
1356 i[345]86-*-bsdi*) machine=intel386 ;;
1357 sparc-*-bsdi*) machine=sparc ;;
1358 powerpc-*-bsdi*) machine=macppc ;;
1359 esac
1360 case "${canonical}" in
1361 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1362 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1363 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1364 *-*-bsdi3* ) opsys=bsdos3 ;;
1365 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1366 esac
1369 ## Alliant machines
1370 ## Strictly speaking, we need the version of the alliant operating
1371 ## system to choose the right machine file, but currently the
1372 ## configuration name doesn't tell us enough to choose the right
1373 ## one; we need to give alliants their own operating system name to
1374 ## do this right. When someone cares, they can help us.
1375 fx80-alliant-* )
1376 machine=alliant4 opsys=bsd4-2
1378 i860-alliant-* )
1379 machine=alliant-2800 opsys=bsd4-3
1382 ## Alpha (DEC) machines.
1383 alpha*-dec-osf* )
1384 machine=alpha opsys=osf1
1385 # This is needed to find X11R6.1 libraries for certain tests.
1386 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1387 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1388 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1389 # due to non-traditional preprocessing with the current compiler
1390 # defaults. OSF 4 can also have that compiler version, and there
1391 # seems always to have been a usable /usr/bin/cpp.
1392 NON_GNU_CPP=/usr/bin/cpp
1393 case "${canonical}" in
1394 alpha*-dec-osf[5-9]*)
1395 opsys=osf5-0 ;;
1396 esac
1399 alpha*-*-linux-gnu* )
1400 machine=alpha opsys=gnu-linux
1403 arm*-*-linux-gnu* )
1404 machine=arm opsys=gnu-linux
1407 ppc-*-linux | \
1408 powerpc-*-linux* )
1409 machine=macppc opsys=gnu-linux
1412 ## Altos 3068
1413 m68*-altos-sysv* )
1414 machine=altos opsys=usg5-2
1417 ## Amdahl UTS
1418 580-amdahl-sysv* )
1419 machine=amdahl opsys=usg5-2-2
1422 ## Apollo, Domain/OS
1423 m68*-apollo-* )
1424 machine=apollo opsys=bsd4-3
1427 ## AT&T 3b2, 3b5, 3b15, 3b20
1428 we32k-att-sysv* )
1429 machine=att3b opsys=usg5-2-2
1432 ## AT&T 3b1 - The Mighty Unix PC!
1433 m68*-att-sysv* )
1434 machine=7300 opsys=usg5-2-2
1437 ## Bull dpx20
1438 rs6000-bull-bosx* )
1439 machine=ibmrs6000 opsys=aix3-2
1442 ## Bull dpx2
1443 m68*-bull-sysv3* )
1444 machine=dpx2 opsys=usg5-3
1447 ## Bull sps7
1448 m68*-bull-sysv2* )
1449 machine=sps7 opsys=usg5-2
1452 ## CCI 5/32, 6/32 -- see "Tahoe".
1454 ## Celerity
1455 ## I don't know what configuration name to use for this; config.sub
1456 ## doesn't seem to know anything about it. Hey, Celerity users, get
1457 ## in touch with us!
1458 celerity-celerity-bsd* )
1459 machine=celerity opsys=bsd4-2
1462 ## Clipper
1463 ## What operating systems does this chip run that Emacs has been
1464 ## tested on?
1465 clipper-* )
1466 machine=clipper
1467 ## We'll use the catch-all code at the bottom to guess the
1468 ## operating system.
1471 ## Convex
1472 *-convex-bsd* | *-convex-convexos* )
1473 machine=convex opsys=bsd4-3
1474 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1475 NON_GNU_CPP="cc -E -P"
1478 ## Cubix QBx/386
1479 i[3456]86-cubix-sysv* )
1480 machine=intel386 opsys=usg5-3
1483 ## Cydra 5
1484 cydra*-cydrome-sysv* )
1485 machine=cydra5 opsys=usg5-3
1488 ## Data General AViiON Machines
1489 ## DG changed naming conventions with the release of 5.4.4.10, they
1490 ## dropped the initial 5.4 but left the intervening R. Because of the
1491 ## R this shouldn't conflict with older versions of the OS (which I
1492 ## think were named like dgux4.*). In addition, DG new AViiONs series
1493 ## uses either Motorola M88k or Intel Pentium CPUs.
1494 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1495 machine=aviion opsys=dgux4
1497 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1498 ## This name is dgux5-4-3 instead of dgux5-4r3
1499 ## to avoid a file name conflict on MSDOS.
1500 machine=aviion opsys=dgux5-4-3
1502 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1503 machine=aviion opsys=dgux5-4r2
1505 m88k-dg-dgux* )
1506 machine=aviion opsys=dgux
1509 ## Data General AViiON Intel (x86) Machines
1510 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1511 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1512 i[345]86-dg-dguxR4* )
1513 machine=aviion-intel opsys=dgux4
1516 ## DECstations
1517 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1518 machine=pmax opsys=bsd4-2
1520 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1521 machine=pmax opsys=bsd4-3
1523 mips-dec-ultrix* )
1524 machine=pmax opsys=ultrix4-3
1526 mips-dec-osf* )
1527 machine=pmax opsys=osf1
1529 mips-dec-mach_bsd4.3* )
1530 machine=pmax opsys=mach-bsd4-3
1533 ## Motorola Delta machines
1534 m68k-motorola-sysv* | m68000-motorola-sysv* )
1535 machine=delta opsys=usg5-3
1536 if test -z "`type gnucc | grep 'not found'`"
1537 then
1538 if test -s /etc/167config
1539 then CC="gnucc -m68040"
1540 else CC="gnucc -m68881"
1542 else
1543 if test -z "`type gcc | grep 'not found'`"
1544 then CC=gcc
1545 else CC=cc
1549 m88k-motorola-sysv4* )
1550 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1551 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1552 # I hope there are not other 4.0 versions for this machine
1553 # which really need usg5-4 instead.
1554 machine=delta88k opsys=usg5-4-2
1556 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1557 machine=delta88k opsys=usg5-3
1560 ## Dual machines
1561 m68*-dual-sysv* )
1562 machine=dual opsys=usg5-2
1564 m68*-dual-uniplus* )
1565 machine=dual opsys=unipl5-2
1568 ## Elxsi 6400
1569 elxsi-elxsi-sysv* )
1570 machine=elxsi opsys=usg5-2
1573 ## Encore machines
1574 ns16k-encore-bsd* )
1575 machine=ns16000 opsys=umax
1578 ## The GEC 63 - apparently, this port isn't really finished yet.
1579 # I'm sure we finished off the last of the machines, though. -- fx
1581 ## Gould Power Node and NP1
1582 pn-gould-bsd4.2* )
1583 machine=gould opsys=bsd4-2
1585 pn-gould-bsd4.3* )
1586 machine=gould opsys=bsd4-3
1588 np1-gould-bsd* )
1589 machine=gould-np1 opsys=bsd4-3
1592 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1593 ## as far as Emacs is concerned).
1594 m88k-harris-cxux* )
1595 # Build needs to be different on 7.0 and later releases
1596 case "`uname -r`" in
1597 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1598 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1599 esac
1600 NON_GNU_CPP="/lib/cpp"
1602 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1603 m68k-harris-cxux* )
1604 machine=nh3000 opsys=cxux
1606 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1607 powerpc-harris-powerunix )
1608 machine=nh6000 opsys=powerunix
1609 NON_GNU_CPP="cc -Xo -E -P"
1611 ## SR2001/SR2201 running HI-UX/MPP
1612 hppa1.1-hitachi-hiuxmpp* )
1613 machine=sr2k opsys=hiuxmpp
1615 hppa1.1-hitachi-hiuxwe2* )
1616 machine=sr2k opsys=hiuxwe2
1618 ## Honeywell XPS100
1619 xps*-honeywell-sysv* )
1620 machine=xps100 opsys=usg5-2
1623 ## HP 9000 series 200 or 300
1624 m68*-hp-bsd* )
1625 machine=hp9000s300 opsys=bsd4-3
1627 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1628 m68*-hp-hpux* )
1629 case "`uname -r`" in
1630 ## Someone's system reports A.B8.05 for this.
1631 ## I wonder what other possibilities there are.
1632 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1633 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1634 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1635 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1636 *) machine=hp9000s300 opsys=hpux ;;
1637 esac
1640 ## HP 9000 series 700 and 800, running HP/UX
1641 hppa*-hp-hpux7* )
1642 machine=hp800 opsys=hpux
1644 hppa*-hp-hpux8* )
1645 machine=hp800 opsys=hpux8
1647 hppa*-hp-hpux9shr* )
1648 machine=hp800 opsys=hpux9shr
1650 hppa*-hp-hpux9* )
1651 machine=hp800 opsys=hpux9
1653 hppa*-hp-hpux10* )
1654 machine=hp800 opsys=hpux10
1656 hppa*-hp-hpux1[1-9]* )
1657 machine=hp800 opsys=hpux11
1660 hppa*-*-linux-gnu* )
1661 machine=hp800 opsys=gnu-linux
1664 ## HP 9000 series 700 and 800, running HP/UX
1665 hppa*-hp-hpux* )
1666 ## Cross-compilation? Nah!
1667 case "`uname -r`" in
1668 ## Someone's system reports A.B8.05 for this.
1669 ## I wonder what other possibilities there are.
1670 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1671 *.08.* ) machine=hp800 opsys=hpux8 ;;
1672 *.09.* ) machine=hp800 opsys=hpux9 ;;
1673 *) machine=hp800 opsys=hpux10 ;;
1674 esac
1676 hppa*-*-nextstep* )
1677 machine=hp800 opsys=nextstep
1680 ## Orion machines
1681 orion-orion-bsd* )
1682 machine=orion opsys=bsd4-2
1684 clipper-orion-bsd* )
1685 machine=orion105 opsys=bsd4-2
1688 ## IBM machines
1689 i[3456]86-ibm-aix1.1* )
1690 machine=ibmps2-aix opsys=usg5-2-2
1692 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1693 machine=ibmps2-aix opsys=usg5-3
1695 i370-ibm-aix*)
1696 machine=ibm370aix opsys=usg5-3
1698 s390-*-linux-gnu)
1699 machine=ibms390 opsys=gnu-linux
1701 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1702 machine=ibmrs6000 opsys=aix3-1
1704 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1705 machine=ibmrs6000 opsys=aix3-2-5
1707 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1708 machine=ibmrs6000 opsys=aix4-1
1710 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1711 machine=ibmrs6000 opsys=aix4-2
1713 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1714 machine=ibmrs6000 opsys=aix4
1716 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1717 machine=ibmrs6000 opsys=aix4-1
1719 rs6000-ibm-aix* | powerpc-ibm-aix* )
1720 machine=ibmrs6000 opsys=aix3-2
1722 romp-ibm-bsd4.3* )
1723 machine=ibmrt opsys=bsd4-3
1725 romp-ibm-bsd4.2* )
1726 machine=ibmrt opsys=bsd4-2
1728 romp-ibm-aos4.3* )
1729 machine=ibmrt opsys=bsd4-3
1731 romp-ibm-aos4.2* )
1732 machine=ibmrt opsys=bsd4-2
1734 romp-ibm-aos* )
1735 machine=ibmrt opsys=bsd4-3
1737 romp-ibm-bsd* )
1738 machine=ibmrt opsys=bsd4-3
1740 romp-ibm-aix* )
1741 machine=ibmrt-aix opsys=usg5-2-2
1744 ## Integrated Solutions `Optimum V'
1745 m68*-isi-bsd4.2* )
1746 machine=isi-ov opsys=bsd4-2
1748 m68*-isi-bsd4.3* )
1749 machine=isi-ov opsys=bsd4-3
1752 ## Intel 386 machines where we do care about the manufacturer
1753 i[3456]86-intsys-sysv* )
1754 machine=is386 opsys=usg5-2-2
1757 ## Prime EXL
1758 i[3456]86-prime-sysv* )
1759 machine=i386 opsys=usg5-3
1762 ## Sequent Symmetry running Dynix
1763 i[3456]86-sequent-bsd* )
1764 machine=symmetry opsys=bsd4-3
1767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1768 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1769 machine=sequent-ptx opsys=ptx4
1770 NON_GNU_CPP=/lib/cpp
1773 ## Sequent Symmetry running DYNIX/ptx
1774 ## Use the old cpp rather than the newer ANSI one.
1775 i[3456]86-sequent-ptx* )
1776 machine=sequent-ptx opsys=ptx
1777 NON_GNU_CPP="/lib/cpp"
1780 ## ncr machine running svr4.3.
1781 i[3456]86-ncr-sysv4.3 )
1782 machine=ncr386 opsys=usg5-4-3
1785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1787 i[3456]86-ncr-sysv* )
1788 machine=ncr386 opsys=usg5-4-2
1791 ## Intel Paragon OSF/1
1792 i860-intel-osf1* )
1793 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1796 ## Intel 860
1797 i860-*-sysv4* )
1798 machine=i860 opsys=usg5-4
1799 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1800 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1803 ## Macintosh PowerPC
1804 powerpc*-*-linux-gnu* )
1805 machine=macppc opsys=gnu-linux
1808 ## Masscomp machines
1809 m68*-masscomp-rtu* )
1810 machine=masscomp opsys=rtu
1813 ## Megatest machines
1814 m68*-megatest-bsd* )
1815 machine=mega68 opsys=bsd4-2
1818 ## Workstations sold by MIPS
1819 ## This is not necessarily all workstations using the MIPS processor -
1820 ## Irises are produced by SGI, and DECstations by DEC.
1822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1824 ## it gives for choosing between the alternatives seems to be "Use
1825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1826 ## the BSD world." I'll assume that these are instructions for
1827 ## handling two odd situations, and that every other situation
1828 ## should use mips.h and usg5-2-2, they being listed first.
1829 mips-mips-usg* )
1830 machine=mips4
1831 ## Fall through to the general code at the bottom to decide on the OS.
1833 mips-mips-riscos4* )
1834 machine=mips4 opsys=bsd4-3
1835 NON_GNU_CC="cc -systype bsd43"
1836 NON_GNU_CPP="cc -systype bsd43 -E"
1838 mips-mips-riscos5* )
1839 machine=mips4 opsys=riscos5
1840 NON_GNU_CC="cc -systype bsd43"
1841 NON_GNU_CPP="cc -systype bsd43 -E"
1843 mips-mips-bsd* )
1844 machine=mips opsys=bsd4-3
1846 mips-mips-* )
1847 machine=mips opsys=usg5-2-2
1850 ## NeXT
1851 m68*-next-* | m68k-*-nextstep* )
1852 machine=m68k opsys=nextstep
1855 ## The complete machine from National Semiconductor
1856 ns32k-ns-genix* )
1857 machine=ns32000 opsys=usg5-2
1860 ## NCR machines
1861 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1862 machine=tower32 opsys=usg5-2-2
1864 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1865 machine=tower32v3 opsys=usg5-3
1868 ## NEC EWS4800
1869 mips-nec-sysv4*)
1870 machine=ews4800 opsys=ux4800
1873 ## Nixdorf Targon 31
1874 m68*-nixdorf-sysv* )
1875 machine=targon31 opsys=usg5-2-2
1878 ## Nu (TI or LMI)
1879 m68*-nu-sysv* )
1880 machine=nu opsys=usg5-2
1883 ## Plexus
1884 m68*-plexus-sysv* )
1885 machine=plexus opsys=usg5-2
1888 ## PowerPC reference platform
1889 powerpcle-*-solaris2* )
1890 machine=prep
1891 opsys=sol2-5
1894 ## Pyramid machines
1895 ## I don't really have any idea what sort of processor the Pyramid has,
1896 ## so I'm assuming it is its own architecture.
1897 pyramid-pyramid-bsd* )
1898 machine=pyramid opsys=bsd4-2
1901 ## Sequent Balance
1902 ns32k-sequent-bsd4.2* )
1903 machine=sequent opsys=bsd4-2
1905 ns32k-sequent-bsd4.3* )
1906 machine=sequent opsys=bsd4-3
1909 ## Siemens Nixdorf
1910 mips-siemens-sysv* | mips-sni-sysv*)
1911 machine=mips-siemens opsys=usg5-4
1912 NON_GNU_CC=/usr/ccs/bin/cc
1913 NON_GNU_CPP=/usr/ccs/lib/cpp
1916 ## Silicon Graphics machines
1917 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1918 m68*-sgi-iris3.5* )
1919 machine=irist opsys=iris3-5
1921 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1922 machine=irist opsys=iris3-6
1924 ## Iris 4D
1925 mips-sgi-irix3* )
1926 machine=iris4d opsys=irix3-3
1928 mips-sgi-irix4* )
1929 machine=iris4d opsys=irix4-0
1931 mips-sgi-irix6.5 )
1932 machine=iris4d opsys=irix6-5
1933 # Without defining _LANGUAGE_C, things get masked out in the headers
1934 # so that, for instance, grepping for `free' in stdlib.h fails and
1935 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1936 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1937 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1939 mips-sgi-irix6* )
1940 machine=iris4d opsys=irix6-0
1941 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1942 # but presumably it does no harm.
1943 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1944 # -32 probably isn't necessary in later v.6s -- anyone know which?
1945 NON_GCC_TEST_OPTIONS=-32
1947 mips-sgi-irix5.[01]* )
1948 machine=iris4d opsys=irix5-0
1950 mips-sgi-irix5* | mips-sgi-irix* )
1951 machine=iris4d opsys=irix5-2
1954 ## SONY machines
1955 m68*-sony-bsd4.2* )
1956 machine=news opsys=bsd4-2
1958 m68*-sony-bsd4.3* )
1959 machine=news opsys=bsd4-3
1961 m68*-sony-newsos3* | m68*-sony-news3*)
1962 machine=news opsys=bsd4-3
1964 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
1965 machine=news-risc opsys=bsd4-3
1967 mips-sony-newsos6* )
1968 machine=news-r6 opsys=newsos6
1970 mips-sony-news* )
1971 machine=news-risc opsys=newsos5
1974 ## Stride
1975 m68*-stride-sysv* )
1976 machine=stride opsys=usg5-2
1979 ## Suns
1980 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
1981 machine=sparc opsys=gnu-linux
1984 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
1985 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
1986 | rs6000-*-solaris2*)
1987 case "${canonical}" in
1988 m68*-sunos1* ) machine=sun1 ;;
1989 m68*-sunos2* ) machine=sun2 ;;
1990 m68* ) machine=sun3 ;;
1991 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
1992 i[3456]86-*-* ) machine=intel386 ;;
1993 powerpcle* ) machine=powerpcle ;;
1994 powerpc* | rs6000* ) machine=ibmrs6000 ;;
1995 sparc* ) machine=sparc ;;
1996 * ) unported=yes ;;
1997 esac
1998 case "${canonical}" in
1999 ## The Sun386 didn't get past 4.0.
2000 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2001 *-sunos4.0* ) opsys=sunos4-0 ;;
2002 *-sunos4.1.[3-9]*noshare )
2003 ## This name is sunos413 instead of sunos4-1-3
2004 ## to avoid a file name conflict on MSDOS.
2005 opsys=sunos413
2006 NON_GNU_CPP=/usr/lib/cpp
2007 NON_GCC_TEST_OPTIONS=-Bstatic
2008 GCC_TEST_OPTIONS=-static
2010 *-sunos4.1.[3-9]* | *-sunos4shr*)
2011 opsys=sunos4shr
2012 NON_GNU_CPP=/usr/lib/cpp
2014 *-sunos4* | *-sunos )
2015 opsys=sunos4-1
2016 NON_GCC_TEST_OPTIONS=-Bstatic
2017 GCC_TEST_OPTIONS=-static
2019 *-sunos5.3* | *-solaris2.3* )
2020 opsys=sol2-3
2021 NON_GNU_CPP=/usr/ccs/lib/cpp
2023 *-sunos5.4* | *-solaris2.4* )
2024 opsys=sol2-4
2025 NON_GNU_CPP=/usr/ccs/lib/cpp
2026 RANLIB="ar -ts"
2028 *-sunos5.5* | *-solaris2.5* )
2029 opsys=sol2-5
2030 NON_GNU_CPP=/usr/ccs/lib/cpp
2031 RANLIB="ar -ts"
2033 *-sunos5* | *-solaris* )
2034 opsys=sol2-5
2035 NON_GNU_CPP=/usr/ccs/lib/cpp
2037 * ) opsys=bsd4-2 ;;
2038 esac
2039 ## Watch out for a compiler that we know will not work.
2040 case "${canonical}" in
2041 *-solaris* | *-sunos5* )
2042 if [ "x$CC" = x/usr/ucb/cc ]; then
2043 ## /usr/ucb/cc doesn't work;
2044 ## we should find some other compiler that does work.
2045 unset CC
2048 *) ;;
2049 esac
2051 sparc-*-nextstep* )
2052 machine=sparc opsys=nextstep
2055 ## Tadpole 68k
2056 m68*-tadpole-sysv* )
2057 machine=tad68k opsys=usg5-3
2060 ## Tahoe machines
2061 tahoe-tahoe-bsd4.2* )
2062 machine=tahoe opsys=bsd4-2
2064 tahoe-tahoe-bsd4.3* )
2065 machine=tahoe opsys=bsd4-3
2068 ## Tandem Integrity S2
2069 mips-tandem-sysv* )
2070 machine=tandem-s2 opsys=usg5-3
2073 ## Tektronix XD88
2074 m88k-tektronix-sysv3* )
2075 machine=tekxd88 opsys=usg5-3
2078 ## Tektronix 16000 box (6130?)
2079 ns16k-tektronix-bsd* )
2080 machine=ns16000 opsys=bsd4-2
2082 ## Tektronix 4300
2083 ## src/m/tek4300.h hints that this is a m68k machine.
2084 m68*-tektronix-bsd* )
2085 machine=tek4300 opsys=bsd4-3
2088 ## Titan P2 or P3
2089 ## We seem to have lost the machine-description file titan.h!
2090 titan-titan-sysv* )
2091 machine=titan opsys=usg5-3
2094 ## Ustation E30 (SS5E)
2095 m68*-unisys-uniplus* )
2096 machine=ustation opsystem=unipl5-2
2099 ## Vaxen.
2100 vax-dec-* )
2101 machine=vax
2102 case "${canonical}" in
2103 *-bsd4.1* ) opsys=bsd4-1 ;;
2104 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2105 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2106 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2107 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2108 *-vms* ) opsys=vms ;;
2109 * ) unported=yes
2110 esac
2113 ## Whitechapel MG1
2114 ns16k-whitechapel-* )
2115 machine=mg1
2116 ## We don't know what sort of OS runs on these; we'll let the
2117 ## operating system guessing code below try.
2120 ## Wicat
2121 m68*-wicat-sysv* )
2122 machine=wicat opsys=usg5-2
2125 ## IA-64
2126 ia64*-*-linux* )
2127 machine=ia64 opsys=gnu-linux
2130 ## Intel 386 machines where we don't care about the manufacturer
2131 i[3456]86-*-* )
2132 machine=intel386
2133 case "${canonical}" in
2134 *-lynxos* ) opsys=lynxos ;;
2135 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2136 *-isc2.2* ) opsys=isc2-2 ;;
2137 *-isc4.0* ) opsys=isc4-0 ;;
2138 *-isc4.* ) opsys=isc4-1
2139 GCC_TEST_OPTIONS=-posix
2140 NON_GCC_TEST_OPTIONS=-Xp
2142 *-isc* ) opsys=isc3-0 ;;
2143 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2144 *-esix* ) opsys=esix ;;
2145 *-xenix* ) opsys=xenix ;;
2146 *-linux-gnu* ) opsys=gnu-linux ;;
2147 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2148 *-sco3.2v5* ) opsys=sco5
2149 NON_GNU_CPP=/lib/cpp
2150 # Prevent -belf from being passed to $CPP.
2151 # /lib/cpp does not accept it.
2152 OVERRIDE_CPPFLAGS=" "
2154 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2155 *-386bsd* ) opsys=386bsd ;;
2156 *-nextstep* ) opsys=nextstep ;;
2157 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2158 esac
2161 ## m68k Linux-based GNU system
2162 m68k-*-linux-gnu* )
2163 machine=m68k opsys=gnu-linux
2166 ## Mips Linux-based GNU system
2167 mips-*-linux-gnu* )
2168 machine=mips opsys=gnu-linux
2171 ## UXP/DS
2172 sparc-fujitsu-sysv4* )
2173 machine=sparc opsys=uxpds
2174 NON_GNU_CPP=/usr/ccs/lib/cpp
2175 RANLIB="ar -ts"
2178 ## UXP/V
2179 f301-fujitsu-uxpv4.1)
2180 machine=f301 opsys=uxpv
2184 unported=yes
2186 esac
2188 ### If the code above didn't choose an operating system, just choose
2189 ### an operating system based on the configuration name. You really
2190 ### only want to use this when you have no idea what the right
2191 ### operating system is; if you know what operating systems a machine
2192 ### runs, it's cleaner to make it explicit in the case statement
2193 ### above.
2194 if test x"${opsys}" = x; then
2195 case "${canonical}" in
2196 *-gnu* ) opsys=gnu ;;
2197 *-bsd4.[01] ) opsys=bsd4-1 ;;
2198 *-bsd4.2 ) opsys=bsd4-2 ;;
2199 *-bsd4.3 ) opsys=bsd4-3 ;;
2200 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2201 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2202 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2203 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2204 *-sysv4.2uw* ) opsys=unixware ;;
2205 *-sysv4.1* | *-sysvr4.1* )
2206 NON_GNU_CPP=/usr/lib/cpp
2207 opsys=usg5-4 ;;
2208 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2209 if [ x$NON_GNU_CPP = x ]; then
2210 if [ -f /usr/ccs/lib/cpp ]; then
2211 NON_GNU_CPP=/usr/ccs/lib/cpp
2212 else
2213 NON_GNU_CPP=/lib/cpp
2216 opsys=usg5-4-2 ;;
2217 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2219 unported=yes
2221 esac
2224 if test $unported = yes; then
2225 { { echo "$as_me:2225: error: Emacs hasn't been ported to \`${canonical}' systems.
2226 Check \`etc/MACHINES' for recognized configuration names." >&5
2227 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2228 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2229 { (exit 1); exit 1; }; }
2232 machfile="m/${machine}.h"
2233 opsysfile="s/${opsys}.h"
2235 #### Choose a compiler.
2236 test -n "$CC" && cc_specified=yes
2238 # Save the value of CFLAGS that the user specified.
2239 SPECIFIED_CFLAGS="$CFLAGS"
2241 case ${with_gcc} in
2242 "yes" ) CC="gcc" GCC=yes ;;
2243 "no" ) : ${CC=cc} ;;
2245 esac
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2254 echo "$as_me:2254: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 ac_save_IFS=$IFS; IFS=$ac_path_separator
2263 ac_dummy="$PATH"
2264 for ac_dir in $ac_dummy; do
2265 IFS=$ac_save_IFS
2266 test -z "$ac_dir" && ac_dir=.
2267 $as_executable_p "$ac_dir/$ac_word" || continue
2268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2269 echo "$as_me:2269: found $ac_dir/$ac_word" >&5
2270 break
2271 done
2275 CC=$ac_cv_prog_CC
2276 if test -n "$CC"; then
2277 echo "$as_me:2277: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6
2279 else
2280 echo "$as_me:2280: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2285 if test -z "$ac_cv_prog_CC"; then
2286 ac_ct_CC=$CC
2287 # Extract the first word of "gcc", so it can be a program name with args.
2288 set dummy gcc; ac_word=$2
2289 echo "$as_me:2289: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 if test -n "$ac_ct_CC"; then
2295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 else
2297 ac_save_IFS=$IFS; IFS=$ac_path_separator
2298 ac_dummy="$PATH"
2299 for ac_dir in $ac_dummy; do
2300 IFS=$ac_save_IFS
2301 test -z "$ac_dir" && ac_dir=.
2302 $as_executable_p "$ac_dir/$ac_word" || continue
2303 ac_cv_prog_ac_ct_CC="gcc"
2304 echo "$as_me:2304: found $ac_dir/$ac_word" >&5
2305 break
2306 done
2310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311 if test -n "$ac_ct_CC"; then
2312 echo "$as_me:2312: result: $ac_ct_CC" >&5
2313 echo "${ECHO_T}$ac_ct_CC" >&6
2314 else
2315 echo "$as_me:2315: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2319 CC=$ac_ct_CC
2320 else
2321 CC="$ac_cv_prog_CC"
2324 if test -z "$CC"; then
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}cc; ac_word=$2
2328 echo "$as_me:2328: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 ac_save_IFS=$IFS; IFS=$ac_path_separator
2337 ac_dummy="$PATH"
2338 for ac_dir in $ac_dummy; do
2339 IFS=$ac_save_IFS
2340 test -z "$ac_dir" && ac_dir=.
2341 $as_executable_p "$ac_dir/$ac_word" || continue
2342 ac_cv_prog_CC="${ac_tool_prefix}cc"
2343 echo "$as_me:2343: found $ac_dir/$ac_word" >&5
2344 break
2345 done
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351 echo "$as_me:2351: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354 echo "$as_me:2354: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2359 if test -z "$ac_cv_prog_CC"; then
2360 ac_ct_CC=$CC
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc; ac_word=$2
2363 echo "$as_me:2363: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 ac_save_IFS=$IFS; IFS=$ac_path_separator
2372 ac_dummy="$PATH"
2373 for ac_dir in $ac_dummy; do
2374 IFS=$ac_save_IFS
2375 test -z "$ac_dir" && ac_dir=.
2376 $as_executable_p "$ac_dir/$ac_word" || continue
2377 ac_cv_prog_ac_ct_CC="cc"
2378 echo "$as_me:2378: found $ac_dir/$ac_word" >&5
2379 break
2380 done
2384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2385 if test -n "$ac_ct_CC"; then
2386 echo "$as_me:2386: result: $ac_ct_CC" >&5
2387 echo "${ECHO_T}$ac_ct_CC" >&6
2388 else
2389 echo "$as_me:2389: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 CC=$ac_ct_CC
2394 else
2395 CC="$ac_cv_prog_CC"
2399 if test -z "$CC"; then
2400 # Extract the first word of "cc", so it can be a program name with args.
2401 set dummy cc; ac_word=$2
2402 echo "$as_me:2402: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 if test -n "$CC"; then
2408 ac_cv_prog_CC="$CC" # Let the user override the test.
2409 else
2410 ac_prog_rejected=no
2411 ac_save_IFS=$IFS; IFS=$ac_path_separator
2412 ac_dummy="$PATH"
2413 for ac_dir in $ac_dummy; do
2414 IFS=$ac_save_IFS
2415 test -z "$ac_dir" && ac_dir=.
2416 $as_executable_p "$ac_dir/$ac_word" || continue
2417 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2418 ac_prog_rejected=yes
2419 continue
2421 ac_cv_prog_CC="cc"
2422 echo "$as_me:2422: found $ac_dir/$ac_word" >&5
2423 break
2424 done
2426 if test $ac_prog_rejected = yes; then
2427 # We found a bogon in the path, so make sure we never use it.
2428 set dummy $ac_cv_prog_CC
2429 shift
2430 if test $# != 0; then
2431 # We chose a different compiler from the bogus one.
2432 # However, it has the same basename, so the bogon will be chosen
2433 # first if we set CC to just the basename; use the full file name.
2434 shift
2435 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2436 shift
2437 ac_cv_prog_CC="$@"
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444 echo "$as_me:2444: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6
2446 else
2447 echo "$as_me:2447: result: no" >&5
2448 echo "${ECHO_T}no" >&6
2452 if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2454 for ac_prog in cl
2456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 else
2466 ac_save_IFS=$IFS; IFS=$ac_path_separator
2467 ac_dummy="$PATH"
2468 for ac_dir in $ac_dummy; do
2469 IFS=$ac_save_IFS
2470 test -z "$ac_dir" && ac_dir=.
2471 $as_executable_p "$ac_dir/$ac_word" || continue
2472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2473 echo "$as_me:2473: found $ac_dir/$ac_word" >&5
2474 break
2475 done
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481 echo "$as_me:2481: result: $CC" >&5
2482 echo "${ECHO_T}$CC" >&6
2483 else
2484 echo "$as_me:2484: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$CC" && break
2489 done
2491 if test -z "$CC"; then
2492 ac_ct_CC=$CC
2493 for ac_prog in cl
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo "$as_me:2497: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$ac_ct_CC"; then
2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2504 else
2505 ac_save_IFS=$IFS; IFS=$ac_path_separator
2506 ac_dummy="$PATH"
2507 for ac_dir in $ac_dummy; do
2508 IFS=$ac_save_IFS
2509 test -z "$ac_dir" && ac_dir=.
2510 $as_executable_p "$ac_dir/$ac_word" || continue
2511 ac_cv_prog_ac_ct_CC="$ac_prog"
2512 echo "$as_me:2512: found $ac_dir/$ac_word" >&5
2513 break
2514 done
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 echo "$as_me:2520: result: $ac_ct_CC" >&5
2521 echo "${ECHO_T}$ac_ct_CC" >&6
2522 else
2523 echo "$as_me:2523: result: no" >&5
2524 echo "${ECHO_T}no" >&6
2527 test -n "$ac_ct_CC" && break
2528 done
2530 CC=$ac_ct_CC
2535 test -z "$CC" && { { echo "$as_me:2535: error: no acceptable cc found in \$PATH" >&5
2536 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Provide some information about the compiler.
2540 echo "$as_me:2540:" \
2541 "checking for C compiler version" >&5
2542 ac_compiler=`set X $ac_compile; echo $2`
2543 { (eval echo "$as_me:2543: \"$ac_compiler --version </dev/null >&5\"") >&5
2544 (eval $ac_compiler --version </dev/null >&5) 2>&5
2545 ac_status=$?
2546 echo "$as_me:2546: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (eval echo "$as_me:2548: \"$ac_compiler -v </dev/null >&5\"") >&5
2549 (eval $ac_compiler -v </dev/null >&5) 2>&5
2550 ac_status=$?
2551 echo "$as_me:2551: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (eval echo "$as_me:2553: \"$ac_compiler -V </dev/null >&5\"") >&5
2554 (eval $ac_compiler -V </dev/null >&5) 2>&5
2555 ac_status=$?
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line 2560 "configure"
2561 #include "confdefs.h"
2564 main ()
2568 return 0;
2570 _ACEOF
2571 ac_clean_files_save=$ac_clean_files
2572 ac_clean_files="$ac_clean_files a.out a.exe"
2573 # Try to create an executable without -o first, disregard a.out.
2574 # It will help us diagnose broken compilers, and finding out an intuition
2575 # of exeext.
2576 echo "$as_me:2576: checking for C compiler default output" >&5
2577 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2578 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2579 if { (eval echo "$as_me:2579: \"$ac_link_default\"") >&5
2580 (eval $ac_link_default) 2>&5
2581 ac_status=$?
2582 echo "$as_me:2582: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # Find the output, starting from the most likely. This scheme is
2585 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2586 # resort.
2587 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2588 ls a.out conftest 2>/dev/null;
2589 ls a.* conftest.* 2>/dev/null`; do
2590 case $ac_file in
2591 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2592 a.out ) # We found the default executable, but exeext='' is most
2593 # certainly right.
2594 break;;
2595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2597 export ac_cv_exeext
2598 break;;
2599 * ) break;;
2600 esac
2601 done
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2605 { { echo "$as_me:2605: error: C compiler cannot create executables" >&5
2606 echo "$as_me: error: C compiler cannot create executables" >&2;}
2607 { (exit 77); exit 77; }; }
2610 ac_exeext=$ac_cv_exeext
2611 echo "$as_me:2611: result: $ac_file" >&5
2612 echo "${ECHO_T}$ac_file" >&6
2614 # Check the compiler produces executables we can run. If not, either
2615 # the compiler is broken, or we cross compile.
2616 echo "$as_me:2616: checking whether the C compiler works" >&5
2617 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2618 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621 if { ac_try='./$ac_file'
2622 { (eval echo "$as_me:2622: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 cross_compiling=no
2628 else
2629 if test "$cross_compiling" = maybe; then
2630 cross_compiling=yes
2631 else
2632 { { echo "$as_me:2632: error: cannot run C compiled programs.
2633 If you meant to cross compile, use \`--host'." >&5
2634 echo "$as_me: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'." >&2;}
2636 { (exit 1); exit 1; }; }
2640 echo "$as_me:2640: result: yes" >&5
2641 echo "${ECHO_T}yes" >&6
2643 rm -f a.out a.exe conftest$ac_cv_exeext
2644 ac_clean_files=$ac_clean_files_save
2645 # Check the compiler produces executables we can run. If not, either
2646 # the compiler is broken, or we cross compile.
2647 echo "$as_me:2647: checking whether we are cross compiling" >&5
2648 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2649 echo "$as_me:2649: result: $cross_compiling" >&5
2650 echo "${ECHO_T}$cross_compiling" >&6
2652 echo "$as_me:2652: checking for executable suffix" >&5
2653 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2654 if { (eval echo "$as_me:2654: \"$ac_link\"") >&5
2655 (eval $ac_link) 2>&5
2656 ac_status=$?
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }; then
2659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2660 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2661 # work properly (i.e., refer to `conftest.exe'), while it won't with
2662 # `rm'.
2663 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2664 case $ac_file in
2665 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2667 export ac_cv_exeext
2668 break;;
2669 * ) break;;
2670 esac
2671 done
2672 else
2673 { { echo "$as_me:2673: error: cannot compute EXEEXT: cannot compile and link" >&5
2674 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2675 { (exit 1); exit 1; }; }
2678 rm -f conftest$ac_cv_exeext
2679 echo "$as_me:2679: result: $ac_cv_exeext" >&5
2680 echo "${ECHO_T}$ac_cv_exeext" >&6
2682 rm -f conftest.$ac_ext
2683 EXEEXT=$ac_cv_exeext
2684 ac_exeext=$EXEEXT
2685 echo "$as_me:2685: checking for object suffix" >&5
2686 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2687 if test "${ac_cv_objext+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690 cat >conftest.$ac_ext <<_ACEOF
2691 #line 2691 "configure"
2692 #include "confdefs.h"
2695 main ()
2699 return 0;
2701 _ACEOF
2702 rm -f conftest.o conftest.obj
2703 if { (eval echo "$as_me:2703: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>&5
2705 ac_status=$?
2706 echo "$as_me:2706: \$? = $ac_status" >&5
2707 (exit $ac_status); }; then
2708 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2709 case $ac_file in
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2712 break;;
2713 esac
2714 done
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2718 { { echo "$as_me:2718: error: cannot compute OBJEXT: cannot compile" >&5
2719 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725 echo "$as_me:2725: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6
2727 OBJEXT=$ac_cv_objext
2728 ac_objext=$OBJEXT
2729 echo "$as_me:2729: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 cat >conftest.$ac_ext <<_ACEOF
2735 #line 2735 "configure"
2736 #include "confdefs.h"
2739 main ()
2741 #ifndef __GNUC__
2742 choke me
2743 #endif
2746 return 0;
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2752 ac_status=$?
2753 echo "$as_me:2753: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:2756: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:2759: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_compiler_gnu=yes
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2765 ac_compiler_gnu=no
2767 rm -f conftest.$ac_objext conftest.$ac_ext
2768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771 echo "$as_me:2771: result: $ac_cv_c_compiler_gnu" >&5
2772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2773 GCC=`test $ac_compiler_gnu = yes && echo yes`
2774 ac_test_CFLAGS=${CFLAGS+set}
2775 ac_save_CFLAGS=$CFLAGS
2776 CFLAGS="-g"
2777 echo "$as_me:2777: checking whether $CC accepts -g" >&5
2778 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2779 if test "${ac_cv_prog_cc_g+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #line 2783 "configure"
2784 #include "confdefs.h"
2787 main ()
2791 return 0;
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>&5
2797 ac_status=$?
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 { ac_try='test -s conftest.$ac_objext'
2801 { (eval echo "$as_me:2801: \"$ac_try\"") >&5
2802 (eval $ac_try) 2>&5
2803 ac_status=$?
2804 echo "$as_me:2804: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 ac_cv_prog_cc_g=yes
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 ac_cv_prog_cc_g=no
2812 rm -f conftest.$ac_objext conftest.$ac_ext
2814 echo "$as_me:2814: result: $ac_cv_prog_cc_g" >&5
2815 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2816 if test "$ac_test_CFLAGS" = set; then
2817 CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819 if test "$GCC" = yes; then
2820 CFLAGS="-g -O2"
2821 else
2822 CFLAGS="-g"
2824 else
2825 if test "$GCC" = yes; then
2826 CFLAGS="-O2"
2827 else
2828 CFLAGS=
2831 # Some people use a C++ compiler to compile C. Since we use `exit',
2832 # in C++ we need to declare it. In case someone uses the same compiler
2833 # for both compiling C and C++ we need to have the C++ compiler decide
2834 # the declaration of exit, since it's the most demanding environment.
2835 cat >conftest.$ac_ext <<_ACEOF
2836 #ifndef __cplusplus
2837 choke me
2838 #endif
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5
2842 (eval $ac_compile) 2>&5
2843 ac_status=$?
2844 echo "$as_me:2844: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:2847: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:2850: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 for ac_declaration in \
2854 '#include <stdlib.h>' \
2855 'extern "C" void std::exit (int) throw (); using std::exit;' \
2856 'extern "C" void std::exit (int); using std::exit;' \
2857 'extern "C" void exit (int) throw ();' \
2858 'extern "C" void exit (int);' \
2859 'void exit (int);'
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line 2862 "configure"
2863 #include "confdefs.h"
2864 #include <stdlib.h>
2865 $ac_declaration
2867 main ()
2869 exit (42);
2871 return 0;
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5
2876 (eval $ac_compile) 2>&5
2877 ac_status=$?
2878 echo "$as_me:2878: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -s conftest.$ac_objext'
2881 { (eval echo "$as_me:2881: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:2884: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 continue
2892 rm -f conftest.$ac_objext conftest.$ac_ext
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line 2894 "configure"
2895 #include "confdefs.h"
2896 $ac_declaration
2898 main ()
2900 exit (42);
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2908 ac_status=$?
2909 echo "$as_me:2909: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:2912: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:2915: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 break
2918 else
2919 echo "$as_me: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 rm -f conftest.$ac_objext conftest.$ac_ext
2923 done
2924 rm -f conftest*
2925 if test -n "$ac_declaration"; then
2926 echo '#ifdef __cplusplus' >>confdefs.h
2927 echo $ac_declaration >>confdefs.h
2928 echo '#endif' >>confdefs.h
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 rm -f conftest.$ac_objext conftest.$ac_ext
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 # On Suns, sometimes $CPP names a directory.
2943 if test -n "$CPP" && test -d "$CPP"; then
2944 CPP=
2947 #### Some systems specify a CPP to use unless we are using GCC.
2948 #### Now that we know whether we are using GCC, we can decide whether
2949 #### to use that one.
2950 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
2951 then
2952 CPP="$NON_GNU_CPP"
2955 #### Some systems specify a CC to use unless we are using GCC.
2956 #### Now that we know whether we are using GCC, we can decide whether
2957 #### to use that one.
2958 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
2959 test x$cc_specified != xyes
2960 then
2961 CC="$NON_GNU_CC"
2964 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
2965 then
2966 CC="$CC $GCC_TEST_OPTIONS"
2969 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
2970 then
2971 CC="$CC $NON_GCC_TEST_OPTIONS"
2974 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
2975 then
2976 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
2979 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2980 then
2981 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2984 #### Some other nice autoconf tests. If you add a test here which
2985 #### should make an entry in src/config.h, don't forget to add an
2986 #### #undef clause to src/config.h.in for autoconf to modify.
2988 echo "$as_me:2988: checking whether ln -s works" >&5
2989 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2990 LN_S=$as_ln_s
2991 if test "$LN_S" = "ln -s"; then
2992 echo "$as_me:2992: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6
2994 else
2995 echo "$as_me:2995: result: no, using $LN_S" >&5
2996 echo "${ECHO_T}no, using $LN_S" >&6
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 echo "$as_me:3004: checking how to run the C preprocessor" >&5
3005 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3006 # On Suns, sometimes $CPP names a directory.
3007 if test -n "$CPP" && test -d "$CPP"; then
3008 CPP=
3010 if test -z "$CPP"; then
3011 if test "${ac_cv_prog_CPP+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 # Double quotes because CPP needs to be expanded
3015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3017 ac_preproc_ok=false
3018 for ac_c_preproc_warn_flag in '' yes
3020 # Use a header file that comes with gcc, so configuring glibc
3021 # with a fresh cross-compiler works.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 #line 3025 "configure"
3026 #include "confdefs.h"
3027 #include <assert.h>
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:3030: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 egrep -v '^ *\+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:3036: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 else
3041 ac_cpp_err=
3043 else
3044 ac_cpp_err=yes
3046 if test -z "$ac_cpp_err"; then
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3051 # Broken: fails on valid input.
3052 continue
3054 rm -f conftest.err conftest.$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line 3059 "configure"
3060 #include "confdefs.h"
3061 #include <ac_nonexistent.h>
3062 _ACEOF
3063 if { (eval echo "$as_me:3063: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 ac_status=$?
3066 egrep -v '^ *\+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:3069: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3073 else
3074 ac_cpp_err=
3076 else
3077 ac_cpp_err=yes
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3081 continue
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3089 rm -f conftest.err conftest.$ac_ext
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3095 break
3098 done
3099 ac_cv_prog_CPP=$CPP
3102 CPP=$ac_cv_prog_CPP
3103 else
3104 ac_cv_prog_CPP=$CPP
3106 echo "$as_me:3106: result: $CPP" >&5
3107 echo "${ECHO_T}$CPP" >&6
3108 ac_preproc_ok=false
3109 for ac_c_preproc_warn_flag in '' yes
3111 # Use a header file that comes with gcc, so configuring glibc
3112 # with a fresh cross-compiler works.
3113 # On the NeXT, cc -E runs the code through the compiler's parser,
3114 # not just through cpp. "Syntax error" is here to catch this case.
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line 3116 "configure"
3117 #include "confdefs.h"
3118 #include <assert.h>
3119 Syntax error
3120 _ACEOF
3121 if { (eval echo "$as_me:3121: \"$ac_cpp conftest.$ac_ext\"") >&5
3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123 ac_status=$?
3124 egrep -v '^ *\+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:3127: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null; then
3129 if test -s conftest.err; then
3130 ac_cpp_err=$ac_c_preproc_warn_flag
3131 else
3132 ac_cpp_err=
3134 else
3135 ac_cpp_err=yes
3137 if test -z "$ac_cpp_err"; then
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 # Broken: fails on valid input.
3143 continue
3145 rm -f conftest.err conftest.$ac_ext
3147 # OK, works on sane cases. Now check whether non-existent headers
3148 # can be detected and how.
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line 3150 "configure"
3151 #include "confdefs.h"
3152 #include <ac_nonexistent.h>
3153 _ACEOF
3154 if { (eval echo "$as_me:3154: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 ac_status=$?
3157 egrep -v '^ *\+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:3160: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 else
3165 ac_cpp_err=
3167 else
3168 ac_cpp_err=yes
3170 if test -z "$ac_cpp_err"; then
3171 # Broken: success on invalid input.
3172 continue
3173 else
3174 echo "$as_me: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3176 # Passes both tests.
3177 ac_preproc_ok=:
3178 break
3180 rm -f conftest.err conftest.$ac_ext
3182 done
3183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184 rm -f conftest.err conftest.$ac_ext
3185 if $ac_preproc_ok; then
3187 else
3188 { { echo "$as_me:3188: error: C preprocessor \"$CPP\" fails sanity check" >&5
3189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3190 { (exit 1); exit 1; }; }
3193 ac_ext=c
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 # Find a good install program. We prefer a C program (faster),
3200 # so one script is as good as another. But avoid the broken or
3201 # incompatible versions:
3202 # SysV /etc/install, /usr/sbin/install
3203 # SunOS /usr/etc/install
3204 # IRIX /sbin/install
3205 # AIX /bin/install
3206 # AmigaOS /C/install, which installs bootblocks on floppy discs
3207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3210 # ./install, which can be erroneously created by make from ./install.sh.
3211 echo "$as_me:3211: checking for a BSD compatible install" >&5
3212 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 else
3217 ac_save_IFS=$IFS; IFS=$ac_path_separator
3218 for ac_dir in $PATH; do
3219 IFS=$ac_save_IFS
3220 # Account for people who put trailing slashes in PATH elements.
3221 case $ac_dir/ in
3222 / | ./ | .// | /cC/* \
3223 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3224 | /usr/ucb/* ) ;;
3226 # OSF1 and SCO ODT 3.0 have their own names for install.
3227 # Don't use installbsd from OSF since it installs stuff as root
3228 # by default.
3229 for ac_prog in ginstall scoinst install; do
3230 if $as_executable_p "$ac_dir/$ac_prog"; then
3231 if test $ac_prog = install &&
3232 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3233 # AIX install. It has an incompatible calling convention.
3235 elif test $ac_prog = install &&
3236 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3237 # program-specific install script used by HP pwplus--don't use.
3239 else
3240 ac_cv_path_install="$ac_dir/$ac_prog -c"
3241 break 2
3244 done
3246 esac
3247 done
3250 if test "${ac_cv_path_install+set}" = set; then
3251 INSTALL=$ac_cv_path_install
3252 else
3253 # As a last resort, use the slow shell script. We don't cache a
3254 # path for INSTALL within a source directory, because that will
3255 # break other packages using the cache if that directory is
3256 # removed, or if the path is relative.
3257 INSTALL=$ac_install_sh
3260 echo "$as_me:3260: result: $INSTALL" >&5
3261 echo "${ECHO_T}$INSTALL" >&6
3263 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3264 # It thinks the first close brace ends the variable substitution.
3265 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3267 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3271 for ac_prog in 'bison -y' byacc
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 echo "$as_me:3275: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_YACC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$YACC"; then
3281 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3282 else
3283 ac_save_IFS=$IFS; IFS=$ac_path_separator
3284 ac_dummy="$PATH"
3285 for ac_dir in $ac_dummy; do
3286 IFS=$ac_save_IFS
3287 test -z "$ac_dir" && ac_dir=.
3288 $as_executable_p "$ac_dir/$ac_word" || continue
3289 ac_cv_prog_YACC="$ac_prog"
3290 echo "$as_me:3290: found $ac_dir/$ac_word" >&5
3291 break
3292 done
3296 YACC=$ac_cv_prog_YACC
3297 if test -n "$YACC"; then
3298 echo "$as_me:3298: result: $YACC" >&5
3299 echo "${ECHO_T}$YACC" >&6
3300 else
3301 echo "$as_me:3301: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3305 test -n "$YACC" && break
3306 done
3307 test -n "$YACC" || YACC="yacc"
3309 if test "x$RANLIB" = x; then
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3313 echo "$as_me:3313: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_RANLIB+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$RANLIB"; then
3319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3320 else
3321 ac_save_IFS=$IFS; IFS=$ac_path_separator
3322 ac_dummy="$PATH"
3323 for ac_dir in $ac_dummy; do
3324 IFS=$ac_save_IFS
3325 test -z "$ac_dir" && ac_dir=.
3326 $as_executable_p "$ac_dir/$ac_word" || continue
3327 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3328 echo "$as_me:3328: found $ac_dir/$ac_word" >&5
3329 break
3330 done
3334 RANLIB=$ac_cv_prog_RANLIB
3335 if test -n "$RANLIB"; then
3336 echo "$as_me:3336: result: $RANLIB" >&5
3337 echo "${ECHO_T}$RANLIB" >&6
3338 else
3339 echo "$as_me:3339: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3344 if test -z "$ac_cv_prog_RANLIB"; then
3345 ac_ct_RANLIB=$RANLIB
3346 # Extract the first word of "ranlib", so it can be a program name with args.
3347 set dummy ranlib; ac_word=$2
3348 echo "$as_me:3348: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 if test -n "$ac_ct_RANLIB"; then
3354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3355 else
3356 ac_save_IFS=$IFS; IFS=$ac_path_separator
3357 ac_dummy="$PATH"
3358 for ac_dir in $ac_dummy; do
3359 IFS=$ac_save_IFS
3360 test -z "$ac_dir" && ac_dir=.
3361 $as_executable_p "$ac_dir/$ac_word" || continue
3362 ac_cv_prog_ac_ct_RANLIB="ranlib"
3363 echo "$as_me:3363: found $ac_dir/$ac_word" >&5
3364 break
3365 done
3367 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3370 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3371 if test -n "$ac_ct_RANLIB"; then
3372 echo "$as_me:3372: result: $ac_ct_RANLIB" >&5
3373 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3374 else
3375 echo "$as_me:3375: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3379 RANLIB=$ac_ct_RANLIB
3380 else
3381 RANLIB="$ac_cv_prog_RANLIB"
3386 echo "$as_me:3386: checking for AIX" >&5
3387 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3389 #line 3389 "configure"
3390 #include "confdefs.h"
3391 #ifdef _AIX
3393 #endif
3395 _ACEOF
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "yes" >/dev/null 2>&1; then
3398 echo "$as_me:3398: result: yes" >&5
3399 echo "${ECHO_T}yes" >&6
3400 cat >>confdefs.h <<\EOF
3401 #define _ALL_SOURCE 1
3404 else
3405 echo "$as_me:3405: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3408 rm -f conftest*
3410 #### Extract some information from the operating system and machine files.
3412 { echo "$as_me:3412: checking the machine- and system-dependent files to find out
3413 - which libraries the lib-src programs will want, and
3414 - whether the GNU malloc routines are usable..." >&5
3415 echo "$as_me: checking the machine- and system-dependent files to find out
3416 - which libraries the lib-src programs will want, and
3417 - whether the GNU malloc routines are usable..." >&6;}
3419 ### First figure out CFLAGS (which we use for running the compiler here)
3420 ### and REAL_CFLAGS (which we use for real compilation).
3421 ### The two are the same except on a few systems, where they are made
3422 ### different to work around various lossages. For example,
3423 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3424 ### as implying static linking.
3426 ### If the CFLAGS env var is specified, we use that value
3427 ### instead of the default.
3429 ### It's not important that this name contain the PID; you can't run
3430 ### two configures in the same directory and have anything work
3431 ### anyway.
3432 tempcname="conftest.c"
3434 echo '
3435 #include "'${srcdir}'/src/'${opsysfile}'"
3436 #include "'${srcdir}'/src/'${machfile}'"
3437 #ifndef LIBS_MACHINE
3438 #define LIBS_MACHINE
3439 #endif
3440 #ifndef LIBS_SYSTEM
3441 #define LIBS_SYSTEM
3442 #endif
3443 #ifndef C_SWITCH_SYSTEM
3444 #define C_SWITCH_SYSTEM
3445 #endif
3446 #ifndef C_SWITCH_MACHINE
3447 #define C_SWITCH_MACHINE
3448 #endif
3449 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3450 configure___ c_switch_system=C_SWITCH_SYSTEM
3451 configure___ c_switch_machine=C_SWITCH_MACHINE
3453 #ifndef LIB_X11_LIB
3454 #define LIB_X11_LIB -lX11
3455 #endif
3457 #ifndef LIBX11_MACHINE
3458 #define LIBX11_MACHINE
3459 #endif
3461 #ifndef LIBX11_SYSTEM
3462 #define LIBX11_SYSTEM
3463 #endif
3464 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3466 #ifdef UNEXEC
3467 configure___ unexec=UNEXEC
3468 #else
3469 configure___ unexec=unexec.o
3470 #endif
3472 #ifdef SYSTEM_MALLOC
3473 configure___ system_malloc=yes
3474 #else
3475 configure___ system_malloc=no
3476 #endif
3478 #ifdef USE_MMAP_FOR_BUFFERS
3479 configure___ use_mmap_for_buffers=yes
3480 #else
3481 configure___ use_mmap_for_buffers=no
3482 #endif
3484 #ifndef C_DEBUG_SWITCH
3485 #define C_DEBUG_SWITCH -g
3486 #endif
3488 #ifndef C_OPTIMIZE_SWITCH
3489 #ifdef __GNUC__
3490 #define C_OPTIMIZE_SWITCH -O2
3491 #else
3492 #define C_OPTIMIZE_SWITCH -O
3493 #endif
3494 #endif
3496 #ifndef LD_SWITCH_MACHINE
3497 #define LD_SWITCH_MACHINE
3498 #endif
3500 #ifndef LD_SWITCH_SYSTEM
3501 #define LD_SWITCH_SYSTEM
3502 #endif
3504 #ifndef LD_SWITCH_X_SITE_AUX
3505 #define LD_SWITCH_X_SITE_AUX
3506 #endif
3508 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3509 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3511 #ifdef THIS_IS_CONFIGURE
3513 /* Get the CFLAGS for tests in configure. */
3514 #ifdef __GNUC__
3515 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3516 #else
3517 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3518 #endif
3520 #else /* not THIS_IS_CONFIGURE */
3522 /* Get the CFLAGS for real compilation. */
3523 #ifdef __GNUC__
3524 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3525 #else
3526 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3527 #endif
3529 #endif /* not THIS_IS_CONFIGURE */
3530 ' > ${tempcname}
3532 # The value of CPP is a quoted variable reference, so we need to do this
3533 # to get its actual value...
3534 CPP=`eval "echo $CPP"`
3535 eval `${CPP} -Isrc ${tempcname} \
3536 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3537 if test "x$SPECIFIED_CFLAGS" = x; then
3538 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3539 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3540 else
3541 REAL_CFLAGS="$CFLAGS"
3543 rm ${tempcname}
3545 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3547 ### Make sure subsequent tests use flags consistent with the build flags.
3549 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3550 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3551 else
3552 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3555 # Check whether --enable-largefile or --disable-largefile was given.
3556 if test "${enable_largefile+set}" = set; then
3557 enableval="$enable_largefile"
3560 if test "$enable_largefile" != no; then
3562 echo "$as_me:3562: checking for special C compiler options needed for large files" >&5
3563 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3564 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 ac_cv_sys_largefile_CC=no
3568 if test "$GCC" != yes; then
3569 ac_save_CC=$CC
3570 while :; do
3571 # IRIX 6.2 and later do not support large files by default,
3572 # so use the C compiler's -n32 option if that helps.
3573 cat >conftest.$ac_ext <<_ACEOF
3574 #line 3574 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3577 /* Check that off_t can represent 2**63 - 1 correctly.
3578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3579 since some C++ compilers masquerading as C compilers
3580 incorrectly reject 9223372036854775807. */
3581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3583 && LARGE_OFF_T % 2147483647 == 1)
3584 ? 1 : -1];
3586 main ()
3590 return 0;
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (eval echo "$as_me:3594: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>&5
3596 ac_status=$?
3597 echo "$as_me:3597: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:3600: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:3603: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 break
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 rm -f conftest.$ac_objext
3611 CC="$CC -n32"
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3615 ac_status=$?
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:3622: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_sys_largefile_CC=' -n32'; break
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 rm -f conftest.$ac_objext
3630 break
3631 done
3632 CC=$ac_save_CC
3633 rm -f conftest.$ac_ext
3636 echo "$as_me:3636: result: $ac_cv_sys_largefile_CC" >&5
3637 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3638 if test "$ac_cv_sys_largefile_CC" != no; then
3639 CC=$CC$ac_cv_sys_largefile_CC
3642 echo "$as_me:3642: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3643 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3644 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 while :; do
3648 ac_cv_sys_file_offset_bits=no
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line 3650 "configure"
3651 #include "confdefs.h"
3652 #include <sys/types.h>
3653 /* Check that off_t can represent 2**63 - 1 correctly.
3654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3655 since some C++ compilers masquerading as C compilers
3656 incorrectly reject 9223372036854775807. */
3657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3659 && LARGE_OFF_T % 2147483647 == 1)
3660 ? 1 : -1];
3662 main ()
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:3670: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>&5
3672 ac_status=$?
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 break
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 rm -f conftest.$ac_objext conftest.$ac_ext
3687 cat >conftest.$ac_ext <<_ACEOF
3688 #line 3688 "configure"
3689 #include "confdefs.h"
3690 #define _FILE_OFFSET_BITS 64
3691 #include <sys/types.h>
3692 /* Check that off_t can represent 2**63 - 1 correctly.
3693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3694 since some C++ compilers masquerading as C compilers
3695 incorrectly reject 9223372036854775807. */
3696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3698 && LARGE_OFF_T % 2147483647 == 1)
3699 ? 1 : -1];
3701 main ()
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3711 ac_status=$?
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 ac_cv_sys_file_offset_bits=64; break
3721 else
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 rm -f conftest.$ac_objext conftest.$ac_ext
3726 break
3727 done
3729 echo "$as_me:3729: result: $ac_cv_sys_file_offset_bits" >&5
3730 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3731 if test "$ac_cv_sys_file_offset_bits" != no; then
3733 cat >>confdefs.h <<EOF
3734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3738 rm -f conftest*
3739 echo "$as_me:3739: checking for _LARGE_FILES value needed for large files" >&5
3740 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3741 if test "${ac_cv_sys_large_files+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 while :; do
3745 ac_cv_sys_large_files=no
3746 cat >conftest.$ac_ext <<_ACEOF
3747 #line 3747 "configure"
3748 #include "confdefs.h"
3749 #include <sys/types.h>
3750 /* Check that off_t can represent 2**63 - 1 correctly.
3751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3752 since some C++ compilers masquerading as C compilers
3753 incorrectly reject 9223372036854775807. */
3754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3756 && LARGE_OFF_T % 2147483647 == 1)
3757 ? 1 : -1];
3759 main ()
3763 return 0;
3765 _ACEOF
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>&5
3769 ac_status=$?
3770 echo "$as_me:3770: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:3773: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 break
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3783 rm -f conftest.$ac_objext conftest.$ac_ext
3784 cat >conftest.$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787 #define _LARGE_FILES 1
3788 #include <sys/types.h>
3789 /* Check that off_t can represent 2**63 - 1 correctly.
3790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3791 since some C++ compilers masquerading as C compilers
3792 incorrectly reject 9223372036854775807. */
3793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3795 && LARGE_OFF_T % 2147483647 == 1)
3796 ? 1 : -1];
3798 main ()
3802 return 0;
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:3806: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3808 ac_status=$?
3809 echo "$as_me:3809: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:3812: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:3815: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_sys_large_files=1; break
3818 else
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 rm -f conftest.$ac_objext conftest.$ac_ext
3823 break
3824 done
3826 echo "$as_me:3826: result: $ac_cv_sys_large_files" >&5
3827 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3828 if test "$ac_cv_sys_large_files" != no; then
3830 cat >>confdefs.h <<EOF
3831 #define _LARGE_FILES $ac_cv_sys_large_files
3835 rm -f conftest*
3838 # Sound support for GNU/Linux and the free BSDs.
3840 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3843 echo "$as_me:3843: checking for $ac_header" >&5
3844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3851 #include <$ac_header>
3852 _ACEOF
3853 if { (eval echo "$as_me:3853: \"$ac_cpp conftest.$ac_ext\"") >&5
3854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3855 ac_status=$?
3856 egrep -v '^ *\+' conftest.er1 >conftest.err
3857 rm -f conftest.er1
3858 cat conftest.err >&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } >/dev/null; then
3861 if test -s conftest.err; then
3862 ac_cpp_err=$ac_c_preproc_warn_flag
3863 else
3864 ac_cpp_err=
3866 else
3867 ac_cpp_err=yes
3869 if test -z "$ac_cpp_err"; then
3870 eval "$as_ac_Header=yes"
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 eval "$as_ac_Header=no"
3876 rm -f conftest.err conftest.$ac_ext
3878 echo "$as_me:3878: result: `eval echo '${'$as_ac_Header'}'`" >&5
3879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3881 cat >>confdefs.h <<EOF
3882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3886 done
3888 # Emulation library used on NetBSD.
3889 echo "$as_me:3889: checking for _oss_ioctl in -lossaudio" >&5
3890 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3891 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 ac_check_lib_save_LIBS=$LIBS
3895 LIBS="-lossaudio $LIBS"
3896 cat >conftest.$ac_ext <<_ACEOF
3897 #line 3897 "configure"
3898 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 #ifdef __cplusplus
3902 extern "C"
3903 #endif
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3906 char _oss_ioctl ();
3908 main ()
3910 _oss_ioctl ();
3912 return 0;
3914 _ACEOF
3915 rm -f conftest.$ac_objext conftest$ac_exeext
3916 if { (eval echo "$as_me:3916: \"$ac_link\"") >&5
3917 (eval $ac_link) 2>&5
3918 ac_status=$?
3919 echo "$as_me:3919: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -s conftest$ac_exeext'
3922 { (eval echo "$as_me:3922: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_lib_ossaudio__oss_ioctl=yes
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3931 ac_cv_lib_ossaudio__oss_ioctl=no
3933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3934 LIBS=$ac_check_lib_save_LIBS
3936 echo "$as_me:3936: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3937 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3938 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3939 LIBSOUND=-lossaudio
3940 else
3941 LIBSOUND=
3944 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
3945 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
3946 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
3948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:3949: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line 3955 "configure"
3956 #include "confdefs.h"
3957 #include <$ac_header>
3958 _ACEOF
3959 if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext\"") >&5
3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3961 ac_status=$?
3962 egrep -v '^ *\+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:3965: \$? = $ac_status" >&5
3966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
3969 else
3970 ac_cpp_err=
3972 else
3973 ac_cpp_err=yes
3975 if test -z "$ac_cpp_err"; then
3976 eval "$as_ac_Header=yes"
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 eval "$as_ac_Header=no"
3982 rm -f conftest.err conftest.$ac_ext
3984 echo "$as_me:3984: result: `eval echo '${'$as_ac_Header'}'`" >&5
3985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3987 cat >>confdefs.h <<EOF
3988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3992 done
3994 echo "$as_me:3994: checking for ANSI C header files" >&5
3995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3996 if test "${ac_cv_header_stdc+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 cat >conftest.$ac_ext <<_ACEOF
4000 #line 4000 "configure"
4001 #include "confdefs.h"
4002 #include <stdlib.h>
4003 #include <stdarg.h>
4004 #include <string.h>
4005 #include <float.h>
4007 _ACEOF
4008 if { (eval echo "$as_me:4008: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 egrep -v '^ *\+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 else
4019 ac_cpp_err=
4021 else
4022 ac_cpp_err=yes
4024 if test -z "$ac_cpp_err"; then
4025 ac_cv_header_stdc=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4029 ac_cv_header_stdc=no
4031 rm -f conftest.err conftest.$ac_ext
4033 if test $ac_cv_header_stdc = yes; then
4034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4035 cat >conftest.$ac_ext <<_ACEOF
4036 #line 4036 "configure"
4037 #include "confdefs.h"
4038 #include <string.h>
4040 _ACEOF
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 egrep "memchr" >/dev/null 2>&1; then
4044 else
4045 ac_cv_header_stdc=no
4047 rm -f conftest*
4051 if test $ac_cv_header_stdc = yes; then
4052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4053 cat >conftest.$ac_ext <<_ACEOF
4054 #line 4054 "configure"
4055 #include "confdefs.h"
4056 #include <stdlib.h>
4058 _ACEOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 egrep "free" >/dev/null 2>&1; then
4062 else
4063 ac_cv_header_stdc=no
4065 rm -f conftest*
4069 if test $ac_cv_header_stdc = yes; then
4070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071 if test "$cross_compiling" = yes; then
4073 else
4074 cat >conftest.$ac_ext <<_ACEOF
4075 #line 4075 "configure"
4076 #include "confdefs.h"
4077 #include <ctype.h>
4078 #if ((' ' & 0x0FF) == 0x020)
4079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4081 #else
4082 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4083 || ('j' <= (c) && (c) <= 'r') \
4084 || ('s' <= (c) && (c) <= 'z'))
4085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4086 #endif
4088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4090 main ()
4092 int i;
4093 for (i = 0; i < 256; i++)
4094 if (XOR (islower (i), ISLOWER (i))
4095 || toupper (i) != TOUPPER (i))
4096 exit(2);
4097 exit (0);
4099 _ACEOF
4100 rm -f conftest$ac_exeext
4101 if { (eval echo "$as_me:4101: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>&5
4103 ac_status=$?
4104 echo "$as_me:4104: \$? = $ac_status" >&5
4105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4106 { (eval echo "$as_me:4106: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:4109: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4112 else
4113 echo "$as_me: program exited with status $ac_status" >&5
4114 echo "$as_me: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4116 ac_cv_header_stdc=no
4118 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122 echo "$as_me:4122: result: $ac_cv_header_stdc" >&5
4123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4124 if test $ac_cv_header_stdc = yes; then
4126 cat >>confdefs.h <<\EOF
4127 #define STDC_HEADERS 1
4132 echo "$as_me:4132: checking whether time.h and sys/time.h may both be included" >&5
4133 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4134 if test "${ac_cv_header_time+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line 4138 "configure"
4139 #include "confdefs.h"
4140 #include <sys/types.h>
4141 #include <sys/time.h>
4142 #include <time.h>
4145 main ()
4147 if ((struct tm *) 0)
4148 return 0;
4150 return 0;
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:4154: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>&5
4156 ac_status=$?
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (eval echo "$as_me:4160: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:4163: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_header_time=yes
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 ac_cv_header_time=no
4171 rm -f conftest.$ac_objext conftest.$ac_ext
4173 echo "$as_me:4173: result: $ac_cv_header_time" >&5
4174 echo "${ECHO_T}$ac_cv_header_time" >&6
4175 if test $ac_cv_header_time = yes; then
4177 cat >>confdefs.h <<\EOF
4178 #define TIME_WITH_SYS_TIME 1
4183 echo "$as_me:4183: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4184 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4185 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 #line 4189 "configure"
4190 #include "confdefs.h"
4191 #include <sys/types.h>
4192 #include <signal.h>
4193 /* NetBSD declares sys_siglist in unistd.h. */
4194 #if HAVE_UNISTD_H
4195 # include <unistd.h>
4196 #endif
4199 main ()
4201 char *msg = *(sys_siglist + 1);
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4209 ac_status=$?
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 ac_cv_decl_sys_siglist=yes
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 ac_cv_decl_sys_siglist=no
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4226 echo "$as_me:4226: result: $ac_cv_decl_sys_siglist" >&5
4227 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4228 if test $ac_cv_decl_sys_siglist = yes; then
4230 cat >>confdefs.h <<\EOF
4231 #define SYS_SIGLIST_DECLARED 1
4236 echo "$as_me:4236: checking for sys/wait.h that is POSIX.1 compatible" >&5
4237 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4238 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 cat >conftest.$ac_ext <<_ACEOF
4242 #line 4242 "configure"
4243 #include "confdefs.h"
4244 #include <sys/types.h>
4245 #include <sys/wait.h>
4246 #ifndef WEXITSTATUS
4247 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4248 #endif
4249 #ifndef WIFEXITED
4250 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4251 #endif
4254 main ()
4256 int s;
4257 wait (&s);
4258 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4260 return 0;
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (eval echo "$as_me:4264: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4266 ac_status=$?
4267 echo "$as_me:4267: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (eval echo "$as_me:4270: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:4273: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_header_sys_wait_h=yes
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_header_sys_wait_h=no
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4283 echo "$as_me:4283: result: $ac_cv_header_sys_wait_h" >&5
4284 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4285 if test $ac_cv_header_sys_wait_h = yes; then
4287 cat >>confdefs.h <<\EOF
4288 #define HAVE_SYS_WAIT_H 1
4293 echo "$as_me:4293: checking for struct utimbuf" >&5
4294 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4295 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 cat >conftest.$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #ifdef TIME_WITH_SYS_TIME
4302 #include <sys/time.h>
4303 #include <time.h>
4304 #else
4305 #ifdef HAVE_SYS_TIME_H
4306 #include <sys/time.h>
4307 #else
4308 #include <time.h>
4309 #endif
4310 #endif
4311 #ifdef HAVE_UTIME_H
4312 #include <utime.h>
4313 #endif
4315 main ()
4317 static struct utimbuf x; x.actime = x.modtime;
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:4323: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>&5
4325 ac_status=$?
4326 echo "$as_me:4326: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:4329: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:4332: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 emacs_cv_struct_utimbuf=yes
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 emacs_cv_struct_utimbuf=no
4340 rm -f conftest.$ac_objext conftest.$ac_ext
4342 echo "$as_me:4342: result: $emacs_cv_struct_utimbuf" >&5
4343 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4344 if test $emacs_cv_struct_utimbuf = yes; then
4345 cat >>confdefs.h <<\EOF
4346 #define HAVE_STRUCT_UTIMBUF 1
4351 echo "$as_me:4351: checking return type of signal handlers" >&5
4352 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4353 if test "${ac_cv_type_signal+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line 4357 "configure"
4358 #include "confdefs.h"
4359 #include <sys/types.h>
4360 #include <signal.h>
4361 #ifdef signal
4362 # undef signal
4363 #endif
4364 #ifdef __cplusplus
4365 extern "C" void (*signal (int, void (*)(int)))(int);
4366 #else
4367 void (*signal ()) ();
4368 #endif
4371 main ()
4373 int i;
4375 return 0;
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:4379: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>&5
4381 ac_status=$?
4382 echo "$as_me:4382: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
4384 { ac_try='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:4385: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:4388: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_type_signal=void
4391 else
4392 echo "$as_me: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4394 ac_cv_type_signal=int
4396 rm -f conftest.$ac_objext conftest.$ac_ext
4398 echo "$as_me:4398: result: $ac_cv_type_signal" >&5
4399 echo "${ECHO_T}$ac_cv_type_signal" >&6
4401 cat >>confdefs.h <<EOF
4402 #define RETSIGTYPE $ac_cv_type_signal
4405 echo "$as_me:4405: checking for speed_t" >&5
4406 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4407 if test "${emacs_cv_speed_t+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4413 #include <termios.h>
4415 main ()
4417 speed_t x = 1;
4419 return 0;
4421 _ACEOF
4422 rm -f conftest.$ac_objext
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -s conftest.$ac_objext'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 emacs_cv_speed_t=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 emacs_cv_speed_t=no
4440 rm -f conftest.$ac_objext conftest.$ac_ext
4442 echo "$as_me:4442: result: $emacs_cv_speed_t" >&5
4443 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4444 if test $emacs_cv_speed_t = yes; then
4445 cat >>confdefs.h <<\EOF
4446 #define HAVE_SPEED_T 1
4451 echo "$as_me:4451: checking for struct timeval" >&5
4452 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4453 if test "${emacs_cv_struct_timeval+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 cat >conftest.$ac_ext <<_ACEOF
4457 #line 4457 "configure"
4458 #include "confdefs.h"
4459 #ifdef TIME_WITH_SYS_TIME
4460 #include <sys/time.h>
4461 #include <time.h>
4462 #else
4463 #ifdef HAVE_SYS_TIME_H
4464 #include <sys/time.h>
4465 #else
4466 #include <time.h>
4467 #endif
4468 #endif
4470 main ()
4472 static struct timeval x; x.tv_sec = x.tv_usec;
4474 return 0;
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:4478: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>&5
4480 ac_status=$?
4481 echo "$as_me:4481: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:4484: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:4487: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 emacs_cv_struct_timeval=yes
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 emacs_cv_struct_timeval=no
4495 rm -f conftest.$ac_objext conftest.$ac_ext
4497 echo "$as_me:4497: result: $emacs_cv_struct_timeval" >&5
4498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4499 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4500 if test $emacs_cv_struct_timeval = yes; then
4501 cat >>confdefs.h <<\EOF
4502 #define HAVE_TIMEVAL 1
4507 echo "$as_me:4507: checking for struct exception" >&5
4508 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4509 if test "${emacs_cv_struct_exception+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line 4513 "configure"
4514 #include "confdefs.h"
4515 #include <math.h>
4517 main ()
4519 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:4525: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4527 ac_status=$?
4528 echo "$as_me:4528: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:4531: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 emacs_cv_struct_exception=yes
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 emacs_cv_struct_exception=no
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4544 echo "$as_me:4544: result: $emacs_cv_struct_exception" >&5
4545 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4546 HAVE_EXCEPTION=$emacs_cv_struct_exception
4547 if test $emacs_cv_struct_exception != yes; then
4548 cat >>confdefs.h <<\EOF
4549 #define NO_MATHERR 1
4554 echo "$as_me:4554: checking whether struct tm is in sys/time.h or time.h" >&5
4555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4556 if test "${ac_cv_struct_tm+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 #line 4560 "configure"
4561 #include "confdefs.h"
4562 #include <sys/types.h>
4563 #include <time.h>
4566 main ()
4568 struct tm *tp; tp->tm_sec;
4570 return 0;
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:4574: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>&5
4576 ac_status=$?
4577 echo "$as_me:4577: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:4580: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:4583: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_struct_tm=time.h
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 ac_cv_struct_tm=sys/time.h
4591 rm -f conftest.$ac_objext conftest.$ac_ext
4593 echo "$as_me:4593: result: $ac_cv_struct_tm" >&5
4594 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4595 if test $ac_cv_struct_tm = sys/time.h; then
4597 cat >>confdefs.h <<\EOF
4598 #define TM_IN_SYS_TIME 1
4603 echo "$as_me:4603: checking for struct tm.tm_zone" >&5
4604 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4605 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 cat >conftest.$ac_ext <<_ACEOF
4609 #line 4609 "configure"
4610 #include "confdefs.h"
4611 #include <sys/types.h>
4612 #include <$ac_cv_struct_tm>
4615 main ()
4617 static struct tm ac_aggr;
4618 if (ac_aggr.tm_zone)
4619 return 0;
4621 return 0;
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:4625: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>&5
4627 ac_status=$?
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (eval echo "$as_me:4631: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_member_struct_tm_tm_zone=yes
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_member_struct_tm_tm_zone=no
4642 rm -f conftest.$ac_objext conftest.$ac_ext
4644 echo "$as_me:4644: result: $ac_cv_member_struct_tm_tm_zone" >&5
4645 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4646 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4648 cat >>confdefs.h <<EOF
4649 #define HAVE_STRUCT_TM_TM_ZONE 1
4654 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4656 cat >>confdefs.h <<\EOF
4657 #define HAVE_TM_ZONE 1
4660 else
4661 echo "$as_me:4661: checking for tzname" >&5
4662 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4663 if test "${ac_cv_var_tzname+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line 4667 "configure"
4668 #include "confdefs.h"
4669 #include <time.h>
4670 #ifndef tzname /* For SGI. */
4671 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4672 #endif
4675 main ()
4677 atoi(*tzname);
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:4683: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>&5
4685 ac_status=$?
4686 echo "$as_me:4686: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -s conftest$ac_exeext'
4689 { (eval echo "$as_me:4689: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:4692: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 ac_cv_var_tzname=yes
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 ac_cv_var_tzname=no
4700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 echo "$as_me:4702: result: $ac_cv_var_tzname" >&5
4703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4704 if test $ac_cv_var_tzname = yes; then
4706 cat >>confdefs.h <<\EOF
4707 #define HAVE_TZNAME 1
4713 echo "$as_me:4713: checking for tm_gmtoff in struct tm" >&5
4714 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4715 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line 4719 "configure"
4720 #include "confdefs.h"
4721 #include <time.h>
4723 main ()
4725 struct tm t; t.tm_gmtoff = 0
4727 return 0;
4729 _ACEOF
4730 rm -f conftest.$ac_objext conftest$ac_exeext
4731 if { (eval echo "$as_me:4731: \"$ac_link\"") >&5
4732 (eval $ac_link) 2>&5
4733 ac_status=$?
4734 echo "$as_me:4734: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:4737: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:4740: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 emacs_cv_tm_gmtoff=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 emacs_cv_tm_gmtoff=no
4748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4750 echo "$as_me:4750: result: $emacs_cv_tm_gmtoff" >&5
4751 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4752 if test $emacs_cv_tm_gmtoff = yes; then
4753 cat >>confdefs.h <<\EOF
4754 #define HAVE_TM_GMTOFF 1
4759 echo "$as_me:4759: checking for $CC option to accept ANSI C" >&5
4760 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4761 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 ac_cv_prog_cc_stdc=no
4765 ac_save_CC=$CC
4766 cat >conftest.$ac_ext <<_ACEOF
4767 #line 4767 "configure"
4768 #include "confdefs.h"
4769 #include <stdarg.h>
4770 #include <stdio.h>
4771 #include <sys/types.h>
4772 #include <sys/stat.h>
4773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4774 struct buf { int x; };
4775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4776 static char *e (p, i)
4777 char **p;
4778 int i;
4780 return p[i];
4782 static char *f (char * (*g) (char **, int), char **p, ...)
4784 char *s;
4785 va_list v;
4786 va_start (v,p);
4787 s = g (p, va_arg (v,int));
4788 va_end (v);
4789 return s;
4791 int test (int i, double x);
4792 struct s1 {int (*f) (int a);};
4793 struct s2 {int (*f) (double a);};
4794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4795 int argc;
4796 char **argv;
4798 main ()
4800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4802 return 0;
4804 _ACEOF
4805 # Don't try gcc -ansi; that turns off useful extensions and
4806 # breaks some systems' header files.
4807 # AIX -qlanglvl=ansi
4808 # Ultrix and OSF/1 -std1
4809 # HP-UX 10.20 and later -Ae
4810 # HP-UX older versions -Aa -D_HPUX_SOURCE
4811 # SVR4 -Xc -D__EXTENSIONS__
4812 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4814 CC="$ac_save_CC $ac_arg"
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:4816: \"$ac_compile\"") >&5
4817 (eval $ac_compile) 2>&5
4818 ac_status=$?
4819 echo "$as_me:4819: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
4821 { ac_try='test -s conftest.$ac_objext'
4822 { (eval echo "$as_me:4822: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:4825: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 ac_cv_prog_cc_stdc=$ac_arg
4828 break
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 rm -f conftest.$ac_objext
4834 done
4835 rm -f conftest.$ac_ext conftest.$ac_objext
4836 CC=$ac_save_CC
4840 case "x$ac_cv_prog_cc_stdc" in
4841 x|xno)
4842 echo "$as_me:4842: result: none needed" >&5
4843 echo "${ECHO_T}none needed" >&6 ;;
4845 echo "$as_me:4845: result: $ac_cv_prog_cc_stdc" >&5
4846 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4847 CC="$CC $ac_cv_prog_cc_stdc" ;;
4848 esac
4850 echo "$as_me:4850: checking for function prototypes" >&5
4851 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4852 if test "$ac_cv_prog_cc_stdc" != no; then
4853 echo "$as_me:4853: result: yes" >&5
4854 echo "${ECHO_T}yes" >&6
4856 cat >>confdefs.h <<\EOF
4857 #define PROTOTYPES 1
4860 else
4861 echo "$as_me:4861: result: no" >&5
4862 echo "${ECHO_T}no" >&6
4865 echo "$as_me:4865: checking for working volatile" >&5
4866 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4867 if test "${ac_cv_c_volatile+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line 4871 "configure"
4872 #include "confdefs.h"
4875 main ()
4878 volatile int x;
4879 int * volatile y;
4881 return 0;
4883 _ACEOF
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:4888: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:4891: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:4894: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_cv_c_volatile=yes
4897 else
4898 echo "$as_me: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4900 ac_cv_c_volatile=no
4902 rm -f conftest.$ac_objext conftest.$ac_ext
4904 echo "$as_me:4904: result: $ac_cv_c_volatile" >&5
4905 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4906 if test $ac_cv_c_volatile = no; then
4908 cat >>confdefs.h <<\EOF
4909 #define volatile
4914 echo "$as_me:4914: checking for an ANSI C-conforming const" >&5
4915 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4916 if test "${ac_cv_c_const+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919 cat >conftest.$ac_ext <<_ACEOF
4920 #line 4920 "configure"
4921 #include "confdefs.h"
4924 main ()
4926 /* FIXME: Include the comments suggested by Paul. */
4927 #ifndef __cplusplus
4928 /* Ultrix mips cc rejects this. */
4929 typedef int charset[2];
4930 const charset x;
4931 /* SunOS 4.1.1 cc rejects this. */
4932 char const *const *ccp;
4933 char **p;
4934 /* NEC SVR4.0.2 mips cc rejects this. */
4935 struct point {int x, y;};
4936 static struct point const zero = {0,0};
4937 /* AIX XL C 1.02.0.0 rejects this.
4938 It does not let you subtract one const X* pointer from another in
4939 an arm of an if-expression whose if-part is not a constant
4940 expression */
4941 const char *g = "string";
4942 ccp = &g + (g ? g-g : 0);
4943 /* HPUX 7.0 cc rejects these. */
4944 ++ccp;
4945 p = (char**) ccp;
4946 ccp = (char const *const *) p;
4947 { /* SCO 3.2v4 cc rejects this. */
4948 char *t;
4949 char const *s = 0 ? (char *) 0 : (char const *) 0;
4951 *t++ = 0;
4953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4954 int x[] = {25, 17};
4955 const int *foo = &x[0];
4956 ++foo;
4958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4959 typedef const int *iptr;
4960 iptr p = 0;
4961 ++p;
4963 { /* AIX XL C 1.02.0.0 rejects this saying
4964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4965 struct s { int j; const int *ap[3]; };
4966 struct s *b; b->j = 5;
4968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4969 const int foo = 10;
4971 #endif
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:4978: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>&5
4980 ac_status=$?
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest.$ac_objext'
4984 { (eval echo "$as_me:4984: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_c_const=yes
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4993 ac_cv_c_const=no
4995 rm -f conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:4997: result: $ac_cv_c_const" >&5
4998 echo "${ECHO_T}$ac_cv_c_const" >&6
4999 if test $ac_cv_c_const = no; then
5001 cat >>confdefs.h <<\EOF
5002 #define const
5007 echo "$as_me:5007: checking for void * support" >&5
5008 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5009 if test "${emacs_cv_void_star+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line 5013 "configure"
5014 #include "confdefs.h"
5017 main ()
5019 void * foo;
5021 return 0;
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:5025: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>&5
5027 ac_status=$?
5028 echo "$as_me:5028: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:5031: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:5034: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 emacs_cv_void_star=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 cat conftest.$ac_ext >&5
5040 emacs_cv_void_star=no
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5044 echo "$as_me:5044: result: $emacs_cv_void_star" >&5
5045 echo "${ECHO_T}$emacs_cv_void_star" >&6
5046 if test $emacs_cv_void_star = yes; then
5047 cat >>confdefs.h <<\EOF
5048 #define POINTER_TYPE void
5051 else
5052 cat >>confdefs.h <<\EOF
5053 #define POINTER_TYPE char
5058 echo "$as_me:5058: checking whether ${MAKE-make} sets \${MAKE}" >&5
5059 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5060 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5061 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 cat >conftest.make <<\EOF
5065 all:
5066 @echo 'ac_maketemp="${MAKE}"'
5068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5069 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5070 if test -n "$ac_maketemp"; then
5071 eval ac_cv_prog_make_${ac_make}_set=yes
5072 else
5073 eval ac_cv_prog_make_${ac_make}_set=no
5075 rm -f conftest.make
5077 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5078 echo "$as_me:5078: result: yes" >&5
5079 echo "${ECHO_T}yes" >&6
5080 SET_MAKE=
5081 else
5082 echo "$as_me:5082: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 SET_MAKE="MAKE=${MAKE-make}"
5087 echo "$as_me:5087: checking for long file names" >&5
5088 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5089 if test "${ac_cv_sys_long_file_names+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 ac_cv_sys_long_file_names=yes
5093 # Test for long file names in all the places we know might matter:
5094 # . the current directory, where building will happen
5095 # $prefix/lib where we will be installing things
5096 # $exec_prefix/lib likewise
5097 # eval it to expand exec_prefix.
5098 # $TMPDIR if set, where it might want to write temporary files
5099 # if $TMPDIR is not set:
5100 # /tmp where it might want to write temporary files
5101 # /var/tmp likewise
5102 # /usr/tmp likewise
5103 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5104 ac_tmpdirs=$TMPDIR
5105 else
5106 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5108 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5109 test -d $ac_dir || continue
5110 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5111 ac_xdir=$ac_dir/cf$$
5112 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5113 ac_tf1=$ac_xdir/conftest9012345
5114 ac_tf2=$ac_xdir/conftest9012346
5115 (echo 1 >$ac_tf1) 2>/dev/null
5116 (echo 2 >$ac_tf2) 2>/dev/null
5117 ac_val=`cat $ac_tf1 2>/dev/null`
5118 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5119 ac_cv_sys_long_file_names=no
5120 rm -rf $ac_xdir 2>/dev/null
5121 break
5123 rm -rf $ac_xdir 2>/dev/null
5124 done
5126 echo "$as_me:5126: result: $ac_cv_sys_long_file_names" >&5
5127 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5128 if test $ac_cv_sys_long_file_names = yes; then
5130 cat >>confdefs.h <<\EOF
5131 #define HAVE_LONG_FILE_NAMES 1
5136 #### Choose a window system.
5138 echo "$as_me:5138: checking for X" >&5
5139 echo $ECHO_N "checking for X... $ECHO_C" >&6
5141 # Check whether --with-x or --without-x was given.
5142 if test "${with_x+set}" = set; then
5143 withval="$with_x"
5146 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5147 if test "x$with_x" = xno; then
5148 # The user explicitly disabled X.
5149 have_x=disabled
5150 else
5151 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5152 # Both variables are already set.
5153 have_x=yes
5154 else
5155 if test "${ac_cv_have_x+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 # One or both of the vars are not set, and there is no cached value.
5159 ac_x_includes=no ac_x_libraries=no
5160 rm -fr conftest.dir
5161 if mkdir conftest.dir; then
5162 cd conftest.dir
5163 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5164 cat >Imakefile <<'EOF'
5165 acfindx:
5166 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5168 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5169 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5170 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5171 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5172 for ac_extension in a so sl; do
5173 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5174 test -f $ac_im_libdir/libX11.$ac_extension; then
5175 ac_im_usrlibdir=$ac_im_libdir; break
5177 done
5178 # Screen out bogus values from the imake configuration. They are
5179 # bogus both because they are the default anyway, and because
5180 # using them would break gcc on systems where it needs fixed includes.
5181 case $ac_im_incroot in
5182 /usr/include) ;;
5183 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5184 esac
5185 case $ac_im_usrlibdir in
5186 /usr/lib | /lib) ;;
5187 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5188 esac
5190 cd ..
5191 rm -fr conftest.dir
5194 # Standard set of common directories for X headers.
5195 # Check X11 before X11Rn because it is often a symlink to the current release.
5196 ac_x_header_dirs='
5197 /usr/X11/include
5198 /usr/X11R6/include
5199 /usr/X11R5/include
5200 /usr/X11R4/include
5202 /usr/include/X11
5203 /usr/include/X11R6
5204 /usr/include/X11R5
5205 /usr/include/X11R4
5207 /usr/local/X11/include
5208 /usr/local/X11R6/include
5209 /usr/local/X11R5/include
5210 /usr/local/X11R4/include
5212 /usr/local/include/X11
5213 /usr/local/include/X11R6
5214 /usr/local/include/X11R5
5215 /usr/local/include/X11R4
5217 /usr/X386/include
5218 /usr/x386/include
5219 /usr/XFree86/include/X11
5221 /usr/include
5222 /usr/local/include
5223 /usr/unsupported/include
5224 /usr/athena/include
5225 /usr/local/x11r5/include
5226 /usr/lpp/Xamples/include
5228 /usr/openwin/include
5229 /usr/openwin/share/include'
5231 if test "$ac_x_includes" = no; then
5232 # Guess where to find include files, by looking for Intrinsic.h.
5233 # First, try using that file with no special directory specified.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 #line 5235 "configure"
5236 #include "confdefs.h"
5237 #include <X11/Intrinsic.h>
5238 _ACEOF
5239 if { (eval echo "$as_me:5239: \"$ac_cpp conftest.$ac_ext\"") >&5
5240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241 ac_status=$?
5242 egrep -v '^ *\+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5245 echo "$as_me:5245: \$? = $ac_status" >&5
5246 (exit $ac_status); } >/dev/null; then
5247 if test -s conftest.err; then
5248 ac_cpp_err=$ac_c_preproc_warn_flag
5249 else
5250 ac_cpp_err=
5252 else
5253 ac_cpp_err=yes
5255 if test -z "$ac_cpp_err"; then
5256 # We can compile using X headers with no special include directory.
5257 ac_x_includes=
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 for ac_dir in $ac_x_header_dirs; do
5262 if test -r "$ac_dir/X11/Intrinsic.h"; then
5263 ac_x_includes=$ac_dir
5264 break
5266 done
5268 rm -f conftest.err conftest.$ac_ext
5269 fi # $ac_x_includes = no
5271 if test "$ac_x_libraries" = no; then
5272 # Check for the libraries.
5273 # See if we find them without any special options.
5274 # Don't add to $LIBS permanently.
5275 ac_save_LIBS=$LIBS
5276 LIBS="-lXt $LIBS"
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line 5278 "configure"
5279 #include "confdefs.h"
5280 #include <X11/Intrinsic.h>
5282 main ()
5284 XtMalloc (0)
5286 return 0;
5288 _ACEOF
5289 rm -f conftest.$ac_objext conftest$ac_exeext
5290 if { (eval echo "$as_me:5290: \"$ac_link\"") >&5
5291 (eval $ac_link) 2>&5
5292 ac_status=$?
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -s conftest$ac_exeext'
5296 { (eval echo "$as_me:5296: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 LIBS=$ac_save_LIBS
5302 # We can link X programs with no special library path.
5303 ac_x_libraries=
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5307 LIBS=$ac_save_LIBS
5308 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5310 # Don't even attempt the hair of trying to link an X program!
5311 for ac_extension in a so sl; do
5312 if test -r $ac_dir/libXt.$ac_extension; then
5313 ac_x_libraries=$ac_dir
5314 break 2
5316 done
5317 done
5319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5320 fi # $ac_x_libraries = no
5322 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5323 # Didn't find X anywhere. Cache the known absence of X.
5324 ac_cv_have_x="have_x=no"
5325 else
5326 # Record where we found X for the cache.
5327 ac_cv_have_x="have_x=yes \
5328 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5333 eval "$ac_cv_have_x"
5334 fi # $with_x != no
5336 if test "$have_x" != yes; then
5337 echo "$as_me:5337: result: $have_x" >&5
5338 echo "${ECHO_T}$have_x" >&6
5339 no_x=yes
5340 else
5341 # If each of the values was on the command line, it overrides each guess.
5342 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5343 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5344 # Update the cache value to reflect the command line values.
5345 ac_cv_have_x="have_x=yes \
5346 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5347 echo "$as_me:5347: result: libraries $x_libraries, headers $x_includes" >&5
5348 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5351 if test "$no_x" = yes; then
5352 window_system=none
5353 else
5354 window_system=x11
5357 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5358 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5359 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5360 x_default_search_path=""
5361 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5362 x_search_path="\
5363 ${x_library}/X11/%L/%T/%N%C%S:\
5364 ${x_library}/X11/%l/%T/%N%C%S:\
5365 ${x_library}/X11/%T/%N%C%S:\
5366 ${x_library}/X11/%L/%T/%N%S:\
5367 ${x_library}/X11/%l/%T/%N%S:\
5368 ${x_library}/X11/%T/%N%S"
5369 if test x"${x_default_search_path}" = x; then
5370 x_default_search_path=${x_search_path}
5371 else
5372 x_default_search_path="${x_search_path}:${x_default_search_path}"
5374 done
5376 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5377 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5380 if test x"${x_includes}" = x; then
5381 bitmapdir=/usr/include/X11/bitmaps
5382 else
5383 # accumulate include directories that have X11 bitmap subdirectories
5384 bmd_acc="dummyval"
5385 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5386 if test -d "${bmd}/X11/bitmaps"; then
5387 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5389 if test -d "${bmd}/bitmaps"; then
5390 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5392 done
5393 if test ${bmd_acc} != "dummyval"; then
5394 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5398 case "${window_system}" in
5399 x11 )
5400 HAVE_X_WINDOWS=yes
5401 HAVE_X11=yes
5402 case "${with_x_toolkit}" in
5403 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5404 motif ) USE_X_TOOLKIT=MOTIF ;;
5405 no ) USE_X_TOOLKIT=none ;;
5406 * ) USE_X_TOOLKIT=maybe ;;
5407 esac
5409 none )
5410 HAVE_X_WINDOWS=no
5411 HAVE_X11=no
5412 USE_X_TOOLKIT=none
5414 esac
5416 ### If we're using X11, we should use the X menu package.
5417 HAVE_MENUS=no
5418 case ${HAVE_X11} in
5419 yes ) HAVE_MENUS=yes ;;
5420 esac
5422 if test "${opsys}" = "hpux9"; then
5423 case "${x_libraries}" in
5424 *X11R4* )
5425 opsysfile="s/hpux9-x11r4.h"
5427 esac
5430 if test "${opsys}" = "hpux9shr"; then
5431 case "${x_libraries}" in
5432 *X11R4* )
5433 opsysfile="s/hpux9shxr4.h"
5435 esac
5438 ### Compute the unexec source name from the object name.
5439 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5441 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5442 # Assume not, until told otherwise.
5443 GNU_MALLOC=yes
5444 doug_lea_malloc=yes
5445 echo "$as_me:5445: checking for malloc_get_state" >&5
5446 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5447 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450 cat >conftest.$ac_ext <<_ACEOF
5451 #line 5451 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char malloc_get_state (); below. */
5455 #include <assert.h>
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char malloc_get_state ();
5463 char (*f) ();
5466 main ()
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5472 choke me
5473 #else
5474 f = malloc_get_state;
5475 #endif
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:5482: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5484 ac_status=$?
5485 echo "$as_me:5485: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:5488: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:5491: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_func_malloc_get_state=yes
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 ac_cv_func_malloc_get_state=no
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5501 echo "$as_me:5501: result: $ac_cv_func_malloc_get_state" >&5
5502 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5503 if test $ac_cv_func_malloc_get_state = yes; then
5505 else
5506 doug_lea_malloc=no
5509 echo "$as_me:5509: checking for malloc_set_state" >&5
5510 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5511 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 #line 5515 "configure"
5516 #include "confdefs.h"
5517 /* System header to define __stub macros and hopefully few prototypes,
5518 which can conflict with char malloc_set_state (); below. */
5519 #include <assert.h>
5520 /* Override any gcc2 internal prototype to avoid an error. */
5521 #ifdef __cplusplus
5522 extern "C"
5523 #endif
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char malloc_set_state ();
5527 char (*f) ();
5530 main ()
5532 /* The GNU C library defines this for functions which it implements
5533 to always fail with ENOSYS. Some functions are actually named
5534 something starting with __ and the normal name is an alias. */
5535 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5536 choke me
5537 #else
5538 f = malloc_set_state;
5539 #endif
5542 return 0;
5544 _ACEOF
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5548 ac_status=$?
5549 echo "$as_me:5549: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:5552: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_func_malloc_set_state=yes
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5561 ac_cv_func_malloc_set_state=no
5563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5565 echo "$as_me:5565: result: $ac_cv_func_malloc_set_state" >&5
5566 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5567 if test $ac_cv_func_malloc_set_state = yes; then
5569 else
5570 doug_lea_malloc=no
5573 echo "$as_me:5573: checking whether __after_morecore_hook exists" >&5
5574 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5575 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 extern void (* __after_morecore_hook)();
5583 main ()
5585 __after_morecore_hook = 0
5587 return 0;
5589 _ACEOF
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:5591: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5593 ac_status=$?
5594 echo "$as_me:5594: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:5597: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:5600: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 emacs_cv_var___after_morecore_hook=yes
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 emacs_cv_var___after_morecore_hook=no
5608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610 echo "$as_me:5610: result: $emacs_cv_var___after_morecore_hook" >&5
5611 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5612 if test $emacs_cv_var___after_morecore_hook = no; then
5613 doug_lea_malloc=no
5615 if test "${system_malloc}" = "yes"; then
5616 GNU_MALLOC=no
5617 GNU_MALLOC_reason="
5618 (The GNU allocators don't work with this system configuration.)"
5620 if test "$doug_lea_malloc" = "yes" ; then
5621 if test "$GNU_MALLOC" = yes ; then
5622 GNU_MALLOC_reason="
5623 (Using Doug Lea's new malloc from the GNU C Library.)"
5625 cat >>confdefs.h <<\EOF
5626 #define DOUG_LEA_MALLOC 1
5631 if test x"${REL_ALLOC}" = x; then
5632 REL_ALLOC=${GNU_MALLOC}
5635 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5637 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5638 inttypes.h stdint.h unistd.h
5640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5641 echo "$as_me:5641: checking for $ac_header" >&5
5642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line 5647 "configure"
5648 #include "confdefs.h"
5649 $ac_includes_default
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:5653: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>&5
5655 ac_status=$?
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:5659: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:5662: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 eval "$as_ac_Header=yes"
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5668 eval "$as_ac_Header=no"
5670 rm -f conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:5672: result: `eval echo '${'$as_ac_Header'}'`" >&5
5673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5675 cat >>confdefs.h <<EOF
5676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 done
5682 for ac_header in stdlib.h unistd.h
5684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5685 echo "$as_me:5685: checking for $ac_header" >&5
5686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5691 #line 5691 "configure"
5692 #include "confdefs.h"
5693 #include <$ac_header>
5694 _ACEOF
5695 if { (eval echo "$as_me:5695: \"$ac_cpp conftest.$ac_ext\"") >&5
5696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5697 ac_status=$?
5698 egrep -v '^ *\+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:5701: \$? = $ac_status" >&5
5702 (exit $ac_status); } >/dev/null; then
5703 if test -s conftest.err; then
5704 ac_cpp_err=$ac_c_preproc_warn_flag
5705 else
5706 ac_cpp_err=
5708 else
5709 ac_cpp_err=yes
5711 if test -z "$ac_cpp_err"; then
5712 eval "$as_ac_Header=yes"
5713 else
5714 echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 eval "$as_ac_Header=no"
5718 rm -f conftest.err conftest.$ac_ext
5720 echo "$as_me:5720: result: `eval echo '${'$as_ac_Header'}'`" >&5
5721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5723 cat >>confdefs.h <<EOF
5724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5728 done
5730 for ac_func in getpagesize
5732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5733 echo "$as_me:5733: checking for $ac_func" >&5
5734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5735 if eval "test \"\${$as_ac_var+set}\" = set"; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line 5739 "configure"
5740 #include "confdefs.h"
5741 /* System header to define __stub macros and hopefully few prototypes,
5742 which can conflict with char $ac_func (); below. */
5743 #include <assert.h>
5744 /* Override any gcc2 internal prototype to avoid an error. */
5745 #ifdef __cplusplus
5746 extern "C"
5747 #endif
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5750 char $ac_func ();
5751 char (*f) ();
5754 main ()
5756 /* The GNU C library defines this for functions which it implements
5757 to always fail with ENOSYS. Some functions are actually named
5758 something starting with __ and the normal name is an alias. */
5759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5760 choke me
5761 #else
5762 f = $ac_func;
5763 #endif
5766 return 0;
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:5770: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>&5
5772 ac_status=$?
5773 echo "$as_me:5773: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:5776: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:5779: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 eval "$as_ac_var=yes"
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 eval "$as_ac_var=no"
5787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5789 echo "$as_me:5789: result: `eval echo '${'$as_ac_var'}'`" >&5
5790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5791 if test `eval echo '${'$as_ac_var'}'` = yes; then
5792 cat >>confdefs.h <<EOF
5793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5797 done
5799 echo "$as_me:5799: checking for working mmap" >&5
5800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 if test "$cross_compiling" = yes; then
5805 ac_cv_func_mmap_fixed_mapped=no
5806 else
5807 cat >conftest.$ac_ext <<_ACEOF
5808 #line 5808 "configure"
5809 #include "confdefs.h"
5810 $ac_includes_default
5811 /* Thanks to Mike Haertel and Jim Avera for this test.
5812 Here is a matrix of mmap possibilities:
5813 mmap private not fixed
5814 mmap private fixed at somewhere currently unmapped
5815 mmap private fixed at somewhere already mapped
5816 mmap shared not fixed
5817 mmap shared fixed at somewhere currently unmapped
5818 mmap shared fixed at somewhere already mapped
5819 For private mappings, we should verify that changes cannot be read()
5820 back from the file, nor mmap's back from the file at a different
5821 address. (There have been systems where private was not correctly
5822 implemented like the infamous i386 svr4.0, and systems where the
5823 VM page cache was not coherent with the file system buffer cache
5824 like early versions of FreeBSD and possibly contemporary NetBSD.)
5825 For shared mappings, we should conversely verify that changes get
5826 propogated back to all the places they're supposed to be.
5828 Grep wants private fixed already mapped.
5829 The main things grep needs to know about mmap are:
5830 * does it exist and is it safe to write into the mmap'd area
5831 * how to use it (BSD variants) */
5833 #include <fcntl.h>
5834 #include <sys/mman.h>
5836 #if !STDC_HEADERS && !HAVE_STDLIB_H
5837 char *malloc ();
5838 #endif
5840 /* This mess was copied from the GNU getpagesize.h. */
5841 #if !HAVE_GETPAGESIZE
5842 /* Assume that all systems that can run configure have sys/param.h. */
5843 # if !HAVE_SYS_PARAM_H
5844 # define HAVE_SYS_PARAM_H 1
5845 # endif
5847 # ifdef _SC_PAGESIZE
5848 # define getpagesize() sysconf(_SC_PAGESIZE)
5849 # else /* no _SC_PAGESIZE */
5850 # if HAVE_SYS_PARAM_H
5851 # include <sys/param.h>
5852 # ifdef EXEC_PAGESIZE
5853 # define getpagesize() EXEC_PAGESIZE
5854 # else /* no EXEC_PAGESIZE */
5855 # ifdef NBPG
5856 # define getpagesize() NBPG * CLSIZE
5857 # ifndef CLSIZE
5858 # define CLSIZE 1
5859 # endif /* no CLSIZE */
5860 # else /* no NBPG */
5861 # ifdef NBPC
5862 # define getpagesize() NBPC
5863 # else /* no NBPC */
5864 # ifdef PAGESIZE
5865 # define getpagesize() PAGESIZE
5866 # endif /* PAGESIZE */
5867 # endif /* no NBPC */
5868 # endif /* no NBPG */
5869 # endif /* no EXEC_PAGESIZE */
5870 # else /* no HAVE_SYS_PARAM_H */
5871 # define getpagesize() 8192 /* punt totally */
5872 # endif /* no HAVE_SYS_PARAM_H */
5873 # endif /* no _SC_PAGESIZE */
5875 #endif /* no HAVE_GETPAGESIZE */
5878 main ()
5880 char *data, *data2, *data3;
5881 int i, pagesize;
5882 int fd;
5884 pagesize = getpagesize ();
5886 /* First, make a file with some known garbage in it. */
5887 data = (char *) malloc (pagesize);
5888 if (!data)
5889 exit (1);
5890 for (i = 0; i < pagesize; ++i)
5891 *(data + i) = rand ();
5892 umask (0);
5893 fd = creat ("conftest.mmap", 0600);
5894 if (fd < 0)
5895 exit (1);
5896 if (write (fd, data, pagesize) != pagesize)
5897 exit (1);
5898 close (fd);
5900 /* Next, try to mmap the file at a fixed address which already has
5901 something else allocated at it. If we can, also make sure that
5902 we see the same garbage. */
5903 fd = open ("conftest.mmap", O_RDWR);
5904 if (fd < 0)
5905 exit (1);
5906 data2 = (char *) malloc (2 * pagesize);
5907 if (!data2)
5908 exit (1);
5909 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5912 exit (1);
5913 for (i = 0; i < pagesize; ++i)
5914 if (*(data + i) != *(data2 + i))
5915 exit (1);
5917 /* Finally, make sure that changes to the mapped area do not
5918 percolate back to the file as seen by read(). (This is a bug on
5919 some variants of i386 svr4.0.) */
5920 for (i = 0; i < pagesize; ++i)
5921 *(data2 + i) = *(data2 + i) + 1;
5922 data3 = (char *) malloc (pagesize);
5923 if (!data3)
5924 exit (1);
5925 if (read (fd, data3, pagesize) != pagesize)
5926 exit (1);
5927 for (i = 0; i < pagesize; ++i)
5928 if (*(data + i) != *(data3 + i))
5929 exit (1);
5930 close (fd);
5931 exit (0);
5933 _ACEOF
5934 rm -f conftest$ac_exeext
5935 if { (eval echo "$as_me:5935: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5937 ac_status=$?
5938 echo "$as_me:5938: \$? = $ac_status" >&5
5939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5940 { (eval echo "$as_me:5940: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:5943: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_func_mmap_fixed_mapped=yes
5946 else
5947 echo "$as_me: program exited with status $ac_status" >&5
5948 echo "$as_me: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 ac_cv_func_mmap_fixed_mapped=no
5952 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:5955: result: $ac_cv_func_mmap_fixed_mapped" >&5
5956 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5957 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5959 cat >>confdefs.h <<\EOF
5960 #define HAVE_MMAP 1
5964 rm -f conftest.mmap
5966 if test $use_mmap_for_buffers = yes; then
5967 REL_ALLOC=no
5970 LIBS="$libsrc_libs $LIBS"
5972 echo "$as_me:5972: checking for dnet_ntoa in -ldnet" >&5
5973 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5974 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 ac_check_lib_save_LIBS=$LIBS
5978 LIBS="-ldnet $LIBS"
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line 5980 "configure"
5981 #include "confdefs.h"
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char dnet_ntoa ();
5991 main ()
5993 dnet_ntoa ();
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (eval echo "$as_me:5999: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>&5
6001 ac_status=$?
6002 echo "$as_me:6002: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -s conftest$ac_exeext'
6005 { (eval echo "$as_me:6005: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:6008: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_lib_dnet_dnet_ntoa=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6014 ac_cv_lib_dnet_dnet_ntoa=no
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6017 LIBS=$ac_check_lib_save_LIBS
6019 echo "$as_me:6019: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6020 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6021 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6022 cat >>confdefs.h <<EOF
6023 #define HAVE_LIBDNET 1
6026 LIBS="-ldnet $LIBS"
6030 echo "$as_me:6030: checking for main in -lXbsd" >&5
6031 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6032 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lXbsd $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6038 #line 6038 "configure"
6039 #include "confdefs.h"
6042 main ()
6044 main ();
6046 return 0;
6048 _ACEOF
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:6050: \"$ac_link\"") >&5
6051 (eval $ac_link) 2>&5
6052 ac_status=$?
6053 echo "$as_me:6053: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:6056: \"$ac_try\"") >&5
6057 (eval $ac_try) 2>&5
6058 ac_status=$?
6059 echo "$as_me:6059: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 ac_cv_lib_Xbsd_main=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 ac_cv_lib_Xbsd_main=no
6067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6070 echo "$as_me:6070: result: $ac_cv_lib_Xbsd_main" >&5
6071 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6072 if test $ac_cv_lib_Xbsd_main = yes; then
6073 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6076 echo "$as_me:6076: checking for cma_open in -lpthreads" >&5
6077 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6078 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 ac_check_lib_save_LIBS=$LIBS
6082 LIBS="-lpthreads $LIBS"
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line 6084 "configure"
6085 #include "confdefs.h"
6087 /* Override any gcc2 internal prototype to avoid an error. */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char cma_open ();
6095 main ()
6097 cma_open ();
6099 return 0;
6101 _ACEOF
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:6103: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6105 ac_status=$?
6106 echo "$as_me:6106: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:6109: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:6112: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_lib_pthreads_cma_open=yes
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 cat conftest.$ac_ext >&5
6118 ac_cv_lib_pthreads_cma_open=no
6120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6123 echo "$as_me:6123: result: $ac_cv_lib_pthreads_cma_open" >&5
6124 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6125 if test $ac_cv_lib_pthreads_cma_open = yes; then
6126 cat >>confdefs.h <<EOF
6127 #define HAVE_LIBPTHREADS 1
6130 LIBS="-lpthreads $LIBS"
6134 echo "$as_me:6134: checking for XFree86 in /usr/X386" >&5
6135 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6136 if test -d /usr/X386/include; then
6137 HAVE_XFREE386=yes
6138 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6139 else
6140 HAVE_XFREE386=no
6142 echo "$as_me:6142: result: $HAVE_XFREE386" >&5
6143 echo "${ECHO_T}$HAVE_XFREE386" >&6
6145 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6146 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6148 REAL_CPPFLAGS="$CPPFLAGS"
6150 if test "${HAVE_X11}" = "yes"; then
6151 DEFS="$C_SWITCH_X_SITE $DEFS"
6152 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6153 LIBS="$LIBX $LIBS"
6154 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6155 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6157 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6158 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6159 # but it's more convenient here to set LD_RUN_PATH
6160 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6161 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6162 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6163 export LD_RUN_PATH
6166 if test "${opsys}" = "gnu-linux"; then
6167 echo "$as_me:6167: checking whether X on GNU/Linux needs -b to link" >&5
6168 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line 6170 "configure"
6171 #include "confdefs.h"
6174 main ()
6176 XOpenDisplay ("foo");
6178 return 0;
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:6182: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>&5
6184 ac_status=$?
6185 echo "$as_me:6185: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:6188: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:6191: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 xlinux_first_failure=no
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6197 xlinux_first_failure=yes
6199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 if test "${xlinux_first_failure}" = "yes"; then
6201 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6202 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6203 OLD_CPPFLAGS="$CPPFLAGS"
6204 OLD_LIBS="$LIBS"
6205 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6206 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6207 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6208 LIBS="$LIBS -b i486-linuxaout"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line 6210 "configure"
6211 #include "confdefs.h"
6214 main ()
6216 XOpenDisplay ("foo");
6218 return 0;
6220 _ACEOF
6221 rm -f conftest.$ac_objext conftest$ac_exeext
6222 if { (eval echo "$as_me:6222: \"$ac_link\"") >&5
6223 (eval $ac_link) 2>&5
6224 ac_status=$?
6225 echo "$as_me:6225: \$? = $ac_status" >&5
6226 (exit $ac_status); } &&
6227 { ac_try='test -s conftest$ac_exeext'
6228 { (eval echo "$as_me:6228: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:6231: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 xlinux_second_failure=no
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6237 xlinux_second_failure=yes
6239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6240 if test "${xlinux_second_failure}" = "yes"; then
6241 # If we get the same failure with -b, there is no use adding -b.
6242 # So take it out. This plays safe.
6243 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6244 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6245 CPPFLAGS="$OLD_CPPFLAGS"
6246 LIBS="$OLD_LIBS"
6247 echo "$as_me:6247: result: no" >&5
6248 echo "${ECHO_T}no" >&6
6249 else
6250 echo "$as_me:6250: result: yes" >&5
6251 echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:6254: result: no" >&5
6255 echo "${ECHO_T}no" >&6
6259 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6260 # header files included from there.
6261 echo "$as_me:6261: checking for Xkb" >&5
6262 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line 6264 "configure"
6265 #include "confdefs.h"
6266 #include <X11/Xlib.h>
6267 #include <X11/XKBlib.h>
6269 main ()
6271 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6273 return 0;
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:6277: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>&5
6279 ac_status=$?
6280 echo "$as_me:6280: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try='test -s conftest$ac_exeext'
6283 { (eval echo "$as_me:6283: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:6286: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 emacs_xkb=yes
6289 else
6290 echo "$as_me: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 emacs_xkb=no
6294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6295 echo "$as_me:6295: result: $emacs_xkb" >&5
6296 echo "${ECHO_T}$emacs_xkb" >&6
6297 if test $emacs_xkb = yes; then
6298 cat >>confdefs.h <<\EOF
6299 #define HAVE_XKBGETKEYBOARD 1
6304 for ac_func in XrmSetDatabase XScreenResourceString \
6305 XScreenNumberOfScreen XSetWMProtocols
6307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6308 echo "$as_me:6308: checking for $ac_func" >&5
6309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6310 if eval "test \"\${$as_ac_var+set}\" = set"; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 cat >conftest.$ac_ext <<_ACEOF
6314 #line 6314 "configure"
6315 #include "confdefs.h"
6316 /* System header to define __stub macros and hopefully few prototypes,
6317 which can conflict with char $ac_func (); below. */
6318 #include <assert.h>
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 #ifdef __cplusplus
6321 extern "C"
6322 #endif
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6325 char $ac_func ();
6326 char (*f) ();
6329 main ()
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 choke me
6336 #else
6337 f = $ac_func;
6338 #endif
6341 return 0;
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (eval echo "$as_me:6345: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:6351: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:6354: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 eval "$as_ac_var=yes"
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 eval "$as_ac_var=no"
6362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6364 echo "$as_me:6364: result: `eval echo '${'$as_ac_var'}'`" >&5
6365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6366 if test `eval echo '${'$as_ac_var'}'` = yes; then
6367 cat >>confdefs.h <<EOF
6368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6372 done
6376 if test "${window_system}" = "x11"; then
6377 echo "$as_me:6377: checking X11 version 6" >&5
6378 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6379 if test "${emacs_cv_x11_version_6+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382 cat >conftest.$ac_ext <<_ACEOF
6383 #line 6383 "configure"
6384 #include "confdefs.h"
6385 #include <X11/Xlib.h>
6387 main ()
6389 #if XlibSpecificationRelease < 6
6390 fail;
6391 #endif
6394 return 0;
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:6398: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6400 ac_status=$?
6401 echo "$as_me:6401: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:6404: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:6407: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 emacs_cv_x11_version_6=yes
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 emacs_cv_x11_version_6=no
6415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418 if test $emacs_cv_x11_version_6 = yes; then
6419 echo "$as_me:6419: result: 6 or newer" >&5
6420 echo "${ECHO_T}6 or newer" >&6
6421 cat >>confdefs.h <<\EOF
6422 #define HAVE_X11R6 1
6425 else
6426 echo "$as_me:6426: result: before 6" >&5
6427 echo "${ECHO_T}before 6" >&6
6431 if test "${window_system}" = "x11"; then
6432 echo "$as_me:6432: checking X11 version 5" >&5
6433 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6434 if test "${emacs_cv_x11_version_5+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line 6438 "configure"
6439 #include "confdefs.h"
6440 #include <X11/Xlib.h>
6442 main ()
6444 #if XlibSpecificationRelease < 5
6445 fail;
6446 #endif
6449 return 0;
6451 _ACEOF
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (eval echo "$as_me:6453: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6455 ac_status=$?
6456 echo "$as_me:6456: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:6459: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:6462: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 emacs_cv_x11_version_5=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6468 emacs_cv_x11_version_5=no
6470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6473 if test $emacs_cv_x11_version_5 = yes; then
6474 echo "$as_me:6474: result: 5 or newer" >&5
6475 echo "${ECHO_T}5 or newer" >&6
6476 HAVE_X11R5=yes
6477 cat >>confdefs.h <<\EOF
6478 #define HAVE_X11R5 1
6481 else
6482 HAVE_X11R5=no
6483 echo "$as_me:6483: result: before 5" >&5
6484 echo "${ECHO_T}before 5" >&6
6488 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6489 if test x"${HAVE_X11R5}" = xyes; then
6490 echo "$as_me:6490: checking X11 version 5 with Xaw" >&5
6491 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6492 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495 cat >conftest.$ac_ext <<_ACEOF
6496 #line 6496 "configure"
6497 #include "confdefs.h"
6499 #include <X11/Intrinsic.h>
6500 #include <X11/Xaw/Simple.h>
6502 main ()
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:6510: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 echo "$as_me:6513: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:6516: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:6519: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 emacs_cv_x11_version_5_with_xaw=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 emacs_cv_x11_version_5_with_xaw=no
6527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6530 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6531 echo "$as_me:6531: result: 5 or newer, with Xaw; use toolkit by default" >&5
6532 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6533 USE_X_TOOLKIT=LUCID
6534 else
6535 echo "$as_me:6535: result: before 5 or no Xaw; do not use toolkit by default" >&5
6536 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6537 USE_X_TOOLKIT=none
6539 else
6540 USE_X_TOOLKIT=none
6544 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6546 if test "${USE_X_TOOLKIT}" != "none"; then
6547 echo "$as_me:6547: checking X11 toolkit version" >&5
6548 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6549 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 cat >conftest.$ac_ext <<_ACEOF
6553 #line 6553 "configure"
6554 #include "confdefs.h"
6555 #include <X11/Intrinsic.h>
6557 main ()
6559 #if XtSpecificationRelease < 6
6560 fail;
6561 #endif
6564 return 0;
6566 _ACEOF
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:6568: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6570 ac_status=$?
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 emacs_cv_x11_toolkit_version_6=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 emacs_cv_x11_toolkit_version_6=no
6585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6588 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6589 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6590 echo "$as_me:6590: result: 6 or newer" >&5
6591 echo "${ECHO_T}6 or newer" >&6
6592 cat >>confdefs.h <<\EOF
6593 #define HAVE_X11XTR6 1
6596 else
6597 echo "$as_me:6597: result: before 6" >&5
6598 echo "${ECHO_T}before 6" >&6
6601 OLDLIBS="$LIBS"
6602 if test x$HAVE_X11XTR6 = xyes; then
6603 LIBS="-lXt -lSM -lICE $LIBS"
6604 else
6605 LIBS="-lXt $LIBS"
6608 echo "$as_me:6608: checking for XmuConvertStandardSelection in -lXmu" >&5
6609 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6610 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613 ac_check_lib_save_LIBS=$LIBS
6614 LIBS="-lXmu $LIBS"
6615 cat >conftest.$ac_ext <<_ACEOF
6616 #line 6616 "configure"
6617 #include "confdefs.h"
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 #ifdef __cplusplus
6621 extern "C"
6622 #endif
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6625 char XmuConvertStandardSelection ();
6627 main ()
6629 XmuConvertStandardSelection ();
6631 return 0;
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:6635: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6637 ac_status=$?
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:6641: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6650 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6653 LIBS=$ac_check_lib_save_LIBS
6655 echo "$as_me:6655: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6656 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6657 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6658 cat >>confdefs.h <<EOF
6659 #define HAVE_LIBXMU 1
6662 LIBS="-lXmu $LIBS"
6666 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6669 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6670 if test "${HAVE_X11}" = "yes"; then
6671 if test "${USE_X_TOOLKIT}" != "none"; then
6673 echo "$as_me:6673: checking for XShapeQueryExtension in -lXext" >&5
6674 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6675 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 ac_check_lib_save_LIBS=$LIBS
6679 LIBS="-lXext $LIBS"
6680 cat >conftest.$ac_ext <<_ACEOF
6681 #line 6681 "configure"
6682 #include "confdefs.h"
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char XShapeQueryExtension ();
6692 main ()
6694 XShapeQueryExtension ();
6696 return 0;
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:6700: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:6706: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_Xext_XShapeQueryExtension=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 ac_cv_lib_Xext_XShapeQueryExtension=no
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 LIBS=$ac_check_lib_save_LIBS
6720 echo "$as_me:6720: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6721 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6722 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6723 cat >>confdefs.h <<EOF
6724 #define HAVE_LIBXEXT 1
6727 LIBS="-lXext $LIBS"
6734 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6735 echo "$as_me:6735: checking for Motif version 2.1" >&5
6736 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6737 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line 6741 "configure"
6742 #include "confdefs.h"
6743 #include <Xm/Xm.h>
6745 main ()
6747 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6748 int x = 5;
6749 #else
6750 Motif version prior to 2.1.
6751 #endif
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:6757: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>&5
6759 ac_status=$?
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -s conftest.$ac_objext'
6763 { (eval echo "$as_me:6763: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:6766: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 emacs_cv_motif_version_2_1=yes
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 emacs_cv_motif_version_2_1=no
6774 rm -f conftest.$ac_objext conftest.$ac_ext
6776 echo "$as_me:6776: result: $emacs_cv_motif_version_2_1" >&5
6777 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6778 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6779 if test $emacs_cv_motif_version_2_1 = yes; then
6780 HAVE_LIBXP=no
6781 cat >>confdefs.h <<\EOF
6782 #define HAVE_MOTIF_2_1 1
6785 echo "$as_me:6785: checking for XpCreateContext in -lXp" >&5
6786 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6787 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 ac_check_lib_save_LIBS=$LIBS
6791 LIBS="-lXp $LIBS"
6792 cat >conftest.$ac_ext <<_ACEOF
6793 #line 6793 "configure"
6794 #include "confdefs.h"
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char XpCreateContext ();
6804 main ()
6806 XpCreateContext ();
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:6812: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>&5
6814 ac_status=$?
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -s conftest$ac_exeext'
6818 { (eval echo "$as_me:6818: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:6821: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_cv_lib_Xp_XpCreateContext=yes
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6827 ac_cv_lib_Xp_XpCreateContext=no
6829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6830 LIBS=$ac_check_lib_save_LIBS
6832 echo "$as_me:6832: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6833 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6834 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6835 HAVE_LIBXP=yes
6838 if test ${HAVE_LIBXP} = yes; then
6839 cat >>confdefs.h <<\EOF
6840 #define HAVE_LIBXP 1
6847 ### Is -lXaw3d available?
6848 HAVE_XAW3D=no
6849 if test "${HAVE_X11}" = "yes"; then
6850 if test "${USE_X_TOOLKIT}" != "none"; then
6851 echo "$as_me:6851: checking for X11/Xaw3d/Scrollbar.h" >&5
6852 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6853 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 cat >conftest.$ac_ext <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6859 #include <X11/Xaw3d/Scrollbar.h>
6860 _ACEOF
6861 if { (eval echo "$as_me:6861: \"$ac_cpp conftest.$ac_ext\"") >&5
6862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6863 ac_status=$?
6864 egrep -v '^ *\+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev/null; then
6869 if test -s conftest.err; then
6870 ac_cpp_err=$ac_c_preproc_warn_flag
6871 else
6872 ac_cpp_err=
6874 else
6875 ac_cpp_err=yes
6877 if test -z "$ac_cpp_err"; then
6878 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6882 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6884 rm -f conftest.err conftest.$ac_ext
6886 echo "$as_me:6886: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6887 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6888 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6889 echo "$as_me:6889: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6890 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6891 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 ac_check_lib_save_LIBS=$LIBS
6895 LIBS="-lXaw3d $LIBS"
6896 cat >conftest.$ac_ext <<_ACEOF
6897 #line 6897 "configure"
6898 #include "confdefs.h"
6900 /* Override any gcc2 internal prototype to avoid an error. */
6901 #ifdef __cplusplus
6902 extern "C"
6903 #endif
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6906 char XawScrollbarSetThumb ();
6908 main ()
6910 XawScrollbarSetThumb ();
6912 return 0;
6914 _ACEOF
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (eval echo "$as_me:6916: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
6918 ac_status=$?
6919 echo "$as_me:6919: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:6922: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:6925: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
6933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6934 LIBS=$ac_check_lib_save_LIBS
6936 echo "$as_me:6936: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6937 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6938 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6939 HAVE_XAW3D=yes
6944 if test "${HAVE_XAW3D}" = "yes"; then
6945 cat >>confdefs.h <<\EOF
6946 #define HAVE_XAW3D 1
6953 USE_TOOLKIT_SCROLL_BARS=no
6954 if test "${with_toolkit_scroll_bars}" != "no"; then
6955 if test "${USE_X_TOOLKIT}" != "none"; then
6956 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6957 cat >>confdefs.h <<\EOF
6958 #define USE_TOOLKIT_SCROLL_BARS 1
6961 HAVE_XAW3D=no
6962 USE_TOOLKIT_SCROLL_BARS=yes
6963 elif test "${HAVE_XAW3D}" = "yes"; then
6964 cat >>confdefs.h <<\EOF
6965 #define USE_TOOLKIT_SCROLL_BARS 1
6968 USE_TOOLKIT_SCROLL_BARS=yes
6973 if test "${with_xim}" != "no"; then
6974 cat >>confdefs.h <<\EOF
6975 #define USE_XIM 1
6980 ### Use -lXpm if available, unless `--with-xpm=no'.
6981 HAVE_XPM=no
6982 if test "${HAVE_X11}" = "yes"; then
6983 if test "${with_xpm}" != "no"; then
6984 echo "$as_me:6984: checking for X11/xpm.h" >&5
6985 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6986 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 #line 6990 "configure"
6991 #include "confdefs.h"
6992 #include <X11/xpm.h>
6993 _ACEOF
6994 if { (eval echo "$as_me:6994: \"$ac_cpp conftest.$ac_ext\"") >&5
6995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996 ac_status=$?
6997 egrep -v '^ *\+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null; then
7002 if test -s conftest.err; then
7003 ac_cpp_err=$ac_c_preproc_warn_flag
7004 else
7005 ac_cpp_err=
7007 else
7008 ac_cpp_err=yes
7010 if test -z "$ac_cpp_err"; then
7011 ac_cv_header_X11_xpm_h=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 ac_cv_header_X11_xpm_h=no
7017 rm -f conftest.err conftest.$ac_ext
7019 echo "$as_me:7019: result: $ac_cv_header_X11_xpm_h" >&5
7020 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7021 if test $ac_cv_header_X11_xpm_h = yes; then
7022 echo "$as_me:7022: checking for XpmReadFileToPixmap in -lXpm" >&5
7023 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7024 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 ac_check_lib_save_LIBS=$LIBS
7028 LIBS="-lXpm -lX11 $LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 /* We use char because int might match the return type of a gcc2
7038 builtin and then its argument prototype would still apply. */
7039 char XpmReadFileToPixmap ();
7041 main ()
7043 XpmReadFileToPixmap ();
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext conftest$ac_exeext
7049 if { (eval echo "$as_me:7049: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>&5
7051 ac_status=$?
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:7055: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:7058: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7064 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7067 LIBS=$ac_check_lib_save_LIBS
7069 echo "$as_me:7069: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7070 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7071 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7072 HAVE_XPM=yes
7077 if test "${HAVE_XPM}" = "yes"; then
7078 echo "$as_me:7078: checking for XpmReturnAllocPixels preprocessor define" >&5
7079 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7080 cat >conftest.$ac_ext <<_ACEOF
7081 #line 7081 "configure"
7082 #include "confdefs.h"
7083 #include "X11/xpm.h"
7084 #ifndef XpmReturnAllocPixels
7085 no_return_alloc_pixels
7086 #endif
7088 _ACEOF
7089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7090 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7091 HAVE_XPM=no
7092 else
7093 HAVE_XPM=yes
7095 rm -f conftest*
7097 if test "${HAVE_XPM}" = "yes"; then
7098 echo "$as_me:7098: result: yes" >&5
7099 echo "${ECHO_T}yes" >&6
7100 else
7101 echo "$as_me:7101: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7107 if test "${HAVE_XPM}" = "yes"; then
7108 cat >>confdefs.h <<\EOF
7109 #define HAVE_XPM 1
7115 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7116 HAVE_JPEG=no
7117 if test "${HAVE_X11}" = "yes"; then
7118 if test "${with_jpeg}" != "no"; then
7119 echo "$as_me:7119: checking for jerror.h" >&5
7120 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7121 if test "${ac_cv_header_jerror_h+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line 7125 "configure"
7126 #include "confdefs.h"
7127 #include <jerror.h>
7128 _ACEOF
7129 if { (eval echo "$as_me:7129: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7131 ac_status=$?
7132 egrep -v '^ *\+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:7135: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev/null; then
7137 if test -s conftest.err; then
7138 ac_cpp_err=$ac_c_preproc_warn_flag
7139 else
7140 ac_cpp_err=
7142 else
7143 ac_cpp_err=yes
7145 if test -z "$ac_cpp_err"; then
7146 ac_cv_header_jerror_h=yes
7147 else
7148 echo "$as_me: failed program was:" >&5
7149 cat conftest.$ac_ext >&5
7150 ac_cv_header_jerror_h=no
7152 rm -f conftest.err conftest.$ac_ext
7154 echo "$as_me:7154: result: $ac_cv_header_jerror_h" >&5
7155 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7156 if test $ac_cv_header_jerror_h = yes; then
7157 echo "$as_me:7157: checking for jpeg_destroy_compress in -ljpeg" >&5
7158 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7159 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 ac_check_lib_save_LIBS=$LIBS
7163 LIBS="-ljpeg $LIBS"
7164 cat >conftest.$ac_ext <<_ACEOF
7165 #line 7165 "configure"
7166 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */
7169 #ifdef __cplusplus
7170 extern "C"
7171 #endif
7172 /* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7174 char jpeg_destroy_compress ();
7176 main ()
7178 jpeg_destroy_compress ();
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:7184: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7186 ac_status=$?
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:7190: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:7193: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7204 echo "$as_me:7204: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7205 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7206 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7207 HAVE_JPEG=yes
7214 if test "${HAVE_JPEG}" = "yes"; then
7215 cat >>confdefs.h <<\EOF
7216 #define HAVE_JPEG 1
7222 ### Use -lpng if available, unless `--with-png=no'.
7223 HAVE_PNG=no
7224 if test "${HAVE_X11}" = "yes"; then
7225 if test "${with_png}" != "no"; then
7226 echo "$as_me:7226: checking for png.h" >&5
7227 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7228 if test "${ac_cv_header_png_h+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 #line 7232 "configure"
7233 #include "confdefs.h"
7234 #include <png.h>
7235 _ACEOF
7236 if { (eval echo "$as_me:7236: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7238 ac_status=$?
7239 egrep -v '^ *\+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:7242: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev/null; then
7244 if test -s conftest.err; then
7245 ac_cpp_err=$ac_c_preproc_warn_flag
7246 else
7247 ac_cpp_err=
7249 else
7250 ac_cpp_err=yes
7252 if test -z "$ac_cpp_err"; then
7253 ac_cv_header_png_h=yes
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7257 ac_cv_header_png_h=no
7259 rm -f conftest.err conftest.$ac_ext
7261 echo "$as_me:7261: result: $ac_cv_header_png_h" >&5
7262 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7263 if test $ac_cv_header_png_h = yes; then
7264 echo "$as_me:7264: checking for png_get_channels in -lpng" >&5
7265 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7266 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269 ac_check_lib_save_LIBS=$LIBS
7270 LIBS="-lpng -lz -lm $LIBS"
7271 cat >conftest.$ac_ext <<_ACEOF
7272 #line 7272 "configure"
7273 #include "confdefs.h"
7275 /* Override any gcc2 internal prototype to avoid an error. */
7276 #ifdef __cplusplus
7277 extern "C"
7278 #endif
7279 /* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */
7281 char png_get_channels ();
7283 main ()
7285 png_get_channels ();
7287 return 0;
7289 _ACEOF
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (eval echo "$as_me:7291: \"$ac_link\"") >&5
7292 (eval $ac_link) 2>&5
7293 ac_status=$?
7294 echo "$as_me:7294: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -s conftest$ac_exeext'
7297 { (eval echo "$as_me:7297: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:7300: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_cv_lib_png_png_get_channels=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 ac_cv_lib_png_png_get_channels=no
7308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7309 LIBS=$ac_check_lib_save_LIBS
7311 echo "$as_me:7311: result: $ac_cv_lib_png_png_get_channels" >&5
7312 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7313 if test $ac_cv_lib_png_png_get_channels = yes; then
7314 HAVE_PNG=yes
7321 if test "${HAVE_PNG}" = "yes"; then
7322 cat >>confdefs.h <<\EOF
7323 #define HAVE_PNG 1
7329 ### Use -ltiff if available, unless `--with-tiff=no'.
7330 HAVE_TIFF=no
7331 if test "${HAVE_X11}" = "yes"; then
7332 if test "${with_tiff}" != "no"; then
7333 echo "$as_me:7333: checking for tiffio.h" >&5
7334 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7335 if test "${ac_cv_header_tiffio_h+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line 7339 "configure"
7340 #include "confdefs.h"
7341 #include <tiffio.h>
7342 _ACEOF
7343 if { (eval echo "$as_me:7343: \"$ac_cpp conftest.$ac_ext\"") >&5
7344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7345 ac_status=$?
7346 egrep -v '^ *\+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); } >/dev/null; then
7351 if test -s conftest.err; then
7352 ac_cpp_err=$ac_c_preproc_warn_flag
7353 else
7354 ac_cpp_err=
7356 else
7357 ac_cpp_err=yes
7359 if test -z "$ac_cpp_err"; then
7360 ac_cv_header_tiffio_h=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 ac_cv_header_tiffio_h=no
7366 rm -f conftest.err conftest.$ac_ext
7368 echo "$as_me:7368: result: $ac_cv_header_tiffio_h" >&5
7369 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7370 if test $ac_cv_header_tiffio_h = yes; then
7371 tifflibs="-lz -lm"
7372 # At least one tiff package requires the jpeg library.
7373 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7374 echo "$as_me:7374: checking for TIFFGetVersion in -ltiff" >&5
7375 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7376 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 ac_check_lib_save_LIBS=$LIBS
7380 LIBS="-ltiff $tifflibs $LIBS"
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line 7382 "configure"
7383 #include "confdefs.h"
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 /* We use char because int might match the return type of a gcc2
7390 builtin and then its argument prototype would still apply. */
7391 char TIFFGetVersion ();
7393 main ()
7395 TIFFGetVersion ();
7397 return 0;
7399 _ACEOF
7400 rm -f conftest.$ac_objext conftest$ac_exeext
7401 if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
7402 (eval $ac_link) 2>&5
7403 ac_status=$?
7404 echo "$as_me:7404: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -s conftest$ac_exeext'
7407 { (eval echo "$as_me:7407: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:7410: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_lib_tiff_TIFFGetVersion=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 ac_cv_lib_tiff_TIFFGetVersion=no
7418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7419 LIBS=$ac_check_lib_save_LIBS
7421 echo "$as_me:7421: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7422 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7423 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7424 HAVE_TIFF=yes
7431 if test "${HAVE_TIFF}" = "yes"; then
7432 cat >>confdefs.h <<\EOF
7433 #define HAVE_TIFF 1
7439 ### Use -lgif if available, unless `--with-gif=no'.
7440 HAVE_GIF=no
7441 if test "${HAVE_X11}" = "yes"; then
7442 if test "${with_gif}" != "no"; then
7443 echo "$as_me:7443: checking for gif_lib.h" >&5
7444 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7445 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448 cat >conftest.$ac_ext <<_ACEOF
7449 #line 7449 "configure"
7450 #include "confdefs.h"
7451 #include <gif_lib.h>
7452 _ACEOF
7453 if { (eval echo "$as_me:7453: \"$ac_cpp conftest.$ac_ext\"") >&5
7454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7455 ac_status=$?
7456 egrep -v '^ *\+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null; then
7461 if test -s conftest.err; then
7462 ac_cpp_err=$ac_c_preproc_warn_flag
7463 else
7464 ac_cpp_err=
7466 else
7467 ac_cpp_err=yes
7469 if test -z "$ac_cpp_err"; then
7470 ac_cv_header_gif_lib_h=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7474 ac_cv_header_gif_lib_h=no
7476 rm -f conftest.err conftest.$ac_ext
7478 echo "$as_me:7478: result: $ac_cv_header_gif_lib_h" >&5
7479 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7480 if test $ac_cv_header_gif_lib_h = yes; then
7481 echo "$as_me:7481: checking for DGifOpen in -lungif" >&5
7482 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7483 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 ac_check_lib_save_LIBS=$LIBS
7487 LIBS="-lungif $LIBS"
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7492 /* Override any gcc2 internal prototype to avoid an error. */
7493 #ifdef __cplusplus
7494 extern "C"
7495 #endif
7496 /* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7498 char DGifOpen ();
7500 main ()
7502 DGifOpen ();
7504 return 0;
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:7508: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>&5
7510 ac_status=$?
7511 echo "$as_me:7511: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -s conftest$ac_exeext'
7514 { (eval echo "$as_me:7514: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:7517: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_lib_ungif_DGifOpen=yes
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7523 ac_cv_lib_ungif_DGifOpen=no
7525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7526 LIBS=$ac_check_lib_save_LIBS
7528 echo "$as_me:7528: result: $ac_cv_lib_ungif_DGifOpen" >&5
7529 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7530 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7531 HAVE_GIF=yes
7538 if test "${HAVE_GIF}" = "yes"; then
7539 cat >>confdefs.h <<\EOF
7540 #define HAVE_GIF 1
7546 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7547 echo "$as_me:7547: checking whether netdb declares h_errno" >&5
7548 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7549 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 cat >conftest.$ac_ext <<_ACEOF
7553 #line 7553 "configure"
7554 #include "confdefs.h"
7555 #include <netdb.h>
7557 main ()
7559 return h_errno;
7561 return 0;
7563 _ACEOF
7564 rm -f conftest.$ac_objext conftest$ac_exeext
7565 if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7567 ac_status=$?
7568 echo "$as_me:7568: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -s conftest$ac_exeext'
7571 { (eval echo "$as_me:7571: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
7573 ac_status=$?
7574 echo "$as_me:7574: \$? = $ac_status" >&5
7575 (exit $ac_status); }; }; then
7576 emacs_cv_netdb_declares_h_errno=yes
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 emacs_cv_netdb_declares_h_errno=no
7582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7584 echo "$as_me:7584: result: $emacs_cv_netdb_declares_h_errno" >&5
7585 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7586 if test $emacs_cv_netdb_declares_h_errno = yes; then
7587 cat >>confdefs.h <<\EOF
7588 #define HAVE_H_ERRNO 1
7593 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7594 # for constant arguments. Useless!
7595 echo "$as_me:7595: checking for working alloca.h" >&5
7596 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7597 if test "${ac_cv_working_alloca_h+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7603 #include <alloca.h>
7605 main ()
7607 char *p = (char *) alloca (2 * sizeof (int));
7609 return 0;
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
7614 (eval $ac_link) 2>&5
7615 ac_status=$?
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:7619: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_working_alloca_h=yes
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 ac_cv_working_alloca_h=no
7630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7632 echo "$as_me:7632: result: $ac_cv_working_alloca_h" >&5
7633 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7634 if test $ac_cv_working_alloca_h = yes; then
7636 cat >>confdefs.h <<\EOF
7637 #define HAVE_ALLOCA_H 1
7642 echo "$as_me:7642: checking for alloca" >&5
7643 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7644 if test "${ac_cv_func_alloca_works+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line 7648 "configure"
7649 #include "confdefs.h"
7650 #ifdef __GNUC__
7651 # define alloca __builtin_alloca
7652 #else
7653 # ifdef _MSC_VER
7654 # include <malloc.h>
7655 # define alloca _alloca
7656 # else
7657 # if HAVE_ALLOCA_H
7658 # include <alloca.h>
7659 # else
7660 # ifdef _AIX
7661 #pragma alloca
7662 # else
7663 # ifndef alloca /* predefined by HP cc +Olibcalls */
7664 char *alloca ();
7665 # endif
7666 # endif
7667 # endif
7668 # endif
7669 #endif
7672 main ()
7674 char *p = (char *) alloca (1);
7676 return 0;
7678 _ACEOF
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:7680: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>&5
7682 ac_status=$?
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest$ac_exeext'
7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_func_alloca_works=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 ac_cv_func_alloca_works=no
7697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7699 echo "$as_me:7699: result: $ac_cv_func_alloca_works" >&5
7700 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7702 if test $ac_cv_func_alloca_works = yes; then
7704 cat >>confdefs.h <<\EOF
7705 #define HAVE_ALLOCA 1
7708 else
7709 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7710 # that cause trouble. Some versions do not even contain alloca or
7711 # contain a buggy version. If you still want to use their alloca,
7712 # use ar to extract alloca.o from them instead of compiling alloca.c.
7714 ALLOCA=alloca.$ac_objext
7716 cat >>confdefs.h <<\EOF
7717 #define C_ALLOCA 1
7720 echo "$as_me:7720: checking whether \`alloca.c' needs Cray hooks" >&5
7721 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7722 if test "${ac_cv_os_cray+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 cat >conftest.$ac_ext <<_ACEOF
7726 #line 7726 "configure"
7727 #include "confdefs.h"
7728 #if defined(CRAY) && ! defined(CRAY2)
7729 webecray
7730 #else
7731 wenotbecray
7732 #endif
7734 _ACEOF
7735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736 egrep "webecray" >/dev/null 2>&1; then
7737 ac_cv_os_cray=yes
7738 else
7739 ac_cv_os_cray=no
7741 rm -f conftest*
7744 echo "$as_me:7744: result: $ac_cv_os_cray" >&5
7745 echo "${ECHO_T}$ac_cv_os_cray" >&6
7746 if test $ac_cv_os_cray = yes; then
7747 for ac_func in _getb67 GETB67 getb67; do
7748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7749 echo "$as_me:7749: checking for $ac_func" >&5
7750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7751 if eval "test \"\${$as_ac_var+set}\" = set"; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line 7755 "configure"
7756 #include "confdefs.h"
7757 /* System header to define __stub macros and hopefully few prototypes,
7758 which can conflict with char $ac_func (); below. */
7759 #include <assert.h>
7760 /* Override any gcc2 internal prototype to avoid an error. */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7766 char $ac_func ();
7767 char (*f) ();
7770 main ()
7772 /* The GNU C library defines this for functions which it implements
7773 to always fail with ENOSYS. Some functions are actually named
7774 something starting with __ and the normal name is an alias. */
7775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7776 choke me
7777 #else
7778 f = $ac_func;
7779 #endif
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:7786: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>&5
7788 ac_status=$?
7789 echo "$as_me:7789: \$? = $ac_status" >&5
7790 (exit $ac_status); } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (eval echo "$as_me:7792: \"$ac_try\"") >&5
7793 (eval $ac_try) 2>&5
7794 ac_status=$?
7795 echo "$as_me:7795: \$? = $ac_status" >&5
7796 (exit $ac_status); }; }; then
7797 eval "$as_ac_var=yes"
7798 else
7799 echo "$as_me: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7801 eval "$as_ac_var=no"
7803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7805 echo "$as_me:7805: result: `eval echo '${'$as_ac_var'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7807 if test `eval echo '${'$as_ac_var'}'` = yes; then
7809 cat >>confdefs.h <<EOF
7810 #define CRAY_STACKSEG_END $ac_func
7813 break
7816 done
7819 echo "$as_me:7819: checking stack direction for C alloca" >&5
7820 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7821 if test "${ac_cv_c_stack_direction+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 if test "$cross_compiling" = yes; then
7825 ac_cv_c_stack_direction=0
7826 else
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7831 find_stack_direction ()
7833 static char *addr = 0;
7834 auto char dummy;
7835 if (addr == 0)
7837 addr = &dummy;
7838 return find_stack_direction ();
7840 else
7841 return (&dummy > addr) ? 1 : -1;
7845 main ()
7847 exit (find_stack_direction () < 0);
7849 _ACEOF
7850 rm -f conftest$ac_exeext
7851 if { (eval echo "$as_me:7851: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7853 ac_status=$?
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 ac_cv_c_stack_direction=1
7862 else
7863 echo "$as_me: program exited with status $ac_status" >&5
7864 echo "$as_me: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7866 ac_cv_c_stack_direction=-1
7868 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:7871: result: $ac_cv_c_stack_direction" >&5
7872 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7874 cat >>confdefs.h <<EOF
7875 #define STACK_DIRECTION $ac_cv_c_stack_direction
7880 # fmod, logb, and frexp are found in -lm on most systems.
7881 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7883 echo "$as_me:7883: checking for sqrt in -lm" >&5
7884 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7885 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 ac_check_lib_save_LIBS=$LIBS
7889 LIBS="-lm $LIBS"
7890 cat >conftest.$ac_ext <<_ACEOF
7891 #line 7891 "configure"
7892 #include "confdefs.h"
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 #ifdef __cplusplus
7896 extern "C"
7897 #endif
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7900 char sqrt ();
7902 main ()
7904 sqrt ();
7906 return 0;
7908 _ACEOF
7909 rm -f conftest.$ac_objext conftest$ac_exeext
7910 if { (eval echo "$as_me:7910: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>&5
7912 ac_status=$?
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 (exit $ac_status); } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (eval echo "$as_me:7916: \"$ac_try\"") >&5
7917 (eval $ac_try) 2>&5
7918 ac_status=$?
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_lib_m_sqrt=yes
7922 else
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 ac_cv_lib_m_sqrt=no
7927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7928 LIBS=$ac_check_lib_save_LIBS
7930 echo "$as_me:7930: result: $ac_cv_lib_m_sqrt" >&5
7931 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7932 if test $ac_cv_lib_m_sqrt = yes; then
7933 cat >>confdefs.h <<EOF
7934 #define HAVE_LIBM 1
7937 LIBS="-lm $LIBS"
7941 # Check for mail-locking functions in a "mail" library
7943 echo "$as_me:7943: checking for maillock in -lmail" >&5
7944 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7945 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 ac_check_lib_save_LIBS=$LIBS
7949 LIBS="-lmail $LIBS"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line 7951 "configure"
7952 #include "confdefs.h"
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 #ifdef __cplusplus
7956 extern "C"
7957 #endif
7958 /* We use char because int might match the return type of a gcc2
7959 builtin and then its argument prototype would still apply. */
7960 char maillock ();
7962 main ()
7964 maillock ();
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:7970: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7972 ac_status=$?
7973 echo "$as_me:7973: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (eval echo "$as_me:7976: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_cv_lib_mail_maillock=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 ac_cv_lib_mail_maillock=no
7987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7990 echo "$as_me:7990: result: $ac_cv_lib_mail_maillock" >&5
7991 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7992 if test $ac_cv_lib_mail_maillock = yes; then
7993 cat >>confdefs.h <<EOF
7994 #define HAVE_LIBMAIL 1
7997 LIBS="-lmail $LIBS"
8001 echo "$as_me:8001: checking for maillock in -llockfile" >&5
8002 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8003 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 ac_check_lib_save_LIBS=$LIBS
8007 LIBS="-llockfile $LIBS"
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line 8009 "configure"
8010 #include "confdefs.h"
8012 /* Override any gcc2 internal prototype to avoid an error. */
8013 #ifdef __cplusplus
8014 extern "C"
8015 #endif
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char maillock ();
8020 main ()
8022 maillock ();
8024 return 0;
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (eval echo "$as_me:8028: \"$ac_link\"") >&5
8029 (eval $ac_link) 2>&5
8030 ac_status=$?
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest$ac_exeext'
8034 { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_cv_lib_lockfile_maillock=yes
8040 else
8041 echo "$as_me: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 ac_cv_lib_lockfile_maillock=no
8045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8046 LIBS=$ac_check_lib_save_LIBS
8048 echo "$as_me:8048: result: $ac_cv_lib_lockfile_maillock" >&5
8049 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8050 if test $ac_cv_lib_lockfile_maillock = yes; then
8051 cat >>confdefs.h <<EOF
8052 #define HAVE_LIBLOCKFILE 1
8055 LIBS="-llockfile $LIBS"
8059 # If we have the shared liblockfile, assume we must use it for mail
8060 # locking (e.g. Debian). If we couldn't link against liblockfile
8061 # (no liblockfile.a installed), ensure that we don't need to.
8062 if test "$ac_cv_lib_lockfile_maillock" = no; then
8063 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8064 set dummy liblockfile.so; ac_word=$2
8065 echo "$as_me:8065: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8067 if test "${ac_cv_prog_liblockfile+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070 if test -n "$liblockfile"; then
8071 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8072 else
8073 ac_save_IFS=$IFS; IFS=$ac_path_separator
8074 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS=$ac_save_IFS
8077 test -z "$ac_dir" && ac_dir=.
8078 $as_executable_p "$ac_dir/$ac_word" || continue
8079 ac_cv_prog_liblockfile="yes"
8080 echo "$as_me:8080: found $ac_dir/$ac_word" >&5
8081 break
8082 done
8084 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8087 liblockfile=$ac_cv_prog_liblockfile
8088 if test -n "$liblockfile"; then
8089 echo "$as_me:8089: result: $liblockfile" >&5
8090 echo "${ECHO_T}$liblockfile" >&6
8091 else
8092 echo "$as_me:8092: result: no" >&5
8093 echo "${ECHO_T}no" >&6
8096 if test $ac_cv_prog_liblockfile = yes; then
8097 { { echo "$as_me:8097: error: Shared liblockfile found but can't link against it.
8098 This probably means that movemail could lose mail.
8099 There may be a \`development' package to install containing liblockfile." >&5
8100 echo "$as_me: error: Shared liblockfile found but can't link against it.
8101 This probably means that movemail could lose mail.
8102 There may be a \`development' package to install containing liblockfile." >&2;}
8103 { (exit 1); exit 1; }; }
8104 else cat >>confdefs.h <<\EOF
8105 #define LIBMAIL -llockfile
8109 else :
8112 for ac_func in touchlock
8114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8115 echo "$as_me:8115: checking for $ac_func" >&5
8116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8117 if eval "test \"\${$as_ac_var+set}\" = set"; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line 8121 "configure"
8122 #include "confdefs.h"
8123 /* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char $ac_func (); below. */
8125 #include <assert.h>
8126 /* Override any gcc2 internal prototype to avoid an error. */
8127 #ifdef __cplusplus
8128 extern "C"
8129 #endif
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8132 char $ac_func ();
8133 char (*f) ();
8136 main ()
8138 /* The GNU C library defines this for functions which it implements
8139 to always fail with ENOSYS. Some functions are actually named
8140 something starting with __ and the normal name is an alias. */
8141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8142 choke me
8143 #else
8144 f = $ac_func;
8145 #endif
8148 return 0;
8150 _ACEOF
8151 rm -f conftest.$ac_objext conftest$ac_exeext
8152 if { (eval echo "$as_me:8152: \"$ac_link\"") >&5
8153 (eval $ac_link) 2>&5
8154 ac_status=$?
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:8158: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_var=yes"
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 eval "$as_ac_var=no"
8169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8171 echo "$as_me:8171: result: `eval echo '${'$as_ac_var'}'`" >&5
8172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8173 if test `eval echo '${'$as_ac_var'}'` = yes; then
8174 cat >>confdefs.h <<EOF
8175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8179 done
8181 for ac_header in maillock.h
8183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8184 echo "$as_me:8184: checking for $ac_header" >&5
8185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8192 #include <$ac_header>
8193 _ACEOF
8194 if { (eval echo "$as_me:8194: \"$ac_cpp conftest.$ac_ext\"") >&5
8195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8196 ac_status=$?
8197 egrep -v '^ *\+' conftest.er1 >conftest.err
8198 rm -f conftest.er1
8199 cat conftest.err >&5
8200 echo "$as_me:8200: \$? = $ac_status" >&5
8201 (exit $ac_status); } >/dev/null; then
8202 if test -s conftest.err; then
8203 ac_cpp_err=$ac_c_preproc_warn_flag
8204 else
8205 ac_cpp_err=
8207 else
8208 ac_cpp_err=yes
8210 if test -z "$ac_cpp_err"; then
8211 eval "$as_ac_Header=yes"
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8215 eval "$as_ac_Header=no"
8217 rm -f conftest.err conftest.$ac_ext
8219 echo "$as_me:8219: result: `eval echo '${'$as_ac_Header'}'`" >&5
8220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8222 cat >>confdefs.h <<EOF
8223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 done
8229 for ac_func in gethostname getdomainname dup2 \
8230 rename closedir mkdir rmdir sysinfo \
8231 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8232 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8233 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8234 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8235 gai_strerror mkstemp
8237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8238 echo "$as_me:8238: checking for $ac_func" >&5
8239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_var+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 #line 8244 "configure"
8245 #include "confdefs.h"
8246 /* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func (); below. */
8248 #include <assert.h>
8249 /* Override any gcc2 internal prototype to avoid an error. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 #endif
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8255 char $ac_func ();
8256 char (*f) ();
8259 main ()
8261 /* The GNU C library defines this for functions which it implements
8262 to always fail with ENOSYS. Some functions are actually named
8263 something starting with __ and the normal name is an alias. */
8264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8265 choke me
8266 #else
8267 f = $ac_func;
8268 #endif
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:8275: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>&5
8277 ac_status=$?
8278 echo "$as_me:8278: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:8281: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 eval "$as_ac_var=yes"
8287 else
8288 echo "$as_me: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8290 eval "$as_ac_var=no"
8292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8294 echo "$as_me:8294: result: `eval echo '${'$as_ac_var'}'`" >&5
8295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8296 if test `eval echo '${'$as_ac_var'}'` = yes; then
8297 cat >>confdefs.h <<EOF
8298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302 done
8304 for ac_header in sys/time.h unistd.h
8306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 echo "$as_me:8307: checking for $ac_header" >&5
8308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line 8313 "configure"
8314 #include "confdefs.h"
8315 #include <$ac_header>
8316 _ACEOF
8317 if { (eval echo "$as_me:8317: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 ac_status=$?
8320 egrep -v '^ *\+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:8323: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev/null; then
8325 if test -s conftest.err; then
8326 ac_cpp_err=$ac_c_preproc_warn_flag
8327 else
8328 ac_cpp_err=
8330 else
8331 ac_cpp_err=yes
8333 if test -z "$ac_cpp_err"; then
8334 eval "$as_ac_Header=yes"
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8338 eval "$as_ac_Header=no"
8340 rm -f conftest.err conftest.$ac_ext
8342 echo "$as_me:8342: result: `eval echo '${'$as_ac_Header'}'`" >&5
8343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8345 cat >>confdefs.h <<EOF
8346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8350 done
8352 for ac_func in alarm
8354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8355 echo "$as_me:8355: checking for $ac_func" >&5
8356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8357 if eval "test \"\${$as_ac_var+set}\" = set"; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line 8361 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func (); below. */
8365 #include <assert.h>
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8372 char $ac_func ();
8373 char (*f) ();
8376 main ()
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8382 choke me
8383 #else
8384 f = $ac_func;
8385 #endif
8388 return 0;
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:8392: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8394 ac_status=$?
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:8398: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 eval "$as_ac_var=yes"
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8407 eval "$as_ac_var=no"
8409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8411 echo "$as_me:8411: result: `eval echo '${'$as_ac_var'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8413 if test `eval echo '${'$as_ac_var'}'` = yes; then
8414 cat >>confdefs.h <<EOF
8415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8419 done
8421 echo "$as_me:8421: checking for working mktime" >&5
8422 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8423 if test "${ac_cv_func_working_mktime+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426 if test "$cross_compiling" = yes; then
8427 ac_cv_func_working_mktime=no
8428 else
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line 8430 "configure"
8431 #include "confdefs.h"
8432 /* Test program from Paul Eggert and Tony Leneis. */
8433 #if TIME_WITH_SYS_TIME
8434 # include <sys/time.h>
8435 # include <time.h>
8436 #else
8437 # if HAVE_SYS_TIME_H
8438 # include <sys/time.h>
8439 # else
8440 # include <time.h>
8441 # endif
8442 #endif
8444 #if HAVE_UNISTD_H
8445 # include <unistd.h>
8446 #endif
8448 #if !HAVE_ALARM
8449 # define alarm(X) /* empty */
8450 #endif
8452 /* Work around redefinition to rpl_putenv by other config tests. */
8453 #undef putenv
8455 static time_t time_t_max;
8457 /* Values we'll use to set the TZ environment variable. */
8458 static const char *const tz_strings[] = {
8459 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8460 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8462 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8464 /* Fail if mktime fails to convert a date in the spring-forward gap.
8465 Based on a problem report from Andreas Jaeger. */
8466 static void
8467 spring_forward_gap ()
8469 /* glibc (up to about 1998-10-07) failed this test. */
8470 struct tm tm;
8472 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8473 instead of "TZ=America/Vancouver" in order to detect the bug even
8474 on systems that don't support the Olson extension, or don't have the
8475 full zoneinfo tables installed. */
8476 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8478 tm.tm_year = 98;
8479 tm.tm_mon = 3;
8480 tm.tm_mday = 5;
8481 tm.tm_hour = 2;
8482 tm.tm_min = 0;
8483 tm.tm_sec = 0;
8484 tm.tm_isdst = -1;
8485 if (mktime (&tm) == (time_t)-1)
8486 exit (1);
8489 static void
8490 mktime_test (now)
8491 time_t now;
8493 struct tm *lt;
8494 if ((lt = localtime (&now)) && mktime (lt) != now)
8495 exit (1);
8496 now = time_t_max - now;
8497 if ((lt = localtime (&now)) && mktime (lt) != now)
8498 exit (1);
8501 static void
8502 irix_6_4_bug ()
8504 /* Based on code from Ariel Faigon. */
8505 struct tm tm;
8506 tm.tm_year = 96;
8507 tm.tm_mon = 3;
8508 tm.tm_mday = 0;
8509 tm.tm_hour = 0;
8510 tm.tm_min = 0;
8511 tm.tm_sec = 0;
8512 tm.tm_isdst = -1;
8513 mktime (&tm);
8514 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8515 exit (1);
8518 static void
8519 bigtime_test (j)
8520 int j;
8522 struct tm tm;
8523 time_t now;
8524 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8525 now = mktime (&tm);
8526 if (now != (time_t) -1)
8528 struct tm *lt = localtime (&now);
8529 if (! (lt
8530 && lt->tm_year == tm.tm_year
8531 && lt->tm_mon == tm.tm_mon
8532 && lt->tm_mday == tm.tm_mday
8533 && lt->tm_hour == tm.tm_hour
8534 && lt->tm_min == tm.tm_min
8535 && lt->tm_sec == tm.tm_sec
8536 && lt->tm_yday == tm.tm_yday
8537 && lt->tm_wday == tm.tm_wday
8538 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8539 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8540 exit (1);
8545 main ()
8547 time_t t, delta;
8548 int i, j;
8550 /* This test makes some buggy mktime implementations loop.
8551 Give up after 60 seconds; a mktime slower than that
8552 isn't worth using anyway. */
8553 alarm (60);
8555 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8556 continue;
8557 time_t_max--;
8558 delta = time_t_max / 997; /* a suitable prime number */
8559 for (i = 0; i < N_STRINGS; i++)
8561 if (tz_strings[i])
8562 putenv (tz_strings[i]);
8564 for (t = 0; t <= time_t_max - delta; t += delta)
8565 mktime_test (t);
8566 mktime_test ((time_t) 60 * 60);
8567 mktime_test ((time_t) 60 * 60 * 24);
8569 for (j = 1; 0 < j; j *= 2)
8570 bigtime_test (j);
8571 bigtime_test (j - 1);
8573 irix_6_4_bug ();
8574 spring_forward_gap ();
8575 exit (0);
8577 _ACEOF
8578 rm -f conftest$ac_exeext
8579 if { (eval echo "$as_me:8579: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>&5
8581 ac_status=$?
8582 echo "$as_me:8582: \$? = $ac_status" >&5
8583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8584 { (eval echo "$as_me:8584: \"$ac_try\"") >&5
8585 (eval $ac_try) 2>&5
8586 ac_status=$?
8587 echo "$as_me:8587: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_cv_func_working_mktime=yes
8590 else
8591 echo "$as_me: program exited with status $ac_status" >&5
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8594 ac_cv_func_working_mktime=no
8596 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8599 echo "$as_me:8599: result: $ac_cv_func_working_mktime" >&5
8600 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8601 if test $ac_cv_func_working_mktime = no; then
8602 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8605 if test "$ac_cv_func_working_mktime" = no; then
8606 cat >>confdefs.h <<\EOF
8607 #define BROKEN_MKTIME 1
8612 ac_have_func=no # yes means we've found a way to get the load average.
8614 ac_save_LIBS=$LIBS
8616 # Check for getloadavg, but be sure not to touch the cache variable.
8617 (echo "$as_me:8617: checking for getloadavg" >&5
8618 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8619 if test "${ac_cv_func_getloadavg+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 #line 8623 "configure"
8624 #include "confdefs.h"
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char getloadavg (); below. */
8627 #include <assert.h>
8628 /* Override any gcc2 internal prototype to avoid an error. */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634 char getloadavg ();
8635 char (*f) ();
8638 main ()
8640 /* The GNU C library defines this for functions which it implements
8641 to always fail with ENOSYS. Some functions are actually named
8642 something starting with __ and the normal name is an alias. */
8643 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8644 choke me
8645 #else
8646 f = getloadavg;
8647 #endif
8650 return 0;
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:8654: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:8657: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:8660: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_func_getloadavg=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8669 ac_cv_func_getloadavg=no
8671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 echo "$as_me:8673: result: $ac_cv_func_getloadavg" >&5
8674 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8675 if test $ac_cv_func_getloadavg = yes; then
8676 exit 0
8677 else
8678 exit 1
8680 ) && ac_have_func=yes
8682 # On HPUX9, an unprivileged user can get load averages through this function.
8684 for ac_func in pstat_getdynamic
8686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:8687: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line 8693 "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char $ac_func (); below. */
8697 #include <assert.h>
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char $ac_func ();
8705 char (*f) ();
8708 main ()
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8714 choke me
8715 #else
8716 f = $ac_func;
8717 #endif
8720 return 0;
8722 _ACEOF
8723 rm -f conftest.$ac_objext conftest$ac_exeext
8724 if { (eval echo "$as_me:8724: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8726 ac_status=$?
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:8730: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:8733: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 eval "$as_ac_var=yes"
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8743 echo "$as_me:8743: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<EOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8751 done
8753 # Solaris has libkstat which does not require root.
8755 echo "$as_me:8755: checking for kstat_open in -lkstat" >&5
8756 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8757 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 ac_check_lib_save_LIBS=$LIBS
8761 LIBS="-lkstat $LIBS"
8762 cat >conftest.$ac_ext <<_ACEOF
8763 #line 8763 "configure"
8764 #include "confdefs.h"
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char kstat_open ();
8774 main ()
8776 kstat_open ();
8778 return 0;
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:8782: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>&5
8784 ac_status=$?
8785 echo "$as_me:8785: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -s conftest$ac_exeext'
8788 { (eval echo "$as_me:8788: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:8791: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_lib_kstat_kstat_open=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8797 ac_cv_lib_kstat_kstat_open=no
8799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8800 LIBS=$ac_check_lib_save_LIBS
8802 echo "$as_me:8802: result: $ac_cv_lib_kstat_kstat_open" >&5
8803 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8804 if test $ac_cv_lib_kstat_kstat_open = yes; then
8805 cat >>confdefs.h <<EOF
8806 #define HAVE_LIBKSTAT 1
8809 LIBS="-lkstat $LIBS"
8813 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
8815 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8816 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8817 # to get the right answer into the cache.
8818 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8819 if test $ac_have_func = no; then
8820 echo "$as_me:8820: checking for elf_begin in -lelf" >&5
8821 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8822 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-lelf $LIBS"
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line 8828 "configure"
8829 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char elf_begin ();
8839 main ()
8841 elf_begin ();
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:8847: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>&5
8849 ac_status=$?
8850 echo "$as_me:8850: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:8853: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:8856: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_cv_lib_elf_elf_begin=yes
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 ac_cv_lib_elf_elf_begin=no
8864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8867 echo "$as_me:8867: result: $ac_cv_lib_elf_elf_begin" >&5
8868 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8869 if test $ac_cv_lib_elf_elf_begin = yes; then
8870 LIBS="-lelf $LIBS"
8874 if test $ac_have_func = no; then
8875 echo "$as_me:8875: checking for kvm_open in -lkvm" >&5
8876 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8877 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880 ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-lkvm $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line 8883 "configure"
8884 #include "confdefs.h"
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8892 char kvm_open ();
8894 main ()
8896 kvm_open ();
8898 return 0;
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:8902: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>&5
8904 ac_status=$?
8905 echo "$as_me:8905: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:8908: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:8911: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_kvm_kvm_open=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8917 ac_cv_lib_kvm_kvm_open=no
8919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8920 LIBS=$ac_check_lib_save_LIBS
8922 echo "$as_me:8922: result: $ac_cv_lib_kvm_kvm_open" >&5
8923 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8924 if test $ac_cv_lib_kvm_kvm_open = yes; then
8925 LIBS="-lkvm $LIBS"
8928 # Check for the 4.4BSD definition of getloadavg.
8929 echo "$as_me:8929: checking for getloadavg in -lutil" >&5
8930 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8931 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934 ac_check_lib_save_LIBS=$LIBS
8935 LIBS="-lutil $LIBS"
8936 cat >conftest.$ac_ext <<_ACEOF
8937 #line 8937 "configure"
8938 #include "confdefs.h"
8940 /* Override any gcc2 internal prototype to avoid an error. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946 char getloadavg ();
8948 main ()
8950 getloadavg ();
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:8956: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>&5
8958 ac_status=$?
8959 echo "$as_me:8959: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:8962: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:8965: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_cv_lib_util_getloadavg=yes
8968 else
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 ac_cv_lib_util_getloadavg=no
8973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8974 LIBS=$ac_check_lib_save_LIBS
8976 echo "$as_me:8976: result: $ac_cv_lib_util_getloadavg" >&5
8977 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8978 if test $ac_cv_lib_util_getloadavg = yes; then
8979 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8984 if test $ac_have_func = no; then
8985 # There is a commonly available library for RS/6000 AIX.
8986 # Since it is not a standard part of AIX, it might be installed locally.
8987 ac_getloadavg_LIBS=$LIBS
8988 LIBS="-L/usr/local/lib $LIBS"
8989 echo "$as_me:8989: checking for getloadavg in -lgetloadavg" >&5
8990 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8991 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 ac_check_lib_save_LIBS=$LIBS
8995 LIBS="-lgetloadavg $LIBS"
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line 8997 "configure"
8998 #include "confdefs.h"
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 /* We use char because int might match the return type of a gcc2
9005 builtin and then its argument prototype would still apply. */
9006 char getloadavg ();
9008 main ()
9010 getloadavg ();
9012 return 0;
9014 _ACEOF
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:9016: \"$ac_link\"") >&5
9017 (eval $ac_link) 2>&5
9018 ac_status=$?
9019 echo "$as_me:9019: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:9022: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:9025: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_lib_getloadavg_getloadavg=yes
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 ac_cv_lib_getloadavg_getloadavg=no
9033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 echo "$as_me:9036: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9037 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9038 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9039 LIBS="-lgetloadavg $LIBS"
9040 else
9041 LIBS=$ac_getloadavg_LIBS
9046 # Make sure it is really in the library, if we think we found it,
9047 # otherwise set up the replacement function.
9049 for ac_func in getloadavg
9051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9052 echo "$as_me:9052: checking for $ac_func" >&5
9053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_var+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line 9058 "configure"
9059 #include "confdefs.h"
9060 /* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func (); below. */
9062 #include <assert.h>
9063 /* Override any gcc2 internal prototype to avoid an error. */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 /* We use char because int might match the return type of a gcc2
9068 builtin and then its argument prototype would still apply. */
9069 char $ac_func ();
9070 char (*f) ();
9073 main ()
9075 /* The GNU C library defines this for functions which it implements
9076 to always fail with ENOSYS. Some functions are actually named
9077 something starting with __ and the normal name is an alias. */
9078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9079 choke me
9080 #else
9081 f = $ac_func;
9082 #endif
9085 return 0;
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:9089: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>&5
9091 ac_status=$?
9092 echo "$as_me:9092: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:9095: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:9098: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 eval "$as_ac_var=yes"
9101 else
9102 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9104 eval "$as_ac_var=no"
9106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9108 echo "$as_me:9108: result: `eval echo '${'$as_ac_var'}'`" >&5
9109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9110 if test `eval echo '${'$as_ac_var'}'` = yes; then
9111 cat >>confdefs.h <<EOF
9112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 else
9116 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9118 cat >>confdefs.h <<\EOF
9119 #define C_GETLOADAVG 1
9122 # Figure out what our getloadavg.c needs.
9123 ac_have_func=no
9124 echo "$as_me:9124: checking for sys/dg_sys_info.h" >&5
9125 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9126 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 cat >conftest.$ac_ext <<_ACEOF
9130 #line 9130 "configure"
9131 #include "confdefs.h"
9132 #include <sys/dg_sys_info.h>
9133 _ACEOF
9134 if { (eval echo "$as_me:9134: \"$ac_cpp conftest.$ac_ext\"") >&5
9135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9136 ac_status=$?
9137 egrep -v '^ *\+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:9140: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev/null; then
9142 if test -s conftest.err; then
9143 ac_cpp_err=$ac_c_preproc_warn_flag
9144 else
9145 ac_cpp_err=
9147 else
9148 ac_cpp_err=yes
9150 if test -z "$ac_cpp_err"; then
9151 ac_cv_header_sys_dg_sys_info_h=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9155 ac_cv_header_sys_dg_sys_info_h=no
9157 rm -f conftest.err conftest.$ac_ext
9159 echo "$as_me:9159: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9160 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9161 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9162 ac_have_func=yes
9164 cat >>confdefs.h <<\EOF
9165 #define DGUX 1
9168 echo "$as_me:9168: checking for dg_sys_info in -ldgc" >&5
9169 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9170 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-ldgc $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 #line 9176 "configure"
9177 #include "confdefs.h"
9179 /* Override any gcc2 internal prototype to avoid an error. */
9180 #ifdef __cplusplus
9181 extern "C"
9182 #endif
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9185 char dg_sys_info ();
9187 main ()
9189 dg_sys_info ();
9191 return 0;
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (eval echo "$as_me:9195: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>&5
9197 ac_status=$?
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest$ac_exeext'
9201 { (eval echo "$as_me:9201: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:9204: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_cv_lib_dgc_dg_sys_info=yes
9207 else
9208 echo "$as_me: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9210 ac_cv_lib_dgc_dg_sys_info=no
9212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 echo "$as_me:9215: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9217 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9218 cat >>confdefs.h <<EOF
9219 #define HAVE_LIBDGC 1
9222 LIBS="-ldgc $LIBS"
9228 echo "$as_me:9228: checking for locale.h" >&5
9229 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9230 if test "${ac_cv_header_locale_h+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line 9234 "configure"
9235 #include "confdefs.h"
9236 #include <locale.h>
9237 _ACEOF
9238 if { (eval echo "$as_me:9238: \"$ac_cpp conftest.$ac_ext\"") >&5
9239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9240 ac_status=$?
9241 egrep -v '^ *\+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:9244: \$? = $ac_status" >&5
9245 (exit $ac_status); } >/dev/null; then
9246 if test -s conftest.err; then
9247 ac_cpp_err=$ac_c_preproc_warn_flag
9248 else
9249 ac_cpp_err=
9251 else
9252 ac_cpp_err=yes
9254 if test -z "$ac_cpp_err"; then
9255 ac_cv_header_locale_h=yes
9256 else
9257 echo "$as_me: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 ac_cv_header_locale_h=no
9261 rm -f conftest.err conftest.$ac_ext
9263 echo "$as_me:9263: result: $ac_cv_header_locale_h" >&5
9264 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9266 for ac_func in setlocale
9268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 echo "$as_me:9269: checking for $ac_func" >&5
9270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_var+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 cat >conftest.$ac_ext <<_ACEOF
9275 #line 9275 "configure"
9276 #include "confdefs.h"
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below. */
9279 #include <assert.h>
9280 /* Override any gcc2 internal prototype to avoid an error. */
9281 #ifdef __cplusplus
9282 extern "C"
9283 #endif
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9286 char $ac_func ();
9287 char (*f) ();
9290 main ()
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9296 choke me
9297 #else
9298 f = $ac_func;
9299 #endif
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:9306: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>&5
9308 ac_status=$?
9309 echo "$as_me:9309: \$? = $ac_status" >&5
9310 (exit $ac_status); } &&
9311 { ac_try='test -s conftest$ac_exeext'
9312 { (eval echo "$as_me:9312: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:9315: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 eval "$as_ac_var=yes"
9318 else
9319 echo "$as_me: failed program was:" >&5
9320 cat conftest.$ac_ext >&5
9321 eval "$as_ac_var=no"
9323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9325 echo "$as_me:9325: result: `eval echo '${'$as_ac_var'}'`" >&5
9326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9327 if test `eval echo '${'$as_ac_var'}'` = yes; then
9328 cat >>confdefs.h <<EOF
9329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9333 done
9335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9337 # Irix 4.0.5F has the header but not the library.
9338 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9339 ac_have_func=yes
9341 cat >>confdefs.h <<\EOF
9342 #define SVR4 1
9347 if test $ac_have_func = no; then
9348 echo "$as_me:9348: checking for inq_stats/cpustats.h" >&5
9349 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9350 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line 9354 "configure"
9355 #include "confdefs.h"
9356 #include <inq_stats/cpustats.h>
9357 _ACEOF
9358 if { (eval echo "$as_me:9358: \"$ac_cpp conftest.$ac_ext\"") >&5
9359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9360 ac_status=$?
9361 egrep -v '^ *\+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:9364: \$? = $ac_status" >&5
9365 (exit $ac_status); } >/dev/null; then
9366 if test -s conftest.err; then
9367 ac_cpp_err=$ac_c_preproc_warn_flag
9368 else
9369 ac_cpp_err=
9371 else
9372 ac_cpp_err=yes
9374 if test -z "$ac_cpp_err"; then
9375 ac_cv_header_inq_stats_cpustats_h=yes
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 cat conftest.$ac_ext >&5
9379 ac_cv_header_inq_stats_cpustats_h=no
9381 rm -f conftest.err conftest.$ac_ext
9383 echo "$as_me:9383: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9384 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9385 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9386 ac_have_func=yes
9388 cat >>confdefs.h <<\EOF
9389 #define UMAX 1
9392 cat >>confdefs.h <<\EOF
9393 #define UMAX4_3 1
9400 if test $ac_have_func = no; then
9401 echo "$as_me:9401: checking for sys/cpustats.h" >&5
9402 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9403 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9409 #include <sys/cpustats.h>
9410 _ACEOF
9411 if { (eval echo "$as_me:9411: \"$ac_cpp conftest.$ac_ext\"") >&5
9412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9413 ac_status=$?
9414 egrep -v '^ *\+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:9417: \$? = $ac_status" >&5
9418 (exit $ac_status); } >/dev/null; then
9419 if test -s conftest.err; then
9420 ac_cpp_err=$ac_c_preproc_warn_flag
9421 else
9422 ac_cpp_err=
9424 else
9425 ac_cpp_err=yes
9427 if test -z "$ac_cpp_err"; then
9428 ac_cv_header_sys_cpustats_h=yes
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 ac_cv_header_sys_cpustats_h=no
9434 rm -f conftest.err conftest.$ac_ext
9436 echo "$as_me:9436: result: $ac_cv_header_sys_cpustats_h" >&5
9437 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9438 if test $ac_cv_header_sys_cpustats_h = yes; then
9439 ac_have_func=yes; cat >>confdefs.h <<\EOF
9440 #define UMAX 1
9447 if test $ac_have_func = no; then
9449 for ac_header in mach/mach.h
9451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 echo "$as_me:9452: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line 9458 "configure"
9459 #include "confdefs.h"
9460 #include <$ac_header>
9461 _ACEOF
9462 if { (eval echo "$as_me:9462: \"$ac_cpp conftest.$ac_ext\"") >&5
9463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9464 ac_status=$?
9465 egrep -v '^ *\+' conftest.er1 >conftest.err
9466 rm -f conftest.er1
9467 cat conftest.err >&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); } >/dev/null; then
9470 if test -s conftest.err; then
9471 ac_cpp_err=$ac_c_preproc_warn_flag
9472 else
9473 ac_cpp_err=
9475 else
9476 ac_cpp_err=yes
9478 if test -z "$ac_cpp_err"; then
9479 eval "$as_ac_Header=yes"
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 eval "$as_ac_Header=no"
9485 rm -f conftest.err conftest.$ac_ext
9487 echo "$as_me:9487: result: `eval echo '${'$as_ac_Header'}'`" >&5
9488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9490 cat >>confdefs.h <<EOF
9491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9495 done
9499 for ac_header in nlist.h
9501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9502 echo "$as_me:9502: checking for $ac_header" >&5
9503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line 9508 "configure"
9509 #include "confdefs.h"
9510 #include <$ac_header>
9511 _ACEOF
9512 if { (eval echo "$as_me:9512: \"$ac_cpp conftest.$ac_ext\"") >&5
9513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9514 ac_status=$?
9515 egrep -v '^ *\+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:9518: \$? = $ac_status" >&5
9519 (exit $ac_status); } >/dev/null; then
9520 if test -s conftest.err; then
9521 ac_cpp_err=$ac_c_preproc_warn_flag
9522 else
9523 ac_cpp_err=
9525 else
9526 ac_cpp_err=yes
9528 if test -z "$ac_cpp_err"; then
9529 eval "$as_ac_Header=yes"
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 eval "$as_ac_Header=no"
9535 rm -f conftest.err conftest.$ac_ext
9537 echo "$as_me:9537: result: `eval echo '${'$as_ac_Header'}'`" >&5
9538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9540 cat >>confdefs.h <<EOF
9541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9543 echo "$as_me:9543: checking for struct nlist.n_un.n_name" >&5
9544 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9545 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line 9549 "configure"
9550 #include "confdefs.h"
9551 #include <nlist.h>
9554 main ()
9556 static struct nlist ac_aggr;
9557 if (ac_aggr.n_un.n_name)
9558 return 0;
9560 return 0;
9562 _ACEOF
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:9564: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9566 ac_status=$?
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest.$ac_objext'
9570 { (eval echo "$as_me:9570: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:9573: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_member_struct_nlist_n_un_n_name=yes
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_member_struct_nlist_n_un_n_name=no
9581 rm -f conftest.$ac_objext conftest.$ac_ext
9583 echo "$as_me:9583: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9584 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9585 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9587 cat >>confdefs.h <<EOF
9588 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9591 cat >>confdefs.h <<\EOF
9592 #define NLIST_NAME_UNION 1
9598 done
9601 done
9603 # Some definitions of getloadavg require that the program be installed setgid.
9604 echo "$as_me:9604: checking whether getloadavg requires setgid" >&5
9605 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9606 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 cat >conftest.$ac_ext <<_ACEOF
9610 #line 9610 "configure"
9611 #include "confdefs.h"
9612 #include "$srcdir/getloadavg.c"
9613 #ifdef LDAV_PRIVILEGED
9614 Yowza Am I SETGID yet
9615 #endif
9616 _ACEOF
9617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9618 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9619 ac_cv_func_getloadavg_setgid=yes
9620 else
9621 ac_cv_func_getloadavg_setgid=no
9623 rm -f conftest*
9626 echo "$as_me:9626: result: $ac_cv_func_getloadavg_setgid" >&5
9627 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9628 if test $ac_cv_func_getloadavg_setgid = yes; then
9629 NEED_SETGID=true
9631 cat >>confdefs.h <<\EOF
9632 #define GETLOADAVG_PRIVILEGED 1
9635 else
9636 NEED_SETGID=false
9639 if test $ac_cv_func_getloadavg_setgid = yes; then
9640 echo "$as_me:9640: checking group of /dev/kmem" >&5
9641 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9642 if test "${ac_cv_group_kmem+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9646 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9647 # If we got an error (system does not support symlinks), try without -L.
9648 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9649 ac_cv_group_kmem=`echo $ac_ls_output \
9650 | sed -ne 's/[ ][ ]*/ /g;
9651 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9652 / /s/.* //;p;'`
9655 echo "$as_me:9655: result: $ac_cv_group_kmem" >&5
9656 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9657 KMEM_GROUP=$ac_cv_group_kmem
9659 if test "x$ac_save_LIBS" = x; then
9660 GETLOADAVG_LIBS=$LIBS
9661 else
9662 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9664 LIBS=$ac_save_LIBS
9666 echo "$as_me:9666: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9667 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9668 if test "${ac_cv_sys_largefile_source+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 while :; do
9672 ac_cv_sys_largefile_source=no
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line 9674 "configure"
9675 #include "confdefs.h"
9676 #include <stdio.h>
9678 main ()
9680 return !fseeko;
9682 return 0;
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (eval echo "$as_me:9686: \"$ac_compile\"") >&5
9687 (eval $ac_compile) 2>&5
9688 ac_status=$?
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -s conftest.$ac_objext'
9692 { (eval echo "$as_me:9692: \"$ac_try\"") >&5
9693 (eval $ac_try) 2>&5
9694 ac_status=$?
9695 echo "$as_me:9695: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 break
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9703 cat >conftest.$ac_ext <<_ACEOF
9704 #line 9704 "configure"
9705 #include "confdefs.h"
9706 #define _LARGEFILE_SOURCE 1
9707 #include <stdio.h>
9709 main ()
9711 return !fseeko;
9713 return 0;
9715 _ACEOF
9716 rm -f conftest.$ac_objext
9717 if { (eval echo "$as_me:9717: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9719 ac_status=$?
9720 echo "$as_me:9720: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:9723: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:9726: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_sys_largefile_source=1; break
9729 else
9730 echo "$as_me: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 rm -f conftest.$ac_objext conftest.$ac_ext
9734 break
9735 done
9737 echo "$as_me:9737: result: $ac_cv_sys_largefile_source" >&5
9738 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9739 if test "$ac_cv_sys_largefile_source" != no; then
9741 cat >>confdefs.h <<EOF
9742 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9746 rm -f conftest*
9748 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9749 # in glibc 2.1.3, but that breaks too many other things.
9750 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9751 echo "$as_me:9751: checking for fseeko" >&5
9752 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9753 if test "${ac_cv_func_fseeko+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756 cat >conftest.$ac_ext <<_ACEOF
9757 #line 9757 "configure"
9758 #include "confdefs.h"
9759 #include <stdio.h>
9761 main ()
9763 return fseeko && fseeko (stdin, 0, 0);
9765 return 0;
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (eval echo "$as_me:9769: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>&5
9771 ac_status=$?
9772 echo "$as_me:9772: \$? = $ac_status" >&5
9773 (exit $ac_status); } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (eval echo "$as_me:9775: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:9778: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_func_fseeko=yes
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 ac_cv_func_fseeko=no
9786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788 echo "$as_me:9788: result: $ac_cv_func_fseeko" >&5
9789 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9790 if test $ac_cv_func_fseeko = yes; then
9792 cat >>confdefs.h <<\EOF
9793 #define HAVE_FSEEKO 1
9798 # UNIX98 PTYs.
9800 for ac_func in grantpt
9802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9803 echo "$as_me:9803: checking for $ac_func" >&5
9804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9805 if eval "test \"\${$as_ac_var+set}\" = set"; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 cat >conftest.$ac_ext <<_ACEOF
9809 #line 9809 "configure"
9810 #include "confdefs.h"
9811 /* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char $ac_func (); below. */
9813 #include <assert.h>
9814 /* Override any gcc2 internal prototype to avoid an error. */
9815 #ifdef __cplusplus
9816 extern "C"
9817 #endif
9818 /* We use char because int might match the return type of a gcc2
9819 builtin and then its argument prototype would still apply. */
9820 char $ac_func ();
9821 char (*f) ();
9824 main ()
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9830 choke me
9831 #else
9832 f = $ac_func;
9833 #endif
9836 return 0;
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:9840: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>&5
9842 ac_status=$?
9843 echo "$as_me:9843: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (eval echo "$as_me:9846: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 eval "$as_ac_var=yes"
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 eval "$as_ac_var=no"
9857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9859 echo "$as_me:9859: result: `eval echo '${'$as_ac_var'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9861 if test `eval echo '${'$as_ac_var'}'` = yes; then
9862 cat >>confdefs.h <<EOF
9863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9867 done
9869 # PTY-related GNU extensions.
9871 for ac_func in getpt
9873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9874 echo "$as_me:9874: checking for $ac_func" >&5
9875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9876 if eval "test \"\${$as_ac_var+set}\" = set"; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879 cat >conftest.$ac_ext <<_ACEOF
9880 #line 9880 "configure"
9881 #include "confdefs.h"
9882 /* System header to define __stub macros and hopefully few prototypes,
9883 which can conflict with char $ac_func (); below. */
9884 #include <assert.h>
9885 /* Override any gcc2 internal prototype to avoid an error. */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891 char $ac_func ();
9892 char (*f) ();
9895 main ()
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901 choke me
9902 #else
9903 f = $ac_func;
9904 #endif
9907 return 0;
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:9911: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9913 ac_status=$?
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:9917: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:9920: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 eval "$as_ac_var=yes"
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 cat conftest.$ac_ext >&5
9926 eval "$as_ac_var=no"
9928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9930 echo "$as_me:9930: result: `eval echo '${'$as_ac_var'}'`" >&5
9931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9932 if test `eval echo '${'$as_ac_var'}'` = yes; then
9933 cat >>confdefs.h <<EOF
9934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9938 done
9940 # Check this now, so that we will NOT find the above functions in ncurses.
9941 # That is because we have not set up to link ncurses in lib-src.
9942 # It's better to believe a function is not available
9943 # than to expect to find it in ncurses.
9945 echo "$as_me:9945: checking for tparm in -lncurses" >&5
9946 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9947 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 ac_check_lib_save_LIBS=$LIBS
9951 LIBS="-lncurses $LIBS"
9952 cat >conftest.$ac_ext <<_ACEOF
9953 #line 9953 "configure"
9954 #include "confdefs.h"
9956 /* Override any gcc2 internal prototype to avoid an error. */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9962 char tparm ();
9964 main ()
9966 tparm ();
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:9972: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>&5
9974 ac_status=$?
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:9978: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:9981: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_ncurses_tparm=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 ac_cv_lib_ncurses_tparm=no
9989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9990 LIBS=$ac_check_lib_save_LIBS
9992 echo "$as_me:9992: result: $ac_cv_lib_ncurses_tparm" >&5
9993 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9994 if test $ac_cv_lib_ncurses_tparm = yes; then
9995 cat >>confdefs.h <<EOF
9996 #define HAVE_LIBNCURSES 1
9999 LIBS="-lncurses $LIBS"
10003 # Do we need the Hesiod library to provide the support routines?
10004 if test "$with_hesiod" = yes ; then
10005 # Don't set $LIBS here -- see comments above.
10006 resolv=no
10007 echo "$as_me:10007: checking for res_send" >&5
10008 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10009 if test "${ac_cv_func_res_send+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 else
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line 10013 "configure"
10014 #include "confdefs.h"
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char res_send (); below. */
10017 #include <assert.h>
10018 /* Override any gcc2 internal prototype to avoid an error. */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 /* We use char because int might match the return type of a gcc2
10023 builtin and then its argument prototype would still apply. */
10024 char res_send ();
10025 char (*f) ();
10028 main ()
10030 /* The GNU C library defines this for functions which it implements
10031 to always fail with ENOSYS. Some functions are actually named
10032 something starting with __ and the normal name is an alias. */
10033 #if defined (__stub_res_send) || defined (__stub___res_send)
10034 choke me
10035 #else
10036 f = res_send;
10037 #endif
10040 return 0;
10042 _ACEOF
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (eval echo "$as_me:10044: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>&5
10046 ac_status=$?
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_func_res_send=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10059 ac_cv_func_res_send=no
10061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10063 echo "$as_me:10063: result: $ac_cv_func_res_send" >&5
10064 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10065 if test $ac_cv_func_res_send = yes; then
10067 else
10068 echo "$as_me:10068: checking for __res_send" >&5
10069 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10070 if test "${ac_cv_func___res_send+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line 10074 "configure"
10075 #include "confdefs.h"
10076 /* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char __res_send (); below. */
10078 #include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10085 char __res_send ();
10086 char (*f) ();
10089 main ()
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined (__stub___res_send) || defined (__stub_____res_send)
10095 choke me
10096 #else
10097 f = __res_send;
10098 #endif
10101 return 0;
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:10105: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>&5
10107 ac_status=$?
10108 echo "$as_me:10108: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (eval echo "$as_me:10111: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:10114: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_func___res_send=yes
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 ac_cv_func___res_send=no
10122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10124 echo "$as_me:10124: result: $ac_cv_func___res_send" >&5
10125 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10126 if test $ac_cv_func___res_send = yes; then
10128 else
10129 echo "$as_me:10129: checking for res_send in -lresolv" >&5
10130 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10131 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lresolv $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 #line 10137 "configure"
10138 #include "confdefs.h"
10140 /* Override any gcc2 internal prototype to avoid an error. */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 /* We use char because int might match the return type of a gcc2
10145 builtin and then its argument prototype would still apply. */
10146 char res_send ();
10148 main ()
10150 res_send ();
10152 return 0;
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:10156: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10158 ac_status=$?
10159 echo "$as_me:10159: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:10162: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:10165: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_resolv_res_send=yes
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 ac_cv_lib_resolv_res_send=no
10173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 echo "$as_me:10176: result: $ac_cv_lib_resolv_res_send" >&5
10177 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10178 if test $ac_cv_lib_resolv_res_send = yes; then
10179 resolv=yes
10180 else
10181 echo "$as_me:10181: checking for __res_send in -lresolv" >&5
10182 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10183 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lresolv $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10192 /* Override any gcc2 internal prototype to avoid an error. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198 char __res_send ();
10200 main ()
10202 __res_send ();
10204 return 0;
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:10208: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>&5
10210 ac_status=$?
10211 echo "$as_me:10211: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:10214: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:10217: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_resolv___res_send=yes
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 ac_cv_lib_resolv___res_send=no
10225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 echo "$as_me:10228: result: $ac_cv_lib_resolv___res_send" >&5
10229 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10230 if test $ac_cv_lib_resolv___res_send = yes; then
10231 resolv=yes
10240 if test "$resolv" = yes ; then
10241 RESOLVLIB=-lresolv
10242 cat >>confdefs.h <<\EOF
10243 #define HAVE_LIBRESOLV 1
10246 else
10247 RESOLVLIB=
10249 echo "$as_me:10249: checking for hes_getmailhost" >&5
10250 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10251 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char hes_getmailhost (); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 /* We use char because int might match the return type of a gcc2
10265 builtin and then its argument prototype would still apply. */
10266 char hes_getmailhost ();
10267 char (*f) ();
10270 main ()
10272 /* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
10275 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10276 choke me
10277 #else
10278 f = hes_getmailhost;
10279 #endif
10282 return 0;
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:10286: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10288 ac_status=$?
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:10292: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_func_hes_getmailhost=yes
10298 else
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 ac_cv_func_hes_getmailhost=no
10303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10305 echo "$as_me:10305: result: $ac_cv_func_hes_getmailhost" >&5
10306 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10307 if test $ac_cv_func_hes_getmailhost = yes; then
10309 else
10310 echo "$as_me:10310: checking for hes_getmailhost in -lhesiod" >&5
10311 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10312 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 ac_check_lib_save_LIBS=$LIBS
10316 LIBS="-lhesiod $RESOLVLIB $LIBS"
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line 10318 "configure"
10319 #include "confdefs.h"
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 /* We use char because int might match the return type of a gcc2
10326 builtin and then its argument prototype would still apply. */
10327 char hes_getmailhost ();
10329 main ()
10331 hes_getmailhost ();
10333 return 0;
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (eval echo "$as_me:10337: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10339 ac_status=$?
10340 echo "$as_me:10340: \$? = $ac_status" >&5
10341 (exit $ac_status); } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:10343: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:10346: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_lib_hesiod_hes_getmailhost=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10352 ac_cv_lib_hesiod_hes_getmailhost=no
10354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 echo "$as_me:10357: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10358 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10359 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10360 cat >>confdefs.h <<\EOF
10361 #define HAVE_LIBHESIOD 1
10364 else
10372 # These tell us which Kerberos-related libraries to use.
10373 if test "${with_kerberos+set}" = set; then
10375 echo "$as_me:10375: checking for com_err in -lcom_err" >&5
10376 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10377 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380 ac_check_lib_save_LIBS=$LIBS
10381 LIBS="-lcom_err $LIBS"
10382 cat >conftest.$ac_ext <<_ACEOF
10383 #line 10383 "configure"
10384 #include "confdefs.h"
10386 /* Override any gcc2 internal prototype to avoid an error. */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10392 char com_err ();
10394 main ()
10396 com_err ();
10398 return 0;
10400 _ACEOF
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (eval echo "$as_me:10402: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10404 ac_status=$?
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:10408: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:10411: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_lib_com_err_com_err=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 cat conftest.$ac_ext >&5
10417 ac_cv_lib_com_err_com_err=no
10419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10422 echo "$as_me:10422: result: $ac_cv_lib_com_err_com_err" >&5
10423 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10424 if test $ac_cv_lib_com_err_com_err = yes; then
10425 cat >>confdefs.h <<EOF
10426 #define HAVE_LIBCOM_ERR 1
10429 LIBS="-lcom_err $LIBS"
10433 echo "$as_me:10433: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10434 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10435 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lk5crypto $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10441 #line 10441 "configure"
10442 #include "confdefs.h"
10444 /* Override any gcc2 internal prototype to avoid an error. */
10445 #ifdef __cplusplus
10446 extern "C"
10447 #endif
10448 /* We use char because int might match the return type of a gcc2
10449 builtin and then its argument prototype would still apply. */
10450 char mit_des_cbc_encrypt ();
10452 main ()
10454 mit_des_cbc_encrypt ();
10456 return 0;
10458 _ACEOF
10459 rm -f conftest.$ac_objext conftest$ac_exeext
10460 if { (eval echo "$as_me:10460: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>&5
10462 ac_status=$?
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10478 LIBS=$ac_check_lib_save_LIBS
10480 echo "$as_me:10480: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10481 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10482 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10483 cat >>confdefs.h <<EOF
10484 #define HAVE_LIBK5CRYPTO 1
10487 LIBS="-lk5crypto $LIBS"
10491 echo "$as_me:10491: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10492 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10493 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496 ac_check_lib_save_LIBS=$LIBS
10497 LIBS="-lcrypto $LIBS"
10498 cat >conftest.$ac_ext <<_ACEOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10508 char mit_des_cbc_encrypt ();
10510 main ()
10512 mit_des_cbc_encrypt ();
10514 return 0;
10516 _ACEOF
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (eval echo "$as_me:10518: \"$ac_link\"") >&5
10519 (eval $ac_link) 2>&5
10520 ac_status=$?
10521 echo "$as_me:10521: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -s conftest$ac_exeext'
10524 { (eval echo "$as_me:10524: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10530 else
10531 echo "$as_me: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10533 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10536 LIBS=$ac_check_lib_save_LIBS
10538 echo "$as_me:10538: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10539 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10540 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10541 cat >>confdefs.h <<EOF
10542 #define HAVE_LIBCRYPTO 1
10545 LIBS="-lcrypto $LIBS"
10549 echo "$as_me:10549: checking for krb5_init_context in -lkrb5" >&5
10550 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10551 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lkrb5 $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line 10557 "configure"
10558 #include "confdefs.h"
10560 /* Override any gcc2 internal prototype to avoid an error. */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 /* We use char because int might match the return type of a gcc2
10565 builtin and then its argument prototype would still apply. */
10566 char krb5_init_context ();
10568 main ()
10570 krb5_init_context ();
10572 return 0;
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:10576: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>&5
10578 ac_status=$?
10579 echo "$as_me:10579: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:10582: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:10585: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 ac_cv_lib_krb5_krb5_init_context=yes
10588 else
10589 echo "$as_me: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10591 ac_cv_lib_krb5_krb5_init_context=no
10593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10594 LIBS=$ac_check_lib_save_LIBS
10596 echo "$as_me:10596: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10597 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10598 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10599 cat >>confdefs.h <<EOF
10600 #define HAVE_LIBKRB5 1
10603 LIBS="-lkrb5 $LIBS"
10607 if test "${with_kerberos5+set}" != set; then
10609 echo "$as_me:10609: checking for des_cbc_encrypt in -ldes425" >&5
10610 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10611 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614 ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-ldes425 $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line 10617 "configure"
10618 #include "confdefs.h"
10620 /* Override any gcc2 internal prototype to avoid an error. */
10621 #ifdef __cplusplus
10622 extern "C"
10623 #endif
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char des_cbc_encrypt ();
10628 main ()
10630 des_cbc_encrypt ();
10632 return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:10636: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10638 ac_status=$?
10639 echo "$as_me:10639: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -s conftest$ac_exeext'
10642 { (eval echo "$as_me:10642: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:10645: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_lib_des425_des_cbc_encrypt=yes
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10651 ac_cv_lib_des425_des_cbc_encrypt=no
10653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 echo "$as_me:10656: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10657 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10658 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10659 cat >>confdefs.h <<EOF
10660 #define HAVE_LIBDES425 1
10663 LIBS="-ldes425 $LIBS"
10665 else
10667 echo "$as_me:10667: checking for des_cbc_encrypt in -ldes" >&5
10668 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-ldes $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line 10675 "configure"
10676 #include "confdefs.h"
10678 /* Override any gcc2 internal prototype to avoid an error. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 /* We use char because int might match the return type of a gcc2
10683 builtin and then its argument prototype would still apply. */
10684 char des_cbc_encrypt ();
10686 main ()
10688 des_cbc_encrypt ();
10690 return 0;
10692 _ACEOF
10693 rm -f conftest.$ac_objext conftest$ac_exeext
10694 if { (eval echo "$as_me:10694: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:10697: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -s conftest$ac_exeext'
10700 { (eval echo "$as_me:10700: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:10703: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_lib_des_des_cbc_encrypt=yes
10706 else
10707 echo "$as_me: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10709 ac_cv_lib_des_des_cbc_encrypt=no
10711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 echo "$as_me:10714: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10715 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10716 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10717 cat >>confdefs.h <<EOF
10718 #define HAVE_LIBDES 1
10721 LIBS="-ldes $LIBS"
10727 echo "$as_me:10727: checking for krb_get_cred in -lkrb4" >&5
10728 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10729 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732 ac_check_lib_save_LIBS=$LIBS
10733 LIBS="-lkrb4 $LIBS"
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line 10735 "configure"
10736 #include "confdefs.h"
10738 /* Override any gcc2 internal prototype to avoid an error. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 /* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10744 char krb_get_cred ();
10746 main ()
10748 krb_get_cred ();
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:10754: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 echo "$as_me:10757: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:10760: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:10763: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_lib_krb4_krb_get_cred=yes
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10769 ac_cv_lib_krb4_krb_get_cred=no
10771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 echo "$as_me:10774: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10775 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10776 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10777 cat >>confdefs.h <<EOF
10778 #define HAVE_LIBKRB4 1
10781 LIBS="-lkrb4 $LIBS"
10783 else
10785 echo "$as_me:10785: checking for krb_get_cred in -lkrb" >&5
10786 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10787 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-lkrb $LIBS"
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802 char krb_get_cred ();
10804 main ()
10806 krb_get_cred ();
10808 return 0;
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (eval echo "$as_me:10812: \"$ac_link\"") >&5
10813 (eval $ac_link) 2>&5
10814 ac_status=$?
10815 echo "$as_me:10815: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -s conftest$ac_exeext'
10818 { (eval echo "$as_me:10818: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:10821: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
10823 ac_cv_lib_krb_krb_get_cred=yes
10824 else
10825 echo "$as_me: failed program was:" >&5
10826 cat conftest.$ac_ext >&5
10827 ac_cv_lib_krb_krb_get_cred=no
10829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 echo "$as_me:10832: result: $ac_cv_lib_krb_krb_get_cred" >&5
10833 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10834 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10835 cat >>confdefs.h <<EOF
10836 #define HAVE_LIBKRB 1
10839 LIBS="-lkrb $LIBS"
10847 if test "${with_kerberos5+set}" = set; then
10849 for ac_header in krb5.h
10851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 echo "$as_me:10852: checking for $ac_header" >&5
10853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857 cat >conftest.$ac_ext <<_ACEOF
10858 #line 10858 "configure"
10859 #include "confdefs.h"
10860 #include <$ac_header>
10861 _ACEOF
10862 if { (eval echo "$as_me:10862: \"$ac_cpp conftest.$ac_ext\"") >&5
10863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10864 ac_status=$?
10865 egrep -v '^ *\+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:10868: \$? = $ac_status" >&5
10869 (exit $ac_status); } >/dev/null; then
10870 if test -s conftest.err; then
10871 ac_cpp_err=$ac_c_preproc_warn_flag
10872 else
10873 ac_cpp_err=
10875 else
10876 ac_cpp_err=yes
10878 if test -z "$ac_cpp_err"; then
10879 eval "$as_ac_Header=yes"
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10883 eval "$as_ac_Header=no"
10885 rm -f conftest.err conftest.$ac_ext
10887 echo "$as_me:10887: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10890 cat >>confdefs.h <<EOF
10891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10895 done
10897 else
10899 for ac_header in des.h
10901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10902 echo "$as_me:10902: checking for $ac_header" >&5
10903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 cat >conftest.$ac_ext <<_ACEOF
10908 #line 10908 "configure"
10909 #include "confdefs.h"
10910 #include <$ac_header>
10911 _ACEOF
10912 if { (eval echo "$as_me:10912: \"$ac_cpp conftest.$ac_ext\"") >&5
10913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10914 ac_status=$?
10915 egrep -v '^ *\+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:10918: \$? = $ac_status" >&5
10919 (exit $ac_status); } >/dev/null; then
10920 if test -s conftest.err; then
10921 ac_cpp_err=$ac_c_preproc_warn_flag
10922 else
10923 ac_cpp_err=
10925 else
10926 ac_cpp_err=yes
10928 if test -z "$ac_cpp_err"; then
10929 eval "$as_ac_Header=yes"
10930 else
10931 echo "$as_me: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 eval "$as_ac_Header=no"
10935 rm -f conftest.err conftest.$ac_ext
10937 echo "$as_me:10937: result: `eval echo '${'$as_ac_Header'}'`" >&5
10938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940 cat >>confdefs.h <<EOF
10941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10944 else
10946 for ac_header in kerberosIV/des.h
10948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10949 echo "$as_me:10949: checking for $ac_header" >&5
10950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10957 #include <$ac_header>
10958 _ACEOF
10959 if { (eval echo "$as_me:10959: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10961 ac_status=$?
10962 egrep -v '^ *\+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:10965: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10969 else
10970 ac_cpp_err=
10972 else
10973 ac_cpp_err=yes
10975 if test -z "$ac_cpp_err"; then
10976 eval "$as_ac_Header=yes"
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 eval "$as_ac_Header=no"
10982 rm -f conftest.err conftest.$ac_ext
10984 echo "$as_me:10984: result: `eval echo '${'$as_ac_Header'}'`" >&5
10985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h <<EOF
10988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 else
10993 for ac_header in kerberos/des.h
10995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10996 echo "$as_me:10996: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line 11002 "configure"
11003 #include "confdefs.h"
11004 #include <$ac_header>
11005 _ACEOF
11006 if { (eval echo "$as_me:11006: \"$ac_cpp conftest.$ac_ext\"") >&5
11007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11008 ac_status=$?
11009 egrep -v '^ *\+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:11012: \$? = $ac_status" >&5
11013 (exit $ac_status); } >/dev/null; then
11014 if test -s conftest.err; then
11015 ac_cpp_err=$ac_c_preproc_warn_flag
11016 else
11017 ac_cpp_err=
11019 else
11020 ac_cpp_err=yes
11022 if test -z "$ac_cpp_err"; then
11023 eval "$as_ac_Header=yes"
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 eval "$as_ac_Header=no"
11029 rm -f conftest.err conftest.$ac_ext
11031 echo "$as_me:11031: result: `eval echo '${'$as_ac_Header'}'`" >&5
11032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11034 cat >>confdefs.h <<EOF
11035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11039 done
11042 done
11045 done
11047 for ac_header in krb.h
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 echo "$as_me:11050: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line 11056 "configure"
11057 #include "confdefs.h"
11058 #include <$ac_header>
11059 _ACEOF
11060 if { (eval echo "$as_me:11060: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062 ac_status=$?
11063 egrep -v '^ *\+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:11066: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11070 else
11071 ac_cpp_err=
11073 else
11074 ac_cpp_err=yes
11076 if test -z "$ac_cpp_err"; then
11077 eval "$as_ac_Header=yes"
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11081 eval "$as_ac_Header=no"
11083 rm -f conftest.err conftest.$ac_ext
11085 echo "$as_me:11085: result: `eval echo '${'$as_ac_Header'}'`" >&5
11086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11088 cat >>confdefs.h <<EOF
11089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092 else
11094 for ac_header in kerberosIV/krb.h
11096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 echo "$as_me:11097: checking for $ac_header" >&5
11098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 #line 11103 "configure"
11104 #include "confdefs.h"
11105 #include <$ac_header>
11106 _ACEOF
11107 if { (eval echo "$as_me:11107: \"$ac_cpp conftest.$ac_ext\"") >&5
11108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11109 ac_status=$?
11110 egrep -v '^ *\+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:11113: \$? = $ac_status" >&5
11114 (exit $ac_status); } >/dev/null; then
11115 if test -s conftest.err; then
11116 ac_cpp_err=$ac_c_preproc_warn_flag
11117 else
11118 ac_cpp_err=
11120 else
11121 ac_cpp_err=yes
11123 if test -z "$ac_cpp_err"; then
11124 eval "$as_ac_Header=yes"
11125 else
11126 echo "$as_me: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11128 eval "$as_ac_Header=no"
11130 rm -f conftest.err conftest.$ac_ext
11132 echo "$as_me:11132: result: `eval echo '${'$as_ac_Header'}'`" >&5
11133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135 cat >>confdefs.h <<EOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139 else
11141 for ac_header in kerberos/krb.h
11143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11144 echo "$as_me:11144: checking for $ac_header" >&5
11145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 else
11149 cat >conftest.$ac_ext <<_ACEOF
11150 #line 11150 "configure"
11151 #include "confdefs.h"
11152 #include <$ac_header>
11153 _ACEOF
11154 if { (eval echo "$as_me:11154: \"$ac_cpp conftest.$ac_ext\"") >&5
11155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11156 ac_status=$?
11157 egrep -v '^ *\+' conftest.er1 >conftest.err
11158 rm -f conftest.er1
11159 cat conftest.err >&5
11160 echo "$as_me:11160: \$? = $ac_status" >&5
11161 (exit $ac_status); } >/dev/null; then
11162 if test -s conftest.err; then
11163 ac_cpp_err=$ac_c_preproc_warn_flag
11164 else
11165 ac_cpp_err=
11167 else
11168 ac_cpp_err=yes
11170 if test -z "$ac_cpp_err"; then
11171 eval "$as_ac_Header=yes"
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 eval "$as_ac_Header=no"
11177 rm -f conftest.err conftest.$ac_ext
11179 echo "$as_me:11179: result: `eval echo '${'$as_ac_Header'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11182 cat >>confdefs.h <<EOF
11183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11187 done
11190 done
11193 done
11197 for ac_header in com_err.h
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 echo "$as_me:11200: checking for $ac_header" >&5
11201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 #include <$ac_header>
11209 _ACEOF
11210 if { (eval echo "$as_me:11210: \"$ac_cpp conftest.$ac_ext\"") >&5
11211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11212 ac_status=$?
11213 egrep -v '^ *\+' conftest.er1 >conftest.err
11214 rm -f conftest.er1
11215 cat conftest.err >&5
11216 echo "$as_me:11216: \$? = $ac_status" >&5
11217 (exit $ac_status); } >/dev/null; then
11218 if test -s conftest.err; then
11219 ac_cpp_err=$ac_c_preproc_warn_flag
11220 else
11221 ac_cpp_err=
11223 else
11224 ac_cpp_err=yes
11226 if test -z "$ac_cpp_err"; then
11227 eval "$as_ac_Header=yes"
11228 else
11229 echo "$as_me: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11231 eval "$as_ac_Header=no"
11233 rm -f conftest.err conftest.$ac_ext
11235 echo "$as_me:11235: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238 cat >>confdefs.h <<EOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11243 done
11247 # Solaris requires -lintl if you want strerror (which calls dgettext)
11248 # to return localized messages.
11250 echo "$as_me:11250: checking for dgettext in -lintl" >&5
11251 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11252 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-lintl $LIBS"
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line 11258 "configure"
11259 #include "confdefs.h"
11261 /* Override any gcc2 internal prototype to avoid an error. */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11267 char dgettext ();
11269 main ()
11271 dgettext ();
11273 return 0;
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (eval echo "$as_me:11277: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11279 ac_status=$?
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -s conftest$ac_exeext'
11283 { (eval echo "$as_me:11283: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:11286: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_cv_lib_intl_dgettext=yes
11289 else
11290 echo "$as_me: failed program was:" >&5
11291 cat conftest.$ac_ext >&5
11292 ac_cv_lib_intl_dgettext=no
11294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11297 echo "$as_me:11297: result: $ac_cv_lib_intl_dgettext" >&5
11298 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11299 if test $ac_cv_lib_intl_dgettext = yes; then
11300 cat >>confdefs.h <<EOF
11301 #define HAVE_LIBINTL 1
11304 LIBS="-lintl $LIBS"
11308 echo "$as_me:11308: checking whether localtime caches TZ" >&5
11309 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11310 if test "${emacs_cv_localtime_cache+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313 if test x$ac_cv_func_tzset = xyes; then
11314 if test "$cross_compiling" = yes; then
11315 # If we have tzset, assume the worst when cross-compiling.
11316 emacs_cv_localtime_cache=yes
11317 else
11318 cat >conftest.$ac_ext <<_ACEOF
11319 #line 11319 "configure"
11320 #include "confdefs.h"
11321 #include <time.h>
11322 extern char **environ;
11323 unset_TZ ()
11325 char **from, **to;
11326 for (to = from = environ; (*to = *from); from++)
11327 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11328 to++;
11330 char TZ_GMT0[] = "TZ=GMT0";
11331 char TZ_PST8[] = "TZ=PST8";
11332 main()
11334 time_t now = time ((time_t *) 0);
11335 int hour_GMT0, hour_unset;
11336 if (putenv (TZ_GMT0) != 0)
11337 exit (1);
11338 hour_GMT0 = localtime (&now)->tm_hour;
11339 unset_TZ ();
11340 hour_unset = localtime (&now)->tm_hour;
11341 if (putenv (TZ_PST8) != 0)
11342 exit (1);
11343 if (localtime (&now)->tm_hour == hour_GMT0)
11344 exit (1);
11345 unset_TZ ();
11346 if (localtime (&now)->tm_hour != hour_unset)
11347 exit (1);
11348 exit (0);
11350 _ACEOF
11351 rm -f conftest$ac_exeext
11352 if { (eval echo "$as_me:11352: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11354 ac_status=$?
11355 echo "$as_me:11355: \$? = $ac_status" >&5
11356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11357 { (eval echo "$as_me:11357: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:11360: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 emacs_cv_localtime_cache=no
11363 else
11364 echo "$as_me: program exited with status $ac_status" >&5
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 emacs_cv_localtime_cache=yes
11369 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11371 else
11372 # If we lack tzset, report that localtime does not cache TZ,
11373 # since we can't invalidate the cache if we don't have tzset.
11374 emacs_cv_localtime_cache=no
11377 echo "$as_me:11377: result: $emacs_cv_localtime_cache" >&5
11378 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11379 if test $emacs_cv_localtime_cache = yes; then
11380 cat >>confdefs.h <<\EOF
11381 #define LOCALTIME_CACHE 1
11386 if test "x$HAVE_TIMEVAL" = xyes; then
11388 for ac_func in gettimeofday
11390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 echo "$as_me:11391: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11393 if eval "test \"\${$as_ac_var+set}\" = set"; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396 cat >conftest.$ac_ext <<_ACEOF
11397 #line 11397 "configure"
11398 #include "confdefs.h"
11399 /* System header to define __stub macros and hopefully few prototypes,
11400 which can conflict with char $ac_func (); below. */
11401 #include <assert.h>
11402 /* Override any gcc2 internal prototype to avoid an error. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 /* We use char because int might match the return type of a gcc2
11407 builtin and then its argument prototype would still apply. */
11408 char $ac_func ();
11409 char (*f) ();
11412 main ()
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11418 choke me
11419 #else
11420 f = $ac_func;
11421 #endif
11424 return 0;
11426 _ACEOF
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:11428: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11430 ac_status=$?
11431 echo "$as_me:11431: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:11434: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:11437: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 eval "$as_ac_var=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11447 echo "$as_me:11447: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450 cat >>confdefs.h <<EOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 done
11457 echo "$as_me:11457: checking whether gettimeofday can accept two arguments" >&5
11458 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11459 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 cat >conftest.$ac_ext <<_ACEOF
11463 #line 11463 "configure"
11464 #include "confdefs.h"
11466 #ifdef TIME_WITH_SYS_TIME
11467 #include <sys/time.h>
11468 #include <time.h>
11469 #else
11470 #ifdef HAVE_SYS_TIME_H
11471 #include <sys/time.h>
11472 #else
11473 #include <time.h>
11474 #endif
11475 #endif
11477 main ()
11479 struct timeval time;
11480 gettimeofday (&time, 0);
11482 return 0;
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:11486: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>&5
11488 ac_status=$?
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:11492: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:11495: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 emacs_cv_gettimeofday_two_arguments=yes
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 emacs_cv_gettimeofday_two_arguments=no
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11505 echo "$as_me:11505: result: $emacs_cv_gettimeofday_two_arguments" >&5
11506 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11507 if test $emacs_cv_gettimeofday_two_arguments = no; then
11508 cat >>confdefs.h <<\EOF
11509 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11515 if test "$ac_cv_func_gettimeofday" = yes; then
11516 echo "$as_me:11516: checking for struct timezone" >&5
11517 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11518 if test "${emacs_cv_struct_timezone+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11524 #include <sys/time.h>
11526 main ()
11528 struct timezone tz;
11530 return 0;
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:11534: \"$ac_compile\"") >&5
11535 (eval $ac_compile) 2>&5
11536 ac_status=$?
11537 echo "$as_me:11537: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:11540: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:11543: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 if test "$cross_compiling" = yes; then
11546 emacs_cv_struct_timezone=yes
11547 else
11548 cat >conftest.$ac_ext <<_ACEOF
11549 #line 11549 "configure"
11550 #include "confdefs.h"
11552 #ifdef TIME_WITH_SYS_TIME
11553 #include <sys/time.h>
11554 #include <time.h>
11555 #else
11556 #ifdef HAVE_SYS_TIME_H
11557 #include <sys/time.h>
11558 #else
11559 #include <time.h>
11560 #endif
11561 #endif
11562 main () {
11563 struct timeval time;
11564 struct timezone dummy;
11565 exit (gettimeofday (&time, &dummy));
11567 _ACEOF
11568 rm -f conftest$ac_exeext
11569 if { (eval echo "$as_me:11569: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 echo "$as_me:11572: \$? = $ac_status" >&5
11573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11574 { (eval echo "$as_me:11574: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:11577: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 emacs_cv_struct_timezone=yes
11580 else
11581 echo "$as_me: program exited with status $ac_status" >&5
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 emacs_cv_struct_timezone=no
11586 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 emacs_cv_struct_timezone=no
11593 rm -f conftest.$ac_objext conftest.$ac_ext
11595 echo "$as_me:11595: result: $emacs_cv_struct_timezone" >&5
11596 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11599 ok_so_far=yes
11600 echo "$as_me:11600: checking for socket" >&5
11601 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11602 if test "${ac_cv_func_socket+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 cat >conftest.$ac_ext <<_ACEOF
11606 #line 11606 "configure"
11607 #include "confdefs.h"
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char socket (); below. */
11610 #include <assert.h>
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 /* We use char because int might match the return type of a gcc2
11616 builtin and then its argument prototype would still apply. */
11617 char socket ();
11618 char (*f) ();
11621 main ()
11623 /* The GNU C library defines this for functions which it implements
11624 to always fail with ENOSYS. Some functions are actually named
11625 something starting with __ and the normal name is an alias. */
11626 #if defined (__stub_socket) || defined (__stub___socket)
11627 choke me
11628 #else
11629 f = socket;
11630 #endif
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:11637: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11639 ac_status=$?
11640 echo "$as_me:11640: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:11643: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:11646: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_func_socket=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 ac_cv_func_socket=no
11654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656 echo "$as_me:11656: result: $ac_cv_func_socket" >&5
11657 echo "${ECHO_T}$ac_cv_func_socket" >&6
11658 if test $ac_cv_func_socket = yes; then
11660 else
11661 ok_so_far=no
11664 if test $ok_so_far = yes; then
11665 echo "$as_me:11665: checking for netinet/in.h" >&5
11666 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11667 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 cat >conftest.$ac_ext <<_ACEOF
11671 #line 11671 "configure"
11672 #include "confdefs.h"
11673 #include <netinet/in.h>
11674 _ACEOF
11675 if { (eval echo "$as_me:11675: \"$ac_cpp conftest.$ac_ext\"") >&5
11676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11677 ac_status=$?
11678 egrep -v '^ *\+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:11681: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 else
11686 ac_cpp_err=
11688 else
11689 ac_cpp_err=yes
11691 if test -z "$ac_cpp_err"; then
11692 ac_cv_header_netinet_in_h=yes
11693 else
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 ac_cv_header_netinet_in_h=no
11698 rm -f conftest.err conftest.$ac_ext
11700 echo "$as_me:11700: result: $ac_cv_header_netinet_in_h" >&5
11701 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11702 if test $ac_cv_header_netinet_in_h = yes; then
11704 else
11705 ok_so_far=no
11709 if test $ok_so_far = yes; then
11710 echo "$as_me:11710: checking for arpa/inet.h" >&5
11711 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11712 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line 11716 "configure"
11717 #include "confdefs.h"
11718 #include <arpa/inet.h>
11719 _ACEOF
11720 if { (eval echo "$as_me:11720: \"$ac_cpp conftest.$ac_ext\"") >&5
11721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11722 ac_status=$?
11723 egrep -v '^ *\+' conftest.er1 >conftest.err
11724 rm -f conftest.er1
11725 cat conftest.err >&5
11726 echo "$as_me:11726: \$? = $ac_status" >&5
11727 (exit $ac_status); } >/dev/null; then
11728 if test -s conftest.err; then
11729 ac_cpp_err=$ac_c_preproc_warn_flag
11730 else
11731 ac_cpp_err=
11733 else
11734 ac_cpp_err=yes
11736 if test -z "$ac_cpp_err"; then
11737 ac_cv_header_arpa_inet_h=yes
11738 else
11739 echo "$as_me: failed program was:" >&5
11740 cat conftest.$ac_ext >&5
11741 ac_cv_header_arpa_inet_h=no
11743 rm -f conftest.err conftest.$ac_ext
11745 echo "$as_me:11745: result: $ac_cv_header_arpa_inet_h" >&5
11746 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11747 if test $ac_cv_header_arpa_inet_h = yes; then
11749 else
11750 ok_so_far=no
11754 if test $ok_so_far = yes; then
11755 cat >>confdefs.h <<\EOF
11756 #define HAVE_INET_SOCKETS 1
11761 if test -f /usr/lpp/X11/bin/smt.exp; then
11762 cat >>confdefs.h <<\EOF
11763 #define HAVE_AIX_SMT_EXP 1
11768 echo "$as_me:11768: checking whether system supports dynamic ptys" >&5
11769 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11770 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
11771 echo "$as_me:11771: result: yes" >&5
11772 echo "${ECHO_T}yes" >&6
11773 cat >>confdefs.h <<\EOF
11774 #define HAVE_DEV_PTMX 1
11777 else
11778 echo "$as_me:11778: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11782 echo "$as_me:11782: checking for pid_t" >&5
11783 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11784 if test "${ac_cv_type_pid_t+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787 cat >conftest.$ac_ext <<_ACEOF
11788 #line 11788 "configure"
11789 #include "confdefs.h"
11790 $ac_includes_default
11792 main ()
11794 if ((pid_t *) 0)
11795 return 0;
11796 if (sizeof (pid_t))
11797 return 0;
11799 return 0;
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:11803: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>&5
11805 ac_status=$?
11806 echo "$as_me:11806: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:11809: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:11812: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_type_pid_t=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 cat conftest.$ac_ext >&5
11818 ac_cv_type_pid_t=no
11820 rm -f conftest.$ac_objext conftest.$ac_ext
11822 echo "$as_me:11822: result: $ac_cv_type_pid_t" >&5
11823 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11824 if test $ac_cv_type_pid_t = yes; then
11826 else
11828 cat >>confdefs.h <<EOF
11829 #define pid_t int
11834 for ac_header in unistd.h vfork.h
11836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11837 echo "$as_me:11837: checking for $ac_header" >&5
11838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 else
11842 cat >conftest.$ac_ext <<_ACEOF
11843 #line 11843 "configure"
11844 #include "confdefs.h"
11845 #include <$ac_header>
11846 _ACEOF
11847 if { (eval echo "$as_me:11847: \"$ac_cpp conftest.$ac_ext\"") >&5
11848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11849 ac_status=$?
11850 egrep -v '^ *\+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:11853: \$? = $ac_status" >&5
11854 (exit $ac_status); } >/dev/null; then
11855 if test -s conftest.err; then
11856 ac_cpp_err=$ac_c_preproc_warn_flag
11857 else
11858 ac_cpp_err=
11860 else
11861 ac_cpp_err=yes
11863 if test -z "$ac_cpp_err"; then
11864 eval "$as_ac_Header=yes"
11865 else
11866 echo "$as_me: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11868 eval "$as_ac_Header=no"
11870 rm -f conftest.err conftest.$ac_ext
11872 echo "$as_me:11872: result: `eval echo '${'$as_ac_Header'}'`" >&5
11873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11875 cat >>confdefs.h <<EOF
11876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 done
11882 for ac_func in fork vfork
11884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11885 echo "$as_me:11885: checking for $ac_func" >&5
11886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11887 if eval "test \"\${$as_ac_var+set}\" = set"; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890 cat >conftest.$ac_ext <<_ACEOF
11891 #line 11891 "configure"
11892 #include "confdefs.h"
11893 /* System header to define __stub macros and hopefully few prototypes,
11894 which can conflict with char $ac_func (); below. */
11895 #include <assert.h>
11896 /* Override any gcc2 internal prototype to avoid an error. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 /* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902 char $ac_func ();
11903 char (*f) ();
11906 main ()
11908 /* The GNU C library defines this for functions which it implements
11909 to always fail with ENOSYS. Some functions are actually named
11910 something starting with __ and the normal name is an alias. */
11911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11912 choke me
11913 #else
11914 f = $ac_func;
11915 #endif
11918 return 0;
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (eval echo "$as_me:11922: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>&5
11924 ac_status=$?
11925 echo "$as_me:11925: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:11928: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:11931: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11934 else
11935 echo "$as_me: failed program was:" >&5
11936 cat conftest.$ac_ext >&5
11937 eval "$as_ac_var=no"
11939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 echo "$as_me:11941: result: `eval echo '${'$as_ac_var'}'`" >&5
11942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11944 cat >>confdefs.h <<EOF
11945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11949 done
11951 ac_cv_func_fork_works=$ac_cv_func_fork
11952 if test "x$ac_cv_func_fork" = xyes; then
11953 echo "$as_me:11953: checking for working fork" >&5
11954 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11955 if test "${ac_cv_func_fork_works+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 if test "$cross_compiling" = yes; then
11959 ac_cv_func_fork_works=cross
11960 else
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* By Rüdiger Kuhlmann. */
11963 #include <sys/types.h>
11964 #if HAVE_UNISTD_H
11965 # include <unistd.h>
11966 #endif
11967 /* Some systems only have a dummy stub for fork() */
11968 int main ()
11970 if (fork() < 0)
11971 exit (1);
11972 exit (0);
11974 _ACEOF
11975 rm -f conftest$ac_exeext
11976 if { (eval echo "$as_me:11976: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:11984: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986 ac_cv_func_fork_works=yes
11987 else
11988 echo "$as_me: program exited with status $ac_status" >&5
11989 echo "$as_me: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 ac_cv_func_fork_works=no
11993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11996 echo "$as_me:11996: result: $ac_cv_func_fork_works" >&5
11997 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12000 if test "x$ac_cv_func_fork_works" = xcross; then
12001 case $host in
12002 *-*-amigaos* | *-*-msdosdjgpp*)
12003 # Override, as these systems have only a dummy fork() stub
12004 ac_cv_func_fork_works=no
12007 ac_cv_func_fork_works=yes
12009 esac
12010 { echo "$as_me:12010: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12011 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12013 ac_cv_func_vfork_works=$ac_cv_func_vfork
12014 if test "x$ac_cv_func_vfork" = xyes; then
12015 echo "$as_me:12015: checking for working vfork" >&5
12016 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12017 if test "${ac_cv_func_vfork_works+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 if test "$cross_compiling" = yes; then
12021 ac_cv_func_vfork_works=cross
12022 else
12023 cat >conftest.$ac_ext <<_ACEOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12026 /* Thanks to Paul Eggert for this test. */
12027 #include <stdio.h>
12028 #include <sys/types.h>
12029 #include <sys/stat.h>
12030 #if HAVE_UNISTD_H
12031 # include <unistd.h>
12032 #endif
12033 #if HAVE_VFORK_H
12034 # include <vfork.h>
12035 #endif
12036 /* On some sparc systems, changes by the child to local and incoming
12037 argument registers are propagated back to the parent. The compiler
12038 is told about this with #include <vfork.h>, but some compilers
12039 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12040 static variable whose address is put into a register that is
12041 clobbered by the vfork. */
12042 static
12043 #ifdef __cplusplus
12044 sparc_address_test (int arg)
12045 # else
12046 sparc_address_test (arg) int arg;
12047 #endif
12049 static pid_t child;
12050 if (!child) {
12051 child = vfork ();
12052 if (child < 0) {
12053 perror ("vfork");
12054 _exit(2);
12056 if (!child) {
12057 arg = getpid();
12058 write(-1, "", 0);
12059 _exit (arg);
12065 main ()
12067 pid_t parent = getpid ();
12068 pid_t child;
12070 sparc_address_test ();
12072 child = vfork ();
12074 if (child == 0) {
12075 /* Here is another test for sparc vfork register problems. This
12076 test uses lots of local variables, at least as many local
12077 variables as main has allocated so far including compiler
12078 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12079 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12080 reuse the register of parent for one of the local variables,
12081 since it will think that parent can't possibly be used any more
12082 in this routine. Assigning to the local variable will thus
12083 munge parent in the parent process. */
12084 pid_t
12085 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12086 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12087 /* Convince the compiler that p..p7 are live; otherwise, it might
12088 use the same hardware register for all 8 local variables. */
12089 if (p != p1 || p != p2 || p != p3 || p != p4
12090 || p != p5 || p != p6 || p != p7)
12091 _exit(1);
12093 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12094 from child file descriptors. If the child closes a descriptor
12095 before it execs or exits, this munges the parent's descriptor
12096 as well. Test for this by closing stdout in the child. */
12097 _exit(close(fileno(stdout)) != 0);
12098 } else {
12099 int status;
12100 struct stat st;
12102 while (wait(&status) != child)
12104 exit(
12105 /* Was there some problem with vforking? */
12106 child < 0
12108 /* Did the child fail? (This shouldn't happen.) */
12109 || status
12111 /* Did the vfork/compiler bug occur? */
12112 || parent != getpid()
12114 /* Did the file descriptor bug occur? */
12115 || fstat(fileno(stdout), &st) != 0
12119 _ACEOF
12120 rm -f conftest$ac_exeext
12121 if { (eval echo "$as_me:12121: \"$ac_link\"") >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12126 { (eval echo "$as_me:12126: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:12129: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_cv_func_vfork_works=yes
12132 else
12133 echo "$as_me: program exited with status $ac_status" >&5
12134 echo "$as_me: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 ac_cv_func_vfork_works=no
12138 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12141 echo "$as_me:12141: result: $ac_cv_func_vfork_works" >&5
12142 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12145 if test "x$ac_cv_func_fork_works" = xcross; then
12146 ac_cv_func_vfork_works=ac_cv_func_vfork
12147 { echo "$as_me:12147: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12148 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12151 if test "x$ac_cv_func_vfork_works" = xyes; then
12153 cat >>confdefs.h <<\EOF
12154 #define HAVE_WORKING_VFORK 1
12157 else
12159 cat >>confdefs.h <<\EOF
12160 #define vfork fork
12164 if test "x$ac_cv_func_fork_works" = xyes; then
12166 cat >>confdefs.h <<\EOF
12167 #define HAVE_WORKING_FORK 1
12172 # Fixme: This should be replaced when we have autoconf 2.14.
12173 echo "$as_me:12173: checking for size_t" >&5
12174 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12175 if test "${ac_cv_type_size_t+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181 $ac_includes_default
12183 main ()
12185 if ((size_t *) 0)
12186 return 0;
12187 if (sizeof (size_t))
12188 return 0;
12190 return 0;
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (eval echo "$as_me:12194: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>&5
12196 ac_status=$?
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:12200: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:12203: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_type_size_t=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 cat conftest.$ac_ext >&5
12209 ac_cv_type_size_t=no
12211 rm -f conftest.$ac_objext conftest.$ac_ext
12213 echo "$as_me:12213: result: $ac_cv_type_size_t" >&5
12214 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12215 if test $ac_cv_type_size_t = yes; then
12217 else
12219 cat >>confdefs.h <<EOF
12220 #define size_t unsigned
12225 # Set up the CFLAGS for real compilation, so we can substitute it.
12226 CFLAGS="$REAL_CFLAGS"
12227 CPPFLAGS="$REAL_CPPFLAGS"
12229 #### Find out which version of Emacs this is.
12230 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12231 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12232 if test x"${version}" = x; then
12233 { { echo "$as_me:12233: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12234 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12235 { (exit 1); exit 1; }; }
12238 ### Specify what sort of things we'll be editing into Makefile and config.h.
12239 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12241 cat >>confdefs.h <<EOF
12242 #define EMACS_CONFIGURATION "${canonical}"
12245 cat >>confdefs.h <<EOF
12246 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12249 cat >>confdefs.h <<EOF
12250 #define config_machfile "${machfile}"
12253 cat >>confdefs.h <<EOF
12254 #define config_opsysfile "${opsysfile}"
12257 cat >>confdefs.h <<EOF
12258 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12261 cat >>confdefs.h <<EOF
12262 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12265 cat >>confdefs.h <<EOF
12266 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12269 cat >>confdefs.h <<EOF
12270 #define UNEXEC_SRC ${UNEXEC_SRC}
12273 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12274 cat >>confdefs.h <<\EOF
12275 #define HAVE_X_WINDOWS 1
12279 if test "${USE_X_TOOLKIT}" != "none" ; then
12280 cat >>confdefs.h <<\EOF
12281 #define USE_X_TOOLKIT 1
12285 if test "${HAVE_X11}" = "yes" ; then
12286 cat >>confdefs.h <<\EOF
12287 #define HAVE_X11 1
12291 if test "${HAVE_XFREE386}" = "yes" ; then
12292 cat >>confdefs.h <<\EOF
12293 #define HAVE_XFREE386 1
12297 if test "${HAVE_MENUS}" = "yes" ; then
12298 cat >>confdefs.h <<\EOF
12299 #define HAVE_MENUS 1
12303 if test "${GNU_MALLOC}" = "yes" ; then
12304 cat >>confdefs.h <<\EOF
12305 #define GNU_MALLOC 1
12309 if test "${REL_ALLOC}" = "yes" ; then
12310 cat >>confdefs.h <<\EOF
12311 #define REL_ALLOC 1
12316 for ac_header in nlist.h
12318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 echo "$as_me:12319: checking for $ac_header" >&5
12320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 cat >conftest.$ac_ext <<_ACEOF
12325 #line 12325 "configure"
12326 #include "confdefs.h"
12327 #include <$ac_header>
12328 _ACEOF
12329 if { (eval echo "$as_me:12329: \"$ac_cpp conftest.$ac_ext\"") >&5
12330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12331 ac_status=$?
12332 egrep -v '^ *\+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:12335: \$? = $ac_status" >&5
12336 (exit $ac_status); } >/dev/null; then
12337 if test -s conftest.err; then
12338 ac_cpp_err=$ac_c_preproc_warn_flag
12339 else
12340 ac_cpp_err=
12342 else
12343 ac_cpp_err=yes
12345 if test -z "$ac_cpp_err"; then
12346 eval "$as_ac_Header=yes"
12347 else
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 eval "$as_ac_Header=no"
12352 rm -f conftest.err conftest.$ac_ext
12354 echo "$as_me:12354: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12357 cat >>confdefs.h <<EOF
12358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 cat >>confdefs.h <<\EOF
12362 #define NLIST_STRUCT 1
12366 done
12368 #### Report on what we decided to do.
12369 echo "
12370 Configured for \`${canonical}'.
12372 Where should the build process find the source code? ${srcdir}
12373 What operating system and machine description files should Emacs use?
12374 \`${opsysfile}' and \`${machfile}'
12375 What compiler should emacs be built with? ${CC} ${CFLAGS}
12376 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12377 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12378 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12379 What window system should Emacs use? ${window_system}
12380 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12382 if test -n "${x_includes}"; then
12383 echo " Where do we find X Windows header files? ${x_includes}"
12384 else
12385 echo " Where do we find X Windows header files? Standard dirs"
12387 if test -n "${x_libraries}"; then
12388 echo " Where do we find X Windows libraries? ${x_libraries}"
12389 else
12390 echo " Where do we find X Windows libraries? Standard dirs"
12393 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12394 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12395 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12396 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12397 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12398 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12399 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12400 echo
12402 # Remove any trailing slashes in these variables.
12403 test "${prefix}" != NONE &&
12404 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12405 test "${exec_prefix}" != NONE &&
12406 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12408 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12409 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12410 ## from Makefile.c can correctly provide the arg `-traditional' to the
12411 ## C preprocessor.
12413 cat >conftest.$ac_ext <<_ACEOF
12414 #line 12414 "configure"
12415 #include "confdefs.h"
12416 yes..yes
12417 _ACEOF
12418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12419 egrep "yes..yes" >/dev/null 2>&1; then
12420 CPP_NEED_TRADITIONAL=no
12421 else
12422 CPP_NEED_TRADITIONAL=yes
12424 rm -f conftest*
12426 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"
12427 ac_config_commands="$ac_config_commands default"
12428 cat >confcache <<\_ACEOF
12429 # This file is a shell script that caches the results of configure
12430 # tests run on this system so they can be shared between configure
12431 # scripts and configure runs, see configure's option --config-cache.
12432 # It is not useful on other systems. If it contains results you don't
12433 # want to keep, you may remove or edit it.
12435 # config.status only pays attention to the cache file if you give it
12436 # the --recheck option to rerun configure.
12438 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12440 # following values.
12442 _ACEOF
12444 # The following way of writing the cache mishandles newlines in values,
12445 # but we know of no workaround that is simple, portable, and efficient.
12446 # So, don't put newlines in cache variables' values.
12447 # Ultrix sh set writes to stderr and can't be redirected directly,
12448 # and sets the high bit in the cache file unless we assign to the vars.
12450 (set) 2>&1 |
12451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12452 *ac_space=\ *)
12453 # `set' does not quote correctly, so add quotes (double-quote
12454 # substitution turns \\\\ into \\, and sed turns \\ into \).
12455 sed -n \
12456 "s/'/'\\\\''/g;
12457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12460 # `set' quotes correctly as required by POSIX, so do not add quotes.
12461 sed -n \
12462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12464 esac;
12466 sed '
12467 t clear
12468 : clear
12469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12470 t end
12471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12472 : end' >>confcache
12473 if cmp -s $cache_file confcache; then :; else
12474 if test -w $cache_file; then
12475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12476 cat confcache >$cache_file
12477 else
12478 echo "not updating unwritable cache $cache_file"
12481 rm -f confcache
12483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12484 # Let make expand exec_prefix.
12485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12489 # trailing colons and then remove the whole line if VPATH becomes empty
12490 # (actually we leave an empty line to preserve line numbers).
12491 if test "x$srcdir" = x.; then
12492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12493 s/:*\$(srcdir):*/:/;
12494 s/:*\${srcdir}:*/:/;
12495 s/:*@srcdir@:*/:/;
12496 s/^\([^=]*=[ ]*\):*/\1/;
12497 s/:*$//;
12498 s/^[^=]*=[ ]*$//;
12502 DEFS=-DHAVE_CONFIG_H
12504 : ${CONFIG_STATUS=./config.status}
12505 ac_clean_files_save=$ac_clean_files
12506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12507 { echo "$as_me:12507: creating $CONFIG_STATUS" >&5
12508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12509 cat >$CONFIG_STATUS <<_ACEOF
12510 #! $SHELL
12511 # Generated automatically by configure.
12512 # Run this file to recreate the current configuration.
12513 # Compiler output produced by configure, useful for debugging
12514 # configure, is in config.log if it exists.
12516 debug=false
12517 SHELL=\${CONFIG_SHELL-$SHELL}
12518 ac_cs_invocation="\$0 \$@"
12520 _ACEOF
12522 cat >>$CONFIG_STATUS <<\_ACEOF
12523 # Be Bourne compatible
12524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12525 emulate sh
12526 NULLCMD=:
12527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12528 set -o posix
12531 # Name of the executable.
12532 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12534 if expr a : '\(a\)' >/dev/null 2>&1; then
12535 as_expr=expr
12536 else
12537 as_expr=false
12540 rm -f conf$$ conf$$.exe conf$$.file
12541 echo >conf$$.file
12542 if ln -s conf$$.file conf$$ 2>/dev/null; then
12543 # We could just check for DJGPP; but this test a) works b) is more generic
12544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12545 if test -f conf$$.exe; then
12546 # Don't use ln at all; we don't have any links
12547 as_ln_s='cp -p'
12548 else
12549 as_ln_s='ln -s'
12551 elif ln conf$$.file conf$$ 2>/dev/null; then
12552 as_ln_s=ln
12553 else
12554 as_ln_s='cp -p'
12556 rm -f conf$$ conf$$.exe conf$$.file
12558 as_executable_p="test -f"
12560 # Support unset when possible.
12561 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12562 as_unset=unset
12563 else
12564 as_unset=false
12567 # NLS nuisances.
12568 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12569 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12570 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12571 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12572 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12573 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12574 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12575 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12577 # IFS
12578 # We need space, tab and new line, in precisely that order.
12579 as_nl='
12581 IFS=" $as_nl"
12583 # CDPATH.
12584 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12586 exec 6>&1
12588 _ACEOF
12590 # Files that config.status was made for.
12591 if test -n "$ac_config_files"; then
12592 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12595 if test -n "$ac_config_headers"; then
12596 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12599 if test -n "$ac_config_links"; then
12600 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12603 if test -n "$ac_config_commands"; then
12604 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12607 cat >>$CONFIG_STATUS <<\EOF
12609 ac_cs_usage="\
12610 \`$as_me' instantiates files from templates according to the
12611 current configuration.
12613 Usage: $0 [OPTIONS] [FILE]...
12615 -h, --help print this help, then exit
12616 -V, --version print version number, then exit
12617 -d, --debug don't remove temporary files
12618 --recheck update $as_me by reconfiguring in the same conditions
12619 --file=FILE[:TEMPLATE]
12620 instantiate the configuration file FILE
12621 --header=FILE[:TEMPLATE]
12622 instantiate the configuration header FILE
12624 Configuration files:
12625 $config_files
12627 Configuration headers:
12628 $config_headers
12630 Configuration commands:
12631 $config_commands
12633 Report bugs to <bug-autoconf@gnu.org>."
12636 cat >>$CONFIG_STATUS <<EOF
12637 ac_cs_version="\\
12638 config.status
12639 configured by $0, generated by GNU Autoconf 2.52,
12640 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12642 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12643 Free Software Foundation, Inc.
12644 This config.status script is free software; the Free Software Foundation
12645 gives unlimited permission to copy, distribute and modify it."
12646 srcdir=$srcdir
12647 INSTALL="$INSTALL"
12650 cat >>$CONFIG_STATUS <<\EOF
12651 # If no file are specified by the user, then we need to provide default
12652 # value. By we need to know if files were specified by the user.
12653 ac_need_defaults=:
12654 while test $# != 0
12656 case $1 in
12657 --*=*)
12658 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12659 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12660 shift
12661 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12662 shift
12664 -*);;
12665 *) # This is not an option, so the user has probably given explicit
12666 # arguments.
12667 ac_need_defaults=false;;
12668 esac
12670 case $1 in
12671 # Handling of the options.
12673 cat >>$CONFIG_STATUS <<EOF
12674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12675 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12676 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12678 cat >>$CONFIG_STATUS <<\EOF
12679 --version | --vers* | -V )
12680 echo "$ac_cs_version"; exit 0 ;;
12681 --he | --h)
12682 # Conflict between --help and --header
12683 { { echo "$as_me:12683: error: ambiguous option: $1
12684 Try \`$0 --help' for more information." >&5
12685 echo "$as_me: error: ambiguous option: $1
12686 Try \`$0 --help' for more information." >&2;}
12687 { (exit 1); exit 1; }; };;
12688 --help | --hel | -h )
12689 echo "$ac_cs_usage"; exit 0 ;;
12690 --debug | --d* | -d )
12691 debug=: ;;
12692 --file | --fil | --fi | --f )
12693 shift
12694 CONFIG_FILES="$CONFIG_FILES $1"
12695 ac_need_defaults=false;;
12696 --header | --heade | --head | --hea )
12697 shift
12698 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12699 ac_need_defaults=false;;
12701 # This is an error.
12702 -*) { { echo "$as_me:12702: error: unrecognized option: $1
12703 Try \`$0 --help' for more information." >&5
12704 echo "$as_me: error: unrecognized option: $1
12705 Try \`$0 --help' for more information." >&2;}
12706 { (exit 1); exit 1; }; } ;;
12708 *) ac_config_targets="$ac_config_targets $1" ;;
12710 esac
12711 shift
12712 done
12714 exec 5>>config.log
12715 cat >&5 << _ACEOF
12717 ## ----------------------- ##
12718 ## Running config.status. ##
12719 ## ----------------------- ##
12721 This file was extended by $as_me 2.52, executed with
12722 CONFIG_FILES = $CONFIG_FILES
12723 CONFIG_HEADERS = $CONFIG_HEADERS
12724 CONFIG_LINKS = $CONFIG_LINKS
12725 CONFIG_COMMANDS = $CONFIG_COMMANDS
12726 > $ac_cs_invocation
12727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12729 _ACEOF
12732 cat >>$CONFIG_STATUS <<EOF
12734 # INIT-COMMANDS section.
12737 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12741 cat >>$CONFIG_STATUS <<\EOF
12742 for ac_config_target in $ac_config_targets
12744 case "$ac_config_target" in
12745 # Handling of arguments.
12746 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12747 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12748 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
12749 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12750 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
12751 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12752 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
12753 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
12754 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
12755 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
12756 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12757 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12758 *) { { echo "$as_me:12758: error: invalid argument: $ac_config_target" >&5
12759 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12760 { (exit 1); exit 1; }; };;
12761 esac
12762 done
12764 # If the user did not use the arguments to specify the items to instantiate,
12765 # then the envvar interface is used. Set only those that are not.
12766 # We use the long form for the default assignment because of an extremely
12767 # bizarre bug on SunOS 4.1.3.
12768 if $ac_need_defaults; then
12769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12774 # Create a temporary directory, and hook for its removal unless debugging.
12775 $debug ||
12777 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12778 trap '{ (exit 1); exit 1; }' 1 2 13 15
12781 # Create a (secure) tmp directory for tmp files.
12782 : ${TMPDIR=/tmp}
12784 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12785 test -n "$tmp" && test -d "$tmp"
12786 } ||
12788 tmp=$TMPDIR/cs$$-$RANDOM
12789 (umask 077 && mkdir $tmp)
12790 } ||
12792 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12793 { (exit 1); exit 1; }
12798 cat >>$CONFIG_STATUS <<EOF
12801 # CONFIG_FILES section.
12804 # No need to generate the scripts if there are no CONFIG_FILES.
12805 # This happens for instance when ./config.status config.h
12806 if test -n "\$CONFIG_FILES"; then
12807 # Protect against being on the right side of a sed subst in config.status.
12808 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12809 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12810 s,@SHELL@,$SHELL,;t t
12811 s,@exec_prefix@,$exec_prefix,;t t
12812 s,@prefix@,$prefix,;t t
12813 s,@program_transform_name@,$program_transform_name,;t t
12814 s,@bindir@,$bindir,;t t
12815 s,@sbindir@,$sbindir,;t t
12816 s,@libexecdir@,$libexecdir,;t t
12817 s,@datadir@,$datadir,;t t
12818 s,@sysconfdir@,$sysconfdir,;t t
12819 s,@sharedstatedir@,$sharedstatedir,;t t
12820 s,@localstatedir@,$localstatedir,;t t
12821 s,@libdir@,$libdir,;t t
12822 s,@includedir@,$includedir,;t t
12823 s,@oldincludedir@,$oldincludedir,;t t
12824 s,@infodir@,$infodir,;t t
12825 s,@mandir@,$mandir,;t t
12826 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12827 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12828 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12829 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12830 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12831 s,@build_alias@,$build_alias,;t t
12832 s,@host_alias@,$host_alias,;t t
12833 s,@target_alias@,$target_alias,;t t
12834 s,@ECHO_C@,$ECHO_C,;t t
12835 s,@ECHO_N@,$ECHO_N,;t t
12836 s,@ECHO_T@,$ECHO_T,;t t
12837 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12838 s,@DEFS@,$DEFS,;t t
12839 s,@LIBS@,$LIBS,;t t
12840 s,@build@,$build,;t t
12841 s,@build_cpu@,$build_cpu,;t t
12842 s,@build_vendor@,$build_vendor,;t t
12843 s,@build_os@,$build_os,;t t
12844 s,@host@,$host,;t t
12845 s,@host_cpu@,$host_cpu,;t t
12846 s,@host_vendor@,$host_vendor,;t t
12847 s,@host_os@,$host_os,;t t
12848 s,@CC@,$CC,;t t
12849 s,@CFLAGS@,$CFLAGS,;t t
12850 s,@LDFLAGS@,$LDFLAGS,;t t
12851 s,@CPPFLAGS@,$CPPFLAGS,;t t
12852 s,@ac_ct_CC@,$ac_ct_CC,;t t
12853 s,@EXEEXT@,$EXEEXT,;t t
12854 s,@OBJEXT@,$OBJEXT,;t t
12855 s,@LN_S@,$LN_S,;t t
12856 s,@CPP@,$CPP,;t t
12857 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12858 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12859 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12860 s,@YACC@,$YACC,;t t
12861 s,@RANLIB@,$RANLIB,;t t
12862 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12863 s,@LIBSOUND@,$LIBSOUND,;t t
12864 s,@SET_MAKE@,$SET_MAKE,;t t
12865 s,@ALLOCA@,$ALLOCA,;t t
12866 s,@liblockfile@,$liblockfile,;t t
12867 s,@LIBOBJS@,$LIBOBJS,;t t
12868 s,@NEED_SETGID@,$NEED_SETGID,;t t
12869 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12870 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12871 s,@version@,$version,;t t
12872 s,@configuration@,$configuration,;t t
12873 s,@canonical@,$canonical,;t t
12874 s,@srcdir@,$srcdir,;t t
12875 s,@lispdir@,$lispdir,;t t
12876 s,@locallisppath@,$locallisppath,;t t
12877 s,@lisppath@,$lisppath,;t t
12878 s,@x_default_search_path@,$x_default_search_path,;t t
12879 s,@etcdir@,$etcdir,;t t
12880 s,@archlibdir@,$archlibdir,;t t
12881 s,@docdir@,$docdir,;t t
12882 s,@bitmapdir@,$bitmapdir,;t t
12883 s,@c_switch_system@,$c_switch_system,;t t
12884 s,@c_switch_machine@,$c_switch_machine,;t t
12885 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12886 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12887 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12888 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12889 s,@machfile@,$machfile,;t t
12890 s,@opsysfile@,$opsysfile,;t t
12891 CEOF
12895 cat >>$CONFIG_STATUS <<\EOF
12896 # Split the substitutions into bite-sized pieces for seds with
12897 # small command number limits, like on Digital OSF/1 and HP-UX.
12898 ac_max_sed_lines=48
12899 ac_sed_frag=1 # Number of current file.
12900 ac_beg=1 # First line for current file.
12901 ac_end=$ac_max_sed_lines # Line after last line for current file.
12902 ac_more_lines=:
12903 ac_sed_cmds=
12904 while $ac_more_lines; do
12905 if test $ac_beg -gt 1; then
12906 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12907 else
12908 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12910 if test ! -s $tmp/subs.frag; then
12911 ac_more_lines=false
12912 else
12913 # The purpose of the label and of the branching condition is to
12914 # speed up the sed processing (if there are no `@' at all, there
12915 # is no need to browse any of the substitutions).
12916 # These are the two extra sed commands mentioned above.
12917 (echo ':t
12918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12919 if test -z "$ac_sed_cmds"; then
12920 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12921 else
12922 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12924 ac_sed_frag=`expr $ac_sed_frag + 1`
12925 ac_beg=$ac_end
12926 ac_end=`expr $ac_end + $ac_max_sed_lines`
12928 done
12929 if test -z "$ac_sed_cmds"; then
12930 ac_sed_cmds=cat
12932 fi # test -n "$CONFIG_FILES"
12935 cat >>$CONFIG_STATUS <<\EOF
12936 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12937 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12938 case $ac_file in
12939 - | *:- | *:-:* ) # input from stdin
12940 cat >$tmp/stdin
12941 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12942 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12943 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12945 * ) ac_file_in=$ac_file.in ;;
12946 esac
12948 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12949 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12950 X"$ac_file" : 'X\(//\)[^/]' \| \
12951 X"$ac_file" : 'X\(//\)$' \| \
12952 X"$ac_file" : 'X\(/\)' \| \
12953 . : '\(.\)' 2>/dev/null ||
12954 echo X"$ac_file" |
12955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12956 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12957 /^X\(\/\/\)$/{ s//\1/; q; }
12958 /^X\(\/\).*/{ s//\1/; q; }
12959 s/.*/./; q'`
12960 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12961 { case "$ac_dir" in
12962 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12963 *) as_incr_dir=.;;
12964 esac
12965 as_dummy="$ac_dir"
12966 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12967 case $as_mkdir_dir in
12968 # Skip DOS drivespec
12969 ?:) as_incr_dir=$as_mkdir_dir ;;
12971 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12972 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12974 esac
12975 done; }
12977 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12978 # A "../" for each directory in $ac_dir_suffix.
12979 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12980 else
12981 ac_dir_suffix= ac_dots=
12984 case $srcdir in
12985 .) ac_srcdir=.
12986 if test -z "$ac_dots"; then
12987 ac_top_srcdir=.
12988 else
12989 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12990 fi ;;
12991 [\\/]* | ?:[\\/]* )
12992 ac_srcdir=$srcdir$ac_dir_suffix;
12993 ac_top_srcdir=$srcdir ;;
12994 *) # Relative path.
12995 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12996 ac_top_srcdir=$ac_dots$srcdir ;;
12997 esac
12999 case $INSTALL in
13000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13001 *) ac_INSTALL=$ac_dots$INSTALL ;;
13002 esac
13004 if test x"$ac_file" != x-; then
13005 { echo "$as_me:13005: creating $ac_file" >&5
13006 echo "$as_me: creating $ac_file" >&6;}
13007 rm -f "$ac_file"
13009 # Let's still pretend it is `configure' which instantiates (i.e., don't
13010 # use $as_me), people would be surprised to read:
13011 # /* config.h. Generated automatically by config.status. */
13012 configure_input="Generated automatically from `echo $ac_file_in |
13013 sed 's,.*/,,'` by configure."
13015 # First look for the input files in the build tree, otherwise in the
13016 # src tree.
13017 ac_file_inputs=`IFS=:
13018 for f in $ac_file_in; do
13019 case $f in
13020 -) echo $tmp/stdin ;;
13021 [\\/$]*)
13022 # Absolute (can't be DOS-style, as IFS=:)
13023 test -f "$f" || { { echo "$as_me:13023: error: cannot find input file: $f" >&5
13024 echo "$as_me: error: cannot find input file: $f" >&2;}
13025 { (exit 1); exit 1; }; }
13026 echo $f;;
13027 *) # Relative
13028 if test -f "$f"; then
13029 # Build tree
13030 echo $f
13031 elif test -f "$srcdir/$f"; then
13032 # Source tree
13033 echo $srcdir/$f
13034 else
13035 # /dev/null tree
13036 { { echo "$as_me:13036: error: cannot find input file: $f" >&5
13037 echo "$as_me: error: cannot find input file: $f" >&2;}
13038 { (exit 1); exit 1; }; }
13039 fi;;
13040 esac
13041 done` || { (exit 1); exit 1; }
13043 cat >>$CONFIG_STATUS <<EOF
13044 sed "$ac_vpsub
13045 $extrasub
13047 cat >>$CONFIG_STATUS <<\EOF
13049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13050 s,@configure_input@,$configure_input,;t t
13051 s,@srcdir@,$ac_srcdir,;t t
13052 s,@top_srcdir@,$ac_top_srcdir,;t t
13053 s,@INSTALL@,$ac_INSTALL,;t t
13054 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13055 rm -f $tmp/stdin
13056 if test x"$ac_file" != x-; then
13057 mv $tmp/out $ac_file
13058 else
13059 cat $tmp/out
13060 rm -f $tmp/out
13063 done
13065 cat >>$CONFIG_STATUS <<\EOF
13068 # CONFIG_HEADER section.
13071 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13072 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13074 # ac_d sets the value in "#define NAME VALUE" lines.
13075 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13076 ac_dB='[ ].*$,\1#\2'
13077 ac_dC=' '
13078 ac_dD=',;t'
13079 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13080 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13081 ac_uB='$,\1#\2define\3'
13082 ac_uC=' '
13083 ac_uD=',;t'
13085 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13087 case $ac_file in
13088 - | *:- | *:-:* ) # input from stdin
13089 cat >$tmp/stdin
13090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13094 * ) ac_file_in=$ac_file.in ;;
13095 esac
13097 test x"$ac_file" != x- && { echo "$as_me:13097: creating $ac_file" >&5
13098 echo "$as_me: creating $ac_file" >&6;}
13100 # First look for the input files in the build tree, otherwise in the
13101 # src tree.
13102 ac_file_inputs=`IFS=:
13103 for f in $ac_file_in; do
13104 case $f in
13105 -) echo $tmp/stdin ;;
13106 [\\/$]*)
13107 # Absolute (can't be DOS-style, as IFS=:)
13108 test -f "$f" || { { echo "$as_me:13108: error: cannot find input file: $f" >&5
13109 echo "$as_me: error: cannot find input file: $f" >&2;}
13110 { (exit 1); exit 1; }; }
13111 echo $f;;
13112 *) # Relative
13113 if test -f "$f"; then
13114 # Build tree
13115 echo $f
13116 elif test -f "$srcdir/$f"; then
13117 # Source tree
13118 echo $srcdir/$f
13119 else
13120 # /dev/null tree
13121 { { echo "$as_me:13121: error: cannot find input file: $f" >&5
13122 echo "$as_me: error: cannot find input file: $f" >&2;}
13123 { (exit 1); exit 1; }; }
13124 fi;;
13125 esac
13126 done` || { (exit 1); exit 1; }
13127 # Remove the trailing spaces.
13128 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13132 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13133 # `conftest.undefs', that substitutes the proper values into
13134 # config.h.in to produce config.h. The first handles `#define'
13135 # templates, and the second `#undef' templates.
13136 # And first: Protect against being on the right side of a sed subst in
13137 # config.status. Protect against being in an unquoted here document
13138 # in config.status.
13139 rm -f conftest.defines conftest.undefs
13140 # Using a here document instead of a string reduces the quoting nightmare.
13141 # Putting comments in sed scripts is not portable.
13143 # `end' is used to avoid that the second main sed command (meant for
13144 # 0-ary CPP macros) applies to n-ary macro definitions.
13145 # See the Autoconf documentation for `clear'.
13146 cat >confdef2sed.sed <<\EOF
13147 s/[\\&,]/\\&/g
13148 s,[\\$`],\\&,g
13149 t clear
13150 : clear
13151 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13152 t end
13153 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13154 : end
13156 # If some macros were called several times there might be several times
13157 # the same #defines, which is useless. Nevertheless, we may not want to
13158 # sort them, since we want the *last* AC-DEFINE to be honored.
13159 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13160 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13161 rm -f confdef2sed.sed
13163 # This sed command replaces #undef with comments. This is necessary, for
13164 # example, in the case of _POSIX_SOURCE, which is predefined and required
13165 # on some systems where configure will not decide to define it.
13166 cat >>conftest.undefs <<\EOF
13167 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13170 # Break up conftest.defines because some shells have a limit on the size
13171 # of here documents, and old seds have small limits too (100 cmds).
13172 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13173 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13174 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13175 echo ' :' >>$CONFIG_STATUS
13176 rm -f conftest.tail
13177 while grep . conftest.defines >/dev/null
13179 # Write a limited-size here document to $tmp/defines.sed.
13180 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13181 # Speed up: don't consider the non `#define' lines.
13182 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13183 # Work around the forget-to-reset-the-flag bug.
13184 echo 't clr' >>$CONFIG_STATUS
13185 echo ': clr' >>$CONFIG_STATUS
13186 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13187 echo 'CEOF
13188 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13189 rm -f $tmp/in
13190 mv $tmp/out $tmp/in
13191 ' >>$CONFIG_STATUS
13192 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13193 rm -f conftest.defines
13194 mv conftest.tail conftest.defines
13195 done
13196 rm -f conftest.defines
13197 echo ' fi # egrep' >>$CONFIG_STATUS
13198 echo >>$CONFIG_STATUS
13200 # Break up conftest.undefs because some shells have a limit on the size
13201 # of here documents, and old seds have small limits too (100 cmds).
13202 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13203 rm -f conftest.tail
13204 while grep . conftest.undefs >/dev/null
13206 # Write a limited-size here document to $tmp/undefs.sed.
13207 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13208 # Speed up: don't consider the non `#undef'
13209 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13210 # Work around the forget-to-reset-the-flag bug.
13211 echo 't clr' >>$CONFIG_STATUS
13212 echo ': clr' >>$CONFIG_STATUS
13213 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13214 echo 'CEOF
13215 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13216 rm -f $tmp/in
13217 mv $tmp/out $tmp/in
13218 ' >>$CONFIG_STATUS
13219 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13220 rm -f conftest.undefs
13221 mv conftest.tail conftest.undefs
13222 done
13223 rm -f conftest.undefs
13225 cat >>$CONFIG_STATUS <<\EOF
13226 # Let's still pretend it is `configure' which instantiates (i.e., don't
13227 # use $as_me), people would be surprised to read:
13228 # /* config.h. Generated automatically by config.status. */
13229 if test x"$ac_file" = x-; then
13230 echo "/* Generated automatically by configure. */" >$tmp/config.h
13231 else
13232 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13234 cat $tmp/in >>$tmp/config.h
13235 rm -f $tmp/in
13236 if test x"$ac_file" != x-; then
13237 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13238 { echo "$as_me:13238: $ac_file is unchanged" >&5
13239 echo "$as_me: $ac_file is unchanged" >&6;}
13240 else
13241 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13242 X"$ac_file" : 'X\(//\)[^/]' \| \
13243 X"$ac_file" : 'X\(//\)$' \| \
13244 X"$ac_file" : 'X\(/\)' \| \
13245 . : '\(.\)' 2>/dev/null ||
13246 echo X"$ac_file" |
13247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13249 /^X\(\/\/\)$/{ s//\1/; q; }
13250 /^X\(\/\).*/{ s//\1/; q; }
13251 s/.*/./; q'`
13252 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13253 { case "$ac_dir" in
13254 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13255 *) as_incr_dir=.;;
13256 esac
13257 as_dummy="$ac_dir"
13258 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13259 case $as_mkdir_dir in
13260 # Skip DOS drivespec
13261 ?:) as_incr_dir=$as_mkdir_dir ;;
13263 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13264 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13266 esac
13267 done; }
13270 rm -f $ac_file
13271 mv $tmp/config.h $ac_file
13273 else
13274 cat $tmp/config.h
13275 rm -f $tmp/config.h
13277 done
13279 cat >>$CONFIG_STATUS <<\EOF
13282 # CONFIG_COMMANDS section.
13284 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13285 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13286 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13288 case $ac_dest in
13289 default )
13291 ### Make the necessary directories, if they don't exist.
13292 for dir in etc lisp ; do
13293 test -d ${dir} || mkdir ${dir}
13294 done
13296 # Build src/Makefile from ${srcdir}/src/Makefile.c
13297 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13298 # This must be done after src/config.h is built, since we rely on that file.
13300 # Now get this: Some word that is part of the ${srcdir} directory name
13301 # or the ${configuration} value might, just might, happen to be an
13302 # identifier like `sun4' or `i386' or something, and be predefined by
13303 # the C preprocessor to some helpful value like 1, or maybe the empty
13304 # string. Needless to say consequent macro substitutions are less
13305 # than conducive to the makefile finding the correct directory.
13306 undefs="`echo $top_srcdir $configuration $canonical |
13307 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13308 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13311 echo creating src/epaths.h
13312 ${MAKE-make} epaths-force
13314 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13315 # `..' to `. .' unless invoked with -traditional
13317 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13318 CPPFLAGS="$CPPFLAGS -traditional"
13321 echo creating lib-src/Makefile
13322 ( cd lib-src
13323 rm -f junk.c junk1.c junk2.c
13324 sed -e '/start of cpp stuff/q' \
13325 < Makefile.c > junk1.c
13326 sed -e '1,/start of cpp stuff/d'\
13327 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13328 < Makefile.c > junk.c
13329 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13330 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13331 cat junk1.c junk2.c > Makefile.new
13332 rm -f junk.c junk1.c junk2.c
13333 chmod 444 Makefile.new
13334 mv -f Makefile.new Makefile
13337 echo creating src/Makefile
13338 ( cd src
13339 rm -f junk.c junk1.c junk2.c
13340 sed -e '/start of cpp stuff/q' \
13341 < Makefile.c > junk1.c
13342 sed -e '1,/start of cpp stuff/d'\
13343 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13344 < Makefile.c > junk.c
13345 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13346 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13347 cat junk1.c junk2.c > Makefile.new
13348 rm -f junk.c junk1.c junk2.c
13349 chmod 444 Makefile.new
13350 mv -f Makefile.new Makefile
13353 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13354 echo creating src/.gdbinit
13355 echo source $srcdir/src/.gdbinit > src/.gdbinit
13358 # This is how we know whether to re-run configure in certain cases.
13359 touch src/config.stamp
13362 esac
13363 done
13366 cat >>$CONFIG_STATUS <<\EOF
13368 { (exit 0); exit 0; }
13370 chmod +x $CONFIG_STATUS
13371 ac_clean_files=$ac_clean_files_save
13373 # configure is writing to config.log, and then calls config.status.
13374 # config.status does its own redirection, appending to config.log.
13375 # Unfortunately, on DOS this fails, as config.log is still kept open
13376 # by configure, so config.status won't be able to write to it; its
13377 # output is simply discarded. So we exec the FD to /dev/null,
13378 # effectively closing config.log, so it can be properly (re)opened and
13379 # appended to by config.status. When coming back to configure, we
13380 # need to make the FD available again.
13381 if test "$no_create" != yes; then
13382 ac_cs_success=:
13383 exec 5>/dev/null
13384 $SHELL $CONFIG_STATUS || ac_cs_success=false
13385 exec 5>>config.log
13386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13387 # would make configure fail if this is the last instruction.
13388 $ac_cs_success || { (exit 1); exit 1; }