Fix typos.
[emacs.git] / configure
blob68cbd88acd147bd146f8d448400e582406bf7e61
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-largefile omit support for large files
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --without-gcc don't use GCC to compile Emacs if GCC is found
862 --without-pop don't support POP mail retrieval with movemail
863 --with-kerberos support Kerberos-authenticated POP
864 --with-kerberos5 support Kerberos version 5 authenticated POP
865 --with-hesiod support Hesiod to get the POP server host
866 --without-sound don't compile with sound support
867 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
868 --with-xpm use -lXpm for displaying XPM images
869 --with-jpeg use -ljpeg for displaying JPEG images
870 --with-tiff use -ltiff for displaying TIFF images
871 --with-gif use -lungif for displaying GIF images
872 --with-png use -lpng for displaying PNG images
873 --without-toolkit-scroll-bars
874 don't use Motif or Xaw3d scroll bars
875 --without-xim don't use X11 XIM
876 --without-carbon don't use Carbon GUI on Mac OS X
877 --with-x use the X Window System
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 # absolute.
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 cd $ac_dir
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
934 echo
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
937 echo
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
941 echo
942 $ac_configure --help
943 else
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
946 cd $ac_popdir
947 done
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
952 cat <<\_ACEOF
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958 _ACEOF
959 exit 0
961 exec 5>config.log
962 cat >&5 <<_ACEOF
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by $as_me, which was
967 generated by GNU Autoconf 2.56. Invocation command line was
969 $ $0 $@
971 _ACEOF
973 cat <<_ASUNAME
974 ## --------- ##
975 ## Platform. ##
976 ## --------- ##
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
995 _ASUNAME
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 for as_dir in $PATH
1000 IFS=$as_save_IFS
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1003 done
1005 } >&5
1007 cat >&5 <<_ACEOF
1010 ## ----------- ##
1011 ## Core tests. ##
1012 ## ----------- ##
1014 _ACEOF
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1022 ac_configure_args=
1023 ac_configure_args0=
1024 ac_configure_args1=
1025 ac_sep=
1026 ac_must_keep_next=false
1027 for ac_pass in 1 2
1029 for ac_arg
1031 case $ac_arg in
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 continue ;;
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 esac
1039 case $ac_pass in
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1045 else
1046 case $ac_arg in
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053 esac
1055 -* ) ac_must_keep_next=true ;;
1056 esac
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1060 ac_sep=" "
1062 esac
1063 done
1064 done
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074 # Save into config.log some information that might help in debugging.
1076 echo
1078 cat <<\_ASBOX
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1082 _ASBOX
1083 echo
1084 # The following way of writing the cache mishandles newlines in values,
1086 (set) 2>&1 |
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088 *ac_space=\ *)
1089 sed -n \
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 sed -n \
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097 esac;
1099 echo
1101 cat <<\_ASBOX
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1105 _ASBOX
1106 echo
1107 for ac_var in $ac_subst_vars
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1111 done | sort
1112 echo
1114 if test -n "$ac_subst_files"; then
1115 cat <<\_ASBOX
1116 ## ------------- ##
1117 ## Output files. ##
1118 ## ------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_files
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1129 if test -s confdefs.h; then
1130 cat <<\_ASBOX
1131 ## ----------- ##
1132 ## confdefs.h. ##
1133 ## ----------- ##
1134 _ASBOX
1135 echo
1136 sed "/^$/d" confdefs.h | sort
1137 echo
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1142 } >&5
1143 rm -f core core.* *.core &&
1144 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145 exit $exit_status
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149 done
1150 ac_signal=0
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 echo >confdefs.h
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1161 _ACEOF
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181 _ACEOF
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189 else
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's/^/| /' "$ac_site_file" >&5
1198 . "$ac_site_file"
1200 done
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1208 case $cache_file in
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1211 esac
1213 else
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1216 >$cache_file
1219 # Check that the precious variables saved in the cache have kept the same
1220 # value.
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1229 set,)
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1233 ,set)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,);;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1247 fi;;
1248 esac
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1251 case $ac_new_val in
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1255 esac
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259 esac
1261 done
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1270 ac_ext=c
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1297 test "$program_prefix" != NONE &&
1298 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1299 # Use a double $ so make ignores it.
1300 test "$program_suffix" != NONE &&
1301 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1302 # Double any \ or $. echo might interpret backslashes.
1303 # By default was `s,x,x', remove it if useless.
1304 cat <<\_ACEOF >conftest.sed
1305 s/[\\$]/&&/g;s/;s,x,x,$//
1306 _ACEOF
1307 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1308 rm conftest.sed
1311 lispdir='${datadir}/emacs/${version}/lisp'
1312 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1313 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1314 lisppath='${locallisppath}:${lispdir}'
1315 etcdir='${datadir}/emacs/${version}/etc'
1316 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1317 docdir='${datadir}/emacs/${version}/etc'
1318 gamedir='${localstatedir}/games/emacs'
1320 gameuser=games
1323 # Check whether --with-gcc or --without-gcc was given.
1324 if test "${with_gcc+set}" = set; then
1325 withval="$with_gcc"
1329 # Check whether --with-pop or --without-pop was given.
1330 if test "${with_pop+set}" = set; then
1331 withval="$with_pop"
1332 if test "$withval" = yes; then
1333 cat >>confdefs.h <<\_ACEOF
1334 #define MAIL_USE_POP 1
1335 _ACEOF
1337 else :
1339 else
1340 cat >>confdefs.h <<\_ACEOF
1341 #define MAIL_USE_POP 1
1342 _ACEOF
1347 # Check whether --with-kerberos or --without-kerberos was given.
1348 if test "${with_kerberos+set}" = set; then
1349 withval="$with_kerberos"
1350 cat >>confdefs.h <<\_ACEOF
1351 #define KERBEROS 1
1352 _ACEOF
1357 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1358 if test "${with_kerberos5+set}" = set; then
1359 withval="$with_kerberos5"
1360 if test "${with_kerberos5+set}" = set; then
1361 if test "${with_kerberos+set}" != set; then
1362 with_kerberos=yes
1363 cat >>confdefs.h <<\_ACEOF
1364 #define KERBEROS 1
1365 _ACEOF
1370 cat >>confdefs.h <<\_ACEOF
1371 #define KERBEROS5 1
1372 _ACEOF
1376 # Check whether --with-hesiod or --without-hesiod was given.
1377 if test "${with_hesiod+set}" = set; then
1378 withval="$with_hesiod"
1380 cat >>confdefs.h <<\_ACEOF
1381 #define HESIOD 1
1382 _ACEOF
1387 # Check whether --with-sound or --without-sound was given.
1388 if test "${with_sound+set}" = set; then
1389 withval="$with_sound"
1394 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1395 if test "${with_x_toolkit+set}" = set; then
1396 withval="$with_x_toolkit"
1397 case "${withval}" in
1398 y | ye | yes ) val=athena ;;
1399 n | no ) val=no ;;
1400 l | lu | luc | luci | lucid ) val=lucid ;;
1401 a | at | ath | athe | athen | athena ) val=athena ;;
1402 m | mo | mot | moti | motif ) val=motif ;;
1404 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1405 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1406 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1407 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1408 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1409 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1410 { (exit 1); exit 1; }; }
1412 esac
1413 with_x_toolkit=$val
1417 # Check whether --with-xpm or --without-xpm was given.
1418 if test "${with_xpm+set}" = set; then
1419 withval="$with_xpm"
1423 # Check whether --with-jpeg or --without-jpeg was given.
1424 if test "${with_jpeg+set}" = set; then
1425 withval="$with_jpeg"
1429 # Check whether --with-tiff or --without-tiff was given.
1430 if test "${with_tiff+set}" = set; then
1431 withval="$with_tiff"
1435 # Check whether --with-gif or --without-gif was given.
1436 if test "${with_gif+set}" = set; then
1437 withval="$with_gif"
1441 # Check whether --with-png or --without-png was given.
1442 if test "${with_png+set}" = set; then
1443 withval="$with_png"
1447 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1448 if test "${with_toolkit_scroll_bars+set}" = set; then
1449 withval="$with_toolkit_scroll_bars"
1453 # Check whether --with-xim or --without-xim was given.
1454 if test "${with_xim+set}" = set; then
1455 withval="$with_xim"
1459 # Check whether --with-carbon or --without-carbon was given.
1460 if test "${with_carbon+set}" = set; then
1461 withval="$with_carbon"
1465 #### Make srcdir absolute, if it isn't already. It's important to
1466 #### avoid running the path through pwd unnecessarily, since pwd can
1467 #### give you automounter prefixes, which can go away. We do all this
1468 #### so Emacs can find its files when run uninstalled.
1469 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1470 unset CDPATH
1471 case "${srcdir}" in
1472 /* ) ;;
1474 ## We may be able to use the $PWD environment variable to make this
1475 ## absolute. But sometimes PWD is inaccurate.
1476 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1477 ## but that tested only for a well-formed and valid PWD,
1478 ## it did not object when PWD was well-formed and valid but just wrong.
1479 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1480 then
1481 srcdir="$PWD"
1482 else
1483 srcdir="`(cd ${srcdir}; pwd)`"
1486 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1487 esac
1489 #### Check if the source directory already has a configured system in it.
1490 if test `pwd` != `(cd ${srcdir} && pwd)` \
1491 && test -f "${srcdir}/src/config.h" ; then
1492 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1493 as a build directory right now; it has been configured in its own
1494 right. To configure in another directory as well, you MUST
1495 use GNU make. If you do not have GNU make, then you must
1496 now do \`make distclean' in ${srcdir},
1497 and then run $0 again." >&5
1498 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1499 as a build directory right now; it has been configured in its own
1500 right. To configure in another directory as well, you MUST
1501 use GNU make. If you do not have GNU make, then you must
1502 now do \`make distclean' in ${srcdir},
1503 and then run $0 again." >&2;}
1505 extrasub='/^VPATH[ ]*=/c\
1506 vpath %.c $(srcdir)\
1507 vpath %.h $(srcdir)\
1508 vpath %.y $(srcdir)\
1509 vpath %.l $(srcdir)\
1510 vpath %.s $(srcdir)\
1511 vpath %.in $(srcdir)\
1512 vpath %.texi $(srcdir)'
1515 #### Given the configuration name, set machfile and opsysfile to the
1516 #### names of the m/*.h and s/*.h files we should use.
1518 ### Canonicalize the configuration name.
1520 ac_aux_dir=
1521 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522 if test -f $ac_dir/install-sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 break
1526 elif test -f $ac_dir/install.sh; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 break
1530 elif test -f $ac_dir/shtool; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 break
1535 done
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 # Make sure we can run config.sub.
1546 $ac_config_sub sun4 >/dev/null 2>&1 ||
1547 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1548 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1549 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: checking build system type" >&5
1552 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1553 if test "${ac_cv_build+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 ac_cv_build_alias=$build_alias
1557 test -z "$ac_cv_build_alias" &&
1558 ac_cv_build_alias=`$ac_config_guess`
1559 test -z "$ac_cv_build_alias" &&
1560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1561 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1562 { (exit 1); exit 1; }; }
1563 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1570 echo "${ECHO_T}$ac_cv_build" >&6
1571 build=$ac_cv_build
1572 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 echo "$as_me:$LINENO: checking host system type" >&5
1578 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1579 if test "${ac_cv_host+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 else
1582 ac_cv_host_alias=$host_alias
1583 test -z "$ac_cv_host_alias" &&
1584 ac_cv_host_alias=$ac_cv_build_alias
1585 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1587 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1588 { (exit 1); exit 1; }; }
1591 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1592 echo "${ECHO_T}$ac_cv_host" >&6
1593 host=$ac_cv_host
1594 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599 canonical=$host
1600 configuration=${host_alias-$host}
1604 ### If you add support for a new configuration, add code to this
1605 ### switch statement to recognize your configuration name and select
1606 ### the appropriate operating system and machine description files.
1608 ### You would hope that you could choose an m/*.h file pretty much
1609 ### based on the machine portion of the configuration name, and an s-
1610 ### file based on the operating system portion. However, it turns out
1611 ### that each m/*.h file is pretty manufacturer-specific - for
1612 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1613 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1614 ### machines. So we basically have to have a special case for each
1615 ### configuration name.
1617 ### As far as handling version numbers on operating systems is
1618 ### concerned, make sure things will fail in a fixable way. If
1619 ### /etc/MACHINES doesn't say anything about version numbers, be
1620 ### prepared to handle anything reasonably. If version numbers
1621 ### matter, be sure /etc/MACHINES says something about it.
1623 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1624 ### "System V Release 4"; he writes, "The old convention encouraged
1625 ### confusion between `system' and `release' levels'."
1627 machine='' opsys='' unported=no
1628 case "${canonical}" in
1630 ## FreeBSD ports
1631 *-*-freebsd* )
1632 opsys=freebsd
1633 case "${canonical}" in
1634 alpha*-*-freebsd*) machine=alpha ;;
1635 i[3456]86-*-freebsd*) machine=intel386 ;;
1636 esac
1639 ## NetBSD ports
1640 *-*-netbsd* )
1641 opsys=netbsd
1642 case "${canonical}" in
1643 alpha*-*-netbsd*) machine=alpha ;;
1644 i[3456]86-*-netbsd*) machine=intel386 ;;
1645 m68k-*-netbsd*)
1646 # This is somewhat bogus.
1647 machine=hp9000s300 ;;
1648 powerpc-apple-netbsd*) machine=macppc ;;
1649 mips-*-netbsd*) machine=pmax ;;
1650 mipsel-*-netbsd*) machine=pmax ;;
1651 mipseb-*-netbsd*) machine=pmax ;;
1652 ns32k-*-netbsd*) machine=ns32000 ;;
1653 powerpc-*-netbsd*) machine=macppc ;;
1654 sparc*-*-netbsd*) machine=sparc ;;
1655 vax-*-netbsd*) machine=vax ;;
1656 arm-*-netbsd*) machine=arm ;;
1657 esac
1660 ## OpenBSD ports
1661 *-*-openbsd* )
1662 opsys=openbsd
1663 case "${canonical}" in
1664 alpha*-*-openbsd*) machine=alpha ;;
1665 i386-*-openbsd*) machine=intel386 ;;
1666 m68k-*-openbsd*) machine=hp9000s300 ;;
1667 mipsel-*-openbsd*) machine=pmax ;;
1668 ns32k-*-openbsd*) machine=ns32000 ;;
1669 sparc-*-openbsd*) machine=sparc ;;
1670 vax-*-openbsd*) machine=vax ;;
1671 esac
1674 ## Acorn RISCiX:
1675 arm-acorn-riscix1.1* )
1676 machine=acorn opsys=riscix1-1
1678 arm-acorn-riscix1.2* | arm-acorn-riscix )
1679 ## This name is riscix12 instead of riscix1.2
1680 ## to avoid a file name conflict on MSDOS.
1681 machine=acorn opsys=riscix12
1684 ## BSDI ports
1685 *-*-bsdi* )
1686 opsys=bsdi
1687 case "${canonical}" in
1688 i[345]86-*-bsdi*) machine=intel386 ;;
1689 sparc-*-bsdi*) machine=sparc ;;
1690 powerpc-*-bsdi*) machine=macppc ;;
1691 esac
1692 case "${canonical}" in
1693 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1694 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1695 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1696 *-*-bsdi3* ) opsys=bsdos3 ;;
1697 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1698 esac
1701 ## Alliant machines
1702 ## Strictly speaking, we need the version of the alliant operating
1703 ## system to choose the right machine file, but currently the
1704 ## configuration name doesn't tell us enough to choose the right
1705 ## one; we need to give alliants their own operating system name to
1706 ## do this right. When someone cares, they can help us.
1707 fx80-alliant-* )
1708 machine=alliant4 opsys=bsd4-2
1710 i860-alliant-* )
1711 machine=alliant-2800 opsys=bsd4-3
1714 ## Alpha (DEC) machines.
1715 alpha*-dec-osf* )
1716 machine=alpha opsys=osf1
1717 # This is needed to find X11R6.1 libraries for certain tests.
1718 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1719 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1720 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1721 # due to non-traditional preprocessing with the current compiler
1722 # defaults. OSF 4 can also have that compiler version, and there
1723 # seems always to have been a usable /usr/bin/cpp.
1724 NON_GNU_CPP=/usr/bin/cpp
1725 case "${canonical}" in
1726 alpha*-dec-osf[5-9]*)
1727 opsys=osf5-0 ;;
1728 esac
1731 alpha*-*-linux-gnu* )
1732 machine=alpha opsys=gnu-linux
1735 arm*-*-linux-gnu* )
1736 machine=arm opsys=gnu-linux
1739 ppc-*-linux | \
1740 powerpc-*-linux* )
1741 machine=macppc opsys=gnu-linux
1744 ## Altos 3068
1745 m68*-altos-sysv* )
1746 machine=altos opsys=usg5-2
1749 ## Amdahl UTS
1750 580-amdahl-sysv* )
1751 machine=amdahl opsys=usg5-2-2
1754 ## Apollo, Domain/OS
1755 m68*-apollo-* )
1756 machine=apollo opsys=bsd4-3
1759 ## AT&T 3b2, 3b5, 3b15, 3b20
1760 we32k-att-sysv* )
1761 machine=att3b opsys=usg5-2-2
1764 ## AT&T 3b1 - The Mighty Unix PC!
1765 m68*-att-sysv* )
1766 machine=7300 opsys=usg5-2-2
1769 ## Bull dpx20
1770 rs6000-bull-bosx* )
1771 machine=ibmrs6000 opsys=aix3-2
1774 ## Bull dpx2
1775 m68*-bull-sysv3* )
1776 machine=dpx2 opsys=usg5-3
1779 ## Bull sps7
1780 m68*-bull-sysv2* )
1781 machine=sps7 opsys=usg5-2
1784 ## CCI 5/32, 6/32 -- see "Tahoe".
1786 ## Celerity
1787 ## I don't know what configuration name to use for this; config.sub
1788 ## doesn't seem to know anything about it. Hey, Celerity users, get
1789 ## in touch with us!
1790 celerity-celerity-bsd* )
1791 machine=celerity opsys=bsd4-2
1794 ## Clipper
1795 ## What operating systems does this chip run that Emacs has been
1796 ## tested on?
1797 clipper-* )
1798 machine=clipper
1799 ## We'll use the catch-all code at the bottom to guess the
1800 ## operating system.
1803 ## Compaq Nonstop
1804 mips-compaq-nonstopux* )
1805 machine=nonstopux opsys=nonstopux
1808 ## Convex
1809 *-convex-bsd* | *-convex-convexos* )
1810 machine=convex opsys=bsd4-3
1811 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1812 NON_GNU_CPP="cc -E -P"
1815 ## Cubix QBx/386
1816 i[3456]86-cubix-sysv* )
1817 machine=intel386 opsys=usg5-3
1820 ## Cydra 5
1821 cydra*-cydrome-sysv* )
1822 machine=cydra5 opsys=usg5-3
1825 ## Data General AViiON Machines
1826 ## DG changed naming conventions with the release of 5.4.4.10, they
1827 ## dropped the initial 5.4 but left the intervening R. Because of the
1828 ## R this shouldn't conflict with older versions of the OS (which I
1829 ## think were named like dgux4.*). In addition, DG new AViiONs series
1830 ## uses either Motorola M88k or Intel Pentium CPUs.
1831 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1832 machine=aviion opsys=dgux4
1834 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1835 ## This name is dgux5-4-3 instead of dgux5-4r3
1836 ## to avoid a file name conflict on MSDOS.
1837 machine=aviion opsys=dgux5-4-3
1839 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1840 machine=aviion opsys=dgux5-4r2
1842 m88k-dg-dgux* )
1843 machine=aviion opsys=dgux
1846 ## Data General AViiON Intel (x86) Machines
1847 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1848 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1849 i[345]86-dg-dguxR4* )
1850 machine=aviion-intel opsys=dgux4
1853 ## DECstations
1854 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1855 machine=pmax opsys=bsd4-2
1857 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1858 machine=pmax opsys=bsd4-3
1860 mips-dec-ultrix* )
1861 machine=pmax opsys=ultrix4-3
1863 mips-dec-osf* )
1864 machine=pmax opsys=osf1
1866 mips-dec-mach_bsd4.3* )
1867 machine=pmax opsys=mach-bsd4-3
1870 ## Motorola Delta machines
1871 m68k-motorola-sysv* | m68000-motorola-sysv* )
1872 machine=delta opsys=usg5-3
1873 if test -z "`type gnucc | grep 'not found'`"
1874 then
1875 if test -s /etc/167config
1876 then CC="gnucc -m68040"
1877 else CC="gnucc -m68881"
1879 else
1880 if test -z "`type gcc | grep 'not found'`"
1881 then CC=gcc
1882 else CC=cc
1886 m88k-motorola-sysv4* )
1887 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1888 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1889 # I hope there are not other 4.0 versions for this machine
1890 # which really need usg5-4 instead.
1891 machine=delta88k opsys=usg5-4-2
1893 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1894 machine=delta88k opsys=usg5-3
1897 ## Dual machines
1898 m68*-dual-sysv* )
1899 machine=dual opsys=usg5-2
1901 m68*-dual-uniplus* )
1902 machine=dual opsys=unipl5-2
1905 ## Elxsi 6400
1906 elxsi-elxsi-sysv* )
1907 machine=elxsi opsys=usg5-2
1910 ## Encore machines
1911 ns16k-encore-bsd* )
1912 machine=ns16000 opsys=umax
1915 ## The GEC 63 - apparently, this port isn't really finished yet.
1916 # I'm sure we finished off the last of the machines, though. -- fx
1918 ## Gould Power Node and NP1
1919 pn-gould-bsd4.2* )
1920 machine=gould opsys=bsd4-2
1922 pn-gould-bsd4.3* )
1923 machine=gould opsys=bsd4-3
1925 np1-gould-bsd* )
1926 machine=gould-np1 opsys=bsd4-3
1929 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1930 ## as far as Emacs is concerned).
1931 m88k-harris-cxux* )
1932 # Build needs to be different on 7.0 and later releases
1933 case "`uname -r`" in
1934 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1935 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1936 esac
1937 NON_GNU_CPP="/lib/cpp"
1939 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1940 m68k-harris-cxux* )
1941 machine=nh3000 opsys=cxux
1943 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1944 powerpc-harris-powerunix )
1945 machine=nh6000 opsys=powerunix
1946 NON_GNU_CPP="cc -Xo -E -P"
1948 ## SR2001/SR2201 running HI-UX/MPP
1949 hppa1.1-hitachi-hiuxmpp* )
1950 machine=sr2k opsys=hiuxmpp
1952 hppa1.1-hitachi-hiuxwe2* )
1953 machine=sr2k opsys=hiuxwe2
1955 ## Honeywell XPS100
1956 xps*-honeywell-sysv* )
1957 machine=xps100 opsys=usg5-2
1960 ## HP 9000 series 200 or 300
1961 m68*-hp-bsd* )
1962 machine=hp9000s300 opsys=bsd4-3
1964 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1965 m68*-hp-hpux* )
1966 case "`uname -r`" in
1967 ## Someone's system reports A.B8.05 for this.
1968 ## I wonder what other possibilities there are.
1969 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1970 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1971 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1972 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1973 *) machine=hp9000s300 opsys=hpux ;;
1974 esac
1977 ## HP 9000 series 700 and 800, running HP/UX
1978 hppa*-hp-hpux7* )
1979 machine=hp800 opsys=hpux
1981 hppa*-hp-hpux8* )
1982 machine=hp800 opsys=hpux8
1984 hppa*-hp-hpux9shr* )
1985 machine=hp800 opsys=hpux9shr
1987 hppa*-hp-hpux9* )
1988 machine=hp800 opsys=hpux9
1990 hppa*-hp-hpux10* )
1991 machine=hp800 opsys=hpux10
1993 hppa*-hp-hpux1[1-9]* )
1994 machine=hp800 opsys=hpux11
1997 hppa*-*-linux-gnu* )
1998 machine=hp800 opsys=gnu-linux
2001 ## HP 9000 series 700 and 800, running HP/UX
2002 hppa*-hp-hpux* )
2003 ## Cross-compilation? Nah!
2004 case "`uname -r`" in
2005 ## Someone's system reports A.B8.05 for this.
2006 ## I wonder what other possibilities there are.
2007 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2008 *.08.* ) machine=hp800 opsys=hpux8 ;;
2009 *.09.* ) machine=hp800 opsys=hpux9 ;;
2010 *) machine=hp800 opsys=hpux10 ;;
2011 esac
2013 hppa*-*-nextstep* )
2014 machine=hp800 opsys=nextstep
2017 ## Orion machines
2018 orion-orion-bsd* )
2019 machine=orion opsys=bsd4-2
2021 clipper-orion-bsd* )
2022 machine=orion105 opsys=bsd4-2
2025 ## IBM machines
2026 i[3456]86-ibm-aix1.1* )
2027 machine=ibmps2-aix opsys=usg5-2-2
2029 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2030 machine=ibmps2-aix opsys=usg5-3
2032 i370-ibm-aix*)
2033 machine=ibm370aix opsys=usg5-3
2035 s390-*-linux-gnu)
2036 machine=ibms390 opsys=gnu-linux
2038 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2039 machine=ibmrs6000 opsys=aix3-1
2041 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2042 machine=ibmrs6000 opsys=aix3-2-5
2044 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2045 machine=ibmrs6000 opsys=aix4-1
2047 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2048 machine=ibmrs6000 opsys=aix4-2
2050 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2051 machine=ibmrs6000 opsys=aix4-2
2053 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2054 machine=ibmrs6000 opsys=aix4
2056 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2057 machine=ibmrs6000 opsys=aix4-1
2059 rs6000-ibm-aix* | powerpc-ibm-aix* )
2060 machine=ibmrs6000 opsys=aix3-2
2062 romp-ibm-bsd4.3* )
2063 machine=ibmrt opsys=bsd4-3
2065 romp-ibm-bsd4.2* )
2066 machine=ibmrt opsys=bsd4-2
2068 romp-ibm-aos4.3* )
2069 machine=ibmrt opsys=bsd4-3
2071 romp-ibm-aos4.2* )
2072 machine=ibmrt opsys=bsd4-2
2074 romp-ibm-aos* )
2075 machine=ibmrt opsys=bsd4-3
2077 romp-ibm-bsd* )
2078 machine=ibmrt opsys=bsd4-3
2080 romp-ibm-aix* )
2081 machine=ibmrt-aix opsys=usg5-2-2
2084 ## Integrated Solutions `Optimum V'
2085 m68*-isi-bsd4.2* )
2086 machine=isi-ov opsys=bsd4-2
2088 m68*-isi-bsd4.3* )
2089 machine=isi-ov opsys=bsd4-3
2092 ## Intel 386 machines where we do care about the manufacturer
2093 i[3456]86-intsys-sysv* )
2094 machine=is386 opsys=usg5-2-2
2097 ## Prime EXL
2098 i[3456]86-prime-sysv* )
2099 machine=i386 opsys=usg5-3
2102 ## Sequent Symmetry running Dynix
2103 i[3456]86-sequent-bsd* )
2104 machine=symmetry opsys=bsd4-3
2107 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2108 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2109 machine=sequent-ptx opsys=ptx4
2110 NON_GNU_CPP=/lib/cpp
2113 ## Sequent Symmetry running DYNIX/ptx
2114 ## Use the old cpp rather than the newer ANSI one.
2115 i[3456]86-sequent-ptx* )
2116 machine=sequent-ptx opsys=ptx
2117 NON_GNU_CPP="/lib/cpp"
2120 ## ncr machine running svr4.3.
2121 i[3456]86-ncr-sysv4.3 )
2122 machine=ncr386 opsys=usg5-4-3
2125 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2126 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2127 i[3456]86-ncr-sysv* )
2128 machine=ncr386 opsys=usg5-4-2
2131 ## Intel Paragon OSF/1
2132 i860-intel-osf1* )
2133 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2136 ## Intel 860
2137 i860-*-sysv4* )
2138 machine=i860 opsys=usg5-4
2139 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2140 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2143 ## Macintosh PowerPC
2144 powerpc*-*-linux-gnu* )
2145 machine=macppc opsys=gnu-linux
2148 ## Masscomp machines
2149 m68*-masscomp-rtu* )
2150 machine=masscomp opsys=rtu
2153 ## Megatest machines
2154 m68*-megatest-bsd* )
2155 machine=mega68 opsys=bsd4-2
2158 ## Workstations sold by MIPS
2159 ## This is not necessarily all workstations using the MIPS processor -
2160 ## Irises are produced by SGI, and DECstations by DEC.
2162 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2163 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2164 ## it gives for choosing between the alternatives seems to be "Use
2165 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2166 ## the BSD world." I'll assume that these are instructions for
2167 ## handling two odd situations, and that every other situation
2168 ## should use mips.h and usg5-2-2, they being listed first.
2169 mips-mips-usg* )
2170 machine=mips4
2171 ## Fall through to the general code at the bottom to decide on the OS.
2173 mips-mips-riscos4* )
2174 machine=mips4 opsys=bsd4-3
2175 NON_GNU_CC="cc -systype bsd43"
2176 NON_GNU_CPP="cc -systype bsd43 -E"
2178 mips-mips-riscos5* )
2179 machine=mips4 opsys=riscos5
2180 NON_GNU_CC="cc -systype bsd43"
2181 NON_GNU_CPP="cc -systype bsd43 -E"
2183 mips-mips-bsd* )
2184 machine=mips opsys=bsd4-3
2186 mips-mips-* )
2187 machine=mips opsys=usg5-2-2
2190 ## NeXT
2191 m68*-next-* | m68k-*-nextstep* )
2192 machine=m68k opsys=nextstep
2195 ## The complete machine from National Semiconductor
2196 ns32k-ns-genix* )
2197 machine=ns32000 opsys=usg5-2
2200 ## NCR machines
2201 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2202 machine=tower32 opsys=usg5-2-2
2204 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2205 machine=tower32v3 opsys=usg5-3
2208 ## NEC EWS4800
2209 mips-nec-sysv4*)
2210 machine=ews4800 opsys=ux4800
2213 ## Nixdorf Targon 31
2214 m68*-nixdorf-sysv* )
2215 machine=targon31 opsys=usg5-2-2
2218 ## Nu (TI or LMI)
2219 m68*-nu-sysv* )
2220 machine=nu opsys=usg5-2
2223 ## Plexus
2224 m68*-plexus-sysv* )
2225 machine=plexus opsys=usg5-2
2228 ## Pyramid machines
2229 ## I don't really have any idea what sort of processor the Pyramid has,
2230 ## so I'm assuming it is its own architecture.
2231 pyramid-pyramid-bsd* )
2232 machine=pyramid opsys=bsd4-2
2235 ## Sequent Balance
2236 ns32k-sequent-bsd4.2* )
2237 machine=sequent opsys=bsd4-2
2239 ns32k-sequent-bsd4.3* )
2240 machine=sequent opsys=bsd4-3
2243 ## Siemens Nixdorf
2244 mips-siemens-sysv* | mips-sni-sysv*)
2245 machine=mips-siemens opsys=usg5-4
2246 NON_GNU_CC=/usr/ccs/bin/cc
2247 NON_GNU_CPP=/usr/ccs/lib/cpp
2250 ## Silicon Graphics machines
2251 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2252 m68*-sgi-iris3.5* )
2253 machine=irist opsys=iris3-5
2255 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2256 machine=irist opsys=iris3-6
2258 ## Iris 4D
2259 mips-sgi-irix3* )
2260 machine=iris4d opsys=irix3-3
2262 mips-sgi-irix4* )
2263 machine=iris4d opsys=irix4-0
2265 mips-sgi-irix6.5 )
2266 machine=iris4d opsys=irix6-5
2267 # Without defining _LANGUAGE_C, things get masked out in the headers
2268 # so that, for instance, grepping for `free' in stdlib.h fails and
2269 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2270 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2271 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2273 mips-sgi-irix6* )
2274 machine=iris4d opsys=irix6-0
2275 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2276 # but presumably it does no harm.
2277 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2278 # -32 probably isn't necessary in later v.6s -- anyone know which?
2279 NON_GCC_TEST_OPTIONS=-32
2281 mips-sgi-irix5.[01]* )
2282 machine=iris4d opsys=irix5-0
2284 mips-sgi-irix5* | mips-sgi-irix* )
2285 machine=iris4d opsys=irix5-2
2288 ## SONY machines
2289 m68*-sony-bsd4.2* )
2290 machine=news opsys=bsd4-2
2292 m68*-sony-bsd4.3* )
2293 machine=news opsys=bsd4-3
2295 m68*-sony-newsos3* | m68*-sony-news3*)
2296 machine=news opsys=bsd4-3
2298 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2299 machine=news-risc opsys=bsd4-3
2301 mips-sony-newsos6* )
2302 machine=news-r6 opsys=newsos6
2304 mips-sony-news* )
2305 machine=news-risc opsys=newsos5
2308 ## Stride
2309 m68*-stride-sysv* )
2310 machine=stride opsys=usg5-2
2313 ## Suns
2314 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2315 machine=sparc opsys=gnu-linux
2318 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2319 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2320 | rs6000-*-solaris2*)
2321 case "${canonical}" in
2322 m68*-sunos1* ) machine=sun1 ;;
2323 m68*-sunos2* ) machine=sun2 ;;
2324 m68* ) machine=sun3 ;;
2325 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2326 i[3456]86-*-* ) machine=intel386 ;;
2327 powerpcle* ) machine=powerpcle ;;
2328 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2329 sparc* ) machine=sparc ;;
2330 * ) unported=yes ;;
2331 esac
2332 case "${canonical}" in
2333 ## The Sun386 didn't get past 4.0.
2334 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2335 *-sunos4.0* ) opsys=sunos4-0 ;;
2336 *-sunos4.1.[3-9]*noshare )
2337 ## This name is sunos413 instead of sunos4-1-3
2338 ## to avoid a file name conflict on MSDOS.
2339 opsys=sunos413
2340 NON_GNU_CPP=/usr/lib/cpp
2341 NON_GCC_TEST_OPTIONS=-Bstatic
2342 GCC_TEST_OPTIONS=-static
2344 *-sunos4.1.[3-9]* | *-sunos4shr*)
2345 opsys=sunos4shr
2346 NON_GNU_CPP=/usr/lib/cpp
2348 *-sunos4* | *-sunos )
2349 opsys=sunos4-1
2350 NON_GCC_TEST_OPTIONS=-Bstatic
2351 GCC_TEST_OPTIONS=-static
2353 *-sunos5.3* | *-solaris2.3* )
2354 opsys=sol2-3
2355 NON_GNU_CPP=/usr/ccs/lib/cpp
2357 *-sunos5.4* | *-solaris2.4* )
2358 opsys=sol2-4
2359 NON_GNU_CPP=/usr/ccs/lib/cpp
2360 RANLIB="ar -ts"
2362 *-sunos5.5* | *-solaris2.5* )
2363 opsys=sol2-5
2364 NON_GNU_CPP=/usr/ccs/lib/cpp
2365 RANLIB="ar -ts"
2367 *-sunos5.6* | *-solaris2.6* )
2368 opsys=sol2-6
2369 NON_GNU_CPP=/usr/ccs/lib/cpp
2370 RANLIB="ar -ts"
2372 *-sunos5.8* | *-solaris2.8* )
2373 opsys=sol2-8
2374 NON_GNU_CPP=/usr/ccs/lib/cpp
2375 RANLIB="ar -ts"
2377 *-sunos5* | *-solaris* )
2378 opsys=sol2-8
2379 NON_GNU_CPP=/usr/ccs/lib/cpp
2381 * ) opsys=bsd4-2 ;;
2382 esac
2383 ## Watch out for a compiler that we know will not work.
2384 case "${canonical}" in
2385 *-solaris* | *-sunos5* )
2386 if [ "x$CC" = x/usr/ucb/cc ]; then
2387 ## /usr/ucb/cc doesn't work;
2388 ## we should find some other compiler that does work.
2389 unset CC
2392 *) ;;
2393 esac
2395 sparc-*-nextstep* )
2396 machine=sparc opsys=nextstep
2399 ## Tadpole 68k
2400 m68*-tadpole-sysv* )
2401 machine=tad68k opsys=usg5-3
2404 ## Tahoe machines
2405 tahoe-tahoe-bsd4.2* )
2406 machine=tahoe opsys=bsd4-2
2408 tahoe-tahoe-bsd4.3* )
2409 machine=tahoe opsys=bsd4-3
2412 ## Tandem Integrity S2
2413 mips-tandem-sysv* )
2414 machine=tandem-s2 opsys=usg5-3
2417 ## Tektronix XD88
2418 m88k-tektronix-sysv3* )
2419 machine=tekxd88 opsys=usg5-3
2422 ## Tektronix 16000 box (6130?)
2423 ns16k-tektronix-bsd* )
2424 machine=ns16000 opsys=bsd4-2
2426 ## Tektronix 4300
2427 ## src/m/tek4300.h hints that this is a m68k machine.
2428 m68*-tektronix-bsd* )
2429 machine=tek4300 opsys=bsd4-3
2432 ## Titan P2 or P3
2433 ## We seem to have lost the machine-description file titan.h!
2434 titan-titan-sysv* )
2435 machine=titan opsys=usg5-3
2438 ## Ustation E30 (SS5E)
2439 m68*-unisys-uniplus* )
2440 machine=ustation opsystem=unipl5-2
2443 ## Vaxen.
2444 vax-dec-* )
2445 machine=vax
2446 case "${canonical}" in
2447 *-bsd4.1* ) opsys=bsd4-1 ;;
2448 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2449 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2450 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2451 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2452 *-vms* ) opsys=vms ;;
2453 * ) unported=yes
2454 esac
2457 ## Whitechapel MG1
2458 ns16k-whitechapel-* )
2459 machine=mg1
2460 ## We don't know what sort of OS runs on these; we'll let the
2461 ## operating system guessing code below try.
2464 ## Wicat
2465 m68*-wicat-sysv* )
2466 machine=wicat opsys=usg5-2
2469 ## IA-64
2470 ia64*-*-linux* )
2471 machine=ia64 opsys=gnu-linux
2474 ## Intel 386 machines where we don't care about the manufacturer
2475 i[3456]86-*-* )
2476 machine=intel386
2477 case "${canonical}" in
2478 *-lynxos* ) opsys=lynxos ;;
2479 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2480 *-isc2.2* ) opsys=isc2-2 ;;
2481 *-isc4.0* ) opsys=isc4-0 ;;
2482 *-isc4.* ) opsys=isc4-1
2483 GCC_TEST_OPTIONS=-posix
2484 NON_GCC_TEST_OPTIONS=-Xp
2486 *-isc* ) opsys=isc3-0 ;;
2487 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2488 *-esix* ) opsys=esix ;;
2489 *-xenix* ) opsys=xenix ;;
2490 *-linux-gnu* ) opsys=gnu-linux ;;
2491 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2492 *-sco3.2v5* ) opsys=sco5
2493 NON_GNU_CPP=/lib/cpp
2494 # Prevent -belf from being passed to $CPP.
2495 # /lib/cpp does not accept it.
2496 OVERRIDE_CPPFLAGS=" "
2498 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2499 *-386bsd* ) opsys=386bsd ;;
2500 *-nextstep* ) opsys=nextstep ;;
2501 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2502 esac
2505 ## m68k Linux-based GNU system
2506 m68k-*-linux-gnu* )
2507 machine=m68k opsys=gnu-linux
2510 ## Mips Linux-based GNU system
2511 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2512 machine=mips opsys=gnu-linux
2515 ## UXP/DS
2516 sparc-fujitsu-sysv4* )
2517 machine=sparc opsys=uxpds
2518 NON_GNU_CPP=/usr/ccs/lib/cpp
2519 RANLIB="ar -ts"
2522 ## UXP/V
2523 f301-fujitsu-uxpv4.1)
2524 machine=f301 opsys=uxpv
2527 ## Darwin / Mac OS X
2528 powerpc-apple-darwin* )
2529 machine=powermac opsys=darwin
2530 # Define CPP as follows to make autoconf work correctly.
2531 CPP="cc -E -traditional-cpp"
2534 ## AMD x86-64 Linux-based GNU system
2535 x86_64-*-linux-gnu* )
2536 machine=amdx86-64 opsys=gnu-linux
2540 unported=yes
2542 esac
2544 ### If the code above didn't choose an operating system, just choose
2545 ### an operating system based on the configuration name. You really
2546 ### only want to use this when you have no idea what the right
2547 ### operating system is; if you know what operating systems a machine
2548 ### runs, it's cleaner to make it explicit in the case statement
2549 ### above.
2550 if test x"${opsys}" = x; then
2551 case "${canonical}" in
2552 *-gnu* ) opsys=gnu ;;
2553 *-bsd4.[01] ) opsys=bsd4-1 ;;
2554 *-bsd4.2 ) opsys=bsd4-2 ;;
2555 *-bsd4.3 ) opsys=bsd4-3 ;;
2556 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2557 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2558 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2559 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2560 *-sysv4.2uw* ) opsys=unixware ;;
2561 *-sysv4.1* | *-sysvr4.1* )
2562 NON_GNU_CPP=/usr/lib/cpp
2563 opsys=usg5-4 ;;
2564 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2565 if [ x$NON_GNU_CPP = x ]; then
2566 if [ -f /usr/ccs/lib/cpp ]; then
2567 NON_GNU_CPP=/usr/ccs/lib/cpp
2568 else
2569 NON_GNU_CPP=/lib/cpp
2572 opsys=usg5-4-2 ;;
2573 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2575 unported=yes
2577 esac
2582 if test $unported = yes; then
2583 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2584 Check \`etc/MACHINES' for recognized configuration names." >&5
2585 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2586 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2587 { (exit 1); exit 1; }; }
2590 machfile="m/${machine}.h"
2591 opsysfile="s/${opsys}.h"
2594 #### Choose a compiler.
2595 test -n "$CC" && cc_specified=yes
2597 # Save the value of CFLAGS that the user specified.
2598 SPECIFIED_CFLAGS="$CFLAGS"
2600 case ${with_gcc} in
2601 "yes" ) CC="gcc" GCC=yes ;;
2602 "no" ) : ${CC=cc} ;;
2604 esac
2605 ac_ext=c
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2632 done
2633 done
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639 echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6
2641 else
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2647 if test -z "$ac_cv_prog_CC"; then
2648 ac_ct_CC=$CC
2649 # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc; ac_word=$2
2651 echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_ac_ct_CC="gcc"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678 echo "${ECHO_T}$ac_ct_CC" >&6
2679 else
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2684 CC=$ac_ct_CC
2685 else
2686 CC="$ac_cv_prog_CC"
2689 if test -z "$CC"; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}cc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}cc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="cc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 ac_prog_rejected=no
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2793 ac_cv_prog_CC="cc"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2800 if test $ac_prog_rejected = yes; then
2801 # We found a bogon in the path, so make sure we never use it.
2802 set dummy $ac_cv_prog_CC
2803 shift
2804 if test $# != 0; then
2805 # We chose a different compiler from the bogus one.
2806 # However, it has the same basename, so the bogon will be chosen
2807 # first if we set CC to just the basename; use the full file name.
2808 shift
2809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2824 if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2826 for ac_prog in cl
2828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC="$CC" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 test -n "$CC" && break
2864 done
2866 if test -z "$CC"; then
2867 ac_ct_CC=$CC
2868 for ac_prog in cl
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CC="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2899 echo "${ECHO_T}$ac_ct_CC" >&6
2900 else
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2905 test -n "$ac_ct_CC" && break
2906 done
2908 CC=$ac_ct_CC
2914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2920 # Provide some information about the compiler.
2921 echo "$as_me:$LINENO:" \
2922 "checking for C compiler version" >&5
2923 ac_compiler=`set X $ac_compile; echo $2`
2924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2925 (eval $ac_compiler --version </dev/null >&5) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2930 (eval $ac_compiler -v </dev/null >&5) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2935 (eval $ac_compiler -V </dev/null >&5) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2949 main ()
2953 return 0;
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2962 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2963 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2965 (eval $ac_link_default) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 # Find the output, starting from the most likely. This scheme is
2970 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2971 # resort.
2973 # Be careful to initialize this variable, since it used to be cached.
2974 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2975 ac_cv_exeext=
2976 # b.out is created by i960 compilers.
2977 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2983 conftest.$ac_ext )
2984 # This is the source file.
2986 [ab].out )
2987 # We found the default executable, but exeext='' is most
2988 # certainly right.
2989 break;;
2990 *.* )
2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 # FIXME: I believe we export ac_cv_exeext for Libtool,
2993 # but it would be cool to find out if it's true. Does anybody
2994 # maintain Libtool? --akim.
2995 export ac_cv_exeext
2996 break;;
2998 break;;
2999 esac
3000 done
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&2;}
3009 { (exit 77); exit 77; }; }
3012 ac_exeext=$ac_cv_exeext
3013 echo "$as_me:$LINENO: result: $ac_file" >&5
3014 echo "${ECHO_T}$ac_file" >&6
3016 # Check the compiler produces executables we can run. If not, either
3017 # the compiler is broken, or we cross compile.
3018 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3019 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3020 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3021 # If not cross compiling, check that we can run a simple program.
3022 if test "$cross_compiling" != yes; then
3023 if { ac_try='./$ac_file'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 cross_compiling=no
3030 else
3031 if test "$cross_compiling" = maybe; then
3032 cross_compiling=yes
3033 else
3034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot run C compiled programs.
3038 If you meant to cross compile, use \`--host'.
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3044 echo "$as_me:$LINENO: result: yes" >&5
3045 echo "${ECHO_T}yes" >&6
3047 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3048 ac_clean_files=$ac_clean_files_save
3049 # Check the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3054 echo "${ECHO_T}$cross_compiling" >&6
3056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3059 (eval $ac_link) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3066 # `rm'.
3067 for ac_file in conftest.exe conftest conftest.*; do
3068 test -f "$ac_file" || continue
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3071 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 export ac_cv_exeext
3073 break;;
3074 * ) break;;
3075 esac
3076 done
3077 else
3078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&5
3080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3085 rm -f conftest$ac_cv_exeext
3086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3087 echo "${ECHO_T}$ac_cv_exeext" >&6
3089 rm -f conftest.$ac_ext
3090 EXEEXT=$ac_cv_exeext
3091 ac_exeext=$EXEEXT
3092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3094 if test "${ac_cv_objext+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125 done
3126 else
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140 echo "${ECHO_T}$ac_cv_objext" >&6
3141 OBJEXT=$ac_cv_objext
3142 ac_objext=$OBJEXT
3143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148 cat >conftest.$ac_ext <<_ACEOF
3149 #line $LINENO "configure"
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3157 main ()
3159 #ifndef __GNUC__
3160 choke me
3161 #endif
3164 return 0;
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 (eval $ac_try) 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_compiler_gnu=yes
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_compiler_gnu=no
3186 rm -f conftest.$ac_objext conftest.$ac_ext
3187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3190 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3192 GCC=`test $ac_compiler_gnu = yes && echo yes`
3193 ac_test_CFLAGS=${CFLAGS+set}
3194 ac_save_CFLAGS=$CFLAGS
3195 CFLAGS="-g"
3196 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3197 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3198 if test "${ac_cv_prog_cc_g+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #line $LINENO "configure"
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3210 main ()
3214 return 0;
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_cv_prog_cc_g=yes
3230 else
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 ac_cv_prog_cc_g=no
3236 rm -f conftest.$ac_objext conftest.$ac_ext
3238 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3244 CFLAGS="-g -O2"
3245 else
3246 CFLAGS="-g"
3248 else
3249 if test "$GCC" = yes; then
3250 CFLAGS="-O2"
3251 else
3252 CFLAGS=
3255 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3256 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3257 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 ac_cv_prog_cc_stdc=no
3261 ac_save_CC=$CC
3262 cat >conftest.$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3264 /* confdefs.h. */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <stdarg.h>
3270 #include <stdio.h>
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3277 char **p;
3278 int i;
3280 return p[i];
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3284 char *s;
3285 va_list v;
3286 va_start (v,p);
3287 s = g (p, va_arg (v,int));
3288 va_end (v);
3289 return s;
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 int argc;
3296 char **argv;
3298 main ()
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3302 return 0;
3304 _ACEOF
3305 # Don't try gcc -ansi; that turns off useful extensions and
3306 # breaks some systems' header files.
3307 # AIX -qlanglvl=ansi
3308 # Ultrix and OSF/1 -std1
3309 # HP-UX 10.20 and later -Ae
3310 # HP-UX older versions -Aa -D_HPUX_SOURCE
3311 # SVR4 -Xc -D__EXTENSIONS__
3312 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_cv_prog_cc_stdc=$ac_arg
3328 break
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3334 rm -f conftest.$ac_objext
3335 done
3336 rm -f conftest.$ac_ext conftest.$ac_objext
3337 CC=$ac_save_CC
3341 case "x$ac_cv_prog_cc_stdc" in
3342 x|xno)
3343 echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6 ;;
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3348 CC="$CC $ac_cv_prog_cc_stdc" ;;
3349 esac
3351 # Some people use a C++ compiler to compile C. Since we use `exit',
3352 # in C++ we need to declare it. In case someone uses the same compiler
3353 # for both compiling C and C++ we need to have the C++ compiler decide
3354 # the declaration of exit, since it's the most demanding environment.
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #ifndef __cplusplus
3357 choke me
3358 #endif
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 for ac_declaration in \
3374 '#include <stdlib.h>' \
3375 'extern "C" void std::exit (int) throw (); using std::exit;' \
3376 'extern "C" void std::exit (int); using std::exit;' \
3377 'extern "C" void exit (int) throw ();' \
3378 'extern "C" void exit (int);' \
3379 'void exit (int);'
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <stdlib.h>
3389 $ac_declaration
3391 main ()
3393 exit (42);
3395 return 0;
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3415 continue
3417 rm -f conftest.$ac_objext conftest.$ac_ext
3418 cat >conftest.$ac_ext <<_ACEOF
3419 #line $LINENO "configure"
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 $ac_declaration
3427 main ()
3429 exit (42);
3431 return 0;
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 break
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3452 rm -f conftest.$ac_objext conftest.$ac_ext
3453 done
3454 rm -f conftest*
3455 if test -n "$ac_declaration"; then
3456 echo '#ifdef __cplusplus' >>confdefs.h
3457 echo $ac_declaration >>confdefs.h
3458 echo '#endif' >>confdefs.h
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f conftest.$ac_objext conftest.$ac_ext
3467 ac_ext=c
3468 ac_cpp='$CPP $CPPFLAGS'
3469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 # On Suns, sometimes $CPP names a directory.
3475 if test -n "$CPP" && test -d "$CPP"; then
3476 CPP=
3479 #### Some systems specify a CPP to use unless we are using GCC.
3480 #### Now that we know whether we are using GCC, we can decide whether
3481 #### to use that one.
3482 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3483 then
3484 CPP="$NON_GNU_CPP"
3487 #### Some systems specify a CC to use unless we are using GCC.
3488 #### Now that we know whether we are using GCC, we can decide whether
3489 #### to use that one.
3490 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3491 test x$cc_specified != xyes
3492 then
3493 CC="$NON_GNU_CC"
3496 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3497 then
3498 CC="$CC $GCC_TEST_OPTIONS"
3501 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3502 then
3503 CC="$CC $NON_GCC_TEST_OPTIONS"
3506 #### Some other nice autoconf tests. If you add a test here which
3507 #### should make an entry in src/config.h, don't forget to add an
3508 #### #undef clause to src/config.h.in for autoconf to modify.
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3512 LN_S=$as_ln_s
3513 if test "$LN_S" = "ln -s"; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3530 CPP=
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536 # Double quotes because CPP needs to be expanded
3537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <assert.h>
3554 Syntax error
3555 _ACEOF
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 else
3567 ac_cpp_err=
3569 else
3570 ac_cpp_err=yes
3572 if test -z "$ac_cpp_err"; then
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 # Broken: fails on valid input.
3579 continue
3581 rm -f conftest.err conftest.$ac_ext
3583 # OK, works on sane cases. Now check whether non-existent headers
3584 # can be detected and how.
3585 cat >conftest.$ac_ext <<_ACEOF
3586 #line $LINENO "configure"
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3593 _ACEOF
3594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 else
3605 ac_cpp_err=
3607 else
3608 ac_cpp_err=yes
3610 if test -z "$ac_cpp_err"; then
3611 # Broken: success on invalid input.
3612 continue
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Passes both tests.
3618 ac_preproc_ok=:
3619 break
3621 rm -f conftest.err conftest.$ac_ext
3623 done
3624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625 rm -f conftest.err conftest.$ac_ext
3626 if $ac_preproc_ok; then
3627 break
3630 done
3631 ac_cv_prog_CPP=$CPP
3634 CPP=$ac_cv_prog_CPP
3635 else
3636 ac_cv_prog_CPP=$CPP
3638 echo "$as_me:$LINENO: result: $CPP" >&5
3639 echo "${ECHO_T}$CPP" >&6
3640 ac_preproc_ok=false
3641 for ac_c_preproc_warn_flag in '' yes
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <assert.h>
3655 Syntax error
3656 _ACEOF
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev/null; then
3665 if test -s conftest.err; then
3666 ac_cpp_err=$ac_c_preproc_warn_flag
3667 else
3668 ac_cpp_err=
3670 else
3671 ac_cpp_err=yes
3673 if test -z "$ac_cpp_err"; then
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Broken: fails on valid input.
3680 continue
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether non-existent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3694 _ACEOF
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3697 ac_status=$?
3698 grep -v '^ *+' conftest.er1 >conftest.err
3699 rm -f conftest.er1
3700 cat conftest.err >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev/null; then
3703 if test -s conftest.err; then
3704 ac_cpp_err=$ac_c_preproc_warn_flag
3705 else
3706 ac_cpp_err=
3708 else
3709 ac_cpp_err=yes
3711 if test -z "$ac_cpp_err"; then
3712 # Broken: success on invalid input.
3713 continue
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3722 rm -f conftest.err conftest.$ac_ext
3724 done
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.$ac_ext
3727 if $ac_preproc_ok; then
3729 else
3730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3731 See \`config.log' for more details." >&5
3732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&2;}
3734 { (exit 1); exit 1; }; }
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 # Find a good install program. We prefer a C program (faster),
3744 # so one script is as good as another. But avoid the broken or
3745 # incompatible versions:
3746 # SysV /etc/install, /usr/sbin/install
3747 # SunOS /usr/etc/install
3748 # IRIX /sbin/install
3749 # AIX /bin/install
3750 # AmigaOS /C/install, which installs bootblocks on floppy discs
3751 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3752 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3753 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3754 # ./install, which can be erroneously created by make from ./install.sh.
3755 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3756 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3757 if test -z "$INSTALL"; then
3758 if test "${ac_cv_path_install+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 # Account for people who put trailing slashes in PATH elements.
3767 case $as_dir/ in
3768 ./ | .// | /cC/* | \
3769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3770 /usr/ucb/* ) ;;
3772 # OSF1 and SCO ODT 3.0 have their own names for install.
3773 # Don't use installbsd from OSF since it installs stuff as root
3774 # by default.
3775 for ac_prog in ginstall scoinst install; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3778 if test $ac_prog = install &&
3779 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3780 # AIX install. It has an incompatible calling convention.
3782 elif test $ac_prog = install &&
3783 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3784 # program-specific install script used by HP pwplus--don't use.
3786 else
3787 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3788 break 3
3791 done
3792 done
3794 esac
3795 done
3799 if test "${ac_cv_path_install+set}" = set; then
3800 INSTALL=$ac_cv_path_install
3801 else
3802 # As a last resort, use the slow shell script. We don't cache a
3803 # path for INSTALL within a source directory, because that will
3804 # break other packages using the cache if that directory is
3805 # removed, or if the path is relative.
3806 INSTALL=$ac_install_sh
3809 echo "$as_me:$LINENO: result: $INSTALL" >&5
3810 echo "${ECHO_T}$INSTALL" >&6
3812 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3813 # It thinks the first close brace ends the variable substitution.
3814 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3816 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3818 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3820 if test "x$RANLIB" = x; then
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_RANLIB+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 if test -n "$RANLIB"; then
3830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3843 done
3844 done
3848 RANLIB=$ac_cv_prog_RANLIB
3849 if test -n "$RANLIB"; then
3850 echo "$as_me:$LINENO: result: $RANLIB" >&5
3851 echo "${ECHO_T}$RANLIB" >&6
3852 else
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3858 if test -z "$ac_cv_prog_RANLIB"; then
3859 ac_ct_RANLIB=$RANLIB
3860 # Extract the first word of "ranlib", so it can be a program name with args.
3861 set dummy ranlib; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 if test -n "$ac_ct_RANLIB"; then
3868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_RANLIB="ranlib"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3888 if test -n "$ac_ct_RANLIB"; then
3889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3891 else
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 RANLIB=$ac_ct_RANLIB
3897 else
3898 RANLIB="$ac_cv_prog_RANLIB"
3904 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3905 then
3906 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3909 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3910 then
3911 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3916 echo "$as_me:$LINENO: checking for egrep" >&5
3917 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3918 if test "${ac_cv_prog_egrep+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3922 then ac_cv_prog_egrep='grep -E'
3923 else ac_cv_prog_egrep='egrep'
3926 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3927 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3928 EGREP=$ac_cv_prog_egrep
3932 echo "$as_me:$LINENO: checking for AIX" >&5
3933 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #ifdef _AIX
3943 #endif
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev/null 2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h <<\_ACEOF
3951 #define _ALL_SOURCE 1
3952 _ACEOF
3954 else
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3958 rm -f conftest*
3962 #### Extract some information from the operating system and machine files.
3964 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3965 - which libraries the lib-src programs will want, and
3966 - whether the GNU malloc routines are usable..." >&5
3967 echo "$as_me: checking the machine- and system-dependent files to find out
3968 - which libraries the lib-src programs will want, and
3969 - whether the GNU malloc routines are usable..." >&6;}
3971 ### First figure out CFLAGS (which we use for running the compiler here)
3972 ### and REAL_CFLAGS (which we use for real compilation).
3973 ### The two are the same except on a few systems, where they are made
3974 ### different to work around various lossages. For example,
3975 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3976 ### as implying static linking.
3978 ### If the CFLAGS env var is specified, we use that value
3979 ### instead of the default.
3981 ### It's not important that this name contain the PID; you can't run
3982 ### two configures in the same directory and have anything work
3983 ### anyway.
3984 tempcname="conftest.c"
3986 echo '
3987 #include "'${srcdir}'/src/'${opsysfile}'"
3988 #include "'${srcdir}'/src/'${machfile}'"
3989 #ifndef LIBS_MACHINE
3990 #define LIBS_MACHINE
3991 #endif
3992 #ifndef LIBS_SYSTEM
3993 #define LIBS_SYSTEM
3994 #endif
3995 #ifndef C_SWITCH_SYSTEM
3996 #define C_SWITCH_SYSTEM
3997 #endif
3998 #ifndef C_SWITCH_MACHINE
3999 #define C_SWITCH_MACHINE
4000 #endif
4001 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4002 configure___ c_switch_system=C_SWITCH_SYSTEM
4003 configure___ c_switch_machine=C_SWITCH_MACHINE
4005 #ifndef LIB_X11_LIB
4006 #define LIB_X11_LIB -lX11
4007 #endif
4009 #ifndef LIBX11_MACHINE
4010 #define LIBX11_MACHINE
4011 #endif
4013 #ifndef LIBX11_SYSTEM
4014 #define LIBX11_SYSTEM
4015 #endif
4016 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4018 #ifdef UNEXEC
4019 configure___ unexec=UNEXEC
4020 #else
4021 configure___ unexec=unexec.o
4022 #endif
4024 #ifdef SYSTEM_MALLOC
4025 configure___ system_malloc=yes
4026 #else
4027 configure___ system_malloc=no
4028 #endif
4030 #ifdef USE_MMAP_FOR_BUFFERS
4031 configure___ use_mmap_for_buffers=yes
4032 #else
4033 configure___ use_mmap_for_buffers=no
4034 #endif
4036 #ifndef C_DEBUG_SWITCH
4037 #define C_DEBUG_SWITCH -g
4038 #endif
4040 #ifndef C_OPTIMIZE_SWITCH
4041 #ifdef __GNUC__
4042 #define C_OPTIMIZE_SWITCH -O2
4043 #else
4044 #define C_OPTIMIZE_SWITCH -O
4045 #endif
4046 #endif
4048 #ifndef LD_SWITCH_MACHINE
4049 #define LD_SWITCH_MACHINE
4050 #endif
4052 #ifndef LD_SWITCH_SYSTEM
4053 #define LD_SWITCH_SYSTEM
4054 #endif
4056 #ifndef LD_SWITCH_X_SITE_AUX
4057 #define LD_SWITCH_X_SITE_AUX
4058 #endif
4060 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4061 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4063 #ifdef THIS_IS_CONFIGURE
4065 /* Get the CFLAGS for tests in configure. */
4066 #ifdef __GNUC__
4067 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4068 #else
4069 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4070 #endif
4072 #else /* not THIS_IS_CONFIGURE */
4074 /* Get the CFLAGS for real compilation. */
4075 #ifdef __GNUC__
4076 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4077 #else
4078 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4079 #endif
4081 #endif /* not THIS_IS_CONFIGURE */
4082 ' > ${tempcname}
4084 # The value of CPP is a quoted variable reference, so we need to do this
4085 # to get its actual value...
4086 CPP=`eval "echo $CPP"`
4087 eval `${CPP} -Isrc ${tempcname} \
4088 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4089 if test "x$SPECIFIED_CFLAGS" = x; then
4090 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4091 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4092 else
4093 REAL_CFLAGS="$CFLAGS"
4095 rm ${tempcname}
4097 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4099 ### Make sure subsequent tests use flags consistent with the build flags.
4101 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4102 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4103 else
4104 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4110 cat >>confdefs.h <<\_ACEOF
4111 #define _GNU_SOURCE 1
4112 _ACEOF
4116 # Check whether --enable-largefile or --disable-largefile was given.
4117 if test "${enable_largefile+set}" = set; then
4118 enableval="$enable_largefile"
4121 if test "$enable_largefile" != no; then
4123 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4124 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4125 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 ac_cv_sys_largefile_CC=no
4129 if test "$GCC" != yes; then
4130 ac_save_CC=$CC
4131 while :; do
4132 # IRIX 6.2 and later do not support large files by default,
4133 # so use the C compiler's -n32 option if that helps.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4149 ? 1 : -1];
4151 main ()
4155 return 0;
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -s conftest.$ac_objext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 break
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4176 rm -f conftest.$ac_objext
4177 CC="$CC -n32"
4178 rm -f conftest.$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_sys_largefile_CC=' -n32'; break
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4196 rm -f conftest.$ac_objext
4197 break
4198 done
4199 CC=$ac_save_CC
4200 rm -f conftest.$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4204 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4205 if test "$ac_cv_sys_largefile_CC" != no; then
4206 CC=$CC$ac_cv_sys_largefile_CC
4209 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4210 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4211 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 else
4214 while :; do
4215 ac_cv_sys_file_offset_bits=no
4216 cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 /* Check that off_t can represent 2**63 - 1 correctly.
4225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4226 since some C++ compilers masquerading as C compilers
4227 incorrectly reject 9223372036854775807. */
4228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4230 && LARGE_OFF_T % 2147483647 == 1)
4231 ? 1 : -1];
4233 main ()
4237 return 0;
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try='test -s conftest.$ac_objext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4252 break
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 rm -f conftest.$ac_objext conftest.$ac_ext
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #define _FILE_OFFSET_BITS 64
4267 #include <sys/types.h>
4268 /* Check that off_t can represent 2**63 - 1 correctly.
4269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4270 since some C++ compilers masquerading as C compilers
4271 incorrectly reject 9223372036854775807. */
4272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4274 && LARGE_OFF_T % 2147483647 == 1)
4275 ? 1 : -1];
4277 main ()
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 ac_cv_sys_file_offset_bits=64; break
4297 else
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4302 rm -f conftest.$ac_objext conftest.$ac_ext
4303 break
4304 done
4306 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4307 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4308 if test "$ac_cv_sys_file_offset_bits" != no; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4312 _ACEOF
4315 rm -f conftest*
4316 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4317 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4318 if test "${ac_cv_sys_large_files+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 while :; do
4322 ac_cv_sys_large_files=no
4323 cat >conftest.$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4325 /* confdefs.h. */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 /* Check that off_t can represent 2**63 - 1 correctly.
4332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4333 since some C++ compilers masquerading as C compilers
4334 incorrectly reject 9223372036854775807. */
4335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4337 && LARGE_OFF_T % 2147483647 == 1)
4338 ? 1 : -1];
4340 main ()
4344 return 0;
4346 _ACEOF
4347 rm -f conftest.$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 break
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4365 rm -f conftest.$ac_objext conftest.$ac_ext
4366 cat >conftest.$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #define _LARGE_FILES 1
4374 #include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377 since some C++ compilers masquerading as C compilers
4378 incorrectly reject 9223372036854775807. */
4379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381 && LARGE_OFF_T % 2147483647 == 1)
4382 ? 1 : -1];
4384 main ()
4388 return 0;
4390 _ACEOF
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_sys_large_files=1; break
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4409 rm -f conftest.$ac_objext conftest.$ac_ext
4410 break
4411 done
4413 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4414 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4415 if test "$ac_cv_sys_large_files" != no; then
4417 cat >>confdefs.h <<_ACEOF
4418 #define _LARGE_FILES $ac_cv_sys_large_files
4419 _ACEOF
4422 rm -f conftest*
4426 if test "${with_sound}" != "no"; then
4427 # Sound support for GNU/Linux and the free BSDs.
4428 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4429 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4430 if test "${ac_cv_header_stdc+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line $LINENO "configure"
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <stdlib.h>
4441 #include <stdarg.h>
4442 #include <string.h>
4443 #include <float.h>
4446 main ()
4450 return 0;
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_cv_header_stdc=yes
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4470 ac_cv_header_stdc=no
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <string.h>
4485 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "memchr" >/dev/null 2>&1; then
4489 else
4490 ac_cv_header_stdc=no
4492 rm -f conftest*
4496 if test $ac_cv_header_stdc = yes; then
4497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 #include <stdlib.h>
4507 _ACEOF
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev/null 2>&1; then
4511 else
4512 ac_cv_header_stdc=no
4514 rm -f conftest*
4518 if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then
4522 else
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <ctype.h>
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534 #else
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540 #endif
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4544 main ()
4546 int i;
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4550 exit(2);
4551 exit (0);
4553 _ACEOF
4554 rm -f conftest$ac_exeext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4566 else
4567 echo "$as_me: program exited with status $ac_status" >&5
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 ( exit $ac_status )
4572 ac_cv_header_stdc=no
4574 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4579 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4580 if test $ac_cv_header_stdc = yes; then
4582 cat >>confdefs.h <<\_ACEOF
4583 #define STDC_HEADERS 1
4584 _ACEOF
4588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4598 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4599 inttypes.h stdint.h unistd.h
4601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4602 echo "$as_me:$LINENO: checking for $ac_header" >&5
4603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 cat >conftest.$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 $ac_includes_default
4616 #include <$ac_header>
4617 _ACEOF
4618 rm -f conftest.$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 eval "$as_ac_Header=yes"
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 eval "$as_ac_Header=no"
4637 rm -f conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4642 cat >>confdefs.h <<_ACEOF
4643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4644 _ACEOF
4648 done
4654 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4665 else
4666 # Is the header compilable?
4667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4677 #include <$ac_header>
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4696 ac_header_compiler=no
4698 rm -f conftest.$ac_objext conftest.$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <$ac_header>
4713 _ACEOF
4714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 ac_status=$?
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_c_preproc_warn_flag
4724 else
4725 ac_cpp_err=
4727 else
4728 ac_cpp_err=yes
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_header_preproc=no
4738 rm -f conftest.err conftest.$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc in
4744 yes:no )
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 cat <<\_ASBOX
4751 ## ------------------------------------ ##
4752 ## Report this to bug-autoconf@gnu.org. ##
4753 ## ------------------------------------ ##
4754 _ASBOX
4756 sed "s/^/$as_me: WARNING: /" >&2
4758 no:yes )
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4766 cat <<\_ASBOX
4767 ## ------------------------------------ ##
4768 ## Report this to bug-autoconf@gnu.org. ##
4769 ## ------------------------------------ ##
4770 _ASBOX
4772 sed "s/^/$as_me: WARNING: /" >&2
4774 esac
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 eval "$as_ac_Header=$ac_header_preproc"
4782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4787 cat >>confdefs.h <<_ACEOF
4788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4789 _ACEOF
4793 done
4795 # Emulation library used on NetBSD.
4796 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4797 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4798 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 ac_check_lib_save_LIBS=$LIBS
4802 LIBS="-lossaudio $LIBS"
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 /* Override any gcc2 internal prototype to avoid an error. */
4812 #ifdef __cplusplus
4813 extern "C"
4814 #endif
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4817 char _oss_ioctl ();
4819 main ()
4821 _oss_ioctl ();
4823 return 0;
4825 _ACEOF
4826 rm -f conftest.$ac_objext conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_lib_ossaudio__oss_ioctl=yes
4839 else
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_lib_ossaudio__oss_ioctl=no
4845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4850 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4851 LIBSOUND=-lossaudio
4852 else
4853 LIBSOUND=
4881 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4882 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4883 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
4884 sys/param.h sys/vlimit.h sys/resource.h
4886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4895 else
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4907 #include <$ac_header>
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 (eval $ac_try) 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_header_compiler=yes
4922 else
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 ac_header_compiler=no
4928 rm -f conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6
4932 # Is the header present?
4933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <$ac_header>
4943 _ACEOF
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null; then
4952 if test -s conftest.err; then
4953 ac_cpp_err=$ac_c_preproc_warn_flag
4954 else
4955 ac_cpp_err=
4957 else
4958 ac_cpp_err=yes
4960 if test -z "$ac_cpp_err"; then
4961 ac_header_preproc=yes
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 ac_header_preproc=no
4968 rm -f conftest.err conftest.$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970 echo "${ECHO_T}$ac_header_preproc" >&6
4972 # So? What about this header?
4973 case $ac_header_compiler:$ac_header_preproc in
4974 yes:no )
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4980 cat <<\_ASBOX
4981 ## ------------------------------------ ##
4982 ## Report this to bug-autoconf@gnu.org. ##
4983 ## ------------------------------------ ##
4984 _ASBOX
4986 sed "s/^/$as_me: WARNING: /" >&2
4988 no:yes )
4989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4996 cat <<\_ASBOX
4997 ## ------------------------------------ ##
4998 ## Report this to bug-autoconf@gnu.org. ##
4999 ## ------------------------------------ ##
5000 _ASBOX
5002 sed "s/^/$as_me: WARNING: /" >&2
5004 esac
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 eval "$as_ac_Header=$ac_header_preproc"
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5019 _ACEOF
5023 done
5026 for ac_header in term.h
5028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 echo "$as_me:$LINENO: checking for $ac_header" >&5
5030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <$ac_header>
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045 ac_status=$?
5046 grep -v '^ *+' conftest.er1 >conftest.err
5047 rm -f conftest.er1
5048 cat conftest.err >&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev/null; then
5051 if test -s conftest.err; then
5052 ac_cpp_err=$ac_c_preproc_warn_flag
5053 else
5054 ac_cpp_err=
5056 else
5057 ac_cpp_err=yes
5059 if test -z "$ac_cpp_err"; then
5060 eval "$as_ac_Header=yes"
5061 else
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 eval "$as_ac_Header=no"
5067 rm -f conftest.err conftest.$ac_ext
5069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5072 cat >>confdefs.h <<_ACEOF
5073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5074 _ACEOF
5078 done
5080 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5082 if test "${ac_cv_header_stdc+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 cat >conftest.$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <stdlib.h>
5093 #include <stdarg.h>
5094 #include <string.h>
5095 #include <float.h>
5098 main ()
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_header_stdc=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 ac_cv_header_stdc=no
5124 rm -f conftest.$ac_objext conftest.$ac_ext
5126 if test $ac_cv_header_stdc = yes; then
5127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <string.h>
5137 _ACEOF
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "memchr" >/dev/null 2>&1; then
5141 else
5142 ac_cv_header_stdc=no
5144 rm -f conftest*
5148 if test $ac_cv_header_stdc = yes; then
5149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 #include <stdlib.h>
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then
5163 else
5164 ac_cv_header_stdc=no
5166 rm -f conftest*
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then
5174 else
5175 cat >conftest.$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5177 /* confdefs.h. */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <ctype.h>
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5186 #else
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #endif
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5196 main ()
5198 int i;
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5202 exit(2);
5203 exit (0);
5205 _ACEOF
5206 rm -f conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 (eval $ac_try) 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5218 else
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ( exit $ac_status )
5224 ac_cv_header_stdc=no
5226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5232 if test $ac_cv_header_stdc = yes; then
5234 cat >>confdefs.h <<\_ACEOF
5235 #define STDC_HEADERS 1
5236 _ACEOF
5240 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5241 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5242 if test "${ac_cv_header_time+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 #include <sys/types.h>
5253 #include <sys/time.h>
5254 #include <time.h>
5257 main ()
5259 if ((struct tm *) 0)
5260 return 0;
5262 return 0;
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_header_time=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_cv_header_time=no
5284 rm -f conftest.$ac_objext conftest.$ac_ext
5286 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5287 echo "${ECHO_T}$ac_cv_header_time" >&6
5288 if test $ac_cv_header_time = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define TIME_WITH_SYS_TIME 1
5292 _ACEOF
5296 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5297 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5298 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line $LINENO "configure"
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 $ac_includes_default
5310 main ()
5312 #ifndef sys_siglist
5313 char *p = (char *) sys_siglist;
5314 #endif
5317 return 0;
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_have_decl_sys_siglist=yes
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_cv_have_decl_sys_siglist=no
5339 rm -f conftest.$ac_objext conftest.$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5342 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5343 if test $ac_cv_have_decl_sys_siglist = yes; then
5345 cat >>confdefs.h <<_ACEOF
5346 #define HAVE_DECL_SYS_SIGLIST 1
5347 _ACEOF
5350 else
5351 cat >>confdefs.h <<_ACEOF
5352 #define HAVE_DECL_SYS_SIGLIST 0
5353 _ACEOF
5359 if test $ac_cv_have_decl_sys_siglist != yes; then
5360 # For Tru64, at least:
5361 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5362 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5363 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5375 main ()
5377 #ifndef __sys_siglist
5378 char *p = (char *) __sys_siglist;
5379 #endif
5382 return 0;
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_have_decl___sys_siglist=yes
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5402 ac_cv_have_decl___sys_siglist=no
5404 rm -f conftest.$ac_objext conftest.$ac_ext
5406 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5407 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5408 if test $ac_cv_have_decl___sys_siglist = yes; then
5410 cat >>confdefs.h <<_ACEOF
5411 #define HAVE_DECL___SYS_SIGLIST 1
5412 _ACEOF
5415 else
5416 cat >>confdefs.h <<_ACEOF
5417 #define HAVE_DECL___SYS_SIGLIST 0
5418 _ACEOF
5424 if test $ac_cv_have_decl___sys_siglist = yes; then
5426 cat >>confdefs.h <<\_ACEOF
5427 #define sys_siglist __sys_siglist
5428 _ACEOF
5432 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5433 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 cat >conftest.$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <sys/types.h>
5445 #include <sys/wait.h>
5446 #ifndef WEXITSTATUS
5447 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5448 #endif
5449 #ifndef WIFEXITED
5450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5451 #endif
5454 main ()
5456 int s;
5457 wait (&s);
5458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5460 return 0;
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 (eval $ac_compile) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_header_sys_wait_h=yes
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_header_sys_wait_h=no
5482 rm -f conftest.$ac_objext conftest.$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5485 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5486 if test $ac_cv_header_sys_wait_h = yes; then
5488 cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_SYS_WAIT_H 1
5490 _ACEOF
5495 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5496 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5497 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #ifdef TIME_WITH_SYS_TIME
5508 #include <sys/time.h>
5509 #include <time.h>
5510 #else
5511 #ifdef HAVE_SYS_TIME_H
5512 #include <sys/time.h>
5513 #else
5514 #include <time.h>
5515 #endif
5516 #endif
5517 #ifdef HAVE_UTIME_H
5518 #include <utime.h>
5519 #endif
5521 main ()
5523 static struct utimbuf x; x.actime = x.modtime;
5525 return 0;
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -s conftest.$ac_objext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 emacs_cv_struct_utimbuf=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 emacs_cv_struct_utimbuf=no
5547 rm -f conftest.$ac_objext conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5550 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5551 if test $emacs_cv_struct_utimbuf = yes; then
5553 cat >>confdefs.h <<\_ACEOF
5554 #define HAVE_STRUCT_UTIMBUF 1
5555 _ACEOF
5559 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5560 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5561 if test "${ac_cv_type_signal+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 cat >conftest.$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 #include <signal.h>
5573 #ifdef signal
5574 # undef signal
5575 #endif
5576 #ifdef __cplusplus
5577 extern "C" void (*signal (int, void (*)(int)))(int);
5578 #else
5579 void (*signal ()) ();
5580 #endif
5583 main ()
5585 int i;
5587 return 0;
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_type_signal=void
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 ac_cv_type_signal=int
5609 rm -f conftest.$ac_objext conftest.$ac_ext
5611 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5612 echo "${ECHO_T}$ac_cv_type_signal" >&6
5614 cat >>confdefs.h <<_ACEOF
5615 #define RETSIGTYPE $ac_cv_type_signal
5616 _ACEOF
5620 echo "$as_me:$LINENO: checking for speed_t" >&5
5621 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5622 if test "${emacs_cv_speed_t+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625 cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <termios.h>
5634 main ()
5636 speed_t x = 1;
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 emacs_cv_speed_t=yes
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 emacs_cv_speed_t=no
5660 rm -f conftest.$ac_objext conftest.$ac_ext
5662 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5663 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5664 if test $emacs_cv_speed_t = yes; then
5666 cat >>confdefs.h <<\_ACEOF
5667 #define HAVE_SPEED_T 1
5668 _ACEOF
5672 echo "$as_me:$LINENO: checking for struct timeval" >&5
5673 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5674 if test "${emacs_cv_struct_timeval+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #ifdef TIME_WITH_SYS_TIME
5685 #include <sys/time.h>
5686 #include <time.h>
5687 #else
5688 #ifdef HAVE_SYS_TIME_H
5689 #include <sys/time.h>
5690 #else
5691 #include <time.h>
5692 #endif
5693 #endif
5695 main ()
5697 static struct timeval x; x.tv_sec = x.tv_usec;
5699 return 0;
5701 _ACEOF
5702 rm -f conftest.$ac_objext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -s conftest.$ac_objext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 emacs_cv_struct_timeval=yes
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 emacs_cv_struct_timeval=no
5721 rm -f conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5724 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5725 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5726 if test $emacs_cv_struct_timeval = yes; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define HAVE_TIMEVAL 1
5730 _ACEOF
5734 echo "$as_me:$LINENO: checking for struct exception" >&5
5735 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5736 if test "${emacs_cv_struct_exception+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line $LINENO "configure"
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <math.h>
5748 main ()
5750 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5752 return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 emacs_cv_struct_exception=yes
5768 else
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 emacs_cv_struct_exception=no
5774 rm -f conftest.$ac_objext conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5777 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5778 HAVE_EXCEPTION=$emacs_cv_struct_exception
5779 if test $emacs_cv_struct_exception != yes; then
5781 cat >>confdefs.h <<\_ACEOF
5782 #define NO_MATHERR 1
5783 _ACEOF
5787 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5788 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5789 if test "${ac_cv_struct_tm+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <sys/types.h>
5800 #include <time.h>
5803 main ()
5805 struct tm *tp; tp->tm_sec;
5807 return 0;
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_struct_tm=time.h
5823 else
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_cv_struct_tm=sys/time.h
5829 rm -f conftest.$ac_objext conftest.$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5832 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5833 if test $ac_cv_struct_tm = sys/time.h; then
5835 cat >>confdefs.h <<\_ACEOF
5836 #define TM_IN_SYS_TIME 1
5837 _ACEOF
5841 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5842 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5843 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 #include <$ac_cv_struct_tm>
5858 main ()
5860 static struct tm ac_aggr;
5861 if (ac_aggr.tm_zone)
5862 return 0;
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_member_struct_tm_tm_zone=yes
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 cat >conftest.$ac_ext <<_ACEOF
5885 #line $LINENO "configure"
5886 /* confdefs.h. */
5887 _ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 #include <$ac_cv_struct_tm>
5896 main ()
5898 static struct tm ac_aggr;
5899 if (sizeof ac_aggr.tm_zone)
5900 return 0;
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_member_struct_tm_tm_zone=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_cv_member_struct_tm_tm_zone=no
5924 rm -f conftest.$ac_objext conftest.$ac_ext
5926 rm -f conftest.$ac_objext conftest.$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5929 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5930 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_STRUCT_TM_TM_ZONE 1
5934 _ACEOF
5939 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_TM_ZONE 1
5943 _ACEOF
5945 else
5946 echo "$as_me:$LINENO: checking for tzname" >&5
5947 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5948 if test "${ac_cv_var_tzname+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <time.h>
5959 #ifndef tzname /* For SGI. */
5960 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5961 #endif
5964 main ()
5966 atoi(*tzname);
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -s conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_var_tzname=yes
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_cv_var_tzname=no
5990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5992 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5993 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5994 if test $ac_cv_var_tzname = yes; then
5996 cat >>confdefs.h <<\_ACEOF
5997 #define HAVE_TZNAME 1
5998 _ACEOF
6003 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6004 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6005 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <time.h>
6018 main ()
6020 static struct tm ac_aggr;
6021 if (ac_aggr.tm_gmtoff)
6022 return 0;
6024 return 0;
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_member_struct_tm_tm_gmtoff=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 cat >conftest.$ac_ext <<_ACEOF
6045 #line $LINENO "configure"
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <time.h>
6054 main ()
6056 static struct tm ac_aggr;
6057 if (sizeof ac_aggr.tm_gmtoff)
6058 return 0;
6060 return 0;
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_member_struct_tm_tm_gmtoff=yes
6076 else
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6080 ac_cv_member_struct_tm_tm_gmtoff=no
6082 rm -f conftest.$ac_objext conftest.$ac_ext
6084 rm -f conftest.$ac_objext conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6087 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6088 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_TM_GMTOFF 1
6092 _ACEOF
6098 echo "$as_me:$LINENO: checking for function prototypes" >&5
6099 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6100 if test "$ac_cv_prog_cc_stdc" != no; then
6101 echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6
6104 cat >>confdefs.h <<\_ACEOF
6105 #define PROTOTYPES 1
6106 _ACEOF
6109 cat >>confdefs.h <<\_ACEOF
6110 #define __PROTOTYPES 1
6111 _ACEOF
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6118 echo "$as_me:$LINENO: checking for working volatile" >&5
6119 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6120 if test "${ac_cv_c_volatile+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6132 main ()
6135 volatile int x;
6136 int * volatile y;
6138 return 0;
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_c_volatile=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_cv_c_volatile=no
6160 rm -f conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6163 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6164 if test $ac_cv_c_volatile = no; then
6166 cat >>confdefs.h <<\_ACEOF
6167 #define volatile
6168 _ACEOF
6172 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6174 if test "${ac_cv_c_const+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 cat >conftest.$ac_ext <<_ACEOF
6178 #line $LINENO "configure"
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6186 main ()
6188 /* FIXME: Include the comments suggested by Paul. */
6189 #ifndef __cplusplus
6190 /* Ultrix mips cc rejects this. */
6191 typedef int charset[2];
6192 const charset x;
6193 /* SunOS 4.1.1 cc rejects this. */
6194 char const *const *ccp;
6195 char **p;
6196 /* NEC SVR4.0.2 mips cc rejects this. */
6197 struct point {int x, y;};
6198 static struct point const zero = {0,0};
6199 /* AIX XL C 1.02.0.0 rejects this.
6200 It does not let you subtract one const X* pointer from another in
6201 an arm of an if-expression whose if-part is not a constant
6202 expression */
6203 const char *g = "string";
6204 ccp = &g + (g ? g-g : 0);
6205 /* HPUX 7.0 cc rejects these. */
6206 ++ccp;
6207 p = (char**) ccp;
6208 ccp = (char const *const *) p;
6209 { /* SCO 3.2v4 cc rejects this. */
6210 char *t;
6211 char const *s = 0 ? (char *) 0 : (char const *) 0;
6213 *t++ = 0;
6215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6216 int x[] = {25, 17};
6217 const int *foo = &x[0];
6218 ++foo;
6220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6221 typedef const int *iptr;
6222 iptr p = 0;
6223 ++p;
6225 { /* AIX XL C 1.02.0.0 rejects this saying
6226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6227 struct s { int j; const int *ap[3]; };
6228 struct s *b; b->j = 5;
6230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6231 const int foo = 10;
6233 #endif
6236 return 0;
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_c_const=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_c_const=no
6258 rm -f conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6261 echo "${ECHO_T}$ac_cv_c_const" >&6
6262 if test $ac_cv_c_const = no; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define const
6266 _ACEOF
6270 echo "$as_me:$LINENO: checking for void * support" >&5
6271 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6272 if test "${emacs_cv_void_star+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6284 main ()
6286 void * foo;
6288 return 0;
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 emacs_cv_void_star=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 emacs_cv_void_star=no
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6313 echo "${ECHO_T}$emacs_cv_void_star" >&6
6314 if test $emacs_cv_void_star = yes; then
6315 cat >>confdefs.h <<\_ACEOF
6316 #define POINTER_TYPE void
6317 _ACEOF
6319 else
6320 cat >>confdefs.h <<\_ACEOF
6321 #define POINTER_TYPE char
6322 _ACEOF
6328 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6329 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6331 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 cat >conftest.make <<\_ACEOF
6335 all:
6336 @echo 'ac_maketemp="$(MAKE)"'
6337 _ACEOF
6338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6339 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6340 if test -n "$ac_maketemp"; then
6341 eval ac_cv_prog_make_${ac_make}_set=yes
6342 else
6343 eval ac_cv_prog_make_${ac_make}_set=no
6345 rm -f conftest.make
6347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6350 SET_MAKE=
6351 else
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6354 SET_MAKE="MAKE=${MAKE-make}"
6358 echo "$as_me:$LINENO: checking for long file names" >&5
6359 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6360 if test "${ac_cv_sys_long_file_names+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 ac_cv_sys_long_file_names=yes
6364 # Test for long file names in all the places we know might matter:
6365 # . the current directory, where building will happen
6366 # $prefix/lib where we will be installing things
6367 # $exec_prefix/lib likewise
6368 # eval it to expand exec_prefix.
6369 # $TMPDIR if set, where it might want to write temporary files
6370 # if $TMPDIR is not set:
6371 # /tmp where it might want to write temporary files
6372 # /var/tmp likewise
6373 # /usr/tmp likewise
6374 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6375 ac_tmpdirs=$TMPDIR
6376 else
6377 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6379 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6380 test -d $ac_dir || continue
6381 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6382 ac_xdir=$ac_dir/cf$$
6383 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6384 ac_tf1=$ac_xdir/conftest9012345
6385 ac_tf2=$ac_xdir/conftest9012346
6386 (echo 1 >$ac_tf1) 2>/dev/null
6387 (echo 2 >$ac_tf2) 2>/dev/null
6388 ac_val=`cat $ac_tf1 2>/dev/null`
6389 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6390 ac_cv_sys_long_file_names=no
6391 rm -rf $ac_xdir 2>/dev/null
6392 break
6394 rm -rf $ac_xdir 2>/dev/null
6395 done
6397 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6398 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6399 if test $ac_cv_sys_long_file_names = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_LONG_FILE_NAMES 1
6403 _ACEOF
6408 #### Choose a window system.
6410 echo "$as_me:$LINENO: checking for X" >&5
6411 echo $ECHO_N "checking for X... $ECHO_C" >&6
6414 # Check whether --with-x or --without-x was given.
6415 if test "${with_x+set}" = set; then
6416 withval="$with_x"
6419 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6420 if test "x$with_x" = xno; then
6421 # The user explicitly disabled X.
6422 have_x=disabled
6423 else
6424 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6425 # Both variables are already set.
6426 have_x=yes
6427 else
6428 if test "${ac_cv_have_x+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 # One or both of the vars are not set, and there is no cached value.
6432 ac_x_includes=no ac_x_libraries=no
6433 rm -fr conftest.dir
6434 if mkdir conftest.dir; then
6435 cd conftest.dir
6436 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6437 cat >Imakefile <<'_ACEOF'
6438 acfindx:
6439 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6440 _ACEOF
6441 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6443 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6444 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6445 for ac_extension in a so sl; do
6446 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6447 test -f $ac_im_libdir/libX11.$ac_extension; then
6448 ac_im_usrlibdir=$ac_im_libdir; break
6450 done
6451 # Screen out bogus values from the imake configuration. They are
6452 # bogus both because they are the default anyway, and because
6453 # using them would break gcc on systems where it needs fixed includes.
6454 case $ac_im_incroot in
6455 /usr/include) ;;
6456 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6457 esac
6458 case $ac_im_usrlibdir in
6459 /usr/lib | /lib) ;;
6460 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6461 esac
6463 cd ..
6464 rm -fr conftest.dir
6467 # Standard set of common directories for X headers.
6468 # Check X11 before X11Rn because it is often a symlink to the current release.
6469 ac_x_header_dirs='
6470 /usr/X11/include
6471 /usr/X11R6/include
6472 /usr/X11R5/include
6473 /usr/X11R4/include
6475 /usr/include/X11
6476 /usr/include/X11R6
6477 /usr/include/X11R5
6478 /usr/include/X11R4
6480 /usr/local/X11/include
6481 /usr/local/X11R6/include
6482 /usr/local/X11R5/include
6483 /usr/local/X11R4/include
6485 /usr/local/include/X11
6486 /usr/local/include/X11R6
6487 /usr/local/include/X11R5
6488 /usr/local/include/X11R4
6490 /usr/X386/include
6491 /usr/x386/include
6492 /usr/XFree86/include/X11
6494 /usr/include
6495 /usr/local/include
6496 /usr/unsupported/include
6497 /usr/athena/include
6498 /usr/local/x11r5/include
6499 /usr/lpp/Xamples/include
6501 /usr/openwin/include
6502 /usr/openwin/share/include'
6504 if test "$ac_x_includes" = no; then
6505 # Guess where to find include files, by looking for Intrinsic.h.
6506 # First, try using that file with no special directory specified.
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 /* confdefs.h. */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <X11/Intrinsic.h>
6515 _ACEOF
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
6526 else
6527 ac_cpp_err=
6529 else
6530 ac_cpp_err=yes
6532 if test -z "$ac_cpp_err"; then
6533 # We can compile using X headers with no special include directory.
6534 ac_x_includes=
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 for ac_dir in $ac_x_header_dirs; do
6540 if test -r "$ac_dir/X11/Intrinsic.h"; then
6541 ac_x_includes=$ac_dir
6542 break
6544 done
6546 rm -f conftest.err conftest.$ac_ext
6547 fi # $ac_x_includes = no
6549 if test "$ac_x_libraries" = no; then
6550 # Check for the libraries.
6551 # See if we find them without any special options.
6552 # Don't add to $LIBS permanently.
6553 ac_save_LIBS=$LIBS
6554 LIBS="-lXt $LIBS"
6555 cat >conftest.$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6557 /* confdefs.h. */
6558 _ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <X11/Intrinsic.h>
6564 main ()
6566 XtMalloc (0)
6568 return 0;
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 LIBS=$ac_save_LIBS
6584 # We can link X programs with no special library path.
6585 ac_x_libraries=
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 LIBS=$ac_save_LIBS
6591 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6593 # Don't even attempt the hair of trying to link an X program!
6594 for ac_extension in a so sl; do
6595 if test -r $ac_dir/libXt.$ac_extension; then
6596 ac_x_libraries=$ac_dir
6597 break 2
6599 done
6600 done
6602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6603 fi # $ac_x_libraries = no
6605 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6606 # Didn't find X anywhere. Cache the known absence of X.
6607 ac_cv_have_x="have_x=no"
6608 else
6609 # Record where we found X for the cache.
6610 ac_cv_have_x="have_x=yes \
6611 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6616 eval "$ac_cv_have_x"
6617 fi # $with_x != no
6619 if test "$have_x" != yes; then
6620 echo "$as_me:$LINENO: result: $have_x" >&5
6621 echo "${ECHO_T}$have_x" >&6
6622 no_x=yes
6623 else
6624 # If each of the values was on the command line, it overrides each guess.
6625 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6626 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6627 # Update the cache value to reflect the command line values.
6628 ac_cv_have_x="have_x=yes \
6629 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6630 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6631 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6634 if test "$no_x" = yes; then
6635 window_system=none
6636 else
6637 window_system=x11
6640 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6641 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6642 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6643 x_default_search_path=""
6644 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6645 x_search_path="\
6646 ${x_library}/X11/%L/%T/%N%C%S:\
6647 ${x_library}/X11/%l/%T/%N%C%S:\
6648 ${x_library}/X11/%T/%N%C%S:\
6649 ${x_library}/X11/%L/%T/%N%S:\
6650 ${x_library}/X11/%l/%T/%N%S:\
6651 ${x_library}/X11/%T/%N%S"
6652 if test x"${x_default_search_path}" = x; then
6653 x_default_search_path=${x_search_path}
6654 else
6655 x_default_search_path="${x_search_path}:${x_default_search_path}"
6657 done
6659 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6660 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6663 if test x"${x_includes}" = x; then
6664 bitmapdir=/usr/include/X11/bitmaps
6665 else
6666 # accumulate include directories that have X11 bitmap subdirectories
6667 bmd_acc="dummyval"
6668 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6669 if test -d "${bmd}/X11/bitmaps"; then
6670 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6672 if test -d "${bmd}/bitmaps"; then
6673 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6675 done
6676 if test ${bmd_acc} != "dummyval"; then
6677 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6681 case "${window_system}" in
6682 x11 )
6683 HAVE_X_WINDOWS=yes
6684 HAVE_X11=yes
6685 case "${with_x_toolkit}" in
6686 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6687 motif ) USE_X_TOOLKIT=MOTIF ;;
6688 no ) USE_X_TOOLKIT=none ;;
6689 * ) USE_X_TOOLKIT=maybe ;;
6690 esac
6692 none )
6693 HAVE_X_WINDOWS=no
6694 HAVE_X11=no
6695 USE_X_TOOLKIT=none
6697 esac
6699 ### If we're using X11, we should use the X menu package.
6700 HAVE_MENUS=no
6701 case ${HAVE_X11} in
6702 yes ) HAVE_MENUS=yes ;;
6703 esac
6705 if test "${opsys}" = "hpux9"; then
6706 case "${x_libraries}" in
6707 *X11R4* )
6708 opsysfile="s/hpux9-x11r4.h"
6710 esac
6713 if test "${opsys}" = "hpux9shr"; then
6714 case "${x_libraries}" in
6715 *X11R4* )
6716 opsysfile="s/hpux9shxr4.h"
6718 esac
6721 ### Compute the unexec source name from the object name.
6722 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6724 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6725 # Assume not, until told otherwise.
6726 GNU_MALLOC=yes
6727 doug_lea_malloc=yes
6728 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6729 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6730 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 /* System header to define __stub macros and hopefully few prototypes,
6741 which can conflict with char malloc_get_state (); below. */
6742 #include <assert.h>
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 #ifdef __cplusplus
6745 extern "C"
6747 #endif
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char malloc_get_state ();
6751 /* The GNU C library defines this for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6755 choke me
6756 #else
6757 char (*f) () = malloc_get_state;
6758 #endif
6759 #ifdef __cplusplus
6761 #endif
6764 main ()
6768 return 0;
6770 _ACEOF
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_func_malloc_get_state=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 ac_cv_func_malloc_get_state=no
6790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6793 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6794 if test $ac_cv_func_malloc_get_state = yes; then
6796 else
6797 doug_lea_malloc=no
6800 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6801 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6802 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 #line $LINENO "configure"
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char malloc_set_state (); below. */
6814 #include <assert.h>
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 #ifdef __cplusplus
6817 extern "C"
6819 #endif
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6822 char malloc_set_state ();
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6827 choke me
6828 #else
6829 char (*f) () = malloc_set_state;
6830 #endif
6831 #ifdef __cplusplus
6833 #endif
6836 main ()
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_func_malloc_set_state=yes
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_cv_func_malloc_set_state=no
6862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6864 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6865 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6866 if test $ac_cv_func_malloc_set_state = yes; then
6868 else
6869 doug_lea_malloc=no
6872 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6873 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6874 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 extern void (* __after_morecore_hook)();
6886 main ()
6888 __after_morecore_hook = 0
6890 return 0;
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 emacs_cv_var___after_morecore_hook=yes
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 emacs_cv_var___after_morecore_hook=no
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6915 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6916 if test $emacs_cv_var___after_morecore_hook = no; then
6917 doug_lea_malloc=no
6919 if test "${system_malloc}" = "yes"; then
6920 GNU_MALLOC=no
6921 GNU_MALLOC_reason="
6922 (The GNU allocators don't work with this system configuration.)"
6924 if test "$doug_lea_malloc" = "yes" ; then
6925 if test "$GNU_MALLOC" = yes ; then
6926 GNU_MALLOC_reason="
6927 (Using Doug Lea's new malloc from the GNU C Library.)"
6930 cat >>confdefs.h <<\_ACEOF
6931 #define DOUG_LEA_MALLOC 1
6932 _ACEOF
6936 if test x"${REL_ALLOC}" = x; then
6937 REL_ALLOC=${GNU_MALLOC}
6943 for ac_header in stdlib.h unistd.h
6945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947 echo "$as_me:$LINENO: checking for $ac_header" >&5
6948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954 else
6955 # Is the header compilable?
6956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6958 cat >conftest.$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 #include <$ac_header>
6967 _ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_header_compiler=yes
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_header_compiler=no
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6989 echo "${ECHO_T}$ac_header_compiler" >&6
6991 # Is the header present?
6992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <$ac_header>
7002 _ACEOF
7003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } >/dev/null; then
7011 if test -s conftest.err; then
7012 ac_cpp_err=$ac_c_preproc_warn_flag
7013 else
7014 ac_cpp_err=
7016 else
7017 ac_cpp_err=yes
7019 if test -z "$ac_cpp_err"; then
7020 ac_header_preproc=yes
7021 else
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7025 ac_header_preproc=no
7027 rm -f conftest.err conftest.$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7029 echo "${ECHO_T}$ac_header_preproc" >&6
7031 # So? What about this header?
7032 case $ac_header_compiler:$ac_header_preproc in
7033 yes:no )
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7039 cat <<\_ASBOX
7040 ## ------------------------------------ ##
7041 ## Report this to bug-autoconf@gnu.org. ##
7042 ## ------------------------------------ ##
7043 _ASBOX
7045 sed "s/^/$as_me: WARNING: /" >&2
7047 no:yes )
7048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7055 cat <<\_ASBOX
7056 ## ------------------------------------ ##
7057 ## Report this to bug-autoconf@gnu.org. ##
7058 ## ------------------------------------ ##
7059 _ASBOX
7061 sed "s/^/$as_me: WARNING: /" >&2
7063 esac
7064 echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 eval "$as_ac_Header=$ac_header_preproc"
7071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7076 cat >>confdefs.h <<_ACEOF
7077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7078 _ACEOF
7082 done
7085 for ac_func in getpagesize
7087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7088 echo "$as_me:$LINENO: checking for $ac_func" >&5
7089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7090 if eval "test \"\${$as_ac_var+set}\" = set"; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 cat >conftest.$ac_ext <<_ACEOF
7094 #line $LINENO "configure"
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 /* System header to define __stub macros and hopefully few prototypes,
7101 which can conflict with char $ac_func (); below. */
7102 #include <assert.h>
7103 /* Override any gcc2 internal prototype to avoid an error. */
7104 #ifdef __cplusplus
7105 extern "C"
7107 #endif
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7110 char $ac_func ();
7111 /* The GNU C library defines this for functions which it implements
7112 to always fail with ENOSYS. Some functions are actually named
7113 something starting with __ and the normal name is an alias. */
7114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7115 choke me
7116 #else
7117 char (*f) () = $ac_func;
7118 #endif
7119 #ifdef __cplusplus
7121 #endif
7124 main ()
7128 return 0;
7130 _ACEOF
7131 rm -f conftest.$ac_objext conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 eval "$as_ac_var=yes"
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 eval "$as_ac_var=no"
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7154 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7157 _ACEOF
7160 done
7162 echo "$as_me:$LINENO: checking for working mmap" >&5
7163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 if test "$cross_compiling" = yes; then
7168 ac_cv_func_mmap_fixed_mapped=no
7169 else
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 /* malloc might have been renamed as rpl_malloc. */
7179 #undef malloc
7181 /* Thanks to Mike Haertel and Jim Avera for this test.
7182 Here is a matrix of mmap possibilities:
7183 mmap private not fixed
7184 mmap private fixed at somewhere currently unmapped
7185 mmap private fixed at somewhere already mapped
7186 mmap shared not fixed
7187 mmap shared fixed at somewhere currently unmapped
7188 mmap shared fixed at somewhere already mapped
7189 For private mappings, we should verify that changes cannot be read()
7190 back from the file, nor mmap's back from the file at a different
7191 address. (There have been systems where private was not correctly
7192 implemented like the infamous i386 svr4.0, and systems where the
7193 VM page cache was not coherent with the file system buffer cache
7194 like early versions of FreeBSD and possibly contemporary NetBSD.)
7195 For shared mappings, we should conversely verify that changes get
7196 propagated back to all the places they're supposed to be.
7198 Grep wants private fixed already mapped.
7199 The main things grep needs to know about mmap are:
7200 * does it exist and is it safe to write into the mmap'd area
7201 * how to use it (BSD variants) */
7203 #include <fcntl.h>
7204 #include <sys/mman.h>
7206 #if !STDC_HEADERS && !HAVE_STDLIB_H
7207 char *malloc ();
7208 #endif
7210 /* This mess was copied from the GNU getpagesize.h. */
7211 #if !HAVE_GETPAGESIZE
7212 /* Assume that all systems that can run configure have sys/param.h. */
7213 # if !HAVE_SYS_PARAM_H
7214 # define HAVE_SYS_PARAM_H 1
7215 # endif
7217 # ifdef _SC_PAGESIZE
7218 # define getpagesize() sysconf(_SC_PAGESIZE)
7219 # else /* no _SC_PAGESIZE */
7220 # if HAVE_SYS_PARAM_H
7221 # include <sys/param.h>
7222 # ifdef EXEC_PAGESIZE
7223 # define getpagesize() EXEC_PAGESIZE
7224 # else /* no EXEC_PAGESIZE */
7225 # ifdef NBPG
7226 # define getpagesize() NBPG * CLSIZE
7227 # ifndef CLSIZE
7228 # define CLSIZE 1
7229 # endif /* no CLSIZE */
7230 # else /* no NBPG */
7231 # ifdef NBPC
7232 # define getpagesize() NBPC
7233 # else /* no NBPC */
7234 # ifdef PAGESIZE
7235 # define getpagesize() PAGESIZE
7236 # endif /* PAGESIZE */
7237 # endif /* no NBPC */
7238 # endif /* no NBPG */
7239 # endif /* no EXEC_PAGESIZE */
7240 # else /* no HAVE_SYS_PARAM_H */
7241 # define getpagesize() 8192 /* punt totally */
7242 # endif /* no HAVE_SYS_PARAM_H */
7243 # endif /* no _SC_PAGESIZE */
7245 #endif /* no HAVE_GETPAGESIZE */
7248 main ()
7250 char *data, *data2, *data3;
7251 int i, pagesize;
7252 int fd;
7254 pagesize = getpagesize ();
7256 /* First, make a file with some known garbage in it. */
7257 data = (char *) malloc (pagesize);
7258 if (!data)
7259 exit (1);
7260 for (i = 0; i < pagesize; ++i)
7261 *(data + i) = rand ();
7262 umask (0);
7263 fd = creat ("conftest.mmap", 0600);
7264 if (fd < 0)
7265 exit (1);
7266 if (write (fd, data, pagesize) != pagesize)
7267 exit (1);
7268 close (fd);
7270 /* Next, try to mmap the file at a fixed address which already has
7271 something else allocated at it. If we can, also make sure that
7272 we see the same garbage. */
7273 fd = open ("conftest.mmap", O_RDWR);
7274 if (fd < 0)
7275 exit (1);
7276 data2 = (char *) malloc (2 * pagesize);
7277 if (!data2)
7278 exit (1);
7279 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7282 exit (1);
7283 for (i = 0; i < pagesize; ++i)
7284 if (*(data + i) != *(data2 + i))
7285 exit (1);
7287 /* Finally, make sure that changes to the mapped area do not
7288 percolate back to the file as seen by read(). (This is a bug on
7289 some variants of i386 svr4.0.) */
7290 for (i = 0; i < pagesize; ++i)
7291 *(data2 + i) = *(data2 + i) + 1;
7292 data3 = (char *) malloc (pagesize);
7293 if (!data3)
7294 exit (1);
7295 if (read (fd, data3, pagesize) != pagesize)
7296 exit (1);
7297 for (i = 0; i < pagesize; ++i)
7298 if (*(data + i) != *(data3 + i))
7299 exit (1);
7300 close (fd);
7301 exit (0);
7303 _ACEOF
7304 rm -f conftest$ac_exeext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 ac_cv_func_mmap_fixed_mapped=yes
7316 else
7317 echo "$as_me: program exited with status $ac_status" >&5
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 ( exit $ac_status )
7322 ac_cv_func_mmap_fixed_mapped=no
7324 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7328 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7329 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7331 cat >>confdefs.h <<\_ACEOF
7332 #define HAVE_MMAP 1
7333 _ACEOF
7336 rm -f conftest.mmap
7338 if test $use_mmap_for_buffers = yes; then
7339 REL_ALLOC=no
7342 LIBS="$libsrc_libs $LIBS"
7345 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7346 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7347 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 ac_check_lib_save_LIBS=$LIBS
7351 LIBS="-ldnet $LIBS"
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any gcc2 internal prototype to avoid an error. */
7361 #ifdef __cplusplus
7362 extern "C"
7363 #endif
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366 char dnet_ntoa ();
7368 main ()
7370 dnet_ntoa ();
7372 return 0;
7374 _ACEOF
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_lib_dnet_dnet_ntoa=yes
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_cv_lib_dnet_dnet_ntoa=no
7394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7395 LIBS=$ac_check_lib_save_LIBS
7397 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7398 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7399 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401 #define HAVE_LIBDNET 1
7402 _ACEOF
7404 LIBS="-ldnet $LIBS"
7409 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7410 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7411 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lXbsd $LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7426 main ()
7428 main ();
7430 return 0;
7432 _ACEOF
7433 rm -f conftest.$ac_objext conftest$ac_exeext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_lib_Xbsd_main=yes
7446 else
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 ac_cv_lib_Xbsd_main=no
7452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7453 LIBS=$ac_check_lib_save_LIBS
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7456 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7457 if test $ac_cv_lib_Xbsd_main = yes; then
7458 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7463 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7464 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7465 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 ac_check_lib_save_LIBS=$LIBS
7469 LIBS="-lpthreads $LIBS"
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 #ifdef __cplusplus
7480 extern "C"
7481 #endif
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7484 char cma_open ();
7486 main ()
7488 cma_open ();
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_pthreads_cma_open=yes
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_lib_pthreads_cma_open=no
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7513 LIBS=$ac_check_lib_save_LIBS
7515 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7516 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7517 if test $ac_cv_lib_pthreads_cma_open = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_LIBPTHREADS 1
7520 _ACEOF
7522 LIBS="-lpthreads $LIBS"
7527 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7528 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7529 if test -d /usr/X386/include; then
7530 HAVE_XFREE386=yes
7531 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7532 else
7533 HAVE_XFREE386=no
7535 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7536 echo "${ECHO_T}$HAVE_XFREE386" >&6
7538 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7539 # used for the tests that follow. We set them back to REAL_CFLAGS and
7540 # REAL_CPPFLAGS later on.
7542 REAL_CPPFLAGS="$CPPFLAGS"
7544 if test "${HAVE_X11}" = "yes"; then
7545 DEFS="$C_SWITCH_X_SITE $DEFS"
7546 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7547 LIBS="$LIBX $LIBS"
7548 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7549 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7551 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7552 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7553 # but it's more convenient here to set LD_RUN_PATH
7554 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7555 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7556 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7557 export LD_RUN_PATH
7560 if test "${opsys}" = "gnu-linux"; then
7561 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7562 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7563 cat >conftest.$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7572 main ()
7574 XOpenDisplay ("foo");
7576 return 0;
7578 _ACEOF
7579 rm -f conftest.$ac_objext conftest$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 xlinux_first_failure=no
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 xlinux_first_failure=yes
7598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7599 if test "${xlinux_first_failure}" = "yes"; then
7600 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7601 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7602 OLD_CPPFLAGS="$CPPFLAGS"
7603 OLD_LIBS="$LIBS"
7604 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7605 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7606 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7607 LIBS="$LIBS -b i486-linuxaout"
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7617 main ()
7619 XOpenDisplay ("foo");
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 xlinux_second_failure=no
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 xlinux_second_failure=yes
7643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7644 if test "${xlinux_second_failure}" = "yes"; then
7645 # If we get the same failure with -b, there is no use adding -b.
7646 # So take it out. This plays safe.
7647 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7648 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7649 CPPFLAGS="$OLD_CPPFLAGS"
7650 LIBS="$OLD_LIBS"
7651 echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6
7653 else
7654 echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7657 else
7658 echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6
7663 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7664 # header files included from there.
7665 echo "$as_me:$LINENO: checking for Xkb" >&5
7666 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <X11/Xlib.h>
7675 #include <X11/XKBlib.h>
7677 main ()
7679 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7681 return 0;
7683 _ACEOF
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 emacs_xkb=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 emacs_xkb=no
7703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7705 echo "${ECHO_T}$emacs_xkb" >&6
7706 if test $emacs_xkb = yes; then
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_XKBGETKEYBOARD 1
7710 _ACEOF
7718 for ac_func in XrmSetDatabase XScreenResourceString \
7719 XScreenNumberOfScreen XSetWMProtocols
7721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7722 echo "$as_me:$LINENO: checking for $ac_func" >&5
7723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_var+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char $ac_func (); below. */
7736 #include <assert.h>
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 #ifdef __cplusplus
7739 extern "C"
7741 #endif
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char $ac_func ();
7745 /* The GNU C library defines this for functions which it implements
7746 to always fail with ENOSYS. Some functions are actually named
7747 something starting with __ and the normal name is an alias. */
7748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7749 choke me
7750 #else
7751 char (*f) () = $ac_func;
7752 #endif
7753 #ifdef __cplusplus
7755 #endif
7758 main ()
7762 return 0;
7764 _ACEOF
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 eval "$as_ac_var=yes"
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 eval "$as_ac_var=no"
7784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7788 if test `eval echo '${'$as_ac_var'}'` = yes; then
7789 cat >>confdefs.h <<_ACEOF
7790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7791 _ACEOF
7794 done
7798 if test "${window_system}" = "x11"; then
7799 echo "$as_me:$LINENO: checking X11 version 6" >&5
7800 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7801 if test "${emacs_cv_x11_version_6+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 cat >conftest.$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7806 /* confdefs.h. */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 #include <X11/Xlib.h>
7813 main ()
7815 #if XlibSpecificationRelease < 6
7816 fail;
7817 #endif
7820 return 0;
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 emacs_cv_x11_version_6=yes
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 emacs_cv_x11_version_6=no
7842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7845 if test $emacs_cv_x11_version_6 = yes; then
7846 echo "$as_me:$LINENO: result: 6 or newer" >&5
7847 echo "${ECHO_T}6 or newer" >&6
7849 cat >>confdefs.h <<\_ACEOF
7850 #define HAVE_X11R6 1
7851 _ACEOF
7853 else
7854 echo "$as_me:$LINENO: result: before 6" >&5
7855 echo "${ECHO_T}before 6" >&6
7859 if test "${window_system}" = "x11"; then
7860 echo "$as_me:$LINENO: checking X11 version 5" >&5
7861 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7862 if test "${emacs_cv_x11_version_5+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865 cat >conftest.$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <X11/Xlib.h>
7874 main ()
7876 #if XlibSpecificationRelease < 5
7877 fail;
7878 #endif
7881 return 0;
7883 _ACEOF
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 emacs_cv_x11_version_5=yes
7897 else
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 emacs_cv_x11_version_5=no
7903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7906 if test $emacs_cv_x11_version_5 = yes; then
7907 echo "$as_me:$LINENO: result: 5 or newer" >&5
7908 echo "${ECHO_T}5 or newer" >&6
7909 HAVE_X11R5=yes
7911 cat >>confdefs.h <<\_ACEOF
7912 #define HAVE_X11R5 1
7913 _ACEOF
7915 else
7916 HAVE_X11R5=no
7917 echo "$as_me:$LINENO: result: before 5" >&5
7918 echo "${ECHO_T}before 5" >&6
7922 if test x"${USE_X_TOOLKIT}" = xmaybe; then
7923 if test x"${HAVE_X11R5}" = xyes; then
7924 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7925 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7926 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7937 #include <X11/Intrinsic.h>
7938 #include <X11/Xaw/Simple.h>
7940 main ()
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 emacs_cv_x11_version_5_with_xaw=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 emacs_cv_x11_version_5_with_xaw=no
7966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7969 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7970 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7971 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7972 USE_X_TOOLKIT=LUCID
7973 else
7974 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7975 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7976 USE_X_TOOLKIT=none
7978 else
7979 USE_X_TOOLKIT=none
7983 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
7985 if test "${USE_X_TOOLKIT}" != "none"; then
7986 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7987 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <X11/Intrinsic.h>
8000 main ()
8002 #if XtSpecificationRelease < 6
8003 fail;
8004 #endif
8007 return 0;
8009 _ACEOF
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 emacs_cv_x11_toolkit_version_6=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 emacs_cv_x11_toolkit_version_6=no
8029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8032 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8033 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8034 echo "$as_me:$LINENO: result: 6 or newer" >&5
8035 echo "${ECHO_T}6 or newer" >&6
8037 cat >>confdefs.h <<\_ACEOF
8038 #define HAVE_X11XTR6 1
8039 _ACEOF
8041 else
8042 echo "$as_me:$LINENO: result: before 6" >&5
8043 echo "${ECHO_T}before 6" >&6
8046 OLDLIBS="$LIBS"
8047 if test x$HAVE_X11XTR6 = xyes; then
8048 LIBS="-lXt -lSM -lICE $LIBS"
8049 else
8050 LIBS="-lXt $LIBS"
8053 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8054 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8055 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lXmu $LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char XmuConvertStandardSelection ();
8076 main ()
8078 XmuConvertStandardSelection ();
8080 return 0;
8082 _ACEOF
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103 LIBS=$ac_check_lib_save_LIBS
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8106 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8107 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_LIBXMU 1
8110 _ACEOF
8112 LIBS="-lXmu $LIBS"
8116 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8119 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8120 if test "${HAVE_X11}" = "yes"; then
8121 if test "${USE_X_TOOLKIT}" != "none"; then
8123 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8124 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8125 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128 ac_check_lib_save_LIBS=$LIBS
8129 LIBS="-lXext $LIBS"
8130 cat >conftest.$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8138 /* Override any gcc2 internal prototype to avoid an error. */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144 char XShapeQueryExtension ();
8146 main ()
8148 XShapeQueryExtension ();
8150 return 0;
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_lib_Xext_XShapeQueryExtension=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8170 ac_cv_lib_Xext_XShapeQueryExtension=no
8172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8173 LIBS=$ac_check_lib_save_LIBS
8175 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8176 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8177 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_LIBXEXT 1
8180 _ACEOF
8182 LIBS="-lXext $LIBS"
8189 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8190 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8191 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8192 if test "${emacs_cv_lesstif+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 # We put this in CFLAGS temporarily to precede other -I options
8196 # that might be in CFLAGS temporarily.
8197 # We put this in CPPFLAGS where it precedes the other -I options.
8198 OLD_CPPFLAGS=$CPPFLAGS
8199 OLD_CFLAGS=$CFLAGS
8200 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8201 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8202 cat >conftest.$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8211 main ()
8213 int x = 5;
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 emacs_cv_lesstif=yes
8231 else
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 emacs_cv_lesstif=no
8237 rm -f conftest.$ac_objext conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8240 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8241 if test $emacs_cv_lesstif = yes; then
8242 # Make sure this -I option remains in CPPFLAGS after it is set
8243 # back to REAL_CPPFLAGS.
8244 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8245 # have those other -I options anyway. Ultimately, having this
8246 # directory ultimately in CPPFLAGS will be enough.
8247 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8248 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8249 else
8250 CFLAGS=$OLD_CFLAGS
8251 CPPFLAGS=$OLD_CPPFLAGS
8253 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8254 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8255 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 #include <Xm/Xm.h>
8267 main ()
8269 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8270 int x = 5;
8271 #else
8272 Motif version prior to 2.1.
8273 #endif
8275 return 0;
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 emacs_cv_motif_version_2_1=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 emacs_cv_motif_version_2_1=no
8297 rm -f conftest.$ac_objext conftest.$ac_ext
8299 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8300 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8301 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8302 if test $emacs_cv_motif_version_2_1 = yes; then
8303 HAVE_LIBXP=no
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_MOTIF_2_1 1
8307 _ACEOF
8309 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8310 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8311 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 ac_check_lib_save_LIBS=$LIBS
8315 LIBS="-lXp $LIBS"
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 #ifdef __cplusplus
8326 extern "C"
8327 #endif
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char XpCreateContext ();
8332 main ()
8334 XpCreateContext ();
8336 return 0;
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_lib_Xp_XpCreateContext=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_cv_lib_Xp_XpCreateContext=no
8358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8362 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8363 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8364 HAVE_LIBXP=yes
8367 if test ${HAVE_LIBXP} = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_LIBXP 1
8371 _ACEOF
8377 ### Is -lXaw3d available?
8378 HAVE_XAW3D=no
8379 if test "${HAVE_X11}" = "yes"; then
8380 if test "${USE_X_TOOLKIT}" != "none"; then
8381 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8382 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8383 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <X11/Xaw3d/Scrollbar.h>
8394 _ACEOF
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null; then
8403 if test -s conftest.err; then
8404 ac_cpp_err=$ac_c_preproc_warn_flag
8405 else
8406 ac_cpp_err=
8408 else
8409 ac_cpp_err=yes
8411 if test -z "$ac_cpp_err"; then
8412 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8419 rm -f conftest.err conftest.$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8423 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8424 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8425 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8426 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lXaw3d $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char XawScrollbarSetThumb ();
8447 main ()
8449 XawScrollbarSetThumb ();
8451 return 0;
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8467 else
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8477 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8478 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8479 HAVE_XAW3D=yes
8485 if test "${HAVE_XAW3D}" = "yes"; then
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_XAW3D 1
8489 _ACEOF
8497 USE_TOOLKIT_SCROLL_BARS=no
8498 if test "${with_toolkit_scroll_bars}" != "no"; then
8499 if test "${USE_X_TOOLKIT}" != "none"; then
8500 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8501 cat >>confdefs.h <<\_ACEOF
8502 #define USE_TOOLKIT_SCROLL_BARS 1
8503 _ACEOF
8505 HAVE_XAW3D=no
8506 USE_TOOLKIT_SCROLL_BARS=yes
8507 elif test "${HAVE_XAW3D}" = "yes"; then
8508 cat >>confdefs.h <<\_ACEOF
8509 #define USE_TOOLKIT_SCROLL_BARS 1
8510 _ACEOF
8512 USE_TOOLKIT_SCROLL_BARS=yes
8518 if test "${with_xim}" != "no"; then
8520 cat >>confdefs.h <<\_ACEOF
8521 #define USE_XIM 1
8522 _ACEOF
8526 ### Use -lXpm if available, unless `--with-xpm=no'.
8527 HAVE_XPM=no
8528 if test "${HAVE_X11}" = "yes"; then
8529 if test "${with_xpm}" != "no"; then
8530 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8531 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8532 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8533 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8537 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8538 else
8539 # Is the header compilable?
8540 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8541 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549 $ac_includes_default
8550 #include <X11/xpm.h>
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_header_compiler=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_header_compiler=no
8571 rm -f conftest.$ac_objext conftest.$ac_ext
8572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8573 echo "${ECHO_T}$ac_header_compiler" >&6
8575 # Is the header present?
8576 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8577 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8580 /* confdefs.h. */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <X11/xpm.h>
8586 _ACEOF
8587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 else
8598 ac_cpp_err=
8600 else
8601 ac_cpp_err=yes
8603 if test -z "$ac_cpp_err"; then
8604 ac_header_preproc=yes
8605 else
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8609 ac_header_preproc=no
8611 rm -f conftest.err conftest.$ac_ext
8612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8613 echo "${ECHO_T}$ac_header_preproc" >&6
8615 # So? What about this header?
8616 case $ac_header_compiler:$ac_header_preproc in
8617 yes:no )
8618 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8619 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8621 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8623 cat <<\_ASBOX
8624 ## ------------------------------------ ##
8625 ## Report this to bug-autoconf@gnu.org. ##
8626 ## ------------------------------------ ##
8627 _ASBOX
8629 sed "s/^/$as_me: WARNING: /" >&2
8631 no:yes )
8632 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8633 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8635 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8637 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8639 cat <<\_ASBOX
8640 ## ------------------------------------ ##
8641 ## Report this to bug-autoconf@gnu.org. ##
8642 ## ------------------------------------ ##
8643 _ASBOX
8645 sed "s/^/$as_me: WARNING: /" >&2
8647 esac
8648 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8649 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 ac_cv_header_X11_xpm_h=$ac_header_preproc
8655 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8659 if test $ac_cv_header_X11_xpm_h = yes; then
8660 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8661 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8662 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 ac_check_lib_save_LIBS=$LIBS
8666 LIBS="-lXpm -lX11 $LIBS"
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char XpmReadFileToPixmap ();
8683 main ()
8685 XpmReadFileToPixmap ();
8687 return 0;
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8713 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8714 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8715 HAVE_XPM=yes
8721 if test "${HAVE_XPM}" = "yes"; then
8722 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8723 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 /* confdefs.h. */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include "X11/xpm.h"
8732 #ifndef XpmReturnAllocPixels
8733 no_return_alloc_pixels
8734 #endif
8736 _ACEOF
8737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8738 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
8739 HAVE_XPM=no
8740 else
8741 HAVE_XPM=yes
8743 rm -f conftest*
8746 if test "${HAVE_XPM}" = "yes"; then
8747 echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8749 else
8750 echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8756 if test "${HAVE_XPM}" = "yes"; then
8758 cat >>confdefs.h <<\_ACEOF
8759 #define HAVE_XPM 1
8760 _ACEOF
8765 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8766 HAVE_JPEG=no
8767 if test "${HAVE_X11}" = "yes"; then
8768 if test "${with_jpeg}" != "no"; then
8769 if test "${ac_cv_header_jerror_h+set}" = set; then
8770 echo "$as_me:$LINENO: checking for jerror.h" >&5
8771 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8772 if test "${ac_cv_header_jerror_h+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8777 else
8778 # Is the header compilable?
8779 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8780 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 $ac_includes_default
8789 #include <jerror.h>
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_header_compiler=no
8810 rm -f conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812 echo "${ECHO_T}$ac_header_compiler" >&6
8814 # Is the header present?
8815 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8816 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8817 cat >conftest.$ac_ext <<_ACEOF
8818 #line $LINENO "configure"
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <jerror.h>
8825 _ACEOF
8826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } >/dev/null; then
8834 if test -s conftest.err; then
8835 ac_cpp_err=$ac_c_preproc_warn_flag
8836 else
8837 ac_cpp_err=
8839 else
8840 ac_cpp_err=yes
8842 if test -z "$ac_cpp_err"; then
8843 ac_header_preproc=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_header_preproc=no
8850 rm -f conftest.err conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852 echo "${ECHO_T}$ac_header_preproc" >&6
8854 # So? What about this header?
8855 case $ac_header_compiler:$ac_header_preproc in
8856 yes:no )
8857 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8858 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
8862 cat <<\_ASBOX
8863 ## ------------------------------------ ##
8864 ## Report this to bug-autoconf@gnu.org. ##
8865 ## ------------------------------------ ##
8866 _ASBOX
8868 sed "s/^/$as_me: WARNING: /" >&2
8870 no:yes )
8871 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8872 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8874 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8876 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
8878 cat <<\_ASBOX
8879 ## ------------------------------------ ##
8880 ## Report this to bug-autoconf@gnu.org. ##
8881 ## ------------------------------------ ##
8882 _ASBOX
8884 sed "s/^/$as_me: WARNING: /" >&2
8886 esac
8887 echo "$as_me:$LINENO: checking for jerror.h" >&5
8888 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8889 if test "${ac_cv_header_jerror_h+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892 ac_cv_header_jerror_h=$ac_header_preproc
8894 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8895 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8898 if test $ac_cv_header_jerror_h = yes; then
8899 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8900 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8901 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904 ac_check_lib_save_LIBS=$LIBS
8905 LIBS="-ljpeg $LIBS"
8906 cat >conftest.$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8908 /* confdefs.h. */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 /* Override any gcc2 internal prototype to avoid an error. */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8920 char jpeg_destroy_compress ();
8922 main ()
8924 jpeg_destroy_compress ();
8926 return 0;
8928 _ACEOF
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8931 (eval $ac_link) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 ac_cv_lib_jpeg_jpeg_destroy_compress=no
8948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8951 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8952 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8953 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8954 HAVE_JPEG=yes
8963 if test "${HAVE_JPEG}" = "yes"; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define HAVE_JPEG 1
8966 _ACEOF
8968 cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8970 /* confdefs.h. */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 #include <jpeglib.h>
8976 version=JPEG_LIB_VERSION
8978 _ACEOF
8979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8980 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_JPEG 1
8983 _ACEOF
8985 else
8986 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8987 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8988 HAVE_JPEG=no
8990 rm -f conftest*
8995 ### Use -lpng if available, unless `--with-png=no'.
8996 HAVE_PNG=no
8997 if test "${HAVE_X11}" = "yes"; then
8998 if test "${with_png}" != "no"; then
8999 if test "${ac_cv_header_png_h+set}" = set; then
9000 echo "$as_me:$LINENO: checking for png.h" >&5
9001 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9002 if test "${ac_cv_header_png_h+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9006 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9007 else
9008 # Is the header compilable?
9009 echo "$as_me:$LINENO: checking png.h usability" >&5
9010 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9019 #include <png.h>
9020 _ACEOF
9021 rm -f conftest.$ac_objext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023 (eval $ac_compile) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -s conftest.$ac_objext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_header_compiler=yes
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_header_compiler=no
9040 rm -f conftest.$ac_objext conftest.$ac_ext
9041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9042 echo "${ECHO_T}$ac_header_compiler" >&6
9044 # Is the header present?
9045 echo "$as_me:$LINENO: checking png.h presence" >&5
9046 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9047 cat >conftest.$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9049 /* confdefs.h. */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 #include <png.h>
9055 _ACEOF
9056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev/null; then
9064 if test -s conftest.err; then
9065 ac_cpp_err=$ac_c_preproc_warn_flag
9066 else
9067 ac_cpp_err=
9069 else
9070 ac_cpp_err=yes
9072 if test -z "$ac_cpp_err"; then
9073 ac_header_preproc=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_header_preproc=no
9080 rm -f conftest.err conftest.$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9082 echo "${ECHO_T}$ac_header_preproc" >&6
9084 # So? What about this header?
9085 case $ac_header_compiler:$ac_header_preproc in
9086 yes:no )
9087 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9088 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9090 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9092 cat <<\_ASBOX
9093 ## ------------------------------------ ##
9094 ## Report this to bug-autoconf@gnu.org. ##
9095 ## ------------------------------------ ##
9096 _ASBOX
9098 sed "s/^/$as_me: WARNING: /" >&2
9100 no:yes )
9101 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9102 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9103 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9104 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9106 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9108 cat <<\_ASBOX
9109 ## ------------------------------------ ##
9110 ## Report this to bug-autoconf@gnu.org. ##
9111 ## ------------------------------------ ##
9112 _ASBOX
9114 sed "s/^/$as_me: WARNING: /" >&2
9116 esac
9117 echo "$as_me:$LINENO: checking for png.h" >&5
9118 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9119 if test "${ac_cv_header_png_h+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 ac_cv_header_png_h=$ac_header_preproc
9124 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9125 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9128 if test $ac_cv_header_png_h = yes; then
9129 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9130 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9131 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134 ac_check_lib_save_LIBS=$LIBS
9135 LIBS="-lpng -lz -lm $LIBS"
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9144 /* Override any gcc2 internal prototype to avoid an error. */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9150 char png_get_channels ();
9152 main ()
9154 png_get_channels ();
9156 return 0;
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_png_png_get_channels=yes
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_lib_png_png_get_channels=no
9178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9182 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9183 if test $ac_cv_lib_png_png_get_channels = yes; then
9184 HAVE_PNG=yes
9192 if test "${HAVE_PNG}" = "yes"; then
9194 cat >>confdefs.h <<\_ACEOF
9195 #define HAVE_PNG 1
9196 _ACEOF
9201 ### Use -ltiff if available, unless `--with-tiff=no'.
9202 HAVE_TIFF=no
9203 if test "${HAVE_X11}" = "yes"; then
9204 if test "${with_tiff}" != "no"; then
9205 if test "${ac_cv_header_tiffio_h+set}" = set; then
9206 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9207 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9208 if test "${ac_cv_header_tiffio_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9213 else
9214 # Is the header compilable?
9215 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9216 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9217 cat >conftest.$ac_ext <<_ACEOF
9218 #line $LINENO "configure"
9219 /* confdefs.h. */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9225 #include <tiffio.h>
9226 _ACEOF
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_header_compiler=yes
9240 else
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_header_compiler=no
9246 rm -f conftest.$ac_objext conftest.$ac_ext
9247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 echo "${ECHO_T}$ac_header_compiler" >&6
9250 # Is the header present?
9251 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9252 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9253 cat >conftest.$ac_ext <<_ACEOF
9254 #line $LINENO "configure"
9255 /* confdefs.h. */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 #include <tiffio.h>
9261 _ACEOF
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev/null; then
9270 if test -s conftest.err; then
9271 ac_cpp_err=$ac_c_preproc_warn_flag
9272 else
9273 ac_cpp_err=
9275 else
9276 ac_cpp_err=yes
9278 if test -z "$ac_cpp_err"; then
9279 ac_header_preproc=yes
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 ac_header_preproc=no
9286 rm -f conftest.err conftest.$ac_ext
9287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288 echo "${ECHO_T}$ac_header_preproc" >&6
9290 # So? What about this header?
9291 case $ac_header_compiler:$ac_header_preproc in
9292 yes:no )
9293 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9294 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9296 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9298 cat <<\_ASBOX
9299 ## ------------------------------------ ##
9300 ## Report this to bug-autoconf@gnu.org. ##
9301 ## ------------------------------------ ##
9302 _ASBOX
9304 sed "s/^/$as_me: WARNING: /" >&2
9306 no:yes )
9307 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9308 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9310 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9312 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9314 cat <<\_ASBOX
9315 ## ------------------------------------ ##
9316 ## Report this to bug-autoconf@gnu.org. ##
9317 ## ------------------------------------ ##
9318 _ASBOX
9320 sed "s/^/$as_me: WARNING: /" >&2
9322 esac
9323 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9324 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9325 if test "${ac_cv_header_tiffio_h+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 ac_cv_header_tiffio_h=$ac_header_preproc
9330 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9331 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9334 if test $ac_cv_header_tiffio_h = yes; then
9335 tifflibs="-lz -lm"
9336 # At least one tiff package requires the jpeg library.
9337 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9338 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9339 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9340 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 ac_check_lib_save_LIBS=$LIBS
9344 LIBS="-ltiff $tifflibs $LIBS"
9345 cat >conftest.$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9347 /* confdefs.h. */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9353 /* Override any gcc2 internal prototype to avoid an error. */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 /* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9359 char TIFFGetVersion ();
9361 main ()
9363 TIFFGetVersion ();
9365 return 0;
9367 _ACEOF
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 (eval $ac_try) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 ac_cv_lib_tiff_TIFFGetVersion=yes
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_cv_lib_tiff_TIFFGetVersion=no
9387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9391 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9392 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9393 HAVE_TIFF=yes
9401 if test "${HAVE_TIFF}" = "yes"; then
9403 cat >>confdefs.h <<\_ACEOF
9404 #define HAVE_TIFF 1
9405 _ACEOF
9410 ### Use -lgif if available, unless `--with-gif=no'.
9411 HAVE_GIF=no
9412 if test "${HAVE_X11}" = "yes"; then
9413 if test "${with_gif}" != "no"; then
9414 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9415 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9416 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9417 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9421 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9422 else
9423 # Is the header compilable?
9424 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9425 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <gif_lib.h>
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler=yes
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_header_compiler=no
9455 rm -f conftest.$ac_objext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9457 echo "${ECHO_T}$ac_header_compiler" >&6
9459 # Is the header present?
9460 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9461 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <gif_lib.h>
9470 _ACEOF
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } >/dev/null; then
9479 if test -s conftest.err; then
9480 ac_cpp_err=$ac_c_preproc_warn_flag
9481 else
9482 ac_cpp_err=
9484 else
9485 ac_cpp_err=yes
9487 if test -z "$ac_cpp_err"; then
9488 ac_header_preproc=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_header_preproc=no
9495 rm -f conftest.err conftest.$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9497 echo "${ECHO_T}$ac_header_preproc" >&6
9499 # So? What about this header?
9500 case $ac_header_compiler:$ac_header_preproc in
9501 yes:no )
9502 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9503 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9505 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9507 cat <<\_ASBOX
9508 ## ------------------------------------ ##
9509 ## Report this to bug-autoconf@gnu.org. ##
9510 ## ------------------------------------ ##
9511 _ASBOX
9513 sed "s/^/$as_me: WARNING: /" >&2
9515 no:yes )
9516 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9517 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9519 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9521 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9523 cat <<\_ASBOX
9524 ## ------------------------------------ ##
9525 ## Report this to bug-autoconf@gnu.org. ##
9526 ## ------------------------------------ ##
9527 _ASBOX
9529 sed "s/^/$as_me: WARNING: /" >&2
9531 esac
9532 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9533 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9534 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 ac_cv_header_gif_lib_h=$ac_header_preproc
9539 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9543 if test $ac_cv_header_gif_lib_h = yes; then
9544 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9545 # Earlier versions can crash Emacs.
9546 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9547 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9548 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lungif $LIBS"
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9567 char EGifPutExtensionLast ();
9569 main ()
9571 EGifPutExtensionLast ();
9573 return 0;
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_lib_ungif_EGifPutExtensionLast=no
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9599 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9600 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9601 HAVE_GIF=yes
9609 if test "${HAVE_GIF}" = "yes"; then
9611 cat >>confdefs.h <<\_ACEOF
9612 #define HAVE_GIF 1
9613 _ACEOF
9618 ### Use Mac OS X Carbon API to implement GUI.
9619 HAVE_CARBON=no
9620 if test "${with_carbon}" != "no"; then
9621 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9622 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9623 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9624 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9628 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9629 else
9630 # Is the header compilable?
9631 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9632 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9633 cat >conftest.$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9641 #include <Carbon/Carbon.h>
9642 _ACEOF
9643 rm -f conftest.$ac_objext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_header_compiler=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_compiler=no
9662 rm -f conftest.$ac_objext conftest.$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664 echo "${ECHO_T}$ac_header_compiler" >&6
9666 # Is the header present?
9667 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9668 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #include <Carbon/Carbon.h>
9677 _ACEOF
9678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } >/dev/null; then
9686 if test -s conftest.err; then
9687 ac_cpp_err=$ac_c_preproc_warn_flag
9688 else
9689 ac_cpp_err=
9691 else
9692 ac_cpp_err=yes
9694 if test -z "$ac_cpp_err"; then
9695 ac_header_preproc=yes
9696 else
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9700 ac_header_preproc=no
9702 rm -f conftest.err conftest.$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6
9706 # So? What about this header?
9707 case $ac_header_compiler:$ac_header_preproc in
9708 yes:no )
9709 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9712 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9714 cat <<\_ASBOX
9715 ## ------------------------------------ ##
9716 ## Report this to bug-autoconf@gnu.org. ##
9717 ## ------------------------------------ ##
9718 _ASBOX
9720 sed "s/^/$as_me: WARNING: /" >&2
9722 no:yes )
9723 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9724 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9726 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9728 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9730 cat <<\_ASBOX
9731 ## ------------------------------------ ##
9732 ## Report this to bug-autoconf@gnu.org. ##
9733 ## ------------------------------------ ##
9734 _ASBOX
9736 sed "s/^/$as_me: WARNING: /" >&2
9738 esac
9739 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9740 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9741 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9746 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9747 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9750 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9751 HAVE_CARBON=yes
9757 if test "${HAVE_CARBON}" = "yes"; then
9759 cat >>confdefs.h <<\_ACEOF
9760 #define HAVE_CARBON 1
9761 _ACEOF
9765 ### Use session management (-lSM -lICE) if available
9766 HAVE_X_SM=no
9767 if test "${HAVE_X11}" = "yes"; then
9768 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9769 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9770 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9771 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9776 else
9777 # Is the header compilable?
9778 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9779 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 #include <X11/SM/SMlib.h>
9789 _ACEOF
9790 rm -f conftest.$ac_objext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -s conftest.$ac_objext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_header_compiler=yes
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_header_compiler=no
9809 rm -f conftest.$ac_objext conftest.$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9811 echo "${ECHO_T}$ac_header_compiler" >&6
9813 # Is the header present?
9814 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9815 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9817 #line $LINENO "configure"
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <X11/SM/SMlib.h>
9824 _ACEOF
9825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } >/dev/null; then
9833 if test -s conftest.err; then
9834 ac_cpp_err=$ac_c_preproc_warn_flag
9835 else
9836 ac_cpp_err=
9838 else
9839 ac_cpp_err=yes
9841 if test -z "$ac_cpp_err"; then
9842 ac_header_preproc=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_preproc=no
9849 rm -f conftest.err conftest.$ac_ext
9850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9851 echo "${ECHO_T}$ac_header_preproc" >&6
9853 # So? What about this header?
9854 case $ac_header_compiler:$ac_header_preproc in
9855 yes:no )
9856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9857 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9859 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
9861 cat <<\_ASBOX
9862 ## ------------------------------------ ##
9863 ## Report this to bug-autoconf@gnu.org. ##
9864 ## ------------------------------------ ##
9865 _ASBOX
9867 sed "s/^/$as_me: WARNING: /" >&2
9869 no:yes )
9870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9871 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9873 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9875 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
9877 cat <<\_ASBOX
9878 ## ------------------------------------ ##
9879 ## Report this to bug-autoconf@gnu.org. ##
9880 ## ------------------------------------ ##
9881 _ASBOX
9883 sed "s/^/$as_me: WARNING: /" >&2
9885 esac
9886 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9887 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9888 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
9893 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9894 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9897 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9898 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9899 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9900 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-lSM $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any gcc2 internal prototype to avoid an error. */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9919 char SmcOpenConnection ();
9921 main ()
9923 SmcOpenConnection ();
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_SM_SmcOpenConnection=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_SM_SmcOpenConnection=no
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9951 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9952 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9953 HAVE_X_SM=yes
9954 else
9955 -lICE
9962 if test "${HAVE_X_SM}" = "yes"; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_X_SM 1
9966 _ACEOF
9968 case "$LIBS" in
9969 *-lSM*) ;;
9970 *) LIBS="-lSM -lICE $LIBS" ;;
9971 esac
9975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9976 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 /* confdefs.h. */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 #include <netdb.h>
9990 main ()
9992 return h_errno;
9994 return 0;
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 emacs_cv_netdb_declares_h_errno=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 emacs_cv_netdb_declares_h_errno=no
10016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10018 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10019 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10020 if test $emacs_cv_netdb_declares_h_errno = yes; then
10022 cat >>confdefs.h <<\_ACEOF
10023 #define HAVE_H_ERRNO 1
10024 _ACEOF
10028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10029 # for constant arguments. Useless!
10030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10032 if test "${ac_cv_working_alloca_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 #include <alloca.h>
10044 main ()
10046 char *p = (char *) alloca (2 * sizeof (int));
10048 return 0;
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_working_alloca_h=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_working_alloca_h=no
10070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10073 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10074 if test $ac_cv_working_alloca_h = yes; then
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_ALLOCA_H 1
10078 _ACEOF
10082 echo "$as_me:$LINENO: checking for alloca" >&5
10083 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10084 if test "${ac_cv_func_alloca_works+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 #ifdef __GNUC__
10095 # define alloca __builtin_alloca
10096 #else
10097 # ifdef _MSC_VER
10098 # include <malloc.h>
10099 # define alloca _alloca
10100 # else
10101 # if HAVE_ALLOCA_H
10102 # include <alloca.h>
10103 # else
10104 # ifdef _AIX
10105 #pragma alloca
10106 # else
10107 # ifndef alloca /* predefined by HP cc +Olibcalls */
10108 char *alloca ();
10109 # endif
10110 # endif
10111 # endif
10112 # endif
10113 #endif
10116 main ()
10118 char *p = (char *) alloca (1);
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_alloca_works=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_cv_func_alloca_works=no
10142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10144 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10147 if test $ac_cv_func_alloca_works = yes; then
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_ALLOCA 1
10151 _ACEOF
10153 else
10154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10155 # that cause trouble. Some versions do not even contain alloca or
10156 # contain a buggy version. If you still want to use their alloca,
10157 # use ar to extract alloca.o from them instead of compiling alloca.c.
10159 ALLOCA=alloca.$ac_objext
10161 cat >>confdefs.h <<\_ACEOF
10162 #define C_ALLOCA 1
10163 _ACEOF
10166 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10167 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10168 if test "${ac_cv_os_cray+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #if defined(CRAY) && ! defined(CRAY2)
10179 webecray
10180 #else
10181 wenotbecray
10182 #endif
10184 _ACEOF
10185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10186 $EGREP "webecray" >/dev/null 2>&1; then
10187 ac_cv_os_cray=yes
10188 else
10189 ac_cv_os_cray=no
10191 rm -f conftest*
10194 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10195 echo "${ECHO_T}$ac_cv_os_cray" >&6
10196 if test $ac_cv_os_cray = yes; then
10197 for ac_func in _getb67 GETB67 getb67; do
10198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10199 echo "$as_me:$LINENO: checking for $ac_func" >&5
10200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10201 if eval "test \"\${$as_ac_var+set}\" = set"; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204 cat >conftest.$ac_ext <<_ACEOF
10205 #line $LINENO "configure"
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 /* System header to define __stub macros and hopefully few prototypes,
10212 which can conflict with char $ac_func (); below. */
10213 #include <assert.h>
10214 /* Override any gcc2 internal prototype to avoid an error. */
10215 #ifdef __cplusplus
10216 extern "C"
10218 #endif
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221 char $ac_func ();
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10226 choke me
10227 #else
10228 char (*f) () = $ac_func;
10229 #endif
10230 #ifdef __cplusplus
10232 #endif
10235 main ()
10239 return 0;
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 eval "$as_ac_var=yes"
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 eval "$as_ac_var=no"
10261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define CRAY_STACKSEG_END $ac_func
10269 _ACEOF
10271 break
10274 done
10277 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10279 if test "${ac_cv_c_stack_direction+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 if test "$cross_compiling" = yes; then
10283 ac_cv_c_stack_direction=0
10284 else
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 /* confdefs.h. */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 find_stack_direction ()
10295 static char *addr = 0;
10296 auto char dummy;
10297 if (addr == 0)
10299 addr = &dummy;
10300 return find_stack_direction ();
10302 else
10303 return (&dummy > addr) ? 1 : -1;
10307 main ()
10309 exit (find_stack_direction () < 0);
10311 _ACEOF
10312 rm -f conftest$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_c_stack_direction=1
10324 else
10325 echo "$as_me: program exited with status $ac_status" >&5
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ( exit $ac_status )
10330 ac_cv_c_stack_direction=-1
10332 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10335 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10336 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10338 cat >>confdefs.h <<_ACEOF
10339 #define STACK_DIRECTION $ac_cv_c_stack_direction
10340 _ACEOF
10346 # fmod, logb, and frexp are found in -lm on most systems.
10347 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10349 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10350 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10351 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lm $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 /* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
10370 char sqrt ();
10372 main ()
10374 sqrt ();
10376 return 0;
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_m_sqrt=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_cv_lib_m_sqrt=no
10398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10402 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10403 if test $ac_cv_lib_m_sqrt = yes; then
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_LIBM 1
10406 _ACEOF
10408 LIBS="-lm $LIBS"
10413 # Check for mail-locking functions in a "mail" library
10415 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10416 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10417 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-lmail $LIBS"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 #line $LINENO "configure"
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char maillock ();
10438 main ()
10440 maillock ();
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_lib_mail_maillock=yes
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_cv_lib_mail_maillock=no
10464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10465 LIBS=$ac_check_lib_save_LIBS
10467 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10468 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10469 if test $ac_cv_lib_mail_maillock = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_LIBMAIL 1
10472 _ACEOF
10474 LIBS="-lmail $LIBS"
10479 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10480 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10481 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484 ac_check_lib_save_LIBS=$LIBS
10485 LIBS="-llockfile $LIBS"
10486 cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 /* confdefs.h. */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char maillock ();
10502 main ()
10504 maillock ();
10506 return 0;
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511 (eval $ac_link) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_lib_lockfile_maillock=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_lib_lockfile_maillock=no
10528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10532 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10533 if test $ac_cv_lib_lockfile_maillock = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_LIBLOCKFILE 1
10536 _ACEOF
10538 LIBS="-llockfile $LIBS"
10542 # If we have the shared liblockfile, assume we must use it for mail
10543 # locking (e.g. Debian). If we couldn't link against liblockfile
10544 # (no liblockfile.a installed), ensure that we don't need to.
10545 if test "$ac_cv_lib_lockfile_maillock" = no; then
10546 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10547 set dummy liblockfile.so; ac_word=$2
10548 echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550 if test "${ac_cv_prog_liblockfile+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 if test -n "$liblockfile"; then
10554 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10555 else
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10558 for as_dir in $as_dummy
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_liblockfile="yes"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10571 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10574 liblockfile=$ac_cv_prog_liblockfile
10575 if test -n "$liblockfile"; then
10576 echo "$as_me:$LINENO: result: $liblockfile" >&5
10577 echo "${ECHO_T}$liblockfile" >&6
10578 else
10579 echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6
10583 if test $ac_cv_prog_liblockfile = yes; then
10584 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10585 This probably means that movemail could lose mail.
10586 There may be a \`development' package to install containing liblockfile." >&5
10587 echo "$as_me: error: Shared liblockfile found but can't link against it.
10588 This probably means that movemail could lose mail.
10589 There may be a \`development' package to install containing liblockfile." >&2;}
10590 { (exit 1); exit 1; }; }
10591 else
10592 cat >>confdefs.h <<\_ACEOF
10593 #define LIBMAIL -llockfile
10594 _ACEOF
10597 else :
10600 for ac_func in touchlock
10602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10603 echo "$as_me:$LINENO: checking for $ac_func" >&5
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_var+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 cat >conftest.$ac_ext <<_ACEOF
10609 #line $LINENO "configure"
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 /* System header to define __stub macros and hopefully few prototypes,
10616 which can conflict with char $ac_func (); below. */
10617 #include <assert.h>
10618 /* Override any gcc2 internal prototype to avoid an error. */
10619 #ifdef __cplusplus
10620 extern "C"
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10625 char $ac_func ();
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10630 choke me
10631 #else
10632 char (*f) () = $ac_func;
10633 #endif
10634 #ifdef __cplusplus
10636 #endif
10639 main ()
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 eval "$as_ac_var=yes"
10659 else
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 eval "$as_ac_var=no"
10665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10669 if test `eval echo '${'$as_ac_var'}'` = yes; then
10670 cat >>confdefs.h <<_ACEOF
10671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672 _ACEOF
10675 done
10678 for ac_header in maillock.h
10680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10689 else
10690 # Is the header compilable?
10691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 $ac_includes_default
10701 #include <$ac_header>
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10712 ac_status=$?
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_header_compiler=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_header_compiler=no
10722 rm -f conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6
10726 # Is the header present?
10727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10729 cat >conftest.$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 #include <$ac_header>
10737 _ACEOF
10738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } >/dev/null; then
10746 if test -s conftest.err; then
10747 ac_cpp_err=$ac_c_preproc_warn_flag
10748 else
10749 ac_cpp_err=
10751 else
10752 ac_cpp_err=yes
10754 if test -z "$ac_cpp_err"; then
10755 ac_header_preproc=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10760 ac_header_preproc=no
10762 rm -f conftest.err conftest.$ac_ext
10763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764 echo "${ECHO_T}$ac_header_preproc" >&6
10766 # So? What about this header?
10767 case $ac_header_compiler:$ac_header_preproc in
10768 yes:no )
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 cat <<\_ASBOX
10775 ## ------------------------------------ ##
10776 ## Report this to bug-autoconf@gnu.org. ##
10777 ## ------------------------------------ ##
10778 _ASBOX
10780 sed "s/^/$as_me: WARNING: /" >&2
10782 no:yes )
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10790 cat <<\_ASBOX
10791 ## ------------------------------------ ##
10792 ## Report this to bug-autoconf@gnu.org. ##
10793 ## ------------------------------------ ##
10794 _ASBOX
10796 sed "s/^/$as_me: WARNING: /" >&2
10798 esac
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804 eval "$as_ac_Header=$ac_header_preproc"
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10811 cat >>confdefs.h <<_ACEOF
10812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813 _ACEOF
10817 done
10880 for ac_func in gethostname getdomainname dup2 \
10881 rename closedir mkdir rmdir sysinfo \
10882 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10883 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
10884 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10885 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10886 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10887 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
10889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10890 echo "$as_me:$LINENO: checking for $ac_func" >&5
10891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_var+set}\" = set"; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 cat >conftest.$ac_ext <<_ACEOF
10896 #line $LINENO "configure"
10897 /* confdefs.h. */
10898 _ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char $ac_func (); below. */
10904 #include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 #ifdef __cplusplus
10907 extern "C"
10909 #endif
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char $ac_func ();
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10917 choke me
10918 #else
10919 char (*f) () = $ac_func;
10920 #endif
10921 #ifdef __cplusplus
10923 #endif
10926 main ()
10930 return 0;
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 eval "$as_ac_var=yes"
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 eval "$as_ac_var=no"
10952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 _ACEOF
10962 done
10966 for ac_header in sys/un.h
10968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10970 echo "$as_me:$LINENO: checking for $ac_header" >&5
10971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10977 else
10978 # Is the header compilable?
10979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10981 cat >conftest.$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10983 /* confdefs.h. */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 $ac_includes_default
10989 #include <$ac_header>
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_header_compiler=yes
11004 else
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ac_header_compiler=no
11010 rm -f conftest.$ac_objext conftest.$ac_ext
11011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012 echo "${ECHO_T}$ac_header_compiler" >&6
11014 # Is the header present?
11015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11017 cat >conftest.$ac_ext <<_ACEOF
11018 #line $LINENO "configure"
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #include <$ac_header>
11025 _ACEOF
11026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11028 ac_status=$?
11029 grep -v '^ *+' conftest.er1 >conftest.err
11030 rm -f conftest.er1
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } >/dev/null; then
11034 if test -s conftest.err; then
11035 ac_cpp_err=$ac_c_preproc_warn_flag
11036 else
11037 ac_cpp_err=
11039 else
11040 ac_cpp_err=yes
11042 if test -z "$ac_cpp_err"; then
11043 ac_header_preproc=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_header_preproc=no
11050 rm -f conftest.err conftest.$ac_ext
11051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6
11054 # So? What about this header?
11055 case $ac_header_compiler:$ac_header_preproc in
11056 yes:no )
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11062 cat <<\_ASBOX
11063 ## ------------------------------------ ##
11064 ## Report this to bug-autoconf@gnu.org. ##
11065 ## ------------------------------------ ##
11066 _ASBOX
11068 sed "s/^/$as_me: WARNING: /" >&2
11070 no:yes )
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11078 cat <<\_ASBOX
11079 ## ------------------------------------ ##
11080 ## Report this to bug-autoconf@gnu.org. ##
11081 ## ------------------------------------ ##
11082 _ASBOX
11084 sed "s/^/$as_me: WARNING: /" >&2
11086 esac
11087 echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 eval "$as_ac_Header=$ac_header_preproc"
11094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11101 _ACEOF
11105 done
11110 for ac_header in sys/time.h unistd.h
11112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11121 else
11122 # Is the header compilable?
11123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11126 #line $LINENO "configure"
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 #include <$ac_header>
11134 _ACEOF
11135 rm -f conftest.$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137 (eval $ac_compile) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -s conftest.$ac_objext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_header_compiler=yes
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 ac_header_compiler=no
11154 rm -f conftest.$ac_objext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11156 echo "${ECHO_T}$ac_header_compiler" >&6
11158 # Is the header present?
11159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11161 cat >conftest.$ac_ext <<_ACEOF
11162 #line $LINENO "configure"
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <$ac_header>
11169 _ACEOF
11170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
11180 else
11181 ac_cpp_err=
11183 else
11184 ac_cpp_err=yes
11186 if test -z "$ac_cpp_err"; then
11187 ac_header_preproc=yes
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_header_preproc=no
11194 rm -f conftest.err conftest.$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6
11198 # So? What about this header?
11199 case $ac_header_compiler:$ac_header_preproc in
11200 yes:no )
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11206 cat <<\_ASBOX
11207 ## ------------------------------------ ##
11208 ## Report this to bug-autoconf@gnu.org. ##
11209 ## ------------------------------------ ##
11210 _ASBOX
11212 sed "s/^/$as_me: WARNING: /" >&2
11214 no:yes )
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222 cat <<\_ASBOX
11223 ## ------------------------------------ ##
11224 ## Report this to bug-autoconf@gnu.org. ##
11225 ## ------------------------------------ ##
11226 _ASBOX
11228 sed "s/^/$as_me: WARNING: /" >&2
11230 esac
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 eval "$as_ac_Header=$ac_header_preproc"
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245 _ACEOF
11249 done
11252 for ac_func in alarm
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 cat >conftest.$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below. */
11269 #include <assert.h>
11270 /* Override any gcc2 internal prototype to avoid an error. */
11271 #ifdef __cplusplus
11272 extern "C"
11274 #endif
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277 char $ac_func ();
11278 /* The GNU C library defines this for functions which it implements
11279 to always fail with ENOSYS. Some functions are actually named
11280 something starting with __ and the normal name is an alias. */
11281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11282 choke me
11283 #else
11284 char (*f) () = $ac_func;
11285 #endif
11286 #ifdef __cplusplus
11288 #endif
11291 main ()
11295 return 0;
11297 _ACEOF
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 eval "$as_ac_var=yes"
11311 else
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 eval "$as_ac_var=no"
11317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11321 if test `eval echo '${'$as_ac_var'}'` = yes; then
11322 cat >>confdefs.h <<_ACEOF
11323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11324 _ACEOF
11327 done
11329 echo "$as_me:$LINENO: checking for working mktime" >&5
11330 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11331 if test "${ac_cv_func_working_mktime+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 if test "$cross_compiling" = yes; then
11335 ac_cv_func_working_mktime=no
11336 else
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 /* confdefs.h. */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 /* Test program from Paul Eggert and Tony Leneis. */
11345 #if TIME_WITH_SYS_TIME
11346 # include <sys/time.h>
11347 # include <time.h>
11348 #else
11349 # if HAVE_SYS_TIME_H
11350 # include <sys/time.h>
11351 # else
11352 # include <time.h>
11353 # endif
11354 #endif
11356 #if HAVE_UNISTD_H
11357 # include <unistd.h>
11358 #endif
11360 #if !HAVE_ALARM
11361 # define alarm(X) /* empty */
11362 #endif
11364 /* Work around redefinition to rpl_putenv by other config tests. */
11365 #undef putenv
11367 static time_t time_t_max;
11369 /* Values we'll use to set the TZ environment variable. */
11370 static const char *const tz_strings[] = {
11371 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11372 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11374 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11376 /* Fail if mktime fails to convert a date in the spring-forward gap.
11377 Based on a problem report from Andreas Jaeger. */
11378 static void
11379 spring_forward_gap ()
11381 /* glibc (up to about 1998-10-07) failed this test. */
11382 struct tm tm;
11384 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11385 instead of "TZ=America/Vancouver" in order to detect the bug even
11386 on systems that don't support the Olson extension, or don't have the
11387 full zoneinfo tables installed. */
11388 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11390 tm.tm_year = 98;
11391 tm.tm_mon = 3;
11392 tm.tm_mday = 5;
11393 tm.tm_hour = 2;
11394 tm.tm_min = 0;
11395 tm.tm_sec = 0;
11396 tm.tm_isdst = -1;
11397 if (mktime (&tm) == (time_t)-1)
11398 exit (1);
11401 static void
11402 mktime_test (now)
11403 time_t now;
11405 struct tm *lt;
11406 if ((lt = localtime (&now)) && mktime (lt) != now)
11407 exit (1);
11408 now = time_t_max - now;
11409 if ((lt = localtime (&now)) && mktime (lt) != now)
11410 exit (1);
11413 static void
11414 irix_6_4_bug ()
11416 /* Based on code from Ariel Faigon. */
11417 struct tm tm;
11418 tm.tm_year = 96;
11419 tm.tm_mon = 3;
11420 tm.tm_mday = 0;
11421 tm.tm_hour = 0;
11422 tm.tm_min = 0;
11423 tm.tm_sec = 0;
11424 tm.tm_isdst = -1;
11425 mktime (&tm);
11426 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11427 exit (1);
11430 static void
11431 bigtime_test (j)
11432 int j;
11434 struct tm tm;
11435 time_t now;
11436 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11437 now = mktime (&tm);
11438 if (now != (time_t) -1)
11440 struct tm *lt = localtime (&now);
11441 if (! (lt
11442 && lt->tm_year == tm.tm_year
11443 && lt->tm_mon == tm.tm_mon
11444 && lt->tm_mday == tm.tm_mday
11445 && lt->tm_hour == tm.tm_hour
11446 && lt->tm_min == tm.tm_min
11447 && lt->tm_sec == tm.tm_sec
11448 && lt->tm_yday == tm.tm_yday
11449 && lt->tm_wday == tm.tm_wday
11450 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11451 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11452 exit (1);
11457 main ()
11459 time_t t, delta;
11460 int i, j;
11462 /* This test makes some buggy mktime implementations loop.
11463 Give up after 60 seconds; a mktime slower than that
11464 isn't worth using anyway. */
11465 alarm (60);
11467 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11468 continue;
11469 time_t_max--;
11470 delta = time_t_max / 997; /* a suitable prime number */
11471 for (i = 0; i < N_STRINGS; i++)
11473 if (tz_strings[i])
11474 putenv (tz_strings[i]);
11476 for (t = 0; t <= time_t_max - delta; t += delta)
11477 mktime_test (t);
11478 mktime_test ((time_t) 60 * 60);
11479 mktime_test ((time_t) 60 * 60 * 24);
11481 for (j = 1; 0 < j; j *= 2)
11482 bigtime_test (j);
11483 bigtime_test (j - 1);
11485 irix_6_4_bug ();
11486 spring_forward_gap ();
11487 exit (0);
11489 _ACEOF
11490 rm -f conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_func_working_mktime=yes
11502 else
11503 echo "$as_me: program exited with status $ac_status" >&5
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11507 ( exit $ac_status )
11508 ac_cv_func_working_mktime=no
11510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11514 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11515 if test $ac_cv_func_working_mktime = no; then
11516 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11519 if test "$ac_cv_func_working_mktime" = no; then
11521 cat >>confdefs.h <<\_ACEOF
11522 #define BROKEN_MKTIME 1
11523 _ACEOF
11527 ac_have_func=no # yes means we've found a way to get the load average.
11529 # Make sure getloadavg.c is where it belongs, at configure-time.
11530 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11531 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11532 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11533 { (exit 1); exit 1; }; }
11535 ac_save_LIBS=$LIBS
11537 # Check for getloadavg, but be sure not to touch the cache variable.
11538 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11539 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11540 if test "${ac_cv_func_getloadavg+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 cat >conftest.$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char getloadavg (); below. */
11552 #include <assert.h>
11553 /* Override any gcc2 internal prototype to avoid an error. */
11554 #ifdef __cplusplus
11555 extern "C"
11557 #endif
11558 /* We use char because int might match the return type of a gcc2
11559 builtin and then its argument prototype would still apply. */
11560 char getloadavg ();
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11565 choke me
11566 #else
11567 char (*f) () = getloadavg;
11568 #endif
11569 #ifdef __cplusplus
11571 #endif
11574 main ()
11578 return 0;
11580 _ACEOF
11581 rm -f conftest.$ac_objext conftest$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_func_getloadavg=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_func_getloadavg=no
11600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11603 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11604 if test $ac_cv_func_getloadavg = yes; then
11605 exit 0
11606 else
11607 exit 1
11609 ) && ac_have_func=yes
11611 # On HPUX9, an unprivileged user can get load averages through this function.
11613 for ac_func in pstat_getdynamic
11615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616 echo "$as_me:$LINENO: checking for $ac_func" >&5
11617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11618 if eval "test \"\${$as_ac_var+set}\" = set"; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621 cat >conftest.$ac_ext <<_ACEOF
11622 #line $LINENO "configure"
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 /* System header to define __stub macros and hopefully few prototypes,
11629 which can conflict with char $ac_func (); below. */
11630 #include <assert.h>
11631 /* Override any gcc2 internal prototype to avoid an error. */
11632 #ifdef __cplusplus
11633 extern "C"
11635 #endif
11636 /* We use char because int might match the return type of a gcc2
11637 builtin and then its argument prototype would still apply. */
11638 char $ac_func ();
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11643 choke me
11644 #else
11645 char (*f) () = $ac_func;
11646 #endif
11647 #ifdef __cplusplus
11649 #endif
11652 main ()
11656 return 0;
11658 _ACEOF
11659 rm -f conftest.$ac_objext conftest$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661 (eval $ac_link) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -s conftest$ac_exeext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 eval "$as_ac_var=no"
11678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11682 if test `eval echo '${'$as_ac_var'}'` = yes; then
11683 cat >>confdefs.h <<_ACEOF
11684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11685 _ACEOF
11688 done
11691 # Solaris has libkstat which does not require root.
11693 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11694 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11695 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698 ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-lkstat $LIBS"
11700 cat >conftest.$ac_ext <<_ACEOF
11701 #line $LINENO "configure"
11702 /* confdefs.h. */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any gcc2 internal prototype to avoid an error. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11714 char kstat_open ();
11716 main ()
11718 kstat_open ();
11720 return 0;
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_lib_kstat_kstat_open=yes
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 ac_cv_lib_kstat_kstat_open=no
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743 LIBS=$ac_check_lib_save_LIBS
11745 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11746 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11747 if test $ac_cv_lib_kstat_kstat_open = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define HAVE_LIBKSTAT 1
11750 _ACEOF
11752 LIBS="-lkstat $LIBS"
11756 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11758 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11759 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11760 # to get the right answer into the cache.
11761 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11762 if test $ac_have_func = no; then
11763 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11764 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768 ac_check_lib_save_LIBS=$LIBS
11769 LIBS="-lelf $LIBS"
11770 cat >conftest.$ac_ext <<_ACEOF
11771 #line $LINENO "configure"
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11778 /* Override any gcc2 internal prototype to avoid an error. */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 /* We use char because int might match the return type of a gcc2
11783 builtin and then its argument prototype would still apply. */
11784 char elf_begin ();
11786 main ()
11788 elf_begin ();
11790 return 0;
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_elf_elf_begin=yes
11806 else
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_lib_elf_elf_begin=no
11812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11815 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11816 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11817 if test $ac_cv_lib_elf_elf_begin = yes; then
11818 LIBS="-lelf $LIBS"
11822 if test $ac_have_func = no; then
11823 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11824 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11825 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 ac_check_lib_save_LIBS=$LIBS
11829 LIBS="-lkvm $LIBS"
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11832 /* confdefs.h. */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11838 /* Override any gcc2 internal prototype to avoid an error. */
11839 #ifdef __cplusplus
11840 extern "C"
11841 #endif
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11844 char kvm_open ();
11846 main ()
11848 kvm_open ();
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_lib_kvm_kvm_open=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_lib_kvm_kvm_open=no
11872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11873 LIBS=$ac_check_lib_save_LIBS
11875 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11876 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11877 if test $ac_cv_lib_kvm_kvm_open = yes; then
11878 LIBS="-lkvm $LIBS"
11881 # Check for the 4.4BSD definition of getloadavg.
11882 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11883 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11884 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lutil $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11890 #line $LINENO "configure"
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11897 /* Override any gcc2 internal prototype to avoid an error. */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903 char getloadavg ();
11905 main ()
11907 getloadavg ();
11909 return 0;
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_util_getloadavg=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_util_getloadavg=no
11931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11934 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11935 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11936 if test $ac_cv_lib_util_getloadavg = yes; then
11937 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11942 if test $ac_have_func = no; then
11943 # There is a commonly available library for RS/6000 AIX.
11944 # Since it is not a standard part of AIX, it might be installed locally.
11945 ac_getloadavg_LIBS=$LIBS
11946 LIBS="-L/usr/local/lib $LIBS"
11947 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11948 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11949 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lgetloadavg $LIBS"
11954 cat >conftest.$ac_ext <<_ACEOF
11955 #line $LINENO "configure"
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any gcc2 internal prototype to avoid an error. */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11968 char getloadavg ();
11970 main ()
11972 getloadavg ();
11974 return 0;
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_getloadavg_getloadavg=yes
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_lib_getloadavg_getloadavg=no
11996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11999 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12000 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12001 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12002 LIBS="-lgetloadavg $LIBS"
12003 else
12004 LIBS=$ac_getloadavg_LIBS
12009 # Make sure it is really in the library, if we think we found it,
12010 # otherwise set up the replacement function.
12012 for ac_func in getloadavg
12014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12017 if eval "test \"\${$as_ac_var+set}\" = set"; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020 cat >conftest.$ac_ext <<_ACEOF
12021 #line $LINENO "configure"
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below. */
12029 #include <assert.h>
12030 /* Override any gcc2 internal prototype to avoid an error. */
12031 #ifdef __cplusplus
12032 extern "C"
12034 #endif
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12037 char $ac_func ();
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12042 choke me
12043 #else
12044 char (*f) () = $ac_func;
12045 #endif
12046 #ifdef __cplusplus
12048 #endif
12051 main ()
12055 return 0;
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try='test -s conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 eval "$as_ac_var=yes"
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 eval "$as_ac_var=no"
12077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12081 if test `eval echo '${'$as_ac_var'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12084 _ACEOF
12086 else
12087 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12089 cat >>confdefs.h <<\_ACEOF
12090 #define C_GETLOADAVG 1
12091 _ACEOF
12093 # Figure out what our getloadavg.c needs.
12094 ac_have_func=no
12095 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12096 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12097 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12098 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12102 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12103 else
12104 # Is the header compilable?
12105 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12106 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12107 cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <sys/dg_sys_info.h>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_header_compiler=yes
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 ac_header_compiler=no
12136 rm -f conftest.$ac_objext conftest.$ac_ext
12137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6
12140 # Is the header present?
12141 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12142 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12143 cat >conftest.$ac_ext <<_ACEOF
12144 #line $LINENO "configure"
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 #include <sys/dg_sys_info.h>
12151 _ACEOF
12152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } >/dev/null; then
12160 if test -s conftest.err; then
12161 ac_cpp_err=$ac_c_preproc_warn_flag
12162 else
12163 ac_cpp_err=
12165 else
12166 ac_cpp_err=yes
12168 if test -z "$ac_cpp_err"; then
12169 ac_header_preproc=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_header_preproc=no
12176 rm -f conftest.err conftest.$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6
12180 # So? What about this header?
12181 case $ac_header_compiler:$ac_header_preproc in
12182 yes:no )
12183 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12186 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12188 cat <<\_ASBOX
12189 ## ------------------------------------ ##
12190 ## Report this to bug-autoconf@gnu.org. ##
12191 ## ------------------------------------ ##
12192 _ASBOX
12194 sed "s/^/$as_me: WARNING: /" >&2
12196 no:yes )
12197 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12198 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12200 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12202 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12204 cat <<\_ASBOX
12205 ## ------------------------------------ ##
12206 ## Report this to bug-autoconf@gnu.org. ##
12207 ## ------------------------------------ ##
12208 _ASBOX
12210 sed "s/^/$as_me: WARNING: /" >&2
12212 esac
12213 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12214 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12215 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12220 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12221 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12224 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12225 ac_have_func=yes
12227 cat >>confdefs.h <<\_ACEOF
12228 #define DGUX 1
12229 _ACEOF
12232 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12233 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12234 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldgc $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12240 #line $LINENO "configure"
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 /* We use char because int might match the return type of a gcc2
12252 builtin and then its argument prototype would still apply. */
12253 char dg_sys_info ();
12255 main ()
12257 dg_sys_info ();
12259 return 0;
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_cv_lib_dgc_dg_sys_info=yes
12275 else
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12279 ac_cv_lib_dgc_dg_sys_info=no
12281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12285 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12286 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBDGC 1
12289 _ACEOF
12291 LIBS="-ldgc $LIBS"
12299 if test "${ac_cv_header_locale_h+set}" = set; then
12300 echo "$as_me:$LINENO: checking for locale.h" >&5
12301 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12302 if test "${ac_cv_header_locale_h+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12307 else
12308 # Is the header compilable?
12309 echo "$as_me:$LINENO: checking locale.h usability" >&5
12310 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12312 #line $LINENO "configure"
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <locale.h>
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -s conftest.$ac_objext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_header_compiler=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_header_compiler=no
12340 rm -f conftest.$ac_objext conftest.$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12342 echo "${ECHO_T}$ac_header_compiler" >&6
12344 # Is the header present?
12345 echo "$as_me:$LINENO: checking locale.h presence" >&5
12346 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12347 cat >conftest.$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <locale.h>
12355 _ACEOF
12356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } >/dev/null; then
12364 if test -s conftest.err; then
12365 ac_cpp_err=$ac_c_preproc_warn_flag
12366 else
12367 ac_cpp_err=
12369 else
12370 ac_cpp_err=yes
12372 if test -z "$ac_cpp_err"; then
12373 ac_header_preproc=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_header_preproc=no
12380 rm -f conftest.err conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6
12384 # So? What about this header?
12385 case $ac_header_compiler:$ac_header_preproc in
12386 yes:no )
12387 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12390 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12392 cat <<\_ASBOX
12393 ## ------------------------------------ ##
12394 ## Report this to bug-autoconf@gnu.org. ##
12395 ## ------------------------------------ ##
12396 _ASBOX
12398 sed "s/^/$as_me: WARNING: /" >&2
12400 no:yes )
12401 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12408 cat <<\_ASBOX
12409 ## ------------------------------------ ##
12410 ## Report this to bug-autoconf@gnu.org. ##
12411 ## ------------------------------------ ##
12412 _ASBOX
12414 sed "s/^/$as_me: WARNING: /" >&2
12416 esac
12417 echo "$as_me:$LINENO: checking for locale.h" >&5
12418 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12419 if test "${ac_cv_header_locale_h+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 else
12422 ac_cv_header_locale_h=$ac_header_preproc
12424 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12425 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12431 for ac_func in setlocale
12433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12434 echo "$as_me:$LINENO: checking for $ac_func" >&5
12435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12436 if eval "test \"\${$as_ac_var+set}\" = set"; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439 cat >conftest.$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below. */
12448 #include <assert.h>
12449 /* Override any gcc2 internal prototype to avoid an error. */
12450 #ifdef __cplusplus
12451 extern "C"
12453 #endif
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12456 char $ac_func ();
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12461 choke me
12462 #else
12463 char (*f) () = $ac_func;
12464 #endif
12465 #ifdef __cplusplus
12467 #endif
12470 main ()
12474 return 0;
12476 _ACEOF
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>&5
12480 ac_status=$?
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 eval "$as_ac_var=yes"
12490 else
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.$ac_ext >&5
12494 eval "$as_ac_var=no"
12496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500 if test `eval echo '${'$as_ac_var'}'` = yes; then
12501 cat >>confdefs.h <<_ACEOF
12502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12503 _ACEOF
12506 done
12509 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12510 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12511 # Irix 4.0.5F has the header but not the library.
12512 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12513 ac_have_func=yes
12515 cat >>confdefs.h <<\_ACEOF
12516 #define SVR4 1
12517 _ACEOF
12521 if test $ac_have_func = no; then
12522 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12523 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12524 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12525 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12530 else
12531 # Is the header compilable?
12532 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12533 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 $ac_includes_default
12542 #include <inq_stats/cpustats.h>
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_header_compiler=no
12563 rm -f conftest.$ac_objext conftest.$ac_ext
12564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12565 echo "${ECHO_T}$ac_header_compiler" >&6
12567 # Is the header present?
12568 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12569 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12570 cat >conftest.$ac_ext <<_ACEOF
12571 #line $LINENO "configure"
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <inq_stats/cpustats.h>
12578 _ACEOF
12579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev/null; then
12587 if test -s conftest.err; then
12588 ac_cpp_err=$ac_c_preproc_warn_flag
12589 else
12590 ac_cpp_err=
12592 else
12593 ac_cpp_err=yes
12595 if test -z "$ac_cpp_err"; then
12596 ac_header_preproc=yes
12597 else
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_header_preproc=no
12603 rm -f conftest.err conftest.$ac_ext
12604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12605 echo "${ECHO_T}$ac_header_preproc" >&6
12607 # So? What about this header?
12608 case $ac_header_compiler:$ac_header_preproc in
12609 yes:no )
12610 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12611 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12613 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12615 cat <<\_ASBOX
12616 ## ------------------------------------ ##
12617 ## Report this to bug-autoconf@gnu.org. ##
12618 ## ------------------------------------ ##
12619 _ASBOX
12621 sed "s/^/$as_me: WARNING: /" >&2
12623 no:yes )
12624 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12629 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12631 cat <<\_ASBOX
12632 ## ------------------------------------ ##
12633 ## Report this to bug-autoconf@gnu.org. ##
12634 ## ------------------------------------ ##
12635 _ASBOX
12637 sed "s/^/$as_me: WARNING: /" >&2
12639 esac
12640 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12641 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12642 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
12647 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12648 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12651 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12652 ac_have_func=yes
12654 cat >>confdefs.h <<\_ACEOF
12655 #define UMAX 1
12656 _ACEOF
12659 cat >>confdefs.h <<\_ACEOF
12660 #define UMAX4_3 1
12661 _ACEOF
12668 if test $ac_have_func = no; then
12669 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12670 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12671 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12672 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12676 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12677 else
12678 # Is the header compilable?
12679 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12680 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12681 cat >conftest.$ac_ext <<_ACEOF
12682 #line $LINENO "configure"
12683 /* confdefs.h. */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <sys/cpustats.h>
12690 _ACEOF
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler=yes
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_header_compiler=no
12710 rm -f conftest.$ac_objext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12716 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 #include <sys/cpustats.h>
12725 _ACEOF
12726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } >/dev/null; then
12734 if test -s conftest.err; then
12735 ac_cpp_err=$ac_c_preproc_warn_flag
12736 else
12737 ac_cpp_err=
12739 else
12740 ac_cpp_err=yes
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_preproc=no
12750 rm -f conftest.err conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc in
12756 yes:no )
12757 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12762 cat <<\_ASBOX
12763 ## ------------------------------------ ##
12764 ## Report this to bug-autoconf@gnu.org. ##
12765 ## ------------------------------------ ##
12766 _ASBOX
12768 sed "s/^/$as_me: WARNING: /" >&2
12770 no:yes )
12771 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12772 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12774 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12778 cat <<\_ASBOX
12779 ## ------------------------------------ ##
12780 ## Report this to bug-autoconf@gnu.org. ##
12781 ## ------------------------------------ ##
12782 _ASBOX
12784 sed "s/^/$as_me: WARNING: /" >&2
12786 esac
12787 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12788 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12789 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792 ac_cv_header_sys_cpustats_h=$ac_header_preproc
12794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12795 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12798 if test $ac_cv_header_sys_cpustats_h = yes; then
12799 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
12800 #define UMAX 1
12801 _ACEOF
12808 if test $ac_have_func = no; then
12810 for ac_header in mach/mach.h
12812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12814 echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12821 else
12822 # Is the header compilable?
12823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 $ac_includes_default
12833 #include <$ac_header>
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_header_compiler=yes
12848 else
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_header_compiler=no
12854 rm -f conftest.$ac_objext conftest.$ac_ext
12855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12856 echo "${ECHO_T}$ac_header_compiler" >&6
12858 # Is the header present?
12859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12861 cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 /* confdefs.h. */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 #include <$ac_header>
12869 _ACEOF
12870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12872 ac_status=$?
12873 grep -v '^ *+' conftest.er1 >conftest.err
12874 rm -f conftest.er1
12875 cat conftest.err >&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } >/dev/null; then
12878 if test -s conftest.err; then
12879 ac_cpp_err=$ac_c_preproc_warn_flag
12880 else
12881 ac_cpp_err=
12883 else
12884 ac_cpp_err=yes
12886 if test -z "$ac_cpp_err"; then
12887 ac_header_preproc=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_header_preproc=no
12894 rm -f conftest.err conftest.$ac_ext
12895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12896 echo "${ECHO_T}$ac_header_preproc" >&6
12898 # So? What about this header?
12899 case $ac_header_compiler:$ac_header_preproc in
12900 yes:no )
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12906 cat <<\_ASBOX
12907 ## ------------------------------------ ##
12908 ## Report this to bug-autoconf@gnu.org. ##
12909 ## ------------------------------------ ##
12910 _ASBOX
12912 sed "s/^/$as_me: WARNING: /" >&2
12914 no:yes )
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12922 cat <<\_ASBOX
12923 ## ------------------------------------ ##
12924 ## Report this to bug-autoconf@gnu.org. ##
12925 ## ------------------------------------ ##
12926 _ASBOX
12928 sed "s/^/$as_me: WARNING: /" >&2
12930 esac
12931 echo "$as_me:$LINENO: checking for $ac_header" >&5
12932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 eval "$as_ac_Header=$ac_header_preproc"
12938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12943 cat >>confdefs.h <<_ACEOF
12944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12945 _ACEOF
12949 done
12954 for ac_header in nlist.h
12956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965 else
12966 # Is the header compilable?
12967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12971 /* confdefs.h. */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 #include <$ac_header>
12978 _ACEOF
12979 rm -f conftest.$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_header_compiler=yes
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_header_compiler=no
12998 rm -f conftest.$ac_objext conftest.$ac_ext
12999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13000 echo "${ECHO_T}$ac_header_compiler" >&6
13002 # Is the header present?
13003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <$ac_header>
13013 _ACEOF
13014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } >/dev/null; then
13022 if test -s conftest.err; then
13023 ac_cpp_err=$ac_c_preproc_warn_flag
13024 else
13025 ac_cpp_err=
13027 else
13028 ac_cpp_err=yes
13030 if test -z "$ac_cpp_err"; then
13031 ac_header_preproc=yes
13032 else
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_header_preproc=no
13038 rm -f conftest.err conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc in
13044 yes:no )
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13050 cat <<\_ASBOX
13051 ## ------------------------------------ ##
13052 ## Report this to bug-autoconf@gnu.org. ##
13053 ## ------------------------------------ ##
13054 _ASBOX
13056 sed "s/^/$as_me: WARNING: /" >&2
13058 no:yes )
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13066 cat <<\_ASBOX
13067 ## ------------------------------------ ##
13068 ## Report this to bug-autoconf@gnu.org. ##
13069 ## ------------------------------------ ##
13070 _ASBOX
13072 sed "s/^/$as_me: WARNING: /" >&2
13074 esac
13075 echo "$as_me:$LINENO: checking for $ac_header" >&5
13076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080 eval "$as_ac_Header=$ac_header_preproc"
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13089 _ACEOF
13090 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13091 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13092 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #include <nlist.h>
13105 main ()
13107 static struct nlist ac_aggr;
13108 if (ac_aggr.n_un.n_name)
13109 return 0;
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>&5
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_member_struct_nlist_n_un_n_name=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 /* confdefs.h. */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <nlist.h>
13141 main ()
13143 static struct nlist ac_aggr;
13144 if (sizeof ac_aggr.n_un.n_name)
13145 return 0;
13147 return 0;
13149 _ACEOF
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_member_struct_nlist_n_un_n_name=yes
13163 else
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_member_struct_nlist_n_un_n_name=no
13169 rm -f conftest.$ac_objext conftest.$ac_ext
13171 rm -f conftest.$ac_objext conftest.$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13174 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13175 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13179 _ACEOF
13182 cat >>confdefs.h <<\_ACEOF
13183 #define NLIST_NAME_UNION 1
13184 _ACEOF
13191 done
13194 done
13197 # Some definitions of getloadavg require that the program be installed setgid.
13198 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13199 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13200 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203 cat >conftest.$ac_ext <<_ACEOF
13204 #line $LINENO "configure"
13205 /* confdefs.h. */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13211 #ifdef LDAV_PRIVILEGED
13212 Yowza Am I SETGID yet
13213 #endif
13214 _ACEOF
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13217 ac_cv_func_getloadavg_setgid=yes
13218 else
13219 ac_cv_func_getloadavg_setgid=no
13221 rm -f conftest*
13224 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13225 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13226 if test $ac_cv_func_getloadavg_setgid = yes; then
13227 NEED_SETGID=true
13229 cat >>confdefs.h <<\_ACEOF
13230 #define GETLOADAVG_PRIVILEGED 1
13231 _ACEOF
13233 else
13234 NEED_SETGID=false
13237 if test $ac_cv_func_getloadavg_setgid = yes; then
13238 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13239 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13240 if test "${ac_cv_group_kmem+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13244 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13245 # If we got an error (system does not support symlinks), try without -L.
13246 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13247 ac_cv_group_kmem=`echo $ac_ls_output \
13248 | sed -ne 's/[ ][ ]*/ /g;
13249 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13250 / /s/.* //;p;'`
13253 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13254 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13255 KMEM_GROUP=$ac_cv_group_kmem
13257 if test "x$ac_save_LIBS" = x; then
13258 GETLOADAVG_LIBS=$LIBS
13259 else
13260 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13262 LIBS=$ac_save_LIBS
13266 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13267 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13268 if test "${ac_cv_sys_largefile_source+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271 while :; do
13272 ac_cv_sys_largefile_source=no
13273 cat >conftest.$ac_ext <<_ACEOF
13274 #line $LINENO "configure"
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 #include <stdio.h>
13282 main ()
13284 return !fseeko;
13286 return 0;
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 break
13302 else
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13308 cat >conftest.$ac_ext <<_ACEOF
13309 #line $LINENO "configure"
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 #define _LARGEFILE_SOURCE 1
13316 #include <stdio.h>
13318 main ()
13320 return !fseeko;
13322 return 0;
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_sys_largefile_source=1; break
13338 else
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13343 rm -f conftest.$ac_objext conftest.$ac_ext
13344 break
13345 done
13347 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13348 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13349 if test "$ac_cv_sys_largefile_source" != no; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13353 _ACEOF
13356 rm -f conftest*
13358 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13359 # in glibc 2.1.3, but that breaks too many other things.
13360 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13361 echo "$as_me:$LINENO: checking for fseeko" >&5
13362 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13363 if test "${ac_cv_func_fseeko+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 else
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 /* confdefs.h. */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 #include <stdio.h>
13375 main ()
13377 return fseeko && fseeko (stdin, 0, 0);
13379 return 0;
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -s conftest$ac_exeext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_cv_func_fseeko=yes
13395 else
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_cv_func_fseeko=no
13401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13403 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13404 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13405 if test $ac_cv_func_fseeko = yes; then
13407 cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_FSEEKO 1
13409 _ACEOF
13414 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13415 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13416 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 # Use it with a single arg.
13420 cat >conftest.$ac_ext <<_ACEOF
13421 #line $LINENO "configure"
13422 /* confdefs.h. */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13427 $ac_includes_default
13429 main ()
13431 getpgrp (0);
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_func_getpgrp_void=no
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_func_getpgrp_void=yes
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13459 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13460 if test $ac_cv_func_getpgrp_void = yes; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define GETPGRP_VOID 1
13464 _ACEOF
13469 # UNIX98 PTYs.
13471 for ac_func in grantpt
13473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13474 echo "$as_me:$LINENO: checking for $ac_func" >&5
13475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13476 if eval "test \"\${$as_ac_var+set}\" = set"; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479 cat >conftest.$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 /* System header to define __stub macros and hopefully few prototypes,
13487 which can conflict with char $ac_func (); below. */
13488 #include <assert.h>
13489 /* Override any gcc2 internal prototype to avoid an error. */
13490 #ifdef __cplusplus
13491 extern "C"
13493 #endif
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13496 char $ac_func ();
13497 /* The GNU C library defines this for functions which it implements
13498 to always fail with ENOSYS. Some functions are actually named
13499 something starting with __ and the normal name is an alias. */
13500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13501 choke me
13502 #else
13503 char (*f) () = $ac_func;
13504 #endif
13505 #ifdef __cplusplus
13507 #endif
13510 main ()
13514 return 0;
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 eval "$as_ac_var=yes"
13530 else
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 eval "$as_ac_var=no"
13536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13540 if test `eval echo '${'$as_ac_var'}'` = yes; then
13541 cat >>confdefs.h <<_ACEOF
13542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13543 _ACEOF
13546 done
13549 # PTY-related GNU extensions.
13551 for ac_func in getpt
13553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 echo "$as_me:$LINENO: checking for $ac_func" >&5
13555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13556 if eval "test \"\${$as_ac_var+set}\" = set"; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 /* System header to define __stub macros and hopefully few prototypes,
13567 which can conflict with char $ac_func (); below. */
13568 #include <assert.h>
13569 /* Override any gcc2 internal prototype to avoid an error. */
13570 #ifdef __cplusplus
13571 extern "C"
13573 #endif
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13576 char $ac_func ();
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13581 choke me
13582 #else
13583 char (*f) () = $ac_func;
13584 #endif
13585 #ifdef __cplusplus
13587 #endif
13590 main ()
13594 return 0;
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 eval "$as_ac_var=yes"
13610 else
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 eval "$as_ac_var=no"
13616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13620 if test `eval echo '${'$as_ac_var'}'` = yes; then
13621 cat >>confdefs.h <<_ACEOF
13622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13623 _ACEOF
13626 done
13629 # Check this now, so that we will NOT find the above functions in ncurses.
13630 # That is because we have not set up to link ncurses in lib-src.
13631 # It's better to believe a function is not available
13632 # than to expect to find it in ncurses.
13634 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13635 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13636 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lncurses $LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13643 /* confdefs.h. */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13649 /* Override any gcc2 internal prototype to avoid an error. */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13655 char tparm ();
13657 main ()
13659 tparm ();
13661 return 0;
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_lib_ncurses_tparm=yes
13677 else
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_cv_lib_ncurses_tparm=no
13683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_check_lib_save_LIBS
13686 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13687 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13688 if test $ac_cv_lib_ncurses_tparm = yes; then
13689 cat >>confdefs.h <<_ACEOF
13690 #define HAVE_LIBNCURSES 1
13691 _ACEOF
13693 LIBS="-lncurses $LIBS"
13698 # Do we need the Hesiod library to provide the support routines?
13699 if test "$with_hesiod" = yes ; then
13700 # Don't set $LIBS here -- see comments above.
13701 resolv=no
13702 echo "$as_me:$LINENO: checking for res_send" >&5
13703 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13704 if test "${ac_cv_func_res_send+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707 cat >conftest.$ac_ext <<_ACEOF
13708 #line $LINENO "configure"
13709 /* confdefs.h. */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char res_send (); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13718 #ifdef __cplusplus
13719 extern "C"
13721 #endif
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13724 char res_send ();
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_res_send) || defined (__stub___res_send)
13729 choke me
13730 #else
13731 char (*f) () = res_send;
13732 #endif
13733 #ifdef __cplusplus
13735 #endif
13738 main ()
13742 return 0;
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_func_res_send=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_func_res_send=no
13764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13767 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13768 if test $ac_cv_func_res_send = yes; then
13770 else
13771 echo "$as_me:$LINENO: checking for __res_send" >&5
13772 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
13773 if test "${ac_cv_func___res_send+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char __res_send (); below. */
13785 #include <assert.h>
13786 /* Override any gcc2 internal prototype to avoid an error. */
13787 #ifdef __cplusplus
13788 extern "C"
13790 #endif
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13793 char __res_send ();
13794 /* The GNU C library defines this for functions which it implements
13795 to always fail with ENOSYS. Some functions are actually named
13796 something starting with __ and the normal name is an alias. */
13797 #if defined (__stub___res_send) || defined (__stub_____res_send)
13798 choke me
13799 #else
13800 char (*f) () = __res_send;
13801 #endif
13802 #ifdef __cplusplus
13804 #endif
13807 main ()
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_func___res_send=yes
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_cv_func___res_send=no
13833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
13836 echo "${ECHO_T}$ac_cv_func___res_send" >&6
13837 if test $ac_cv_func___res_send = yes; then
13839 else
13840 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
13841 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
13842 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-lresolv $LIBS"
13847 cat >conftest.$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13849 /* confdefs.h. */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any gcc2 internal prototype to avoid an error. */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 /* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13861 char res_send ();
13863 main ()
13865 res_send ();
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -s conftest$ac_exeext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_lib_resolv_res_send=yes
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_lib_resolv_res_send=no
13889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
13893 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
13894 if test $ac_cv_lib_resolv_res_send = yes; then
13895 resolv=yes
13896 else
13897 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
13898 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
13899 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lresolv $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char __res_send ();
13920 main ()
13922 __res_send ();
13924 return 0;
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest$ac_exeext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_resolv___res_send=yes
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_cv_lib_resolv___res_send=no
13946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
13950 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
13951 if test $ac_cv_lib_resolv___res_send = yes; then
13952 resolv=yes
13961 if test "$resolv" = yes ; then
13962 RESOLVLIB=-lresolv
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBRESOLV 1
13966 _ACEOF
13968 else
13969 RESOLVLIB=
13971 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13972 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13973 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 cat >conftest.$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13978 /* confdefs.h. */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 /* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char hes_getmailhost (); below. */
13985 #include <assert.h>
13986 /* Override any gcc2 internal prototype to avoid an error. */
13987 #ifdef __cplusplus
13988 extern "C"
13990 #endif
13991 /* We use char because int might match the return type of a gcc2
13992 builtin and then its argument prototype would still apply. */
13993 char hes_getmailhost ();
13994 /* The GNU C library defines this for functions which it implements
13995 to always fail with ENOSYS. Some functions are actually named
13996 something starting with __ and the normal name is an alias. */
13997 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13998 choke me
13999 #else
14000 char (*f) () = hes_getmailhost;
14001 #endif
14002 #ifdef __cplusplus
14004 #endif
14007 main ()
14011 return 0;
14013 _ACEOF
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14016 (eval $ac_link) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_func_hes_getmailhost=yes
14027 else
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_cv_func_hes_getmailhost=no
14033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14035 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14036 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14037 if test $ac_cv_func_hes_getmailhost = yes; then
14039 else
14040 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14041 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14042 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lhesiod $RESOLVLIB $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14049 /* confdefs.h. */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14055 /* Override any gcc2 internal prototype to avoid an error. */
14056 #ifdef __cplusplus
14057 extern "C"
14058 #endif
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061 char hes_getmailhost ();
14063 main ()
14065 hes_getmailhost ();
14067 return 0;
14069 _ACEOF
14070 rm -f conftest.$ac_objext conftest$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest$ac_exeext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_lib_hesiod_hes_getmailhost=yes
14083 else
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_cv_lib_hesiod_hes_getmailhost=no
14089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14093 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14094 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14096 cat >>confdefs.h <<\_ACEOF
14097 #define HAVE_LIBHESIOD 1
14098 _ACEOF
14100 else
14108 # These tell us which Kerberos-related libraries to use.
14109 if test "${with_kerberos+set}" = set; then
14111 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14112 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14113 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lcom_err $LIBS"
14118 cat >conftest.$ac_ext <<_ACEOF
14119 #line $LINENO "configure"
14120 /* confdefs.h. */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14126 /* Override any gcc2 internal prototype to avoid an error. */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 /* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14132 char com_err ();
14134 main ()
14136 com_err ();
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_lib_com_err_com_err=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_cv_lib_com_err_com_err=no
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14163 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14164 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14165 if test $ac_cv_lib_com_err_com_err = yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define HAVE_LIBCOM_ERR 1
14168 _ACEOF
14170 LIBS="-lcom_err $LIBS"
14175 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14176 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14177 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180 ac_check_lib_save_LIBS=$LIBS
14181 LIBS="-lk5crypto $LIBS"
14182 cat >conftest.$ac_ext <<_ACEOF
14183 #line $LINENO "configure"
14184 /* confdefs.h. */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any gcc2 internal prototype to avoid an error. */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char mit_des_cbc_encrypt ();
14198 main ()
14200 mit_des_cbc_encrypt ();
14202 return 0;
14204 _ACEOF
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>&5
14208 ac_status=$?
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14218 else
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14222 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14227 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14228 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14229 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define HAVE_LIBK5CRYPTO 1
14232 _ACEOF
14234 LIBS="-lk5crypto $LIBS"
14239 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14240 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14241 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 ac_check_lib_save_LIBS=$LIBS
14245 LIBS="-lcrypto $LIBS"
14246 cat >conftest.$ac_ext <<_ACEOF
14247 #line $LINENO "configure"
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any gcc2 internal prototype to avoid an error. */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 /* We use char because int might match the return type of a gcc2
14259 builtin and then its argument prototype would still apply. */
14260 char mit_des_cbc_encrypt ();
14262 main ()
14264 mit_des_cbc_encrypt ();
14266 return 0;
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -s conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14282 else
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14292 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14293 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define HAVE_LIBCRYPTO 1
14296 _ACEOF
14298 LIBS="-lcrypto $LIBS"
14303 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14304 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14305 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308 ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-lkrb5 $LIBS"
14310 cat >conftest.$ac_ext <<_ACEOF
14311 #line $LINENO "configure"
14312 /* confdefs.h. */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14318 /* Override any gcc2 internal prototype to avoid an error. */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14324 char krb5_init_context ();
14326 main ()
14328 krb5_init_context ();
14330 return 0;
14332 _ACEOF
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335 (eval $ac_link) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -s conftest$ac_exeext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_lib_krb5_krb5_init_context=yes
14346 else
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_lib_krb5_krb5_init_context=no
14352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14353 LIBS=$ac_check_lib_save_LIBS
14355 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14356 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14357 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_LIBKRB5 1
14360 _ACEOF
14362 LIBS="-lkrb5 $LIBS"
14366 if test "${with_kerberos5+set}" != set; then
14368 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14369 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14370 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373 ac_check_lib_save_LIBS=$LIBS
14374 LIBS="-ldes425 $LIBS"
14375 cat >conftest.$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14377 /* confdefs.h. */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14383 /* Override any gcc2 internal prototype to avoid an error. */
14384 #ifdef __cplusplus
14385 extern "C"
14386 #endif
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14389 char des_cbc_encrypt ();
14391 main ()
14393 des_cbc_encrypt ();
14395 return 0;
14397 _ACEOF
14398 rm -f conftest.$ac_objext conftest$ac_exeext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14407 ac_status=$?
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_lib_des425_des_cbc_encrypt=yes
14411 else
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_cv_lib_des425_des_cbc_encrypt=no
14417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14418 LIBS=$ac_check_lib_save_LIBS
14420 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14421 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14422 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_LIBDES425 1
14425 _ACEOF
14427 LIBS="-ldes425 $LIBS"
14429 else
14431 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14432 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14433 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-ldes $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 #ifdef __cplusplus
14448 extern "C"
14449 #endif
14450 /* We use char because int might match the return type of a gcc2
14451 builtin and then its argument prototype would still apply. */
14452 char des_cbc_encrypt ();
14454 main ()
14456 des_cbc_encrypt ();
14458 return 0;
14460 _ACEOF
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -s conftest$ac_exeext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_cv_lib_des_des_cbc_encrypt=yes
14474 else
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_lib_des_des_cbc_encrypt=no
14480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14481 LIBS=$ac_check_lib_save_LIBS
14483 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14484 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14485 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14486 cat >>confdefs.h <<_ACEOF
14487 #define HAVE_LIBDES 1
14488 _ACEOF
14490 LIBS="-ldes $LIBS"
14497 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14498 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14499 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lkrb4 $LIBS"
14504 cat >conftest.$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14506 /* confdefs.h. */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any gcc2 internal prototype to avoid an error. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 /* We use char because int might match the return type of a gcc2
14517 builtin and then its argument prototype would still apply. */
14518 char krb_get_cred ();
14520 main ()
14522 krb_get_cred ();
14524 return 0;
14526 _ACEOF
14527 rm -f conftest.$ac_objext conftest$ac_exeext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529 (eval $ac_link) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -s conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_lib_krb4_krb_get_cred=yes
14540 else
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 ac_cv_lib_krb4_krb_get_cred=no
14546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14547 LIBS=$ac_check_lib_save_LIBS
14549 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14550 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14551 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_LIBKRB4 1
14554 _ACEOF
14556 LIBS="-lkrb4 $LIBS"
14558 else
14560 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14561 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14562 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 ac_check_lib_save_LIBS=$LIBS
14566 LIBS="-lkrb $LIBS"
14567 cat >conftest.$ac_ext <<_ACEOF
14568 #line $LINENO "configure"
14569 /* confdefs.h. */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14575 /* Override any gcc2 internal prototype to avoid an error. */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 /* We use char because int might match the return type of a gcc2
14580 builtin and then its argument prototype would still apply. */
14581 char krb_get_cred ();
14583 main ()
14585 krb_get_cred ();
14587 return 0;
14589 _ACEOF
14590 rm -f conftest.$ac_objext conftest$ac_exeext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14592 (eval $ac_link) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -s conftest$ac_exeext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_lib_krb_krb_get_cred=yes
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_cv_lib_krb_krb_get_cred=no
14609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14610 LIBS=$ac_check_lib_save_LIBS
14612 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14613 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14614 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_LIBKRB 1
14617 _ACEOF
14619 LIBS="-lkrb $LIBS"
14627 if test "${with_kerberos5+set}" = set; then
14629 for ac_header in krb5.h
14631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14633 echo "$as_me:$LINENO: checking for $ac_header" >&5
14634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14640 else
14641 # Is the header compilable?
14642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14644 cat >conftest.$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14646 /* confdefs.h. */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14652 #include <$ac_header>
14653 _ACEOF
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_header_compiler=yes
14667 else
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_header_compiler=no
14673 rm -f conftest.$ac_objext conftest.$ac_ext
14674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14675 echo "${ECHO_T}$ac_header_compiler" >&6
14677 # Is the header present?
14678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 #include <$ac_header>
14688 _ACEOF
14689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } >/dev/null; then
14697 if test -s conftest.err; then
14698 ac_cpp_err=$ac_c_preproc_warn_flag
14699 else
14700 ac_cpp_err=
14702 else
14703 ac_cpp_err=yes
14705 if test -z "$ac_cpp_err"; then
14706 ac_header_preproc=yes
14707 else
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_header_preproc=no
14713 rm -f conftest.err conftest.$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14715 echo "${ECHO_T}$ac_header_preproc" >&6
14717 # So? What about this header?
14718 case $ac_header_compiler:$ac_header_preproc in
14719 yes:no )
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725 cat <<\_ASBOX
14726 ## ------------------------------------ ##
14727 ## Report this to bug-autoconf@gnu.org. ##
14728 ## ------------------------------------ ##
14729 _ASBOX
14731 sed "s/^/$as_me: WARNING: /" >&2
14733 no:yes )
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14741 cat <<\_ASBOX
14742 ## ------------------------------------ ##
14743 ## Report this to bug-autoconf@gnu.org. ##
14744 ## ------------------------------------ ##
14745 _ASBOX
14747 sed "s/^/$as_me: WARNING: /" >&2
14749 esac
14750 echo "$as_me:$LINENO: checking for $ac_header" >&5
14751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 eval "$as_ac_Header=$ac_header_preproc"
14757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14762 cat >>confdefs.h <<_ACEOF
14763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14764 _ACEOF
14768 done
14770 else
14772 for ac_header in des.h
14774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14776 echo "$as_me:$LINENO: checking for $ac_header" >&5
14777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14783 else
14784 # Is the header compilable?
14785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14787 cat >conftest.$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <$ac_header>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>&5
14800 ac_status=$?
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14806 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_header_compiler=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ac_header_compiler=no
14816 rm -f conftest.$ac_objext conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14818 echo "${ECHO_T}$ac_header_compiler" >&6
14820 # Is the header present?
14821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14823 cat >conftest.$ac_ext <<_ACEOF
14824 #line $LINENO "configure"
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #include <$ac_header>
14831 _ACEOF
14832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev/null; then
14840 if test -s conftest.err; then
14841 ac_cpp_err=$ac_c_preproc_warn_flag
14842 else
14843 ac_cpp_err=
14845 else
14846 ac_cpp_err=yes
14848 if test -z "$ac_cpp_err"; then
14849 ac_header_preproc=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_preproc=no
14856 rm -f conftest.err conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6
14860 # So? What about this header?
14861 case $ac_header_compiler:$ac_header_preproc in
14862 yes:no )
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14868 cat <<\_ASBOX
14869 ## ------------------------------------ ##
14870 ## Report this to bug-autoconf@gnu.org. ##
14871 ## ------------------------------------ ##
14872 _ASBOX
14874 sed "s/^/$as_me: WARNING: /" >&2
14876 no:yes )
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14884 cat <<\_ASBOX
14885 ## ------------------------------------ ##
14886 ## Report this to bug-autoconf@gnu.org. ##
14887 ## ------------------------------------ ##
14888 _ASBOX
14890 sed "s/^/$as_me: WARNING: /" >&2
14892 esac
14893 echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 eval "$as_ac_Header=$ac_header_preproc"
14900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14905 cat >>confdefs.h <<_ACEOF
14906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14907 _ACEOF
14909 else
14911 for ac_header in kerberosIV/des.h
14913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14922 else
14923 # Is the header compilable?
14924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14928 /* confdefs.h. */
14929 _ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 $ac_includes_default
14934 #include <$ac_header>
14935 _ACEOF
14936 rm -f conftest.$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -s conftest.$ac_objext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_header_compiler=yes
14949 else
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.$ac_ext >&5
14953 ac_header_compiler=no
14955 rm -f conftest.$ac_objext conftest.$ac_ext
14956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14957 echo "${ECHO_T}$ac_header_compiler" >&6
14959 # Is the header present?
14960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14962 cat >conftest.$ac_ext <<_ACEOF
14963 #line $LINENO "configure"
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <$ac_header>
14970 _ACEOF
14971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } >/dev/null; then
14979 if test -s conftest.err; then
14980 ac_cpp_err=$ac_c_preproc_warn_flag
14981 else
14982 ac_cpp_err=
14984 else
14985 ac_cpp_err=yes
14987 if test -z "$ac_cpp_err"; then
14988 ac_header_preproc=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_header_preproc=no
14995 rm -f conftest.err conftest.$ac_ext
14996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14997 echo "${ECHO_T}$ac_header_preproc" >&6
14999 # So? What about this header?
15000 case $ac_header_compiler:$ac_header_preproc in
15001 yes:no )
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15007 cat <<\_ASBOX
15008 ## ------------------------------------ ##
15009 ## Report this to bug-autoconf@gnu.org. ##
15010 ## ------------------------------------ ##
15011 _ASBOX
15013 sed "s/^/$as_me: WARNING: /" >&2
15015 no:yes )
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15023 cat <<\_ASBOX
15024 ## ------------------------------------ ##
15025 ## Report this to bug-autoconf@gnu.org. ##
15026 ## ------------------------------------ ##
15027 _ASBOX
15029 sed "s/^/$as_me: WARNING: /" >&2
15031 esac
15032 echo "$as_me:$LINENO: checking for $ac_header" >&5
15033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037 eval "$as_ac_Header=$ac_header_preproc"
15039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15044 cat >>confdefs.h <<_ACEOF
15045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15046 _ACEOF
15048 else
15050 for ac_header in kerberos/des.h
15052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15054 echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15061 else
15062 # Is the header compilable?
15063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15067 /* confdefs.h. */
15068 _ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 $ac_includes_default
15073 #include <$ac_header>
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_header_compiler=yes
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_header_compiler=no
15094 rm -f conftest.$ac_objext conftest.$ac_ext
15095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 echo "${ECHO_T}$ac_header_compiler" >&6
15098 # Is the header present?
15099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15101 cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <$ac_header>
15109 _ACEOF
15110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15112 ac_status=$?
15113 grep -v '^ *+' conftest.er1 >conftest.err
15114 rm -f conftest.er1
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } >/dev/null; then
15118 if test -s conftest.err; then
15119 ac_cpp_err=$ac_c_preproc_warn_flag
15120 else
15121 ac_cpp_err=
15123 else
15124 ac_cpp_err=yes
15126 if test -z "$ac_cpp_err"; then
15127 ac_header_preproc=yes
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_header_preproc=no
15134 rm -f conftest.err conftest.$ac_ext
15135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15136 echo "${ECHO_T}$ac_header_preproc" >&6
15138 # So? What about this header?
15139 case $ac_header_compiler:$ac_header_preproc in
15140 yes:no )
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15146 cat <<\_ASBOX
15147 ## ------------------------------------ ##
15148 ## Report this to bug-autoconf@gnu.org. ##
15149 ## ------------------------------------ ##
15150 _ASBOX
15152 sed "s/^/$as_me: WARNING: /" >&2
15154 no:yes )
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15162 cat <<\_ASBOX
15163 ## ------------------------------------ ##
15164 ## Report this to bug-autoconf@gnu.org. ##
15165 ## ------------------------------------ ##
15166 _ASBOX
15168 sed "s/^/$as_me: WARNING: /" >&2
15170 esac
15171 echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176 eval "$as_ac_Header=$ac_header_preproc"
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15185 _ACEOF
15189 done
15193 done
15197 done
15200 for ac_header in krb.h
15202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15211 else
15212 # Is the header compilable?
15213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15215 cat >conftest.$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15223 #include <$ac_header>
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227 (eval $ac_compile) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15238 else
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_header_compiler=no
15244 rm -f conftest.$ac_objext conftest.$ac_ext
15245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15246 echo "${ECHO_T}$ac_header_compiler" >&6
15248 # Is the header present?
15249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15252 #line $LINENO "configure"
15253 /* confdefs.h. */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 #include <$ac_header>
15259 _ACEOF
15260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev/null; then
15268 if test -s conftest.err; then
15269 ac_cpp_err=$ac_c_preproc_warn_flag
15270 else
15271 ac_cpp_err=
15273 else
15274 ac_cpp_err=yes
15276 if test -z "$ac_cpp_err"; then
15277 ac_header_preproc=yes
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_preproc=no
15284 rm -f conftest.err conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15286 echo "${ECHO_T}$ac_header_preproc" >&6
15288 # So? What about this header?
15289 case $ac_header_compiler:$ac_header_preproc in
15290 yes:no )
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15296 cat <<\_ASBOX
15297 ## ------------------------------------ ##
15298 ## Report this to bug-autoconf@gnu.org. ##
15299 ## ------------------------------------ ##
15300 _ASBOX
15302 sed "s/^/$as_me: WARNING: /" >&2
15304 no:yes )
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15312 cat <<\_ASBOX
15313 ## ------------------------------------ ##
15314 ## Report this to bug-autoconf@gnu.org. ##
15315 ## ------------------------------------ ##
15316 _ASBOX
15318 sed "s/^/$as_me: WARNING: /" >&2
15320 esac
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326 eval "$as_ac_Header=$ac_header_preproc"
15328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15335 _ACEOF
15337 else
15339 for ac_header in kerberosIV/krb.h
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15343 echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15350 else
15351 # Is the header compilable?
15352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15354 cat >conftest.$ac_ext <<_ACEOF
15355 #line $LINENO "configure"
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #include <$ac_header>
15363 _ACEOF
15364 rm -f conftest.$ac_objext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15366 (eval $ac_compile) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -s conftest.$ac_objext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_header_compiler=yes
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_header_compiler=no
15383 rm -f conftest.$ac_objext conftest.$ac_ext
15384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 echo "${ECHO_T}$ac_header_compiler" >&6
15387 # Is the header present?
15388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15392 /* confdefs.h. */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <$ac_header>
15398 _ACEOF
15399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15401 ac_status=$?
15402 grep -v '^ *+' conftest.er1 >conftest.err
15403 rm -f conftest.er1
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } >/dev/null; then
15407 if test -s conftest.err; then
15408 ac_cpp_err=$ac_c_preproc_warn_flag
15409 else
15410 ac_cpp_err=
15412 else
15413 ac_cpp_err=yes
15415 if test -z "$ac_cpp_err"; then
15416 ac_header_preproc=yes
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_header_preproc=no
15423 rm -f conftest.err conftest.$ac_ext
15424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc in
15429 yes:no )
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435 cat <<\_ASBOX
15436 ## ------------------------------------ ##
15437 ## Report this to bug-autoconf@gnu.org. ##
15438 ## ------------------------------------ ##
15439 _ASBOX
15441 sed "s/^/$as_me: WARNING: /" >&2
15443 no:yes )
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15451 cat <<\_ASBOX
15452 ## ------------------------------------ ##
15453 ## Report this to bug-autoconf@gnu.org. ##
15454 ## ------------------------------------ ##
15455 _ASBOX
15457 sed "s/^/$as_me: WARNING: /" >&2
15459 esac
15460 echo "$as_me:$LINENO: checking for $ac_header" >&5
15461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 eval "$as_ac_Header=$ac_header_preproc"
15467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15472 cat >>confdefs.h <<_ACEOF
15473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15474 _ACEOF
15476 else
15478 for ac_header in kerberos/krb.h
15480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15482 echo "$as_me:$LINENO: checking for $ac_header" >&5
15483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15489 else
15490 # Is the header compilable?
15491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15493 cat >conftest.$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <$ac_header>
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_header_compiler=yes
15516 else
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.$ac_ext >&5
15520 ac_header_compiler=no
15522 rm -f conftest.$ac_objext conftest.$ac_ext
15523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15524 echo "${ECHO_T}$ac_header_compiler" >&6
15526 # Is the header present?
15527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15529 cat >conftest.$ac_ext <<_ACEOF
15530 #line $LINENO "configure"
15531 /* confdefs.h. */
15532 _ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 #include <$ac_header>
15537 _ACEOF
15538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev/null; then
15546 if test -s conftest.err; then
15547 ac_cpp_err=$ac_c_preproc_warn_flag
15548 else
15549 ac_cpp_err=
15551 else
15552 ac_cpp_err=yes
15554 if test -z "$ac_cpp_err"; then
15555 ac_header_preproc=yes
15556 else
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_header_preproc=no
15562 rm -f conftest.err conftest.$ac_ext
15563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6
15566 # So? What about this header?
15567 case $ac_header_compiler:$ac_header_preproc in
15568 yes:no )
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15574 cat <<\_ASBOX
15575 ## ------------------------------------ ##
15576 ## Report this to bug-autoconf@gnu.org. ##
15577 ## ------------------------------------ ##
15578 _ASBOX
15580 sed "s/^/$as_me: WARNING: /" >&2
15582 no:yes )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15590 cat <<\_ASBOX
15591 ## ------------------------------------ ##
15592 ## Report this to bug-autoconf@gnu.org. ##
15593 ## ------------------------------------ ##
15594 _ASBOX
15596 sed "s/^/$as_me: WARNING: /" >&2
15598 esac
15599 echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 eval "$as_ac_Header=$ac_header_preproc"
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 _ACEOF
15617 done
15621 done
15625 done
15629 for ac_header in com_err.h
15631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15633 echo "$as_me:$LINENO: checking for $ac_header" >&5
15634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15640 else
15641 # Is the header compilable?
15642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 $ac_includes_default
15652 #include <$ac_header>
15653 _ACEOF
15654 rm -f conftest.$ac_objext
15655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 ac_header_compiler=yes
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_header_compiler=no
15673 rm -f conftest.$ac_objext conftest.$ac_ext
15674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15675 echo "${ECHO_T}$ac_header_compiler" >&6
15677 # Is the header present?
15678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15680 cat >conftest.$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <$ac_header>
15688 _ACEOF
15689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } >/dev/null; then
15697 if test -s conftest.err; then
15698 ac_cpp_err=$ac_c_preproc_warn_flag
15699 else
15700 ac_cpp_err=
15702 else
15703 ac_cpp_err=yes
15705 if test -z "$ac_cpp_err"; then
15706 ac_header_preproc=yes
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ac_header_preproc=no
15713 rm -f conftest.err conftest.$ac_ext
15714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15715 echo "${ECHO_T}$ac_header_preproc" >&6
15717 # So? What about this header?
15718 case $ac_header_compiler:$ac_header_preproc in
15719 yes:no )
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15725 cat <<\_ASBOX
15726 ## ------------------------------------ ##
15727 ## Report this to bug-autoconf@gnu.org. ##
15728 ## ------------------------------------ ##
15729 _ASBOX
15731 sed "s/^/$as_me: WARNING: /" >&2
15733 no:yes )
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15741 cat <<\_ASBOX
15742 ## ------------------------------------ ##
15743 ## Report this to bug-autoconf@gnu.org. ##
15744 ## ------------------------------------ ##
15745 _ASBOX
15747 sed "s/^/$as_me: WARNING: /" >&2
15749 esac
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755 eval "$as_ac_Header=$ac_header_preproc"
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 _ACEOF
15768 done
15772 # Solaris requires -lintl if you want strerror (which calls dgettext)
15773 # to return localized messages.
15775 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15776 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
15777 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780 ac_check_lib_save_LIBS=$LIBS
15781 LIBS="-lintl $LIBS"
15782 cat >conftest.$ac_ext <<_ACEOF
15783 #line $LINENO "configure"
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15790 /* Override any gcc2 internal prototype to avoid an error. */
15791 #ifdef __cplusplus
15792 extern "C"
15793 #endif
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15796 char dgettext ();
15798 main ()
15800 dgettext ();
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_cv_lib_intl_dgettext=yes
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_cv_lib_intl_dgettext=no
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15825 LIBS=$ac_check_lib_save_LIBS
15827 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15828 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
15829 if test $ac_cv_lib_intl_dgettext = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define HAVE_LIBINTL 1
15832 _ACEOF
15834 LIBS="-lintl $LIBS"
15839 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
15840 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
15841 if test "${emacs_cv_localtime_cache+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844 if test x$ac_cv_func_tzset = xyes; then
15845 if test "$cross_compiling" = yes; then
15846 # If we have tzset, assume the worst when cross-compiling.
15847 emacs_cv_localtime_cache=yes
15848 else
15849 cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #include <time.h>
15857 extern char **environ;
15858 unset_TZ ()
15860 char **from, **to;
15861 for (to = from = environ; (*to = *from); from++)
15862 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
15863 to++;
15865 char TZ_GMT0[] = "TZ=GMT0";
15866 char TZ_PST8[] = "TZ=PST8";
15867 main()
15869 time_t now = time ((time_t *) 0);
15870 int hour_GMT0, hour_unset;
15871 if (putenv (TZ_GMT0) != 0)
15872 exit (1);
15873 hour_GMT0 = localtime (&now)->tm_hour;
15874 unset_TZ ();
15875 hour_unset = localtime (&now)->tm_hour;
15876 if (putenv (TZ_PST8) != 0)
15877 exit (1);
15878 if (localtime (&now)->tm_hour == hour_GMT0)
15879 exit (1);
15880 unset_TZ ();
15881 if (localtime (&now)->tm_hour != hour_unset)
15882 exit (1);
15883 exit (0);
15885 _ACEOF
15886 rm -f conftest$ac_exeext
15887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15888 (eval $ac_link) 2>&5
15889 ac_status=$?
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 emacs_cv_localtime_cache=no
15898 else
15899 echo "$as_me: program exited with status $ac_status" >&5
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.$ac_ext >&5
15903 ( exit $ac_status )
15904 emacs_cv_localtime_cache=yes
15906 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15908 else
15909 # If we lack tzset, report that localtime does not cache TZ,
15910 # since we can't invalidate the cache if we don't have tzset.
15911 emacs_cv_localtime_cache=no
15914 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
15915 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
15916 if test $emacs_cv_localtime_cache = yes; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define LOCALTIME_CACHE 1
15920 _ACEOF
15924 if test "x$HAVE_TIMEVAL" = xyes; then
15926 for ac_func in gettimeofday
15928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15929 echo "$as_me:$LINENO: checking for $ac_func" >&5
15930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15931 if eval "test \"\${$as_ac_var+set}\" = set"; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 /* confdefs.h. */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func (); below. */
15943 #include <assert.h>
15944 /* Override any gcc2 internal prototype to avoid an error. */
15945 #ifdef __cplusplus
15946 extern "C"
15948 #endif
15949 /* We use char because int might match the return type of a gcc2
15950 builtin and then its argument prototype would still apply. */
15951 char $ac_func ();
15952 /* The GNU C library defines this for functions which it implements
15953 to always fail with ENOSYS. Some functions are actually named
15954 something starting with __ and the normal name is an alias. */
15955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15956 choke me
15957 #else
15958 char (*f) () = $ac_func;
15959 #endif
15960 #ifdef __cplusplus
15962 #endif
15965 main ()
15969 return 0;
15971 _ACEOF
15972 rm -f conftest.$ac_objext conftest$ac_exeext
15973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15974 (eval $ac_link) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try='test -s conftest$ac_exeext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 eval "$as_ac_var=yes"
15985 else
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 eval "$as_ac_var=no"
15991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15995 if test `eval echo '${'$as_ac_var'}'` = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15998 _ACEOF
16001 done
16003 if test $ac_cv_func_gettimeofday = yes; then
16004 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16005 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16006 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 cat >conftest.$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 #ifdef TIME_WITH_SYS_TIME
16018 #include <sys/time.h>
16019 #include <time.h>
16020 #else
16021 #ifdef HAVE_SYS_TIME_H
16022 #include <sys/time.h>
16023 #else
16024 #include <time.h>
16025 #endif
16026 #endif
16028 main ()
16030 struct timeval time;
16031 gettimeofday (&time, 0);
16033 return 0;
16035 _ACEOF
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 emacs_cv_gettimeofday_two_arguments=yes
16049 else
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 emacs_cv_gettimeofday_two_arguments=no
16055 rm -f conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16058 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16059 if test $emacs_cv_gettimeofday_two_arguments = no; then
16061 cat >>confdefs.h <<\_ACEOF
16062 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16063 _ACEOF
16069 if test "$ac_cv_func_gettimeofday" = yes; then
16070 echo "$as_me:$LINENO: checking for struct timezone" >&5
16071 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16072 if test "${emacs_cv_struct_timezone+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075 cat >conftest.$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <sys/time.h>
16084 main ()
16086 struct timezone tz;
16088 return 0;
16090 _ACEOF
16091 rm -f conftest.$ac_objext
16092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16093 (eval $ac_compile) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 if test "$cross_compiling" = yes; then
16104 emacs_cv_struct_timezone=yes
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16114 #ifdef TIME_WITH_SYS_TIME
16115 #include <sys/time.h>
16116 #include <time.h>
16117 #else
16118 #ifdef HAVE_SYS_TIME_H
16119 #include <sys/time.h>
16120 #else
16121 #include <time.h>
16122 #endif
16123 #endif
16124 main () {
16125 struct timeval time;
16126 struct timezone dummy;
16127 exit (gettimeofday (&time, &dummy));
16129 _ACEOF
16130 rm -f conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 emacs_cv_struct_timezone=yes
16142 else
16143 echo "$as_me: program exited with status $ac_status" >&5
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 ( exit $ac_status )
16148 emacs_cv_struct_timezone=no
16150 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16152 else
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 emacs_cv_struct_timezone=no
16158 rm -f conftest.$ac_objext conftest.$ac_ext
16160 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16161 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16164 ok_so_far=yes
16165 echo "$as_me:$LINENO: checking for socket" >&5
16166 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16167 if test "${ac_cv_func_socket+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170 cat >conftest.$ac_ext <<_ACEOF
16171 #line $LINENO "configure"
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char socket (); below. */
16179 #include <assert.h>
16180 /* Override any gcc2 internal prototype to avoid an error. */
16181 #ifdef __cplusplus
16182 extern "C"
16184 #endif
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16187 char socket ();
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_socket) || defined (__stub___socket)
16192 choke me
16193 #else
16194 char (*f) () = socket;
16195 #endif
16196 #ifdef __cplusplus
16198 #endif
16201 main ()
16205 return 0;
16207 _ACEOF
16208 rm -f conftest.$ac_objext conftest$ac_exeext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210 (eval $ac_link) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -s conftest$ac_exeext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_func_socket=yes
16221 else
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_cv_func_socket=no
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16229 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16230 echo "${ECHO_T}$ac_cv_func_socket" >&6
16231 if test $ac_cv_func_socket = yes; then
16233 else
16234 ok_so_far=no
16237 if test $ok_so_far = yes; then
16238 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16239 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16240 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16241 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16245 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16246 else
16247 # Is the header compilable?
16248 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16249 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16250 cat >conftest.$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 $ac_includes_default
16258 #include <netinet/in.h>
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_header_compiler=yes
16273 else
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16279 rm -f conftest.$ac_objext conftest.$ac_ext
16280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16281 echo "${ECHO_T}$ac_header_compiler" >&6
16283 # Is the header present?
16284 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16285 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16286 cat >conftest.$ac_ext <<_ACEOF
16287 #line $LINENO "configure"
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <netinet/in.h>
16294 _ACEOF
16295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_c_preproc_warn_flag
16305 else
16306 ac_cpp_err=
16308 else
16309 ac_cpp_err=yes
16311 if test -z "$ac_cpp_err"; then
16312 ac_header_preproc=yes
16313 else
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_preproc=no
16319 rm -f conftest.err conftest.$ac_ext
16320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16321 echo "${ECHO_T}$ac_header_preproc" >&6
16323 # So? What about this header?
16324 case $ac_header_compiler:$ac_header_preproc in
16325 yes:no )
16326 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16327 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16331 cat <<\_ASBOX
16332 ## ------------------------------------ ##
16333 ## Report this to bug-autoconf@gnu.org. ##
16334 ## ------------------------------------ ##
16335 _ASBOX
16337 sed "s/^/$as_me: WARNING: /" >&2
16339 no:yes )
16340 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16345 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16347 cat <<\_ASBOX
16348 ## ------------------------------------ ##
16349 ## Report this to bug-autoconf@gnu.org. ##
16350 ## ------------------------------------ ##
16351 _ASBOX
16353 sed "s/^/$as_me: WARNING: /" >&2
16355 esac
16356 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16357 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16358 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361 ac_cv_header_netinet_in_h=$ac_header_preproc
16363 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16364 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16367 if test $ac_cv_header_netinet_in_h = yes; then
16369 else
16370 ok_so_far=no
16375 if test $ok_so_far = yes; then
16376 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16377 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16378 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16379 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16383 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16384 else
16385 # Is the header compilable?
16386 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16387 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16389 #line $LINENO "configure"
16390 /* confdefs.h. */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16396 #include <arpa/inet.h>
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_header_compiler=no
16417 rm -f conftest.$ac_objext conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419 echo "${ECHO_T}$ac_header_compiler" >&6
16421 # Is the header present?
16422 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16423 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 #include <arpa/inet.h>
16432 _ACEOF
16433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } >/dev/null; then
16441 if test -s conftest.err; then
16442 ac_cpp_err=$ac_c_preproc_warn_flag
16443 else
16444 ac_cpp_err=
16446 else
16447 ac_cpp_err=yes
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc=yes
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_header_preproc=no
16457 rm -f conftest.err conftest.$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc in
16463 yes:no )
16464 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16469 cat <<\_ASBOX
16470 ## ------------------------------------ ##
16471 ## Report this to bug-autoconf@gnu.org. ##
16472 ## ------------------------------------ ##
16473 _ASBOX
16475 sed "s/^/$as_me: WARNING: /" >&2
16477 no:yes )
16478 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16479 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16481 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16483 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16485 cat <<\_ASBOX
16486 ## ------------------------------------ ##
16487 ## Report this to bug-autoconf@gnu.org. ##
16488 ## ------------------------------------ ##
16489 _ASBOX
16491 sed "s/^/$as_me: WARNING: /" >&2
16493 esac
16494 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16495 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16496 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499 ac_cv_header_arpa_inet_h=$ac_header_preproc
16501 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16502 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16505 if test $ac_cv_header_arpa_inet_h = yes; then
16507 else
16508 ok_so_far=no
16513 if test $ok_so_far = yes; then
16515 cat >>confdefs.h <<\_ACEOF
16516 #define HAVE_INET_SOCKETS 1
16517 _ACEOF
16521 if test -f /usr/lpp/X11/bin/smt.exp; then
16523 cat >>confdefs.h <<\_ACEOF
16524 #define HAVE_AIX_SMT_EXP 1
16525 _ACEOF
16529 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16530 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16531 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16532 echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_DEV_PTMX 1
16537 _ACEOF
16539 else
16540 echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6
16544 echo "$as_me:$LINENO: checking for pid_t" >&5
16545 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16546 if test "${ac_cv_type_pid_t+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549 cat >conftest.$ac_ext <<_ACEOF
16550 #line $LINENO "configure"
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 $ac_includes_default
16558 main ()
16560 if ((pid_t *) 0)
16561 return 0;
16562 if (sizeof (pid_t))
16563 return 0;
16565 return 0;
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_type_pid_t=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_cv_type_pid_t=no
16587 rm -f conftest.$ac_objext conftest.$ac_ext
16589 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16591 if test $ac_cv_type_pid_t = yes; then
16593 else
16595 cat >>confdefs.h <<_ACEOF
16596 #define pid_t int
16597 _ACEOF
16603 for ac_header in unistd.h vfork.h
16605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16607 echo "$as_me:$LINENO: checking for $ac_header" >&5
16608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16614 else
16615 # Is the header compilable?
16616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16626 #include <$ac_header>
16627 _ACEOF
16628 rm -f conftest.$ac_objext
16629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16630 (eval $ac_compile) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_header_compiler=yes
16641 else
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_header_compiler=no
16647 rm -f conftest.$ac_objext conftest.$ac_ext
16648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16649 echo "${ECHO_T}$ac_header_compiler" >&6
16651 # Is the header present?
16652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16656 /* confdefs.h. */
16657 _ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 #include <$ac_header>
16662 _ACEOF
16663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null; then
16671 if test -s conftest.err; then
16672 ac_cpp_err=$ac_c_preproc_warn_flag
16673 else
16674 ac_cpp_err=
16676 else
16677 ac_cpp_err=yes
16679 if test -z "$ac_cpp_err"; then
16680 ac_header_preproc=yes
16681 else
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ac_header_preproc=no
16687 rm -f conftest.err conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16689 echo "${ECHO_T}$ac_header_preproc" >&6
16691 # So? What about this header?
16692 case $ac_header_compiler:$ac_header_preproc in
16693 yes:no )
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16699 cat <<\_ASBOX
16700 ## ------------------------------------ ##
16701 ## Report this to bug-autoconf@gnu.org. ##
16702 ## ------------------------------------ ##
16703 _ASBOX
16705 sed "s/^/$as_me: WARNING: /" >&2
16707 no:yes )
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16715 cat <<\_ASBOX
16716 ## ------------------------------------ ##
16717 ## Report this to bug-autoconf@gnu.org. ##
16718 ## ------------------------------------ ##
16719 _ASBOX
16721 sed "s/^/$as_me: WARNING: /" >&2
16723 esac
16724 echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729 eval "$as_ac_Header=$ac_header_preproc"
16731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16738 _ACEOF
16742 done
16746 for ac_func in fork vfork
16748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16749 echo "$as_me:$LINENO: checking for $ac_func" >&5
16750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_var+set}\" = set"; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754 cat >conftest.$ac_ext <<_ACEOF
16755 #line $LINENO "configure"
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char $ac_func (); below. */
16763 #include <assert.h>
16764 /* Override any gcc2 internal prototype to avoid an error. */
16765 #ifdef __cplusplus
16766 extern "C"
16768 #endif
16769 /* We use char because int might match the return type of a gcc2
16770 builtin and then its argument prototype would still apply. */
16771 char $ac_func ();
16772 /* The GNU C library defines this for functions which it implements
16773 to always fail with ENOSYS. Some functions are actually named
16774 something starting with __ and the normal name is an alias. */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16776 choke me
16777 #else
16778 char (*f) () = $ac_func;
16779 #endif
16780 #ifdef __cplusplus
16782 #endif
16785 main ()
16789 return 0;
16791 _ACEOF
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 eval "$as_ac_var=yes"
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 eval "$as_ac_var=no"
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16815 if test `eval echo '${'$as_ac_var'}'` = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16818 _ACEOF
16821 done
16823 if test "x$ac_cv_func_fork" = xyes; then
16824 echo "$as_me:$LINENO: checking for working fork" >&5
16825 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16826 if test "${ac_cv_func_fork_works+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829 if test "$cross_compiling" = yes; then
16830 ac_cv_func_fork_works=cross
16831 else
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* By Ruediger Kuhlmann. */
16834 #include <sys/types.h>
16835 #if HAVE_UNISTD_H
16836 # include <unistd.h>
16837 #endif
16838 /* Some systems only have a dummy stub for fork() */
16839 int main ()
16841 if (fork() < 0)
16842 exit (1);
16843 exit (0);
16845 _ACEOF
16846 rm -f conftest$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_func_fork_works=yes
16858 else
16859 echo "$as_me: program exited with status $ac_status" >&5
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ( exit $ac_status )
16864 ac_cv_func_fork_works=no
16866 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16869 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16870 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16872 else
16873 ac_cv_func_fork_works=$ac_cv_func_fork
16875 if test "x$ac_cv_func_fork_works" = xcross; then
16876 case $host in
16877 *-*-amigaos* | *-*-msdosdjgpp*)
16878 # Override, as these systems have only a dummy fork() stub
16879 ac_cv_func_fork_works=no
16882 ac_cv_func_fork_works=yes
16884 esac
16885 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16886 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16888 ac_cv_func_vfork_works=$ac_cv_func_vfork
16889 if test "x$ac_cv_func_vfork" = xyes; then
16890 echo "$as_me:$LINENO: checking for working vfork" >&5
16891 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16892 if test "${ac_cv_func_vfork_works+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 if test "$cross_compiling" = yes; then
16896 ac_cv_func_vfork_works=cross
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 #line $LINENO "configure"
16900 /* confdefs.h. */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Thanks to Paul Eggert for this test. */
16906 #include <stdio.h>
16907 #include <stdlib.h>
16908 #include <sys/types.h>
16909 #include <sys/stat.h>
16910 #include <sys/wait.h>
16911 #if HAVE_UNISTD_H
16912 # include <unistd.h>
16913 #endif
16914 #if HAVE_VFORK_H
16915 # include <vfork.h>
16916 #endif
16917 /* On some sparc systems, changes by the child to local and incoming
16918 argument registers are propagated back to the parent. The compiler
16919 is told about this with #include <vfork.h>, but some compilers
16920 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16921 static variable whose address is put into a register that is
16922 clobbered by the vfork. */
16923 static void
16924 #ifdef __cplusplus
16925 sparc_address_test (int arg)
16926 # else
16927 sparc_address_test (arg) int arg;
16928 #endif
16930 static pid_t child;
16931 if (!child) {
16932 child = vfork ();
16933 if (child < 0) {
16934 perror ("vfork");
16935 _exit(2);
16937 if (!child) {
16938 arg = getpid();
16939 write(-1, "", 0);
16940 _exit (arg);
16946 main ()
16948 pid_t parent = getpid ();
16949 pid_t child;
16951 sparc_address_test (0);
16953 child = vfork ();
16955 if (child == 0) {
16956 /* Here is another test for sparc vfork register problems. This
16957 test uses lots of local variables, at least as many local
16958 variables as main has allocated so far including compiler
16959 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16960 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16961 reuse the register of parent for one of the local variables,
16962 since it will think that parent can't possibly be used any more
16963 in this routine. Assigning to the local variable will thus
16964 munge parent in the parent process. */
16965 pid_t
16966 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16967 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16968 /* Convince the compiler that p..p7 are live; otherwise, it might
16969 use the same hardware register for all 8 local variables. */
16970 if (p != p1 || p != p2 || p != p3 || p != p4
16971 || p != p5 || p != p6 || p != p7)
16972 _exit(1);
16974 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16975 from child file descriptors. If the child closes a descriptor
16976 before it execs or exits, this munges the parent's descriptor
16977 as well. Test for this by closing stdout in the child. */
16978 _exit(close(fileno(stdout)) != 0);
16979 } else {
16980 int status;
16981 struct stat st;
16983 while (wait(&status) != child)
16985 exit(
16986 /* Was there some problem with vforking? */
16987 child < 0
16989 /* Did the child fail? (This shouldn't happen.) */
16990 || status
16992 /* Did the vfork/compiler bug occur? */
16993 || parent != getpid()
16995 /* Did the file descriptor bug occur? */
16996 || fstat(fileno(stdout), &st) != 0
17000 _ACEOF
17001 rm -f conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003 (eval $ac_link) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_func_vfork_works=yes
17013 else
17014 echo "$as_me: program exited with status $ac_status" >&5
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ( exit $ac_status )
17019 ac_cv_func_vfork_works=no
17021 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17025 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17028 if test "x$ac_cv_func_fork_works" = xcross; then
17029 ac_cv_func_vfork_works=ac_cv_func_vfork
17030 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17031 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17034 if test "x$ac_cv_func_vfork_works" = xyes; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_WORKING_VFORK 1
17038 _ACEOF
17040 else
17042 cat >>confdefs.h <<\_ACEOF
17043 #define vfork fork
17044 _ACEOF
17047 if test "x$ac_cv_func_fork_works" = xyes; then
17049 cat >>confdefs.h <<\_ACEOF
17050 #define HAVE_WORKING_FORK 1
17051 _ACEOF
17056 echo "$as_me:$LINENO: checking for size_t" >&5
17057 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17058 if test "${ac_cv_type_size_t+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17070 main ()
17072 if ((size_t *) 0)
17073 return 0;
17074 if (sizeof (size_t))
17075 return 0;
17077 return 0;
17079 _ACEOF
17080 rm -f conftest.$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try='test -s conftest.$ac_objext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_size_t=yes
17093 else
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 ac_cv_type_size_t=no
17099 rm -f conftest.$ac_objext conftest.$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17102 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17103 if test $ac_cv_type_size_t = yes; then
17105 cat >>confdefs.h <<_ACEOF
17106 #define HAVE_SIZE_T 1
17107 _ACEOF
17113 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17114 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17115 if test "${emacs_cv_c_restrict+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 void fred (int *restrict x);
17127 main ()
17131 return 0;
17133 _ACEOF
17134 rm -f conftest.$ac_objext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17136 (eval $ac_compile) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 emacs_cv_c_restrict=yes
17147 else
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 cat >conftest.$ac_ext <<_ACEOF
17152 #line $LINENO "configure"
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 void fred (int *__restrict x);
17160 main ()
17164 return 0;
17166 _ACEOF
17167 rm -f conftest.$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 emacs_cv_c_restrict=__restrict
17180 else
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 emacs_cv_c_restrict=no
17186 rm -f conftest.$ac_objext conftest.$ac_ext
17188 rm -f conftest.$ac_objext conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17191 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17192 case "$emacs_cv_c_restrict" in
17193 yes) emacs_restrict=restrict;;
17194 no) emacs_restrict="";;
17195 *) emacs_restrict="$emacs_cv_c_restrict";;
17196 esac
17197 if test "$emacs_restrict" != __restrict; then
17199 cat >>confdefs.h <<_ACEOF
17200 #define __restrict $emacs_restrict
17201 _ACEOF
17205 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17206 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17207 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 cat >conftest.$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17212 /* confdefs.h. */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 void fred (int x[__restrict]);
17219 main ()
17223 return 0;
17225 _ACEOF
17226 rm -f conftest.$ac_objext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -s conftest.$ac_objext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 emacs_cv_c_restrict_arr=yes
17239 else
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 emacs_cv_c_restrict_arr=no
17245 rm -f conftest.$ac_objext conftest.$ac_ext
17247 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17248 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17249 if test "$emacs_cv_c_restrict_arr" = yes; then
17251 cat >>confdefs.h <<\_ACEOF
17252 #define __restrict_arr __restrict
17253 _ACEOF
17258 for ac_header in nlist.h
17260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17262 echo "$as_me:$LINENO: checking for $ac_header" >&5
17263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17269 else
17270 # Is the header compilable?
17271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17273 cat >conftest.$ac_ext <<_ACEOF
17274 #line $LINENO "configure"
17275 /* confdefs.h. */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 $ac_includes_default
17281 #include <$ac_header>
17282 _ACEOF
17283 rm -f conftest.$ac_objext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -s conftest.$ac_objext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_header_compiler=yes
17296 else
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_header_compiler=no
17302 rm -f conftest.$ac_objext conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17311 /* confdefs.h. */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <$ac_header>
17317 _ACEOF
17318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } >/dev/null; then
17326 if test -s conftest.err; then
17327 ac_cpp_err=$ac_c_preproc_warn_flag
17328 else
17329 ac_cpp_err=
17331 else
17332 ac_cpp_err=yes
17334 if test -z "$ac_cpp_err"; then
17335 ac_header_preproc=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_header_preproc=no
17342 rm -f conftest.err conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17346 # So? What about this header?
17347 case $ac_header_compiler:$ac_header_preproc in
17348 yes:no )
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17354 cat <<\_ASBOX
17355 ## ------------------------------------ ##
17356 ## Report this to bug-autoconf@gnu.org. ##
17357 ## ------------------------------------ ##
17358 _ASBOX
17360 sed "s/^/$as_me: WARNING: /" >&2
17362 no:yes )
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17370 cat <<\_ASBOX
17371 ## ------------------------------------ ##
17372 ## Report this to bug-autoconf@gnu.org. ##
17373 ## ------------------------------------ ##
17374 _ASBOX
17376 sed "s/^/$as_me: WARNING: /" >&2
17378 esac
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384 eval "$as_ac_Header=$ac_header_preproc"
17386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17391 cat >>confdefs.h <<_ACEOF
17392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17393 _ACEOF
17395 cat >>confdefs.h <<\_ACEOF
17396 #define NLIST_STRUCT 1
17397 _ACEOF
17401 done
17406 # Set up the CFLAGS for real compilation, so we can substitute it.
17407 CFLAGS="$REAL_CFLAGS"
17408 CPPFLAGS="$REAL_CPPFLAGS"
17410 #### Find out which version of Emacs this is.
17411 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17412 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17413 if test x"${version}" = x; then
17414 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17415 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17416 { (exit 1); exit 1; }; }
17419 ### Specify what sort of things we'll be editing into Makefile and config.h.
17420 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17455 cat >>confdefs.h <<_ACEOF
17456 #define EMACS_CONFIGURATION "${canonical}"
17457 _ACEOF
17460 cat >>confdefs.h <<_ACEOF
17461 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17462 _ACEOF
17465 cat >>confdefs.h <<_ACEOF
17466 #define config_machfile "${machfile}"
17467 _ACEOF
17470 cat >>confdefs.h <<_ACEOF
17471 #define config_opsysfile "${opsysfile}"
17472 _ACEOF
17475 cat >>confdefs.h <<_ACEOF
17476 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17477 _ACEOF
17480 cat >>confdefs.h <<_ACEOF
17481 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17482 _ACEOF
17485 cat >>confdefs.h <<_ACEOF
17486 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17487 _ACEOF
17490 cat >>confdefs.h <<_ACEOF
17491 #define UNEXEC_SRC ${UNEXEC_SRC}
17492 _ACEOF
17495 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17497 cat >>confdefs.h <<\_ACEOF
17498 #define HAVE_X_WINDOWS 1
17499 _ACEOF
17502 if test "${USE_X_TOOLKIT}" != "none" ; then
17504 cat >>confdefs.h <<\_ACEOF
17505 #define USE_X_TOOLKIT 1
17506 _ACEOF
17509 if test "${HAVE_X11}" = "yes" ; then
17511 cat >>confdefs.h <<\_ACEOF
17512 #define HAVE_X11 1
17513 _ACEOF
17516 if test "${HAVE_XFREE386}" = "yes" ; then
17518 cat >>confdefs.h <<\_ACEOF
17519 #define HAVE_XFREE386 1
17520 _ACEOF
17523 if test "${HAVE_MENUS}" = "yes" ; then
17525 cat >>confdefs.h <<\_ACEOF
17526 #define HAVE_MENUS 1
17527 _ACEOF
17530 if test "${GNU_MALLOC}" = "yes" ; then
17532 cat >>confdefs.h <<\_ACEOF
17533 #define GNU_MALLOC 1
17534 _ACEOF
17537 if test "${REL_ALLOC}" = "yes" ; then
17539 cat >>confdefs.h <<\_ACEOF
17540 #define REL_ALLOC 1
17541 _ACEOF
17549 #### Report on what we decided to do.
17550 echo "
17551 Configured for \`${canonical}'.
17553 Where should the build process find the source code? ${srcdir}
17554 What operating system and machine description files should Emacs use?
17555 \`${opsysfile}' and \`${machfile}'
17556 What compiler should emacs be built with? ${CC} ${CFLAGS}
17557 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17558 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17559 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17560 What window system should Emacs use? ${window_system}
17561 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17563 if test -n "${x_includes}"; then
17564 echo " Where do we find X Windows header files? ${x_includes}"
17565 else
17566 echo " Where do we find X Windows header files? Standard dirs"
17568 if test -n "${x_libraries}"; then
17569 echo " Where do we find X Windows libraries? ${x_libraries}"
17570 else
17571 echo " Where do we find X Windows libraries? Standard dirs"
17574 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17575 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17576 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17577 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17578 echo " Does Emacs use -lungif? ${HAVE_GIF}"
17579 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17580 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17581 echo
17583 # Remove any trailing slashes in these variables.
17584 test "${prefix}" != NONE &&
17585 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17586 test "${exec_prefix}" != NONE &&
17587 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17589 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
17590 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
17591 ## from Makefile.c can correctly provide the arg `-traditional' to the
17592 ## C preprocessor.
17594 cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 yes..yes
17602 _ACEOF
17603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17604 $EGREP "yes..yes" >/dev/null 2>&1; then
17605 CPP_NEED_TRADITIONAL=no
17606 else
17607 CPP_NEED_TRADITIONAL=yes
17609 rm -f conftest*
17612 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"
17613 ac_config_commands="$ac_config_commands default"
17614 cat >confcache <<\_ACEOF
17615 # This file is a shell script that caches the results of configure
17616 # tests run on this system so they can be shared between configure
17617 # scripts and configure runs, see configure's option --config-cache.
17618 # It is not useful on other systems. If it contains results you don't
17619 # want to keep, you may remove or edit it.
17621 # config.status only pays attention to the cache file if you give it
17622 # the --recheck option to rerun configure.
17624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17626 # following values.
17628 _ACEOF
17630 # The following way of writing the cache mishandles newlines in values,
17631 # but we know of no workaround that is simple, portable, and efficient.
17632 # So, don't put newlines in cache variables' values.
17633 # Ultrix sh set writes to stderr and can't be redirected directly,
17634 # and sets the high bit in the cache file unless we assign to the vars.
17636 (set) 2>&1 |
17637 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17638 *ac_space=\ *)
17639 # `set' does not quote correctly, so add quotes (double-quote
17640 # substitution turns \\\\ into \\, and sed turns \\ into \).
17641 sed -n \
17642 "s/'/'\\\\''/g;
17643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17646 # `set' quotes correctly as required by POSIX, so do not add quotes.
17647 sed -n \
17648 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17650 esac;
17652 sed '
17653 t clear
17654 : clear
17655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17656 t end
17657 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17658 : end' >>confcache
17659 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17660 if test -w $cache_file; then
17661 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17662 cat confcache >$cache_file
17663 else
17664 echo "not updating unwritable cache $cache_file"
17667 rm -f confcache
17669 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17670 # Let make expand exec_prefix.
17671 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17673 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17675 # trailing colons and then remove the whole line if VPATH becomes empty
17676 # (actually we leave an empty line to preserve line numbers).
17677 if test "x$srcdir" = x.; then
17678 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17679 s/:*\$(srcdir):*/:/;
17680 s/:*\${srcdir}:*/:/;
17681 s/:*@srcdir@:*/:/;
17682 s/^\([^=]*=[ ]*\):*/\1/;
17683 s/:*$//;
17684 s/^[^=]*=[ ]*$//;
17688 DEFS=-DHAVE_CONFIG_H
17690 ac_libobjs=
17691 ac_ltlibobjs=
17692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17693 # 1. Remove the extension, and $U if already installed.
17694 ac_i=`echo "$ac_i" |
17695 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17696 # 2. Add them.
17697 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17698 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17699 done
17700 LIBOBJS=$ac_libobjs
17702 LTLIBOBJS=$ac_ltlibobjs
17706 : ${CONFIG_STATUS=./config.status}
17707 ac_clean_files_save=$ac_clean_files
17708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17710 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17711 cat >$CONFIG_STATUS <<_ACEOF
17712 #! $SHELL
17713 # Generated by $as_me.
17714 # Run this file to recreate the current configuration.
17715 # Compiler output produced by configure, useful for debugging
17716 # configure, is in config.log if it exists.
17718 debug=false
17719 ac_cs_recheck=false
17720 ac_cs_silent=false
17721 SHELL=\${CONFIG_SHELL-$SHELL}
17722 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF
17725 ## --------------------- ##
17726 ## M4sh Initialization. ##
17727 ## --------------------- ##
17729 # Be Bourne compatible
17730 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17731 emulate sh
17732 NULLCMD=:
17733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17734 # is contrary to our usage. Disable this feature.
17735 alias -g '${1+"$@"}'='"$@"'
17736 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17737 set -o posix
17740 # Support unset when possible.
17741 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17742 as_unset=unset
17743 else
17744 as_unset=false
17748 # Work around bugs in pre-3.0 UWIN ksh.
17749 $as_unset ENV MAIL MAILPATH
17750 PS1='$ '
17751 PS2='> '
17752 PS4='+ '
17754 # NLS nuisances.
17755 for as_var in \
17756 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17757 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17758 LC_TELEPHONE LC_TIME
17760 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17761 eval $as_var=C; export $as_var
17762 else
17763 $as_unset $as_var
17765 done
17767 # Required to use basename.
17768 if expr a : '\(a\)' >/dev/null 2>&1; then
17769 as_expr=expr
17770 else
17771 as_expr=false
17774 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17775 as_basename=basename
17776 else
17777 as_basename=false
17781 # Name of the executable.
17782 as_me=`$as_basename "$0" ||
17783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17784 X"$0" : 'X\(//\)$' \| \
17785 X"$0" : 'X\(/\)$' \| \
17786 . : '\(.\)' 2>/dev/null ||
17787 echo X/"$0" |
17788 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17789 /^X\/\(\/\/\)$/{ s//\1/; q; }
17790 /^X\/\(\/\).*/{ s//\1/; q; }
17791 s/.*/./; q'`
17794 # PATH needs CR, and LINENO needs CR and PATH.
17795 # Avoid depending upon Character Ranges.
17796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17799 as_cr_digits='0123456789'
17800 as_cr_alnum=$as_cr_Letters$as_cr_digits
17802 # The user is always right.
17803 if test "${PATH_SEPARATOR+set}" != set; then
17804 echo "#! /bin/sh" >conf$$.sh
17805 echo "exit 0" >>conf$$.sh
17806 chmod +x conf$$.sh
17807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17808 PATH_SEPARATOR=';'
17809 else
17810 PATH_SEPARATOR=:
17812 rm -f conf$$.sh
17816 as_lineno_1=$LINENO
17817 as_lineno_2=$LINENO
17818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17819 test "x$as_lineno_1" != "x$as_lineno_2" &&
17820 test "x$as_lineno_3" = "x$as_lineno_2" || {
17821 # Find who we are. Look in the path if we contain no path at all
17822 # relative or not.
17823 case $0 in
17824 *[\\/]* ) as_myself=$0 ;;
17825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17826 for as_dir in $PATH
17828 IFS=$as_save_IFS
17829 test -z "$as_dir" && as_dir=.
17830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17831 done
17834 esac
17835 # We did not find ourselves, most probably we were run as `sh COMMAND'
17836 # in which case we are not to be found in the path.
17837 if test "x$as_myself" = x; then
17838 as_myself=$0
17840 if test ! -f "$as_myself"; then
17841 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17842 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17843 { (exit 1); exit 1; }; }
17845 case $CONFIG_SHELL in
17847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17850 IFS=$as_save_IFS
17851 test -z "$as_dir" && as_dir=.
17852 for as_base in sh bash ksh sh5; do
17853 case $as_dir in
17855 if ("$as_dir/$as_base" -c '
17856 as_lineno_1=$LINENO
17857 as_lineno_2=$LINENO
17858 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17859 test "x$as_lineno_1" != "x$as_lineno_2" &&
17860 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17861 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17862 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17863 CONFIG_SHELL=$as_dir/$as_base
17864 export CONFIG_SHELL
17865 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17866 fi;;
17867 esac
17868 done
17869 done
17871 esac
17873 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17874 # uniformly replaced by the line number. The first 'sed' inserts a
17875 # line-number line before each line; the second 'sed' does the real
17876 # work. The second script uses 'N' to pair each line-number line
17877 # with the numbered line, and appends trailing '-' during
17878 # substitution so that $LINENO is not a special case at line end.
17879 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17880 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17881 sed '=' <$as_myself |
17882 sed '
17884 s,$,-,
17885 : loop
17886 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17887 t loop
17888 s,-$,,
17889 s,^['$as_cr_digits']*\n,,
17890 ' >$as_me.lineno &&
17891 chmod +x $as_me.lineno ||
17892 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17893 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17894 { (exit 1); exit 1; }; }
17896 # Don't try to exec as it changes $[0], causing all sort of problems
17897 # (the dirname of $[0] is not the place where we might find the
17898 # original and so on. Autoconf is especially sensible to this).
17899 . ./$as_me.lineno
17900 # Exit status is that of the last command.
17901 exit
17905 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17906 *c*,-n*) ECHO_N= ECHO_C='
17907 ' ECHO_T=' ' ;;
17908 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17909 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17910 esac
17912 if expr a : '\(a\)' >/dev/null 2>&1; then
17913 as_expr=expr
17914 else
17915 as_expr=false
17918 rm -f conf$$ conf$$.exe conf$$.file
17919 echo >conf$$.file
17920 if ln -s conf$$.file conf$$ 2>/dev/null; then
17921 # We could just check for DJGPP; but this test a) works b) is more generic
17922 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17923 if test -f conf$$.exe; then
17924 # Don't use ln at all; we don't have any links
17925 as_ln_s='cp -p'
17926 else
17927 as_ln_s='ln -s'
17929 elif ln conf$$.file conf$$ 2>/dev/null; then
17930 as_ln_s=ln
17931 else
17932 as_ln_s='cp -p'
17934 rm -f conf$$ conf$$.exe conf$$.file
17936 if mkdir -p . 2>/dev/null; then
17937 as_mkdir_p=:
17938 else
17939 as_mkdir_p=false
17942 as_executable_p="test -f"
17944 # Sed expression to map a string onto a valid CPP name.
17945 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17947 # Sed expression to map a string onto a valid variable name.
17948 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17951 # IFS
17952 # We need space, tab and new line, in precisely that order.
17953 as_nl='
17955 IFS=" $as_nl"
17957 # CDPATH.
17958 $as_unset CDPATH
17960 exec 6>&1
17962 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17963 # report actual input values of CONFIG_FILES etc. instead of their
17964 # values after options handling. Logging --version etc. is OK.
17965 exec 5>>config.log
17967 echo
17968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17969 ## Running $as_me. ##
17970 _ASBOX
17971 } >&5
17972 cat >&5 <<_CSEOF
17974 This file was extended by $as_me, which was
17975 generated by GNU Autoconf 2.56. Invocation command line was
17977 CONFIG_FILES = $CONFIG_FILES
17978 CONFIG_HEADERS = $CONFIG_HEADERS
17979 CONFIG_LINKS = $CONFIG_LINKS
17980 CONFIG_COMMANDS = $CONFIG_COMMANDS
17981 $ $0 $@
17983 _CSEOF
17984 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17985 echo >&5
17986 _ACEOF
17988 # Files that config.status was made for.
17989 if test -n "$ac_config_files"; then
17990 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17993 if test -n "$ac_config_headers"; then
17994 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17997 if test -n "$ac_config_links"; then
17998 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18001 if test -n "$ac_config_commands"; then
18002 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18005 cat >>$CONFIG_STATUS <<\_ACEOF
18007 ac_cs_usage="\
18008 \`$as_me' instantiates files from templates according to the
18009 current configuration.
18011 Usage: $0 [OPTIONS] [FILE]...
18013 -h, --help print this help, then exit
18014 -V, --version print version number, then exit
18015 -q, --quiet do not print progress messages
18016 -d, --debug don't remove temporary files
18017 --recheck update $as_me by reconfiguring in the same conditions
18018 --file=FILE[:TEMPLATE]
18019 instantiate the configuration file FILE
18020 --header=FILE[:TEMPLATE]
18021 instantiate the configuration header FILE
18023 Configuration files:
18024 $config_files
18026 Configuration headers:
18027 $config_headers
18029 Configuration commands:
18030 $config_commands
18032 Report bugs to <bug-autoconf@gnu.org>."
18033 _ACEOF
18035 cat >>$CONFIG_STATUS <<_ACEOF
18036 ac_cs_version="\\
18037 config.status
18038 configured by $0, generated by GNU Autoconf 2.56,
18039 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18041 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18042 Free Software Foundation, Inc.
18043 This config.status script is free software; the Free Software Foundation
18044 gives unlimited permission to copy, distribute and modify it."
18045 srcdir=$srcdir
18046 INSTALL="$INSTALL"
18047 _ACEOF
18049 cat >>$CONFIG_STATUS <<\_ACEOF
18050 # If no file are specified by the user, then we need to provide default
18051 # value. By we need to know if files were specified by the user.
18052 ac_need_defaults=:
18053 while test $# != 0
18055 case $1 in
18056 --*=*)
18057 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18058 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18059 ac_shift=:
18062 ac_option=$1
18063 ac_optarg=$2
18064 ac_shift=shift
18066 *) # This is not an option, so the user has probably given explicit
18067 # arguments.
18068 ac_option=$1
18069 ac_need_defaults=false;;
18070 esac
18072 case $ac_option in
18073 # Handling of the options.
18074 _ACEOF
18075 cat >>$CONFIG_STATUS <<\_ACEOF
18076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18077 ac_cs_recheck=: ;;
18078 --version | --vers* | -V )
18079 echo "$ac_cs_version"; exit 0 ;;
18080 --he | --h)
18081 # Conflict between --help and --header
18082 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18083 Try \`$0 --help' for more information." >&5
18084 echo "$as_me: error: ambiguous option: $1
18085 Try \`$0 --help' for more information." >&2;}
18086 { (exit 1); exit 1; }; };;
18087 --help | --hel | -h )
18088 echo "$ac_cs_usage"; exit 0 ;;
18089 --debug | --d* | -d )
18090 debug=: ;;
18091 --file | --fil | --fi | --f )
18092 $ac_shift
18093 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18094 ac_need_defaults=false;;
18095 --header | --heade | --head | --hea )
18096 $ac_shift
18097 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18098 ac_need_defaults=false;;
18099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18100 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18101 ac_cs_silent=: ;;
18103 # This is an error.
18104 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18105 Try \`$0 --help' for more information." >&5
18106 echo "$as_me: error: unrecognized option: $1
18107 Try \`$0 --help' for more information." >&2;}
18108 { (exit 1); exit 1; }; } ;;
18110 *) ac_config_targets="$ac_config_targets $1" ;;
18112 esac
18113 shift
18114 done
18116 ac_configure_extra_args=
18118 if $ac_cs_silent; then
18119 exec 6>/dev/null
18120 ac_configure_extra_args="$ac_configure_extra_args --silent"
18123 _ACEOF
18124 cat >>$CONFIG_STATUS <<_ACEOF
18125 if \$ac_cs_recheck; then
18126 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18127 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18130 _ACEOF
18132 cat >>$CONFIG_STATUS <<_ACEOF
18134 # INIT-COMMANDS section.
18137 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18139 _ACEOF
18143 cat >>$CONFIG_STATUS <<\_ACEOF
18144 for ac_config_target in $ac_config_targets
18146 case "$ac_config_target" in
18147 # Handling of arguments.
18148 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18149 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18150 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18151 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18152 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18153 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18154 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18155 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18156 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18157 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18158 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18159 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18160 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18162 { (exit 1); exit 1; }; };;
18163 esac
18164 done
18166 # If the user did not use the arguments to specify the items to instantiate,
18167 # then the envvar interface is used. Set only those that are not.
18168 # We use the long form for the default assignment because of an extremely
18169 # bizarre bug on SunOS 4.1.3.
18170 if $ac_need_defaults; then
18171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18176 # Have a temporary directory for convenience. Make it in the build tree
18177 # simply because there is no reason to put it here, and in addition,
18178 # creating and moving files from /tmp can sometimes cause problems.
18179 # Create a temporary directory, and hook for its removal unless debugging.
18180 $debug ||
18182 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18183 trap '{ (exit 1); exit 1; }' 1 2 13 15
18186 # Create a (secure) tmp directory for tmp files.
18189 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18190 test -n "$tmp" && test -d "$tmp"
18191 } ||
18193 tmp=./confstat$$-$RANDOM
18194 (umask 077 && mkdir $tmp)
18195 } ||
18197 echo "$me: cannot create a temporary directory in ." >&2
18198 { (exit 1); exit 1; }
18201 _ACEOF
18203 cat >>$CONFIG_STATUS <<_ACEOF
18206 # CONFIG_FILES section.
18209 # No need to generate the scripts if there are no CONFIG_FILES.
18210 # This happens for instance when ./config.status config.h
18211 if test -n "\$CONFIG_FILES"; then
18212 # Protect against being on the right side of a sed subst in config.status.
18213 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18214 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18215 s,@SHELL@,$SHELL,;t t
18216 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18217 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18218 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18219 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18220 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18221 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18222 s,@exec_prefix@,$exec_prefix,;t t
18223 s,@prefix@,$prefix,;t t
18224 s,@program_transform_name@,$program_transform_name,;t t
18225 s,@bindir@,$bindir,;t t
18226 s,@sbindir@,$sbindir,;t t
18227 s,@libexecdir@,$libexecdir,;t t
18228 s,@datadir@,$datadir,;t t
18229 s,@sysconfdir@,$sysconfdir,;t t
18230 s,@sharedstatedir@,$sharedstatedir,;t t
18231 s,@localstatedir@,$localstatedir,;t t
18232 s,@libdir@,$libdir,;t t
18233 s,@includedir@,$includedir,;t t
18234 s,@oldincludedir@,$oldincludedir,;t t
18235 s,@infodir@,$infodir,;t t
18236 s,@mandir@,$mandir,;t t
18237 s,@build_alias@,$build_alias,;t t
18238 s,@host_alias@,$host_alias,;t t
18239 s,@target_alias@,$target_alias,;t t
18240 s,@DEFS@,$DEFS,;t t
18241 s,@ECHO_C@,$ECHO_C,;t t
18242 s,@ECHO_N@,$ECHO_N,;t t
18243 s,@ECHO_T@,$ECHO_T,;t t
18244 s,@LIBS@,$LIBS,;t t
18245 s,@build@,$build,;t t
18246 s,@build_cpu@,$build_cpu,;t t
18247 s,@build_vendor@,$build_vendor,;t t
18248 s,@build_os@,$build_os,;t t
18249 s,@host@,$host,;t t
18250 s,@host_cpu@,$host_cpu,;t t
18251 s,@host_vendor@,$host_vendor,;t t
18252 s,@host_os@,$host_os,;t t
18253 s,@CC@,$CC,;t t
18254 s,@CFLAGS@,$CFLAGS,;t t
18255 s,@LDFLAGS@,$LDFLAGS,;t t
18256 s,@CPPFLAGS@,$CPPFLAGS,;t t
18257 s,@ac_ct_CC@,$ac_ct_CC,;t t
18258 s,@EXEEXT@,$EXEEXT,;t t
18259 s,@OBJEXT@,$OBJEXT,;t t
18260 s,@LN_S@,$LN_S,;t t
18261 s,@CPP@,$CPP,;t t
18262 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18263 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18264 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18265 s,@RANLIB@,$RANLIB,;t t
18266 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18267 s,@EGREP@,$EGREP,;t t
18268 s,@LIBSOUND@,$LIBSOUND,;t t
18269 s,@SET_MAKE@,$SET_MAKE,;t t
18270 s,@ALLOCA@,$ALLOCA,;t t
18271 s,@liblockfile@,$liblockfile,;t t
18272 s,@LIBOBJS@,$LIBOBJS,;t t
18273 s,@NEED_SETGID@,$NEED_SETGID,;t t
18274 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18275 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18276 s,@version@,$version,;t t
18277 s,@configuration@,$configuration,;t t
18278 s,@canonical@,$canonical,;t t
18279 s,@srcdir@,$srcdir,;t t
18280 s,@lispdir@,$lispdir,;t t
18281 s,@locallisppath@,$locallisppath,;t t
18282 s,@lisppath@,$lisppath,;t t
18283 s,@x_default_search_path@,$x_default_search_path,;t t
18284 s,@etcdir@,$etcdir,;t t
18285 s,@archlibdir@,$archlibdir,;t t
18286 s,@docdir@,$docdir,;t t
18287 s,@bitmapdir@,$bitmapdir,;t t
18288 s,@gamedir@,$gamedir,;t t
18289 s,@gameuser@,$gameuser,;t t
18290 s,@c_switch_system@,$c_switch_system,;t t
18291 s,@c_switch_machine@,$c_switch_machine,;t t
18292 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18293 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18294 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18295 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18296 s,@machfile@,$machfile,;t t
18297 s,@opsysfile@,$opsysfile,;t t
18298 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18299 CEOF
18301 _ACEOF
18303 cat >>$CONFIG_STATUS <<\_ACEOF
18304 # Split the substitutions into bite-sized pieces for seds with
18305 # small command number limits, like on Digital OSF/1 and HP-UX.
18306 ac_max_sed_lines=48
18307 ac_sed_frag=1 # Number of current file.
18308 ac_beg=1 # First line for current file.
18309 ac_end=$ac_max_sed_lines # Line after last line for current file.
18310 ac_more_lines=:
18311 ac_sed_cmds=
18312 while $ac_more_lines; do
18313 if test $ac_beg -gt 1; then
18314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18315 else
18316 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18318 if test ! -s $tmp/subs.frag; then
18319 ac_more_lines=false
18320 else
18321 # The purpose of the label and of the branching condition is to
18322 # speed up the sed processing (if there are no `@' at all, there
18323 # is no need to browse any of the substitutions).
18324 # These are the two extra sed commands mentioned above.
18325 (echo ':t
18326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18327 if test -z "$ac_sed_cmds"; then
18328 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18329 else
18330 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18332 ac_sed_frag=`expr $ac_sed_frag + 1`
18333 ac_beg=$ac_end
18334 ac_end=`expr $ac_end + $ac_max_sed_lines`
18336 done
18337 if test -z "$ac_sed_cmds"; then
18338 ac_sed_cmds=cat
18340 fi # test -n "$CONFIG_FILES"
18342 _ACEOF
18343 cat >>$CONFIG_STATUS <<\_ACEOF
18344 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18346 case $ac_file in
18347 - | *:- | *:-:* ) # input from stdin
18348 cat >$tmp/stdin
18349 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18350 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18351 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18353 * ) ac_file_in=$ac_file.in ;;
18354 esac
18356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18357 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18359 X"$ac_file" : 'X\(//\)[^/]' \| \
18360 X"$ac_file" : 'X\(//\)$' \| \
18361 X"$ac_file" : 'X\(/\)' \| \
18362 . : '\(.\)' 2>/dev/null ||
18363 echo X"$ac_file" |
18364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18366 /^X\(\/\/\)$/{ s//\1/; q; }
18367 /^X\(\/\).*/{ s//\1/; q; }
18368 s/.*/./; q'`
18369 { if $as_mkdir_p; then
18370 mkdir -p "$ac_dir"
18371 else
18372 as_dir="$ac_dir"
18373 as_dirs=
18374 while test ! -d "$as_dir"; do
18375 as_dirs="$as_dir $as_dirs"
18376 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18378 X"$as_dir" : 'X\(//\)[^/]' \| \
18379 X"$as_dir" : 'X\(//\)$' \| \
18380 X"$as_dir" : 'X\(/\)' \| \
18381 . : '\(.\)' 2>/dev/null ||
18382 echo X"$as_dir" |
18383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18385 /^X\(\/\/\)$/{ s//\1/; q; }
18386 /^X\(\/\).*/{ s//\1/; q; }
18387 s/.*/./; q'`
18388 done
18389 test ! -n "$as_dirs" || mkdir $as_dirs
18390 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18392 { (exit 1); exit 1; }; }; }
18394 ac_builddir=.
18396 if test "$ac_dir" != .; then
18397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18398 # A "../" for each directory in $ac_dir_suffix.
18399 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18400 else
18401 ac_dir_suffix= ac_top_builddir=
18404 case $srcdir in
18405 .) # No --srcdir option. We are building in place.
18406 ac_srcdir=.
18407 if test -z "$ac_top_builddir"; then
18408 ac_top_srcdir=.
18409 else
18410 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18411 fi ;;
18412 [\\/]* | ?:[\\/]* ) # Absolute path.
18413 ac_srcdir=$srcdir$ac_dir_suffix;
18414 ac_top_srcdir=$srcdir ;;
18415 *) # Relative path.
18416 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18417 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18418 esac
18419 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18420 # absolute.
18421 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18422 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18423 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18424 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18427 case $INSTALL in
18428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18429 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18430 esac
18432 if test x"$ac_file" != x-; then
18433 { echo "$as_me:$LINENO: creating $ac_file" >&5
18434 echo "$as_me: creating $ac_file" >&6;}
18435 rm -f "$ac_file"
18437 # Let's still pretend it is `configure' which instantiates (i.e., don't
18438 # use $as_me), people would be surprised to read:
18439 # /* config.h. Generated by config.status. */
18440 if test x"$ac_file" = x-; then
18441 configure_input=
18442 else
18443 configure_input="$ac_file. "
18445 configure_input=$configure_input"Generated from `echo $ac_file_in |
18446 sed 's,.*/,,'` by configure."
18448 # First look for the input files in the build tree, otherwise in the
18449 # src tree.
18450 ac_file_inputs=`IFS=:
18451 for f in $ac_file_in; do
18452 case $f in
18453 -) echo $tmp/stdin ;;
18454 [\\/$]*)
18455 # Absolute (can't be DOS-style, as IFS=:)
18456 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18457 echo "$as_me: error: cannot find input file: $f" >&2;}
18458 { (exit 1); exit 1; }; }
18459 echo $f;;
18460 *) # Relative
18461 if test -f "$f"; then
18462 # Build tree
18463 echo $f
18464 elif test -f "$srcdir/$f"; then
18465 # Source tree
18466 echo $srcdir/$f
18467 else
18468 # /dev/null tree
18469 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471 { (exit 1); exit 1; }; }
18472 fi;;
18473 esac
18474 done` || { (exit 1); exit 1; }
18475 _ACEOF
18476 cat >>$CONFIG_STATUS <<_ACEOF
18477 sed "$ac_vpsub
18478 $extrasub
18479 _ACEOF
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18483 s,@configure_input@,$configure_input,;t t
18484 s,@srcdir@,$ac_srcdir,;t t
18485 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18486 s,@top_srcdir@,$ac_top_srcdir,;t t
18487 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18488 s,@builddir@,$ac_builddir,;t t
18489 s,@abs_builddir@,$ac_abs_builddir,;t t
18490 s,@top_builddir@,$ac_top_builddir,;t t
18491 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18492 s,@INSTALL@,$ac_INSTALL,;t t
18493 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18494 rm -f $tmp/stdin
18495 if test x"$ac_file" != x-; then
18496 mv $tmp/out $ac_file
18497 else
18498 cat $tmp/out
18499 rm -f $tmp/out
18502 done
18503 _ACEOF
18504 cat >>$CONFIG_STATUS <<\_ACEOF
18507 # CONFIG_HEADER section.
18510 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18511 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18513 # ac_d sets the value in "#define NAME VALUE" lines.
18514 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18515 ac_dB='[ ].*$,\1#\2'
18516 ac_dC=' '
18517 ac_dD=',;t'
18518 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18519 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18520 ac_uB='$,\1#\2define\3'
18521 ac_uC=' '
18522 ac_uD=',;t'
18524 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18526 case $ac_file in
18527 - | *:- | *:-:* ) # input from stdin
18528 cat >$tmp/stdin
18529 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18530 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18531 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18532 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18533 * ) ac_file_in=$ac_file.in ;;
18534 esac
18536 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18537 echo "$as_me: creating $ac_file" >&6;}
18539 # First look for the input files in the build tree, otherwise in the
18540 # src tree.
18541 ac_file_inputs=`IFS=:
18542 for f in $ac_file_in; do
18543 case $f in
18544 -) echo $tmp/stdin ;;
18545 [\\/$]*)
18546 # Absolute (can't be DOS-style, as IFS=:)
18547 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18548 echo "$as_me: error: cannot find input file: $f" >&2;}
18549 { (exit 1); exit 1; }; }
18550 echo $f;;
18551 *) # Relative
18552 if test -f "$f"; then
18553 # Build tree
18554 echo $f
18555 elif test -f "$srcdir/$f"; then
18556 # Source tree
18557 echo $srcdir/$f
18558 else
18559 # /dev/null tree
18560 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18561 echo "$as_me: error: cannot find input file: $f" >&2;}
18562 { (exit 1); exit 1; }; }
18563 fi;;
18564 esac
18565 done` || { (exit 1); exit 1; }
18566 # Remove the trailing spaces.
18567 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18569 _ACEOF
18571 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18572 # `conftest.undefs', that substitutes the proper values into
18573 # config.h.in to produce config.h. The first handles `#define'
18574 # templates, and the second `#undef' templates.
18575 # And first: Protect against being on the right side of a sed subst in
18576 # config.status. Protect against being in an unquoted here document
18577 # in config.status.
18578 rm -f conftest.defines conftest.undefs
18579 # Using a here document instead of a string reduces the quoting nightmare.
18580 # Putting comments in sed scripts is not portable.
18582 # `end' is used to avoid that the second main sed command (meant for
18583 # 0-ary CPP macros) applies to n-ary macro definitions.
18584 # See the Autoconf documentation for `clear'.
18585 cat >confdef2sed.sed <<\_ACEOF
18586 s/[\\&,]/\\&/g
18587 s,[\\$`],\\&,g
18588 t clear
18589 : clear
18590 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18591 t end
18592 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18593 : end
18594 _ACEOF
18595 # If some macros were called several times there might be several times
18596 # the same #defines, which is useless. Nevertheless, we may not want to
18597 # sort them, since we want the *last* AC-DEFINE to be honored.
18598 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18599 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18600 rm -f confdef2sed.sed
18602 # This sed command replaces #undef with comments. This is necessary, for
18603 # example, in the case of _POSIX_SOURCE, which is predefined and required
18604 # on some systems where configure will not decide to define it.
18605 cat >>conftest.undefs <<\_ACEOF
18606 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18607 _ACEOF
18609 # Break up conftest.defines because some shells have a limit on the size
18610 # of here documents, and old seds have small limits too (100 cmds).
18611 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18612 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18613 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18614 echo ' :' >>$CONFIG_STATUS
18615 rm -f conftest.tail
18616 while grep . conftest.defines >/dev/null
18618 # Write a limited-size here document to $tmp/defines.sed.
18619 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18620 # Speed up: don't consider the non `#define' lines.
18621 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18622 # Work around the forget-to-reset-the-flag bug.
18623 echo 't clr' >>$CONFIG_STATUS
18624 echo ': clr' >>$CONFIG_STATUS
18625 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18626 echo 'CEOF
18627 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18628 rm -f $tmp/in
18629 mv $tmp/out $tmp/in
18630 ' >>$CONFIG_STATUS
18631 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18632 rm -f conftest.defines
18633 mv conftest.tail conftest.defines
18634 done
18635 rm -f conftest.defines
18636 echo ' fi # grep' >>$CONFIG_STATUS
18637 echo >>$CONFIG_STATUS
18639 # Break up conftest.undefs because some shells have a limit on the size
18640 # of here documents, and old seds have small limits too (100 cmds).
18641 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18642 rm -f conftest.tail
18643 while grep . conftest.undefs >/dev/null
18645 # Write a limited-size here document to $tmp/undefs.sed.
18646 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18647 # Speed up: don't consider the non `#undef'
18648 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18649 # Work around the forget-to-reset-the-flag bug.
18650 echo 't clr' >>$CONFIG_STATUS
18651 echo ': clr' >>$CONFIG_STATUS
18652 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18653 echo 'CEOF
18654 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18655 rm -f $tmp/in
18656 mv $tmp/out $tmp/in
18657 ' >>$CONFIG_STATUS
18658 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18659 rm -f conftest.undefs
18660 mv conftest.tail conftest.undefs
18661 done
18662 rm -f conftest.undefs
18664 cat >>$CONFIG_STATUS <<\_ACEOF
18665 # Let's still pretend it is `configure' which instantiates (i.e., don't
18666 # use $as_me), people would be surprised to read:
18667 # /* config.h. Generated by config.status. */
18668 if test x"$ac_file" = x-; then
18669 echo "/* Generated by configure. */" >$tmp/config.h
18670 else
18671 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18673 cat $tmp/in >>$tmp/config.h
18674 rm -f $tmp/in
18675 if test x"$ac_file" != x-; then
18676 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18678 echo "$as_me: $ac_file is unchanged" >&6;}
18679 else
18680 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682 X"$ac_file" : 'X\(//\)[^/]' \| \
18683 X"$ac_file" : 'X\(//\)$' \| \
18684 X"$ac_file" : 'X\(/\)' \| \
18685 . : '\(.\)' 2>/dev/null ||
18686 echo X"$ac_file" |
18687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18689 /^X\(\/\/\)$/{ s//\1/; q; }
18690 /^X\(\/\).*/{ s//\1/; q; }
18691 s/.*/./; q'`
18692 { if $as_mkdir_p; then
18693 mkdir -p "$ac_dir"
18694 else
18695 as_dir="$ac_dir"
18696 as_dirs=
18697 while test ! -d "$as_dir"; do
18698 as_dirs="$as_dir $as_dirs"
18699 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$as_dir" : 'X\(//\)[^/]' \| \
18702 X"$as_dir" : 'X\(//\)$' \| \
18703 X"$as_dir" : 'X\(/\)' \| \
18704 . : '\(.\)' 2>/dev/null ||
18705 echo X"$as_dir" |
18706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18708 /^X\(\/\/\)$/{ s//\1/; q; }
18709 /^X\(\/\).*/{ s//\1/; q; }
18710 s/.*/./; q'`
18711 done
18712 test ! -n "$as_dirs" || mkdir $as_dirs
18713 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18714 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18715 { (exit 1); exit 1; }; }; }
18717 rm -f $ac_file
18718 mv $tmp/config.h $ac_file
18720 else
18721 cat $tmp/config.h
18722 rm -f $tmp/config.h
18724 done
18725 _ACEOF
18726 cat >>$CONFIG_STATUS <<\_ACEOF
18729 # CONFIG_COMMANDS section.
18731 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18732 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18733 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18734 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18735 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18736 X"$ac_dest" : 'X\(//\)[^/]' \| \
18737 X"$ac_dest" : 'X\(//\)$' \| \
18738 X"$ac_dest" : 'X\(/\)' \| \
18739 . : '\(.\)' 2>/dev/null ||
18740 echo X"$ac_dest" |
18741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18743 /^X\(\/\/\)$/{ s//\1/; q; }
18744 /^X\(\/\).*/{ s//\1/; q; }
18745 s/.*/./; q'`
18746 ac_builddir=.
18748 if test "$ac_dir" != .; then
18749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18750 # A "../" for each directory in $ac_dir_suffix.
18751 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18752 else
18753 ac_dir_suffix= ac_top_builddir=
18756 case $srcdir in
18757 .) # No --srcdir option. We are building in place.
18758 ac_srcdir=.
18759 if test -z "$ac_top_builddir"; then
18760 ac_top_srcdir=.
18761 else
18762 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18763 fi ;;
18764 [\\/]* | ?:[\\/]* ) # Absolute path.
18765 ac_srcdir=$srcdir$ac_dir_suffix;
18766 ac_top_srcdir=$srcdir ;;
18767 *) # Relative path.
18768 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18769 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18770 esac
18771 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18772 # absolute.
18773 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18774 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18775 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18776 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18779 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18780 echo "$as_me: executing $ac_dest commands" >&6;}
18781 case $ac_dest in
18782 default )
18784 ### Make the necessary directories, if they don't exist.
18785 for dir in etc lisp ; do
18786 test -d ${dir} || mkdir ${dir}
18787 done
18789 # Build src/Makefile from ${srcdir}/src/Makefile.c
18790 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
18791 # This must be done after src/config.h is built, since we rely on that file.
18793 # Now get this: Some word that is part of the ${srcdir} directory name
18794 # or the ${configuration} value might, just might, happen to be an
18795 # identifier like `sun4' or `i386' or something, and be predefined by
18796 # the C preprocessor to some helpful value like 1, or maybe the empty
18797 # string. Needless to say consequent macro substitutions are less
18798 # than conducive to the makefile finding the correct directory.
18799 undefs="`echo $top_srcdir $configuration $canonical |
18800 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
18801 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
18804 echo creating src/epaths.h
18805 ${MAKE-make} epaths-force
18807 # As of 2000-11-19, newest development versions of GNU cpp preprocess
18808 # `..' to `. .' unless invoked with -traditional
18810 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
18811 CPPFLAGS="$CPPFLAGS -traditional"
18814 echo creating lib-src/Makefile
18815 ( cd lib-src
18816 rm -f junk.c junk1.c junk2.c
18817 sed -e '/start of cpp stuff/q' \
18818 < Makefile.c > junk1.c
18819 sed -e '1,/start of cpp stuff/d'\
18820 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
18821 < Makefile.c > junk.c
18822 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
18823 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
18824 cat junk1.c junk2.c > Makefile.new
18825 rm -f junk.c junk1.c junk2.c
18826 chmod 444 Makefile.new
18827 mv -f Makefile.new Makefile
18830 echo creating src/Makefile
18831 ( cd src
18832 rm -f junk.c junk1.c junk2.c
18833 sed -e '/start of cpp stuff/q' \
18834 < Makefile.c > junk1.c
18835 sed -e '1,/start of cpp stuff/d'\
18836 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
18837 < Makefile.c > junk.c
18838 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
18839 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
18840 cat junk1.c junk2.c > Makefile.new
18841 rm -f junk.c junk1.c junk2.c
18842 chmod 444 Makefile.new
18843 mv -f Makefile.new Makefile
18846 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
18847 echo creating src/.gdbinit
18848 echo source $srcdir/src/.gdbinit > src/.gdbinit
18851 # This is how we know whether to re-run configure in certain cases.
18852 touch src/config.stamp
18855 esac
18856 done
18857 _ACEOF
18859 cat >>$CONFIG_STATUS <<\_ACEOF
18861 { (exit 0); exit 0; }
18862 _ACEOF
18863 chmod +x $CONFIG_STATUS
18864 ac_clean_files=$ac_clean_files_save
18867 # configure is writing to config.log, and then calls config.status.
18868 # config.status does its own redirection, appending to config.log.
18869 # Unfortunately, on DOS this fails, as config.log is still kept open
18870 # by configure, so config.status won't be able to write to it; its
18871 # output is simply discarded. So we exec the FD to /dev/null,
18872 # effectively closing config.log, so it can be properly (re)opened and
18873 # appended to by config.status. When coming back to configure, we
18874 # need to make the FD available again.
18875 if test "$no_create" != yes; then
18876 ac_cs_success=:
18877 ac_config_status_args=
18878 test "$silent" = yes &&
18879 ac_config_status_args="$ac_config_status_args --quiet"
18880 exec 5>/dev/null
18881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18882 exec 5>>config.log
18883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18884 # would make configure fail if this is the last instruction.
18885 $ac_cs_success || { (exit 1); exit 1; }