(ls-lisp-format-time-list): Fix type and provide :tag's.
[emacs.git] / configure
blobd96eedbda83948a20ea9a6fc3a654c45581fd671
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 --without-sound don't compile with sound support
690 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
691 --with-xpm use -lXpm for displaying XPM images
692 --with-jpeg use -ljpeg for displaying JPEG images
693 --with-tiff use -ltiff for displaying TIFF images
694 --with-gif use -lungif for displaying GIF images
695 --with-png use -lpng for displaying PNG images
696 --without-toolkit-scroll-bars
697 don't use Motif or Xaw3d scroll bars
698 --without-xim don't use X11 XIM
699 --without-carbon don't use Carbon GUI on Mac OS X
700 --with-x use the X Window System
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
709 CPP C preprocessor
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
719 ac_popdir=`pwd`
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
721 cd $ac_subdir
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
726 case $srcdir in
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
731 *) # Relative path.
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
733 esac
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
737 echo
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
740 echo
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
744 echo
745 $ac_configure --help
746 else
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749 cd $ac_popdir
750 done
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
755 cat <<\EOF
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
762 exit 0
764 exec 5>config.log
765 cat >&5 <<EOF
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52. Invocation command line was
772 $ $0 $@
776 cat <<_ASUNAME
777 ## ---------- ##
778 ## Platform. ##
779 ## ---------- ##
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
798 PATH = $PATH
800 _ASUNAME
801 } >&5
803 cat >&5 <<EOF
804 ## ------------ ##
805 ## Core tests. ##
806 ## ------------ ##
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
813 ac_configure_args=
814 ac_sep=
815 for ac_arg
817 case $ac_arg in
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
825 ac_sep=" " ;;
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
827 ac_sep=" " ;;
828 esac
829 # Get rid of the leading space.
830 done
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
835 trap 'exit_status=$?
836 # Save into config.log some information that might help in debugging.
837 echo >&5
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
841 echo >&5
842 # The following way of writing the cache mishandles newlines in values,
844 (set) 2>&1 |
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
846 *ac_space=\ *)
847 sed -n \
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
852 sed -n \
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855 esac;
856 } >&5
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
859 echo >&5
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
863 echo >&5
864 cat conftest.log >&5
866 (echo; echo) >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
871 exit $exit_status
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
875 done
876 ac_signal=0
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 echo >confdefs.h
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
888 else
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
897 . "$ac_site_file"
899 done
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
907 case $cache_file in
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 *) . ./$cache_file;;
910 esac
912 else
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
915 >$cache_file
918 # Check that the precious variables saved in the cache have kept the same
919 # value.
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
928 set,)
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
932 ,set)
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
936 ,);;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
945 ac_cache_corrupted=:
946 fi;;
947 esac
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
951 case $ac_new_val in
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
958 esac
960 done
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
969 ac_ext=c
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
976 *c*,-n*) ECHO_N= ECHO_C='
977 ' ECHO_T=' ' ;;
978 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
979 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
980 esac
981 echo "#! $SHELL" >conftest.sh
982 echo "exit 0" >>conftest.sh
983 chmod +x conftest.sh
984 if { (echo "$as_me:984: PATH=\".;.\"; conftest.sh") >&5
985 (PATH=".;."; conftest.sh) 2>&5
986 ac_status=$?
987 echo "$as_me:987: \$? = $ac_status" >&5
988 (exit $ac_status); }; then
989 ac_path_separator=';'
990 else
991 ac_path_separator=:
993 PATH_SEPARATOR="$ac_path_separator"
994 rm -f conftest.sh
996 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
998 test "$program_prefix" != NONE &&
999 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1000 # Use a double $ so make ignores it.
1001 test "$program_suffix" != NONE &&
1002 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1003 # Double any \ or $. echo might interpret backslashes.
1004 # By default was `s,x,x', remove it if useless.
1005 cat <<\_ACEOF >conftest.sed
1006 s/[\\$]/&&/g;s/;s,x,x,$//
1007 _ACEOF
1008 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1009 rm conftest.sed
1011 lispdir='${datadir}/emacs/${version}/lisp'
1012 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1013 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1014 lisppath='${locallisppath}:${lispdir}'
1015 etcdir='${datadir}/emacs/${version}/etc'
1016 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1017 docdir='${datadir}/emacs/${version}/etc'
1018 gamedir='${localstatedir}/games/emacs'
1020 gameuser=games
1022 # Check whether --with-gcc or --without-gcc was given.
1023 if test "${with_gcc+set}" = set; then
1024 withval="$with_gcc"
1028 # Check whether --with-pop or --without-pop was given.
1029 if test "${with_pop+set}" = set; then
1030 withval="$with_pop"
1031 if test "$withval" = yes; then
1032 cat >>confdefs.h <<\EOF
1033 #define MAIL_USE_POP 1
1036 else :
1038 else
1039 cat >>confdefs.h <<\EOF
1040 #define MAIL_USE_POP 1
1045 # Check whether --with-kerberos or --without-kerberos was given.
1046 if test "${with_kerberos+set}" = set; then
1047 withval="$with_kerberos"
1048 cat >>confdefs.h <<\EOF
1049 #define KERBEROS 1
1054 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1055 if test "${with_kerberos5+set}" = set; then
1056 withval="$with_kerberos5"
1057 if test "${with_kerberos5+set}" = set; then
1058 if test "${with_kerberos+set}" != set; then
1059 with_kerberos=yes
1060 cat >>confdefs.h <<\EOF
1061 #define KERBEROS 1
1067 cat >>confdefs.h <<\EOF
1068 #define KERBEROS5 1
1073 # Check whether --with-hesiod or --without-hesiod was given.
1074 if test "${with_hesiod+set}" = set; then
1075 withval="$with_hesiod"
1077 cat >>confdefs.h <<\EOF
1078 #define HESIOD 1
1083 # Check whether --with-sound or --without-sound was given.
1084 if test "${with_sound+set}" = set; then
1085 withval="$with_sound"
1089 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1090 if test "${with_x_toolkit+set}" = set; then
1091 withval="$with_x_toolkit"
1092 case "${withval}" in
1093 y | ye | yes ) val=athena ;;
1094 n | no ) val=no ;;
1095 l | lu | luc | luci | lucid ) val=lucid ;;
1096 a | at | ath | athe | athen | athena ) val=athena ;;
1097 m | mo | mot | moti | motif ) val=motif ;;
1099 { { echo "$as_me:1099: error: \`--with-x-toolkit=$withval' is invalid\;
1100 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1101 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1102 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1103 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1104 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1105 { (exit 1); exit 1; }; }
1107 esac
1108 with_x_toolkit=$val
1112 # Check whether --with-xpm or --without-xpm was given.
1113 if test "${with_xpm+set}" = set; then
1114 withval="$with_xpm"
1118 # Check whether --with-jpeg or --without-jpeg was given.
1119 if test "${with_jpeg+set}" = set; then
1120 withval="$with_jpeg"
1124 # Check whether --with-tiff or --without-tiff was given.
1125 if test "${with_tiff+set}" = set; then
1126 withval="$with_tiff"
1130 # Check whether --with-gif or --without-gif was given.
1131 if test "${with_gif+set}" = set; then
1132 withval="$with_gif"
1136 # Check whether --with-png or --without-png was given.
1137 if test "${with_png+set}" = set; then
1138 withval="$with_png"
1142 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1143 if test "${with_toolkit_scroll_bars+set}" = set; then
1144 withval="$with_toolkit_scroll_bars"
1148 # Check whether --with-xim or --without-xim was given.
1149 if test "${with_xim+set}" = set; then
1150 withval="$with_xim"
1154 # Check whether --with-carbon or --without-carbon was given.
1155 if test "${with_carbon+set}" = set; then
1156 withval="$with_carbon"
1160 #### Make srcdir absolute, if it isn't already. It's important to
1161 #### avoid running the path through pwd unnecessarily, since pwd can
1162 #### give you automounter prefixes, which can go away. We do all this
1163 #### so Emacs can find its files when run uninstalled.
1164 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1165 unset CDPATH
1166 case "${srcdir}" in
1167 /* ) ;;
1169 ## We may be able to use the $PWD environment variable to make this
1170 ## absolute. But sometimes PWD is inaccurate.
1171 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1172 ## but that tested only for a well-formed and valid PWD,
1173 ## it did not object when PWD was well-formed and valid but just wrong.
1174 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1175 then
1176 srcdir="$PWD"
1177 else
1178 srcdir="`(cd ${srcdir}; pwd)`"
1181 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1182 esac
1184 #### Check if the source directory already has a configured system in it.
1185 if test `pwd` != `(cd ${srcdir} && pwd)` \
1186 && test -f "${srcdir}/src/config.h" ; then
1187 { echo "$as_me:1187: WARNING: The directory tree \`${srcdir}' is being used
1188 as a build directory right now; it has been configured in its own
1189 right. To configure in another directory as well, you MUST
1190 use GNU make. If you do not have GNU make, then you must
1191 now do \`make distclean' in ${srcdir},
1192 and then run $0 again." >&5
1193 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1194 as a build directory right now; it has been configured in its own
1195 right. To configure in another directory as well, you MUST
1196 use GNU make. If you do not have GNU make, then you must
1197 now do \`make distclean' in ${srcdir},
1198 and then run $0 again." >&2;}
1200 extrasub='/^VPATH[ ]*=/c\
1201 vpath %.c $(srcdir)\
1202 vpath %.h $(srcdir)\
1203 vpath %.y $(srcdir)\
1204 vpath %.l $(srcdir)\
1205 vpath %.s $(srcdir)\
1206 vpath %.in $(srcdir)\
1207 vpath %.texi $(srcdir)'
1210 #### Given the configuration name, set machfile and opsysfile to the
1211 #### names of the m/*.h and s/*.h files we should use.
1213 ### Canonicalize the configuration name.
1215 ac_aux_dir=
1216 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1217 if test -f $ac_dir/install-sh; then
1218 ac_aux_dir=$ac_dir
1219 ac_install_sh="$ac_aux_dir/install-sh -c"
1220 break
1221 elif test -f $ac_dir/install.sh; then
1222 ac_aux_dir=$ac_dir
1223 ac_install_sh="$ac_aux_dir/install.sh -c"
1224 break
1225 elif test -f $ac_dir/shtool; then
1226 ac_aux_dir=$ac_dir
1227 ac_install_sh="$ac_aux_dir/shtool install -c"
1228 break
1230 done
1231 if test -z "$ac_aux_dir"; then
1232 { { echo "$as_me:1232: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1233 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1234 { (exit 1); exit 1; }; }
1236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1238 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1240 # Make sure we can run config.sub.
1241 $ac_config_sub sun4 >/dev/null 2>&1 ||
1242 { { echo "$as_me:1242: error: cannot run $ac_config_sub" >&5
1243 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1244 { (exit 1); exit 1; }; }
1246 echo "$as_me:1246: checking build system type" >&5
1247 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1248 if test "${ac_cv_build+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1250 else
1251 ac_cv_build_alias=$build_alias
1252 test -z "$ac_cv_build_alias" &&
1253 ac_cv_build_alias=`$ac_config_guess`
1254 test -z "$ac_cv_build_alias" &&
1255 { { echo "$as_me:1255: error: cannot guess build type; you must specify one" >&5
1256 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1257 { (exit 1); exit 1; }; }
1258 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1259 { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1260 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1261 { (exit 1); exit 1; }; }
1264 echo "$as_me:1264: result: $ac_cv_build" >&5
1265 echo "${ECHO_T}$ac_cv_build" >&6
1266 build=$ac_cv_build
1267 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1268 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1269 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1271 echo "$as_me:1271: checking host system type" >&5
1272 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1273 if test "${ac_cv_host+set}" = set; then
1274 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 else
1276 ac_cv_host_alias=$host_alias
1277 test -z "$ac_cv_host_alias" &&
1278 ac_cv_host_alias=$ac_cv_build_alias
1279 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1280 { { echo "$as_me:1280: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1281 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1282 { (exit 1); exit 1; }; }
1285 echo "$as_me:1285: result: $ac_cv_host" >&5
1286 echo "${ECHO_T}$ac_cv_host" >&6
1287 host=$ac_cv_host
1288 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1289 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1290 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 canonical=$host
1293 configuration=${host_alias-$host}
1295 ### If you add support for a new configuration, add code to this
1296 ### switch statement to recognize your configuration name and select
1297 ### the appropriate operating system and machine description files.
1299 ### You would hope that you could choose an m/*.h file pretty much
1300 ### based on the machine portion of the configuration name, and an s-
1301 ### file based on the operating system portion. However, it turns out
1302 ### that each m/*.h file is pretty manufacturer-specific - for
1303 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1304 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1305 ### machines. So we basically have to have a special case for each
1306 ### configuration name.
1308 ### As far as handling version numbers on operating systems is
1309 ### concerned, make sure things will fail in a fixable way. If
1310 ### /etc/MACHINES doesn't say anything about version numbers, be
1311 ### prepared to handle anything reasonably. If version numbers
1312 ### matter, be sure /etc/MACHINES says something about it.
1314 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1315 ### "System V Release 4"; he writes, "The old convention encouraged
1316 ### confusion between `system' and `release' levels'."
1318 machine='' opsys='' unported=no
1319 case "${canonical}" in
1321 ## FreeBSD ports
1322 *-*-freebsd* )
1323 opsys=freebsd
1324 case "${canonical}" in
1325 alpha*-*-freebsd*) machine=alpha ;;
1326 i[3456]86-*-freebsd*) machine=intel386 ;;
1327 esac
1330 ## NetBSD ports
1331 *-*-netbsd* )
1332 opsys=netbsd
1333 case "${canonical}" in
1334 alpha*-*-netbsd*) machine=alpha ;;
1335 i[3456]86-*-netbsd*) machine=intel386 ;;
1336 m68k-*-netbsd*)
1337 # This is somewhat bogus.
1338 machine=hp9000s300 ;;
1339 powerpc-apple-netbsd*) machine=macppc ;;
1340 mips-*-netbsd*) machine=pmax ;;
1341 mipsel-*-netbsd*) machine=pmax ;;
1342 mipseb-*-netbsd*) machine=pmax ;;
1343 ns32k-*-netbsd*) machine=ns32000 ;;
1344 powerpc-*-netbsd*) machine=macppc ;;
1345 sparc*-*-netbsd*) machine=sparc ;;
1346 vax-*-netbsd*) machine=vax ;;
1347 arm-*-netbsd*) machine=arm ;;
1348 esac
1351 ## OpenBSD ports
1352 *-*-openbsd* )
1353 opsys=openbsd
1354 case "${canonical}" in
1355 alpha*-*-openbsd*) machine=alpha ;;
1356 i386-*-openbsd*) machine=intel386 ;;
1357 m68k-*-openbsd*) machine=hp9000s300 ;;
1358 mipsel-*-openbsd*) machine=pmax ;;
1359 ns32k-*-openbsd*) machine=ns32000 ;;
1360 sparc-*-openbsd*) machine=sparc ;;
1361 vax-*-openbsd*) machine=vax ;;
1362 esac
1365 ## Acorn RISCiX:
1366 arm-acorn-riscix1.1* )
1367 machine=acorn opsys=riscix1-1
1369 arm-acorn-riscix1.2* | arm-acorn-riscix )
1370 ## This name is riscix12 instead of riscix1.2
1371 ## to avoid a file name conflict on MSDOS.
1372 machine=acorn opsys=riscix12
1375 ## BSDI ports
1376 *-*-bsdi* )
1377 opsys=bsdi
1378 case "${canonical}" in
1379 i[345]86-*-bsdi*) machine=intel386 ;;
1380 sparc-*-bsdi*) machine=sparc ;;
1381 powerpc-*-bsdi*) machine=macppc ;;
1382 esac
1383 case "${canonical}" in
1384 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1385 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1386 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1387 *-*-bsdi3* ) opsys=bsdos3 ;;
1388 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1389 esac
1392 ## Alliant machines
1393 ## Strictly speaking, we need the version of the alliant operating
1394 ## system to choose the right machine file, but currently the
1395 ## configuration name doesn't tell us enough to choose the right
1396 ## one; we need to give alliants their own operating system name to
1397 ## do this right. When someone cares, they can help us.
1398 fx80-alliant-* )
1399 machine=alliant4 opsys=bsd4-2
1401 i860-alliant-* )
1402 machine=alliant-2800 opsys=bsd4-3
1405 ## Alpha (DEC) machines.
1406 alpha*-dec-osf* )
1407 machine=alpha opsys=osf1
1408 # This is needed to find X11R6.1 libraries for certain tests.
1409 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1410 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1411 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1412 # due to non-traditional preprocessing with the current compiler
1413 # defaults. OSF 4 can also have that compiler version, and there
1414 # seems always to have been a usable /usr/bin/cpp.
1415 NON_GNU_CPP=/usr/bin/cpp
1416 case "${canonical}" in
1417 alpha*-dec-osf[5-9]*)
1418 opsys=osf5-0 ;;
1419 esac
1422 alpha*-*-linux-gnu* )
1423 machine=alpha opsys=gnu-linux
1426 arm*-*-linux-gnu* )
1427 machine=arm opsys=gnu-linux
1430 ppc-*-linux | \
1431 powerpc-*-linux* )
1432 machine=macppc opsys=gnu-linux
1435 ## Altos 3068
1436 m68*-altos-sysv* )
1437 machine=altos opsys=usg5-2
1440 ## Amdahl UTS
1441 580-amdahl-sysv* )
1442 machine=amdahl opsys=usg5-2-2
1445 ## Apollo, Domain/OS
1446 m68*-apollo-* )
1447 machine=apollo opsys=bsd4-3
1450 ## AT&T 3b2, 3b5, 3b15, 3b20
1451 we32k-att-sysv* )
1452 machine=att3b opsys=usg5-2-2
1455 ## AT&T 3b1 - The Mighty Unix PC!
1456 m68*-att-sysv* )
1457 machine=7300 opsys=usg5-2-2
1460 ## Bull dpx20
1461 rs6000-bull-bosx* )
1462 machine=ibmrs6000 opsys=aix3-2
1465 ## Bull dpx2
1466 m68*-bull-sysv3* )
1467 machine=dpx2 opsys=usg5-3
1470 ## Bull sps7
1471 m68*-bull-sysv2* )
1472 machine=sps7 opsys=usg5-2
1475 ## CCI 5/32, 6/32 -- see "Tahoe".
1477 ## Celerity
1478 ## I don't know what configuration name to use for this; config.sub
1479 ## doesn't seem to know anything about it. Hey, Celerity users, get
1480 ## in touch with us!
1481 celerity-celerity-bsd* )
1482 machine=celerity opsys=bsd4-2
1485 ## Clipper
1486 ## What operating systems does this chip run that Emacs has been
1487 ## tested on?
1488 clipper-* )
1489 machine=clipper
1490 ## We'll use the catch-all code at the bottom to guess the
1491 ## operating system.
1494 ## Compaq Nonstop
1495 mips-compaq-nonstopux* )
1496 machine=nonstopux opsys=nonstopux
1499 ## Convex
1500 *-convex-bsd* | *-convex-convexos* )
1501 machine=convex opsys=bsd4-3
1502 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1503 NON_GNU_CPP="cc -E -P"
1506 ## Cubix QBx/386
1507 i[3456]86-cubix-sysv* )
1508 machine=intel386 opsys=usg5-3
1511 ## Cydra 5
1512 cydra*-cydrome-sysv* )
1513 machine=cydra5 opsys=usg5-3
1516 ## Data General AViiON Machines
1517 ## DG changed naming conventions with the release of 5.4.4.10, they
1518 ## dropped the initial 5.4 but left the intervening R. Because of the
1519 ## R this shouldn't conflict with older versions of the OS (which I
1520 ## think were named like dgux4.*). In addition, DG new AViiONs series
1521 ## uses either Motorola M88k or Intel Pentium CPUs.
1522 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1523 machine=aviion opsys=dgux4
1525 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1526 ## This name is dgux5-4-3 instead of dgux5-4r3
1527 ## to avoid a file name conflict on MSDOS.
1528 machine=aviion opsys=dgux5-4-3
1530 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1531 machine=aviion opsys=dgux5-4r2
1533 m88k-dg-dgux* )
1534 machine=aviion opsys=dgux
1537 ## Data General AViiON Intel (x86) Machines
1538 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1539 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1540 i[345]86-dg-dguxR4* )
1541 machine=aviion-intel opsys=dgux4
1544 ## DECstations
1545 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1546 machine=pmax opsys=bsd4-2
1548 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1549 machine=pmax opsys=bsd4-3
1551 mips-dec-ultrix* )
1552 machine=pmax opsys=ultrix4-3
1554 mips-dec-osf* )
1555 machine=pmax opsys=osf1
1557 mips-dec-mach_bsd4.3* )
1558 machine=pmax opsys=mach-bsd4-3
1561 ## Motorola Delta machines
1562 m68k-motorola-sysv* | m68000-motorola-sysv* )
1563 machine=delta opsys=usg5-3
1564 if test -z "`type gnucc | grep 'not found'`"
1565 then
1566 if test -s /etc/167config
1567 then CC="gnucc -m68040"
1568 else CC="gnucc -m68881"
1570 else
1571 if test -z "`type gcc | grep 'not found'`"
1572 then CC=gcc
1573 else CC=cc
1577 m88k-motorola-sysv4* )
1578 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1579 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1580 # I hope there are not other 4.0 versions for this machine
1581 # which really need usg5-4 instead.
1582 machine=delta88k opsys=usg5-4-2
1584 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1585 machine=delta88k opsys=usg5-3
1588 ## Dual machines
1589 m68*-dual-sysv* )
1590 machine=dual opsys=usg5-2
1592 m68*-dual-uniplus* )
1593 machine=dual opsys=unipl5-2
1596 ## Elxsi 6400
1597 elxsi-elxsi-sysv* )
1598 machine=elxsi opsys=usg5-2
1601 ## Encore machines
1602 ns16k-encore-bsd* )
1603 machine=ns16000 opsys=umax
1606 ## The GEC 63 - apparently, this port isn't really finished yet.
1607 # I'm sure we finished off the last of the machines, though. -- fx
1609 ## Gould Power Node and NP1
1610 pn-gould-bsd4.2* )
1611 machine=gould opsys=bsd4-2
1613 pn-gould-bsd4.3* )
1614 machine=gould opsys=bsd4-3
1616 np1-gould-bsd* )
1617 machine=gould-np1 opsys=bsd4-3
1620 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1621 ## as far as Emacs is concerned).
1622 m88k-harris-cxux* )
1623 # Build needs to be different on 7.0 and later releases
1624 case "`uname -r`" in
1625 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1626 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1627 esac
1628 NON_GNU_CPP="/lib/cpp"
1630 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1631 m68k-harris-cxux* )
1632 machine=nh3000 opsys=cxux
1634 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1635 powerpc-harris-powerunix )
1636 machine=nh6000 opsys=powerunix
1637 NON_GNU_CPP="cc -Xo -E -P"
1639 ## SR2001/SR2201 running HI-UX/MPP
1640 hppa1.1-hitachi-hiuxmpp* )
1641 machine=sr2k opsys=hiuxmpp
1643 hppa1.1-hitachi-hiuxwe2* )
1644 machine=sr2k opsys=hiuxwe2
1646 ## Honeywell XPS100
1647 xps*-honeywell-sysv* )
1648 machine=xps100 opsys=usg5-2
1651 ## HP 9000 series 200 or 300
1652 m68*-hp-bsd* )
1653 machine=hp9000s300 opsys=bsd4-3
1655 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1656 m68*-hp-hpux* )
1657 case "`uname -r`" in
1658 ## Someone's system reports A.B8.05 for this.
1659 ## I wonder what other possibilities there are.
1660 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1661 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1662 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1663 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1664 *) machine=hp9000s300 opsys=hpux ;;
1665 esac
1668 ## HP 9000 series 700 and 800, running HP/UX
1669 hppa*-hp-hpux7* )
1670 machine=hp800 opsys=hpux
1672 hppa*-hp-hpux8* )
1673 machine=hp800 opsys=hpux8
1675 hppa*-hp-hpux9shr* )
1676 machine=hp800 opsys=hpux9shr
1678 hppa*-hp-hpux9* )
1679 machine=hp800 opsys=hpux9
1681 hppa*-hp-hpux10* )
1682 machine=hp800 opsys=hpux10
1684 hppa*-hp-hpux1[1-9]* )
1685 machine=hp800 opsys=hpux11
1688 hppa*-*-linux-gnu* )
1689 machine=hp800 opsys=gnu-linux
1692 ## HP 9000 series 700 and 800, running HP/UX
1693 hppa*-hp-hpux* )
1694 ## Cross-compilation? Nah!
1695 case "`uname -r`" in
1696 ## Someone's system reports A.B8.05 for this.
1697 ## I wonder what other possibilities there are.
1698 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1699 *.08.* ) machine=hp800 opsys=hpux8 ;;
1700 *.09.* ) machine=hp800 opsys=hpux9 ;;
1701 *) machine=hp800 opsys=hpux10 ;;
1702 esac
1704 hppa*-*-nextstep* )
1705 machine=hp800 opsys=nextstep
1708 ## Orion machines
1709 orion-orion-bsd* )
1710 machine=orion opsys=bsd4-2
1712 clipper-orion-bsd* )
1713 machine=orion105 opsys=bsd4-2
1716 ## IBM machines
1717 i[3456]86-ibm-aix1.1* )
1718 machine=ibmps2-aix opsys=usg5-2-2
1720 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1721 machine=ibmps2-aix opsys=usg5-3
1723 i370-ibm-aix*)
1724 machine=ibm370aix opsys=usg5-3
1726 s390-*-linux-gnu)
1727 machine=ibms390 opsys=gnu-linux
1729 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1730 machine=ibmrs6000 opsys=aix3-1
1732 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1733 machine=ibmrs6000 opsys=aix3-2-5
1735 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1736 machine=ibmrs6000 opsys=aix4-1
1738 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1739 machine=ibmrs6000 opsys=aix4-2
1741 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1742 machine=ibmrs6000 opsys=aix4-2
1744 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1745 machine=ibmrs6000 opsys=aix4
1747 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1748 machine=ibmrs6000 opsys=aix4-1
1750 rs6000-ibm-aix* | powerpc-ibm-aix* )
1751 machine=ibmrs6000 opsys=aix3-2
1753 romp-ibm-bsd4.3* )
1754 machine=ibmrt opsys=bsd4-3
1756 romp-ibm-bsd4.2* )
1757 machine=ibmrt opsys=bsd4-2
1759 romp-ibm-aos4.3* )
1760 machine=ibmrt opsys=bsd4-3
1762 romp-ibm-aos4.2* )
1763 machine=ibmrt opsys=bsd4-2
1765 romp-ibm-aos* )
1766 machine=ibmrt opsys=bsd4-3
1768 romp-ibm-bsd* )
1769 machine=ibmrt opsys=bsd4-3
1771 romp-ibm-aix* )
1772 machine=ibmrt-aix opsys=usg5-2-2
1775 ## Integrated Solutions `Optimum V'
1776 m68*-isi-bsd4.2* )
1777 machine=isi-ov opsys=bsd4-2
1779 m68*-isi-bsd4.3* )
1780 machine=isi-ov opsys=bsd4-3
1783 ## Intel 386 machines where we do care about the manufacturer
1784 i[3456]86-intsys-sysv* )
1785 machine=is386 opsys=usg5-2-2
1788 ## Prime EXL
1789 i[3456]86-prime-sysv* )
1790 machine=i386 opsys=usg5-3
1793 ## Sequent Symmetry running Dynix
1794 i[3456]86-sequent-bsd* )
1795 machine=symmetry opsys=bsd4-3
1798 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1799 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1800 machine=sequent-ptx opsys=ptx4
1801 NON_GNU_CPP=/lib/cpp
1804 ## Sequent Symmetry running DYNIX/ptx
1805 ## Use the old cpp rather than the newer ANSI one.
1806 i[3456]86-sequent-ptx* )
1807 machine=sequent-ptx opsys=ptx
1808 NON_GNU_CPP="/lib/cpp"
1811 ## ncr machine running svr4.3.
1812 i[3456]86-ncr-sysv4.3 )
1813 machine=ncr386 opsys=usg5-4-3
1816 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1817 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1818 i[3456]86-ncr-sysv* )
1819 machine=ncr386 opsys=usg5-4-2
1822 ## Intel Paragon OSF/1
1823 i860-intel-osf1* )
1824 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1827 ## Intel 860
1828 i860-*-sysv4* )
1829 machine=i860 opsys=usg5-4
1830 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1831 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1834 ## Macintosh PowerPC
1835 powerpc*-*-linux-gnu* )
1836 machine=macppc opsys=gnu-linux
1839 ## Masscomp machines
1840 m68*-masscomp-rtu* )
1841 machine=masscomp opsys=rtu
1844 ## Megatest machines
1845 m68*-megatest-bsd* )
1846 machine=mega68 opsys=bsd4-2
1849 ## Workstations sold by MIPS
1850 ## This is not necessarily all workstations using the MIPS processor -
1851 ## Irises are produced by SGI, and DECstations by DEC.
1853 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1854 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1855 ## it gives for choosing between the alternatives seems to be "Use
1856 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1857 ## the BSD world." I'll assume that these are instructions for
1858 ## handling two odd situations, and that every other situation
1859 ## should use mips.h and usg5-2-2, they being listed first.
1860 mips-mips-usg* )
1861 machine=mips4
1862 ## Fall through to the general code at the bottom to decide on the OS.
1864 mips-mips-riscos4* )
1865 machine=mips4 opsys=bsd4-3
1866 NON_GNU_CC="cc -systype bsd43"
1867 NON_GNU_CPP="cc -systype bsd43 -E"
1869 mips-mips-riscos5* )
1870 machine=mips4 opsys=riscos5
1871 NON_GNU_CC="cc -systype bsd43"
1872 NON_GNU_CPP="cc -systype bsd43 -E"
1874 mips-mips-bsd* )
1875 machine=mips opsys=bsd4-3
1877 mips-mips-* )
1878 machine=mips opsys=usg5-2-2
1881 ## NeXT
1882 m68*-next-* | m68k-*-nextstep* )
1883 machine=m68k opsys=nextstep
1886 ## The complete machine from National Semiconductor
1887 ns32k-ns-genix* )
1888 machine=ns32000 opsys=usg5-2
1891 ## NCR machines
1892 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1893 machine=tower32 opsys=usg5-2-2
1895 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1896 machine=tower32v3 opsys=usg5-3
1899 ## NEC EWS4800
1900 mips-nec-sysv4*)
1901 machine=ews4800 opsys=ux4800
1904 ## Nixdorf Targon 31
1905 m68*-nixdorf-sysv* )
1906 machine=targon31 opsys=usg5-2-2
1909 ## Nu (TI or LMI)
1910 m68*-nu-sysv* )
1911 machine=nu opsys=usg5-2
1914 ## Plexus
1915 m68*-plexus-sysv* )
1916 machine=plexus opsys=usg5-2
1919 ## PowerPC reference platform
1920 powerpcle-*-solaris2.5* )
1921 machine=prep
1922 opsys=sol2-5
1925 ## PowerPC reference platform
1926 powerpcle-*-solaris2* )
1927 machine=prep
1928 opsys=sol2-6
1931 ## Pyramid machines
1932 ## I don't really have any idea what sort of processor the Pyramid has,
1933 ## so I'm assuming it is its own architecture.
1934 pyramid-pyramid-bsd* )
1935 machine=pyramid opsys=bsd4-2
1938 ## Sequent Balance
1939 ns32k-sequent-bsd4.2* )
1940 machine=sequent opsys=bsd4-2
1942 ns32k-sequent-bsd4.3* )
1943 machine=sequent opsys=bsd4-3
1946 ## Siemens Nixdorf
1947 mips-siemens-sysv* | mips-sni-sysv*)
1948 machine=mips-siemens opsys=usg5-4
1949 NON_GNU_CC=/usr/ccs/bin/cc
1950 NON_GNU_CPP=/usr/ccs/lib/cpp
1953 ## Silicon Graphics machines
1954 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1955 m68*-sgi-iris3.5* )
1956 machine=irist opsys=iris3-5
1958 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1959 machine=irist opsys=iris3-6
1961 ## Iris 4D
1962 mips-sgi-irix3* )
1963 machine=iris4d opsys=irix3-3
1965 mips-sgi-irix4* )
1966 machine=iris4d opsys=irix4-0
1968 mips-sgi-irix6.5 )
1969 machine=iris4d opsys=irix6-5
1970 # Without defining _LANGUAGE_C, things get masked out in the headers
1971 # so that, for instance, grepping for `free' in stdlib.h fails and
1972 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1973 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1974 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1976 mips-sgi-irix6* )
1977 machine=iris4d opsys=irix6-0
1978 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1979 # but presumably it does no harm.
1980 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1981 # -32 probably isn't necessary in later v.6s -- anyone know which?
1982 NON_GCC_TEST_OPTIONS=-32
1984 mips-sgi-irix5.[01]* )
1985 machine=iris4d opsys=irix5-0
1987 mips-sgi-irix5* | mips-sgi-irix* )
1988 machine=iris4d opsys=irix5-2
1991 ## SONY machines
1992 m68*-sony-bsd4.2* )
1993 machine=news opsys=bsd4-2
1995 m68*-sony-bsd4.3* )
1996 machine=news opsys=bsd4-3
1998 m68*-sony-newsos3* | m68*-sony-news3*)
1999 machine=news opsys=bsd4-3
2001 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2002 machine=news-risc opsys=bsd4-3
2004 mips-sony-newsos6* )
2005 machine=news-r6 opsys=newsos6
2007 mips-sony-news* )
2008 machine=news-risc opsys=newsos5
2011 ## Stride
2012 m68*-stride-sysv* )
2013 machine=stride opsys=usg5-2
2016 ## Suns
2017 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2018 machine=sparc opsys=gnu-linux
2021 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2022 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2023 | rs6000-*-solaris2*)
2024 case "${canonical}" in
2025 m68*-sunos1* ) machine=sun1 ;;
2026 m68*-sunos2* ) machine=sun2 ;;
2027 m68* ) machine=sun3 ;;
2028 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2029 i[3456]86-*-* ) machine=intel386 ;;
2030 powerpcle* ) machine=powerpcle ;;
2031 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2032 sparc* ) machine=sparc ;;
2033 * ) unported=yes ;;
2034 esac
2035 case "${canonical}" in
2036 ## The Sun386 didn't get past 4.0.
2037 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2038 *-sunos4.0* ) opsys=sunos4-0 ;;
2039 *-sunos4.1.[3-9]*noshare )
2040 ## This name is sunos413 instead of sunos4-1-3
2041 ## to avoid a file name conflict on MSDOS.
2042 opsys=sunos413
2043 NON_GNU_CPP=/usr/lib/cpp
2044 NON_GCC_TEST_OPTIONS=-Bstatic
2045 GCC_TEST_OPTIONS=-static
2047 *-sunos4.1.[3-9]* | *-sunos4shr*)
2048 opsys=sunos4shr
2049 NON_GNU_CPP=/usr/lib/cpp
2051 *-sunos4* | *-sunos )
2052 opsys=sunos4-1
2053 NON_GCC_TEST_OPTIONS=-Bstatic
2054 GCC_TEST_OPTIONS=-static
2056 *-sunos5.3* | *-solaris2.3* )
2057 opsys=sol2-3
2058 NON_GNU_CPP=/usr/ccs/lib/cpp
2060 *-sunos5.4* | *-solaris2.4* )
2061 opsys=sol2-4
2062 NON_GNU_CPP=/usr/ccs/lib/cpp
2063 RANLIB="ar -ts"
2065 *-sunos5.5* | *-solaris2.5* )
2066 opsys=sol2-5
2067 NON_GNU_CPP=/usr/ccs/lib/cpp
2068 RANLIB="ar -ts"
2070 *-sunos5.6* | *-solaris2.6* )
2071 opsys=sol2-6
2072 NON_GNU_CPP=/usr/ccs/lib/cpp
2073 RANLIB="ar -ts"
2075 *-sunos5* | *-solaris* )
2076 opsys=sol2-6
2077 NON_GNU_CPP=/usr/ccs/lib/cpp
2079 * ) opsys=bsd4-2 ;;
2080 esac
2081 ## Watch out for a compiler that we know will not work.
2082 case "${canonical}" in
2083 *-solaris* | *-sunos5* )
2084 if [ "x$CC" = x/usr/ucb/cc ]; then
2085 ## /usr/ucb/cc doesn't work;
2086 ## we should find some other compiler that does work.
2087 unset CC
2090 *) ;;
2091 esac
2093 sparc-*-nextstep* )
2094 machine=sparc opsys=nextstep
2097 ## Tadpole 68k
2098 m68*-tadpole-sysv* )
2099 machine=tad68k opsys=usg5-3
2102 ## Tahoe machines
2103 tahoe-tahoe-bsd4.2* )
2104 machine=tahoe opsys=bsd4-2
2106 tahoe-tahoe-bsd4.3* )
2107 machine=tahoe opsys=bsd4-3
2110 ## Tandem Integrity S2
2111 mips-tandem-sysv* )
2112 machine=tandem-s2 opsys=usg5-3
2115 ## Tektronix XD88
2116 m88k-tektronix-sysv3* )
2117 machine=tekxd88 opsys=usg5-3
2120 ## Tektronix 16000 box (6130?)
2121 ns16k-tektronix-bsd* )
2122 machine=ns16000 opsys=bsd4-2
2124 ## Tektronix 4300
2125 ## src/m/tek4300.h hints that this is a m68k machine.
2126 m68*-tektronix-bsd* )
2127 machine=tek4300 opsys=bsd4-3
2130 ## Titan P2 or P3
2131 ## We seem to have lost the machine-description file titan.h!
2132 titan-titan-sysv* )
2133 machine=titan opsys=usg5-3
2136 ## Ustation E30 (SS5E)
2137 m68*-unisys-uniplus* )
2138 machine=ustation opsystem=unipl5-2
2141 ## Vaxen.
2142 vax-dec-* )
2143 machine=vax
2144 case "${canonical}" in
2145 *-bsd4.1* ) opsys=bsd4-1 ;;
2146 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2147 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2148 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2149 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2150 *-vms* ) opsys=vms ;;
2151 * ) unported=yes
2152 esac
2155 ## Whitechapel MG1
2156 ns16k-whitechapel-* )
2157 machine=mg1
2158 ## We don't know what sort of OS runs on these; we'll let the
2159 ## operating system guessing code below try.
2162 ## Wicat
2163 m68*-wicat-sysv* )
2164 machine=wicat opsys=usg5-2
2167 ## IA-64
2168 ia64*-*-linux* )
2169 machine=ia64 opsys=gnu-linux
2172 ## Intel 386 machines where we don't care about the manufacturer
2173 i[3456]86-*-* )
2174 machine=intel386
2175 case "${canonical}" in
2176 *-lynxos* ) opsys=lynxos ;;
2177 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2178 *-isc2.2* ) opsys=isc2-2 ;;
2179 *-isc4.0* ) opsys=isc4-0 ;;
2180 *-isc4.* ) opsys=isc4-1
2181 GCC_TEST_OPTIONS=-posix
2182 NON_GCC_TEST_OPTIONS=-Xp
2184 *-isc* ) opsys=isc3-0 ;;
2185 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2186 *-esix* ) opsys=esix ;;
2187 *-xenix* ) opsys=xenix ;;
2188 *-linux-gnu* ) opsys=gnu-linux ;;
2189 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2190 *-sco3.2v5* ) opsys=sco5
2191 NON_GNU_CPP=/lib/cpp
2192 # Prevent -belf from being passed to $CPP.
2193 # /lib/cpp does not accept it.
2194 OVERRIDE_CPPFLAGS=" "
2196 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2197 *-386bsd* ) opsys=386bsd ;;
2198 *-nextstep* ) opsys=nextstep ;;
2199 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2200 esac
2203 ## m68k Linux-based GNU system
2204 m68k-*-linux-gnu* )
2205 machine=m68k opsys=gnu-linux
2208 ## Mips Linux-based GNU system
2209 mips-*-linux-gnu* )
2210 machine=mips opsys=gnu-linux
2213 ## UXP/DS
2214 sparc-fujitsu-sysv4* )
2215 machine=sparc opsys=uxpds
2216 NON_GNU_CPP=/usr/ccs/lib/cpp
2217 RANLIB="ar -ts"
2220 ## UXP/V
2221 f301-fujitsu-uxpv4.1)
2222 machine=f301 opsys=uxpv
2225 ## Darwin / Mac OS X
2226 powerpc-apple-darwin* )
2227 machine=powermac opsys=darwin
2228 # Define CPP as follows to make autoconf work correctly.
2229 CPP="cc -E -traditional-cpp"
2232 ## AMD x86-64 Linux-based GNU system
2233 x86_64-*-linux-gnu* )
2234 machine=amdx86-64 opsys=gnu-linux
2238 unported=yes
2240 esac
2242 ### If the code above didn't choose an operating system, just choose
2243 ### an operating system based on the configuration name. You really
2244 ### only want to use this when you have no idea what the right
2245 ### operating system is; if you know what operating systems a machine
2246 ### runs, it's cleaner to make it explicit in the case statement
2247 ### above.
2248 if test x"${opsys}" = x; then
2249 case "${canonical}" in
2250 *-gnu* ) opsys=gnu ;;
2251 *-bsd4.[01] ) opsys=bsd4-1 ;;
2252 *-bsd4.2 ) opsys=bsd4-2 ;;
2253 *-bsd4.3 ) opsys=bsd4-3 ;;
2254 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2255 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2256 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2257 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2258 *-sysv4.2uw* ) opsys=unixware ;;
2259 *-sysv4.1* | *-sysvr4.1* )
2260 NON_GNU_CPP=/usr/lib/cpp
2261 opsys=usg5-4 ;;
2262 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2263 if [ x$NON_GNU_CPP = x ]; then
2264 if [ -f /usr/ccs/lib/cpp ]; then
2265 NON_GNU_CPP=/usr/ccs/lib/cpp
2266 else
2267 NON_GNU_CPP=/lib/cpp
2270 opsys=usg5-4-2 ;;
2271 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2273 unported=yes
2275 esac
2278 if test $unported = yes; then
2279 { { echo "$as_me:2279: error: Emacs hasn't been ported to \`${canonical}' systems.
2280 Check \`etc/MACHINES' for recognized configuration names." >&5
2281 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2282 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2283 { (exit 1); exit 1; }; }
2286 machfile="m/${machine}.h"
2287 opsysfile="s/${opsys}.h"
2289 #### Choose a compiler.
2290 test -n "$CC" && cc_specified=yes
2292 # Save the value of CFLAGS that the user specified.
2293 SPECIFIED_CFLAGS="$CFLAGS"
2295 case ${with_gcc} in
2296 "yes" ) CC="gcc" GCC=yes ;;
2297 "no" ) : ${CC=cc} ;;
2299 esac
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2308 echo "$as_me:2308: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 ac_save_IFS=$IFS; IFS=$ac_path_separator
2317 ac_dummy="$PATH"
2318 for ac_dir in $ac_dummy; do
2319 IFS=$ac_save_IFS
2320 test -z "$ac_dir" && ac_dir=.
2321 $as_executable_p "$ac_dir/$ac_word" || continue
2322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2323 echo "$as_me:2323: found $ac_dir/$ac_word" >&5
2324 break
2325 done
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 echo "$as_me:2331: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6
2333 else
2334 echo "$as_me:2334: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2339 if test -z "$ac_cv_prog_CC"; then
2340 ac_ct_CC=$CC
2341 # Extract the first word of "gcc", so it can be a program name with args.
2342 set dummy gcc; ac_word=$2
2343 echo "$as_me:2343: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$ac_ct_CC"; then
2349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350 else
2351 ac_save_IFS=$IFS; IFS=$ac_path_separator
2352 ac_dummy="$PATH"
2353 for ac_dir in $ac_dummy; do
2354 IFS=$ac_save_IFS
2355 test -z "$ac_dir" && ac_dir=.
2356 $as_executable_p "$ac_dir/$ac_word" || continue
2357 ac_cv_prog_ac_ct_CC="gcc"
2358 echo "$as_me:2358: found $ac_dir/$ac_word" >&5
2359 break
2360 done
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 echo "$as_me:2366: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6
2368 else
2369 echo "$as_me:2369: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 CC=$ac_ct_CC
2374 else
2375 CC="$ac_cv_prog_CC"
2378 if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}cc; ac_word=$2
2382 echo "$as_me:2382: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 else
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 ac_dummy="$PATH"
2392 for ac_dir in $ac_dummy; do
2393 IFS=$ac_save_IFS
2394 test -z "$ac_dir" && ac_dir=.
2395 $as_executable_p "$ac_dir/$ac_word" || continue
2396 ac_cv_prog_CC="${ac_tool_prefix}cc"
2397 echo "$as_me:2397: found $ac_dir/$ac_word" >&5
2398 break
2399 done
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405 echo "$as_me:2405: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6
2407 else
2408 echo "$as_me:2408: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2413 if test -z "$ac_cv_prog_CC"; then
2414 ac_ct_CC=$CC
2415 # Extract the first word of "cc", so it can be a program name with args.
2416 set dummy cc; ac_word=$2
2417 echo "$as_me:2417: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$ac_ct_CC"; then
2423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2424 else
2425 ac_save_IFS=$IFS; IFS=$ac_path_separator
2426 ac_dummy="$PATH"
2427 for ac_dir in $ac_dummy; do
2428 IFS=$ac_save_IFS
2429 test -z "$ac_dir" && ac_dir=.
2430 $as_executable_p "$ac_dir/$ac_word" || continue
2431 ac_cv_prog_ac_ct_CC="cc"
2432 echo "$as_me:2432: found $ac_dir/$ac_word" >&5
2433 break
2434 done
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 echo "$as_me:2440: result: $ac_ct_CC" >&5
2441 echo "${ECHO_T}$ac_ct_CC" >&6
2442 else
2443 echo "$as_me:2443: result: no" >&5
2444 echo "${ECHO_T}no" >&6
2447 CC=$ac_ct_CC
2448 else
2449 CC="$ac_cv_prog_CC"
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 echo "$as_me:2456: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 else
2464 ac_prog_rejected=no
2465 ac_save_IFS=$IFS; IFS=$ac_path_separator
2466 ac_dummy="$PATH"
2467 for ac_dir in $ac_dummy; do
2468 IFS=$ac_save_IFS
2469 test -z "$ac_dir" && ac_dir=.
2470 $as_executable_p "$ac_dir/$ac_word" || continue
2471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2472 ac_prog_rejected=yes
2473 continue
2475 ac_cv_prog_CC="cc"
2476 echo "$as_me:2476: found $ac_dir/$ac_word" >&5
2477 break
2478 done
2480 if test $ac_prog_rejected = yes; then
2481 # We found a bogon in the path, so make sure we never use it.
2482 set dummy $ac_cv_prog_CC
2483 shift
2484 if test $# != 0; then
2485 # We chose a different compiler from the bogus one.
2486 # However, it has the same basename, so the bogon will be chosen
2487 # first if we set CC to just the basename; use the full file name.
2488 shift
2489 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2490 shift
2491 ac_cv_prog_CC="$@"
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498 echo "$as_me:2498: result: $CC" >&5
2499 echo "${ECHO_T}$CC" >&6
2500 else
2501 echo "$as_me:2501: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2508 for ac_prog in cl
2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2512 echo "$as_me:2512: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519 else
2520 ac_save_IFS=$IFS; IFS=$ac_path_separator
2521 ac_dummy="$PATH"
2522 for ac_dir in $ac_dummy; do
2523 IFS=$ac_save_IFS
2524 test -z "$ac_dir" && ac_dir=.
2525 $as_executable_p "$ac_dir/$ac_word" || continue
2526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2527 echo "$as_me:2527: found $ac_dir/$ac_word" >&5
2528 break
2529 done
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 echo "$as_me:2535: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6
2537 else
2538 echo "$as_me:2538: result: no" >&5
2539 echo "${ECHO_T}no" >&6
2542 test -n "$CC" && break
2543 done
2545 if test -z "$CC"; then
2546 ac_ct_CC=$CC
2547 for ac_prog in cl
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 echo "$as_me:2551: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 ac_save_IFS=$IFS; IFS=$ac_path_separator
2560 ac_dummy="$PATH"
2561 for ac_dir in $ac_dummy; do
2562 IFS=$ac_save_IFS
2563 test -z "$ac_dir" && ac_dir=.
2564 $as_executable_p "$ac_dir/$ac_word" || continue
2565 ac_cv_prog_ac_ct_CC="$ac_prog"
2566 echo "$as_me:2566: found $ac_dir/$ac_word" >&5
2567 break
2568 done
2572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573 if test -n "$ac_ct_CC"; then
2574 echo "$as_me:2574: result: $ac_ct_CC" >&5
2575 echo "${ECHO_T}$ac_ct_CC" >&6
2576 else
2577 echo "$as_me:2577: result: no" >&5
2578 echo "${ECHO_T}no" >&6
2581 test -n "$ac_ct_CC" && break
2582 done
2584 CC=$ac_ct_CC
2589 test -z "$CC" && { { echo "$as_me:2589: error: no acceptable cc found in \$PATH" >&5
2590 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2591 { (exit 1); exit 1; }; }
2593 # Provide some information about the compiler.
2594 echo "$as_me:2594:" \
2595 "checking for C compiler version" >&5
2596 ac_compiler=`set X $ac_compile; echo $2`
2597 { (eval echo "$as_me:2597: \"$ac_compiler --version </dev/null >&5\"") >&5
2598 (eval $ac_compiler --version </dev/null >&5) 2>&5
2599 ac_status=$?
2600 echo "$as_me:2600: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602 { (eval echo "$as_me:2602: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev/null >&5) 2>&5
2604 ac_status=$?
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (eval echo "$as_me:2607: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:2610: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2613 cat >conftest.$ac_ext <<_ACEOF
2614 #line 2614 "configure"
2615 #include "confdefs.h"
2618 main ()
2622 return 0;
2624 _ACEOF
2625 ac_clean_files_save=$ac_clean_files
2626 ac_clean_files="$ac_clean_files a.out a.exe"
2627 # Try to create an executable without -o first, disregard a.out.
2628 # It will help us diagnose broken compilers, and finding out an intuition
2629 # of exeext.
2630 echo "$as_me:2630: checking for C compiler default output" >&5
2631 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2632 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2633 if { (eval echo "$as_me:2633: \"$ac_link_default\"") >&5
2634 (eval $ac_link_default) 2>&5
2635 ac_status=$?
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; then
2638 # Find the output, starting from the most likely. This scheme is
2639 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2640 # resort.
2641 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2642 ls a.out conftest 2>/dev/null;
2643 ls a.* conftest.* 2>/dev/null`; do
2644 case $ac_file in
2645 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2646 a.out ) # We found the default executable, but exeext='' is most
2647 # certainly right.
2648 break;;
2649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2651 export ac_cv_exeext
2652 break;;
2653 * ) break;;
2654 esac
2655 done
2656 else
2657 echo "$as_me: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 { { echo "$as_me:2659: error: C compiler cannot create executables" >&5
2660 echo "$as_me: error: C compiler cannot create executables" >&2;}
2661 { (exit 77); exit 77; }; }
2664 ac_exeext=$ac_cv_exeext
2665 echo "$as_me:2665: result: $ac_file" >&5
2666 echo "${ECHO_T}$ac_file" >&6
2668 # Check the compiler produces executables we can run. If not, either
2669 # the compiler is broken, or we cross compile.
2670 echo "$as_me:2670: checking whether the C compiler works" >&5
2671 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2672 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673 # If not cross compiling, check that we can run a simple program.
2674 if test "$cross_compiling" != yes; then
2675 if { ac_try='./$ac_file'
2676 { (eval echo "$as_me:2676: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:2679: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 cross_compiling=no
2682 else
2683 if test "$cross_compiling" = maybe; then
2684 cross_compiling=yes
2685 else
2686 { { echo "$as_me:2686: error: cannot run C compiled programs.
2687 If you meant to cross compile, use \`--host'." >&5
2688 echo "$as_me: error: cannot run C compiled programs.
2689 If you meant to cross compile, use \`--host'." >&2;}
2690 { (exit 1); exit 1; }; }
2694 echo "$as_me:2694: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6
2697 rm -f a.out a.exe conftest$ac_cv_exeext
2698 ac_clean_files=$ac_clean_files_save
2699 # Check the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 echo "$as_me:2701: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2703 echo "$as_me:2703: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6
2706 echo "$as_me:2706: checking for executable suffix" >&5
2707 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2708 if { (eval echo "$as_me:2708: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>&5
2710 ac_status=$?
2711 echo "$as_me:2711: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2716 # `rm'.
2717 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2718 case $ac_file in
2719 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 export ac_cv_exeext
2722 break;;
2723 * ) break;;
2724 esac
2725 done
2726 else
2727 { { echo "$as_me:2727: error: cannot compute EXEEXT: cannot compile and link" >&5
2728 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2729 { (exit 1); exit 1; }; }
2732 rm -f conftest$ac_cv_exeext
2733 echo "$as_me:2733: result: $ac_cv_exeext" >&5
2734 echo "${ECHO_T}$ac_cv_exeext" >&6
2736 rm -f conftest.$ac_ext
2737 EXEEXT=$ac_cv_exeext
2738 ac_exeext=$EXEEXT
2739 echo "$as_me:2739: checking for object suffix" >&5
2740 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2741 if test "${ac_cv_objext+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2749 main ()
2753 return 0;
2755 _ACEOF
2756 rm -f conftest.o conftest.obj
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2759 ac_status=$?
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2763 case $ac_file in
2764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2766 break;;
2767 esac
2768 done
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2772 { { echo "$as_me:2772: error: cannot compute OBJEXT: cannot compile" >&5
2773 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2774 { (exit 1); exit 1; }; }
2777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2779 echo "$as_me:2779: result: $ac_cv_objext" >&5
2780 echo "${ECHO_T}$ac_cv_objext" >&6
2781 OBJEXT=$ac_cv_objext
2782 ac_objext=$OBJEXT
2783 echo "$as_me:2783: checking whether we are using the GNU C compiler" >&5
2784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2785 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line 2789 "configure"
2790 #include "confdefs.h"
2793 main ()
2795 #ifndef __GNUC__
2796 choke me
2797 #endif
2800 return 0;
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:2804: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2806 ac_status=$?
2807 echo "$as_me:2807: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:2810: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:2813: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_compiler_gnu=yes
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2819 ac_compiler_gnu=no
2821 rm -f conftest.$ac_objext conftest.$ac_ext
2822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2825 echo "$as_me:2825: result: $ac_cv_c_compiler_gnu" >&5
2826 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2827 GCC=`test $ac_compiler_gnu = yes && echo yes`
2828 ac_test_CFLAGS=${CFLAGS+set}
2829 ac_save_CFLAGS=$CFLAGS
2830 CFLAGS="-g"
2831 echo "$as_me:2831: checking whether $CC accepts -g" >&5
2832 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2833 if test "${ac_cv_prog_cc_g+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:2849: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>&5
2851 ac_status=$?
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:2855: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:2858: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_prog_cc_g=yes
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 cat conftest.$ac_ext >&5
2864 ac_cv_prog_cc_g=no
2866 rm -f conftest.$ac_objext conftest.$ac_ext
2868 echo "$as_me:2868: result: $ac_cv_prog_cc_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2870 if test "$ac_test_CFLAGS" = set; then
2871 CFLAGS=$ac_save_CFLAGS
2872 elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
2874 CFLAGS="-g -O2"
2875 else
2876 CFLAGS="-g"
2878 else
2879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2885 # Some people use a C++ compiler to compile C. Since we use `exit',
2886 # in C++ we need to declare it. In case someone uses the same compiler
2887 # for both compiling C and C++ we need to have the C++ compiler decide
2888 # the declaration of exit, since it's the most demanding environment.
2889 cat >conftest.$ac_ext <<_ACEOF
2890 #ifndef __cplusplus
2891 choke me
2892 #endif
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2897 ac_status=$?
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 for ac_declaration in \
2908 '#include <stdlib.h>' \
2909 'extern "C" void std::exit (int) throw (); using std::exit;' \
2910 'extern "C" void std::exit (int); using std::exit;' \
2911 'extern "C" void exit (int) throw ();' \
2912 'extern "C" void exit (int);' \
2913 'void exit (int);'
2915 cat >conftest.$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2918 #include <stdlib.h>
2919 $ac_declaration
2921 main ()
2923 exit (42);
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>&5
2931 ac_status=$?
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:2935: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2944 continue
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2947 cat >conftest.$ac_ext <<_ACEOF
2948 #line 2948 "configure"
2949 #include "confdefs.h"
2950 $ac_declaration
2952 main ()
2954 exit (42);
2956 return 0;
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>&5
2962 ac_status=$?
2963 echo "$as_me:2963: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:2966: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 break
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 done
2978 rm -f conftest*
2979 if test -n "$ac_declaration"; then
2980 echo '#ifdef __cplusplus' >>confdefs.h
2981 echo $ac_declaration >>confdefs.h
2982 echo '#endif' >>confdefs.h
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 rm -f conftest.$ac_objext conftest.$ac_ext
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
2998 CPP=
3001 #### Some systems specify a CPP to use unless we are using GCC.
3002 #### Now that we know whether we are using GCC, we can decide whether
3003 #### to use that one.
3004 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3005 then
3006 CPP="$NON_GNU_CPP"
3009 #### Some systems specify a CC to use unless we are using GCC.
3010 #### Now that we know whether we are using GCC, we can decide whether
3011 #### to use that one.
3012 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3013 test x$cc_specified != xyes
3014 then
3015 CC="$NON_GNU_CC"
3018 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3019 then
3020 CC="$CC $GCC_TEST_OPTIONS"
3023 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3024 then
3025 CC="$CC $NON_GCC_TEST_OPTIONS"
3028 #### Some other nice autoconf tests. If you add a test here which
3029 #### should make an entry in src/config.h, don't forget to add an
3030 #### #undef clause to src/config.h.in for autoconf to modify.
3032 echo "$as_me:3032: checking whether ln -s works" >&5
3033 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3034 LN_S=$as_ln_s
3035 if test "$LN_S" = "ln -s"; then
3036 echo "$as_me:3036: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6
3038 else
3039 echo "$as_me:3039: result: no, using $LN_S" >&5
3040 echo "${ECHO_T}no, using $LN_S" >&6
3043 ac_ext=c
3044 ac_cpp='$CPP $CPPFLAGS'
3045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048 echo "$as_me:3048: checking how to run the C preprocessor" >&5
3049 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3050 # On Suns, sometimes $CPP names a directory.
3051 if test -n "$CPP" && test -d "$CPP"; then
3052 CPP=
3054 if test -z "$CPP"; then
3055 if test "${ac_cv_prog_CPP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 # Double quotes because CPP needs to be expanded
3059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3061 ac_preproc_ok=false
3062 for ac_c_preproc_warn_flag in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line 3069 "configure"
3070 #include "confdefs.h"
3071 #include <assert.h>
3072 Syntax error
3073 _ACEOF
3074 if { (eval echo "$as_me:3074: \"$ac_cpp conftest.$ac_ext\"") >&5
3075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076 ac_status=$?
3077 egrep -v '^ *\+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); } >/dev/null; then
3082 if test -s conftest.err; then
3083 ac_cpp_err=$ac_c_preproc_warn_flag
3084 else
3085 ac_cpp_err=
3087 else
3088 ac_cpp_err=yes
3090 if test -z "$ac_cpp_err"; then
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 cat conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3096 continue
3098 rm -f conftest.err conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether non-existent headers
3101 # can be detected and how.
3102 cat >conftest.$ac_ext <<_ACEOF
3103 #line 3103 "configure"
3104 #include "confdefs.h"
3105 #include <ac_nonexistent.h>
3106 _ACEOF
3107 if { (eval echo "$as_me:3107: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
3110 egrep -v '^ *\+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:3113: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 else
3118 ac_cpp_err=
3120 else
3121 ac_cpp_err=yes
3123 if test -z "$ac_cpp_err"; then
3124 # Broken: success on invalid input.
3125 continue
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3129 # Passes both tests.
3130 ac_preproc_ok=:
3131 break
3133 rm -f conftest.err conftest.$ac_ext
3135 done
3136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3137 rm -f conftest.err conftest.$ac_ext
3138 if $ac_preproc_ok; then
3139 break
3142 done
3143 ac_cv_prog_CPP=$CPP
3146 CPP=$ac_cv_prog_CPP
3147 else
3148 ac_cv_prog_CPP=$CPP
3150 echo "$as_me:3150: result: $CPP" >&5
3151 echo "${ECHO_T}$CPP" >&6
3152 ac_preproc_ok=false
3153 for ac_c_preproc_warn_flag in '' yes
3155 # Use a header file that comes with gcc, so configuring glibc
3156 # with a fresh cross-compiler works.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3160 #line 3160 "configure"
3161 #include "confdefs.h"
3162 #include <assert.h>
3163 Syntax error
3164 _ACEOF
3165 if { (eval echo "$as_me:3165: \"$ac_cpp conftest.$ac_ext\"") >&5
3166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167 ac_status=$?
3168 egrep -v '^ *\+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:3171: \$? = $ac_status" >&5
3172 (exit $ac_status); } >/dev/null; then
3173 if test -s conftest.err; then
3174 ac_cpp_err=$ac_c_preproc_warn_flag
3175 else
3176 ac_cpp_err=
3178 else
3179 ac_cpp_err=yes
3181 if test -z "$ac_cpp_err"; then
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3186 # Broken: fails on valid input.
3187 continue
3189 rm -f conftest.err conftest.$ac_ext
3191 # OK, works on sane cases. Now check whether non-existent headers
3192 # can be detected and how.
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line 3194 "configure"
3195 #include "confdefs.h"
3196 #include <ac_nonexistent.h>
3197 _ACEOF
3198 if { (eval echo "$as_me:3198: \"$ac_cpp conftest.$ac_ext\"") >&5
3199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200 ac_status=$?
3201 egrep -v '^ *\+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3208 else
3209 ac_cpp_err=
3211 else
3212 ac_cpp_err=yes
3214 if test -z "$ac_cpp_err"; then
3215 # Broken: success on invalid input.
3216 continue
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 # Passes both tests.
3221 ac_preproc_ok=:
3222 break
3224 rm -f conftest.err conftest.$ac_ext
3226 done
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228 rm -f conftest.err conftest.$ac_ext
3229 if $ac_preproc_ok; then
3231 else
3232 { { echo "$as_me:3232: error: C preprocessor \"$CPP\" fails sanity check" >&5
3233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3234 { (exit 1); exit 1; }; }
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 # Find a good install program. We prefer a C program (faster),
3244 # so one script is as good as another. But avoid the broken or
3245 # incompatible versions:
3246 # SysV /etc/install, /usr/sbin/install
3247 # SunOS /usr/etc/install
3248 # IRIX /sbin/install
3249 # AIX /bin/install
3250 # AmigaOS /C/install, which installs bootblocks on floppy discs
3251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 echo "$as_me:3255: checking for a BSD compatible install" >&5
3256 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3257 if test -z "$INSTALL"; then
3258 if test "${ac_cv_path_install+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 ac_save_IFS=$IFS; IFS=$ac_path_separator
3262 for ac_dir in $PATH; do
3263 IFS=$ac_save_IFS
3264 # Account for people who put trailing slashes in PATH elements.
3265 case $ac_dir/ in
3266 / | ./ | .// | /cC/* \
3267 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3268 | /usr/ucb/* ) ;;
3270 # OSF1 and SCO ODT 3.0 have their own names for install.
3271 # Don't use installbsd from OSF since it installs stuff as root
3272 # by default.
3273 for ac_prog in ginstall scoinst install; do
3274 if $as_executable_p "$ac_dir/$ac_prog"; then
3275 if test $ac_prog = install &&
3276 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3277 # AIX install. It has an incompatible calling convention.
3279 elif test $ac_prog = install &&
3280 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3281 # program-specific install script used by HP pwplus--don't use.
3283 else
3284 ac_cv_path_install="$ac_dir/$ac_prog -c"
3285 break 2
3288 done
3290 esac
3291 done
3294 if test "${ac_cv_path_install+set}" = set; then
3295 INSTALL=$ac_cv_path_install
3296 else
3297 # As a last resort, use the slow shell script. We don't cache a
3298 # path for INSTALL within a source directory, because that will
3299 # break other packages using the cache if that directory is
3300 # removed, or if the path is relative.
3301 INSTALL=$ac_install_sh
3304 echo "$as_me:3304: result: $INSTALL" >&5
3305 echo "${ECHO_T}$INSTALL" >&6
3307 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3308 # It thinks the first close brace ends the variable substitution.
3309 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3311 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3313 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3315 for ac_prog in 'bison -y' byacc
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 echo "$as_me:3319: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321 if test "${ac_cv_prog_YACC+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$YACC"; then
3325 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3326 else
3327 ac_save_IFS=$IFS; IFS=$ac_path_separator
3328 ac_dummy="$PATH"
3329 for ac_dir in $ac_dummy; do
3330 IFS=$ac_save_IFS
3331 test -z "$ac_dir" && ac_dir=.
3332 $as_executable_p "$ac_dir/$ac_word" || continue
3333 ac_cv_prog_YACC="$ac_prog"
3334 echo "$as_me:3334: found $ac_dir/$ac_word" >&5
3335 break
3336 done
3340 YACC=$ac_cv_prog_YACC
3341 if test -n "$YACC"; then
3342 echo "$as_me:3342: result: $YACC" >&5
3343 echo "${ECHO_T}$YACC" >&6
3344 else
3345 echo "$as_me:3345: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3349 test -n "$YACC" && break
3350 done
3351 test -n "$YACC" || YACC="yacc"
3353 if test "x$RANLIB" = x; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:3357: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364 else
3365 ac_save_IFS=$IFS; IFS=$ac_path_separator
3366 ac_dummy="$PATH"
3367 for ac_dir in $ac_dummy; do
3368 IFS=$ac_save_IFS
3369 test -z "$ac_dir" && ac_dir=.
3370 $as_executable_p "$ac_dir/$ac_word" || continue
3371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5
3373 break
3374 done
3378 RANLIB=$ac_cv_prog_RANLIB
3379 if test -n "$RANLIB"; then
3380 echo "$as_me:3380: result: $RANLIB" >&5
3381 echo "${ECHO_T}$RANLIB" >&6
3382 else
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3399 else
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3401 ac_dummy="$PATH"
3402 for ac_dir in $ac_dummy; do
3403 IFS=$ac_save_IFS
3404 test -z "$ac_dir" && ac_dir=.
3405 $as_executable_p "$ac_dir/$ac_word" || continue
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3408 break
3409 done
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3415 if test -n "$ac_ct_RANLIB"; then
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5
3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3418 else
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 RANLIB=$ac_ct_RANLIB
3424 else
3425 RANLIB="$ac_cv_prog_RANLIB"
3430 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3431 then
3432 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3435 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3436 then
3437 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3440 echo "$as_me:3440: checking for AIX" >&5
3441 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3442 cat >conftest.$ac_ext <<_ACEOF
3443 #line 3443 "configure"
3444 #include "confdefs.h"
3445 #ifdef _AIX
3447 #endif
3449 _ACEOF
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "yes" >/dev/null 2>&1; then
3452 echo "$as_me:3452: result: yes" >&5
3453 echo "${ECHO_T}yes" >&6
3454 cat >>confdefs.h <<\EOF
3455 #define _ALL_SOURCE 1
3458 else
3459 echo "$as_me:3459: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3462 rm -f conftest*
3464 #### Extract some information from the operating system and machine files.
3466 { echo "$as_me:3466: checking the machine- and system-dependent files to find out
3467 - which libraries the lib-src programs will want, and
3468 - whether the GNU malloc routines are usable..." >&5
3469 echo "$as_me: checking the machine- and system-dependent files to find out
3470 - which libraries the lib-src programs will want, and
3471 - whether the GNU malloc routines are usable..." >&6;}
3473 ### First figure out CFLAGS (which we use for running the compiler here)
3474 ### and REAL_CFLAGS (which we use for real compilation).
3475 ### The two are the same except on a few systems, where they are made
3476 ### different to work around various lossages. For example,
3477 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3478 ### as implying static linking.
3480 ### If the CFLAGS env var is specified, we use that value
3481 ### instead of the default.
3483 ### It's not important that this name contain the PID; you can't run
3484 ### two configures in the same directory and have anything work
3485 ### anyway.
3486 tempcname="conftest.c"
3488 echo '
3489 #include "'${srcdir}'/src/'${opsysfile}'"
3490 #include "'${srcdir}'/src/'${machfile}'"
3491 #ifndef LIBS_MACHINE
3492 #define LIBS_MACHINE
3493 #endif
3494 #ifndef LIBS_SYSTEM
3495 #define LIBS_SYSTEM
3496 #endif
3497 #ifndef C_SWITCH_SYSTEM
3498 #define C_SWITCH_SYSTEM
3499 #endif
3500 #ifndef C_SWITCH_MACHINE
3501 #define C_SWITCH_MACHINE
3502 #endif
3503 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3504 configure___ c_switch_system=C_SWITCH_SYSTEM
3505 configure___ c_switch_machine=C_SWITCH_MACHINE
3507 #ifndef LIB_X11_LIB
3508 #define LIB_X11_LIB -lX11
3509 #endif
3511 #ifndef LIBX11_MACHINE
3512 #define LIBX11_MACHINE
3513 #endif
3515 #ifndef LIBX11_SYSTEM
3516 #define LIBX11_SYSTEM
3517 #endif
3518 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3520 #ifdef UNEXEC
3521 configure___ unexec=UNEXEC
3522 #else
3523 configure___ unexec=unexec.o
3524 #endif
3526 #ifdef SYSTEM_MALLOC
3527 configure___ system_malloc=yes
3528 #else
3529 configure___ system_malloc=no
3530 #endif
3532 #ifdef USE_MMAP_FOR_BUFFERS
3533 configure___ use_mmap_for_buffers=yes
3534 #else
3535 configure___ use_mmap_for_buffers=no
3536 #endif
3538 #ifndef C_DEBUG_SWITCH
3539 #define C_DEBUG_SWITCH -g
3540 #endif
3542 #ifndef C_OPTIMIZE_SWITCH
3543 #ifdef __GNUC__
3544 #define C_OPTIMIZE_SWITCH -O2
3545 #else
3546 #define C_OPTIMIZE_SWITCH -O
3547 #endif
3548 #endif
3550 #ifndef LD_SWITCH_MACHINE
3551 #define LD_SWITCH_MACHINE
3552 #endif
3554 #ifndef LD_SWITCH_SYSTEM
3555 #define LD_SWITCH_SYSTEM
3556 #endif
3558 #ifndef LD_SWITCH_X_SITE_AUX
3559 #define LD_SWITCH_X_SITE_AUX
3560 #endif
3562 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3563 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3565 #ifdef THIS_IS_CONFIGURE
3567 /* Get the CFLAGS for tests in configure. */
3568 #ifdef __GNUC__
3569 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3570 #else
3571 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3572 #endif
3574 #else /* not THIS_IS_CONFIGURE */
3576 /* Get the CFLAGS for real compilation. */
3577 #ifdef __GNUC__
3578 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3579 #else
3580 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3581 #endif
3583 #endif /* not THIS_IS_CONFIGURE */
3584 ' > ${tempcname}
3586 # The value of CPP is a quoted variable reference, so we need to do this
3587 # to get its actual value...
3588 CPP=`eval "echo $CPP"`
3589 eval `${CPP} -Isrc ${tempcname} \
3590 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3591 if test "x$SPECIFIED_CFLAGS" = x; then
3592 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3593 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3594 else
3595 REAL_CFLAGS="$CFLAGS"
3597 rm ${tempcname}
3599 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3601 ### Make sure subsequent tests use flags consistent with the build flags.
3603 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3604 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3605 else
3606 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3609 # Check whether --enable-largefile or --disable-largefile was given.
3610 if test "${enable_largefile+set}" = set; then
3611 enableval="$enable_largefile"
3614 if test "$enable_largefile" != no; then
3616 echo "$as_me:3616: checking for special C compiler options needed for large files" >&5
3617 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3618 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 ac_cv_sys_largefile_CC=no
3622 if test "$GCC" != yes; then
3623 ac_save_CC=$CC
3624 while :; do
3625 # IRIX 6.2 and later do not support large files by default,
3626 # so use the C compiler's -n32 option if that helps.
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3630 #include <sys/types.h>
3631 /* Check that off_t can represent 2**63 - 1 correctly.
3632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3633 since some C++ compilers masquerading as C compilers
3634 incorrectly reject 9223372036854775807. */
3635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3637 && LARGE_OFF_T % 2147483647 == 1)
3638 ? 1 : -1];
3640 main ()
3644 return 0;
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:3648: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>&5
3650 ac_status=$?
3651 echo "$as_me:3651: \$? = $ac_status" >&5
3652 (exit $ac_status); } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:3657: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 break
3660 else
3661 echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 rm -f conftest.$ac_objext
3665 CC="$CC -n32"
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:3667: \"$ac_compile\"") >&5
3668 (eval $ac_compile) 2>&5
3669 ac_status=$?
3670 echo "$as_me:3670: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:3673: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:3676: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_cv_sys_largefile_CC=' -n32'; break
3679 else
3680 echo "$as_me: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 rm -f conftest.$ac_objext
3684 break
3685 done
3686 CC=$ac_save_CC
3687 rm -f conftest.$ac_ext
3690 echo "$as_me:3690: result: $ac_cv_sys_largefile_CC" >&5
3691 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3692 if test "$ac_cv_sys_largefile_CC" != no; then
3693 CC=$CC$ac_cv_sys_largefile_CC
3696 echo "$as_me:3696: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3697 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3698 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 while :; do
3702 ac_cv_sys_file_offset_bits=no
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line 3704 "configure"
3705 #include "confdefs.h"
3706 #include <sys/types.h>
3707 /* Check that off_t can represent 2**63 - 1 correctly.
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3709 since some C++ compilers masquerading as C compilers
3710 incorrectly reject 9223372036854775807. */
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3713 && LARGE_OFF_T % 2147483647 == 1)
3714 ? 1 : -1];
3716 main ()
3720 return 0;
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:3727: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:3733: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 break
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 rm -f conftest.$ac_objext conftest.$ac_ext
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line 3742 "configure"
3743 #include "confdefs.h"
3744 #define _FILE_OFFSET_BITS 64
3745 #include <sys/types.h>
3746 /* Check that off_t can represent 2**63 - 1 correctly.
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3748 since some C++ compilers masquerading as C compilers
3749 incorrectly reject 9223372036854775807. */
3750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3752 && LARGE_OFF_T % 2147483647 == 1)
3753 ? 1 : -1];
3755 main ()
3759 return 0;
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3765 ac_status=$?
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_sys_file_offset_bits=64; break
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 rm -f conftest.$ac_objext conftest.$ac_ext
3780 break
3781 done
3783 echo "$as_me:3783: result: $ac_cv_sys_file_offset_bits" >&5
3784 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3785 if test "$ac_cv_sys_file_offset_bits" != no; then
3787 cat >>confdefs.h <<EOF
3788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3792 rm -f conftest*
3793 echo "$as_me:3793: checking for _LARGE_FILES value needed for large files" >&5
3794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3795 if test "${ac_cv_sys_large_files+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798 while :; do
3799 ac_cv_sys_large_files=no
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line 3801 "configure"
3802 #include "confdefs.h"
3803 #include <sys/types.h>
3804 /* Check that off_t can represent 2**63 - 1 correctly.
3805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3806 since some C++ compilers masquerading as C compilers
3807 incorrectly reject 9223372036854775807. */
3808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3810 && LARGE_OFF_T % 2147483647 == 1)
3811 ? 1 : -1];
3813 main ()
3817 return 0;
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:3821: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>&5
3823 ac_status=$?
3824 echo "$as_me:3824: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:3827: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:3830: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 break
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 rm -f conftest.$ac_objext conftest.$ac_ext
3838 cat >conftest.$ac_ext <<_ACEOF
3839 #line 3839 "configure"
3840 #include "confdefs.h"
3841 #define _LARGE_FILES 1
3842 #include <sys/types.h>
3843 /* Check that off_t can represent 2**63 - 1 correctly.
3844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3845 since some C++ compilers masquerading as C compilers
3846 incorrectly reject 9223372036854775807. */
3847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3849 && LARGE_OFF_T % 2147483647 == 1)
3850 ? 1 : -1];
3852 main ()
3856 return 0;
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (eval echo "$as_me:3860: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3862 ac_status=$?
3863 echo "$as_me:3863: \$? = $ac_status" >&5
3864 (exit $ac_status); } &&
3865 { ac_try='test -s conftest.$ac_objext'
3866 { (eval echo "$as_me:3866: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:3869: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sys_large_files=1; break
3872 else
3873 echo "$as_me: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3876 rm -f conftest.$ac_objext conftest.$ac_ext
3877 break
3878 done
3880 echo "$as_me:3880: result: $ac_cv_sys_large_files" >&5
3881 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3882 if test "$ac_cv_sys_large_files" != no; then
3884 cat >>confdefs.h <<EOF
3885 #define _LARGE_FILES $ac_cv_sys_large_files
3889 rm -f conftest*
3892 if test "${with_sound}" != "no"; then
3893 # Sound support for GNU/Linux and the free BSDs.
3895 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898 echo "$as_me:3898: checking for $ac_header" >&5
3899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line 3904 "configure"
3905 #include "confdefs.h"
3906 #include <$ac_header>
3907 _ACEOF
3908 if { (eval echo "$as_me:3908: \"$ac_cpp conftest.$ac_ext\"") >&5
3909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3910 ac_status=$?
3911 egrep -v '^ *\+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:3914: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null; then
3916 if test -s conftest.err; then
3917 ac_cpp_err=$ac_c_preproc_warn_flag
3918 else
3919 ac_cpp_err=
3921 else
3922 ac_cpp_err=yes
3924 if test -z "$ac_cpp_err"; then
3925 eval "$as_ac_Header=yes"
3926 else
3927 echo "$as_me: failed program was:" >&5
3928 cat conftest.$ac_ext >&5
3929 eval "$as_ac_Header=no"
3931 rm -f conftest.err conftest.$ac_ext
3933 echo "$as_me:3933: result: `eval echo '${'$as_ac_Header'}'`" >&5
3934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936 cat >>confdefs.h <<EOF
3937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3941 done
3943 # Emulation library used on NetBSD.
3944 echo "$as_me:3944: checking for _oss_ioctl in -lossaudio" >&5
3945 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_check_lib_save_LIBS=$LIBS
3950 LIBS="-lossaudio $LIBS"
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line 3952 "configure"
3953 #include "confdefs.h"
3955 /* Override any gcc2 internal prototype to avoid an error. */
3956 #ifdef __cplusplus
3957 extern "C"
3958 #endif
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3961 char _oss_ioctl ();
3963 main ()
3965 _oss_ioctl ();
3967 return 0;
3969 _ACEOF
3970 rm -f conftest.$ac_objext conftest$ac_exeext
3971 if { (eval echo "$as_me:3971: \"$ac_link\"") >&5
3972 (eval $ac_link) 2>&5
3973 ac_status=$?
3974 echo "$as_me:3974: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest$ac_exeext'
3977 { (eval echo "$as_me:3977: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:3980: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_lib_ossaudio__oss_ioctl=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 ac_cv_lib_ossaudio__oss_ioctl=no
3988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3989 LIBS=$ac_check_lib_save_LIBS
3991 echo "$as_me:3991: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3992 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3993 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3994 LIBSOUND=-lossaudio
3995 else
3996 LIBSOUND=
4001 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4002 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4003 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006 echo "$as_me:4006: checking for $ac_header" >&5
4007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 cat >conftest.$ac_ext <<_ACEOF
4012 #line 4012 "configure"
4013 #include "confdefs.h"
4014 #include <$ac_header>
4015 _ACEOF
4016 if { (eval echo "$as_me:4016: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 ac_status=$?
4019 egrep -v '^ *\+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null; then
4024 if test -s conftest.err; then
4025 ac_cpp_err=$ac_c_preproc_warn_flag
4026 else
4027 ac_cpp_err=
4029 else
4030 ac_cpp_err=yes
4032 if test -z "$ac_cpp_err"; then
4033 eval "$as_ac_Header=yes"
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 eval "$as_ac_Header=no"
4039 rm -f conftest.err conftest.$ac_ext
4041 echo "$as_me:4041: result: `eval echo '${'$as_ac_Header'}'`" >&5
4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<EOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4049 done
4051 echo "$as_me:4051: checking for ANSI C header files" >&5
4052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4053 if test "${ac_cv_header_stdc+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line 4057 "configure"
4058 #include "confdefs.h"
4059 #include <stdlib.h>
4060 #include <stdarg.h>
4061 #include <string.h>
4062 #include <float.h>
4064 _ACEOF
4065 if { (eval echo "$as_me:4065: \"$ac_cpp conftest.$ac_ext\"") >&5
4066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4067 ac_status=$?
4068 egrep -v '^ *\+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null; then
4073 if test -s conftest.err; then
4074 ac_cpp_err=$ac_c_preproc_warn_flag
4075 else
4076 ac_cpp_err=
4078 else
4079 ac_cpp_err=yes
4081 if test -z "$ac_cpp_err"; then
4082 ac_cv_header_stdc=yes
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 ac_cv_header_stdc=no
4088 rm -f conftest.err conftest.$ac_ext
4090 if test $ac_cv_header_stdc = yes; then
4091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 #line 4093 "configure"
4094 #include "confdefs.h"
4095 #include <string.h>
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "memchr" >/dev/null 2>&1; then
4101 else
4102 ac_cv_header_stdc=no
4104 rm -f conftest*
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 #line 4111 "configure"
4112 #include "confdefs.h"
4113 #include <stdlib.h>
4115 _ACEOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "free" >/dev/null 2>&1; then
4119 else
4120 ac_cv_header_stdc=no
4122 rm -f conftest*
4126 if test $ac_cv_header_stdc = yes; then
4127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128 if test "$cross_compiling" = yes; then
4130 else
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4134 #include <ctype.h>
4135 #if ((' ' & 0x0FF) == 0x020)
4136 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4137 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4138 #else
4139 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4140 || ('j' <= (c) && (c) <= 'r') \
4141 || ('s' <= (c) && (c) <= 'z'))
4142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4143 #endif
4145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4147 main ()
4149 int i;
4150 for (i = 0; i < 256; i++)
4151 if (XOR (islower (i), ISLOWER (i))
4152 || toupper (i) != TOUPPER (i))
4153 exit(2);
4154 exit (0);
4156 _ACEOF
4157 rm -f conftest$ac_exeext
4158 if { (eval echo "$as_me:4158: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:4161: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4163 { (eval echo "$as_me:4163: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:4166: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4169 else
4170 echo "$as_me: program exited with status $ac_status" >&5
4171 echo "$as_me: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 ac_cv_header_stdc=no
4175 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4179 echo "$as_me:4179: result: $ac_cv_header_stdc" >&5
4180 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4181 if test $ac_cv_header_stdc = yes; then
4183 cat >>confdefs.h <<\EOF
4184 #define STDC_HEADERS 1
4189 echo "$as_me:4189: checking whether time.h and sys/time.h may both be included" >&5
4190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4191 if test "${ac_cv_header_time+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 cat >conftest.$ac_ext <<_ACEOF
4195 #line 4195 "configure"
4196 #include "confdefs.h"
4197 #include <sys/types.h>
4198 #include <sys/time.h>
4199 #include <time.h>
4202 main ()
4204 if ((struct tm *) 0)
4205 return 0;
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:4211: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4213 ac_status=$?
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (eval echo "$as_me:4217: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 ac_cv_header_time=yes
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 ac_cv_header_time=no
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:4230: result: $ac_cv_header_time" >&5
4231 echo "${ECHO_T}$ac_cv_header_time" >&6
4232 if test $ac_cv_header_time = yes; then
4234 cat >>confdefs.h <<\EOF
4235 #define TIME_WITH_SYS_TIME 1
4240 echo "$as_me:4240: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4241 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4242 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245 cat >conftest.$ac_ext <<_ACEOF
4246 #line 4246 "configure"
4247 #include "confdefs.h"
4248 #include <sys/types.h>
4249 #include <signal.h>
4250 /* NetBSD declares sys_siglist in unistd.h. */
4251 #if HAVE_UNISTD_H
4252 # include <unistd.h>
4253 #endif
4256 main ()
4258 char *msg = *(sys_siglist + 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_decl_sys_siglist=yes
4276 else
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_decl_sys_siglist=no
4281 rm -f conftest.$ac_objext conftest.$ac_ext
4283 echo "$as_me:4283: result: $ac_cv_decl_sys_siglist" >&5
4284 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4285 if test $ac_cv_decl_sys_siglist = yes; then
4287 cat >>confdefs.h <<\EOF
4288 #define SYS_SIGLIST_DECLARED 1
4293 echo "$as_me:4293: checking for sys/wait.h that is POSIX.1 compatible" >&5
4294 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4295 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298 cat >conftest.$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #include <sys/types.h>
4302 #include <sys/wait.h>
4303 #ifndef WEXITSTATUS
4304 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4305 #endif
4306 #ifndef WIFEXITED
4307 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4308 #endif
4311 main ()
4313 int s;
4314 wait (&s);
4315 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4317 return 0;
4319 _ACEOF
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:4321: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>&5
4323 ac_status=$?
4324 echo "$as_me:4324: \$? = $ac_status" >&5
4325 (exit $ac_status); } &&
4326 { ac_try='test -s conftest.$ac_objext'
4327 { (eval echo "$as_me:4327: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_header_sys_wait_h=yes
4333 else
4334 echo "$as_me: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4336 ac_cv_header_sys_wait_h=no
4338 rm -f conftest.$ac_objext conftest.$ac_ext
4340 echo "$as_me:4340: result: $ac_cv_header_sys_wait_h" >&5
4341 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4342 if test $ac_cv_header_sys_wait_h = yes; then
4344 cat >>confdefs.h <<\EOF
4345 #define HAVE_SYS_WAIT_H 1
4350 echo "$as_me:4350: checking for struct utimbuf" >&5
4351 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4352 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 cat >conftest.$ac_ext <<_ACEOF
4356 #line 4356 "configure"
4357 #include "confdefs.h"
4358 #ifdef TIME_WITH_SYS_TIME
4359 #include <sys/time.h>
4360 #include <time.h>
4361 #else
4362 #ifdef HAVE_SYS_TIME_H
4363 #include <sys/time.h>
4364 #else
4365 #include <time.h>
4366 #endif
4367 #endif
4368 #ifdef HAVE_UTIME_H
4369 #include <utime.h>
4370 #endif
4372 main ()
4374 static struct utimbuf x; x.actime = x.modtime;
4376 return 0;
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:4380: \"$ac_compile\"") >&5
4381 (eval $ac_compile) 2>&5
4382 ac_status=$?
4383 echo "$as_me:4383: \$? = $ac_status" >&5
4384 (exit $ac_status); } &&
4385 { ac_try='test -s conftest.$ac_objext'
4386 { (eval echo "$as_me:4386: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:4389: \$? = $ac_status" >&5
4390 (exit $ac_status); }; }; then
4391 emacs_cv_struct_utimbuf=yes
4392 else
4393 echo "$as_me: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4395 emacs_cv_struct_utimbuf=no
4397 rm -f conftest.$ac_objext conftest.$ac_ext
4399 echo "$as_me:4399: result: $emacs_cv_struct_utimbuf" >&5
4400 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4401 if test $emacs_cv_struct_utimbuf = yes; then
4403 cat >>confdefs.h <<\EOF
4404 #define HAVE_STRUCT_UTIMBUF 1
4409 echo "$as_me:4409: checking return type of signal handlers" >&5
4410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4411 if test "${ac_cv_type_signal+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line 4415 "configure"
4416 #include "confdefs.h"
4417 #include <sys/types.h>
4418 #include <signal.h>
4419 #ifdef signal
4420 # undef signal
4421 #endif
4422 #ifdef __cplusplus
4423 extern "C" void (*signal (int, void (*)(int)))(int);
4424 #else
4425 void (*signal ()) ();
4426 #endif
4429 main ()
4431 int i;
4433 return 0;
4435 _ACEOF
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:4437: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>&5
4439 ac_status=$?
4440 echo "$as_me:4440: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -s conftest.$ac_objext'
4443 { (eval echo "$as_me:4443: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
4448 ac_cv_type_signal=void
4449 else
4450 echo "$as_me: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 ac_cv_type_signal=int
4454 rm -f conftest.$ac_objext conftest.$ac_ext
4456 echo "$as_me:4456: result: $ac_cv_type_signal" >&5
4457 echo "${ECHO_T}$ac_cv_type_signal" >&6
4459 cat >>confdefs.h <<EOF
4460 #define RETSIGTYPE $ac_cv_type_signal
4463 echo "$as_me:4463: checking for speed_t" >&5
4464 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4465 if test "${emacs_cv_speed_t+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 #line 4469 "configure"
4470 #include "confdefs.h"
4471 #include <termios.h>
4473 main ()
4475 speed_t x = 1;
4477 return 0;
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:4481: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4483 ac_status=$?
4484 echo "$as_me:4484: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest.$ac_objext'
4487 { (eval echo "$as_me:4487: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:4490: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 emacs_cv_speed_t=yes
4493 else
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 emacs_cv_speed_t=no
4498 rm -f conftest.$ac_objext conftest.$ac_ext
4500 echo "$as_me:4500: result: $emacs_cv_speed_t" >&5
4501 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4502 if test $emacs_cv_speed_t = yes; then
4504 cat >>confdefs.h <<\EOF
4505 #define HAVE_SPEED_T 1
4510 echo "$as_me:4510: checking for struct timeval" >&5
4511 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4512 if test "${emacs_cv_struct_timeval+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line 4516 "configure"
4517 #include "confdefs.h"
4518 #ifdef TIME_WITH_SYS_TIME
4519 #include <sys/time.h>
4520 #include <time.h>
4521 #else
4522 #ifdef HAVE_SYS_TIME_H
4523 #include <sys/time.h>
4524 #else
4525 #include <time.h>
4526 #endif
4527 #endif
4529 main ()
4531 static struct timeval x; x.tv_sec = x.tv_usec;
4533 return 0;
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (eval echo "$as_me:4537: \"$ac_compile\"") >&5
4538 (eval $ac_compile) 2>&5
4539 ac_status=$?
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:4543: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:4546: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 emacs_cv_struct_timeval=yes
4549 else
4550 echo "$as_me: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4552 emacs_cv_struct_timeval=no
4554 rm -f conftest.$ac_objext conftest.$ac_ext
4556 echo "$as_me:4556: result: $emacs_cv_struct_timeval" >&5
4557 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4558 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4559 if test $emacs_cv_struct_timeval = yes; then
4561 cat >>confdefs.h <<\EOF
4562 #define HAVE_TIMEVAL 1
4567 echo "$as_me:4567: checking for struct exception" >&5
4568 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4569 if test "${emacs_cv_struct_exception+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line 4573 "configure"
4574 #include "confdefs.h"
4575 #include <math.h>
4577 main ()
4579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4581 return 0;
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:4585: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4587 ac_status=$?
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 emacs_cv_struct_exception=yes
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 cat conftest.$ac_ext >&5
4600 emacs_cv_struct_exception=no
4602 rm -f conftest.$ac_objext conftest.$ac_ext
4604 echo "$as_me:4604: result: $emacs_cv_struct_exception" >&5
4605 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4606 HAVE_EXCEPTION=$emacs_cv_struct_exception
4607 if test $emacs_cv_struct_exception != yes; then
4609 cat >>confdefs.h <<\EOF
4610 #define NO_MATHERR 1
4615 echo "$as_me:4615: checking whether struct tm is in sys/time.h or time.h" >&5
4616 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4617 if test "${ac_cv_struct_tm+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 cat >conftest.$ac_ext <<_ACEOF
4621 #line 4621 "configure"
4622 #include "confdefs.h"
4623 #include <sys/types.h>
4624 #include <time.h>
4627 main ()
4629 struct tm *tp; tp->tm_sec;
4631 return 0;
4633 _ACEOF
4634 rm -f conftest.$ac_objext
4635 if { (eval echo "$as_me:4635: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>&5
4637 ac_status=$?
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_struct_tm=time.h
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 ac_cv_struct_tm=sys/time.h
4652 rm -f conftest.$ac_objext conftest.$ac_ext
4654 echo "$as_me:4654: result: $ac_cv_struct_tm" >&5
4655 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4656 if test $ac_cv_struct_tm = sys/time.h; then
4658 cat >>confdefs.h <<\EOF
4659 #define TM_IN_SYS_TIME 1
4664 echo "$as_me:4664: checking for struct tm.tm_zone" >&5
4665 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4666 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line 4670 "configure"
4671 #include "confdefs.h"
4672 #include <sys/types.h>
4673 #include <$ac_cv_struct_tm>
4676 main ()
4678 static struct tm ac_aggr;
4679 if (ac_aggr.tm_zone)
4680 return 0;
4682 return 0;
4684 _ACEOF
4685 rm -f conftest.$ac_objext
4686 if { (eval echo "$as_me:4686: \"$ac_compile\"") >&5
4687 (eval $ac_compile) 2>&5
4688 ac_status=$?
4689 echo "$as_me:4689: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:4692: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:4695: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_member_struct_tm_tm_zone=yes
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 ac_cv_member_struct_tm_tm_zone=no
4703 rm -f conftest.$ac_objext conftest.$ac_ext
4705 echo "$as_me:4705: result: $ac_cv_member_struct_tm_tm_zone" >&5
4706 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4707 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4709 cat >>confdefs.h <<EOF
4710 #define HAVE_STRUCT_TM_TM_ZONE 1
4715 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4717 cat >>confdefs.h <<\EOF
4718 #define HAVE_TM_ZONE 1
4721 else
4722 echo "$as_me:4722: checking for tzname" >&5
4723 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4724 if test "${ac_cv_var_tzname+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line 4728 "configure"
4729 #include "confdefs.h"
4730 #include <time.h>
4731 #ifndef tzname /* For SGI. */
4732 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4733 #endif
4736 main ()
4738 atoi(*tzname);
4740 return 0;
4742 _ACEOF
4743 rm -f conftest.$ac_objext conftest$ac_exeext
4744 if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4746 ac_status=$?
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:4750: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:4753: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_var_tzname=yes
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_var_tzname=no
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4763 echo "$as_me:4763: result: $ac_cv_var_tzname" >&5
4764 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4765 if test $ac_cv_var_tzname = yes; then
4767 cat >>confdefs.h <<\EOF
4768 #define HAVE_TZNAME 1
4774 echo "$as_me:4774: checking for struct tm.tm_gmtoff" >&5
4775 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4776 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4782 #include <time.h>
4785 main ()
4787 static struct tm ac_aggr;
4788 if (ac_aggr.tm_gmtoff)
4789 return 0;
4791 return 0;
4793 _ACEOF
4794 rm -f conftest.$ac_objext
4795 if { (eval echo "$as_me:4795: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4797 ac_status=$?
4798 echo "$as_me:4798: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:4801: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:4804: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 ac_cv_member_struct_tm_tm_gmtoff=yes
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4810 ac_cv_member_struct_tm_tm_gmtoff=no
4812 rm -f conftest.$ac_objext conftest.$ac_ext
4814 echo "$as_me:4814: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4818 cat >>confdefs.h <<\EOF
4819 #define HAVE_TM_GMTOFF 1
4824 echo "$as_me:4824: checking for $CC option to accept ANSI C" >&5
4825 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4826 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 ac_cv_prog_cc_stdc=no
4830 ac_save_CC=$CC
4831 cat >conftest.$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4845 return p[i];
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4856 int test (int i, double x);
4857 struct s1 {int (*f) (int a);};
4858 struct s2 {int (*f) (double a);};
4859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4860 int argc;
4861 char **argv;
4863 main ()
4865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4867 return 0;
4869 _ACEOF
4870 # Don't try gcc -ansi; that turns off useful extensions and
4871 # breaks some systems' header files.
4872 # AIX -qlanglvl=ansi
4873 # Ultrix and OSF/1 -std1
4874 # HP-UX 10.20 and later -Ae
4875 # HP-UX older versions -Aa -D_HPUX_SOURCE
4876 # SVR4 -Xc -D__EXTENSIONS__
4877 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 CC="$ac_save_CC $ac_arg"
4880 rm -f conftest.$ac_objext
4881 if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4883 ac_status=$?
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:4887: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_cv_prog_cc_stdc=$ac_arg
4893 break
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 rm -f conftest.$ac_objext
4899 done
4900 rm -f conftest.$ac_ext conftest.$ac_objext
4901 CC=$ac_save_CC
4905 case "x$ac_cv_prog_cc_stdc" in
4906 x|xno)
4907 echo "$as_me:4907: result: none needed" >&5
4908 echo "${ECHO_T}none needed" >&6 ;;
4910 echo "$as_me:4910: result: $ac_cv_prog_cc_stdc" >&5
4911 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4912 CC="$CC $ac_cv_prog_cc_stdc" ;;
4913 esac
4915 echo "$as_me:4915: checking for function prototypes" >&5
4916 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4917 if test "$ac_cv_prog_cc_stdc" != no; then
4918 echo "$as_me:4918: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6
4921 cat >>confdefs.h <<\EOF
4922 #define PROTOTYPES 1
4925 else
4926 echo "$as_me:4926: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 echo "$as_me:4930: checking for working volatile" >&5
4931 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4932 if test "${ac_cv_c_volatile+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4940 main ()
4943 volatile int x;
4944 int * volatile y;
4946 return 0;
4948 _ACEOF
4949 rm -f conftest.$ac_objext
4950 if { (eval echo "$as_me:4950: \"$ac_compile\"") >&5
4951 (eval $ac_compile) 2>&5
4952 ac_status=$?
4953 echo "$as_me:4953: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:4956: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:4959: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_c_volatile=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 ac_cv_c_volatile=no
4967 rm -f conftest.$ac_objext conftest.$ac_ext
4969 echo "$as_me:4969: result: $ac_cv_c_volatile" >&5
4970 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4971 if test $ac_cv_c_volatile = no; then
4973 cat >>confdefs.h <<\EOF
4974 #define volatile
4979 echo "$as_me:4979: checking for an ANSI C-conforming const" >&5
4980 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4981 if test "${ac_cv_c_const+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 cat >conftest.$ac_ext <<_ACEOF
4985 #line 4985 "configure"
4986 #include "confdefs.h"
4989 main ()
4991 /* FIXME: Include the comments suggested by Paul. */
4992 #ifndef __cplusplus
4993 /* Ultrix mips cc rejects this. */
4994 typedef int charset[2];
4995 const charset x;
4996 /* SunOS 4.1.1 cc rejects this. */
4997 char const *const *ccp;
4998 char **p;
4999 /* NEC SVR4.0.2 mips cc rejects this. */
5000 struct point {int x, y;};
5001 static struct point const zero = {0,0};
5002 /* AIX XL C 1.02.0.0 rejects this.
5003 It does not let you subtract one const X* pointer from another in
5004 an arm of an if-expression whose if-part is not a constant
5005 expression */
5006 const char *g = "string";
5007 ccp = &g + (g ? g-g : 0);
5008 /* HPUX 7.0 cc rejects these. */
5009 ++ccp;
5010 p = (char**) ccp;
5011 ccp = (char const *const *) p;
5012 { /* SCO 3.2v4 cc rejects this. */
5013 char *t;
5014 char const *s = 0 ? (char *) 0 : (char const *) 0;
5016 *t++ = 0;
5018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5019 int x[] = {25, 17};
5020 const int *foo = &x[0];
5021 ++foo;
5023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5024 typedef const int *iptr;
5025 iptr p = 0;
5026 ++p;
5028 { /* AIX XL C 1.02.0.0 rejects this saying
5029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5030 struct s { int j; const int *ap[3]; };
5031 struct s *b; b->j = 5;
5033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5034 const int foo = 10;
5036 #endif
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:5043: \"$ac_compile\"") >&5
5044 (eval $ac_compile) 2>&5
5045 ac_status=$?
5046 echo "$as_me:5046: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:5049: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:5052: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 ac_cv_c_const=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 ac_cv_c_const=no
5060 rm -f conftest.$ac_objext conftest.$ac_ext
5062 echo "$as_me:5062: result: $ac_cv_c_const" >&5
5063 echo "${ECHO_T}$ac_cv_c_const" >&6
5064 if test $ac_cv_c_const = no; then
5066 cat >>confdefs.h <<\EOF
5067 #define const
5072 echo "$as_me:5072: checking for void * support" >&5
5073 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5074 if test "${emacs_cv_void_star+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line 5078 "configure"
5079 #include "confdefs.h"
5082 main ()
5084 void * foo;
5086 return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:5090: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5092 ac_status=$?
5093 echo "$as_me:5093: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:5096: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:5099: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 emacs_cv_void_star=yes
5102 else
5103 echo "$as_me: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5105 emacs_cv_void_star=no
5107 rm -f conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:5109: result: $emacs_cv_void_star" >&5
5110 echo "${ECHO_T}$emacs_cv_void_star" >&6
5111 if test $emacs_cv_void_star = yes; then
5112 cat >>confdefs.h <<\EOF
5113 #define POINTER_TYPE void
5116 else
5117 cat >>confdefs.h <<\EOF
5118 #define POINTER_TYPE char
5123 echo "$as_me:5123: checking whether ${MAKE-make} sets \${MAKE}" >&5
5124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 cat >conftest.make <<\EOF
5130 all:
5131 @echo 'ac_maketemp="${MAKE}"'
5133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5135 if test -n "$ac_maketemp"; then
5136 eval ac_cv_prog_make_${ac_make}_set=yes
5137 else
5138 eval ac_cv_prog_make_${ac_make}_set=no
5140 rm -f conftest.make
5142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5143 echo "$as_me:5143: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5145 SET_MAKE=
5146 else
5147 echo "$as_me:5147: result: no" >&5
5148 echo "${ECHO_T}no" >&6
5149 SET_MAKE="MAKE=${MAKE-make}"
5152 echo "$as_me:5152: checking for long file names" >&5
5153 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5154 if test "${ac_cv_sys_long_file_names+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 ac_cv_sys_long_file_names=yes
5158 # Test for long file names in all the places we know might matter:
5159 # . the current directory, where building will happen
5160 # $prefix/lib where we will be installing things
5161 # $exec_prefix/lib likewise
5162 # eval it to expand exec_prefix.
5163 # $TMPDIR if set, where it might want to write temporary files
5164 # if $TMPDIR is not set:
5165 # /tmp where it might want to write temporary files
5166 # /var/tmp likewise
5167 # /usr/tmp likewise
5168 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5169 ac_tmpdirs=$TMPDIR
5170 else
5171 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5173 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5174 test -d $ac_dir || continue
5175 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5176 ac_xdir=$ac_dir/cf$$
5177 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5178 ac_tf1=$ac_xdir/conftest9012345
5179 ac_tf2=$ac_xdir/conftest9012346
5180 (echo 1 >$ac_tf1) 2>/dev/null
5181 (echo 2 >$ac_tf2) 2>/dev/null
5182 ac_val=`cat $ac_tf1 2>/dev/null`
5183 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5184 ac_cv_sys_long_file_names=no
5185 rm -rf $ac_xdir 2>/dev/null
5186 break
5188 rm -rf $ac_xdir 2>/dev/null
5189 done
5191 echo "$as_me:5191: result: $ac_cv_sys_long_file_names" >&5
5192 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5193 if test $ac_cv_sys_long_file_names = yes; then
5195 cat >>confdefs.h <<\EOF
5196 #define HAVE_LONG_FILE_NAMES 1
5201 #### Choose a window system.
5203 echo "$as_me:5203: checking for X" >&5
5204 echo $ECHO_N "checking for X... $ECHO_C" >&6
5206 # Check whether --with-x or --without-x was given.
5207 if test "${with_x+set}" = set; then
5208 withval="$with_x"
5211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5212 if test "x$with_x" = xno; then
5213 # The user explicitly disabled X.
5214 have_x=disabled
5215 else
5216 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5217 # Both variables are already set.
5218 have_x=yes
5219 else
5220 if test "${ac_cv_have_x+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 # One or both of the vars are not set, and there is no cached value.
5224 ac_x_includes=no ac_x_libraries=no
5225 rm -fr conftest.dir
5226 if mkdir conftest.dir; then
5227 cd conftest.dir
5228 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5229 cat >Imakefile <<'EOF'
5230 acfindx:
5231 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5233 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5235 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5237 for ac_extension in a so sl; do
5238 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5239 test -f $ac_im_libdir/libX11.$ac_extension; then
5240 ac_im_usrlibdir=$ac_im_libdir; break
5242 done
5243 # Screen out bogus values from the imake configuration. They are
5244 # bogus both because they are the default anyway, and because
5245 # using them would break gcc on systems where it needs fixed includes.
5246 case $ac_im_incroot in
5247 /usr/include) ;;
5248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5249 esac
5250 case $ac_im_usrlibdir in
5251 /usr/lib | /lib) ;;
5252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5253 esac
5255 cd ..
5256 rm -fr conftest.dir
5259 # Standard set of common directories for X headers.
5260 # Check X11 before X11Rn because it is often a symlink to the current release.
5261 ac_x_header_dirs='
5262 /usr/X11/include
5263 /usr/X11R6/include
5264 /usr/X11R5/include
5265 /usr/X11R4/include
5267 /usr/include/X11
5268 /usr/include/X11R6
5269 /usr/include/X11R5
5270 /usr/include/X11R4
5272 /usr/local/X11/include
5273 /usr/local/X11R6/include
5274 /usr/local/X11R5/include
5275 /usr/local/X11R4/include
5277 /usr/local/include/X11
5278 /usr/local/include/X11R6
5279 /usr/local/include/X11R5
5280 /usr/local/include/X11R4
5282 /usr/X386/include
5283 /usr/x386/include
5284 /usr/XFree86/include/X11
5286 /usr/include
5287 /usr/local/include
5288 /usr/unsupported/include
5289 /usr/athena/include
5290 /usr/local/x11r5/include
5291 /usr/lpp/Xamples/include
5293 /usr/openwin/include
5294 /usr/openwin/share/include'
5296 if test "$ac_x_includes" = no; then
5297 # Guess where to find include files, by looking for Intrinsic.h.
5298 # First, try using that file with no special directory specified.
5299 cat >conftest.$ac_ext <<_ACEOF
5300 #line 5300 "configure"
5301 #include "confdefs.h"
5302 #include <X11/Intrinsic.h>
5303 _ACEOF
5304 if { (eval echo "$as_me:5304: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306 ac_status=$?
5307 egrep -v '^ *\+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:5310: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 else
5315 ac_cpp_err=
5317 else
5318 ac_cpp_err=yes
5320 if test -z "$ac_cpp_err"; then
5321 # We can compile using X headers with no special include directory.
5322 ac_x_includes=
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 for ac_dir in $ac_x_header_dirs; do
5327 if test -r "$ac_dir/X11/Intrinsic.h"; then
5328 ac_x_includes=$ac_dir
5329 break
5331 done
5333 rm -f conftest.err conftest.$ac_ext
5334 fi # $ac_x_includes = no
5336 if test "$ac_x_libraries" = no; then
5337 # Check for the libraries.
5338 # See if we find them without any special options.
5339 # Don't add to $LIBS permanently.
5340 ac_save_LIBS=$LIBS
5341 LIBS="-lXt $LIBS"
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line 5343 "configure"
5344 #include "confdefs.h"
5345 #include <X11/Intrinsic.h>
5347 main ()
5349 XtMalloc (0)
5351 return 0;
5353 _ACEOF
5354 rm -f conftest.$ac_objext conftest$ac_exeext
5355 if { (eval echo "$as_me:5355: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>&5
5357 ac_status=$?
5358 echo "$as_me:5358: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -s conftest$ac_exeext'
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 LIBS=$ac_save_LIBS
5367 # We can link X programs with no special library path.
5368 ac_x_libraries=
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5372 LIBS=$ac_save_LIBS
5373 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5375 # Don't even attempt the hair of trying to link an X program!
5376 for ac_extension in a so sl; do
5377 if test -r $ac_dir/libXt.$ac_extension; then
5378 ac_x_libraries=$ac_dir
5379 break 2
5381 done
5382 done
5384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5385 fi # $ac_x_libraries = no
5387 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5388 # Didn't find X anywhere. Cache the known absence of X.
5389 ac_cv_have_x="have_x=no"
5390 else
5391 # Record where we found X for the cache.
5392 ac_cv_have_x="have_x=yes \
5393 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5398 eval "$ac_cv_have_x"
5399 fi # $with_x != no
5401 if test "$have_x" != yes; then
5402 echo "$as_me:5402: result: $have_x" >&5
5403 echo "${ECHO_T}$have_x" >&6
5404 no_x=yes
5405 else
5406 # If each of the values was on the command line, it overrides each guess.
5407 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5408 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5409 # Update the cache value to reflect the command line values.
5410 ac_cv_have_x="have_x=yes \
5411 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5412 echo "$as_me:5412: result: libraries $x_libraries, headers $x_includes" >&5
5413 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5416 if test "$no_x" = yes; then
5417 window_system=none
5418 else
5419 window_system=x11
5422 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5423 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5424 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5425 x_default_search_path=""
5426 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5427 x_search_path="\
5428 ${x_library}/X11/%L/%T/%N%C%S:\
5429 ${x_library}/X11/%l/%T/%N%C%S:\
5430 ${x_library}/X11/%T/%N%C%S:\
5431 ${x_library}/X11/%L/%T/%N%S:\
5432 ${x_library}/X11/%l/%T/%N%S:\
5433 ${x_library}/X11/%T/%N%S"
5434 if test x"${x_default_search_path}" = x; then
5435 x_default_search_path=${x_search_path}
5436 else
5437 x_default_search_path="${x_search_path}:${x_default_search_path}"
5439 done
5441 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5442 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5445 if test x"${x_includes}" = x; then
5446 bitmapdir=/usr/include/X11/bitmaps
5447 else
5448 # accumulate include directories that have X11 bitmap subdirectories
5449 bmd_acc="dummyval"
5450 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5451 if test -d "${bmd}/X11/bitmaps"; then
5452 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5454 if test -d "${bmd}/bitmaps"; then
5455 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5457 done
5458 if test ${bmd_acc} != "dummyval"; then
5459 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5463 case "${window_system}" in
5464 x11 )
5465 HAVE_X_WINDOWS=yes
5466 HAVE_X11=yes
5467 case "${with_x_toolkit}" in
5468 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5469 motif ) USE_X_TOOLKIT=MOTIF ;;
5470 no ) USE_X_TOOLKIT=none ;;
5471 * ) USE_X_TOOLKIT=maybe ;;
5472 esac
5474 none )
5475 HAVE_X_WINDOWS=no
5476 HAVE_X11=no
5477 USE_X_TOOLKIT=none
5479 esac
5481 ### If we're using X11, we should use the X menu package.
5482 HAVE_MENUS=no
5483 case ${HAVE_X11} in
5484 yes ) HAVE_MENUS=yes ;;
5485 esac
5487 if test "${opsys}" = "hpux9"; then
5488 case "${x_libraries}" in
5489 *X11R4* )
5490 opsysfile="s/hpux9-x11r4.h"
5492 esac
5495 if test "${opsys}" = "hpux9shr"; then
5496 case "${x_libraries}" in
5497 *X11R4* )
5498 opsysfile="s/hpux9shxr4.h"
5500 esac
5503 ### Compute the unexec source name from the object name.
5504 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5506 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5507 # Assume not, until told otherwise.
5508 GNU_MALLOC=yes
5509 doug_lea_malloc=yes
5510 echo "$as_me:5510: checking for malloc_get_state" >&5
5511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5512 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5518 /* System header to define __stub macros and hopefully few prototypes,
5519 which can conflict with char malloc_get_state (); below. */
5520 #include <assert.h>
5521 /* Override any gcc2 internal prototype to avoid an error. */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5527 char malloc_get_state ();
5528 char (*f) ();
5531 main ()
5533 /* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5537 choke me
5538 #else
5539 f = malloc_get_state;
5540 #endif
5543 return 0;
5545 _ACEOF
5546 rm -f conftest.$ac_objext conftest$ac_exeext
5547 if { (eval echo "$as_me:5547: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:5553: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:5556: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_func_malloc_get_state=yes
5559 else
5560 echo "$as_me: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5562 ac_cv_func_malloc_get_state=no
5564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 echo "$as_me:5566: result: $ac_cv_func_malloc_get_state" >&5
5567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5568 if test $ac_cv_func_malloc_get_state = yes; then
5570 else
5571 doug_lea_malloc=no
5574 echo "$as_me:5574: checking for malloc_set_state" >&5
5575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line 5580 "configure"
5581 #include "confdefs.h"
5582 /* System header to define __stub macros and hopefully few prototypes,
5583 which can conflict with char malloc_set_state (); below. */
5584 #include <assert.h>
5585 /* Override any gcc2 internal prototype to avoid an error. */
5586 #ifdef __cplusplus
5587 extern "C"
5588 #endif
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5591 char malloc_set_state ();
5592 char (*f) ();
5595 main ()
5597 /* The GNU C library defines this for functions which it implements
5598 to always fail with ENOSYS. Some functions are actually named
5599 something starting with __ and the normal name is an alias. */
5600 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5601 choke me
5602 #else
5603 f = malloc_set_state;
5604 #endif
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:5611: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:5614: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:5617: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:5620: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_func_malloc_set_state=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5626 ac_cv_func_malloc_set_state=no
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 echo "$as_me:5630: result: $ac_cv_func_malloc_set_state" >&5
5631 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5632 if test $ac_cv_func_malloc_set_state = yes; then
5634 else
5635 doug_lea_malloc=no
5638 echo "$as_me:5638: checking whether __after_morecore_hook exists" >&5
5639 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5640 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line 5644 "configure"
5645 #include "confdefs.h"
5646 extern void (* __after_morecore_hook)();
5648 main ()
5650 __after_morecore_hook = 0
5652 return 0;
5654 _ACEOF
5655 rm -f conftest.$ac_objext conftest$ac_exeext
5656 if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5658 ac_status=$?
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:5662: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 emacs_cv_var___after_morecore_hook=yes
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5671 emacs_cv_var___after_morecore_hook=no
5673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5675 echo "$as_me:5675: result: $emacs_cv_var___after_morecore_hook" >&5
5676 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5677 if test $emacs_cv_var___after_morecore_hook = no; then
5678 doug_lea_malloc=no
5680 if test "${system_malloc}" = "yes"; then
5681 GNU_MALLOC=no
5682 GNU_MALLOC_reason="
5683 (The GNU allocators don't work with this system configuration.)"
5685 if test "$doug_lea_malloc" = "yes" ; then
5686 if test "$GNU_MALLOC" = yes ; then
5687 GNU_MALLOC_reason="
5688 (Using Doug Lea's new malloc from the GNU C Library.)"
5691 cat >>confdefs.h <<\EOF
5692 #define DOUG_LEA_MALLOC 1
5697 if test x"${REL_ALLOC}" = x; then
5698 REL_ALLOC=${GNU_MALLOC}
5701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5704 inttypes.h stdint.h unistd.h
5706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5707 echo "$as_me:5707: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712 cat >conftest.$ac_ext <<_ACEOF
5713 #line 5713 "configure"
5714 #include "confdefs.h"
5715 $ac_includes_default
5716 #include <$ac_header>
5717 _ACEOF
5718 rm -f conftest.$ac_objext
5719 if { (eval echo "$as_me:5719: \"$ac_compile\"") >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 echo "$as_me:5722: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (eval echo "$as_me:5725: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:5728: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 eval "$as_ac_Header=yes"
5731 else
5732 echo "$as_me: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5734 eval "$as_ac_Header=no"
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5738 echo "$as_me:5738: result: `eval echo '${'$as_ac_Header'}'`" >&5
5739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5741 cat >>confdefs.h <<EOF
5742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746 done
5748 for ac_header in stdlib.h unistd.h
5750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5751 echo "$as_me:5751: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line 5757 "configure"
5758 #include "confdefs.h"
5759 #include <$ac_header>
5760 _ACEOF
5761 if { (eval echo "$as_me:5761: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763 ac_status=$?
5764 egrep -v '^ *\+' conftest.er1 >conftest.err
5765 rm -f conftest.er1
5766 cat conftest.err >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
5771 else
5772 ac_cpp_err=
5774 else
5775 ac_cpp_err=yes
5777 if test -z "$ac_cpp_err"; then
5778 eval "$as_ac_Header=yes"
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 eval "$as_ac_Header=no"
5784 rm -f conftest.err conftest.$ac_ext
5786 echo "$as_me:5786: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h <<EOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5794 done
5796 for ac_func in getpagesize
5798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5799 echo "$as_me:5799: checking for $ac_func" >&5
5800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5801 if eval "test \"\${$as_ac_var+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804 cat >conftest.$ac_ext <<_ACEOF
5805 #line 5805 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char $ac_func (); below. */
5809 #include <assert.h>
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 #ifdef __cplusplus
5812 extern "C"
5813 #endif
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5816 char $ac_func ();
5817 char (*f) ();
5820 main ()
5822 /* The GNU C library defines this for functions which it implements
5823 to always fail with ENOSYS. Some functions are actually named
5824 something starting with __ and the normal name is an alias. */
5825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5826 choke me
5827 #else
5828 f = $ac_func;
5829 #endif
5832 return 0;
5834 _ACEOF
5835 rm -f conftest.$ac_objext conftest$ac_exeext
5836 if { (eval echo "$as_me:5836: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5838 ac_status=$?
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -s conftest$ac_exeext'
5842 { (eval echo "$as_me:5842: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:5845: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 eval "$as_ac_var=yes"
5848 else
5849 echo "$as_me: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5851 eval "$as_ac_var=no"
5853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5855 echo "$as_me:5855: result: `eval echo '${'$as_ac_var'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5857 if test `eval echo '${'$as_ac_var'}'` = yes; then
5858 cat >>confdefs.h <<EOF
5859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5863 done
5865 echo "$as_me:5865: checking for working mmap" >&5
5866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 if test "$cross_compiling" = yes; then
5871 ac_cv_func_mmap_fixed_mapped=no
5872 else
5873 cat >conftest.$ac_ext <<_ACEOF
5874 #line 5874 "configure"
5875 #include "confdefs.h"
5876 $ac_includes_default
5877 /* Thanks to Mike Haertel and Jim Avera for this test.
5878 Here is a matrix of mmap possibilities:
5879 mmap private not fixed
5880 mmap private fixed at somewhere currently unmapped
5881 mmap private fixed at somewhere already mapped
5882 mmap shared not fixed
5883 mmap shared fixed at somewhere currently unmapped
5884 mmap shared fixed at somewhere already mapped
5885 For private mappings, we should verify that changes cannot be read()
5886 back from the file, nor mmap's back from the file at a different
5887 address. (There have been systems where private was not correctly
5888 implemented like the infamous i386 svr4.0, and systems where the
5889 VM page cache was not coherent with the file system buffer cache
5890 like early versions of FreeBSD and possibly contemporary NetBSD.)
5891 For shared mappings, we should conversely verify that changes get
5892 propogated back to all the places they're supposed to be.
5894 Grep wants private fixed already mapped.
5895 The main things grep needs to know about mmap are:
5896 * does it exist and is it safe to write into the mmap'd area
5897 * how to use it (BSD variants) */
5899 #include <fcntl.h>
5900 #include <sys/mman.h>
5902 #if !STDC_HEADERS && !HAVE_STDLIB_H
5903 char *malloc ();
5904 #endif
5906 /* This mess was copied from the GNU getpagesize.h. */
5907 #if !HAVE_GETPAGESIZE
5908 /* Assume that all systems that can run configure have sys/param.h. */
5909 # if !HAVE_SYS_PARAM_H
5910 # define HAVE_SYS_PARAM_H 1
5911 # endif
5913 # ifdef _SC_PAGESIZE
5914 # define getpagesize() sysconf(_SC_PAGESIZE)
5915 # else /* no _SC_PAGESIZE */
5916 # if HAVE_SYS_PARAM_H
5917 # include <sys/param.h>
5918 # ifdef EXEC_PAGESIZE
5919 # define getpagesize() EXEC_PAGESIZE
5920 # else /* no EXEC_PAGESIZE */
5921 # ifdef NBPG
5922 # define getpagesize() NBPG * CLSIZE
5923 # ifndef CLSIZE
5924 # define CLSIZE 1
5925 # endif /* no CLSIZE */
5926 # else /* no NBPG */
5927 # ifdef NBPC
5928 # define getpagesize() NBPC
5929 # else /* no NBPC */
5930 # ifdef PAGESIZE
5931 # define getpagesize() PAGESIZE
5932 # endif /* PAGESIZE */
5933 # endif /* no NBPC */
5934 # endif /* no NBPG */
5935 # endif /* no EXEC_PAGESIZE */
5936 # else /* no HAVE_SYS_PARAM_H */
5937 # define getpagesize() 8192 /* punt totally */
5938 # endif /* no HAVE_SYS_PARAM_H */
5939 # endif /* no _SC_PAGESIZE */
5941 #endif /* no HAVE_GETPAGESIZE */
5944 main ()
5946 char *data, *data2, *data3;
5947 int i, pagesize;
5948 int fd;
5950 pagesize = getpagesize ();
5952 /* First, make a file with some known garbage in it. */
5953 data = (char *) malloc (pagesize);
5954 if (!data)
5955 exit (1);
5956 for (i = 0; i < pagesize; ++i)
5957 *(data + i) = rand ();
5958 umask (0);
5959 fd = creat ("conftest.mmap", 0600);
5960 if (fd < 0)
5961 exit (1);
5962 if (write (fd, data, pagesize) != pagesize)
5963 exit (1);
5964 close (fd);
5966 /* Next, try to mmap the file at a fixed address which already has
5967 something else allocated at it. If we can, also make sure that
5968 we see the same garbage. */
5969 fd = open ("conftest.mmap", O_RDWR);
5970 if (fd < 0)
5971 exit (1);
5972 data2 = (char *) malloc (2 * pagesize);
5973 if (!data2)
5974 exit (1);
5975 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5978 exit (1);
5979 for (i = 0; i < pagesize; ++i)
5980 if (*(data + i) != *(data2 + i))
5981 exit (1);
5983 /* Finally, make sure that changes to the mapped area do not
5984 percolate back to the file as seen by read(). (This is a bug on
5985 some variants of i386 svr4.0.) */
5986 for (i = 0; i < pagesize; ++i)
5987 *(data2 + i) = *(data2 + i) + 1;
5988 data3 = (char *) malloc (pagesize);
5989 if (!data3)
5990 exit (1);
5991 if (read (fd, data3, pagesize) != pagesize)
5992 exit (1);
5993 for (i = 0; i < pagesize; ++i)
5994 if (*(data + i) != *(data3 + i))
5995 exit (1);
5996 close (fd);
5997 exit (0);
5999 _ACEOF
6000 rm -f conftest$ac_exeext
6001 if { (eval echo "$as_me:6001: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6003 ac_status=$?
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006 { (eval echo "$as_me:6006: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_func_mmap_fixed_mapped=yes
6012 else
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 ac_cv_func_mmap_fixed_mapped=no
6018 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:6021: result: $ac_cv_func_mmap_fixed_mapped" >&5
6022 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6023 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6025 cat >>confdefs.h <<\EOF
6026 #define HAVE_MMAP 1
6030 rm -f conftest.mmap
6032 if test $use_mmap_for_buffers = yes; then
6033 REL_ALLOC=no
6036 LIBS="$libsrc_libs $LIBS"
6038 echo "$as_me:6038: checking for dnet_ntoa in -ldnet" >&5
6039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043 ac_check_lib_save_LIBS=$LIBS
6044 LIBS="-ldnet $LIBS"
6045 cat >conftest.$ac_ext <<_ACEOF
6046 #line 6046 "configure"
6047 #include "confdefs.h"
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 #ifdef __cplusplus
6051 extern "C"
6052 #endif
6053 /* We use char because int might match the return type of a gcc2
6054 builtin and then its argument prototype would still apply. */
6055 char dnet_ntoa ();
6057 main ()
6059 dnet_ntoa ();
6061 return 0;
6063 _ACEOF
6064 rm -f conftest.$ac_objext conftest$ac_exeext
6065 if { (eval echo "$as_me:6065: \"$ac_link\"") >&5
6066 (eval $ac_link) 2>&5
6067 ac_status=$?
6068 echo "$as_me:6068: \$? = $ac_status" >&5
6069 (exit $ac_status); } &&
6070 { ac_try='test -s conftest$ac_exeext'
6071 { (eval echo "$as_me:6071: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:6074: \$? = $ac_status" >&5
6075 (exit $ac_status); }; }; then
6076 ac_cv_lib_dnet_dnet_ntoa=yes
6077 else
6078 echo "$as_me: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 ac_cv_lib_dnet_dnet_ntoa=no
6082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6083 LIBS=$ac_check_lib_save_LIBS
6085 echo "$as_me:6085: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6086 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6087 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6088 cat >>confdefs.h <<EOF
6089 #define HAVE_LIBDNET 1
6092 LIBS="-ldnet $LIBS"
6096 echo "$as_me:6096: checking for main in -lXbsd" >&5
6097 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6098 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 ac_check_lib_save_LIBS=$LIBS
6102 LIBS="-lXbsd $LIBS"
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line 6104 "configure"
6105 #include "confdefs.h"
6108 main ()
6110 main ();
6112 return 0;
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:6116: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>&5
6118 ac_status=$?
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -s conftest$ac_exeext'
6122 { (eval echo "$as_me:6122: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_lib_Xbsd_main=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6131 ac_cv_lib_Xbsd_main=no
6133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6134 LIBS=$ac_check_lib_save_LIBS
6136 echo "$as_me:6136: result: $ac_cv_lib_Xbsd_main" >&5
6137 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6138 if test $ac_cv_lib_Xbsd_main = yes; then
6139 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6142 echo "$as_me:6142: checking for cma_open in -lpthreads" >&5
6143 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6144 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 ac_check_lib_save_LIBS=$LIBS
6148 LIBS="-lpthreads $LIBS"
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line 6150 "configure"
6151 #include "confdefs.h"
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char cma_open ();
6161 main ()
6163 cma_open ();
6165 return 0;
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:6169: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>&5
6171 ac_status=$?
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest$ac_exeext'
6175 { (eval echo "$as_me:6175: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:6178: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_cv_lib_pthreads_cma_open=yes
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6184 ac_cv_lib_pthreads_cma_open=no
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6189 echo "$as_me:6189: result: $ac_cv_lib_pthreads_cma_open" >&5
6190 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6191 if test $ac_cv_lib_pthreads_cma_open = yes; then
6192 cat >>confdefs.h <<EOF
6193 #define HAVE_LIBPTHREADS 1
6196 LIBS="-lpthreads $LIBS"
6200 echo "$as_me:6200: checking for XFree86 in /usr/X386" >&5
6201 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6202 if test -d /usr/X386/include; then
6203 HAVE_XFREE386=yes
6204 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6205 else
6206 HAVE_XFREE386=no
6208 echo "$as_me:6208: result: $HAVE_XFREE386" >&5
6209 echo "${ECHO_T}$HAVE_XFREE386" >&6
6211 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6212 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6214 REAL_CPPFLAGS="$CPPFLAGS"
6216 if test "${HAVE_X11}" = "yes"; then
6217 DEFS="$C_SWITCH_X_SITE $DEFS"
6218 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6219 LIBS="$LIBX $LIBS"
6220 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6221 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6223 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6224 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6225 # but it's more convenient here to set LD_RUN_PATH
6226 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6227 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6228 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6229 export LD_RUN_PATH
6232 if test "${opsys}" = "gnu-linux"; then
6233 echo "$as_me:6233: checking whether X on GNU/Linux needs -b to link" >&5
6234 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line 6236 "configure"
6237 #include "confdefs.h"
6240 main ()
6242 XOpenDisplay ("foo");
6244 return 0;
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (eval echo "$as_me:6248: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
6250 ac_status=$?
6251 echo "$as_me:6251: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -s conftest$ac_exeext'
6254 { (eval echo "$as_me:6254: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:6257: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 xlinux_first_failure=no
6260 else
6261 echo "$as_me: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6263 xlinux_first_failure=yes
6265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6266 if test "${xlinux_first_failure}" = "yes"; then
6267 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6268 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6269 OLD_CPPFLAGS="$CPPFLAGS"
6270 OLD_LIBS="$LIBS"
6271 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6272 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6273 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6274 LIBS="$LIBS -b i486-linuxaout"
6275 cat >conftest.$ac_ext <<_ACEOF
6276 #line 6276 "configure"
6277 #include "confdefs.h"
6280 main ()
6282 XOpenDisplay ("foo");
6284 return 0;
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:6288: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>&5
6290 ac_status=$?
6291 echo "$as_me:6291: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:6294: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:6297: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 xlinux_second_failure=no
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 xlinux_second_failure=yes
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6306 if test "${xlinux_second_failure}" = "yes"; then
6307 # If we get the same failure with -b, there is no use adding -b.
6308 # So take it out. This plays safe.
6309 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6310 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6311 CPPFLAGS="$OLD_CPPFLAGS"
6312 LIBS="$OLD_LIBS"
6313 echo "$as_me:6313: result: no" >&5
6314 echo "${ECHO_T}no" >&6
6315 else
6316 echo "$as_me:6316: result: yes" >&5
6317 echo "${ECHO_T}yes" >&6
6319 else
6320 echo "$as_me:6320: result: no" >&5
6321 echo "${ECHO_T}no" >&6
6325 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6326 # header files included from there.
6327 echo "$as_me:6327: checking for Xkb" >&5
6328 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6329 cat >conftest.$ac_ext <<_ACEOF
6330 #line 6330 "configure"
6331 #include "confdefs.h"
6332 #include <X11/Xlib.h>
6333 #include <X11/XKBlib.h>
6335 main ()
6337 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (eval echo "$as_me:6343: \"$ac_link\"") >&5
6344 (eval $ac_link) 2>&5
6345 ac_status=$?
6346 echo "$as_me:6346: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:6349: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 emacs_xkb=yes
6355 else
6356 echo "$as_me: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 emacs_xkb=no
6360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361 echo "$as_me:6361: result: $emacs_xkb" >&5
6362 echo "${ECHO_T}$emacs_xkb" >&6
6363 if test $emacs_xkb = yes; then
6365 cat >>confdefs.h <<\EOF
6366 #define HAVE_XKBGETKEYBOARD 1
6371 for ac_func in XrmSetDatabase XScreenResourceString \
6372 XScreenNumberOfScreen XSetWMProtocols
6374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6375 echo "$as_me:6375: checking for $ac_func" >&5
6376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_var+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line 6381 "configure"
6382 #include "confdefs.h"
6383 /* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char $ac_func (); below. */
6385 #include <assert.h>
6386 /* Override any gcc2 internal prototype to avoid an error. */
6387 #ifdef __cplusplus
6388 extern "C"
6389 #endif
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6392 char $ac_func ();
6393 char (*f) ();
6396 main ()
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 choke me
6403 #else
6404 f = $ac_func;
6405 #endif
6408 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:6412: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>&5
6414 ac_status=$?
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:6418: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_var=yes"
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 eval "$as_ac_var=no"
6429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431 echo "$as_me:6431: result: `eval echo '${'$as_ac_var'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6433 if test `eval echo '${'$as_ac_var'}'` = yes; then
6434 cat >>confdefs.h <<EOF
6435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6439 done
6443 if test "${window_system}" = "x11"; then
6444 echo "$as_me:6444: checking X11 version 6" >&5
6445 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6446 if test "${emacs_cv_x11_version_6+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line 6450 "configure"
6451 #include "confdefs.h"
6452 #include <X11/Xlib.h>
6454 main ()
6456 #if XlibSpecificationRelease < 6
6457 fail;
6458 #endif
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (eval echo "$as_me:6465: \"$ac_link\"") >&5
6466 (eval $ac_link) 2>&5
6467 ac_status=$?
6468 echo "$as_me:6468: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -s conftest$ac_exeext'
6471 { (eval echo "$as_me:6471: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:6474: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 emacs_cv_x11_version_6=yes
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6480 emacs_cv_x11_version_6=no
6482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6485 if test $emacs_cv_x11_version_6 = yes; then
6486 echo "$as_me:6486: result: 6 or newer" >&5
6487 echo "${ECHO_T}6 or newer" >&6
6489 cat >>confdefs.h <<\EOF
6490 #define HAVE_X11R6 1
6493 else
6494 echo "$as_me:6494: result: before 6" >&5
6495 echo "${ECHO_T}before 6" >&6
6499 if test "${window_system}" = "x11"; then
6500 echo "$as_me:6500: checking X11 version 5" >&5
6501 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6502 if test "${emacs_cv_x11_version_5+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line 6506 "configure"
6507 #include "confdefs.h"
6508 #include <X11/Xlib.h>
6510 main ()
6512 #if XlibSpecificationRelease < 5
6513 fail;
6514 #endif
6517 return 0;
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:6521: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>&5
6523 ac_status=$?
6524 echo "$as_me:6524: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -s conftest$ac_exeext'
6527 { (eval echo "$as_me:6527: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:6530: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 emacs_cv_x11_version_5=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6536 emacs_cv_x11_version_5=no
6538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6541 if test $emacs_cv_x11_version_5 = yes; then
6542 echo "$as_me:6542: result: 5 or newer" >&5
6543 echo "${ECHO_T}5 or newer" >&6
6544 HAVE_X11R5=yes
6546 cat >>confdefs.h <<\EOF
6547 #define HAVE_X11R5 1
6550 else
6551 HAVE_X11R5=no
6552 echo "$as_me:6552: result: before 5" >&5
6553 echo "${ECHO_T}before 5" >&6
6557 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6558 if test x"${HAVE_X11R5}" = xyes; then
6559 echo "$as_me:6559: checking X11 version 5 with Xaw" >&5
6560 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6561 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 cat >conftest.$ac_ext <<_ACEOF
6565 #line 6565 "configure"
6566 #include "confdefs.h"
6568 #include <X11/Intrinsic.h>
6569 #include <X11/Xaw/Simple.h>
6571 main ()
6575 return 0;
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:6579: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>&5
6581 ac_status=$?
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 (exit $ac_status); } &&
6584 { ac_try='test -s conftest$ac_exeext'
6585 { (eval echo "$as_me:6585: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:6588: \$? = $ac_status" >&5
6589 (exit $ac_status); }; }; then
6590 emacs_cv_x11_version_5_with_xaw=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6594 emacs_cv_x11_version_5_with_xaw=no
6596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6600 echo "$as_me:6600: result: 5 or newer, with Xaw; use toolkit by default" >&5
6601 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6602 USE_X_TOOLKIT=LUCID
6603 else
6604 echo "$as_me:6604: result: before 5 or no Xaw; do not use toolkit by default" >&5
6605 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6606 USE_X_TOOLKIT=none
6608 else
6609 USE_X_TOOLKIT=none
6613 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6615 if test "${USE_X_TOOLKIT}" != "none"; then
6616 echo "$as_me:6616: checking X11 toolkit version" >&5
6617 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6618 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 #line 6622 "configure"
6623 #include "confdefs.h"
6624 #include <X11/Intrinsic.h>
6626 main ()
6628 #if XtSpecificationRelease < 6
6629 fail;
6630 #endif
6633 return 0;
6635 _ACEOF
6636 rm -f conftest.$ac_objext conftest$ac_exeext
6637 if { (eval echo "$as_me:6637: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:6643: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 emacs_cv_x11_toolkit_version_6=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 emacs_cv_x11_toolkit_version_6=no
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6657 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6658 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6659 echo "$as_me:6659: result: 6 or newer" >&5
6660 echo "${ECHO_T}6 or newer" >&6
6662 cat >>confdefs.h <<\EOF
6663 #define HAVE_X11XTR6 1
6666 else
6667 echo "$as_me:6667: result: before 6" >&5
6668 echo "${ECHO_T}before 6" >&6
6671 OLDLIBS="$LIBS"
6672 if test x$HAVE_X11XTR6 = xyes; then
6673 LIBS="-lXt -lSM -lICE $LIBS"
6674 else
6675 LIBS="-lXt $LIBS"
6678 echo "$as_me:6678: checking for XmuConvertStandardSelection in -lXmu" >&5
6679 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6680 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 ac_check_lib_save_LIBS=$LIBS
6684 LIBS="-lXmu $LIBS"
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6689 /* Override any gcc2 internal prototype to avoid an error. */
6690 #ifdef __cplusplus
6691 extern "C"
6692 #endif
6693 /* We use char because int might match the return type of a gcc2
6694 builtin and then its argument prototype would still apply. */
6695 char XmuConvertStandardSelection ();
6697 main ()
6699 XmuConvertStandardSelection ();
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (eval echo "$as_me:6705: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6707 ac_status=$?
6708 echo "$as_me:6708: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:6711: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6720 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6723 LIBS=$ac_check_lib_save_LIBS
6725 echo "$as_me:6725: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6726 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6727 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6728 cat >>confdefs.h <<EOF
6729 #define HAVE_LIBXMU 1
6732 LIBS="-lXmu $LIBS"
6736 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6739 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6740 if test "${HAVE_X11}" = "yes"; then
6741 if test "${USE_X_TOOLKIT}" != "none"; then
6743 echo "$as_me:6743: checking for XShapeQueryExtension in -lXext" >&5
6744 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6745 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 ac_check_lib_save_LIBS=$LIBS
6749 LIBS="-lXext $LIBS"
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line 6751 "configure"
6752 #include "confdefs.h"
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6760 char XShapeQueryExtension ();
6762 main ()
6764 XShapeQueryExtension ();
6766 return 0;
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:6770: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>&5
6772 ac_status=$?
6773 echo "$as_me:6773: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest$ac_exeext'
6776 { (eval echo "$as_me:6776: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_cv_lib_Xext_XShapeQueryExtension=yes
6782 else
6783 echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 ac_cv_lib_Xext_XShapeQueryExtension=no
6787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 LIBS=$ac_check_lib_save_LIBS
6790 echo "$as_me:6790: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6791 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6792 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6793 cat >>confdefs.h <<EOF
6794 #define HAVE_LIBXEXT 1
6797 LIBS="-lXext $LIBS"
6804 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6805 echo "$as_me:6805: checking for LessTif where some systems put it" >&5
6806 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
6807 if test "${emacs_cv_lesstif+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 #line 6811 "configure"
6812 #include "confdefs.h"
6813 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
6815 main ()
6817 int x = 5;
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext
6823 if { (eval echo "$as_me:6823: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>&5
6825 ac_status=$?
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -s conftest.$ac_objext'
6829 { (eval echo "$as_me:6829: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:6832: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 emacs_cv_lesstif=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6838 emacs_cv_lesstif=no
6840 rm -f conftest.$ac_objext conftest.$ac_ext
6842 echo "$as_me:6842: result: $emacs_cv_lesstif" >&5
6843 echo "${ECHO_T}$emacs_cv_lesstif" >&6
6844 if test $emacs_cv_lesstif = yes; then
6845 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
6846 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
6848 echo "$as_me:6848: checking for Motif version 2.1" >&5
6849 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6850 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 cat >conftest.$ac_ext <<_ACEOF
6854 #line 6854 "configure"
6855 #include "confdefs.h"
6856 #include <Xm/Xm.h>
6858 main ()
6860 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6861 int x = 5;
6862 #else
6863 Motif version prior to 2.1.
6864 #endif
6866 return 0;
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:6870: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6872 ac_status=$?
6873 echo "$as_me:6873: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:6876: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:6879: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 emacs_cv_motif_version_2_1=yes
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 emacs_cv_motif_version_2_1=no
6887 rm -f conftest.$ac_objext conftest.$ac_ext
6889 echo "$as_me:6889: result: $emacs_cv_motif_version_2_1" >&5
6890 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6891 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6892 if test $emacs_cv_motif_version_2_1 = yes; then
6893 HAVE_LIBXP=no
6895 cat >>confdefs.h <<\EOF
6896 #define HAVE_MOTIF_2_1 1
6899 echo "$as_me:6899: checking for XpCreateContext in -lXp" >&5
6900 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6901 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 ac_check_lib_save_LIBS=$LIBS
6905 LIBS="-lXp $LIBS"
6906 cat >conftest.$ac_ext <<_ACEOF
6907 #line 6907 "configure"
6908 #include "confdefs.h"
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 #ifdef __cplusplus
6912 extern "C"
6913 #endif
6914 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */
6916 char XpCreateContext ();
6918 main ()
6920 XpCreateContext ();
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:6926: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6928 ac_status=$?
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:6932: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:6935: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_lib_Xp_XpCreateContext=yes
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6941 ac_cv_lib_Xp_XpCreateContext=no
6943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6944 LIBS=$ac_check_lib_save_LIBS
6946 echo "$as_me:6946: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6947 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6948 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6949 HAVE_LIBXP=yes
6952 if test ${HAVE_LIBXP} = yes; then
6954 cat >>confdefs.h <<\EOF
6955 #define HAVE_LIBXP 1
6962 ### Is -lXaw3d available?
6963 HAVE_XAW3D=no
6964 if test "${HAVE_X11}" = "yes"; then
6965 if test "${USE_X_TOOLKIT}" != "none"; then
6966 echo "$as_me:6966: checking for X11/Xaw3d/Scrollbar.h" >&5
6967 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6968 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line 6972 "configure"
6973 #include "confdefs.h"
6974 #include <X11/Xaw3d/Scrollbar.h>
6975 _ACEOF
6976 if { (eval echo "$as_me:6976: \"$ac_cpp conftest.$ac_ext\"") >&5
6977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6978 ac_status=$?
6979 egrep -v '^ *\+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:6982: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null; then
6984 if test -s conftest.err; then
6985 ac_cpp_err=$ac_c_preproc_warn_flag
6986 else
6987 ac_cpp_err=
6989 else
6990 ac_cpp_err=yes
6992 if test -z "$ac_cpp_err"; then
6993 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6999 rm -f conftest.err conftest.$ac_ext
7001 echo "$as_me:7001: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7002 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7003 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
7004 echo "$as_me:7004: checking for XawScrollbarSetThumb in -lXaw3d" >&5
7005 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
7006 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 ac_check_lib_save_LIBS=$LIBS
7010 LIBS="-lXaw3d $LIBS"
7011 cat >conftest.$ac_ext <<_ACEOF
7012 #line 7012 "configure"
7013 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char XawScrollbarSetThumb ();
7023 main ()
7025 XawScrollbarSetThumb ();
7027 return 0;
7029 _ACEOF
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:7031: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>&5
7033 ac_status=$?
7034 echo "$as_me:7034: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:7037: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7046 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7049 LIBS=$ac_check_lib_save_LIBS
7051 echo "$as_me:7051: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7052 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7053 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7054 HAVE_XAW3D=yes
7059 if test "${HAVE_XAW3D}" = "yes"; then
7061 cat >>confdefs.h <<\EOF
7062 #define HAVE_XAW3D 1
7069 USE_TOOLKIT_SCROLL_BARS=no
7070 if test "${with_toolkit_scroll_bars}" != "no"; then
7071 if test "${USE_X_TOOLKIT}" != "none"; then
7072 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7073 cat >>confdefs.h <<\EOF
7074 #define USE_TOOLKIT_SCROLL_BARS 1
7077 HAVE_XAW3D=no
7078 USE_TOOLKIT_SCROLL_BARS=yes
7079 elif test "${HAVE_XAW3D}" = "yes"; then
7080 cat >>confdefs.h <<\EOF
7081 #define USE_TOOLKIT_SCROLL_BARS 1
7084 USE_TOOLKIT_SCROLL_BARS=yes
7089 if test "${with_xim}" != "no"; then
7091 cat >>confdefs.h <<\EOF
7092 #define USE_XIM 1
7097 ### Use -lXpm if available, unless `--with-xpm=no'.
7098 HAVE_XPM=no
7099 if test "${HAVE_X11}" = "yes"; then
7100 if test "${with_xpm}" != "no"; then
7101 echo "$as_me:7101: checking for X11/xpm.h" >&5
7102 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7103 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 #line 7107 "configure"
7108 #include "confdefs.h"
7109 #include <X11/xpm.h>
7110 _ACEOF
7111 if { (eval echo "$as_me:7111: \"$ac_cpp conftest.$ac_ext\"") >&5
7112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113 ac_status=$?
7114 egrep -v '^ *\+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null; then
7119 if test -s conftest.err; then
7120 ac_cpp_err=$ac_c_preproc_warn_flag
7121 else
7122 ac_cpp_err=
7124 else
7125 ac_cpp_err=yes
7127 if test -z "$ac_cpp_err"; then
7128 ac_cv_header_X11_xpm_h=yes
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 ac_cv_header_X11_xpm_h=no
7134 rm -f conftest.err conftest.$ac_ext
7136 echo "$as_me:7136: result: $ac_cv_header_X11_xpm_h" >&5
7137 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7138 if test $ac_cv_header_X11_xpm_h = yes; then
7139 echo "$as_me:7139: checking for XpmReadFileToPixmap in -lXpm" >&5
7140 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7141 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lXpm -lX11 $LIBS"
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line 7147 "configure"
7148 #include "confdefs.h"
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 #ifdef __cplusplus
7152 extern "C"
7153 #endif
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char XpmReadFileToPixmap ();
7158 main ()
7160 XpmReadFileToPixmap ();
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (eval echo "$as_me:7166: \"$ac_link\"") >&5
7167 (eval $ac_link) 2>&5
7168 ac_status=$?
7169 echo "$as_me:7169: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:7172: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7178 else
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7184 LIBS=$ac_check_lib_save_LIBS
7186 echo "$as_me:7186: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7187 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7188 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7189 HAVE_XPM=yes
7194 if test "${HAVE_XPM}" = "yes"; then
7195 echo "$as_me:7195: checking for XpmReturnAllocPixels preprocessor define" >&5
7196 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line 7198 "configure"
7199 #include "confdefs.h"
7200 #include "X11/xpm.h"
7201 #ifndef XpmReturnAllocPixels
7202 no_return_alloc_pixels
7203 #endif
7205 _ACEOF
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7208 HAVE_XPM=no
7209 else
7210 HAVE_XPM=yes
7212 rm -f conftest*
7214 if test "${HAVE_XPM}" = "yes"; then
7215 echo "$as_me:7215: result: yes" >&5
7216 echo "${ECHO_T}yes" >&6
7217 else
7218 echo "$as_me:7218: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7224 if test "${HAVE_XPM}" = "yes"; then
7226 cat >>confdefs.h <<\EOF
7227 #define HAVE_XPM 1
7233 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7234 HAVE_JPEG=no
7235 if test "${HAVE_X11}" = "yes"; then
7236 if test "${with_jpeg}" != "no"; then
7237 echo "$as_me:7237: checking for jerror.h" >&5
7238 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7239 if test "${ac_cv_header_jerror_h+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line 7243 "configure"
7244 #include "confdefs.h"
7245 #include <jerror.h>
7246 _ACEOF
7247 if { (eval echo "$as_me:7247: \"$ac_cpp conftest.$ac_ext\"") >&5
7248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7249 ac_status=$?
7250 egrep -v '^ *\+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); } >/dev/null; then
7255 if test -s conftest.err; then
7256 ac_cpp_err=$ac_c_preproc_warn_flag
7257 else
7258 ac_cpp_err=
7260 else
7261 ac_cpp_err=yes
7263 if test -z "$ac_cpp_err"; then
7264 ac_cv_header_jerror_h=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 ac_cv_header_jerror_h=no
7270 rm -f conftest.err conftest.$ac_ext
7272 echo "$as_me:7272: result: $ac_cv_header_jerror_h" >&5
7273 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7274 if test $ac_cv_header_jerror_h = yes; then
7275 echo "$as_me:7275: checking for jpeg_destroy_compress in -ljpeg" >&5
7276 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7277 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 ac_check_lib_save_LIBS=$LIBS
7281 LIBS="-ljpeg $LIBS"
7282 cat >conftest.$ac_ext <<_ACEOF
7283 #line 7283 "configure"
7284 #include "confdefs.h"
7286 /* Override any gcc2 internal prototype to avoid an error. */
7287 #ifdef __cplusplus
7288 extern "C"
7289 #endif
7290 /* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7292 char jpeg_destroy_compress ();
7294 main ()
7296 jpeg_destroy_compress ();
7298 return 0;
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (eval echo "$as_me:7302: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>&5
7304 ac_status=$?
7305 echo "$as_me:7305: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest$ac_exeext'
7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7322 echo "$as_me:7322: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7323 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7324 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7325 HAVE_JPEG=yes
7332 if test "${HAVE_JPEG}" = "yes"; then
7333 cat >>confdefs.h <<\EOF
7334 #define HAVE_JPEG 1
7337 cat >conftest.$ac_ext <<_ACEOF
7338 #line 7338 "configure"
7339 #include "confdefs.h"
7340 #include <jpeglib.h>
7341 version=JPEG_LIB_VERSION
7343 _ACEOF
7344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7345 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7346 cat >>confdefs.h <<\EOF
7347 #define HAVE_JPEG 1
7350 else
7351 { echo "$as_me:7351: WARNING: libjpeg found, but not version 6b or later" >&5
7352 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7353 HAVE_JPEG=no
7355 rm -f conftest*
7360 ### Use -lpng if available, unless `--with-png=no'.
7361 HAVE_PNG=no
7362 if test "${HAVE_X11}" = "yes"; then
7363 if test "${with_png}" != "no"; then
7364 echo "$as_me:7364: checking for png.h" >&5
7365 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7366 if test "${ac_cv_header_png_h+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 cat >conftest.$ac_ext <<_ACEOF
7370 #line 7370 "configure"
7371 #include "confdefs.h"
7372 #include <png.h>
7373 _ACEOF
7374 if { (eval echo "$as_me:7374: \"$ac_cpp conftest.$ac_ext\"") >&5
7375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376 ac_status=$?
7377 egrep -v '^ *\+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:7380: \$? = $ac_status" >&5
7381 (exit $ac_status); } >/dev/null; then
7382 if test -s conftest.err; then
7383 ac_cpp_err=$ac_c_preproc_warn_flag
7384 else
7385 ac_cpp_err=
7387 else
7388 ac_cpp_err=yes
7390 if test -z "$ac_cpp_err"; then
7391 ac_cv_header_png_h=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7395 ac_cv_header_png_h=no
7397 rm -f conftest.err conftest.$ac_ext
7399 echo "$as_me:7399: result: $ac_cv_header_png_h" >&5
7400 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7401 if test $ac_cv_header_png_h = yes; then
7402 echo "$as_me:7402: checking for png_get_channels in -lpng" >&5
7403 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7404 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 ac_check_lib_save_LIBS=$LIBS
7408 LIBS="-lpng -lz -lm $LIBS"
7409 cat >conftest.$ac_ext <<_ACEOF
7410 #line 7410 "configure"
7411 #include "confdefs.h"
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 #ifdef __cplusplus
7415 extern "C"
7416 #endif
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7419 char png_get_channels ();
7421 main ()
7423 png_get_channels ();
7425 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:7429: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7431 ac_status=$?
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -s conftest$ac_exeext'
7435 { (eval echo "$as_me:7435: \"$ac_try\"") >&5
7436 (eval $ac_try) 2>&5
7437 ac_status=$?
7438 echo "$as_me:7438: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_lib_png_png_get_channels=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 ac_cv_lib_png_png_get_channels=no
7446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7447 LIBS=$ac_check_lib_save_LIBS
7449 echo "$as_me:7449: result: $ac_cv_lib_png_png_get_channels" >&5
7450 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7451 if test $ac_cv_lib_png_png_get_channels = yes; then
7452 HAVE_PNG=yes
7459 if test "${HAVE_PNG}" = "yes"; then
7461 cat >>confdefs.h <<\EOF
7462 #define HAVE_PNG 1
7468 ### Use -ltiff if available, unless `--with-tiff=no'.
7469 HAVE_TIFF=no
7470 if test "${HAVE_X11}" = "yes"; then
7471 if test "${with_tiff}" != "no"; then
7472 echo "$as_me:7472: checking for tiffio.h" >&5
7473 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7474 if test "${ac_cv_header_tiffio_h+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477 cat >conftest.$ac_ext <<_ACEOF
7478 #line 7478 "configure"
7479 #include "confdefs.h"
7480 #include <tiffio.h>
7481 _ACEOF
7482 if { (eval echo "$as_me:7482: \"$ac_cpp conftest.$ac_ext\"") >&5
7483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7484 ac_status=$?
7485 egrep -v '^ *\+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 (exit $ac_status); } >/dev/null; then
7490 if test -s conftest.err; then
7491 ac_cpp_err=$ac_c_preproc_warn_flag
7492 else
7493 ac_cpp_err=
7495 else
7496 ac_cpp_err=yes
7498 if test -z "$ac_cpp_err"; then
7499 ac_cv_header_tiffio_h=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 cat conftest.$ac_ext >&5
7503 ac_cv_header_tiffio_h=no
7505 rm -f conftest.err conftest.$ac_ext
7507 echo "$as_me:7507: result: $ac_cv_header_tiffio_h" >&5
7508 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7509 if test $ac_cv_header_tiffio_h = yes; then
7510 tifflibs="-lz -lm"
7511 # At least one tiff package requires the jpeg library.
7512 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7513 echo "$as_me:7513: checking for TIFFGetVersion in -ltiff" >&5
7514 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7515 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518 ac_check_lib_save_LIBS=$LIBS
7519 LIBS="-ltiff $tifflibs $LIBS"
7520 cat >conftest.$ac_ext <<_ACEOF
7521 #line 7521 "configure"
7522 #include "confdefs.h"
7524 /* Override any gcc2 internal prototype to avoid an error. */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7530 char TIFFGetVersion ();
7532 main ()
7534 TIFFGetVersion ();
7536 return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:7540: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>&5
7542 ac_status=$?
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try='test -s conftest$ac_exeext'
7546 { (eval echo "$as_me:7546: \"$ac_try\"") >&5
7547 (eval $ac_try) 2>&5
7548 ac_status=$?
7549 echo "$as_me:7549: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7551 ac_cv_lib_tiff_TIFFGetVersion=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_cv_lib_tiff_TIFFGetVersion=no
7557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 echo "$as_me:7560: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7561 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7562 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7563 HAVE_TIFF=yes
7570 if test "${HAVE_TIFF}" = "yes"; then
7572 cat >>confdefs.h <<\EOF
7573 #define HAVE_TIFF 1
7579 ### Use -lgif if available, unless `--with-gif=no'.
7580 HAVE_GIF=no
7581 if test "${HAVE_X11}" = "yes"; then
7582 if test "${with_gif}" != "no"; then
7583 echo "$as_me:7583: checking for gif_lib.h" >&5
7584 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7585 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 cat >conftest.$ac_ext <<_ACEOF
7589 #line 7589 "configure"
7590 #include "confdefs.h"
7591 #include <gif_lib.h>
7592 _ACEOF
7593 if { (eval echo "$as_me:7593: \"$ac_cpp conftest.$ac_ext\"") >&5
7594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7595 ac_status=$?
7596 egrep -v '^ *\+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 (exit $ac_status); } >/dev/null; then
7601 if test -s conftest.err; then
7602 ac_cpp_err=$ac_c_preproc_warn_flag
7603 else
7604 ac_cpp_err=
7606 else
7607 ac_cpp_err=yes
7609 if test -z "$ac_cpp_err"; then
7610 ac_cv_header_gif_lib_h=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7614 ac_cv_header_gif_lib_h=no
7616 rm -f conftest.err conftest.$ac_ext
7618 echo "$as_me:7618: result: $ac_cv_header_gif_lib_h" >&5
7619 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7620 if test $ac_cv_header_gif_lib_h = yes; then
7621 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7622 # Earlier versions can crash Emacs.
7623 echo "$as_me:7623: checking for EGifPutExtensionLast in -lungif" >&5
7624 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7625 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lungif $LIBS"
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line 7631 "configure"
7632 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 #ifdef __cplusplus
7636 extern "C"
7637 #endif
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640 char EGifPutExtensionLast ();
7642 main ()
7644 EGifPutExtensionLast ();
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext conftest$ac_exeext
7650 if { (eval echo "$as_me:7650: \"$ac_link\"") >&5
7651 (eval $ac_link) 2>&5
7652 ac_status=$?
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try='test -s conftest$ac_exeext'
7656 { (eval echo "$as_me:7656: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7661 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7662 else
7663 echo "$as_me: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7665 ac_cv_lib_ungif_EGifPutExtensionLast=no
7667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7668 LIBS=$ac_check_lib_save_LIBS
7670 echo "$as_me:7670: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7671 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7672 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7673 HAVE_GIF=yes
7680 if test "${HAVE_GIF}" = "yes"; then
7682 cat >>confdefs.h <<\EOF
7683 #define HAVE_GIF 1
7689 ### Use Mac OS X Carbon API to implement GUI.
7690 HAVE_CARBON=no
7691 if test "${with_carbon}" != "no"; then
7692 echo "$as_me:7692: checking for Carbon/Carbon.h" >&5
7693 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7694 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697 cat >conftest.$ac_ext <<_ACEOF
7698 #line 7698 "configure"
7699 #include "confdefs.h"
7700 #include <Carbon/Carbon.h>
7701 _ACEOF
7702 if { (eval echo "$as_me:7702: \"$ac_cpp conftest.$ac_ext\"") >&5
7703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7704 ac_status=$?
7705 egrep -v '^ *\+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:7708: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev/null; then
7710 if test -s conftest.err; then
7711 ac_cpp_err=$ac_c_preproc_warn_flag
7712 else
7713 ac_cpp_err=
7715 else
7716 ac_cpp_err=yes
7718 if test -z "$ac_cpp_err"; then
7719 ac_cv_header_Carbon_Carbon_h=yes
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7723 ac_cv_header_Carbon_Carbon_h=no
7725 rm -f conftest.err conftest.$ac_ext
7727 echo "$as_me:7727: result: $ac_cv_header_Carbon_Carbon_h" >&5
7728 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7729 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7730 HAVE_CARBON=yes
7735 if test "${HAVE_CARBON}" = "yes"; then
7737 cat >>confdefs.h <<\EOF
7738 #define HAVE_CARBON 1
7743 ### Use session management (-lSM -lICE) if available
7744 HAVE_X_SM=no
7745 if test "${HAVE_X11}" = "yes"; then
7746 echo "$as_me:7746: checking for X11/SM/SMlib.h" >&5
7747 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7754 #include <X11/SM/SMlib.h>
7755 _ACEOF
7756 if { (eval echo "$as_me:7756: \"$ac_cpp conftest.$ac_ext\"") >&5
7757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7758 ac_status=$?
7759 egrep -v '^ *\+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 (exit $ac_status); } >/dev/null; then
7764 if test -s conftest.err; then
7765 ac_cpp_err=$ac_c_preproc_warn_flag
7766 else
7767 ac_cpp_err=
7769 else
7770 ac_cpp_err=yes
7772 if test -z "$ac_cpp_err"; then
7773 ac_cv_header_X11_SM_SMlib_h=yes
7774 else
7775 echo "$as_me: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_cv_header_X11_SM_SMlib_h=no
7779 rm -f conftest.err conftest.$ac_ext
7781 echo "$as_me:7781: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7782 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7783 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7784 echo "$as_me:7784: checking for SmcOpenConnection in -lSM" >&5
7785 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7786 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 ac_check_lib_save_LIBS=$LIBS
7790 LIBS="-lSM $LIBS"
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line 7792 "configure"
7793 #include "confdefs.h"
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 #ifdef __cplusplus
7797 extern "C"
7798 #endif
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7801 char SmcOpenConnection ();
7803 main ()
7805 SmcOpenConnection ();
7807 return 0;
7809 _ACEOF
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:7811: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>&5
7813 ac_status=$?
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -s conftest$ac_exeext'
7817 { (eval echo "$as_me:7817: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_lib_SM_SmcOpenConnection=yes
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_cv_lib_SM_SmcOpenConnection=no
7828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS
7831 echo "$as_me:7831: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7832 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7833 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7834 HAVE_X_SM=yes
7835 else
7836 -lICE
7841 if test "${HAVE_X_SM}" = "yes"; then
7843 cat >>confdefs.h <<\EOF
7844 #define HAVE_X_SM 1
7847 case "$LIBS" in
7848 *-lSM*) ;;
7849 *) LIBS="-lSM -lICE $LIBS" ;;
7850 esac
7854 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7855 echo "$as_me:7855: checking whether netdb declares h_errno" >&5
7856 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7857 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line 7861 "configure"
7862 #include "confdefs.h"
7863 #include <netdb.h>
7865 main ()
7867 return h_errno;
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:7873: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>&5
7875 ac_status=$?
7876 echo "$as_me:7876: \$? = $ac_status" >&5
7877 (exit $ac_status); } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:7879: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:7882: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 emacs_cv_netdb_declares_h_errno=yes
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7888 emacs_cv_netdb_declares_h_errno=no
7890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7892 echo "$as_me:7892: result: $emacs_cv_netdb_declares_h_errno" >&5
7893 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7894 if test $emacs_cv_netdb_declares_h_errno = yes; then
7896 cat >>confdefs.h <<\EOF
7897 #define HAVE_H_ERRNO 1
7902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7903 # for constant arguments. Useless!
7904 echo "$as_me:7904: checking for working alloca.h" >&5
7905 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7906 if test "${ac_cv_working_alloca_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 #line 7910 "configure"
7911 #include "confdefs.h"
7912 #include <alloca.h>
7914 main ()
7916 char *p = (char *) alloca (2 * sizeof (int));
7918 return 0;
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (eval echo "$as_me:7922: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>&5
7924 ac_status=$?
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:7928: \"$ac_try\"") >&5
7929 (eval $ac_try) 2>&5
7930 ac_status=$?
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_working_alloca_h=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_cv_working_alloca_h=no
7939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7941 echo "$as_me:7941: result: $ac_cv_working_alloca_h" >&5
7942 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7943 if test $ac_cv_working_alloca_h = yes; then
7945 cat >>confdefs.h <<\EOF
7946 #define HAVE_ALLOCA_H 1
7951 echo "$as_me:7951: checking for alloca" >&5
7952 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7953 if test "${ac_cv_func_alloca_works+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line 7957 "configure"
7958 #include "confdefs.h"
7959 #ifdef __GNUC__
7960 # define alloca __builtin_alloca
7961 #else
7962 # ifdef _MSC_VER
7963 # include <malloc.h>
7964 # define alloca _alloca
7965 # else
7966 # if HAVE_ALLOCA_H
7967 # include <alloca.h>
7968 # else
7969 # ifdef _AIX
7970 #pragma alloca
7971 # else
7972 # ifndef alloca /* predefined by HP cc +Olibcalls */
7973 char *alloca ();
7974 # endif
7975 # endif
7976 # endif
7977 # endif
7978 #endif
7981 main ()
7983 char *p = (char *) alloca (1);
7985 return 0;
7987 _ACEOF
7988 rm -f conftest.$ac_objext conftest$ac_exeext
7989 if { (eval echo "$as_me:7989: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>&5
7991 ac_status=$?
7992 echo "$as_me:7992: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -s conftest$ac_exeext'
7995 { (eval echo "$as_me:7995: \"$ac_try\"") >&5
7996 (eval $ac_try) 2>&5
7997 ac_status=$?
7998 echo "$as_me:7998: \$? = $ac_status" >&5
7999 (exit $ac_status); }; }; then
8000 ac_cv_func_alloca_works=yes
8001 else
8002 echo "$as_me: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8004 ac_cv_func_alloca_works=no
8006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8008 echo "$as_me:8008: result: $ac_cv_func_alloca_works" >&5
8009 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8011 if test $ac_cv_func_alloca_works = yes; then
8013 cat >>confdefs.h <<\EOF
8014 #define HAVE_ALLOCA 1
8017 else
8018 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8019 # that cause trouble. Some versions do not even contain alloca or
8020 # contain a buggy version. If you still want to use their alloca,
8021 # use ar to extract alloca.o from them instead of compiling alloca.c.
8023 ALLOCA=alloca.$ac_objext
8025 cat >>confdefs.h <<\EOF
8026 #define C_ALLOCA 1
8029 echo "$as_me:8029: checking whether \`alloca.c' needs Cray hooks" >&5
8030 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8031 if test "${ac_cv_os_cray+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 cat >conftest.$ac_ext <<_ACEOF
8035 #line 8035 "configure"
8036 #include "confdefs.h"
8037 #if defined(CRAY) && ! defined(CRAY2)
8038 webecray
8039 #else
8040 wenotbecray
8041 #endif
8043 _ACEOF
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045 egrep "webecray" >/dev/null 2>&1; then
8046 ac_cv_os_cray=yes
8047 else
8048 ac_cv_os_cray=no
8050 rm -f conftest*
8053 echo "$as_me:8053: result: $ac_cv_os_cray" >&5
8054 echo "${ECHO_T}$ac_cv_os_cray" >&6
8055 if test $ac_cv_os_cray = yes; then
8056 for ac_func in _getb67 GETB67 getb67; do
8057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8058 echo "$as_me:8058: checking for $ac_func" >&5
8059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8060 if eval "test \"\${$as_ac_var+set}\" = set"; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 #line 8064 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func (); below. */
8068 #include <assert.h>
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8075 char $ac_func ();
8076 char (*f) ();
8079 main ()
8081 /* The GNU C library defines this for functions which it implements
8082 to always fail with ENOSYS. Some functions are actually named
8083 something starting with __ and the normal name is an alias. */
8084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085 choke me
8086 #else
8087 f = $ac_func;
8088 #endif
8091 return 0;
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:8095: \"$ac_link\"") >&5
8096 (eval $ac_link) 2>&5
8097 ac_status=$?
8098 echo "$as_me:8098: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8100 { ac_try='test -s conftest$ac_exeext'
8101 { (eval echo "$as_me:8101: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:8104: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 eval "$as_ac_var=yes"
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8110 eval "$as_ac_var=no"
8112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 echo "$as_me:8114: result: `eval echo '${'$as_ac_var'}'`" >&5
8115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8116 if test `eval echo '${'$as_ac_var'}'` = yes; then
8118 cat >>confdefs.h <<EOF
8119 #define CRAY_STACKSEG_END $ac_func
8122 break
8125 done
8128 echo "$as_me:8128: checking stack direction for C alloca" >&5
8129 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8130 if test "${ac_cv_c_stack_direction+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 if test "$cross_compiling" = yes; then
8134 ac_cv_c_stack_direction=0
8135 else
8136 cat >conftest.$ac_ext <<_ACEOF
8137 #line 8137 "configure"
8138 #include "confdefs.h"
8140 find_stack_direction ()
8142 static char *addr = 0;
8143 auto char dummy;
8144 if (addr == 0)
8146 addr = &dummy;
8147 return find_stack_direction ();
8149 else
8150 return (&dummy > addr) ? 1 : -1;
8154 main ()
8156 exit (find_stack_direction () < 0);
8158 _ACEOF
8159 rm -f conftest$ac_exeext
8160 if { (eval echo "$as_me:8160: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>&5
8162 ac_status=$?
8163 echo "$as_me:8163: \$? = $ac_status" >&5
8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165 { (eval echo "$as_me:8165: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:8168: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_c_stack_direction=1
8171 else
8172 echo "$as_me: program exited with status $ac_status" >&5
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 ac_cv_c_stack_direction=-1
8177 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8180 echo "$as_me:8180: result: $ac_cv_c_stack_direction" >&5
8181 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8183 cat >>confdefs.h <<EOF
8184 #define STACK_DIRECTION $ac_cv_c_stack_direction
8189 # fmod, logb, and frexp are found in -lm on most systems.
8190 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8192 echo "$as_me:8192: checking for sqrt in -lm" >&5
8193 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8194 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 ac_check_lib_save_LIBS=$LIBS
8198 LIBS="-lm $LIBS"
8199 cat >conftest.$ac_ext <<_ACEOF
8200 #line 8200 "configure"
8201 #include "confdefs.h"
8203 /* Override any gcc2 internal prototype to avoid an error. */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209 char sqrt ();
8211 main ()
8213 sqrt ();
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:8219: \"$ac_link\"") >&5
8220 (eval $ac_link) 2>&5
8221 ac_status=$?
8222 echo "$as_me:8222: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (eval echo "$as_me:8225: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:8228: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_lib_m_sqrt=yes
8231 else
8232 echo "$as_me: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8234 ac_cv_lib_m_sqrt=no
8236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8239 echo "$as_me:8239: result: $ac_cv_lib_m_sqrt" >&5
8240 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8241 if test $ac_cv_lib_m_sqrt = yes; then
8242 cat >>confdefs.h <<EOF
8243 #define HAVE_LIBM 1
8246 LIBS="-lm $LIBS"
8250 # Check for mail-locking functions in a "mail" library
8252 echo "$as_me:8252: checking for maillock in -lmail" >&5
8253 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8254 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 ac_check_lib_save_LIBS=$LIBS
8258 LIBS="-lmail $LIBS"
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line 8260 "configure"
8261 #include "confdefs.h"
8263 /* Override any gcc2 internal prototype to avoid an error. */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8269 char maillock ();
8271 main ()
8273 maillock ();
8275 return 0;
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:8279: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:8282: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:8285: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:8288: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_mail_maillock=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_cv_lib_mail_maillock=no
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8299 echo "$as_me:8299: result: $ac_cv_lib_mail_maillock" >&5
8300 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8301 if test $ac_cv_lib_mail_maillock = yes; then
8302 cat >>confdefs.h <<EOF
8303 #define HAVE_LIBMAIL 1
8306 LIBS="-lmail $LIBS"
8310 echo "$as_me:8310: checking for maillock in -llockfile" >&5
8311 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8312 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-llockfile $LIBS"
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line 8318 "configure"
8319 #include "confdefs.h"
8321 /* Override any gcc2 internal prototype to avoid an error. */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char maillock ();
8329 main ()
8331 maillock ();
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:8337: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>&5
8339 ac_status=$?
8340 echo "$as_me:8340: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -s conftest$ac_exeext'
8343 { (eval echo "$as_me:8343: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:8346: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 ac_cv_lib_lockfile_maillock=yes
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 ac_cv_lib_lockfile_maillock=no
8354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8357 echo "$as_me:8357: result: $ac_cv_lib_lockfile_maillock" >&5
8358 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8359 if test $ac_cv_lib_lockfile_maillock = yes; then
8360 cat >>confdefs.h <<EOF
8361 #define HAVE_LIBLOCKFILE 1
8364 LIBS="-llockfile $LIBS"
8368 # If we have the shared liblockfile, assume we must use it for mail
8369 # locking (e.g. Debian). If we couldn't link against liblockfile
8370 # (no liblockfile.a installed), ensure that we don't need to.
8371 if test "$ac_cv_lib_lockfile_maillock" = no; then
8372 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8373 set dummy liblockfile.so; ac_word=$2
8374 echo "$as_me:8374: checking for $ac_word" >&5
8375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8376 if test "${ac_cv_prog_liblockfile+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 if test -n "$liblockfile"; then
8380 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8381 else
8382 ac_save_IFS=$IFS; IFS=$ac_path_separator
8383 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8384 for ac_dir in $ac_dummy; do
8385 IFS=$ac_save_IFS
8386 test -z "$ac_dir" && ac_dir=.
8387 $as_executable_p "$ac_dir/$ac_word" || continue
8388 ac_cv_prog_liblockfile="yes"
8389 echo "$as_me:8389: found $ac_dir/$ac_word" >&5
8390 break
8391 done
8393 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8396 liblockfile=$ac_cv_prog_liblockfile
8397 if test -n "$liblockfile"; then
8398 echo "$as_me:8398: result: $liblockfile" >&5
8399 echo "${ECHO_T}$liblockfile" >&6
8400 else
8401 echo "$as_me:8401: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8405 if test $ac_cv_prog_liblockfile = yes; then
8406 { { echo "$as_me:8406: error: Shared liblockfile found but can't link against it.
8407 This probably means that movemail could lose mail.
8408 There may be a \`development' package to install containing liblockfile." >&5
8409 echo "$as_me: error: Shared liblockfile found but can't link against it.
8410 This probably means that movemail could lose mail.
8411 There may be a \`development' package to install containing liblockfile." >&2;}
8412 { (exit 1); exit 1; }; }
8413 else
8414 cat >>confdefs.h <<\EOF
8415 #define LIBMAIL -llockfile
8419 else :
8422 for ac_func in touchlock
8424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8425 echo "$as_me:8425: checking for $ac_func" >&5
8426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_var+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line 8431 "configure"
8432 #include "confdefs.h"
8433 /* System header to define __stub macros and hopefully few prototypes,
8434 which can conflict with char $ac_func (); below. */
8435 #include <assert.h>
8436 /* Override any gcc2 internal prototype to avoid an error. */
8437 #ifdef __cplusplus
8438 extern "C"
8439 #endif
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8442 char $ac_func ();
8443 char (*f) ();
8446 main ()
8448 /* The GNU C library defines this for functions which it implements
8449 to always fail with ENOSYS. Some functions are actually named
8450 something starting with __ and the normal name is an alias. */
8451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8452 choke me
8453 #else
8454 f = $ac_func;
8455 #endif
8458 return 0;
8460 _ACEOF
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (eval echo "$as_me:8462: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
8464 ac_status=$?
8465 echo "$as_me:8465: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:8468: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:8471: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 eval "$as_ac_var=yes"
8474 else
8475 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 eval "$as_ac_var=no"
8479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8481 echo "$as_me:8481: result: `eval echo '${'$as_ac_var'}'`" >&5
8482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8483 if test `eval echo '${'$as_ac_var'}'` = yes; then
8484 cat >>confdefs.h <<EOF
8485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8489 done
8491 for ac_header in maillock.h
8493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8494 echo "$as_me:8494: checking for $ac_header" >&5
8495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line 8500 "configure"
8501 #include "confdefs.h"
8502 #include <$ac_header>
8503 _ACEOF
8504 if { (eval echo "$as_me:8504: \"$ac_cpp conftest.$ac_ext\"") >&5
8505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506 ac_status=$?
8507 egrep -v '^ *\+' conftest.er1 >conftest.err
8508 rm -f conftest.er1
8509 cat conftest.err >&5
8510 echo "$as_me:8510: \$? = $ac_status" >&5
8511 (exit $ac_status); } >/dev/null; then
8512 if test -s conftest.err; then
8513 ac_cpp_err=$ac_c_preproc_warn_flag
8514 else
8515 ac_cpp_err=
8517 else
8518 ac_cpp_err=yes
8520 if test -z "$ac_cpp_err"; then
8521 eval "$as_ac_Header=yes"
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 cat conftest.$ac_ext >&5
8525 eval "$as_ac_Header=no"
8527 rm -f conftest.err conftest.$ac_ext
8529 echo "$as_me:8529: result: `eval echo '${'$as_ac_Header'}'`" >&5
8530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8532 cat >>confdefs.h <<EOF
8533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8537 done
8539 for ac_func in gethostname getdomainname dup2 \
8540 rename closedir mkdir rmdir sysinfo \
8541 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8542 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8543 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8544 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8545 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8546 gai_strerror mkstemp getline getdelim
8548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8549 echo "$as_me:8549: checking for $ac_func" >&5
8550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8551 if eval "test \"\${$as_ac_var+set}\" = set"; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line 8555 "configure"
8556 #include "confdefs.h"
8557 /* System header to define __stub macros and hopefully few prototypes,
8558 which can conflict with char $ac_func (); below. */
8559 #include <assert.h>
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8566 char $ac_func ();
8567 char (*f) ();
8570 main ()
8572 /* The GNU C library defines this for functions which it implements
8573 to always fail with ENOSYS. Some functions are actually named
8574 something starting with __ and the normal name is an alias. */
8575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8576 choke me
8577 #else
8578 f = $ac_func;
8579 #endif
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (eval echo "$as_me:8586: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>&5
8588 ac_status=$?
8589 echo "$as_me:8589: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:8592: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:8595: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 eval "$as_ac_var=yes"
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8601 eval "$as_ac_var=no"
8603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605 echo "$as_me:8605: result: `eval echo '${'$as_ac_var'}'`" >&5
8606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8607 if test `eval echo '${'$as_ac_var'}'` = yes; then
8608 cat >>confdefs.h <<EOF
8609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8613 done
8615 for ac_header in sys/un.h
8617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8618 echo "$as_me:8618: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line 8624 "configure"
8625 #include "confdefs.h"
8626 #include <$ac_header>
8627 _ACEOF
8628 if { (eval echo "$as_me:8628: \"$ac_cpp conftest.$ac_ext\"") >&5
8629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8630 ac_status=$?
8631 egrep -v '^ *\+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:8634: \$? = $ac_status" >&5
8635 (exit $ac_status); } >/dev/null; then
8636 if test -s conftest.err; then
8637 ac_cpp_err=$ac_c_preproc_warn_flag
8638 else
8639 ac_cpp_err=
8641 else
8642 ac_cpp_err=yes
8644 if test -z "$ac_cpp_err"; then
8645 eval "$as_ac_Header=yes"
8646 else
8647 echo "$as_me: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 eval "$as_ac_Header=no"
8651 rm -f conftest.err conftest.$ac_ext
8653 echo "$as_me:8653: result: `eval echo '${'$as_ac_Header'}'`" >&5
8654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8656 cat >>confdefs.h <<EOF
8657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8661 done
8663 for ac_header in sys/time.h unistd.h
8665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8666 echo "$as_me:8666: checking for $ac_header" >&5
8667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671 cat >conftest.$ac_ext <<_ACEOF
8672 #line 8672 "configure"
8673 #include "confdefs.h"
8674 #include <$ac_header>
8675 _ACEOF
8676 if { (eval echo "$as_me:8676: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678 ac_status=$?
8679 egrep -v '^ *\+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8686 else
8687 ac_cpp_err=
8689 else
8690 ac_cpp_err=yes
8692 if test -z "$ac_cpp_err"; then
8693 eval "$as_ac_Header=yes"
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 eval "$as_ac_Header=no"
8699 rm -f conftest.err conftest.$ac_ext
8701 echo "$as_me:8701: result: `eval echo '${'$as_ac_Header'}'`" >&5
8702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704 cat >>confdefs.h <<EOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709 done
8711 for ac_func in alarm
8713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8714 echo "$as_me:8714: checking for $ac_func" >&5
8715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8716 if eval "test \"\${$as_ac_var+set}\" = set"; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 else
8719 cat >conftest.$ac_ext <<_ACEOF
8720 #line 8720 "configure"
8721 #include "confdefs.h"
8722 /* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char $ac_func (); below. */
8724 #include <assert.h>
8725 /* Override any gcc2 internal prototype to avoid an error. */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731 char $ac_func ();
8732 char (*f) ();
8735 main ()
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741 choke me
8742 #else
8743 f = $ac_func;
8744 #endif
8747 return 0;
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (eval echo "$as_me:8751: \"$ac_link\"") >&5
8752 (eval $ac_link) 2>&5
8753 ac_status=$?
8754 echo "$as_me:8754: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -s conftest$ac_exeext'
8757 { (eval echo "$as_me:8757: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:8760: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 eval "$as_ac_var=yes"
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 eval "$as_ac_var=no"
8768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8770 echo "$as_me:8770: result: `eval echo '${'$as_ac_var'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8772 if test `eval echo '${'$as_ac_var'}'` = yes; then
8773 cat >>confdefs.h <<EOF
8774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8778 done
8780 echo "$as_me:8780: checking for working mktime" >&5
8781 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8782 if test "${ac_cv_func_working_mktime+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 if test "$cross_compiling" = yes; then
8786 ac_cv_func_working_mktime=no
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line 8789 "configure"
8790 #include "confdefs.h"
8791 /* Test program from Paul Eggert and Tony Leneis. */
8792 #if TIME_WITH_SYS_TIME
8793 # include <sys/time.h>
8794 # include <time.h>
8795 #else
8796 # if HAVE_SYS_TIME_H
8797 # include <sys/time.h>
8798 # else
8799 # include <time.h>
8800 # endif
8801 #endif
8803 #if HAVE_UNISTD_H
8804 # include <unistd.h>
8805 #endif
8807 #if !HAVE_ALARM
8808 # define alarm(X) /* empty */
8809 #endif
8811 /* Work around redefinition to rpl_putenv by other config tests. */
8812 #undef putenv
8814 static time_t time_t_max;
8816 /* Values we'll use to set the TZ environment variable. */
8817 static const char *const tz_strings[] = {
8818 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8819 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8821 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8823 /* Fail if mktime fails to convert a date in the spring-forward gap.
8824 Based on a problem report from Andreas Jaeger. */
8825 static void
8826 spring_forward_gap ()
8828 /* glibc (up to about 1998-10-07) failed this test. */
8829 struct tm tm;
8831 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8832 instead of "TZ=America/Vancouver" in order to detect the bug even
8833 on systems that don't support the Olson extension, or don't have the
8834 full zoneinfo tables installed. */
8835 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8837 tm.tm_year = 98;
8838 tm.tm_mon = 3;
8839 tm.tm_mday = 5;
8840 tm.tm_hour = 2;
8841 tm.tm_min = 0;
8842 tm.tm_sec = 0;
8843 tm.tm_isdst = -1;
8844 if (mktime (&tm) == (time_t)-1)
8845 exit (1);
8848 static void
8849 mktime_test (now)
8850 time_t now;
8852 struct tm *lt;
8853 if ((lt = localtime (&now)) && mktime (lt) != now)
8854 exit (1);
8855 now = time_t_max - now;
8856 if ((lt = localtime (&now)) && mktime (lt) != now)
8857 exit (1);
8860 static void
8861 irix_6_4_bug ()
8863 /* Based on code from Ariel Faigon. */
8864 struct tm tm;
8865 tm.tm_year = 96;
8866 tm.tm_mon = 3;
8867 tm.tm_mday = 0;
8868 tm.tm_hour = 0;
8869 tm.tm_min = 0;
8870 tm.tm_sec = 0;
8871 tm.tm_isdst = -1;
8872 mktime (&tm);
8873 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8874 exit (1);
8877 static void
8878 bigtime_test (j)
8879 int j;
8881 struct tm tm;
8882 time_t now;
8883 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8884 now = mktime (&tm);
8885 if (now != (time_t) -1)
8887 struct tm *lt = localtime (&now);
8888 if (! (lt
8889 && lt->tm_year == tm.tm_year
8890 && lt->tm_mon == tm.tm_mon
8891 && lt->tm_mday == tm.tm_mday
8892 && lt->tm_hour == tm.tm_hour
8893 && lt->tm_min == tm.tm_min
8894 && lt->tm_sec == tm.tm_sec
8895 && lt->tm_yday == tm.tm_yday
8896 && lt->tm_wday == tm.tm_wday
8897 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8898 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8899 exit (1);
8904 main ()
8906 time_t t, delta;
8907 int i, j;
8909 /* This test makes some buggy mktime implementations loop.
8910 Give up after 60 seconds; a mktime slower than that
8911 isn't worth using anyway. */
8912 alarm (60);
8914 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8915 continue;
8916 time_t_max--;
8917 delta = time_t_max / 997; /* a suitable prime number */
8918 for (i = 0; i < N_STRINGS; i++)
8920 if (tz_strings[i])
8921 putenv (tz_strings[i]);
8923 for (t = 0; t <= time_t_max - delta; t += delta)
8924 mktime_test (t);
8925 mktime_test ((time_t) 60 * 60);
8926 mktime_test ((time_t) 60 * 60 * 24);
8928 for (j = 1; 0 < j; j *= 2)
8929 bigtime_test (j);
8930 bigtime_test (j - 1);
8932 irix_6_4_bug ();
8933 spring_forward_gap ();
8934 exit (0);
8936 _ACEOF
8937 rm -f conftest$ac_exeext
8938 if { (eval echo "$as_me:8938: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>&5
8940 ac_status=$?
8941 echo "$as_me:8941: \$? = $ac_status" >&5
8942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8943 { (eval echo "$as_me:8943: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:8946: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_func_working_mktime=yes
8949 else
8950 echo "$as_me: program exited with status $ac_status" >&5
8951 echo "$as_me: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 ac_cv_func_working_mktime=no
8955 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8958 echo "$as_me:8958: result: $ac_cv_func_working_mktime" >&5
8959 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8960 if test $ac_cv_func_working_mktime = no; then
8961 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8964 if test "$ac_cv_func_working_mktime" = no; then
8966 cat >>confdefs.h <<\EOF
8967 #define BROKEN_MKTIME 1
8972 ac_have_func=no # yes means we've found a way to get the load average.
8974 ac_save_LIBS=$LIBS
8976 # Check for getloadavg, but be sure not to touch the cache variable.
8977 (echo "$as_me:8977: checking for getloadavg" >&5
8978 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8979 if test "${ac_cv_func_getloadavg+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line 8983 "configure"
8984 #include "confdefs.h"
8985 /* System header to define __stub macros and hopefully few prototypes,
8986 which can conflict with char getloadavg (); below. */
8987 #include <assert.h>
8988 /* Override any gcc2 internal prototype to avoid an error. */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
8994 char getloadavg ();
8995 char (*f) ();
8998 main ()
9000 /* The GNU C library defines this for functions which it implements
9001 to always fail with ENOSYS. Some functions are actually named
9002 something starting with __ and the normal name is an alias. */
9003 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
9004 choke me
9005 #else
9006 f = getloadavg;
9007 #endif
9010 return 0;
9012 _ACEOF
9013 rm -f conftest.$ac_objext conftest$ac_exeext
9014 if { (eval echo "$as_me:9014: \"$ac_link\"") >&5
9015 (eval $ac_link) 2>&5
9016 ac_status=$?
9017 echo "$as_me:9017: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:9020: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:9023: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_func_getloadavg=yes
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_cv_func_getloadavg=no
9031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9033 echo "$as_me:9033: result: $ac_cv_func_getloadavg" >&5
9034 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9035 if test $ac_cv_func_getloadavg = yes; then
9036 exit 0
9037 else
9038 exit 1
9040 ) && ac_have_func=yes
9042 # On HPUX9, an unprivileged user can get load averages through this function.
9044 for ac_func in pstat_getdynamic
9046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9047 echo "$as_me:9047: checking for $ac_func" >&5
9048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_var+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 else
9052 cat >conftest.$ac_ext <<_ACEOF
9053 #line 9053 "configure"
9054 #include "confdefs.h"
9055 /* System header to define __stub macros and hopefully few prototypes,
9056 which can conflict with char $ac_func (); below. */
9057 #include <assert.h>
9058 /* Override any gcc2 internal prototype to avoid an error. */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9064 char $ac_func ();
9065 char (*f) ();
9068 main ()
9070 /* The GNU C library defines this for functions which it implements
9071 to always fail with ENOSYS. Some functions are actually named
9072 something starting with __ and the normal name is an alias. */
9073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9074 choke me
9075 #else
9076 f = $ac_func;
9077 #endif
9080 return 0;
9082 _ACEOF
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:9084: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9086 ac_status=$?
9087 echo "$as_me:9087: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:9090: \"$ac_try\"") >&5
9091 (eval $ac_try) 2>&5
9092 ac_status=$?
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 eval "$as_ac_var=yes"
9096 else
9097 echo "$as_me: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9099 eval "$as_ac_var=no"
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103 echo "$as_me:9103: result: `eval echo '${'$as_ac_var'}'`" >&5
9104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9105 if test `eval echo '${'$as_ac_var'}'` = yes; then
9106 cat >>confdefs.h <<EOF
9107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9111 done
9113 # Solaris has libkstat which does not require root.
9115 echo "$as_me:9115: checking for kstat_open in -lkstat" >&5
9116 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9117 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-lkstat $LIBS"
9122 cat >conftest.$ac_ext <<_ACEOF
9123 #line 9123 "configure"
9124 #include "confdefs.h"
9126 /* Override any gcc2 internal prototype to avoid an error. */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 /* We use char because int might match the return type of a gcc2
9131 builtin and then its argument prototype would still apply. */
9132 char kstat_open ();
9134 main ()
9136 kstat_open ();
9138 return 0;
9140 _ACEOF
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:9142: \"$ac_link\"") >&5
9143 (eval $ac_link) 2>&5
9144 ac_status=$?
9145 echo "$as_me:9145: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -s conftest$ac_exeext'
9148 { (eval echo "$as_me:9148: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:9151: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_lib_kstat_kstat_open=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 ac_cv_lib_kstat_kstat_open=no
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9160 LIBS=$ac_check_lib_save_LIBS
9162 echo "$as_me:9162: result: $ac_cv_lib_kstat_kstat_open" >&5
9163 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9164 if test $ac_cv_lib_kstat_kstat_open = yes; then
9165 cat >>confdefs.h <<EOF
9166 #define HAVE_LIBKSTAT 1
9169 LIBS="-lkstat $LIBS"
9173 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9175 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9176 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9177 # to get the right answer into the cache.
9178 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9179 if test $ac_have_func = no; then
9180 echo "$as_me:9180: checking for elf_begin in -lelf" >&5
9181 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9182 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 ac_check_lib_save_LIBS=$LIBS
9186 LIBS="-lelf $LIBS"
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line 9188 "configure"
9189 #include "confdefs.h"
9191 /* Override any gcc2 internal prototype to avoid an error. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196 builtin and then its argument prototype would still apply. */
9197 char elf_begin ();
9199 main ()
9201 elf_begin ();
9203 return 0;
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:9207: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>&5
9209 ac_status=$?
9210 echo "$as_me:9210: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -s conftest$ac_exeext'
9213 { (eval echo "$as_me:9213: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:9216: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 ac_cv_lib_elf_elf_begin=yes
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9222 ac_cv_lib_elf_elf_begin=no
9224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9225 LIBS=$ac_check_lib_save_LIBS
9227 echo "$as_me:9227: result: $ac_cv_lib_elf_elf_begin" >&5
9228 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9229 if test $ac_cv_lib_elf_elf_begin = yes; then
9230 LIBS="-lelf $LIBS"
9234 if test $ac_have_func = no; then
9235 echo "$as_me:9235: checking for kvm_open in -lkvm" >&5
9236 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9237 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-lkvm $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line 9243 "configure"
9244 #include "confdefs.h"
9246 /* Override any gcc2 internal prototype to avoid an error. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 #endif
9250 /* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9252 char kvm_open ();
9254 main ()
9256 kvm_open ();
9258 return 0;
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:9262: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>&5
9264 ac_status=$?
9265 echo "$as_me:9265: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:9268: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:9271: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_lib_kvm_kvm_open=yes
9274 else
9275 echo "$as_me: failed program was:" >&5
9276 cat conftest.$ac_ext >&5
9277 ac_cv_lib_kvm_kvm_open=no
9279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 echo "$as_me:9282: result: $ac_cv_lib_kvm_kvm_open" >&5
9283 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9284 if test $ac_cv_lib_kvm_kvm_open = yes; then
9285 LIBS="-lkvm $LIBS"
9288 # Check for the 4.4BSD definition of getloadavg.
9289 echo "$as_me:9289: checking for getloadavg in -lutil" >&5
9290 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9291 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294 ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lutil $LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9297 #line 9297 "configure"
9298 #include "confdefs.h"
9300 /* Override any gcc2 internal prototype to avoid an error. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 /* We use char because int might match the return type of a gcc2
9305 builtin and then its argument prototype would still apply. */
9306 char getloadavg ();
9308 main ()
9310 getloadavg ();
9312 return 0;
9314 _ACEOF
9315 rm -f conftest.$ac_objext conftest$ac_exeext
9316 if { (eval echo "$as_me:9316: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9318 ac_status=$?
9319 echo "$as_me:9319: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -s conftest$ac_exeext'
9322 { (eval echo "$as_me:9322: \"$ac_try\"") >&5
9323 (eval $ac_try) 2>&5
9324 ac_status=$?
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9327 ac_cv_lib_util_getloadavg=yes
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9331 ac_cv_lib_util_getloadavg=no
9333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9336 echo "$as_me:9336: result: $ac_cv_lib_util_getloadavg" >&5
9337 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9338 if test $ac_cv_lib_util_getloadavg = yes; then
9339 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9344 if test $ac_have_func = no; then
9345 # There is a commonly available library for RS/6000 AIX.
9346 # Since it is not a standard part of AIX, it might be installed locally.
9347 ac_getloadavg_LIBS=$LIBS
9348 LIBS="-L/usr/local/lib $LIBS"
9349 echo "$as_me:9349: checking for getloadavg in -lgetloadavg" >&5
9350 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9351 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 else
9354 ac_check_lib_save_LIBS=$LIBS
9355 LIBS="-lgetloadavg $LIBS"
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line 9357 "configure"
9358 #include "confdefs.h"
9360 /* Override any gcc2 internal prototype to avoid an error. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char getloadavg ();
9368 main ()
9370 getloadavg ();
9372 return 0;
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:9376: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>&5
9378 ac_status=$?
9379 echo "$as_me:9379: \$? = $ac_status" >&5
9380 (exit $ac_status); } &&
9381 { ac_try='test -s conftest$ac_exeext'
9382 { (eval echo "$as_me:9382: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:9385: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_lib_getloadavg_getloadavg=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 ac_cv_lib_getloadavg_getloadavg=no
9393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 echo "$as_me:9396: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9397 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9398 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9399 LIBS="-lgetloadavg $LIBS"
9400 else
9401 LIBS=$ac_getloadavg_LIBS
9406 # Make sure it is really in the library, if we think we found it,
9407 # otherwise set up the replacement function.
9409 for ac_func in getloadavg
9411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9412 echo "$as_me:9412: checking for $ac_func" >&5
9413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9414 if eval "test \"\${$as_ac_var+set}\" = set"; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417 cat >conftest.$ac_ext <<_ACEOF
9418 #line 9418 "configure"
9419 #include "confdefs.h"
9420 /* System header to define __stub macros and hopefully few prototypes,
9421 which can conflict with char $ac_func (); below. */
9422 #include <assert.h>
9423 /* Override any gcc2 internal prototype to avoid an error. */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9429 char $ac_func ();
9430 char (*f) ();
9433 main ()
9435 /* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9439 choke me
9440 #else
9441 f = $ac_func;
9442 #endif
9445 return 0;
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (eval echo "$as_me:9449: \"$ac_link\"") >&5
9450 (eval $ac_link) 2>&5
9451 ac_status=$?
9452 echo "$as_me:9452: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -s conftest$ac_exeext'
9455 { (eval echo "$as_me:9455: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:9458: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 eval "$as_ac_var=yes"
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9464 eval "$as_ac_var=no"
9466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9468 echo "$as_me:9468: result: `eval echo '${'$as_ac_var'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9470 if test `eval echo '${'$as_ac_var'}'` = yes; then
9471 cat >>confdefs.h <<EOF
9472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9475 else
9476 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9478 cat >>confdefs.h <<\EOF
9479 #define C_GETLOADAVG 1
9482 # Figure out what our getloadavg.c needs.
9483 ac_have_func=no
9484 echo "$as_me:9484: checking for sys/dg_sys_info.h" >&5
9485 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9486 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line 9490 "configure"
9491 #include "confdefs.h"
9492 #include <sys/dg_sys_info.h>
9493 _ACEOF
9494 if { (eval echo "$as_me:9494: \"$ac_cpp conftest.$ac_ext\"") >&5
9495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9496 ac_status=$?
9497 egrep -v '^ *\+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:9500: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9504 else
9505 ac_cpp_err=
9507 else
9508 ac_cpp_err=yes
9510 if test -z "$ac_cpp_err"; then
9511 ac_cv_header_sys_dg_sys_info_h=yes
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 ac_cv_header_sys_dg_sys_info_h=no
9517 rm -f conftest.err conftest.$ac_ext
9519 echo "$as_me:9519: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9521 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9522 ac_have_func=yes
9524 cat >>confdefs.h <<\EOF
9525 #define DGUX 1
9528 echo "$as_me:9528: checking for dg_sys_info in -ldgc" >&5
9529 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9530 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 ac_check_lib_save_LIBS=$LIBS
9534 LIBS="-ldgc $LIBS"
9535 cat >conftest.$ac_ext <<_ACEOF
9536 #line 9536 "configure"
9537 #include "confdefs.h"
9539 /* Override any gcc2 internal prototype to avoid an error. */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 /* We use char because int might match the return type of a gcc2
9544 builtin and then its argument prototype would still apply. */
9545 char dg_sys_info ();
9547 main ()
9549 dg_sys_info ();
9551 return 0;
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:9555: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9557 ac_status=$?
9558 echo "$as_me:9558: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:9561: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:9564: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_lib_dgc_dg_sys_info=yes
9567 else
9568 echo "$as_me: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 ac_cv_lib_dgc_dg_sys_info=no
9572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 echo "$as_me:9575: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9577 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9578 cat >>confdefs.h <<EOF
9579 #define HAVE_LIBDGC 1
9582 LIBS="-ldgc $LIBS"
9588 echo "$as_me:9588: checking for locale.h" >&5
9589 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9590 if test "${ac_cv_header_locale_h+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 cat >conftest.$ac_ext <<_ACEOF
9594 #line 9594 "configure"
9595 #include "confdefs.h"
9596 #include <locale.h>
9597 _ACEOF
9598 if { (eval echo "$as_me:9598: \"$ac_cpp conftest.$ac_ext\"") >&5
9599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9600 ac_status=$?
9601 egrep -v '^ *\+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:9604: \$? = $ac_status" >&5
9605 (exit $ac_status); } >/dev/null; then
9606 if test -s conftest.err; then
9607 ac_cpp_err=$ac_c_preproc_warn_flag
9608 else
9609 ac_cpp_err=
9611 else
9612 ac_cpp_err=yes
9614 if test -z "$ac_cpp_err"; then
9615 ac_cv_header_locale_h=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 ac_cv_header_locale_h=no
9621 rm -f conftest.err conftest.$ac_ext
9623 echo "$as_me:9623: result: $ac_cv_header_locale_h" >&5
9624 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9626 for ac_func in setlocale
9628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9629 echo "$as_me:9629: checking for $ac_func" >&5
9630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9631 if eval "test \"\${$as_ac_var+set}\" = set"; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 cat >conftest.$ac_ext <<_ACEOF
9635 #line 9635 "configure"
9636 #include "confdefs.h"
9637 /* System header to define __stub macros and hopefully few prototypes,
9638 which can conflict with char $ac_func (); below. */
9639 #include <assert.h>
9640 /* Override any gcc2 internal prototype to avoid an error. */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646 char $ac_func ();
9647 char (*f) ();
9650 main ()
9652 /* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9656 choke me
9657 #else
9658 f = $ac_func;
9659 #endif
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (eval echo "$as_me:9666: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>&5
9668 ac_status=$?
9669 echo "$as_me:9669: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:9672: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:9675: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 eval "$as_ac_var=yes"
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9681 eval "$as_ac_var=no"
9683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9685 echo "$as_me:9685: result: `eval echo '${'$as_ac_var'}'`" >&5
9686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9687 if test `eval echo '${'$as_ac_var'}'` = yes; then
9688 cat >>confdefs.h <<EOF
9689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9693 done
9695 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9696 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9697 # Irix 4.0.5F has the header but not the library.
9698 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9699 ac_have_func=yes
9701 cat >>confdefs.h <<\EOF
9702 #define SVR4 1
9707 if test $ac_have_func = no; then
9708 echo "$as_me:9708: checking for inq_stats/cpustats.h" >&5
9709 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9710 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 cat >conftest.$ac_ext <<_ACEOF
9714 #line 9714 "configure"
9715 #include "confdefs.h"
9716 #include <inq_stats/cpustats.h>
9717 _ACEOF
9718 if { (eval echo "$as_me:9718: \"$ac_cpp conftest.$ac_ext\"") >&5
9719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9720 ac_status=$?
9721 egrep -v '^ *\+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 (exit $ac_status); } >/dev/null; then
9726 if test -s conftest.err; then
9727 ac_cpp_err=$ac_c_preproc_warn_flag
9728 else
9729 ac_cpp_err=
9731 else
9732 ac_cpp_err=yes
9734 if test -z "$ac_cpp_err"; then
9735 ac_cv_header_inq_stats_cpustats_h=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 ac_cv_header_inq_stats_cpustats_h=no
9741 rm -f conftest.err conftest.$ac_ext
9743 echo "$as_me:9743: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9744 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9745 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9746 ac_have_func=yes
9748 cat >>confdefs.h <<\EOF
9749 #define UMAX 1
9752 cat >>confdefs.h <<\EOF
9753 #define UMAX4_3 1
9760 if test $ac_have_func = no; then
9761 echo "$as_me:9761: checking for sys/cpustats.h" >&5
9762 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9763 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 else
9766 cat >conftest.$ac_ext <<_ACEOF
9767 #line 9767 "configure"
9768 #include "confdefs.h"
9769 #include <sys/cpustats.h>
9770 _ACEOF
9771 if { (eval echo "$as_me:9771: \"$ac_cpp conftest.$ac_ext\"") >&5
9772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9773 ac_status=$?
9774 egrep -v '^ *\+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:9777: \$? = $ac_status" >&5
9778 (exit $ac_status); } >/dev/null; then
9779 if test -s conftest.err; then
9780 ac_cpp_err=$ac_c_preproc_warn_flag
9781 else
9782 ac_cpp_err=
9784 else
9785 ac_cpp_err=yes
9787 if test -z "$ac_cpp_err"; then
9788 ac_cv_header_sys_cpustats_h=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9792 ac_cv_header_sys_cpustats_h=no
9794 rm -f conftest.err conftest.$ac_ext
9796 echo "$as_me:9796: result: $ac_cv_header_sys_cpustats_h" >&5
9797 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9798 if test $ac_cv_header_sys_cpustats_h = yes; then
9799 ac_have_func=yes; cat >>confdefs.h <<\EOF
9800 #define UMAX 1
9807 if test $ac_have_func = no; then
9809 for ac_header in mach/mach.h
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 echo "$as_me:9812: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line 9818 "configure"
9819 #include "confdefs.h"
9820 #include <$ac_header>
9821 _ACEOF
9822 if { (eval echo "$as_me:9822: \"$ac_cpp conftest.$ac_ext\"") >&5
9823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9824 ac_status=$?
9825 egrep -v '^ *\+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev/null; then
9830 if test -s conftest.err; then
9831 ac_cpp_err=$ac_c_preproc_warn_flag
9832 else
9833 ac_cpp_err=
9835 else
9836 ac_cpp_err=yes
9838 if test -z "$ac_cpp_err"; then
9839 eval "$as_ac_Header=yes"
9840 else
9841 echo "$as_me: failed program was:" >&5
9842 cat conftest.$ac_ext >&5
9843 eval "$as_ac_Header=no"
9845 rm -f conftest.err conftest.$ac_ext
9847 echo "$as_me:9847: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9850 cat >>confdefs.h <<EOF
9851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9855 done
9859 for ac_header in nlist.h
9861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9862 echo "$as_me:9862: checking for $ac_header" >&5
9863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line 9868 "configure"
9869 #include "confdefs.h"
9870 #include <$ac_header>
9871 _ACEOF
9872 if { (eval echo "$as_me:9872: \"$ac_cpp conftest.$ac_ext\"") >&5
9873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9874 ac_status=$?
9875 egrep -v '^ *\+' conftest.er1 >conftest.err
9876 rm -f conftest.er1
9877 cat conftest.err >&5
9878 echo "$as_me:9878: \$? = $ac_status" >&5
9879 (exit $ac_status); } >/dev/null; then
9880 if test -s conftest.err; then
9881 ac_cpp_err=$ac_c_preproc_warn_flag
9882 else
9883 ac_cpp_err=
9885 else
9886 ac_cpp_err=yes
9888 if test -z "$ac_cpp_err"; then
9889 eval "$as_ac_Header=yes"
9890 else
9891 echo "$as_me: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 eval "$as_ac_Header=no"
9895 rm -f conftest.err conftest.$ac_ext
9897 echo "$as_me:9897: result: `eval echo '${'$as_ac_Header'}'`" >&5
9898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9900 cat >>confdefs.h <<EOF
9901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9903 echo "$as_me:9903: checking for struct nlist.n_un.n_name" >&5
9904 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9905 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line 9909 "configure"
9910 #include "confdefs.h"
9911 #include <nlist.h>
9914 main ()
9916 static struct nlist ac_aggr;
9917 if (ac_aggr.n_un.n_name)
9918 return 0;
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (eval echo "$as_me:9924: \"$ac_compile\"") >&5
9925 (eval $ac_compile) 2>&5
9926 ac_status=$?
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:9933: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_member_struct_nlist_n_un_n_name=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 ac_cv_member_struct_nlist_n_un_n_name=no
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9943 echo "$as_me:9943: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9944 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9945 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9947 cat >>confdefs.h <<EOF
9948 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9951 cat >>confdefs.h <<\EOF
9952 #define NLIST_NAME_UNION 1
9958 done
9961 done
9963 # Some definitions of getloadavg require that the program be installed setgid.
9964 echo "$as_me:9964: checking whether getloadavg requires setgid" >&5
9965 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9966 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 cat >conftest.$ac_ext <<_ACEOF
9970 #line 9970 "configure"
9971 #include "confdefs.h"
9972 #include "$srcdir/getloadavg.c"
9973 #ifdef LDAV_PRIVILEGED
9974 Yowza Am I SETGID yet
9975 #endif
9976 _ACEOF
9977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9979 ac_cv_func_getloadavg_setgid=yes
9980 else
9981 ac_cv_func_getloadavg_setgid=no
9983 rm -f conftest*
9986 echo "$as_me:9986: result: $ac_cv_func_getloadavg_setgid" >&5
9987 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9988 if test $ac_cv_func_getloadavg_setgid = yes; then
9989 NEED_SETGID=true
9991 cat >>confdefs.h <<\EOF
9992 #define GETLOADAVG_PRIVILEGED 1
9995 else
9996 NEED_SETGID=false
9999 if test $ac_cv_func_getloadavg_setgid = yes; then
10000 echo "$as_me:10000: checking group of /dev/kmem" >&5
10001 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
10002 if test "${ac_cv_group_kmem+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
10006 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10007 # If we got an error (system does not support symlinks), try without -L.
10008 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10009 ac_cv_group_kmem=`echo $ac_ls_output \
10010 | sed -ne 's/[ ][ ]*/ /g;
10011 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
10012 / /s/.* //;p;'`
10015 echo "$as_me:10015: result: $ac_cv_group_kmem" >&5
10016 echo "${ECHO_T}$ac_cv_group_kmem" >&6
10017 KMEM_GROUP=$ac_cv_group_kmem
10019 if test "x$ac_save_LIBS" = x; then
10020 GETLOADAVG_LIBS=$LIBS
10021 else
10022 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
10024 LIBS=$ac_save_LIBS
10026 echo "$as_me:10026: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10027 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10028 if test "${ac_cv_sys_largefile_source+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 while :; do
10032 ac_cv_sys_largefile_source=no
10033 cat >conftest.$ac_ext <<_ACEOF
10034 #line 10034 "configure"
10035 #include "confdefs.h"
10036 #include <stdio.h>
10038 main ()
10040 return !fseeko;
10042 return 0;
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:10046: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>&5
10048 ac_status=$?
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest.$ac_objext'
10052 { (eval echo "$as_me:10052: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 break
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 rm -f conftest.$ac_objext conftest.$ac_ext
10063 cat >conftest.$ac_ext <<_ACEOF
10064 #line 10064 "configure"
10065 #include "confdefs.h"
10066 #define _LARGEFILE_SOURCE 1
10067 #include <stdio.h>
10069 main ()
10071 return !fseeko;
10073 return 0;
10075 _ACEOF
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:10077: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>&5
10079 ac_status=$?
10080 echo "$as_me:10080: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -s conftest.$ac_objext'
10083 { (eval echo "$as_me:10083: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:10086: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_sys_largefile_source=1; break
10089 else
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 break
10095 done
10097 echo "$as_me:10097: result: $ac_cv_sys_largefile_source" >&5
10098 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10099 if test "$ac_cv_sys_largefile_source" != no; then
10101 cat >>confdefs.h <<EOF
10102 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10106 rm -f conftest*
10108 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10109 # in glibc 2.1.3, but that breaks too many other things.
10110 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10111 echo "$as_me:10111: checking for fseeko" >&5
10112 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10113 if test "${ac_cv_func_fseeko+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 #line 10117 "configure"
10118 #include "confdefs.h"
10119 #include <stdio.h>
10121 main ()
10123 return fseeko && fseeko (stdin, 0, 0);
10125 return 0;
10127 _ACEOF
10128 rm -f conftest.$ac_objext conftest$ac_exeext
10129 if { (eval echo "$as_me:10129: \"$ac_link\"") >&5
10130 (eval $ac_link) 2>&5
10131 ac_status=$?
10132 echo "$as_me:10132: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (eval echo "$as_me:10135: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10137 ac_status=$?
10138 echo "$as_me:10138: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_func_fseeko=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 ac_cv_func_fseeko=no
10146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10148 echo "$as_me:10148: result: $ac_cv_func_fseeko" >&5
10149 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10150 if test $ac_cv_func_fseeko = yes; then
10152 cat >>confdefs.h <<\EOF
10153 #define HAVE_FSEEKO 1
10158 # UNIX98 PTYs.
10160 for ac_func in grantpt
10162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10163 echo "$as_me:10163: checking for $ac_func" >&5
10164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10165 if eval "test \"\${$as_ac_var+set}\" = set"; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 cat >conftest.$ac_ext <<_ACEOF
10169 #line 10169 "configure"
10170 #include "confdefs.h"
10171 /* System header to define __stub macros and hopefully few prototypes,
10172 which can conflict with char $ac_func (); below. */
10173 #include <assert.h>
10174 /* Override any gcc2 internal prototype to avoid an error. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 /* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180 char $ac_func ();
10181 char (*f) ();
10184 main ()
10186 /* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
10189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10190 choke me
10191 #else
10192 f = $ac_func;
10193 #endif
10196 return 0;
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:10200: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>&5
10202 ac_status=$?
10203 echo "$as_me:10203: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (eval echo "$as_me:10206: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:10209: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 eval "$as_ac_var=yes"
10212 else
10213 echo "$as_me: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 eval "$as_ac_var=no"
10217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10219 echo "$as_me:10219: result: `eval echo '${'$as_ac_var'}'`" >&5
10220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10221 if test `eval echo '${'$as_ac_var'}'` = yes; then
10222 cat >>confdefs.h <<EOF
10223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10227 done
10229 # PTY-related GNU extensions.
10231 for ac_func in getpt
10233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10234 echo "$as_me:10234: checking for $ac_func" >&5
10235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10236 if eval "test \"\${$as_ac_var+set}\" = set"; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 cat >conftest.$ac_ext <<_ACEOF
10240 #line 10240 "configure"
10241 #include "confdefs.h"
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char $ac_func (); below. */
10244 #include <assert.h>
10245 /* Override any gcc2 internal prototype to avoid an error. */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 /* We use char because int might match the return type of a gcc2
10250 builtin and then its argument prototype would still apply. */
10251 char $ac_func ();
10252 char (*f) ();
10255 main ()
10257 /* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10261 choke me
10262 #else
10263 f = $ac_func;
10264 #endif
10267 return 0;
10269 _ACEOF
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:10271: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10273 ac_status=$?
10274 echo "$as_me:10274: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest$ac_exeext'
10277 { (eval echo "$as_me:10277: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:10280: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 eval "$as_ac_var=yes"
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 eval "$as_ac_var=no"
10288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10290 echo "$as_me:10290: result: `eval echo '${'$as_ac_var'}'`" >&5
10291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10292 if test `eval echo '${'$as_ac_var'}'` = yes; then
10293 cat >>confdefs.h <<EOF
10294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10298 done
10300 # Check this now, so that we will NOT find the above functions in ncurses.
10301 # That is because we have not set up to link ncurses in lib-src.
10302 # It's better to believe a function is not available
10303 # than to expect to find it in ncurses.
10305 echo "$as_me:10305: checking for tparm in -lncurses" >&5
10306 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10307 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310 ac_check_lib_save_LIBS=$LIBS
10311 LIBS="-lncurses $LIBS"
10312 cat >conftest.$ac_ext <<_ACEOF
10313 #line 10313 "configure"
10314 #include "confdefs.h"
10316 /* Override any gcc2 internal prototype to avoid an error. */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 /* We use char because int might match the return type of a gcc2
10321 builtin and then its argument prototype would still apply. */
10322 char tparm ();
10324 main ()
10326 tparm ();
10328 return 0;
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (eval echo "$as_me:10332: \"$ac_link\"") >&5
10333 (eval $ac_link) 2>&5
10334 ac_status=$?
10335 echo "$as_me:10335: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest$ac_exeext'
10338 { (eval echo "$as_me:10338: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10340 ac_status=$?
10341 echo "$as_me:10341: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 ac_cv_lib_ncurses_tparm=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 ac_cv_lib_ncurses_tparm=no
10349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 echo "$as_me:10352: result: $ac_cv_lib_ncurses_tparm" >&5
10353 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10354 if test $ac_cv_lib_ncurses_tparm = yes; then
10355 cat >>confdefs.h <<EOF
10356 #define HAVE_LIBNCURSES 1
10359 LIBS="-lncurses $LIBS"
10363 # Do we need the Hesiod library to provide the support routines?
10364 if test "$with_hesiod" = yes ; then
10365 # Don't set $LIBS here -- see comments above.
10366 resolv=no
10367 echo "$as_me:10367: checking for res_send" >&5
10368 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10369 if test "${ac_cv_func_res_send+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line 10373 "configure"
10374 #include "confdefs.h"
10375 /* System header to define __stub macros and hopefully few prototypes,
10376 which can conflict with char res_send (); below. */
10377 #include <assert.h>
10378 /* Override any gcc2 internal prototype to avoid an error. */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 /* We use char because int might match the return type of a gcc2
10383 builtin and then its argument prototype would still apply. */
10384 char res_send ();
10385 char (*f) ();
10388 main ()
10390 /* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393 #if defined (__stub_res_send) || defined (__stub___res_send)
10394 choke me
10395 #else
10396 f = res_send;
10397 #endif
10400 return 0;
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:10404: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>&5
10406 ac_status=$?
10407 echo "$as_me:10407: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:10410: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:10413: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_func_res_send=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 ac_cv_func_res_send=no
10421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10423 echo "$as_me:10423: result: $ac_cv_func_res_send" >&5
10424 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10425 if test $ac_cv_func_res_send = yes; then
10427 else
10428 echo "$as_me:10428: checking for __res_send" >&5
10429 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10430 if test "${ac_cv_func___res_send+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 cat >conftest.$ac_ext <<_ACEOF
10434 #line 10434 "configure"
10435 #include "confdefs.h"
10436 /* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char __res_send (); below. */
10438 #include <assert.h>
10439 /* Override any gcc2 internal prototype to avoid an error. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 /* We use char because int might match the return type of a gcc2
10444 builtin and then its argument prototype would still apply. */
10445 char __res_send ();
10446 char (*f) ();
10449 main ()
10451 /* The GNU C library defines this for functions which it implements
10452 to always fail with ENOSYS. Some functions are actually named
10453 something starting with __ and the normal name is an alias. */
10454 #if defined (__stub___res_send) || defined (__stub_____res_send)
10455 choke me
10456 #else
10457 f = __res_send;
10458 #endif
10461 return 0;
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:10465: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10467 ac_status=$?
10468 echo "$as_me:10468: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:10471: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:10474: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func___res_send=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 ac_cv_func___res_send=no
10482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10484 echo "$as_me:10484: result: $ac_cv_func___res_send" >&5
10485 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10486 if test $ac_cv_func___res_send = yes; then
10488 else
10489 echo "$as_me:10489: checking for res_send in -lresolv" >&5
10490 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10491 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lresolv $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10497 #line 10497 "configure"
10498 #include "confdefs.h"
10500 /* Override any gcc2 internal prototype to avoid an error. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 /* We use char because int might match the return type of a gcc2
10505 builtin and then its argument prototype would still apply. */
10506 char res_send ();
10508 main ()
10510 res_send ();
10512 return 0;
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (eval echo "$as_me:10516: \"$ac_link\"") >&5
10517 (eval $ac_link) 2>&5
10518 ac_status=$?
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -s conftest$ac_exeext'
10522 { (eval echo "$as_me:10522: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:10525: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 ac_cv_lib_resolv_res_send=yes
10528 else
10529 echo "$as_me: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 ac_cv_lib_resolv_res_send=no
10533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10534 LIBS=$ac_check_lib_save_LIBS
10536 echo "$as_me:10536: result: $ac_cv_lib_resolv_res_send" >&5
10537 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10538 if test $ac_cv_lib_resolv_res_send = yes; then
10539 resolv=yes
10540 else
10541 echo "$as_me:10541: checking for __res_send in -lresolv" >&5
10542 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10543 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lresolv $LIBS"
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line 10549 "configure"
10550 #include "confdefs.h"
10552 /* Override any gcc2 internal prototype to avoid an error. */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 /* We use char because int might match the return type of a gcc2
10557 builtin and then its argument prototype would still apply. */
10558 char __res_send ();
10560 main ()
10562 __res_send ();
10564 return 0;
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (eval echo "$as_me:10568: \"$ac_link\"") >&5
10569 (eval $ac_link) 2>&5
10570 ac_status=$?
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:10574: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:10577: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_lib_resolv___res_send=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10583 ac_cv_lib_resolv___res_send=no
10585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 echo "$as_me:10588: result: $ac_cv_lib_resolv___res_send" >&5
10589 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10590 if test $ac_cv_lib_resolv___res_send = yes; then
10591 resolv=yes
10600 if test "$resolv" = yes ; then
10601 RESOLVLIB=-lresolv
10603 cat >>confdefs.h <<\EOF
10604 #define HAVE_LIBRESOLV 1
10607 else
10608 RESOLVLIB=
10610 echo "$as_me:10610: checking for hes_getmailhost" >&5
10611 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10612 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615 cat >conftest.$ac_ext <<_ACEOF
10616 #line 10616 "configure"
10617 #include "confdefs.h"
10618 /* System header to define __stub macros and hopefully few prototypes,
10619 which can conflict with char hes_getmailhost (); below. */
10620 #include <assert.h>
10621 /* Override any gcc2 internal prototype to avoid an error. */
10622 #ifdef __cplusplus
10623 extern "C"
10624 #endif
10625 /* We use char because int might match the return type of a gcc2
10626 builtin and then its argument prototype would still apply. */
10627 char hes_getmailhost ();
10628 char (*f) ();
10631 main ()
10633 /* The GNU C library defines this for functions which it implements
10634 to always fail with ENOSYS. Some functions are actually named
10635 something starting with __ and the normal name is an alias. */
10636 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10637 choke me
10638 #else
10639 f = hes_getmailhost;
10640 #endif
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:10647: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10649 ac_status=$?
10650 echo "$as_me:10650: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:10653: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:10656: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_func_hes_getmailhost=yes
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10662 ac_cv_func_hes_getmailhost=no
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 echo "$as_me:10666: result: $ac_cv_func_hes_getmailhost" >&5
10667 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10668 if test $ac_cv_func_hes_getmailhost = yes; then
10670 else
10671 echo "$as_me:10671: checking for hes_getmailhost in -lhesiod" >&5
10672 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10673 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-lhesiod $RESOLVLIB $LIBS"
10678 cat >conftest.$ac_ext <<_ACEOF
10679 #line 10679 "configure"
10680 #include "confdefs.h"
10682 /* Override any gcc2 internal prototype to avoid an error. */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char hes_getmailhost ();
10690 main ()
10692 hes_getmailhost ();
10694 return 0;
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:10698: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>&5
10700 ac_status=$?
10701 echo "$as_me:10701: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -s conftest$ac_exeext'
10704 { (eval echo "$as_me:10704: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:10707: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_lib_hesiod_hes_getmailhost=yes
10710 else
10711 echo "$as_me: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10713 ac_cv_lib_hesiod_hes_getmailhost=no
10715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10718 echo "$as_me:10718: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10719 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10720 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10722 cat >>confdefs.h <<\EOF
10723 #define HAVE_LIBHESIOD 1
10726 else
10734 # These tell us which Kerberos-related libraries to use.
10735 if test "${with_kerberos+set}" = set; then
10737 echo "$as_me:10737: checking for com_err in -lcom_err" >&5
10738 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10739 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-lcom_err $LIBS"
10744 cat >conftest.$ac_ext <<_ACEOF
10745 #line 10745 "configure"
10746 #include "confdefs.h"
10748 /* Override any gcc2 internal prototype to avoid an error. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10754 char com_err ();
10756 main ()
10758 com_err ();
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:10764: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>&5
10766 ac_status=$?
10767 echo "$as_me:10767: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -s conftest$ac_exeext'
10770 { (eval echo "$as_me:10770: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:10773: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_lib_com_err_com_err=yes
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10779 ac_cv_lib_com_err_com_err=no
10781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 echo "$as_me:10784: result: $ac_cv_lib_com_err_com_err" >&5
10785 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10786 if test $ac_cv_lib_com_err_com_err = yes; then
10787 cat >>confdefs.h <<EOF
10788 #define HAVE_LIBCOM_ERR 1
10791 LIBS="-lcom_err $LIBS"
10795 echo "$as_me:10795: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10796 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10797 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lk5crypto $LIBS"
10802 cat >conftest.$ac_ext <<_ACEOF
10803 #line 10803 "configure"
10804 #include "confdefs.h"
10806 /* Override any gcc2 internal prototype to avoid an error. */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 /* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812 char mit_des_cbc_encrypt ();
10814 main ()
10816 mit_des_cbc_encrypt ();
10818 return 0;
10820 _ACEOF
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (eval echo "$as_me:10822: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10824 ac_status=$?
10825 echo "$as_me:10825: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:10828: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:10831: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10842 echo "$as_me:10842: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10843 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10844 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10845 cat >>confdefs.h <<EOF
10846 #define HAVE_LIBK5CRYPTO 1
10849 LIBS="-lk5crypto $LIBS"
10853 echo "$as_me:10853: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10854 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10855 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 ac_check_lib_save_LIBS=$LIBS
10859 LIBS="-lcrypto $LIBS"
10860 cat >conftest.$ac_ext <<_ACEOF
10861 #line 10861 "configure"
10862 #include "confdefs.h"
10864 /* Override any gcc2 internal prototype to avoid an error. */
10865 #ifdef __cplusplus
10866 extern "C"
10867 #endif
10868 /* We use char because int might match the return type of a gcc2
10869 builtin and then its argument prototype would still apply. */
10870 char mit_des_cbc_encrypt ();
10872 main ()
10874 mit_des_cbc_encrypt ();
10876 return 0;
10878 _ACEOF
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:10880: \"$ac_link\"") >&5
10881 (eval $ac_link) 2>&5
10882 ac_status=$?
10883 echo "$as_me:10883: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -s conftest$ac_exeext'
10886 { (eval echo "$as_me:10886: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:10889: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10892 else
10893 echo "$as_me: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10895 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10900 echo "$as_me:10900: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10901 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10902 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10903 cat >>confdefs.h <<EOF
10904 #define HAVE_LIBCRYPTO 1
10907 LIBS="-lcrypto $LIBS"
10911 echo "$as_me:10911: checking for krb5_init_context in -lkrb5" >&5
10912 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10913 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lkrb5 $LIBS"
10918 cat >conftest.$ac_ext <<_ACEOF
10919 #line 10919 "configure"
10920 #include "confdefs.h"
10922 /* Override any gcc2 internal prototype to avoid an error. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928 char krb5_init_context ();
10930 main ()
10932 krb5_init_context ();
10934 return 0;
10936 _ACEOF
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (eval echo "$as_me:10938: \"$ac_link\"") >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 echo "$as_me:10941: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -s conftest$ac_exeext'
10944 { (eval echo "$as_me:10944: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:10947: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 ac_cv_lib_krb5_krb5_init_context=yes
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10953 ac_cv_lib_krb5_krb5_init_context=no
10955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 echo "$as_me:10958: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10959 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10960 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10961 cat >>confdefs.h <<EOF
10962 #define HAVE_LIBKRB5 1
10965 LIBS="-lkrb5 $LIBS"
10969 if test "${with_kerberos5+set}" != set; then
10971 echo "$as_me:10971: checking for des_cbc_encrypt in -ldes425" >&5
10972 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10973 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-ldes425 $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10982 /* Override any gcc2 internal prototype to avoid an error. */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 /* We use char because int might match the return type of a gcc2
10987 builtin and then its argument prototype would still apply. */
10988 char des_cbc_encrypt ();
10990 main ()
10992 des_cbc_encrypt ();
10994 return 0;
10996 _ACEOF
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (eval echo "$as_me:10998: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11000 ac_status=$?
11001 echo "$as_me:11001: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (eval echo "$as_me:11004: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_lib_des425_des_cbc_encrypt=yes
11010 else
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 ac_cv_lib_des425_des_cbc_encrypt=no
11015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 echo "$as_me:11018: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
11019 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
11020 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
11021 cat >>confdefs.h <<EOF
11022 #define HAVE_LIBDES425 1
11025 LIBS="-ldes425 $LIBS"
11027 else
11029 echo "$as_me:11029: checking for des_cbc_encrypt in -ldes" >&5
11030 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11031 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-ldes $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 #line 11037 "configure"
11038 #include "confdefs.h"
11040 /* Override any gcc2 internal prototype to avoid an error. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046 char des_cbc_encrypt ();
11048 main ()
11050 des_cbc_encrypt ();
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:11056: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>&5
11058 ac_status=$?
11059 echo "$as_me:11059: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (eval echo "$as_me:11062: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11064 ac_status=$?
11065 echo "$as_me:11065: \$? = $ac_status" >&5
11066 (exit $ac_status); }; }; then
11067 ac_cv_lib_des_des_cbc_encrypt=yes
11068 else
11069 echo "$as_me: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 ac_cv_lib_des_des_cbc_encrypt=no
11073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11074 LIBS=$ac_check_lib_save_LIBS
11076 echo "$as_me:11076: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11077 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11078 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11079 cat >>confdefs.h <<EOF
11080 #define HAVE_LIBDES 1
11083 LIBS="-ldes $LIBS"
11089 echo "$as_me:11089: checking for krb_get_cred in -lkrb4" >&5
11090 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11091 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lkrb4 $LIBS"
11096 cat >conftest.$ac_ext <<_ACEOF
11097 #line 11097 "configure"
11098 #include "confdefs.h"
11100 /* Override any gcc2 internal prototype to avoid an error. */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11106 char krb_get_cred ();
11108 main ()
11110 krb_get_cred ();
11112 return 0;
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:11116: \"$ac_link\"") >&5
11117 (eval $ac_link) 2>&5
11118 ac_status=$?
11119 echo "$as_me:11119: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -s conftest$ac_exeext'
11122 { (eval echo "$as_me:11122: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11124 ac_status=$?
11125 echo "$as_me:11125: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_lib_krb4_krb_get_cred=yes
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 ac_cv_lib_krb4_krb_get_cred=no
11133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11136 echo "$as_me:11136: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11137 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11138 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11139 cat >>confdefs.h <<EOF
11140 #define HAVE_LIBKRB4 1
11143 LIBS="-lkrb4 $LIBS"
11145 else
11147 echo "$as_me:11147: checking for krb_get_cred in -lkrb" >&5
11148 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11149 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-lkrb $LIBS"
11154 cat >conftest.$ac_ext <<_ACEOF
11155 #line 11155 "configure"
11156 #include "confdefs.h"
11158 /* Override any gcc2 internal prototype to avoid an error. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164 char krb_get_cred ();
11166 main ()
11168 krb_get_cred ();
11170 return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext conftest$ac_exeext
11174 if { (eval echo "$as_me:11174: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>&5
11176 ac_status=$?
11177 echo "$as_me:11177: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (eval echo "$as_me:11180: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_lib_krb_krb_get_cred=yes
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11189 ac_cv_lib_krb_krb_get_cred=no
11191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11194 echo "$as_me:11194: result: $ac_cv_lib_krb_krb_get_cred" >&5
11195 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11196 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11197 cat >>confdefs.h <<EOF
11198 #define HAVE_LIBKRB 1
11201 LIBS="-lkrb $LIBS"
11209 if test "${with_kerberos5+set}" = set; then
11211 for ac_header in krb5.h
11213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11214 echo "$as_me:11214: checking for $ac_header" >&5
11215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line 11220 "configure"
11221 #include "confdefs.h"
11222 #include <$ac_header>
11223 _ACEOF
11224 if { (eval echo "$as_me:11224: \"$ac_cpp conftest.$ac_ext\"") >&5
11225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11226 ac_status=$?
11227 egrep -v '^ *\+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:11230: \$? = $ac_status" >&5
11231 (exit $ac_status); } >/dev/null; then
11232 if test -s conftest.err; then
11233 ac_cpp_err=$ac_c_preproc_warn_flag
11234 else
11235 ac_cpp_err=
11237 else
11238 ac_cpp_err=yes
11240 if test -z "$ac_cpp_err"; then
11241 eval "$as_ac_Header=yes"
11242 else
11243 echo "$as_me: failed program was:" >&5
11244 cat conftest.$ac_ext >&5
11245 eval "$as_ac_Header=no"
11247 rm -f conftest.err conftest.$ac_ext
11249 echo "$as_me:11249: result: `eval echo '${'$as_ac_Header'}'`" >&5
11250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<EOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257 done
11259 else
11261 for ac_header in des.h
11263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11264 echo "$as_me:11264: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line 11270 "configure"
11271 #include "confdefs.h"
11272 #include <$ac_header>
11273 _ACEOF
11274 if { (eval echo "$as_me:11274: \"$ac_cpp conftest.$ac_ext\"") >&5
11275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11276 ac_status=$?
11277 egrep -v '^ *\+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); } >/dev/null; then
11282 if test -s conftest.err; then
11283 ac_cpp_err=$ac_c_preproc_warn_flag
11284 else
11285 ac_cpp_err=
11287 else
11288 ac_cpp_err=yes
11290 if test -z "$ac_cpp_err"; then
11291 eval "$as_ac_Header=yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11295 eval "$as_ac_Header=no"
11297 rm -f conftest.err conftest.$ac_ext
11299 echo "$as_me:11299: result: `eval echo '${'$as_ac_Header'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11302 cat >>confdefs.h <<EOF
11303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11306 else
11308 for ac_header in kerberosIV/des.h
11310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11311 echo "$as_me:11311: checking for $ac_header" >&5
11312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line 11317 "configure"
11318 #include "confdefs.h"
11319 #include <$ac_header>
11320 _ACEOF
11321 if { (eval echo "$as_me:11321: \"$ac_cpp conftest.$ac_ext\"") >&5
11322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11323 ac_status=$?
11324 egrep -v '^ *\+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:11327: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 else
11332 ac_cpp_err=
11334 else
11335 ac_cpp_err=yes
11337 if test -z "$ac_cpp_err"; then
11338 eval "$as_ac_Header=yes"
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 eval "$as_ac_Header=no"
11344 rm -f conftest.err conftest.$ac_ext
11346 echo "$as_me:11346: result: `eval echo '${'$as_ac_Header'}'`" >&5
11347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11349 cat >>confdefs.h <<EOF
11350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11353 else
11355 for ac_header in kerberos/des.h
11357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11358 echo "$as_me:11358: checking for $ac_header" >&5
11359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 else
11363 cat >conftest.$ac_ext <<_ACEOF
11364 #line 11364 "configure"
11365 #include "confdefs.h"
11366 #include <$ac_header>
11367 _ACEOF
11368 if { (eval echo "$as_me:11368: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11370 ac_status=$?
11371 egrep -v '^ *\+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:11374: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 else
11379 ac_cpp_err=
11381 else
11382 ac_cpp_err=yes
11384 if test -z "$ac_cpp_err"; then
11385 eval "$as_ac_Header=yes"
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 cat conftest.$ac_ext >&5
11389 eval "$as_ac_Header=no"
11391 rm -f conftest.err conftest.$ac_ext
11393 echo "$as_me:11393: result: `eval echo '${'$as_ac_Header'}'`" >&5
11394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<EOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11401 done
11404 done
11407 done
11409 for ac_header in krb.h
11411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 echo "$as_me:11412: checking for $ac_header" >&5
11413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 cat >conftest.$ac_ext <<_ACEOF
11418 #line 11418 "configure"
11419 #include "confdefs.h"
11420 #include <$ac_header>
11421 _ACEOF
11422 if { (eval echo "$as_me:11422: \"$ac_cpp conftest.$ac_ext\"") >&5
11423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11424 ac_status=$?
11425 egrep -v '^ *\+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:11428: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev/null; then
11430 if test -s conftest.err; then
11431 ac_cpp_err=$ac_c_preproc_warn_flag
11432 else
11433 ac_cpp_err=
11435 else
11436 ac_cpp_err=yes
11438 if test -z "$ac_cpp_err"; then
11439 eval "$as_ac_Header=yes"
11440 else
11441 echo "$as_me: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 eval "$as_ac_Header=no"
11445 rm -f conftest.err conftest.$ac_ext
11447 echo "$as_me:11447: result: `eval echo '${'$as_ac_Header'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450 cat >>confdefs.h <<EOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11454 else
11456 for ac_header in kerberosIV/krb.h
11458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 echo "$as_me:11459: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11467 #include <$ac_header>
11468 _ACEOF
11469 if { (eval echo "$as_me:11469: \"$ac_cpp conftest.$ac_ext\"") >&5
11470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11471 ac_status=$?
11472 egrep -v '^ *\+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:11475: \$? = $ac_status" >&5
11476 (exit $ac_status); } >/dev/null; then
11477 if test -s conftest.err; then
11478 ac_cpp_err=$ac_c_preproc_warn_flag
11479 else
11480 ac_cpp_err=
11482 else
11483 ac_cpp_err=yes
11485 if test -z "$ac_cpp_err"; then
11486 eval "$as_ac_Header=yes"
11487 else
11488 echo "$as_me: failed program was:" >&5
11489 cat conftest.$ac_ext >&5
11490 eval "$as_ac_Header=no"
11492 rm -f conftest.err conftest.$ac_ext
11494 echo "$as_me:11494: result: `eval echo '${'$as_ac_Header'}'`" >&5
11495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11497 cat >>confdefs.h <<EOF
11498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11501 else
11503 for ac_header in kerberos/krb.h
11505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11506 echo "$as_me:11506: checking for $ac_header" >&5
11507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511 cat >conftest.$ac_ext <<_ACEOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (eval echo "$as_me:11516: \"$ac_cpp conftest.$ac_ext\"") >&5
11517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11518 ac_status=$?
11519 egrep -v '^ *\+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit $ac_status); } >/dev/null; then
11524 if test -s conftest.err; then
11525 ac_cpp_err=$ac_c_preproc_warn_flag
11526 else
11527 ac_cpp_err=
11529 else
11530 ac_cpp_err=yes
11532 if test -z "$ac_cpp_err"; then
11533 eval "$as_ac_Header=yes"
11534 else
11535 echo "$as_me: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 eval "$as_ac_Header=no"
11539 rm -f conftest.err conftest.$ac_ext
11541 echo "$as_me:11541: result: `eval echo '${'$as_ac_Header'}'`" >&5
11542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11544 cat >>confdefs.h <<EOF
11545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11549 done
11552 done
11555 done
11559 for ac_header in com_err.h
11561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11562 echo "$as_me:11562: checking for $ac_header" >&5
11563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567 cat >conftest.$ac_ext <<_ACEOF
11568 #line 11568 "configure"
11569 #include "confdefs.h"
11570 #include <$ac_header>
11571 _ACEOF
11572 if { (eval echo "$as_me:11572: \"$ac_cpp conftest.$ac_ext\"") >&5
11573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11574 ac_status=$?
11575 egrep -v '^ *\+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:11578: \$? = $ac_status" >&5
11579 (exit $ac_status); } >/dev/null; then
11580 if test -s conftest.err; then
11581 ac_cpp_err=$ac_c_preproc_warn_flag
11582 else
11583 ac_cpp_err=
11585 else
11586 ac_cpp_err=yes
11588 if test -z "$ac_cpp_err"; then
11589 eval "$as_ac_Header=yes"
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11593 eval "$as_ac_Header=no"
11595 rm -f conftest.err conftest.$ac_ext
11597 echo "$as_me:11597: result: `eval echo '${'$as_ac_Header'}'`" >&5
11598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11600 cat >>confdefs.h <<EOF
11601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11605 done
11609 # Solaris requires -lintl if you want strerror (which calls dgettext)
11610 # to return localized messages.
11612 echo "$as_me:11612: checking for dgettext in -lintl" >&5
11613 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11614 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lintl $LIBS"
11619 cat >conftest.$ac_ext <<_ACEOF
11620 #line 11620 "configure"
11621 #include "confdefs.h"
11623 /* Override any gcc2 internal prototype to avoid an error. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 /* We use char because int might match the return type of a gcc2
11628 builtin and then its argument prototype would still apply. */
11629 char dgettext ();
11631 main ()
11633 dgettext ();
11635 return 0;
11637 _ACEOF
11638 rm -f conftest.$ac_objext conftest$ac_exeext
11639 if { (eval echo "$as_me:11639: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>&5
11641 ac_status=$?
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:11645: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:11648: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_intl_dgettext=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11654 ac_cv_lib_intl_dgettext=no
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 LIBS=$ac_check_lib_save_LIBS
11659 echo "$as_me:11659: result: $ac_cv_lib_intl_dgettext" >&5
11660 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11661 if test $ac_cv_lib_intl_dgettext = yes; then
11662 cat >>confdefs.h <<EOF
11663 #define HAVE_LIBINTL 1
11666 LIBS="-lintl $LIBS"
11670 echo "$as_me:11670: checking whether localtime caches TZ" >&5
11671 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11672 if test "${emacs_cv_localtime_cache+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 if test x$ac_cv_func_tzset = xyes; then
11676 if test "$cross_compiling" = yes; then
11677 # If we have tzset, assume the worst when cross-compiling.
11678 emacs_cv_localtime_cache=yes
11679 else
11680 cat >conftest.$ac_ext <<_ACEOF
11681 #line 11681 "configure"
11682 #include "confdefs.h"
11683 #include <time.h>
11684 extern char **environ;
11685 unset_TZ ()
11687 char **from, **to;
11688 for (to = from = environ; (*to = *from); from++)
11689 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11690 to++;
11692 char TZ_GMT0[] = "TZ=GMT0";
11693 char TZ_PST8[] = "TZ=PST8";
11694 main()
11696 time_t now = time ((time_t *) 0);
11697 int hour_GMT0, hour_unset;
11698 if (putenv (TZ_GMT0) != 0)
11699 exit (1);
11700 hour_GMT0 = localtime (&now)->tm_hour;
11701 unset_TZ ();
11702 hour_unset = localtime (&now)->tm_hour;
11703 if (putenv (TZ_PST8) != 0)
11704 exit (1);
11705 if (localtime (&now)->tm_hour == hour_GMT0)
11706 exit (1);
11707 unset_TZ ();
11708 if (localtime (&now)->tm_hour != hour_unset)
11709 exit (1);
11710 exit (0);
11712 _ACEOF
11713 rm -f conftest$ac_exeext
11714 if { (eval echo "$as_me:11714: \"$ac_link\"") >&5
11715 (eval $ac_link) 2>&5
11716 ac_status=$?
11717 echo "$as_me:11717: \$? = $ac_status" >&5
11718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11719 { (eval echo "$as_me:11719: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:11722: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 emacs_cv_localtime_cache=no
11725 else
11726 echo "$as_me: program exited with status $ac_status" >&5
11727 echo "$as_me: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11729 emacs_cv_localtime_cache=yes
11731 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11733 else
11734 # If we lack tzset, report that localtime does not cache TZ,
11735 # since we can't invalidate the cache if we don't have tzset.
11736 emacs_cv_localtime_cache=no
11739 echo "$as_me:11739: result: $emacs_cv_localtime_cache" >&5
11740 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11741 if test $emacs_cv_localtime_cache = yes; then
11743 cat >>confdefs.h <<\EOF
11744 #define LOCALTIME_CACHE 1
11749 if test "x$HAVE_TIMEVAL" = xyes; then
11751 for ac_func in gettimeofday
11753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11754 echo "$as_me:11754: checking for $ac_func" >&5
11755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11756 if eval "test \"\${$as_ac_var+set}\" = set"; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759 cat >conftest.$ac_ext <<_ACEOF
11760 #line 11760 "configure"
11761 #include "confdefs.h"
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below. */
11764 #include <assert.h>
11765 /* Override any gcc2 internal prototype to avoid an error. */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 /* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11771 char $ac_func ();
11772 char (*f) ();
11775 main ()
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11781 choke me
11782 #else
11783 f = $ac_func;
11784 #endif
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:11791: \"$ac_link\"") >&5
11792 (eval $ac_link) 2>&5
11793 ac_status=$?
11794 echo "$as_me:11794: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:11797: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11803 else
11804 echo "$as_me: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 eval "$as_ac_var=no"
11808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810 echo "$as_me:11810: result: `eval echo '${'$as_ac_var'}'`" >&5
11811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813 cat >>confdefs.h <<EOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11818 done
11820 if test $ac_cv_func_gettimeofday = yes; then
11821 echo "$as_me:11821: checking whether gettimeofday can accept two arguments" >&5
11822 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11823 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 cat >conftest.$ac_ext <<_ACEOF
11827 #line 11827 "configure"
11828 #include "confdefs.h"
11830 #ifdef TIME_WITH_SYS_TIME
11831 #include <sys/time.h>
11832 #include <time.h>
11833 #else
11834 #ifdef HAVE_SYS_TIME_H
11835 #include <sys/time.h>
11836 #else
11837 #include <time.h>
11838 #endif
11839 #endif
11841 main ()
11843 struct timeval time;
11844 gettimeofday (&time, 0);
11846 return 0;
11848 _ACEOF
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:11850: \"$ac_compile\"") >&5
11851 (eval $ac_compile) 2>&5
11852 ac_status=$?
11853 echo "$as_me:11853: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (eval echo "$as_me:11856: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:11859: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 emacs_cv_gettimeofday_two_arguments=yes
11862 else
11863 echo "$as_me: failed program was:" >&5
11864 cat conftest.$ac_ext >&5
11865 emacs_cv_gettimeofday_two_arguments=no
11867 rm -f conftest.$ac_objext conftest.$ac_ext
11869 echo "$as_me:11869: result: $emacs_cv_gettimeofday_two_arguments" >&5
11870 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11871 if test $emacs_cv_gettimeofday_two_arguments = no; then
11873 cat >>confdefs.h <<\EOF
11874 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11881 if test "$ac_cv_func_gettimeofday" = yes; then
11882 echo "$as_me:11882: checking for struct timezone" >&5
11883 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11884 if test "${emacs_cv_struct_timezone+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line 11888 "configure"
11889 #include "confdefs.h"
11890 #include <sys/time.h>
11892 main ()
11894 struct timezone tz;
11896 return 0;
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (eval echo "$as_me:11900: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>&5
11902 ac_status=$?
11903 echo "$as_me:11903: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:11906: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:11909: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 if test "$cross_compiling" = yes; then
11912 emacs_cv_struct_timezone=yes
11913 else
11914 cat >conftest.$ac_ext <<_ACEOF
11915 #line 11915 "configure"
11916 #include "confdefs.h"
11918 #ifdef TIME_WITH_SYS_TIME
11919 #include <sys/time.h>
11920 #include <time.h>
11921 #else
11922 #ifdef HAVE_SYS_TIME_H
11923 #include <sys/time.h>
11924 #else
11925 #include <time.h>
11926 #endif
11927 #endif
11928 main () {
11929 struct timeval time;
11930 struct timezone dummy;
11931 exit (gettimeofday (&time, &dummy));
11933 _ACEOF
11934 rm -f conftest$ac_exeext
11935 if { (eval echo "$as_me:11935: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>&5
11937 ac_status=$?
11938 echo "$as_me:11938: \$? = $ac_status" >&5
11939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11940 { (eval echo "$as_me:11940: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:11943: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 emacs_cv_struct_timezone=yes
11946 else
11947 echo "$as_me: program exited with status $ac_status" >&5
11948 echo "$as_me: failed program was:" >&5
11949 cat conftest.$ac_ext >&5
11950 emacs_cv_struct_timezone=no
11952 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 cat conftest.$ac_ext >&5
11957 emacs_cv_struct_timezone=no
11959 rm -f conftest.$ac_objext conftest.$ac_ext
11961 echo "$as_me:11961: result: $emacs_cv_struct_timezone" >&5
11962 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11965 ok_so_far=yes
11966 echo "$as_me:11966: checking for socket" >&5
11967 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11968 if test "${ac_cv_func_socket+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971 cat >conftest.$ac_ext <<_ACEOF
11972 #line 11972 "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char socket (); below. */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983 char socket ();
11984 char (*f) ();
11987 main ()
11989 /* The GNU C library defines this for functions which it implements
11990 to always fail with ENOSYS. Some functions are actually named
11991 something starting with __ and the normal name is an alias. */
11992 #if defined (__stub_socket) || defined (__stub___socket)
11993 choke me
11994 #else
11995 f = socket;
11996 #endif
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:12003: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>&5
12005 ac_status=$?
12006 echo "$as_me:12006: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:12009: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:12012: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_func_socket=yes
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 ac_cv_func_socket=no
12020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12022 echo "$as_me:12022: result: $ac_cv_func_socket" >&5
12023 echo "${ECHO_T}$ac_cv_func_socket" >&6
12024 if test $ac_cv_func_socket = yes; then
12026 else
12027 ok_so_far=no
12030 if test $ok_so_far = yes; then
12031 echo "$as_me:12031: checking for netinet/in.h" >&5
12032 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12033 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line 12037 "configure"
12038 #include "confdefs.h"
12039 #include <netinet/in.h>
12040 _ACEOF
12041 if { (eval echo "$as_me:12041: \"$ac_cpp conftest.$ac_ext\"") >&5
12042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12043 ac_status=$?
12044 egrep -v '^ *\+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:12047: \$? = $ac_status" >&5
12048 (exit $ac_status); } >/dev/null; then
12049 if test -s conftest.err; then
12050 ac_cpp_err=$ac_c_preproc_warn_flag
12051 else
12052 ac_cpp_err=
12054 else
12055 ac_cpp_err=yes
12057 if test -z "$ac_cpp_err"; then
12058 ac_cv_header_netinet_in_h=yes
12059 else
12060 echo "$as_me: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 ac_cv_header_netinet_in_h=no
12064 rm -f conftest.err conftest.$ac_ext
12066 echo "$as_me:12066: result: $ac_cv_header_netinet_in_h" >&5
12067 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12068 if test $ac_cv_header_netinet_in_h = yes; then
12070 else
12071 ok_so_far=no
12075 if test $ok_so_far = yes; then
12076 echo "$as_me:12076: checking for arpa/inet.h" >&5
12077 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12078 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081 cat >conftest.$ac_ext <<_ACEOF
12082 #line 12082 "configure"
12083 #include "confdefs.h"
12084 #include <arpa/inet.h>
12085 _ACEOF
12086 if { (eval echo "$as_me:12086: \"$ac_cpp conftest.$ac_ext\"") >&5
12087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12088 ac_status=$?
12089 egrep -v '^ *\+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:12092: \$? = $ac_status" >&5
12093 (exit $ac_status); } >/dev/null; then
12094 if test -s conftest.err; then
12095 ac_cpp_err=$ac_c_preproc_warn_flag
12096 else
12097 ac_cpp_err=
12099 else
12100 ac_cpp_err=yes
12102 if test -z "$ac_cpp_err"; then
12103 ac_cv_header_arpa_inet_h=yes
12104 else
12105 echo "$as_me: failed program was:" >&5
12106 cat conftest.$ac_ext >&5
12107 ac_cv_header_arpa_inet_h=no
12109 rm -f conftest.err conftest.$ac_ext
12111 echo "$as_me:12111: result: $ac_cv_header_arpa_inet_h" >&5
12112 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12113 if test $ac_cv_header_arpa_inet_h = yes; then
12115 else
12116 ok_so_far=no
12120 if test $ok_so_far = yes; then
12122 cat >>confdefs.h <<\EOF
12123 #define HAVE_INET_SOCKETS 1
12128 if test -f /usr/lpp/X11/bin/smt.exp; then
12130 cat >>confdefs.h <<\EOF
12131 #define HAVE_AIX_SMT_EXP 1
12136 echo "$as_me:12136: checking whether system supports dynamic ptys" >&5
12137 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12138 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12139 echo "$as_me:12139: result: yes" >&5
12140 echo "${ECHO_T}yes" >&6
12142 cat >>confdefs.h <<\EOF
12143 #define HAVE_DEV_PTMX 1
12146 else
12147 echo "$as_me:12147: result: no" >&5
12148 echo "${ECHO_T}no" >&6
12151 echo "$as_me:12151: checking for pid_t" >&5
12152 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12153 if test "${ac_cv_type_pid_t+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 cat >conftest.$ac_ext <<_ACEOF
12157 #line 12157 "configure"
12158 #include "confdefs.h"
12159 $ac_includes_default
12161 main ()
12163 if ((pid_t *) 0)
12164 return 0;
12165 if (sizeof (pid_t))
12166 return 0;
12168 return 0;
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:12172: \"$ac_compile\"") >&5
12173 (eval $ac_compile) 2>&5
12174 ac_status=$?
12175 echo "$as_me:12175: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:12178: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:12181: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_type_pid_t=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12187 ac_cv_type_pid_t=no
12189 rm -f conftest.$ac_objext conftest.$ac_ext
12191 echo "$as_me:12191: result: $ac_cv_type_pid_t" >&5
12192 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12193 if test $ac_cv_type_pid_t = yes; then
12195 else
12197 cat >>confdefs.h <<EOF
12198 #define pid_t int
12203 for ac_header in unistd.h vfork.h
12205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206 echo "$as_me:12206: checking for $ac_header" >&5
12207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214 #include <$ac_header>
12215 _ACEOF
12216 if { (eval echo "$as_me:12216: \"$ac_cpp conftest.$ac_ext\"") >&5
12217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12218 ac_status=$?
12219 egrep -v '^ *\+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:12222: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null; then
12224 if test -s conftest.err; then
12225 ac_cpp_err=$ac_c_preproc_warn_flag
12226 else
12227 ac_cpp_err=
12229 else
12230 ac_cpp_err=yes
12232 if test -z "$ac_cpp_err"; then
12233 eval "$as_ac_Header=yes"
12234 else
12235 echo "$as_me: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12237 eval "$as_ac_Header=no"
12239 rm -f conftest.err conftest.$ac_ext
12241 echo "$as_me:12241: result: `eval echo '${'$as_ac_Header'}'`" >&5
12242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12244 cat >>confdefs.h <<EOF
12245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249 done
12251 for ac_func in fork vfork
12253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12254 echo "$as_me:12254: checking for $ac_func" >&5
12255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12256 if eval "test \"\${$as_ac_var+set}\" = set"; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 cat >conftest.$ac_ext <<_ACEOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12262 /* System header to define __stub macros and hopefully few prototypes,
12263 which can conflict with char $ac_func (); below. */
12264 #include <assert.h>
12265 /* Override any gcc2 internal prototype to avoid an error. */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12271 char $ac_func ();
12272 char (*f) ();
12275 main ()
12277 /* The GNU C library defines this for functions which it implements
12278 to always fail with ENOSYS. Some functions are actually named
12279 something starting with __ and the normal name is an alias. */
12280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12281 choke me
12282 #else
12283 f = $ac_func;
12284 #endif
12287 return 0;
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:12291: \"$ac_link\"") >&5
12292 (eval $ac_link) 2>&5
12293 ac_status=$?
12294 echo "$as_me:12294: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:12297: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:12300: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 eval "$as_ac_var=yes"
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12306 eval "$as_ac_var=no"
12308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12310 echo "$as_me:12310: result: `eval echo '${'$as_ac_var'}'`" >&5
12311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12312 if test `eval echo '${'$as_ac_var'}'` = yes; then
12313 cat >>confdefs.h <<EOF
12314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12318 done
12320 ac_cv_func_fork_works=$ac_cv_func_fork
12321 if test "x$ac_cv_func_fork" = xyes; then
12322 echo "$as_me:12322: checking for working fork" >&5
12323 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12324 if test "${ac_cv_func_fork_works+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327 if test "$cross_compiling" = yes; then
12328 ac_cv_func_fork_works=cross
12329 else
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* By Rüdiger Kuhlmann. */
12332 #include <sys/types.h>
12333 #if HAVE_UNISTD_H
12334 # include <unistd.h>
12335 #endif
12336 /* Some systems only have a dummy stub for fork() */
12337 int main ()
12339 if (fork() < 0)
12340 exit (1);
12341 exit (0);
12343 _ACEOF
12344 rm -f conftest$ac_exeext
12345 if { (eval echo "$as_me:12345: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>&5
12347 ac_status=$?
12348 echo "$as_me:12348: \$? = $ac_status" >&5
12349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12350 { (eval echo "$as_me:12350: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_func_fork_works=yes
12356 else
12357 echo "$as_me: program exited with status $ac_status" >&5
12358 echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 ac_cv_func_fork_works=no
12362 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12365 echo "$as_me:12365: result: $ac_cv_func_fork_works" >&5
12366 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12369 if test "x$ac_cv_func_fork_works" = xcross; then
12370 case $host in
12371 *-*-amigaos* | *-*-msdosdjgpp*)
12372 # Override, as these systems have only a dummy fork() stub
12373 ac_cv_func_fork_works=no
12376 ac_cv_func_fork_works=yes
12378 esac
12379 { echo "$as_me:12379: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12380 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12382 ac_cv_func_vfork_works=$ac_cv_func_vfork
12383 if test "x$ac_cv_func_vfork" = xyes; then
12384 echo "$as_me:12384: checking for working vfork" >&5
12385 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12386 if test "${ac_cv_func_vfork_works+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 if test "$cross_compiling" = yes; then
12390 ac_cv_func_vfork_works=cross
12391 else
12392 cat >conftest.$ac_ext <<_ACEOF
12393 #line 12393 "configure"
12394 #include "confdefs.h"
12395 /* Thanks to Paul Eggert for this test. */
12396 #include <stdio.h>
12397 #include <sys/types.h>
12398 #include <sys/stat.h>
12399 #if HAVE_UNISTD_H
12400 # include <unistd.h>
12401 #endif
12402 #if HAVE_VFORK_H
12403 # include <vfork.h>
12404 #endif
12405 /* On some sparc systems, changes by the child to local and incoming
12406 argument registers are propagated back to the parent. The compiler
12407 is told about this with #include <vfork.h>, but some compilers
12408 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12409 static variable whose address is put into a register that is
12410 clobbered by the vfork. */
12411 static
12412 #ifdef __cplusplus
12413 sparc_address_test (int arg)
12414 # else
12415 sparc_address_test (arg) int arg;
12416 #endif
12418 static pid_t child;
12419 if (!child) {
12420 child = vfork ();
12421 if (child < 0) {
12422 perror ("vfork");
12423 _exit(2);
12425 if (!child) {
12426 arg = getpid();
12427 write(-1, "", 0);
12428 _exit (arg);
12434 main ()
12436 pid_t parent = getpid ();
12437 pid_t child;
12439 sparc_address_test ();
12441 child = vfork ();
12443 if (child == 0) {
12444 /* Here is another test for sparc vfork register problems. This
12445 test uses lots of local variables, at least as many local
12446 variables as main has allocated so far including compiler
12447 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12448 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12449 reuse the register of parent for one of the local variables,
12450 since it will think that parent can't possibly be used any more
12451 in this routine. Assigning to the local variable will thus
12452 munge parent in the parent process. */
12453 pid_t
12454 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12455 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12456 /* Convince the compiler that p..p7 are live; otherwise, it might
12457 use the same hardware register for all 8 local variables. */
12458 if (p != p1 || p != p2 || p != p3 || p != p4
12459 || p != p5 || p != p6 || p != p7)
12460 _exit(1);
12462 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12463 from child file descriptors. If the child closes a descriptor
12464 before it execs or exits, this munges the parent's descriptor
12465 as well. Test for this by closing stdout in the child. */
12466 _exit(close(fileno(stdout)) != 0);
12467 } else {
12468 int status;
12469 struct stat st;
12471 while (wait(&status) != child)
12473 exit(
12474 /* Was there some problem with vforking? */
12475 child < 0
12477 /* Did the child fail? (This shouldn't happen.) */
12478 || status
12480 /* Did the vfork/compiler bug occur? */
12481 || parent != getpid()
12483 /* Did the file descriptor bug occur? */
12484 || fstat(fileno(stdout), &st) != 0
12488 _ACEOF
12489 rm -f conftest$ac_exeext
12490 if { (eval echo "$as_me:12490: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>&5
12492 ac_status=$?
12493 echo "$as_me:12493: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12495 { (eval echo "$as_me:12495: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 echo "$as_me:12498: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_func_vfork_works=yes
12501 else
12502 echo "$as_me: program exited with status $ac_status" >&5
12503 echo "$as_me: failed program was:" >&5
12504 cat conftest.$ac_ext >&5
12505 ac_cv_func_vfork_works=no
12507 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12510 echo "$as_me:12510: result: $ac_cv_func_vfork_works" >&5
12511 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12514 if test "x$ac_cv_func_fork_works" = xcross; then
12515 ac_cv_func_vfork_works=ac_cv_func_vfork
12516 { echo "$as_me:12516: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12517 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12520 if test "x$ac_cv_func_vfork_works" = xyes; then
12522 cat >>confdefs.h <<\EOF
12523 #define HAVE_WORKING_VFORK 1
12526 else
12528 cat >>confdefs.h <<\EOF
12529 #define vfork fork
12533 if test "x$ac_cv_func_fork_works" = xyes; then
12535 cat >>confdefs.h <<\EOF
12536 #define HAVE_WORKING_FORK 1
12541 # Fixme: This should be replaced when we have autoconf 2.14.
12542 echo "$as_me:12542: checking for size_t" >&5
12543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12544 if test "${ac_cv_type_size_t+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547 cat >conftest.$ac_ext <<_ACEOF
12548 #line 12548 "configure"
12549 #include "confdefs.h"
12550 $ac_includes_default
12552 main ()
12554 if ((size_t *) 0)
12555 return 0;
12556 if (sizeof (size_t))
12557 return 0;
12559 return 0;
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:12563: \"$ac_compile\"") >&5
12564 (eval $ac_compile) 2>&5
12565 ac_status=$?
12566 echo "$as_me:12566: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:12569: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:12572: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_type_size_t=yes
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 cat conftest.$ac_ext >&5
12578 ac_cv_type_size_t=no
12580 rm -f conftest.$ac_objext conftest.$ac_ext
12582 echo "$as_me:12582: result: $ac_cv_type_size_t" >&5
12583 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12584 if test $ac_cv_type_size_t = yes; then
12586 else
12588 cat >>confdefs.h <<EOF
12589 #define size_t unsigned
12594 # Set up the CFLAGS for real compilation, so we can substitute it.
12595 CFLAGS="$REAL_CFLAGS"
12596 CPPFLAGS="$REAL_CPPFLAGS"
12598 #### Find out which version of Emacs this is.
12599 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12600 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12601 if test x"${version}" = x; then
12602 { { echo "$as_me:12602: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12603 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12604 { (exit 1); exit 1; }; }
12607 ### Specify what sort of things we'll be editing into Makefile and config.h.
12608 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12610 cat >>confdefs.h <<EOF
12611 #define EMACS_CONFIGURATION "${canonical}"
12614 cat >>confdefs.h <<EOF
12615 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12618 cat >>confdefs.h <<EOF
12619 #define config_machfile "${machfile}"
12622 cat >>confdefs.h <<EOF
12623 #define config_opsysfile "${opsysfile}"
12626 cat >>confdefs.h <<EOF
12627 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12630 cat >>confdefs.h <<EOF
12631 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12634 cat >>confdefs.h <<EOF
12635 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12638 cat >>confdefs.h <<EOF
12639 #define UNEXEC_SRC ${UNEXEC_SRC}
12642 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12644 cat >>confdefs.h <<\EOF
12645 #define HAVE_X_WINDOWS 1
12649 if test "${USE_X_TOOLKIT}" != "none" ; then
12651 cat >>confdefs.h <<\EOF
12652 #define USE_X_TOOLKIT 1
12656 if test "${HAVE_X11}" = "yes" ; then
12658 cat >>confdefs.h <<\EOF
12659 #define HAVE_X11 1
12663 if test "${HAVE_XFREE386}" = "yes" ; then
12665 cat >>confdefs.h <<\EOF
12666 #define HAVE_XFREE386 1
12670 if test "${HAVE_MENUS}" = "yes" ; then
12672 cat >>confdefs.h <<\EOF
12673 #define HAVE_MENUS 1
12677 if test "${GNU_MALLOC}" = "yes" ; then
12679 cat >>confdefs.h <<\EOF
12680 #define GNU_MALLOC 1
12684 if test "${REL_ALLOC}" = "yes" ; then
12686 cat >>confdefs.h <<\EOF
12687 #define REL_ALLOC 1
12692 for ac_header in nlist.h
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 echo "$as_me:12695: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 cat >conftest.$ac_ext <<_ACEOF
12701 #line 12701 "configure"
12702 #include "confdefs.h"
12703 #include <$ac_header>
12704 _ACEOF
12705 if { (eval echo "$as_me:12705: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 ac_status=$?
12708 egrep -v '^ *\+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_c_preproc_warn_flag
12715 else
12716 ac_cpp_err=
12718 else
12719 ac_cpp_err=yes
12721 if test -z "$ac_cpp_err"; then
12722 eval "$as_ac_Header=yes"
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 eval "$as_ac_Header=no"
12728 rm -f conftest.err conftest.$ac_ext
12730 echo "$as_me:12730: result: `eval echo '${'$as_ac_Header'}'`" >&5
12731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12733 cat >>confdefs.h <<EOF
12734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12737 cat >>confdefs.h <<\EOF
12738 #define NLIST_STRUCT 1
12742 done
12744 #### Report on what we decided to do.
12745 echo "
12746 Configured for \`${canonical}'.
12748 Where should the build process find the source code? ${srcdir}
12749 What operating system and machine description files should Emacs use?
12750 \`${opsysfile}' and \`${machfile}'
12751 What compiler should emacs be built with? ${CC} ${CFLAGS}
12752 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12753 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12754 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12755 What window system should Emacs use? ${window_system}
12756 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12758 if test -n "${x_includes}"; then
12759 echo " Where do we find X Windows header files? ${x_includes}"
12760 else
12761 echo " Where do we find X Windows header files? Standard dirs"
12763 if test -n "${x_libraries}"; then
12764 echo " Where do we find X Windows libraries? ${x_libraries}"
12765 else
12766 echo " Where do we find X Windows libraries? Standard dirs"
12769 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12770 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12771 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12772 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12773 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12774 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12775 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12776 echo
12778 # Remove any trailing slashes in these variables.
12779 test "${prefix}" != NONE &&
12780 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12781 test "${exec_prefix}" != NONE &&
12782 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12784 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12785 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12786 ## from Makefile.c can correctly provide the arg `-traditional' to the
12787 ## C preprocessor.
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792 yes..yes
12793 _ACEOF
12794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12795 egrep "yes..yes" >/dev/null 2>&1; then
12796 CPP_NEED_TRADITIONAL=no
12797 else
12798 CPP_NEED_TRADITIONAL=yes
12800 rm -f conftest*
12802 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"
12803 ac_config_commands="$ac_config_commands default"
12804 cat >confcache <<\_ACEOF
12805 # This file is a shell script that caches the results of configure
12806 # tests run on this system so they can be shared between configure
12807 # scripts and configure runs, see configure's option --config-cache.
12808 # It is not useful on other systems. If it contains results you don't
12809 # want to keep, you may remove or edit it.
12811 # config.status only pays attention to the cache file if you give it
12812 # the --recheck option to rerun configure.
12814 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12816 # following values.
12818 _ACEOF
12820 # The following way of writing the cache mishandles newlines in values,
12821 # but we know of no workaround that is simple, portable, and efficient.
12822 # So, don't put newlines in cache variables' values.
12823 # Ultrix sh set writes to stderr and can't be redirected directly,
12824 # and sets the high bit in the cache file unless we assign to the vars.
12826 (set) 2>&1 |
12827 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12828 *ac_space=\ *)
12829 # `set' does not quote correctly, so add quotes (double-quote
12830 # substitution turns \\\\ into \\, and sed turns \\ into \).
12831 sed -n \
12832 "s/'/'\\\\''/g;
12833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12836 # `set' quotes correctly as required by POSIX, so do not add quotes.
12837 sed -n \
12838 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12840 esac;
12842 sed '
12843 t clear
12844 : clear
12845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12846 t end
12847 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12848 : end' >>confcache
12849 if cmp -s $cache_file confcache; then :; else
12850 if test -w $cache_file; then
12851 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12852 cat confcache >$cache_file
12853 else
12854 echo "not updating unwritable cache $cache_file"
12857 rm -f confcache
12859 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12860 # Let make expand exec_prefix.
12861 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12865 # trailing colons and then remove the whole line if VPATH becomes empty
12866 # (actually we leave an empty line to preserve line numbers).
12867 if test "x$srcdir" = x.; then
12868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12869 s/:*\$(srcdir):*/:/;
12870 s/:*\${srcdir}:*/:/;
12871 s/:*@srcdir@:*/:/;
12872 s/^\([^=]*=[ ]*\):*/\1/;
12873 s/:*$//;
12874 s/^[^=]*=[ ]*$//;
12878 DEFS=-DHAVE_CONFIG_H
12880 : ${CONFIG_STATUS=./config.status}
12881 ac_clean_files_save=$ac_clean_files
12882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12883 { echo "$as_me:12883: creating $CONFIG_STATUS" >&5
12884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12885 cat >$CONFIG_STATUS <<_ACEOF
12886 #! $SHELL
12887 # Generated automatically by configure.
12888 # Run this file to recreate the current configuration.
12889 # Compiler output produced by configure, useful for debugging
12890 # configure, is in config.log if it exists.
12892 debug=false
12893 SHELL=\${CONFIG_SHELL-$SHELL}
12894 ac_cs_invocation="\$0 \$@"
12896 _ACEOF
12898 cat >>$CONFIG_STATUS <<\_ACEOF
12899 # Be Bourne compatible
12900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12901 emulate sh
12902 NULLCMD=:
12903 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12904 set -o posix
12907 # Name of the executable.
12908 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12910 if expr a : '\(a\)' >/dev/null 2>&1; then
12911 as_expr=expr
12912 else
12913 as_expr=false
12916 rm -f conf$$ conf$$.exe conf$$.file
12917 echo >conf$$.file
12918 if ln -s conf$$.file conf$$ 2>/dev/null; then
12919 # We could just check for DJGPP; but this test a) works b) is more generic
12920 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12921 if test -f conf$$.exe; then
12922 # Don't use ln at all; we don't have any links
12923 as_ln_s='cp -p'
12924 else
12925 as_ln_s='ln -s'
12927 elif ln conf$$.file conf$$ 2>/dev/null; then
12928 as_ln_s=ln
12929 else
12930 as_ln_s='cp -p'
12932 rm -f conf$$ conf$$.exe conf$$.file
12934 as_executable_p="test -f"
12936 # Support unset when possible.
12937 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12938 as_unset=unset
12939 else
12940 as_unset=false
12943 # NLS nuisances.
12944 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12945 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12946 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12947 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12948 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12949 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12950 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12951 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12953 # IFS
12954 # We need space, tab and new line, in precisely that order.
12955 as_nl='
12957 IFS=" $as_nl"
12959 # CDPATH.
12960 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12962 exec 6>&1
12964 _ACEOF
12966 # Files that config.status was made for.
12967 if test -n "$ac_config_files"; then
12968 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12971 if test -n "$ac_config_headers"; then
12972 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12975 if test -n "$ac_config_links"; then
12976 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12979 if test -n "$ac_config_commands"; then
12980 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12983 cat >>$CONFIG_STATUS <<\EOF
12985 ac_cs_usage="\
12986 \`$as_me' instantiates files from templates according to the
12987 current configuration.
12989 Usage: $0 [OPTIONS] [FILE]...
12991 -h, --help print this help, then exit
12992 -V, --version print version number, then exit
12993 -d, --debug don't remove temporary files
12994 --recheck update $as_me by reconfiguring in the same conditions
12995 --file=FILE[:TEMPLATE]
12996 instantiate the configuration file FILE
12997 --header=FILE[:TEMPLATE]
12998 instantiate the configuration header FILE
13000 Configuration files:
13001 $config_files
13003 Configuration headers:
13004 $config_headers
13006 Configuration commands:
13007 $config_commands
13009 Report bugs to <bug-autoconf@gnu.org>."
13012 cat >>$CONFIG_STATUS <<EOF
13013 ac_cs_version="\\
13014 config.status
13015 configured by $0, generated by GNU Autoconf 2.52,
13016 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13018 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13019 Free Software Foundation, Inc.
13020 This config.status script is free software; the Free Software Foundation
13021 gives unlimited permission to copy, distribute and modify it."
13022 srcdir=$srcdir
13023 INSTALL="$INSTALL"
13026 cat >>$CONFIG_STATUS <<\EOF
13027 # If no file are specified by the user, then we need to provide default
13028 # value. By we need to know if files were specified by the user.
13029 ac_need_defaults=:
13030 while test $# != 0
13032 case $1 in
13033 --*=*)
13034 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13035 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13036 shift
13037 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13038 shift
13040 -*);;
13041 *) # This is not an option, so the user has probably given explicit
13042 # arguments.
13043 ac_need_defaults=false;;
13044 esac
13046 case $1 in
13047 # Handling of the options.
13049 cat >>$CONFIG_STATUS <<EOF
13050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13051 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13052 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13054 cat >>$CONFIG_STATUS <<\EOF
13055 --version | --vers* | -V )
13056 echo "$ac_cs_version"; exit 0 ;;
13057 --he | --h)
13058 # Conflict between --help and --header
13059 { { echo "$as_me:13059: error: ambiguous option: $1
13060 Try \`$0 --help' for more information." >&5
13061 echo "$as_me: error: ambiguous option: $1
13062 Try \`$0 --help' for more information." >&2;}
13063 { (exit 1); exit 1; }; };;
13064 --help | --hel | -h )
13065 echo "$ac_cs_usage"; exit 0 ;;
13066 --debug | --d* | -d )
13067 debug=: ;;
13068 --file | --fil | --fi | --f )
13069 shift
13070 CONFIG_FILES="$CONFIG_FILES $1"
13071 ac_need_defaults=false;;
13072 --header | --heade | --head | --hea )
13073 shift
13074 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13075 ac_need_defaults=false;;
13077 # This is an error.
13078 -*) { { echo "$as_me:13078: error: unrecognized option: $1
13079 Try \`$0 --help' for more information." >&5
13080 echo "$as_me: error: unrecognized option: $1
13081 Try \`$0 --help' for more information." >&2;}
13082 { (exit 1); exit 1; }; } ;;
13084 *) ac_config_targets="$ac_config_targets $1" ;;
13086 esac
13087 shift
13088 done
13090 exec 5>>config.log
13091 cat >&5 << _ACEOF
13093 ## ----------------------- ##
13094 ## Running config.status. ##
13095 ## ----------------------- ##
13097 This file was extended by $as_me 2.52, executed with
13098 CONFIG_FILES = $CONFIG_FILES
13099 CONFIG_HEADERS = $CONFIG_HEADERS
13100 CONFIG_LINKS = $CONFIG_LINKS
13101 CONFIG_COMMANDS = $CONFIG_COMMANDS
13102 > $ac_cs_invocation
13103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13105 _ACEOF
13108 cat >>$CONFIG_STATUS <<EOF
13110 # INIT-COMMANDS section.
13113 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13117 cat >>$CONFIG_STATUS <<\EOF
13118 for ac_config_target in $ac_config_targets
13120 case "$ac_config_target" in
13121 # Handling of arguments.
13122 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13123 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13124 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
13125 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13126 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
13127 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13128 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
13129 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
13130 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
13131 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
13132 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13133 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13134 *) { { echo "$as_me:13134: error: invalid argument: $ac_config_target" >&5
13135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13136 { (exit 1); exit 1; }; };;
13137 esac
13138 done
13140 # If the user did not use the arguments to specify the items to instantiate,
13141 # then the envvar interface is used. Set only those that are not.
13142 # We use the long form for the default assignment because of an extremely
13143 # bizarre bug on SunOS 4.1.3.
13144 if $ac_need_defaults; then
13145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13150 # Create a temporary directory, and hook for its removal unless debugging.
13151 $debug ||
13153 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13154 trap '{ (exit 1); exit 1; }' 1 2 13 15
13157 # Create a (secure) tmp directory for tmp files.
13158 : ${TMPDIR=/tmp}
13160 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13161 test -n "$tmp" && test -d "$tmp"
13162 } ||
13164 tmp=$TMPDIR/cs$$-$RANDOM
13165 (umask 077 && mkdir $tmp)
13166 } ||
13168 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13169 { (exit 1); exit 1; }
13174 cat >>$CONFIG_STATUS <<EOF
13177 # CONFIG_FILES section.
13180 # No need to generate the scripts if there are no CONFIG_FILES.
13181 # This happens for instance when ./config.status config.h
13182 if test -n "\$CONFIG_FILES"; then
13183 # Protect against being on the right side of a sed subst in config.status.
13184 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13185 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13186 s,@SHELL@,$SHELL,;t t
13187 s,@exec_prefix@,$exec_prefix,;t t
13188 s,@prefix@,$prefix,;t t
13189 s,@program_transform_name@,$program_transform_name,;t t
13190 s,@bindir@,$bindir,;t t
13191 s,@sbindir@,$sbindir,;t t
13192 s,@libexecdir@,$libexecdir,;t t
13193 s,@datadir@,$datadir,;t t
13194 s,@sysconfdir@,$sysconfdir,;t t
13195 s,@sharedstatedir@,$sharedstatedir,;t t
13196 s,@localstatedir@,$localstatedir,;t t
13197 s,@libdir@,$libdir,;t t
13198 s,@includedir@,$includedir,;t t
13199 s,@oldincludedir@,$oldincludedir,;t t
13200 s,@infodir@,$infodir,;t t
13201 s,@mandir@,$mandir,;t t
13202 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13203 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13204 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13205 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13206 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13207 s,@build_alias@,$build_alias,;t t
13208 s,@host_alias@,$host_alias,;t t
13209 s,@target_alias@,$target_alias,;t t
13210 s,@ECHO_C@,$ECHO_C,;t t
13211 s,@ECHO_N@,$ECHO_N,;t t
13212 s,@ECHO_T@,$ECHO_T,;t t
13213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13214 s,@DEFS@,$DEFS,;t t
13215 s,@LIBS@,$LIBS,;t t
13216 s,@build@,$build,;t t
13217 s,@build_cpu@,$build_cpu,;t t
13218 s,@build_vendor@,$build_vendor,;t t
13219 s,@build_os@,$build_os,;t t
13220 s,@host@,$host,;t t
13221 s,@host_cpu@,$host_cpu,;t t
13222 s,@host_vendor@,$host_vendor,;t t
13223 s,@host_os@,$host_os,;t t
13224 s,@CC@,$CC,;t t
13225 s,@CFLAGS@,$CFLAGS,;t t
13226 s,@LDFLAGS@,$LDFLAGS,;t t
13227 s,@CPPFLAGS@,$CPPFLAGS,;t t
13228 s,@ac_ct_CC@,$ac_ct_CC,;t t
13229 s,@EXEEXT@,$EXEEXT,;t t
13230 s,@OBJEXT@,$OBJEXT,;t t
13231 s,@LN_S@,$LN_S,;t t
13232 s,@CPP@,$CPP,;t t
13233 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13234 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13235 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13236 s,@YACC@,$YACC,;t t
13237 s,@RANLIB@,$RANLIB,;t t
13238 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13239 s,@LIBSOUND@,$LIBSOUND,;t t
13240 s,@SET_MAKE@,$SET_MAKE,;t t
13241 s,@ALLOCA@,$ALLOCA,;t t
13242 s,@liblockfile@,$liblockfile,;t t
13243 s,@LIBOBJS@,$LIBOBJS,;t t
13244 s,@NEED_SETGID@,$NEED_SETGID,;t t
13245 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13246 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13247 s,@version@,$version,;t t
13248 s,@configuration@,$configuration,;t t
13249 s,@canonical@,$canonical,;t t
13250 s,@srcdir@,$srcdir,;t t
13251 s,@lispdir@,$lispdir,;t t
13252 s,@locallisppath@,$locallisppath,;t t
13253 s,@lisppath@,$lisppath,;t t
13254 s,@x_default_search_path@,$x_default_search_path,;t t
13255 s,@etcdir@,$etcdir,;t t
13256 s,@archlibdir@,$archlibdir,;t t
13257 s,@docdir@,$docdir,;t t
13258 s,@bitmapdir@,$bitmapdir,;t t
13259 s,@gamedir@,$gamedir,;t t
13260 s,@gameuser@,$gameuser,;t t
13261 s,@c_switch_system@,$c_switch_system,;t t
13262 s,@c_switch_machine@,$c_switch_machine,;t t
13263 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13264 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13265 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13266 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13267 s,@machfile@,$machfile,;t t
13268 s,@opsysfile@,$opsysfile,;t t
13269 CEOF
13273 cat >>$CONFIG_STATUS <<\EOF
13274 # Split the substitutions into bite-sized pieces for seds with
13275 # small command number limits, like on Digital OSF/1 and HP-UX.
13276 ac_max_sed_lines=48
13277 ac_sed_frag=1 # Number of current file.
13278 ac_beg=1 # First line for current file.
13279 ac_end=$ac_max_sed_lines # Line after last line for current file.
13280 ac_more_lines=:
13281 ac_sed_cmds=
13282 while $ac_more_lines; do
13283 if test $ac_beg -gt 1; then
13284 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13285 else
13286 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13288 if test ! -s $tmp/subs.frag; then
13289 ac_more_lines=false
13290 else
13291 # The purpose of the label and of the branching condition is to
13292 # speed up the sed processing (if there are no `@' at all, there
13293 # is no need to browse any of the substitutions).
13294 # These are the two extra sed commands mentioned above.
13295 (echo ':t
13296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13297 if test -z "$ac_sed_cmds"; then
13298 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13299 else
13300 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13302 ac_sed_frag=`expr $ac_sed_frag + 1`
13303 ac_beg=$ac_end
13304 ac_end=`expr $ac_end + $ac_max_sed_lines`
13306 done
13307 if test -z "$ac_sed_cmds"; then
13308 ac_sed_cmds=cat
13310 fi # test -n "$CONFIG_FILES"
13313 cat >>$CONFIG_STATUS <<\EOF
13314 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13316 case $ac_file in
13317 - | *:- | *:-:* ) # input from stdin
13318 cat >$tmp/stdin
13319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13323 * ) ac_file_in=$ac_file.in ;;
13324 esac
13326 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13327 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13328 X"$ac_file" : 'X\(//\)[^/]' \| \
13329 X"$ac_file" : 'X\(//\)$' \| \
13330 X"$ac_file" : 'X\(/\)' \| \
13331 . : '\(.\)' 2>/dev/null ||
13332 echo X"$ac_file" |
13333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13335 /^X\(\/\/\)$/{ s//\1/; q; }
13336 /^X\(\/\).*/{ s//\1/; q; }
13337 s/.*/./; q'`
13338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13339 { case "$ac_dir" in
13340 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13341 *) as_incr_dir=.;;
13342 esac
13343 as_dummy="$ac_dir"
13344 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13345 case $as_mkdir_dir in
13346 # Skip DOS drivespec
13347 ?:) as_incr_dir=$as_mkdir_dir ;;
13349 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13350 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13352 esac
13353 done; }
13355 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13356 # A "../" for each directory in $ac_dir_suffix.
13357 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13358 else
13359 ac_dir_suffix= ac_dots=
13362 case $srcdir in
13363 .) ac_srcdir=.
13364 if test -z "$ac_dots"; then
13365 ac_top_srcdir=.
13366 else
13367 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13368 fi ;;
13369 [\\/]* | ?:[\\/]* )
13370 ac_srcdir=$srcdir$ac_dir_suffix;
13371 ac_top_srcdir=$srcdir ;;
13372 *) # Relative path.
13373 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13374 ac_top_srcdir=$ac_dots$srcdir ;;
13375 esac
13377 case $INSTALL in
13378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13379 *) ac_INSTALL=$ac_dots$INSTALL ;;
13380 esac
13382 if test x"$ac_file" != x-; then
13383 { echo "$as_me:13383: creating $ac_file" >&5
13384 echo "$as_me: creating $ac_file" >&6;}
13385 rm -f "$ac_file"
13387 # Let's still pretend it is `configure' which instantiates (i.e., don't
13388 # use $as_me), people would be surprised to read:
13389 # /* config.h. Generated automatically by config.status. */
13390 configure_input="Generated automatically from `echo $ac_file_in |
13391 sed 's,.*/,,'` by configure."
13393 # First look for the input files in the build tree, otherwise in the
13394 # src tree.
13395 ac_file_inputs=`IFS=:
13396 for f in $ac_file_in; do
13397 case $f in
13398 -) echo $tmp/stdin ;;
13399 [\\/$]*)
13400 # Absolute (can't be DOS-style, as IFS=:)
13401 test -f "$f" || { { echo "$as_me:13401: error: cannot find input file: $f" >&5
13402 echo "$as_me: error: cannot find input file: $f" >&2;}
13403 { (exit 1); exit 1; }; }
13404 echo $f;;
13405 *) # Relative
13406 if test -f "$f"; then
13407 # Build tree
13408 echo $f
13409 elif test -f "$srcdir/$f"; then
13410 # Source tree
13411 echo $srcdir/$f
13412 else
13413 # /dev/null tree
13414 { { echo "$as_me:13414: error: cannot find input file: $f" >&5
13415 echo "$as_me: error: cannot find input file: $f" >&2;}
13416 { (exit 1); exit 1; }; }
13417 fi;;
13418 esac
13419 done` || { (exit 1); exit 1; }
13421 cat >>$CONFIG_STATUS <<EOF
13422 sed "$ac_vpsub
13423 $extrasub
13425 cat >>$CONFIG_STATUS <<\EOF
13427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13428 s,@configure_input@,$configure_input,;t t
13429 s,@srcdir@,$ac_srcdir,;t t
13430 s,@top_srcdir@,$ac_top_srcdir,;t t
13431 s,@INSTALL@,$ac_INSTALL,;t t
13432 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13433 rm -f $tmp/stdin
13434 if test x"$ac_file" != x-; then
13435 mv $tmp/out $ac_file
13436 else
13437 cat $tmp/out
13438 rm -f $tmp/out
13441 done
13443 cat >>$CONFIG_STATUS <<\EOF
13446 # CONFIG_HEADER section.
13449 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13450 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13452 # ac_d sets the value in "#define NAME VALUE" lines.
13453 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13454 ac_dB='[ ].*$,\1#\2'
13455 ac_dC=' '
13456 ac_dD=',;t'
13457 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13458 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13459 ac_uB='$,\1#\2define\3'
13460 ac_uC=' '
13461 ac_uD=',;t'
13463 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13464 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13465 case $ac_file in
13466 - | *:- | *:-:* ) # input from stdin
13467 cat >$tmp/stdin
13468 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13470 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13471 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13472 * ) ac_file_in=$ac_file.in ;;
13473 esac
13475 test x"$ac_file" != x- && { echo "$as_me:13475: creating $ac_file" >&5
13476 echo "$as_me: creating $ac_file" >&6;}
13478 # First look for the input files in the build tree, otherwise in the
13479 # src tree.
13480 ac_file_inputs=`IFS=:
13481 for f in $ac_file_in; do
13482 case $f in
13483 -) echo $tmp/stdin ;;
13484 [\\/$]*)
13485 # Absolute (can't be DOS-style, as IFS=:)
13486 test -f "$f" || { { echo "$as_me:13486: error: cannot find input file: $f" >&5
13487 echo "$as_me: error: cannot find input file: $f" >&2;}
13488 { (exit 1); exit 1; }; }
13489 echo $f;;
13490 *) # Relative
13491 if test -f "$f"; then
13492 # Build tree
13493 echo $f
13494 elif test -f "$srcdir/$f"; then
13495 # Source tree
13496 echo $srcdir/$f
13497 else
13498 # /dev/null tree
13499 { { echo "$as_me:13499: error: cannot find input file: $f" >&5
13500 echo "$as_me: error: cannot find input file: $f" >&2;}
13501 { (exit 1); exit 1; }; }
13502 fi;;
13503 esac
13504 done` || { (exit 1); exit 1; }
13505 # Remove the trailing spaces.
13506 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13510 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13511 # `conftest.undefs', that substitutes the proper values into
13512 # config.h.in to produce config.h. The first handles `#define'
13513 # templates, and the second `#undef' templates.
13514 # And first: Protect against being on the right side of a sed subst in
13515 # config.status. Protect against being in an unquoted here document
13516 # in config.status.
13517 rm -f conftest.defines conftest.undefs
13518 # Using a here document instead of a string reduces the quoting nightmare.
13519 # Putting comments in sed scripts is not portable.
13521 # `end' is used to avoid that the second main sed command (meant for
13522 # 0-ary CPP macros) applies to n-ary macro definitions.
13523 # See the Autoconf documentation for `clear'.
13524 cat >confdef2sed.sed <<\EOF
13525 s/[\\&,]/\\&/g
13526 s,[\\$`],\\&,g
13527 t clear
13528 : clear
13529 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13530 t end
13531 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13532 : end
13534 # If some macros were called several times there might be several times
13535 # the same #defines, which is useless. Nevertheless, we may not want to
13536 # sort them, since we want the *last* AC-DEFINE to be honored.
13537 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13538 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13539 rm -f confdef2sed.sed
13541 # This sed command replaces #undef with comments. This is necessary, for
13542 # example, in the case of _POSIX_SOURCE, which is predefined and required
13543 # on some systems where configure will not decide to define it.
13544 cat >>conftest.undefs <<\EOF
13545 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13548 # Break up conftest.defines because some shells have a limit on the size
13549 # of here documents, and old seds have small limits too (100 cmds).
13550 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13551 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13552 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13553 echo ' :' >>$CONFIG_STATUS
13554 rm -f conftest.tail
13555 while grep . conftest.defines >/dev/null
13557 # Write a limited-size here document to $tmp/defines.sed.
13558 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13559 # Speed up: don't consider the non `#define' lines.
13560 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13561 # Work around the forget-to-reset-the-flag bug.
13562 echo 't clr' >>$CONFIG_STATUS
13563 echo ': clr' >>$CONFIG_STATUS
13564 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13565 echo 'CEOF
13566 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13567 rm -f $tmp/in
13568 mv $tmp/out $tmp/in
13569 ' >>$CONFIG_STATUS
13570 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13571 rm -f conftest.defines
13572 mv conftest.tail conftest.defines
13573 done
13574 rm -f conftest.defines
13575 echo ' fi # egrep' >>$CONFIG_STATUS
13576 echo >>$CONFIG_STATUS
13578 # Break up conftest.undefs because some shells have a limit on the size
13579 # of here documents, and old seds have small limits too (100 cmds).
13580 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13581 rm -f conftest.tail
13582 while grep . conftest.undefs >/dev/null
13584 # Write a limited-size here document to $tmp/undefs.sed.
13585 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13586 # Speed up: don't consider the non `#undef'
13587 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13588 # Work around the forget-to-reset-the-flag bug.
13589 echo 't clr' >>$CONFIG_STATUS
13590 echo ': clr' >>$CONFIG_STATUS
13591 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13592 echo 'CEOF
13593 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13594 rm -f $tmp/in
13595 mv $tmp/out $tmp/in
13596 ' >>$CONFIG_STATUS
13597 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13598 rm -f conftest.undefs
13599 mv conftest.tail conftest.undefs
13600 done
13601 rm -f conftest.undefs
13603 cat >>$CONFIG_STATUS <<\EOF
13604 # Let's still pretend it is `configure' which instantiates (i.e., don't
13605 # use $as_me), people would be surprised to read:
13606 # /* config.h. Generated automatically by config.status. */
13607 if test x"$ac_file" = x-; then
13608 echo "/* Generated automatically by configure. */" >$tmp/config.h
13609 else
13610 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13612 cat $tmp/in >>$tmp/config.h
13613 rm -f $tmp/in
13614 if test x"$ac_file" != x-; then
13615 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13616 { echo "$as_me:13616: $ac_file is unchanged" >&5
13617 echo "$as_me: $ac_file is unchanged" >&6;}
13618 else
13619 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13620 X"$ac_file" : 'X\(//\)[^/]' \| \
13621 X"$ac_file" : 'X\(//\)$' \| \
13622 X"$ac_file" : 'X\(/\)' \| \
13623 . : '\(.\)' 2>/dev/null ||
13624 echo X"$ac_file" |
13625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13627 /^X\(\/\/\)$/{ s//\1/; q; }
13628 /^X\(\/\).*/{ s//\1/; q; }
13629 s/.*/./; q'`
13630 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13631 { case "$ac_dir" in
13632 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13633 *) as_incr_dir=.;;
13634 esac
13635 as_dummy="$ac_dir"
13636 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13637 case $as_mkdir_dir in
13638 # Skip DOS drivespec
13639 ?:) as_incr_dir=$as_mkdir_dir ;;
13641 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13642 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13644 esac
13645 done; }
13648 rm -f $ac_file
13649 mv $tmp/config.h $ac_file
13651 else
13652 cat $tmp/config.h
13653 rm -f $tmp/config.h
13655 done
13657 cat >>$CONFIG_STATUS <<\EOF
13660 # CONFIG_COMMANDS section.
13662 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13663 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13664 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13666 case $ac_dest in
13667 default )
13669 ### Make the necessary directories, if they don't exist.
13670 for dir in etc lisp ; do
13671 test -d ${dir} || mkdir ${dir}
13672 done
13674 # Build src/Makefile from ${srcdir}/src/Makefile.c
13675 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13676 # This must be done after src/config.h is built, since we rely on that file.
13678 # Now get this: Some word that is part of the ${srcdir} directory name
13679 # or the ${configuration} value might, just might, happen to be an
13680 # identifier like `sun4' or `i386' or something, and be predefined by
13681 # the C preprocessor to some helpful value like 1, or maybe the empty
13682 # string. Needless to say consequent macro substitutions are less
13683 # than conducive to the makefile finding the correct directory.
13684 undefs="`echo $top_srcdir $configuration $canonical |
13685 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13686 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13689 echo creating src/epaths.h
13690 ${MAKE-make} epaths-force
13692 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13693 # `..' to `. .' unless invoked with -traditional
13695 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13696 CPPFLAGS="$CPPFLAGS -traditional"
13699 echo creating lib-src/Makefile
13700 ( cd lib-src
13701 rm -f junk.c junk1.c junk2.c
13702 sed -e '/start of cpp stuff/q' \
13703 < Makefile.c > junk1.c
13704 sed -e '1,/start of cpp stuff/d'\
13705 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13706 < Makefile.c > junk.c
13707 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13708 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13709 cat junk1.c junk2.c > Makefile.new
13710 rm -f junk.c junk1.c junk2.c
13711 chmod 444 Makefile.new
13712 mv -f Makefile.new Makefile
13715 echo creating src/Makefile
13716 ( cd src
13717 rm -f junk.c junk1.c junk2.c
13718 sed -e '/start of cpp stuff/q' \
13719 < Makefile.c > junk1.c
13720 sed -e '1,/start of cpp stuff/d'\
13721 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13722 < Makefile.c > junk.c
13723 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13725 cat junk1.c junk2.c > Makefile.new
13726 rm -f junk.c junk1.c junk2.c
13727 chmod 444 Makefile.new
13728 mv -f Makefile.new Makefile
13731 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13732 echo creating src/.gdbinit
13733 echo source $srcdir/src/.gdbinit > src/.gdbinit
13736 # This is how we know whether to re-run configure in certain cases.
13737 touch src/config.stamp
13740 esac
13741 done
13744 cat >>$CONFIG_STATUS <<\EOF
13746 { (exit 0); exit 0; }
13748 chmod +x $CONFIG_STATUS
13749 ac_clean_files=$ac_clean_files_save
13751 # configure is writing to config.log, and then calls config.status.
13752 # config.status does its own redirection, appending to config.log.
13753 # Unfortunately, on DOS this fails, as config.log is still kept open
13754 # by configure, so config.status won't be able to write to it; its
13755 # output is simply discarded. So we exec the FD to /dev/null,
13756 # effectively closing config.log, so it can be properly (re)opened and
13757 # appended to by config.status. When coming back to configure, we
13758 # need to make the FD available again.
13759 if test "$no_create" != yes; then
13760 ac_cs_success=:
13761 exec 5>/dev/null
13762 $SHELL $CONFIG_STATUS || ac_cs_success=false
13763 exec 5>>config.log
13764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13765 # would make configure fail if this is the last instruction.
13766 $ac_cs_success || { (exit 1); exit 1; }