*** empty log message ***
[emacs.git] / configure
blob475a2025fdc59bc56a300bf2592d44a364b31897
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57a.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
23 # Support unset when possible.
24 if (as_foo=foo; unset as_foo) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
48 done
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
95 rm -f conf$$.sh
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
127 case $CONFIG_SHELL in
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
153 esac
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
215 rm -f conf$$ conf$$.exe conf$$.file
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 as_mkdir_p=false
223 as_executable_p="test -f"
225 # Sed expression to map a string onto a valid CPP name.
226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228 # Sed expression to map a string onto a valid variable name.
229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232 # IFS
233 # We need space, tab and new line, in precisely that order.
234 as_nl='
236 IFS=" $as_nl"
238 # CDPATH.
239 $as_unset CDPATH
242 # Name of the host.
243 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244 # so uname gets run too.
245 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247 exec 6>&1
250 # Initializations.
252 ac_default_prefix=/usr/local
253 ac_config_libobj_dir=.
254 cross_compiling=no
255 subdirs=
256 MFLAGS=
257 MAKEFLAGS=
258 SHELL=${CONFIG_SHELL-/bin/sh}
260 # Maximum number of lines to put in a shell here document.
261 # This variable seems obsolete. It should probably be removed, and
262 # only ac_max_sed_lines should be used.
263 : ${ac_max_here_lines=38}
265 # Identity of this package.
266 PACKAGE_NAME=
267 PACKAGE_TARNAME=
268 PACKAGE_VERSION=
269 PACKAGE_STRING=
270 PACKAGE_BUGREPORT=
272 ac_unique_file="src/lisp.h"
273 ac_config_libobj_dir=src
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
311 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 INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS 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 carbon_appdir LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 esac
649 done
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
724 else
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
831 cat <<\_ACEOF
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 X features:
839 --x-includes=DIR X include files are in DIR
840 --x-libraries=DIR X library files are in DIR
842 System types:
843 --build=BUILD configure for building on BUILD [guessed]
844 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 _ACEOF
848 if test -n "$ac_init_help"; then
850 cat <<\_ACEOF
852 Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-carbon-app[=DIR] [DIR=/Application]
856 specify install directory for Emacs.app on Mac OS X
857 --disable-largefile omit support for large files
859 Optional Packages:
860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862 --without-gcc don't use GCC to compile Emacs if GCC is found
863 --without-pop don't support POP mail retrieval with movemail
864 --with-kerberos support Kerberos-authenticated POP
865 --with-kerberos5 support Kerberos version 5 authenticated POP
866 --with-hesiod support Hesiod to get the POP server host
867 --without-sound don't compile with sound support
868 --with-x-toolkit=KIT use an X toolkit
869 (KIT = yes/lucid/athena/motif/gtk/no)
870 --with-xpm use -lXpm for displaying XPM images
871 --with-jpeg use -ljpeg for displaying JPEG images
872 --with-tiff use -ltiff for displaying TIFF images
873 --with-gif use -lungif for displaying GIF images
874 --with-png use -lpng for displaying PNG images
875 --with-gtk use GTK (same as --with-x-toolkit=gtk)
876 --with-pkg-config-prog Path to pkg-config to use for finding GTK
877 --without-toolkit-scroll-bars
878 don't use Motif or Xaw3d scroll bars
879 --without-xim don't use X11 XIM
880 --without-carbon don't use Carbon GUI on Mac OS X
881 --with-x use the X Window System
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 _ACEOF
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 else
910 ac_dir_suffix= ac_top_builddir=
913 case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 esac
928 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 # absolute.
930 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
931 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
932 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
933 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 cd $ac_popdir
951 done
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
961 _ACEOF
962 exit 0
964 exec 5>config.log
965 cat >&5 <<_ACEOF
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.57a. Invocation command line was
972 $ $0 $@
974 _ACEOF
976 cat <<_ASUNAME
977 ## --------- ##
978 ## Platform. ##
979 ## --------- ##
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998 _ASUNAME
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $PATH
1003 IFS=$as_save_IFS
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1006 done
1008 } >&5
1010 cat >&5 <<_ACEOF
1013 ## ----------- ##
1014 ## Core tests. ##
1015 ## ----------- ##
1017 _ACEOF
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1025 ac_configure_args=
1026 ac_configure_args0=
1027 ac_configure_args1=
1028 ac_sep=
1029 ac_must_keep_next=false
1030 for ac_pass in 1 2
1032 for ac_arg
1034 case $ac_arg in
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1038 continue ;;
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041 esac
1042 case $ac_pass in
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1048 else
1049 case $ac_arg in
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056 esac
1058 -* ) ac_must_keep_next=true ;;
1059 esac
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1063 ac_sep=" "
1065 esac
1066 done
1067 done
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close' the trap.
1076 trap 'exit_status=$?
1077 # Save into config.log some information that might help in debugging.
1079 echo
1081 cat <<\_ASBOX
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1085 _ASBOX
1086 echo
1087 # The following way of writing the cache mishandles newlines in values,
1089 (set) 2>&1 |
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091 *ac_space=\ *)
1092 sed -n \
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 sed -n \
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 esac;
1102 echo
1104 cat <<\_ASBOX
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1108 _ASBOX
1109 echo
1110 for ac_var in $ac_subst_vars
1112 eval ac_val=$`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1114 done | sort
1115 echo
1117 if test -n "$ac_subst_files"; then
1118 cat <<\_ASBOX
1119 ## ------------- ##
1120 ## Output files. ##
1121 ## ------------- ##
1122 _ASBOX
1123 echo
1124 for ac_var in $ac_subst_files
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1128 done | sort
1129 echo
1132 if test -s confdefs.h; then
1133 cat <<\_ASBOX
1134 ## ----------- ##
1135 ## confdefs.h. ##
1136 ## ----------- ##
1137 _ASBOX
1138 echo
1139 sed "/^$/d" confdefs.h | sort
1140 echo
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1145 } >&5
1146 rm -f core core.* *.core &&
1147 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148 exit $exit_status
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 done
1153 ac_signal=0
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158 echo >confdefs.h
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 _ACEOF
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 _ACEOF
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 _ACEOF
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 _ACEOF
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 _ACEOF
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192 else
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's/^/| /' "$ac_site_file" >&5
1201 . "$ac_site_file"
1203 done
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1211 case $cache_file in
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1214 esac
1216 else
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1219 >$cache_file
1222 # Check that the precious variables saved in the cache have kept the same
1223 # value.
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1232 set,)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,set)
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1240 ,);;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1250 fi;;
1251 esac
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1254 case $ac_new_val in
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1258 esac
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 esac
1264 done
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1273 ac_ext=c
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1300 test "$program_prefix" != NONE &&
1301 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1302 # Use a double $ so make ignores it.
1303 test "$program_suffix" != NONE &&
1304 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1305 # Double any \ or $. echo might interpret backslashes.
1306 # By default was `s,x,x', remove it if useless.
1307 cat <<\_ACEOF >conftest.sed
1308 s/[\\$]/&&/g;s/;s,x,x,$//
1309 _ACEOF
1310 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1311 rm conftest.sed
1314 lispdir='${datadir}/emacs/${version}/lisp'
1315 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1316 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1317 lisppath='${locallisppath}:${lispdir}'
1318 etcdir='${datadir}/emacs/${version}/etc'
1319 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1320 docdir='${datadir}/emacs/${version}/etc'
1321 gamedir='${localstatedir}/games/emacs'
1323 gameuser=games
1326 # Check whether --with-gcc or --without-gcc was given.
1327 if test "${with_gcc+set}" = set; then
1328 withval="$with_gcc"
1332 # Check whether --with-pop or --without-pop was given.
1333 if test "${with_pop+set}" = set; then
1334 withval="$with_pop"
1335 if test "$withval" = yes; then
1336 cat >>confdefs.h <<\_ACEOF
1337 #define MAIL_USE_POP 1
1338 _ACEOF
1340 else :
1342 else
1343 cat >>confdefs.h <<\_ACEOF
1344 #define MAIL_USE_POP 1
1345 _ACEOF
1350 # Check whether --with-kerberos or --without-kerberos was given.
1351 if test "${with_kerberos+set}" = set; then
1352 withval="$with_kerberos"
1353 cat >>confdefs.h <<\_ACEOF
1354 #define KERBEROS 1
1355 _ACEOF
1360 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1361 if test "${with_kerberos5+set}" = set; then
1362 withval="$with_kerberos5"
1363 if test "${with_kerberos5+set}" = set; then
1364 if test "${with_kerberos+set}" != set; then
1365 with_kerberos=yes
1366 cat >>confdefs.h <<\_ACEOF
1367 #define KERBEROS 1
1368 _ACEOF
1373 cat >>confdefs.h <<\_ACEOF
1374 #define KERBEROS5 1
1375 _ACEOF
1379 # Check whether --with-hesiod or --without-hesiod was given.
1380 if test "${with_hesiod+set}" = set; then
1381 withval="$with_hesiod"
1383 cat >>confdefs.h <<\_ACEOF
1384 #define HESIOD 1
1385 _ACEOF
1390 # Check whether --with-sound or --without-sound was given.
1391 if test "${with_sound+set}" = set; then
1392 withval="$with_sound"
1397 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1398 if test "${with_x_toolkit+set}" = set; then
1399 withval="$with_x_toolkit"
1400 case "${withval}" in
1401 y | ye | yes ) val=athena ;;
1402 n | no ) val=no ;;
1403 l | lu | luc | luci | lucid ) val=lucid ;;
1404 a | at | ath | athe | athen | athena ) val=athena ;;
1405 m | mo | mot | moti | motif ) val=motif ;;
1406 g | gt | gtk ) val=gtk ;;
1408 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1409 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1410 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1411 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1412 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1413 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1414 { (exit 1); exit 1; }; }
1416 esac
1417 with_x_toolkit=$val
1421 # Check whether --with-xpm or --without-xpm was given.
1422 if test "${with_xpm+set}" = set; then
1423 withval="$with_xpm"
1427 # Check whether --with-jpeg or --without-jpeg was given.
1428 if test "${with_jpeg+set}" = set; then
1429 withval="$with_jpeg"
1433 # Check whether --with-tiff or --without-tiff was given.
1434 if test "${with_tiff+set}" = set; then
1435 withval="$with_tiff"
1439 # Check whether --with-gif or --without-gif was given.
1440 if test "${with_gif+set}" = set; then
1441 withval="$with_gif"
1445 # Check whether --with-png or --without-png was given.
1446 if test "${with_png+set}" = set; then
1447 withval="$with_png"
1451 # Check whether --with-gtk or --without-gtk was given.
1452 if test "${with_gtk+set}" = set; then
1453 withval="$with_gtk"
1457 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1458 if test "${with_pkg_config_prog+set}" = set; then
1459 withval="$with_pkg_config_prog"
1463 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1464 if test "${with_toolkit_scroll_bars+set}" = set; then
1465 withval="$with_toolkit_scroll_bars"
1469 # Check whether --with-xim or --without-xim was given.
1470 if test "${with_xim+set}" = set; then
1471 withval="$with_xim"
1475 # Check whether --with-carbon or --without-carbon was given.
1476 if test "${with_carbon+set}" = set; then
1477 withval="$with_carbon"
1480 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1481 if test "${enable_carbon_app+set}" = set; then
1482 enableval="$enable_carbon_app"
1483 carbon_appdir_x=${enableval}
1486 #### Make srcdir absolute, if it isn't already. It's important to
1487 #### avoid running the path through pwd unnecessarily, since pwd can
1488 #### give you automounter prefixes, which can go away. We do all this
1489 #### so Emacs can find its files when run uninstalled.
1490 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1491 unset CDPATH
1492 case "${srcdir}" in
1493 /* ) ;;
1495 ## We may be able to use the $PWD environment variable to make this
1496 ## absolute. But sometimes PWD is inaccurate.
1497 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1498 ## but that tested only for a well-formed and valid PWD,
1499 ## it did not object when PWD was well-formed and valid but just wrong.
1500 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1501 then
1502 srcdir="$PWD"
1503 else
1504 srcdir="`(cd ${srcdir}; pwd)`"
1507 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1508 esac
1510 #### Check if the source directory already has a configured system in it.
1511 if test `pwd` != `(cd ${srcdir} && pwd)` \
1512 && test -f "${srcdir}/src/config.h" ; then
1513 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1514 as a build directory right now; it has been configured in its own
1515 right. To configure in another directory as well, you MUST
1516 use GNU make. If you do not have GNU make, then you must
1517 now do \`make distclean' in ${srcdir},
1518 and then run $0 again." >&5
1519 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1520 as a build directory right now; it has been configured in its own
1521 right. To configure in another directory as well, you MUST
1522 use GNU make. If you do not have GNU make, then you must
1523 now do \`make distclean' in ${srcdir},
1524 and then run $0 again." >&2;}
1526 extrasub='/^VPATH[ ]*=/c\
1527 vpath %.c $(srcdir)\
1528 vpath %.h $(srcdir)\
1529 vpath %.y $(srcdir)\
1530 vpath %.l $(srcdir)\
1531 vpath %.s $(srcdir)\
1532 vpath %.in $(srcdir)\
1533 vpath %.texi $(srcdir)'
1536 #### Given the configuration name, set machfile and opsysfile to the
1537 #### names of the m/*.h and s/*.h files we should use.
1539 ### Canonicalize the configuration name.
1541 ac_aux_dir=
1542 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1543 if test -f $ac_dir/install-sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 break
1547 elif test -f $ac_dir/install.sh; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 break
1551 elif test -f $ac_dir/shtool; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/shtool install -c"
1554 break
1556 done
1557 if test -z "$ac_aux_dir"; then
1558 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1560 { (exit 1); exit 1; }; }
1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566 # Make sure we can run config.sub.
1567 $ac_config_sub sun4 >/dev/null 2>&1 ||
1568 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: checking build system type" >&5
1573 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574 if test "${ac_cv_build+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577 ac_cv_build_alias=$build_alias
1578 test -z "$ac_cv_build_alias" &&
1579 ac_cv_build_alias=`$ac_config_guess`
1580 test -z "$ac_cv_build_alias" &&
1581 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583 { (exit 1); exit 1; }; }
1584 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587 { (exit 1); exit 1; }; }
1590 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591 echo "${ECHO_T}$ac_cv_build" >&6
1592 build=$ac_cv_build
1593 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598 echo "$as_me:$LINENO: checking host system type" >&5
1599 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1600 if test "${ac_cv_host+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 ac_cv_host_alias=$host_alias
1604 test -z "$ac_cv_host_alias" &&
1605 ac_cv_host_alias=$ac_cv_build_alias
1606 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1607 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1609 { (exit 1); exit 1; }; }
1612 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1613 echo "${ECHO_T}$ac_cv_host" >&6
1614 host=$ac_cv_host
1615 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620 canonical=$host
1621 configuration=${host_alias-$host}
1625 ### If you add support for a new configuration, add code to this
1626 ### switch statement to recognize your configuration name and select
1627 ### the appropriate operating system and machine description files.
1629 ### You would hope that you could choose an m/*.h file pretty much
1630 ### based on the machine portion of the configuration name, and an s-
1631 ### file based on the operating system portion. However, it turns out
1632 ### that each m/*.h file is pretty manufacturer-specific - for
1633 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1634 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1635 ### machines. So we basically have to have a special case for each
1636 ### configuration name.
1638 ### As far as handling version numbers on operating systems is
1639 ### concerned, make sure things will fail in a fixable way. If
1640 ### /etc/MACHINES doesn't say anything about version numbers, be
1641 ### prepared to handle anything reasonably. If version numbers
1642 ### matter, be sure /etc/MACHINES says something about it.
1644 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1645 ### "System V Release 4"; he writes, "The old convention encouraged
1646 ### confusion between `system' and `release' levels'."
1648 machine='' opsys='' unported=no
1649 case "${canonical}" in
1651 ## FreeBSD ports
1652 *-*-freebsd* )
1653 opsys=freebsd
1654 case "${canonical}" in
1655 alpha*-*-freebsd*) machine=alpha ;;
1656 i[3456]86-*-freebsd*) machine=intel386 ;;
1657 esac
1660 ## NetBSD ports
1661 *-*-netbsd* )
1662 opsys=netbsd
1663 if test -f /usr/lib/crti.o; then
1664 cat >>confdefs.h <<\_ACEOF
1665 #define HAVE_CRTIN 1
1666 _ACEOF
1670 case "${canonical}" in
1671 alpha*-*-netbsd*) machine=alpha ;;
1672 i[3456]86-*-netbsd*) machine=intel386 ;;
1673 m68k-*-netbsd*)
1674 # This is somewhat bogus.
1675 machine=hp9000s300 ;;
1676 powerpc-apple-netbsd*) machine=macppc ;;
1677 mips-*-netbsd*) machine=pmax ;;
1678 mipsel-*-netbsd*) machine=pmax ;;
1679 mipseb-*-netbsd*) machine=pmax ;;
1680 ns32k-*-netbsd*) machine=ns32000 ;;
1681 powerpc-*-netbsd*) machine=macppc ;;
1682 sparc*-*-netbsd*) machine=sparc ;;
1683 vax-*-netbsd*) machine=vax ;;
1684 arm-*-netbsd*) machine=arm ;;
1685 esac
1688 ## OpenBSD ports
1689 *-*-openbsd* )
1690 opsys=openbsd
1691 case "${canonical}" in
1692 alpha*-*-openbsd*) machine=alpha ;;
1693 i386-*-openbsd*) machine=intel386 ;;
1694 m68k-*-openbsd*) machine=hp9000s300 ;;
1695 mipsel-*-openbsd*) machine=pmax ;;
1696 ns32k-*-openbsd*) machine=ns32000 ;;
1697 sparc-*-openbsd*) machine=sparc ;;
1698 vax-*-openbsd*) machine=vax ;;
1699 esac
1702 ## Acorn RISCiX:
1703 arm-acorn-riscix1.1* )
1704 machine=acorn opsys=riscix1-1
1706 arm-acorn-riscix1.2* | arm-acorn-riscix )
1707 ## This name is riscix12 instead of riscix1.2
1708 ## to avoid a file name conflict on MSDOS.
1709 machine=acorn opsys=riscix12
1712 ## BSDI ports
1713 *-*-bsdi* )
1714 opsys=bsdi
1715 case "${canonical}" in
1716 i[345]86-*-bsdi*) machine=intel386 ;;
1717 sparc-*-bsdi*) machine=sparc ;;
1718 powerpc-*-bsdi*) machine=macppc ;;
1719 esac
1720 case "${canonical}" in
1721 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1722 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1723 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1724 *-*-bsdi3* ) opsys=bsdos3 ;;
1725 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1726 esac
1729 ## Alliant machines
1730 ## Strictly speaking, we need the version of the alliant operating
1731 ## system to choose the right machine file, but currently the
1732 ## configuration name doesn't tell us enough to choose the right
1733 ## one; we need to give alliants their own operating system name to
1734 ## do this right. When someone cares, they can help us.
1735 fx80-alliant-* )
1736 machine=alliant4 opsys=bsd4-2
1738 i860-alliant-* )
1739 machine=alliant-2800 opsys=bsd4-3
1742 ## Alpha (DEC) machines.
1743 alpha*-dec-osf* )
1744 machine=alpha opsys=osf1
1745 # This is needed to find X11R6.1 libraries for certain tests.
1746 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1747 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1748 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1749 # due to non-traditional preprocessing with the current compiler
1750 # defaults. OSF 4 can also have that compiler version, and there
1751 # seems always to have been a usable /usr/bin/cpp.
1752 NON_GNU_CPP=/usr/bin/cpp
1753 case "${canonical}" in
1754 alpha*-dec-osf[5-9]*)
1755 opsys=osf5-0 ;;
1756 esac
1759 alpha*-*-linux-gnu* )
1760 machine=alpha opsys=gnu-linux
1763 arm*-*-linux-gnu* )
1764 machine=arm opsys=gnu-linux
1767 ppc-*-linux | \
1768 powerpc-*-linux* )
1769 machine=macppc opsys=gnu-linux
1772 ## Altos 3068
1773 m68*-altos-sysv* )
1774 machine=altos opsys=usg5-2
1777 ## Amdahl UTS
1778 580-amdahl-sysv* )
1779 machine=amdahl opsys=usg5-2-2
1782 ## Apollo, Domain/OS
1783 m68*-apollo-* )
1784 machine=apollo opsys=bsd4-3
1787 ## AT&T 3b2, 3b5, 3b15, 3b20
1788 we32k-att-sysv* )
1789 machine=att3b opsys=usg5-2-2
1792 ## AT&T 3b1 - The Mighty Unix PC!
1793 m68*-att-sysv* )
1794 machine=7300 opsys=usg5-2-2
1797 ## Bull dpx20
1798 rs6000-bull-bosx* )
1799 machine=ibmrs6000 opsys=aix3-2
1802 ## Bull dpx2
1803 m68*-bull-sysv3* )
1804 machine=dpx2 opsys=usg5-3
1807 ## Bull sps7
1808 m68*-bull-sysv2* )
1809 machine=sps7 opsys=usg5-2
1812 ## CCI 5/32, 6/32 -- see "Tahoe".
1814 ## Celerity
1815 ## I don't know what configuration name to use for this; config.sub
1816 ## doesn't seem to know anything about it. Hey, Celerity users, get
1817 ## in touch with us!
1818 celerity-celerity-bsd* )
1819 machine=celerity opsys=bsd4-2
1822 ## Clipper
1823 ## What operating systems does this chip run that Emacs has been
1824 ## tested on?
1825 clipper-* )
1826 machine=clipper
1827 ## We'll use the catch-all code at the bottom to guess the
1828 ## operating system.
1831 ## Compaq Nonstop
1832 mips-compaq-nonstopux* )
1833 machine=nonstopux opsys=nonstopux
1836 ## Convex
1837 *-convex-bsd* | *-convex-convexos* )
1838 machine=convex opsys=bsd4-3
1839 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1840 NON_GNU_CPP="cc -E -P"
1843 ## Cubix QBx/386
1844 i[3456]86-cubix-sysv* )
1845 machine=intel386 opsys=usg5-3
1848 ## Cydra 5
1849 cydra*-cydrome-sysv* )
1850 machine=cydra5 opsys=usg5-3
1853 ## Data General AViiON Machines
1854 ## DG changed naming conventions with the release of 5.4.4.10, they
1855 ## dropped the initial 5.4 but left the intervening R. Because of the
1856 ## R this shouldn't conflict with older versions of the OS (which I
1857 ## think were named like dgux4.*). In addition, DG new AViiONs series
1858 ## uses either Motorola M88k or Intel Pentium CPUs.
1859 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1860 machine=aviion opsys=dgux4
1862 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1863 ## This name is dgux5-4-3 instead of dgux5-4r3
1864 ## to avoid a file name conflict on MSDOS.
1865 machine=aviion opsys=dgux5-4-3
1867 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1868 machine=aviion opsys=dgux5-4r2
1870 m88k-dg-dgux* )
1871 machine=aviion opsys=dgux
1874 ## Data General AViiON Intel (x86) Machines
1875 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1876 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1877 i[345]86-dg-dguxR4* )
1878 machine=aviion-intel opsys=dgux4
1881 ## DECstations
1882 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1883 machine=pmax opsys=bsd4-2
1885 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1886 machine=pmax opsys=bsd4-3
1888 mips-dec-ultrix* )
1889 machine=pmax opsys=ultrix4-3
1891 mips-dec-osf* )
1892 machine=pmax opsys=osf1
1894 mips-dec-mach_bsd4.3* )
1895 machine=pmax opsys=mach-bsd4-3
1898 ## Motorola Delta machines
1899 m68k-motorola-sysv* | m68000-motorola-sysv* )
1900 machine=delta opsys=usg5-3
1901 if test -z "`type gnucc | grep 'not found'`"
1902 then
1903 if test -s /etc/167config
1904 then CC="gnucc -m68040"
1905 else CC="gnucc -m68881"
1907 else
1908 if test -z "`type gcc | grep 'not found'`"
1909 then CC=gcc
1910 else CC=cc
1914 m88k-motorola-sysv4* )
1915 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1916 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1917 # I hope there are not other 4.0 versions for this machine
1918 # which really need usg5-4 instead.
1919 machine=delta88k opsys=usg5-4-2
1921 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1922 machine=delta88k opsys=usg5-3
1925 ## Dual machines
1926 m68*-dual-sysv* )
1927 machine=dual opsys=usg5-2
1929 m68*-dual-uniplus* )
1930 machine=dual opsys=unipl5-2
1933 ## Elxsi 6400
1934 elxsi-elxsi-sysv* )
1935 machine=elxsi opsys=usg5-2
1938 ## Encore machines
1939 ns16k-encore-bsd* )
1940 machine=ns16000 opsys=umax
1943 ## The GEC 63 - apparently, this port isn't really finished yet.
1944 # I'm sure we finished off the last of the machines, though. -- fx
1946 ## Gould Power Node and NP1
1947 pn-gould-bsd4.2* )
1948 machine=gould opsys=bsd4-2
1950 pn-gould-bsd4.3* )
1951 machine=gould opsys=bsd4-3
1953 np1-gould-bsd* )
1954 machine=gould-np1 opsys=bsd4-3
1957 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1958 ## as far as Emacs is concerned).
1959 m88k-harris-cxux* )
1960 # Build needs to be different on 7.0 and later releases
1961 case "`uname -r`" in
1962 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1963 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1964 esac
1965 NON_GNU_CPP="/lib/cpp"
1967 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1968 m68k-harris-cxux* )
1969 machine=nh3000 opsys=cxux
1971 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1972 powerpc-harris-powerunix )
1973 machine=nh6000 opsys=powerunix
1974 NON_GNU_CPP="cc -Xo -E -P"
1976 ## SR2001/SR2201 running HI-UX/MPP
1977 hppa1.1-hitachi-hiuxmpp* )
1978 machine=sr2k opsys=hiuxmpp
1980 hppa1.1-hitachi-hiuxwe2* )
1981 machine=sr2k opsys=hiuxwe2
1983 ## Honeywell XPS100
1984 xps*-honeywell-sysv* )
1985 machine=xps100 opsys=usg5-2
1988 ## HP 9000 series 200 or 300
1989 m68*-hp-bsd* )
1990 machine=hp9000s300 opsys=bsd4-3
1992 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1993 m68*-hp-hpux* )
1994 case "`uname -r`" in
1995 ## Someone's system reports A.B8.05 for this.
1996 ## I wonder what other possibilities there are.
1997 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1998 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1999 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2000 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2001 *) machine=hp9000s300 opsys=hpux ;;
2002 esac
2005 ## HP 9000 series 700 and 800, running HP/UX
2006 hppa*-hp-hpux7* )
2007 machine=hp800 opsys=hpux
2009 hppa*-hp-hpux8* )
2010 machine=hp800 opsys=hpux8
2012 hppa*-hp-hpux9shr* )
2013 machine=hp800 opsys=hpux9shr
2015 hppa*-hp-hpux9* )
2016 machine=hp800 opsys=hpux9
2018 hppa*-hp-hpux10.2* )
2019 machine=hp800 opsys=hpux10-20
2021 hppa*-hp-hpux10* )
2022 machine=hp800 opsys=hpux10
2024 hppa*-hp-hpux1[1-9]* )
2025 machine=hp800 opsys=hpux11
2028 hppa*-*-linux-gnu* )
2029 machine=hp800 opsys=gnu-linux
2032 ## HP 9000 series 700 and 800, running HP/UX
2033 hppa*-hp-hpux* )
2034 ## Cross-compilation? Nah!
2035 case "`uname -r`" in
2036 ## Someone's system reports A.B8.05 for this.
2037 ## I wonder what other possibilities there are.
2038 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2039 *.08.* ) machine=hp800 opsys=hpux8 ;;
2040 *.09.* ) machine=hp800 opsys=hpux9 ;;
2041 *) machine=hp800 opsys=hpux10 ;;
2042 esac
2044 hppa*-*-nextstep* )
2045 machine=hp800 opsys=nextstep
2048 ## Orion machines
2049 orion-orion-bsd* )
2050 machine=orion opsys=bsd4-2
2052 clipper-orion-bsd* )
2053 machine=orion105 opsys=bsd4-2
2056 ## IBM machines
2057 i[3456]86-ibm-aix1.1* )
2058 machine=ibmps2-aix opsys=usg5-2-2
2060 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2061 machine=ibmps2-aix opsys=usg5-3
2063 i370-ibm-aix*)
2064 machine=ibm370aix opsys=usg5-3
2066 s390-*-linux-gnu* )
2067 machine=ibms390 opsys=gnu-linux
2069 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2070 machine=ibmrs6000 opsys=aix3-1
2072 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2073 machine=ibmrs6000 opsys=aix3-2-5
2075 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2076 machine=ibmrs6000 opsys=aix4-1
2078 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2079 machine=ibmrs6000 opsys=aix4-2
2081 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2082 machine=ibmrs6000 opsys=aix4-2
2084 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2085 machine=ibmrs6000 opsys=aix4
2087 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2088 machine=ibmrs6000 opsys=aix4-1
2090 rs6000-ibm-aix* | powerpc-ibm-aix* )
2091 machine=ibmrs6000 opsys=aix3-2
2093 romp-ibm-bsd4.3* )
2094 machine=ibmrt opsys=bsd4-3
2096 romp-ibm-bsd4.2* )
2097 machine=ibmrt opsys=bsd4-2
2099 romp-ibm-aos4.3* )
2100 machine=ibmrt opsys=bsd4-3
2102 romp-ibm-aos4.2* )
2103 machine=ibmrt opsys=bsd4-2
2105 romp-ibm-aos* )
2106 machine=ibmrt opsys=bsd4-3
2108 romp-ibm-bsd* )
2109 machine=ibmrt opsys=bsd4-3
2111 romp-ibm-aix* )
2112 machine=ibmrt-aix opsys=usg5-2-2
2115 ## Integrated Solutions `Optimum V'
2116 m68*-isi-bsd4.2* )
2117 machine=isi-ov opsys=bsd4-2
2119 m68*-isi-bsd4.3* )
2120 machine=isi-ov opsys=bsd4-3
2123 ## Intel 386 machines where we do care about the manufacturer
2124 i[3456]86-intsys-sysv* )
2125 machine=is386 opsys=usg5-2-2
2128 ## Prime EXL
2129 i[3456]86-prime-sysv* )
2130 machine=i386 opsys=usg5-3
2133 ## Sequent Symmetry running Dynix
2134 i[3456]86-sequent-bsd* )
2135 machine=symmetry opsys=bsd4-3
2138 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2139 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2140 machine=sequent-ptx opsys=ptx4
2141 NON_GNU_CPP=/lib/cpp
2144 ## Sequent Symmetry running DYNIX/ptx
2145 ## Use the old cpp rather than the newer ANSI one.
2146 i[3456]86-sequent-ptx* )
2147 machine=sequent-ptx opsys=ptx
2148 NON_GNU_CPP="/lib/cpp"
2151 ## ncr machine running svr4.3.
2152 i[3456]86-ncr-sysv4.3 )
2153 machine=ncr386 opsys=usg5-4-3
2156 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2157 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2158 i[3456]86-ncr-sysv* )
2159 machine=ncr386 opsys=usg5-4-2
2162 ## Intel Paragon OSF/1
2163 i860-intel-osf1* )
2164 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2167 ## Intel 860
2168 i860-*-sysv4* )
2169 machine=i860 opsys=usg5-4
2170 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2171 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2174 ## Macintosh PowerPC
2175 powerpc*-*-linux-gnu* )
2176 machine=macppc opsys=gnu-linux
2179 ## Masscomp machines
2180 m68*-masscomp-rtu* )
2181 machine=masscomp opsys=rtu
2184 ## Megatest machines
2185 m68*-megatest-bsd* )
2186 machine=mega68 opsys=bsd4-2
2189 ## Workstations sold by MIPS
2190 ## This is not necessarily all workstations using the MIPS processor -
2191 ## Irises are produced by SGI, and DECstations by DEC.
2193 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2194 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2195 ## it gives for choosing between the alternatives seems to be "Use
2196 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2197 ## the BSD world." I'll assume that these are instructions for
2198 ## handling two odd situations, and that every other situation
2199 ## should use mips.h and usg5-2-2, they being listed first.
2200 mips-mips-usg* )
2201 machine=mips4
2202 ## Fall through to the general code at the bottom to decide on the OS.
2204 mips-mips-riscos4* )
2205 machine=mips4 opsys=bsd4-3
2206 NON_GNU_CC="cc -systype bsd43"
2207 NON_GNU_CPP="cc -systype bsd43 -E"
2209 mips-mips-riscos5* )
2210 machine=mips4 opsys=riscos5
2211 NON_GNU_CC="cc -systype bsd43"
2212 NON_GNU_CPP="cc -systype bsd43 -E"
2214 mips-mips-bsd* )
2215 machine=mips opsys=bsd4-3
2217 mips-mips-* )
2218 machine=mips opsys=usg5-2-2
2221 ## NeXT
2222 m68*-next-* | m68k-*-nextstep* )
2223 machine=m68k opsys=nextstep
2226 ## The complete machine from National Semiconductor
2227 ns32k-ns-genix* )
2228 machine=ns32000 opsys=usg5-2
2231 ## NCR machines
2232 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2233 machine=tower32 opsys=usg5-2-2
2235 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2236 machine=tower32v3 opsys=usg5-3
2239 ## NEC EWS4800
2240 mips-nec-sysv4*)
2241 machine=ews4800 opsys=ux4800
2244 ## Nixdorf Targon 31
2245 m68*-nixdorf-sysv* )
2246 machine=targon31 opsys=usg5-2-2
2249 ## Nu (TI or LMI)
2250 m68*-nu-sysv* )
2251 machine=nu opsys=usg5-2
2254 ## Plexus
2255 m68*-plexus-sysv* )
2256 machine=plexus opsys=usg5-2
2259 ## Pyramid machines
2260 ## I don't really have any idea what sort of processor the Pyramid has,
2261 ## so I'm assuming it is its own architecture.
2262 pyramid-pyramid-bsd* )
2263 machine=pyramid opsys=bsd4-2
2266 ## Sequent Balance
2267 ns32k-sequent-bsd4.2* )
2268 machine=sequent opsys=bsd4-2
2270 ns32k-sequent-bsd4.3* )
2271 machine=sequent opsys=bsd4-3
2274 ## Siemens Nixdorf
2275 mips-siemens-sysv* | mips-sni-sysv*)
2276 machine=mips-siemens opsys=usg5-4
2277 NON_GNU_CC=/usr/ccs/bin/cc
2278 NON_GNU_CPP=/usr/ccs/lib/cpp
2281 ## Silicon Graphics machines
2282 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2283 m68*-sgi-iris3.5* )
2284 machine=irist opsys=iris3-5
2286 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2287 machine=irist opsys=iris3-6
2289 ## Iris 4D
2290 mips-sgi-irix3* )
2291 machine=iris4d opsys=irix3-3
2293 mips-sgi-irix4* )
2294 machine=iris4d opsys=irix4-0
2296 mips-sgi-irix6.5 )
2297 machine=iris4d opsys=irix6-5
2298 # Without defining _LANGUAGE_C, things get masked out in the headers
2299 # so that, for instance, grepping for `free' in stdlib.h fails and
2300 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2301 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2302 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2304 mips-sgi-irix6* )
2305 machine=iris4d opsys=irix6-0
2306 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2307 # but presumably it does no harm.
2308 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2309 # -32 probably isn't necessary in later v.6s -- anyone know which?
2310 NON_GCC_TEST_OPTIONS=-32
2312 mips-sgi-irix5.[01]* )
2313 machine=iris4d opsys=irix5-0
2315 mips-sgi-irix5* | mips-sgi-irix* )
2316 machine=iris4d opsys=irix5-2
2319 ## SONY machines
2320 m68*-sony-bsd4.2* )
2321 machine=news opsys=bsd4-2
2323 m68*-sony-bsd4.3* )
2324 machine=news opsys=bsd4-3
2326 m68*-sony-newsos3* | m68*-sony-news3*)
2327 machine=news opsys=bsd4-3
2329 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2330 machine=news-risc opsys=bsd4-3
2332 mips-sony-newsos6* )
2333 machine=news-r6 opsys=newsos6
2335 mips-sony-news* )
2336 machine=news-risc opsys=newsos5
2339 ## Stride
2340 m68*-stride-sysv* )
2341 machine=stride opsys=usg5-2
2344 ## Suns
2345 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2346 machine=sparc opsys=gnu-linux
2349 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2350 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2351 | rs6000-*-solaris2*)
2352 case "${canonical}" in
2353 m68*-sunos1* ) machine=sun1 ;;
2354 m68*-sunos2* ) machine=sun2 ;;
2355 m68* ) machine=sun3 ;;
2356 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2357 i[3456]86-*-* ) machine=intel386 ;;
2358 powerpcle* ) machine=powerpcle ;;
2359 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2360 sparc* ) machine=sparc ;;
2361 * ) unported=yes ;;
2362 esac
2363 case "${canonical}" in
2364 ## The Sun386 didn't get past 4.0.
2365 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2366 *-sunos4.0* ) opsys=sunos4-0 ;;
2367 *-sunos4.1.[3-9]*noshare )
2368 ## This name is sunos413 instead of sunos4-1-3
2369 ## to avoid a file name conflict on MSDOS.
2370 opsys=sunos413
2371 NON_GNU_CPP=/usr/lib/cpp
2372 NON_GCC_TEST_OPTIONS=-Bstatic
2373 GCC_TEST_OPTIONS=-static
2375 *-sunos4.1.[3-9]* | *-sunos4shr*)
2376 opsys=sunos4shr
2377 NON_GNU_CPP=/usr/lib/cpp
2379 *-sunos4* | *-sunos )
2380 opsys=sunos4-1
2381 NON_GCC_TEST_OPTIONS=-Bstatic
2382 GCC_TEST_OPTIONS=-static
2384 *-sunos5.3* | *-solaris2.3* )
2385 opsys=sol2-3
2386 NON_GNU_CPP=/usr/ccs/lib/cpp
2388 *-sunos5.4* | *-solaris2.4* )
2389 opsys=sol2-4
2390 NON_GNU_CPP=/usr/ccs/lib/cpp
2391 RANLIB="ar -ts"
2393 *-sunos5.5* | *-solaris2.5* )
2394 opsys=sol2-5
2395 NON_GNU_CPP=/usr/ccs/lib/cpp
2396 RANLIB="ar -ts"
2398 *-sunos5.6* | *-solaris2.6* )
2399 opsys=sol2-6
2400 NON_GNU_CPP=/usr/ccs/lib/cpp
2401 RANLIB="ar -ts"
2403 *-sunos5* | *-solaris* )
2404 opsys=sol2-6
2405 NON_GNU_CPP=/usr/ccs/lib/cpp
2407 * ) opsys=bsd4-2 ;;
2408 esac
2409 ## Watch out for a compiler that we know will not work.
2410 case "${canonical}" in
2411 *-solaris* | *-sunos5* )
2412 if [ "x$CC" = x/usr/ucb/cc ]; then
2413 ## /usr/ucb/cc doesn't work;
2414 ## we should find some other compiler that does work.
2415 unset CC
2418 *) ;;
2419 esac
2421 sparc-*-nextstep* )
2422 machine=sparc opsys=nextstep
2425 ## Tadpole 68k
2426 m68*-tadpole-sysv* )
2427 machine=tad68k opsys=usg5-3
2430 ## Tahoe machines
2431 tahoe-tahoe-bsd4.2* )
2432 machine=tahoe opsys=bsd4-2
2434 tahoe-tahoe-bsd4.3* )
2435 machine=tahoe opsys=bsd4-3
2438 ## Tandem Integrity S2
2439 mips-tandem-sysv* )
2440 machine=tandem-s2 opsys=usg5-3
2443 ## Tektronix XD88
2444 m88k-tektronix-sysv3* )
2445 machine=tekxd88 opsys=usg5-3
2448 ## Tektronix 16000 box (6130?)
2449 ns16k-tektronix-bsd* )
2450 machine=ns16000 opsys=bsd4-2
2452 ## Tektronix 4300
2453 ## src/m/tek4300.h hints that this is a m68k machine.
2454 m68*-tektronix-bsd* )
2455 machine=tek4300 opsys=bsd4-3
2458 ## Titan P2 or P3
2459 ## We seem to have lost the machine-description file titan.h!
2460 titan-titan-sysv* )
2461 machine=titan opsys=usg5-3
2464 ## Ustation E30 (SS5E)
2465 m68*-unisys-uniplus* )
2466 machine=ustation opsystem=unipl5-2
2469 ## Vaxen.
2470 vax-dec-* )
2471 machine=vax
2472 case "${canonical}" in
2473 *-bsd4.1* ) opsys=bsd4-1 ;;
2474 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2475 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2476 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2477 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2478 *-vms* ) opsys=vms ;;
2479 * ) unported=yes
2480 esac
2483 ## Whitechapel MG1
2484 ns16k-whitechapel-* )
2485 machine=mg1
2486 ## We don't know what sort of OS runs on these; we'll let the
2487 ## operating system guessing code below try.
2490 ## Wicat
2491 m68*-wicat-sysv* )
2492 machine=wicat opsys=usg5-2
2495 ## IA-64
2496 ia64*-*-linux* )
2497 machine=ia64 opsys=gnu-linux
2500 ## Intel 386 machines where we don't care about the manufacturer
2501 i[3456]86-*-* )
2502 machine=intel386
2503 case "${canonical}" in
2504 *-cygwin ) opsys=cygwin ;;
2505 *-lynxos* ) opsys=lynxos ;;
2506 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2507 *-isc2.2* ) opsys=isc2-2 ;;
2508 *-isc4.0* ) opsys=isc4-0 ;;
2509 *-isc4.* ) opsys=isc4-1
2510 GCC_TEST_OPTIONS=-posix
2511 NON_GCC_TEST_OPTIONS=-Xp
2513 *-isc* ) opsys=isc3-0 ;;
2514 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2515 *-esix* ) opsys=esix ;;
2516 *-xenix* ) opsys=xenix ;;
2517 *-linux-gnu* ) opsys=gnu-linux ;;
2518 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2519 *-sco3.2v5* ) opsys=sco5
2520 NON_GNU_CPP=/lib/cpp
2521 # Prevent -belf from being passed to $CPP.
2522 # /lib/cpp does not accept it.
2523 OVERRIDE_CPPFLAGS=" "
2525 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2526 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2527 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2528 *-386bsd* ) opsys=386bsd ;;
2529 *-nextstep* ) opsys=nextstep ;;
2530 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2531 esac
2534 ## m68k Linux-based GNU system
2535 m68k-*-linux-gnu* )
2536 machine=m68k opsys=gnu-linux
2539 ## Mips Linux-based GNU system
2540 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2541 machine=mips opsys=gnu-linux
2544 ## UXP/DS
2545 sparc-fujitsu-sysv4* )
2546 machine=sparc opsys=uxpds
2547 NON_GNU_CPP=/usr/ccs/lib/cpp
2548 RANLIB="ar -ts"
2551 ## UXP/V
2552 f301-fujitsu-uxpv4.1)
2553 machine=f301 opsys=uxpv
2556 ## Darwin / Mac OS X
2557 powerpc-apple-darwin* )
2558 machine=powermac opsys=darwin
2559 # Define CPP as follows to make autoconf work correctly.
2560 CPP="cc -E -traditional-cpp"
2563 ## AMD x86-64 Linux-based GNU system
2564 x86_64-*-linux-gnu* )
2565 machine=amdx86-64 opsys=gnu-linux
2569 unported=yes
2571 esac
2573 ### If the code above didn't choose an operating system, just choose
2574 ### an operating system based on the configuration name. You really
2575 ### only want to use this when you have no idea what the right
2576 ### operating system is; if you know what operating systems a machine
2577 ### runs, it's cleaner to make it explicit in the case statement
2578 ### above.
2579 if test x"${opsys}" = x; then
2580 case "${canonical}" in
2581 *-gnu* ) opsys=gnu ;;
2582 *-bsd4.[01] ) opsys=bsd4-1 ;;
2583 *-bsd4.2 ) opsys=bsd4-2 ;;
2584 *-bsd4.3 ) opsys=bsd4-3 ;;
2585 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2586 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2587 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2588 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2589 *-sysv4.2uw* ) opsys=unixware ;;
2590 *-sysv5uw* ) opsys=unixware ;;
2591 *-sysv5OpenUNIX* ) opsys=unixware ;;
2592 *-sysv4.1* | *-sysvr4.1* )
2593 NON_GNU_CPP=/usr/lib/cpp
2594 opsys=usg5-4 ;;
2595 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2596 if [ x$NON_GNU_CPP = x ]; then
2597 if [ -f /usr/ccs/lib/cpp ]; then
2598 NON_GNU_CPP=/usr/ccs/lib/cpp
2599 else
2600 NON_GNU_CPP=/lib/cpp
2603 opsys=usg5-4-2 ;;
2604 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2606 unported=yes
2608 esac
2613 if test $unported = yes; then
2614 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2615 Check \`etc/MACHINES' for recognized configuration names." >&5
2616 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2617 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2618 { (exit 1); exit 1; }; }
2621 machfile="m/${machine}.h"
2622 opsysfile="s/${opsys}.h"
2625 #### Choose a compiler.
2626 test -n "$CC" && cc_specified=yes
2628 # Save the value of CFLAGS that the user specified.
2629 SPECIFIED_CFLAGS="$CFLAGS"
2631 case ${with_gcc} in
2632 "yes" ) CC="gcc" GCC=yes ;;
2633 "no" ) : ${CC=cc} ;;
2635 esac
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2663 done
2664 done
2668 CC=$ac_cv_prog_CC
2669 if test -n "$CC"; then
2670 echo "$as_me:$LINENO: result: $CC" >&5
2671 echo "${ECHO_T}$CC" >&6
2672 else
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2678 if test -z "$ac_cv_prog_CC"; then
2679 ac_ct_CC=$CC
2680 # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$ac_ct_CC"; then
2688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_ac_ct_CC="gcc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2709 echo "${ECHO_T}$ac_ct_CC" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2715 CC=$ac_ct_CC
2716 else
2717 CC="$ac_cv_prog_CC"
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}cc; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_CC="${ac_tool_prefix}cc"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 echo "$as_me:$LINENO: result: $CC" >&5
2751 echo "${ECHO_T}$CC" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2758 if test -z "$ac_cv_prog_CC"; then
2759 ac_ct_CC=$CC
2760 # Extract the first word of "cc", so it can be a program name with args.
2761 set dummy cc; ac_word=$2
2762 echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_ac_ct_CC="cc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2787 if test -n "$ac_ct_CC"; then
2788 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2789 echo "${ECHO_T}$ac_ct_CC" >&6
2790 else
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2795 CC=$ac_ct_CC
2796 else
2797 CC="$ac_cv_prog_CC"
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806 if test "${ac_cv_prog_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 ac_prog_rejected=no
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821 ac_prog_rejected=yes
2822 continue
2824 ac_cv_prog_CC="cc"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2831 if test $ac_prog_rejected = yes; then
2832 # We found a bogon in the path, so make sure we never use it.
2833 set dummy $ac_cv_prog_CC
2834 shift
2835 if test $# != 0; then
2836 # We chose a different compiler from the bogus one.
2837 # However, it has the same basename, so the bogon will be chosen
2838 # first if we set CC to just the basename; use the full file name.
2839 shift
2840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2845 CC=$ac_cv_prog_CC
2846 if test -n "$CC"; then
2847 echo "$as_me:$LINENO: result: $CC" >&5
2848 echo "${ECHO_T}$CC" >&6
2849 else
2850 echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 for ac_prog in cl
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861 echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2880 done
2881 done
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887 echo "$as_me:$LINENO: result: $CC" >&5
2888 echo "${ECHO_T}$CC" >&6
2889 else
2890 echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2894 test -n "$CC" && break
2895 done
2897 if test -z "$CC"; then
2898 ac_ct_CC=$CC
2899 for ac_prog in cl
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy $ac_prog; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC="$ac_prog"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930 echo "${ECHO_T}$ac_ct_CC" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2936 test -n "$ac_ct_CC" && break
2937 done
2939 CC=$ac_ct_CC
2945 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: no acceptable C compiler found in \$PATH
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2951 # Provide some information about the compiler.
2952 echo "$as_me:$LINENO:" \
2953 "checking for C compiler version" >&5
2954 ac_compiler=`set X $ac_compile; echo $2`
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2956 (eval $ac_compiler --version </dev/null >&5) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }
2960 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2961 (eval $ac_compiler -v </dev/null >&5) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }
2965 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2966 (eval $ac_compiler -V </dev/null >&5) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }
2971 cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2979 main ()
2983 return 0;
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2995 (eval $ac_link_default) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; then
2999 # Find the output, starting from the most likely. This scheme is
3000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3001 # resort.
3003 # Be careful to initialize this variable, since it used to be cached.
3004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3005 ac_cv_exeext=
3006 # b.out is created by i960 compilers.
3007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3009 test -f "$ac_file" || continue
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3013 conftest.$ac_ext )
3014 # This is the source file.
3016 [ab].out )
3017 # We found the default executable, but exeext='' is most
3018 # certainly right.
3019 break;;
3020 *.* )
3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 # FIXME: I believe we export ac_cv_exeext for Libtool,
3023 # but it would be cool to find out if it's true. Does anybody
3024 # maintain Libtool? --akim.
3025 export ac_cv_exeext
3026 break;;
3028 break;;
3029 esac
3030 done
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3042 ac_exeext=$ac_cv_exeext
3043 echo "$as_me:$LINENO: result: $ac_file" >&5
3044 echo "${ECHO_T}$ac_file" >&6
3046 # Check the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3051 # If not cross compiling, check that we can run a simple program.
3052 if test "$cross_compiling" != yes; then
3053 if { ac_try='./$ac_file'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 cross_compiling=no
3060 else
3061 if test "$cross_compiling" = maybe; then
3062 cross_compiling=yes
3063 else
3064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&5
3067 echo "$as_me: error: cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 echo "$as_me:$LINENO: result: yes" >&5
3075 echo "${ECHO_T}yes" >&6
3077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3078 ac_clean_files=$ac_clean_files_save
3079 # Check the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3084 echo "${ECHO_T}$cross_compiling" >&6
3086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; then
3093 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3094 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3095 # work properly (i.e., refer to `conftest.exe'), while it won't with
3096 # `rm'.
3097 for ac_file in conftest.exe conftest conftest.*; do
3098 test -f "$ac_file" || continue
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3101 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 export ac_cv_exeext
3103 break;;
3104 * ) break;;
3105 esac
3106 done
3107 else
3108 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." >&5
3110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3111 See \`config.log' for more details." >&2;}
3112 { (exit 1); exit 1; }; }
3115 rm -f conftest$ac_cv_exeext
3116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3117 echo "${ECHO_T}$ac_cv_exeext" >&6
3119 rm -f conftest.$ac_ext
3120 EXEEXT=$ac_cv_exeext
3121 ac_exeext=$EXEEXT
3122 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3123 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3124 if test "${ac_cv_objext+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3135 main ()
3139 return 0;
3141 _ACEOF
3142 rm -f conftest.o conftest.obj
3143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3144 (eval $ac_compile) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; then
3148 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152 break;;
3153 esac
3154 done
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3169 echo "${ECHO_T}$ac_cv_objext" >&6
3170 OBJEXT=$ac_cv_objext
3171 ac_objext=$OBJEXT
3172 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3174 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3185 main ()
3187 #ifndef __GNUC__
3188 choke me
3189 #endif
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 (eval $ac_try) 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3207 ac_compiler_gnu=yes
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 ac_compiler_gnu=no
3214 rm -f conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 CFLAGS="-g"
3224 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3225 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3226 if test "${ac_cv_prog_cc_g+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 main ()
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cc_g=yes
3257 else
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 ac_cv_prog_cc_g=no
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3267 if test "$ac_test_CFLAGS" = set; then
3268 CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270 if test "$GCC" = yes; then
3271 CFLAGS="-g -O2"
3272 else
3273 CFLAGS="-g"
3275 else
3276 if test "$GCC" = yes; then
3277 CFLAGS="-O2"
3278 else
3279 CFLAGS=
3282 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3283 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3284 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 ac_cv_prog_cc_stdc=no
3288 ac_save_CC=$CC
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <stdarg.h>
3296 #include <stdio.h>
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3303 char **p;
3304 int i;
3306 return p[i];
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3310 char *s;
3311 va_list v;
3312 va_start (v,p);
3313 s = g (p, va_arg (v,int));
3314 va_end (v);
3315 return s;
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3324 main ()
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 return 0;
3330 _ACEOF
3331 # Don't try gcc -ansi; that turns off useful extensions and
3332 # breaks some systems' header files.
3333 # AIX -qlanglvl=ansi
3334 # Ultrix and OSF/1 -std1
3335 # HP-UX 10.20 and later -Ae
3336 # HP-UX older versions -Aa -D_HPUX_SOURCE
3337 # SVR4 -Xc -D__EXTENSIONS__
3338 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340 CC="$ac_save_CC $ac_arg"
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_stdc=$ac_arg
3354 break
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f conftest.$ac_objext
3361 done
3362 rm -f conftest.$ac_ext conftest.$ac_objext
3363 CC=$ac_save_CC
3367 case "x$ac_cv_prog_cc_stdc" in
3368 x|xno)
3369 echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6 ;;
3372 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3373 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3374 CC="$CC $ac_cv_prog_cc_stdc" ;;
3375 esac
3377 # Some people use a C++ compiler to compile C. Since we use `exit',
3378 # in C++ we need to declare it. In case someone uses the same compiler
3379 # for both compiling C and C++ we need to have the C++ compiler decide
3380 # the declaration of exit, since it's the most demanding environment.
3381 cat >conftest.$ac_ext <<_ACEOF
3382 #ifndef __cplusplus
3383 choke me
3384 #endif
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 for ac_declaration in \
3399 '' \
3400 'extern "C" void std::exit (int) throw (); using std::exit;' \
3401 'extern "C" void std::exit (int); using std::exit;' \
3402 'extern "C" void exit (int) throw ();' \
3403 'extern "C" void exit (int);' \
3404 'void exit (int);'
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 $ac_declaration
3413 #include <stdlib.h>
3415 main ()
3417 exit (42);
3419 return 0;
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } &&
3428 { ac_try='test -s conftest.$ac_objext'
3429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 (eval $ac_try) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 continue
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3448 $ac_declaration
3450 main ()
3452 exit (42);
3454 return 0;
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 break
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f conftest.$ac_objext conftest.$ac_ext
3476 done
3477 rm -f conftest*
3478 if test -n "$ac_declaration"; then
3479 echo '#ifdef __cplusplus' >>confdefs.h
3480 echo $ac_declaration >>confdefs.h
3481 echo '#endif' >>confdefs.h
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f conftest.$ac_objext conftest.$ac_ext
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 # On Suns, sometimes $CPP names a directory.
3498 if test -n "$CPP" && test -d "$CPP"; then
3499 CPP=
3502 #### Some systems specify a CPP to use unless we are using GCC.
3503 #### Now that we know whether we are using GCC, we can decide whether
3504 #### to use that one.
3505 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3506 then
3507 CPP="$NON_GNU_CPP"
3510 #### Some systems specify a CC to use unless we are using GCC.
3511 #### Now that we know whether we are using GCC, we can decide whether
3512 #### to use that one.
3513 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3514 test x$cc_specified != xyes
3515 then
3516 CC="$NON_GNU_CC"
3519 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3520 then
3521 CC="$CC $GCC_TEST_OPTIONS"
3524 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3525 then
3526 CC="$CC $NON_GCC_TEST_OPTIONS"
3529 #### Some other nice autoconf tests.
3531 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3533 LN_S=$as_ln_s
3534 if test "$LN_S" = "ln -s"; then
3535 echo "$as_me:$LINENO: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3539 echo "${ECHO_T}no, using $LN_S" >&6
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3551 CPP=
3553 if test -z "$CPP"; then
3554 if test "${ac_cv_prog_CPP+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 # Double quotes because CPP needs to be expanded
3558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580 Syntax error
3581 _ACEOF
3582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null; then
3590 if test -s conftest.err; then
3591 ac_cpp_err=$ac_c_preproc_warn_flag
3592 else
3593 ac_cpp_err=
3595 else
3596 ac_cpp_err=yes
3598 if test -z "$ac_cpp_err"; then
3600 else
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3604 # Broken: fails on valid input.
3605 continue
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3618 _ACEOF
3619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev/null; then
3627 if test -s conftest.err; then
3628 ac_cpp_err=$ac_c_preproc_warn_flag
3629 else
3630 ac_cpp_err=
3632 else
3633 ac_cpp_err=yes
3635 if test -z "$ac_cpp_err"; then
3636 # Broken: success on invalid input.
3637 continue
3638 else
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 # Passes both tests.
3643 ac_preproc_ok=:
3644 break
3646 rm -f conftest.err conftest.$ac_ext
3648 done
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3652 break
3655 done
3656 ac_cv_prog_CPP=$CPP
3659 CPP=$ac_cv_prog_CPP
3660 else
3661 ac_cv_prog_CPP=$CPP
3663 echo "$as_me:$LINENO: result: $CPP" >&5
3664 echo "${ECHO_T}$CPP" >&6
3665 ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685 Syntax error
3686 _ACEOF
3687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } >/dev/null; then
3695 if test -s conftest.err; then
3696 ac_cpp_err=$ac_c_preproc_warn_flag
3697 else
3698 ac_cpp_err=
3700 else
3701 ac_cpp_err=yes
3703 if test -z "$ac_cpp_err"; then
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 # Broken: fails on valid input.
3710 continue
3712 rm -f conftest.err conftest.$ac_ext
3714 # OK, works on sane cases. Now check whether non-existent headers
3715 # can be detected and how.
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 else
3735 ac_cpp_err=
3737 else
3738 ac_cpp_err=yes
3740 if test -z "$ac_cpp_err"; then
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 # Passes both tests.
3748 ac_preproc_ok=:
3749 break
3751 rm -f conftest.err conftest.$ac_ext
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3758 else
3759 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 # Find a good install program. We prefer a C program (faster),
3773 # so one script is as good as another. But avoid the broken or
3774 # incompatible versions:
3775 # SysV /etc/install, /usr/sbin/install
3776 # SunOS /usr/etc/install
3777 # IRIX /sbin/install
3778 # AIX /bin/install
3779 # AmigaOS /C/install, which installs bootblocks on floppy discs
3780 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3781 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3782 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3783 # OS/2's system install, which has a completely different semantic
3784 # ./install, which can be erroneously created by make from ./install.sh.
3785 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3786 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3787 if test -z "$INSTALL"; then
3788 if test "${ac_cv_path_install+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 # Account for people who put trailing slashes in PATH elements.
3797 case $as_dir/ in
3798 ./ | .// | /cC/* | \
3799 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3800 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3801 /usr/ucb/* ) ;;
3803 # OSF1 and SCO ODT 3.0 have their own names for install.
3804 # Don't use installbsd from OSF since it installs stuff as root
3805 # by default.
3806 for ac_prog in ginstall scoinst install; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3809 if test $ac_prog = install &&
3810 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3811 # AIX install. It has an incompatible calling convention.
3813 elif test $ac_prog = install &&
3814 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815 # program-specific install script used by HP pwplus--don't use.
3817 else
3818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3819 break 3
3822 done
3823 done
3825 esac
3826 done
3830 if test "${ac_cv_path_install+set}" = set; then
3831 INSTALL=$ac_cv_path_install
3832 else
3833 # As a last resort, use the slow shell script. We don't cache a
3834 # path for INSTALL within a source directory, because that will
3835 # break other packages using the cache if that directory is
3836 # removed, or if the path is relative.
3837 INSTALL=$ac_install_sh
3840 echo "$as_me:$LINENO: result: $INSTALL" >&5
3841 echo "${ECHO_T}$INSTALL" >&6
3843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3844 # It thinks the first close brace ends the variable substitution.
3845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3851 if test "x$RANLIB" = x; then
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3855 echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857 if test "${ac_cv_prog_RANLIB+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 if test -n "$RANLIB"; then
3861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3879 RANLIB=$ac_cv_prog_RANLIB
3880 if test -n "$RANLIB"; then
3881 echo "$as_me:$LINENO: result: $RANLIB" >&5
3882 echo "${ECHO_T}$RANLIB" >&6
3883 else
3884 echo "$as_me:$LINENO: result: no" >&5
3885 echo "${ECHO_T}no" >&6
3889 if test -z "$ac_cv_prog_RANLIB"; then
3890 ac_ct_RANLIB=$RANLIB
3891 # Extract the first word of "ranlib", so it can be a program name with args.
3892 set dummy ranlib; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 if test -n "$ac_ct_RANLIB"; then
3899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_ac_ct_RANLIB="ranlib"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3919 if test -n "$ac_ct_RANLIB"; then
3920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3921 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3922 else
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3927 RANLIB=$ac_ct_RANLIB
3928 else
3929 RANLIB="$ac_cv_prog_RANLIB"
3933 # Extract the first word of "install-info", so it can be a program name with args.
3934 set dummy install-info; ac_word=$2
3935 echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3937 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 case $INSTALL_INFO in
3941 [\\/]* | ?:[\\/]*)
3942 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3960 esac
3962 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3964 if test -n "$INSTALL_INFO"; then
3965 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3966 echo "${ECHO_T}$INSTALL_INFO" >&6
3967 else
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3972 # Extract the first word of "install-info", so it can be a program name with args.
3973 set dummy install-info; ac_word=$2
3974 echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3976 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 case $INSTALL_INFO in
3980 [\\/]* | ?:[\\/]*)
3981 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in /usr/sbin
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3995 done
3996 done
3999 esac
4001 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4003 if test -n "$INSTALL_INFO"; then
4004 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4005 echo "${ECHO_T}$INSTALL_INFO" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 # Extract the first word of "install-info", so it can be a program name with args.
4012 set dummy install-info; ac_word=$2
4013 echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4015 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 case $INSTALL_INFO in
4019 [\\/]* | ?:[\\/]*)
4020 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in /sbin
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4034 done
4035 done
4037 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4039 esac
4041 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4043 if test -n "$INSTALL_INFO"; then
4044 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4045 echo "${ECHO_T}$INSTALL_INFO" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4053 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4054 then
4055 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4058 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4059 then
4060 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4065 echo "$as_me:$LINENO: checking for egrep" >&5
4066 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4067 if test "${ac_cv_prog_egrep+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4071 then ac_cv_prog_egrep='grep -E'
4072 else ac_cv_prog_egrep='egrep'
4075 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4076 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4077 EGREP=$ac_cv_prog_egrep
4081 echo "$as_me:$LINENO: checking for AIX" >&5
4082 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #ifdef _AIX
4091 #endif
4093 _ACEOF
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "yes" >/dev/null 2>&1; then
4096 echo "$as_me:$LINENO: result: yes" >&5
4097 echo "${ECHO_T}yes" >&6
4098 cat >>confdefs.h <<\_ACEOF
4099 #define _ALL_SOURCE 1
4100 _ACEOF
4102 else
4103 echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4106 rm -f conftest*
4110 #### Extract some information from the operating system and machine files.
4112 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4113 - which libraries the lib-src programs will want, and
4114 - whether the GNU malloc routines are usable..." >&5
4115 echo "$as_me: checking the machine- and system-dependent files to find out
4116 - which libraries the lib-src programs will want, and
4117 - whether the GNU malloc routines are usable..." >&6;}
4119 ### First figure out CFLAGS (which we use for running the compiler here)
4120 ### and REAL_CFLAGS (which we use for real compilation).
4121 ### The two are the same except on a few systems, where they are made
4122 ### different to work around various lossages. For example,
4123 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4124 ### as implying static linking.
4126 ### If the CFLAGS env var is specified, we use that value
4127 ### instead of the default.
4129 ### It's not important that this name contain the PID; you can't run
4130 ### two configures in the same directory and have anything work
4131 ### anyway.
4132 tempcname="conftest.c"
4134 echo '
4135 #include "'${srcdir}'/src/'${opsysfile}'"
4136 #include "'${srcdir}'/src/'${machfile}'"
4137 #ifndef LIBS_MACHINE
4138 #define LIBS_MACHINE
4139 #endif
4140 #ifndef LIBS_SYSTEM
4141 #define LIBS_SYSTEM
4142 #endif
4143 #ifndef C_SWITCH_SYSTEM
4144 #define C_SWITCH_SYSTEM
4145 #endif
4146 #ifndef C_SWITCH_MACHINE
4147 #define C_SWITCH_MACHINE
4148 #endif
4149 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4150 configure___ c_switch_system=C_SWITCH_SYSTEM
4151 configure___ c_switch_machine=C_SWITCH_MACHINE
4153 #ifndef LIB_X11_LIB
4154 #define LIB_X11_LIB -lX11
4155 #endif
4157 #ifndef LIBX11_MACHINE
4158 #define LIBX11_MACHINE
4159 #endif
4161 #ifndef LIBX11_SYSTEM
4162 #define LIBX11_SYSTEM
4163 #endif
4164 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4166 #ifdef UNEXEC
4167 configure___ unexec=UNEXEC
4168 #else
4169 configure___ unexec=unexec.o
4170 #endif
4172 #ifdef SYSTEM_MALLOC
4173 configure___ system_malloc=yes
4174 #else
4175 configure___ system_malloc=no
4176 #endif
4178 #ifdef USE_MMAP_FOR_BUFFERS
4179 configure___ use_mmap_for_buffers=yes
4180 #else
4181 configure___ use_mmap_for_buffers=no
4182 #endif
4184 #ifndef C_DEBUG_SWITCH
4185 #define C_DEBUG_SWITCH -g
4186 #endif
4188 #ifndef C_OPTIMIZE_SWITCH
4189 #ifdef __GNUC__
4190 #define C_OPTIMIZE_SWITCH -O2
4191 #else
4192 #define C_OPTIMIZE_SWITCH -O
4193 #endif
4194 #endif
4196 #ifndef LD_SWITCH_MACHINE
4197 #define LD_SWITCH_MACHINE
4198 #endif
4200 #ifndef LD_SWITCH_SYSTEM
4201 #define LD_SWITCH_SYSTEM
4202 #endif
4204 #ifndef LD_SWITCH_X_SITE_AUX
4205 #define LD_SWITCH_X_SITE_AUX
4206 #endif
4208 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4209 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4211 #ifdef THIS_IS_CONFIGURE
4213 /* Get the CFLAGS for tests in configure. */
4214 #ifdef __GNUC__
4215 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4216 #else
4217 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4218 #endif
4220 #else /* not THIS_IS_CONFIGURE */
4222 /* Get the CFLAGS for real compilation. */
4223 #ifdef __GNUC__
4224 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4225 #else
4226 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4227 #endif
4229 #endif /* not THIS_IS_CONFIGURE */
4230 ' > ${tempcname}
4232 # The value of CPP is a quoted variable reference, so we need to do this
4233 # to get its actual value...
4234 CPP=`eval "echo $CPP"`
4235 eval `${CPP} -Isrc ${tempcname} \
4236 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4237 if test "x$SPECIFIED_CFLAGS" = x; then
4238 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4239 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4240 else
4241 REAL_CFLAGS="$CFLAGS"
4243 rm ${tempcname}
4245 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4247 ### Make sure subsequent tests use flags consistent with the build flags.
4249 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4250 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4251 else
4252 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4258 cat >>confdefs.h <<\_ACEOF
4259 #define _GNU_SOURCE 1
4260 _ACEOF
4264 # Check whether --enable-largefile or --disable-largefile was given.
4265 if test "${enable_largefile+set}" = set; then
4266 enableval="$enable_largefile"
4269 if test "$enable_largefile" != no; then
4271 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4272 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4273 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 ac_cv_sys_largefile_CC=no
4277 if test "$GCC" != yes; then
4278 ac_save_CC=$CC
4279 while :; do
4280 # IRIX 6.2 and later do not support large files by default,
4281 # so use the C compiler's -n32 option if that helps.
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 #include <sys/types.h>
4289 /* Check that off_t can represent 2**63 - 1 correctly.
4290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291 since some C++ compilers masquerading as C compilers
4292 incorrectly reject 9223372036854775807. */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295 && LARGE_OFF_T % 2147483647 == 1)
4296 ? 1 : -1];
4298 main ()
4302 return 0;
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 break
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4323 rm -f conftest.$ac_objext
4324 CC="$CC -n32"
4325 rm -f conftest.$ac_objext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327 (eval $ac_compile) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 ac_cv_sys_largefile_CC=' -n32'; break
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 rm -f conftest.$ac_objext
4344 break
4345 done
4346 CC=$ac_save_CC
4347 rm -f conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4351 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4352 if test "$ac_cv_sys_largefile_CC" != no; then
4353 CC=$CC$ac_cv_sys_largefile_CC
4356 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4357 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 while :; do
4362 ac_cv_sys_file_offset_bits=no
4363 cat >conftest.$ac_ext <<_ACEOF
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4377 ? 1 : -1];
4379 main ()
4383 return 0;
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 break
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #define _FILE_OFFSET_BITS 64
4412 #include <sys/types.h>
4413 /* Check that off_t can represent 2**63 - 1 correctly.
4414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4415 since some C++ compilers masquerading as C compilers
4416 incorrectly reject 9223372036854775807. */
4417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4419 && LARGE_OFF_T % 2147483647 == 1)
4420 ? 1 : -1];
4422 main ()
4426 return 0;
4428 _ACEOF
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_cv_sys_file_offset_bits=64; break
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4447 rm -f conftest.$ac_objext conftest.$ac_ext
4448 break
4449 done
4451 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4452 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4453 if test "$ac_cv_sys_file_offset_bits" != no; then
4455 cat >>confdefs.h <<_ACEOF
4456 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4457 _ACEOF
4460 rm -f conftest*
4461 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4462 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4463 if test "${ac_cv_sys_large_files+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466 while :; do
4467 ac_cv_sys_large_files=no
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <sys/types.h>
4475 /* Check that off_t can represent 2**63 - 1 correctly.
4476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4477 since some C++ compilers masquerading as C compilers
4478 incorrectly reject 9223372036854775807. */
4479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4481 && LARGE_OFF_T % 2147483647 == 1)
4482 ? 1 : -1];
4484 main ()
4488 return 0;
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 break
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4509 rm -f conftest.$ac_objext conftest.$ac_ext
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #define _LARGE_FILES 1
4517 #include <sys/types.h>
4518 /* Check that off_t can represent 2**63 - 1 correctly.
4519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520 since some C++ compilers masquerading as C compilers
4521 incorrectly reject 9223372036854775807. */
4522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524 && LARGE_OFF_T % 2147483647 == 1)
4525 ? 1 : -1];
4527 main ()
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 ac_cv_sys_large_files=1; break
4547 else
4548 echo "$as_me: failed program was:" >&5
4549 sed 's/^/| /' conftest.$ac_ext >&5
4552 rm -f conftest.$ac_objext conftest.$ac_ext
4553 break
4554 done
4556 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4558 if test "$ac_cv_sys_large_files" != no; then
4560 cat >>confdefs.h <<_ACEOF
4561 #define _LARGE_FILES $ac_cv_sys_large_files
4562 _ACEOF
4565 rm -f conftest*
4569 if test "${with_sound}" != "no"; then
4570 # Sound support for GNU/Linux and the free BSDs.
4571 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4572 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4573 if test "${ac_cv_header_stdc+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <stdlib.h>
4583 #include <stdarg.h>
4584 #include <string.h>
4585 #include <float.h>
4588 main ()
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_header_stdc=yes
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_cv_header_stdc=no
4614 rm -f conftest.$ac_objext conftest.$ac_ext
4616 if test $ac_cv_header_stdc = yes; then
4617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #include <string.h>
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev/null 2>&1; then
4630 else
4631 ac_cv_header_stdc=no
4633 rm -f conftest*
4637 if test $ac_cv_header_stdc = yes; then
4638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #include <stdlib.h>
4647 _ACEOF
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649 $EGREP "free" >/dev/null 2>&1; then
4651 else
4652 ac_cv_header_stdc=no
4654 rm -f conftest*
4658 if test $ac_cv_header_stdc = yes; then
4659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660 if test "$cross_compiling" = yes; then
4662 else
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 #include <ctype.h>
4670 #if ((' ' & 0x0FF) == 0x020)
4671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673 #else
4674 # define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
4676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679 #endif
4681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 main ()
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 exit(2);
4690 exit (0);
4692 _ACEOF
4693 rm -f conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4705 else
4706 echo "$as_me: program exited with status $ac_status" >&5
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ( exit $ac_status )
4711 ac_cv_header_stdc=no
4713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4717 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4718 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4719 if test $ac_cv_header_stdc = yes; then
4721 cat >>confdefs.h <<\_ACEOF
4722 #define STDC_HEADERS 1
4723 _ACEOF
4727 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4738 inttypes.h stdint.h unistd.h
4740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741 echo "$as_me:$LINENO: checking for $ac_header" >&5
4742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h. */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4752 $ac_includes_default
4754 #include <$ac_header>
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4768 eval "$as_ac_Header=yes"
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 eval "$as_ac_Header=no"
4775 rm -f conftest.$ac_objext conftest.$ac_ext
4777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4780 cat >>confdefs.h <<_ACEOF
4781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4782 _ACEOF
4786 done
4792 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4796 echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4803 else
4804 # Is the header compilable?
4805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 $ac_includes_default
4814 #include <$ac_header>
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_header_compiler=yes
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_header_compiler=no
4835 rm -f conftest.$ac_objext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6
4839 # Is the header present?
4840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <$ac_header>
4849 _ACEOF
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_c_preproc_warn_flag
4860 else
4861 ac_cpp_err=
4863 else
4864 ac_cpp_err=yes
4866 if test -z "$ac_cpp_err"; then
4867 ac_header_preproc=yes
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_header_preproc=no
4874 rm -f conftest.err conftest.$ac_ext
4875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6
4878 # So? What about this header?
4879 case $ac_header_compiler:$ac_header_preproc in
4880 yes:no )
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4885 ac_header_preproc=yes
4887 no:yes )
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4901 cat <<\_ASBOX
4902 ## ------------------------------------------ ##
4903 ## Report this to the AC_PACKAGE_NAME lists. ##
4904 ## ------------------------------------------ ##
4905 _ASBOX
4907 sed "s/^/$as_me: WARNING: /" >&2
4909 esac
4910 echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 eval "$as_ac_Header=\$ac_header_preproc"
4917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922 cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924 _ACEOF
4928 done
4930 # Emulation library used on NetBSD.
4931 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4932 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4933 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 ac_check_lib_save_LIBS=$LIBS
4937 LIBS="-lossaudio $LIBS"
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 #ifdef __cplusplus
4947 extern "C"
4948 #endif
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4951 char _oss_ioctl ();
4953 main ()
4955 _oss_ioctl ();
4957 return 0;
4959 _ACEOF
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest$ac_exeext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_cv_lib_ossaudio__oss_ioctl=yes
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_cv_lib_ossaudio__oss_ioctl=no
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4983 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4984 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4985 LIBSOUND=-lossaudio
4986 else
4987 LIBSOUND=
5016 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5017 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5018 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5019 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 else
5031 # Is the header compilable?
5032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 $ac_includes_default
5041 #include <$ac_header>
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_header_compiler=yes
5056 else
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5060 ac_header_compiler=no
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5064 echo "${ECHO_T}$ac_header_compiler" >&6
5066 # Is the header present?
5067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 #include <$ac_header>
5076 _ACEOF
5077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null; then
5085 if test -s conftest.err; then
5086 ac_cpp_err=$ac_c_preproc_warn_flag
5087 else
5088 ac_cpp_err=
5090 else
5091 ac_cpp_err=yes
5093 if test -z "$ac_cpp_err"; then
5094 ac_header_preproc=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_header_preproc=no
5101 rm -f conftest.err conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5103 echo "${ECHO_T}$ac_header_preproc" >&6
5105 # So? What about this header?
5106 case $ac_header_compiler:$ac_header_preproc in
5107 yes:no )
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5112 ac_header_preproc=yes
5114 no:yes )
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 cat <<\_ASBOX
5129 ## ------------------------------------------ ##
5130 ## Report this to the AC_PACKAGE_NAME lists. ##
5131 ## ------------------------------------------ ##
5132 _ASBOX
5134 sed "s/^/$as_me: WARNING: /" >&2
5136 esac
5137 echo "$as_me:$LINENO: checking for $ac_header" >&5
5138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 eval "$as_ac_Header=\$ac_header_preproc"
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151 _ACEOF
5155 done
5158 for ac_header in term.h
5160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5161 echo "$as_me:$LINENO: checking for $ac_header" >&5
5162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 #include <$ac_header>
5173 _ACEOF
5174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev/null; then
5182 if test -s conftest.err; then
5183 ac_cpp_err=$ac_c_preproc_warn_flag
5184 else
5185 ac_cpp_err=
5187 else
5188 ac_cpp_err=yes
5190 if test -z "$ac_cpp_err"; then
5191 eval "$as_ac_Header=yes"
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 eval "$as_ac_Header=no"
5198 rm -f conftest.err conftest.$ac_ext
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 _ACEOF
5209 done
5211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5213 if test "${ac_cv_header_stdc+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 cat >conftest.$ac_ext <<_ACEOF
5217 /* confdefs.h. */
5218 _ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5222 #include <stdlib.h>
5223 #include <stdarg.h>
5224 #include <string.h>
5225 #include <float.h>
5228 main ()
5232 return 0;
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_cv_header_stdc=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_cv_header_stdc=no
5254 rm -f conftest.$ac_objext conftest.$ac_ext
5256 if test $ac_cv_header_stdc = yes; then
5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 #include <string.h>
5266 _ACEOF
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 $EGREP "memchr" >/dev/null 2>&1; then
5270 else
5271 ac_cv_header_stdc=no
5273 rm -f conftest*
5277 if test $ac_cv_header_stdc = yes; then
5278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <stdlib.h>
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev/null 2>&1; then
5291 else
5292 ac_cv_header_stdc=no
5294 rm -f conftest*
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then
5302 else
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #include <ctype.h>
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 #else
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #endif
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323 main ()
5325 int i;
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5329 exit(2);
5330 exit (0);
5332 _ACEOF
5333 rm -f conftest$ac_exeext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5345 else
5346 echo "$as_me: program exited with status $ac_status" >&5
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ( exit $ac_status )
5351 ac_cv_header_stdc=no
5353 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5358 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5359 if test $ac_cv_header_stdc = yes; then
5361 cat >>confdefs.h <<\_ACEOF
5362 #define STDC_HEADERS 1
5363 _ACEOF
5367 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5368 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5369 if test "${ac_cv_header_time+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 #include <sys/time.h>
5380 #include <time.h>
5383 main ()
5385 if ((struct tm *) 0)
5386 return 0;
5388 return 0;
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_header_time=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_cv_header_time=no
5410 rm -f conftest.$ac_objext conftest.$ac_ext
5412 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5413 echo "${ECHO_T}$ac_cv_header_time" >&6
5414 if test $ac_cv_header_time = yes; then
5416 cat >>confdefs.h <<\_ACEOF
5417 #define TIME_WITH_SYS_TIME 1
5418 _ACEOF
5422 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5423 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5424 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5435 main ()
5437 #ifndef sys_siglist
5438 char *p = (char *) sys_siglist;
5439 #endif
5442 return 0;
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_have_decl_sys_siglist=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ac_cv_have_decl_sys_siglist=no
5464 rm -f conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5467 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5468 if test $ac_cv_have_decl_sys_siglist = yes; then
5470 cat >>confdefs.h <<_ACEOF
5471 #define HAVE_DECL_SYS_SIGLIST 1
5472 _ACEOF
5475 else
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_DECL_SYS_SIGLIST 0
5478 _ACEOF
5484 if test $ac_cv_have_decl_sys_siglist != yes; then
5485 # For Tru64, at least:
5486 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5487 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5488 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491 cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h. */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5497 $ac_includes_default
5499 main ()
5501 #ifndef __sys_siglist
5502 char *p = (char *) __sys_siglist;
5503 #endif
5506 return 0;
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest.$ac_objext'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; }; then
5521 ac_cv_have_decl___sys_siglist=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_cv_have_decl___sys_siglist=no
5528 rm -f conftest.$ac_objext conftest.$ac_ext
5530 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5531 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5532 if test $ac_cv_have_decl___sys_siglist = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define HAVE_DECL___SYS_SIGLIST 1
5536 _ACEOF
5539 else
5540 cat >>confdefs.h <<_ACEOF
5541 #define HAVE_DECL___SYS_SIGLIST 0
5542 _ACEOF
5548 if test $ac_cv_have_decl___sys_siglist = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define sys_siglist __sys_siglist
5552 _ACEOF
5556 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5557 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5558 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 #include <sys/wait.h>
5569 #ifndef WEXITSTATUS
5570 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5571 #endif
5572 #ifndef WIFEXITED
5573 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5574 #endif
5577 main ()
5579 int s;
5580 wait (&s);
5581 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5583 return 0;
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_header_sys_wait_h=yes
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 ac_cv_header_sys_wait_h=no
5605 rm -f conftest.$ac_objext conftest.$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5608 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5609 if test $ac_cv_header_sys_wait_h = yes; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_SYS_WAIT_H 1
5613 _ACEOF
5618 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5619 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5620 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 #ifdef TIME_WITH_SYS_TIME
5630 #include <sys/time.h>
5631 #include <time.h>
5632 #else
5633 #ifdef HAVE_SYS_TIME_H
5634 #include <sys/time.h>
5635 #else
5636 #include <time.h>
5637 #endif
5638 #endif
5639 #ifdef HAVE_UTIME_H
5640 #include <utime.h>
5641 #endif
5643 main ()
5645 static struct utimbuf x; x.actime = x.modtime;
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -s conftest.$ac_objext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 emacs_cv_struct_utimbuf=yes
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 emacs_cv_struct_utimbuf=no
5669 rm -f conftest.$ac_objext conftest.$ac_ext
5671 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5672 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5673 if test $emacs_cv_struct_utimbuf = yes; then
5675 cat >>confdefs.h <<\_ACEOF
5676 #define HAVE_STRUCT_UTIMBUF 1
5677 _ACEOF
5681 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5682 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5683 if test "${ac_cv_type_signal+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 #include <signal.h>
5694 #ifdef signal
5695 # undef signal
5696 #endif
5697 #ifdef __cplusplus
5698 extern "C" void (*signal (int, void (*)(int)))(int);
5699 #else
5700 void (*signal ()) ();
5701 #endif
5704 main ()
5706 int i;
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_type_signal=void
5724 else
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_cv_type_signal=int
5730 rm -f conftest.$ac_objext conftest.$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5733 echo "${ECHO_T}$ac_cv_type_signal" >&6
5735 cat >>confdefs.h <<_ACEOF
5736 #define RETSIGTYPE $ac_cv_type_signal
5737 _ACEOF
5741 echo "$as_me:$LINENO: checking for speed_t" >&5
5742 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5743 if test "${emacs_cv_speed_t+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #include <termios.h>
5754 main ()
5756 speed_t x = 1;
5758 return 0;
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 emacs_cv_speed_t=yes
5774 else
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 emacs_cv_speed_t=no
5780 rm -f conftest.$ac_objext conftest.$ac_ext
5782 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5783 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5784 if test $emacs_cv_speed_t = yes; then
5786 cat >>confdefs.h <<\_ACEOF
5787 #define HAVE_SPEED_T 1
5788 _ACEOF
5792 echo "$as_me:$LINENO: checking for struct timeval" >&5
5793 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5794 if test "${emacs_cv_struct_timeval+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #ifdef TIME_WITH_SYS_TIME
5804 #include <sys/time.h>
5805 #include <time.h>
5806 #else
5807 #ifdef HAVE_SYS_TIME_H
5808 #include <sys/time.h>
5809 #else
5810 #include <time.h>
5811 #endif
5812 #endif
5814 main ()
5816 static struct timeval x; x.tv_sec = x.tv_usec;
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 emacs_cv_struct_timeval=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 emacs_cv_struct_timeval=no
5840 rm -f conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5843 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5844 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5845 if test $emacs_cv_struct_timeval = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_TIMEVAL 1
5849 _ACEOF
5853 echo "$as_me:$LINENO: checking for struct exception" >&5
5854 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5855 if test "${emacs_cv_struct_exception+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <math.h>
5866 main ()
5868 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5870 return 0;
5872 _ACEOF
5873 rm -f conftest.$ac_objext
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 emacs_cv_struct_exception=yes
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 emacs_cv_struct_exception=no
5892 rm -f conftest.$ac_objext conftest.$ac_ext
5894 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5895 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5896 HAVE_EXCEPTION=$emacs_cv_struct_exception
5897 if test $emacs_cv_struct_exception != yes; then
5899 cat >>confdefs.h <<\_ACEOF
5900 #define NO_MATHERR 1
5901 _ACEOF
5905 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5906 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5907 if test "${ac_cv_struct_tm+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <sys/types.h>
5917 #include <time.h>
5920 main ()
5922 struct tm *tp; tp->tm_sec;
5924 return 0;
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 ac_cv_struct_tm=time.h
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5944 ac_cv_struct_tm=sys/time.h
5946 rm -f conftest.$ac_objext conftest.$ac_ext
5948 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5949 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5950 if test $ac_cv_struct_tm = sys/time.h; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define TM_IN_SYS_TIME 1
5954 _ACEOF
5958 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5959 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5960 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 #include <$ac_cv_struct_tm>
5974 main ()
5976 static struct tm ac_aggr;
5977 if (ac_aggr.tm_zone)
5978 return 0;
5980 return 0;
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_member_struct_tm_tm_zone=yes
5996 else
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 #include <$ac_cv_struct_tm>
6011 main ()
6013 static struct tm ac_aggr;
6014 if (sizeof ac_aggr.tm_zone)
6015 return 0;
6017 return 0;
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -s conftest.$ac_objext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_member_struct_tm_tm_zone=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_member_struct_tm_tm_zone=no
6039 rm -f conftest.$ac_objext conftest.$ac_ext
6041 rm -f conftest.$ac_objext conftest.$ac_ext
6043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6044 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6045 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_STRUCT_TM_TM_ZONE 1
6049 _ACEOF
6054 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define HAVE_TM_ZONE 1
6058 _ACEOF
6060 else
6061 echo "$as_me:$LINENO: checking for tzname" >&5
6062 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6063 if test "${ac_cv_var_tzname+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <time.h>
6073 #ifndef tzname /* For SGI. */
6074 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6075 #endif
6078 main ()
6080 atoi(*tzname);
6082 return 0;
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_var_tzname=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 ac_cv_var_tzname=no
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6107 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6108 if test $ac_cv_var_tzname = yes; then
6110 cat >>confdefs.h <<\_ACEOF
6111 #define HAVE_TZNAME 1
6112 _ACEOF
6117 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6118 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6119 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <time.h>
6131 main ()
6133 static struct tm ac_aggr;
6134 if (ac_aggr.tm_gmtoff)
6135 return 0;
6137 return 0;
6139 _ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142 (eval $ac_compile) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_member_struct_tm_tm_gmtoff=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <time.h>
6166 main ()
6168 static struct tm ac_aggr;
6169 if (sizeof ac_aggr.tm_gmtoff)
6170 return 0;
6172 return 0;
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_member_struct_tm_tm_gmtoff=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_member_struct_tm_tm_gmtoff=no
6194 rm -f conftest.$ac_objext conftest.$ac_ext
6196 rm -f conftest.$ac_objext conftest.$ac_ext
6198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6199 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6200 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6202 cat >>confdefs.h <<\_ACEOF
6203 #define HAVE_TM_GMTOFF 1
6204 _ACEOF
6210 echo "$as_me:$LINENO: checking for function prototypes" >&5
6211 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6212 if test "$ac_cv_prog_cc_stdc" != no; then
6213 echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6
6216 cat >>confdefs.h <<\_ACEOF
6217 #define PROTOTYPES 1
6218 _ACEOF
6221 cat >>confdefs.h <<\_ACEOF
6222 #define __PROTOTYPES 1
6223 _ACEOF
6225 else
6226 echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6230 echo "$as_me:$LINENO: checking for working volatile" >&5
6231 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6232 if test "${ac_cv_c_volatile+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6243 main ()
6246 volatile int x;
6247 int * volatile y;
6249 return 0;
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_c_volatile=yes
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_cv_c_volatile=no
6271 rm -f conftest.$ac_objext conftest.$ac_ext
6273 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6274 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6275 if test $ac_cv_c_volatile = no; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define volatile
6279 _ACEOF
6283 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6284 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6285 if test "${ac_cv_c_const+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6296 main ()
6298 /* FIXME: Include the comments suggested by Paul. */
6299 #ifndef __cplusplus
6300 /* Ultrix mips cc rejects this. */
6301 typedef int charset[2];
6302 const charset x;
6303 /* SunOS 4.1.1 cc rejects this. */
6304 char const *const *ccp;
6305 char **p;
6306 /* NEC SVR4.0.2 mips cc rejects this. */
6307 struct point {int x, y;};
6308 static struct point const zero = {0,0};
6309 /* AIX XL C 1.02.0.0 rejects this.
6310 It does not let you subtract one const X* pointer from another in
6311 an arm of an if-expression whose if-part is not a constant
6312 expression */
6313 const char *g = "string";
6314 ccp = &g + (g ? g-g : 0);
6315 /* HPUX 7.0 cc rejects these. */
6316 ++ccp;
6317 p = (char**) ccp;
6318 ccp = (char const *const *) p;
6319 { /* SCO 3.2v4 cc rejects this. */
6320 char *t;
6321 char const *s = 0 ? (char *) 0 : (char const *) 0;
6323 *t++ = 0;
6325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6326 int x[] = {25, 17};
6327 const int *foo = &x[0];
6328 ++foo;
6330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6331 typedef const int *iptr;
6332 iptr p = 0;
6333 ++p;
6335 { /* AIX XL C 1.02.0.0 rejects this saying
6336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6337 struct s { int j; const int *ap[3]; };
6338 struct s *b; b->j = 5;
6340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6341 const int foo = 10;
6343 #endif
6346 return 0;
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 ac_cv_c_const=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_cv_c_const=no
6368 rm -f conftest.$ac_objext conftest.$ac_ext
6370 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6371 echo "${ECHO_T}$ac_cv_c_const" >&6
6372 if test $ac_cv_c_const = no; then
6374 cat >>confdefs.h <<\_ACEOF
6375 #define const
6376 _ACEOF
6380 echo "$as_me:$LINENO: checking for void * support" >&5
6381 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6382 if test "${emacs_cv_void_star+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6393 main ()
6395 void * foo;
6397 return 0;
6399 _ACEOF
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 emacs_cv_void_star=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 emacs_cv_void_star=no
6419 rm -f conftest.$ac_objext conftest.$ac_ext
6421 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6422 echo "${ECHO_T}$emacs_cv_void_star" >&6
6423 if test $emacs_cv_void_star = yes; then
6424 cat >>confdefs.h <<\_ACEOF
6425 #define POINTER_TYPE void
6426 _ACEOF
6428 else
6429 cat >>confdefs.h <<\_ACEOF
6430 #define POINTER_TYPE char
6431 _ACEOF
6437 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6438 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6439 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6440 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 cat >conftest.make <<\_ACEOF
6444 all:
6445 @echo 'ac_maketemp="$(MAKE)"'
6446 _ACEOF
6447 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6448 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6449 if test -n "$ac_maketemp"; then
6450 eval ac_cv_prog_make_${ac_make}_set=yes
6451 else
6452 eval ac_cv_prog_make_${ac_make}_set=no
6454 rm -f conftest.make
6456 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6457 echo "$as_me:$LINENO: result: yes" >&5
6458 echo "${ECHO_T}yes" >&6
6459 SET_MAKE=
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6463 SET_MAKE="MAKE=${MAKE-make}"
6467 echo "$as_me:$LINENO: checking for long file names" >&5
6468 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6469 if test "${ac_cv_sys_long_file_names+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472 ac_cv_sys_long_file_names=yes
6473 # Test for long file names in all the places we know might matter:
6474 # . the current directory, where building will happen
6475 # $prefix/lib where we will be installing things
6476 # $exec_prefix/lib likewise
6477 # eval it to expand exec_prefix.
6478 # $TMPDIR if set, where it might want to write temporary files
6479 # if $TMPDIR is not set:
6480 # /tmp where it might want to write temporary files
6481 # /var/tmp likewise
6482 # /usr/tmp likewise
6483 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6484 ac_tmpdirs=$TMPDIR
6485 else
6486 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6488 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6489 test -d $ac_dir || continue
6490 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6491 ac_xdir=$ac_dir/cf$$
6492 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6493 ac_tf1=$ac_xdir/conftest9012345
6494 ac_tf2=$ac_xdir/conftest9012346
6495 (echo 1 >$ac_tf1) 2>/dev/null
6496 (echo 2 >$ac_tf2) 2>/dev/null
6497 ac_val=`cat $ac_tf1 2>/dev/null`
6498 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6499 ac_cv_sys_long_file_names=no
6500 rm -rf $ac_xdir 2>/dev/null
6501 break
6503 rm -rf $ac_xdir 2>/dev/null
6504 done
6506 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6507 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6508 if test $ac_cv_sys_long_file_names = yes; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define HAVE_LONG_FILE_NAMES 1
6512 _ACEOF
6517 #### Choose a window system.
6519 echo "$as_me:$LINENO: checking for X" >&5
6520 echo $ECHO_N "checking for X... $ECHO_C" >&6
6523 # Check whether --with-x or --without-x was given.
6524 if test "${with_x+set}" = set; then
6525 withval="$with_x"
6528 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6529 if test "x$with_x" = xno; then
6530 # The user explicitly disabled X.
6531 have_x=disabled
6532 else
6533 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6534 # Both variables are already set.
6535 have_x=yes
6536 else
6537 if test "${ac_cv_have_x+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540 # One or both of the vars are not set, and there is no cached value.
6541 ac_x_includes=no ac_x_libraries=no
6542 rm -fr conftest.dir
6543 if mkdir conftest.dir; then
6544 cd conftest.dir
6545 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6546 cat >Imakefile <<'_ACEOF'
6547 acfindx:
6548 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6549 _ACEOF
6550 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6552 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6553 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6554 for ac_extension in a so sl; do
6555 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6556 test -f $ac_im_libdir/libX11.$ac_extension; then
6557 ac_im_usrlibdir=$ac_im_libdir; break
6559 done
6560 # Screen out bogus values from the imake configuration. They are
6561 # bogus both because they are the default anyway, and because
6562 # using them would break gcc on systems where it needs fixed includes.
6563 case $ac_im_incroot in
6564 /usr/include) ;;
6565 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6566 esac
6567 case $ac_im_usrlibdir in
6568 /usr/lib | /lib) ;;
6569 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6570 esac
6572 cd ..
6573 rm -fr conftest.dir
6576 # Standard set of common directories for X headers.
6577 # Check X11 before X11Rn because it is often a symlink to the current release.
6578 ac_x_header_dirs='
6579 /usr/X11/include
6580 /usr/X11R6/include
6581 /usr/X11R5/include
6582 /usr/X11R4/include
6584 /usr/include/X11
6585 /usr/include/X11R6
6586 /usr/include/X11R5
6587 /usr/include/X11R4
6589 /usr/local/X11/include
6590 /usr/local/X11R6/include
6591 /usr/local/X11R5/include
6592 /usr/local/X11R4/include
6594 /usr/local/include/X11
6595 /usr/local/include/X11R6
6596 /usr/local/include/X11R5
6597 /usr/local/include/X11R4
6599 /usr/X386/include
6600 /usr/x386/include
6601 /usr/XFree86/include/X11
6603 /usr/include
6604 /usr/local/include
6605 /usr/unsupported/include
6606 /usr/athena/include
6607 /usr/local/x11r5/include
6608 /usr/lpp/Xamples/include
6610 /usr/openwin/include
6611 /usr/openwin/share/include'
6613 if test "$ac_x_includes" = no; then
6614 # Guess where to find include files, by looking for Intrinsic.h.
6615 # First, try using that file with no special directory specified.
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <X11/Intrinsic.h>
6623 _ACEOF
6624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } >/dev/null; then
6632 if test -s conftest.err; then
6633 ac_cpp_err=$ac_c_preproc_warn_flag
6634 else
6635 ac_cpp_err=
6637 else
6638 ac_cpp_err=yes
6640 if test -z "$ac_cpp_err"; then
6641 # We can compile using X headers with no special include directory.
6642 ac_x_includes=
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 for ac_dir in $ac_x_header_dirs; do
6648 if test -r "$ac_dir/X11/Intrinsic.h"; then
6649 ac_x_includes=$ac_dir
6650 break
6652 done
6654 rm -f conftest.err conftest.$ac_ext
6655 fi # $ac_x_includes = no
6657 if test "$ac_x_libraries" = no; then
6658 # Check for the libraries.
6659 # See if we find them without any special options.
6660 # Don't add to $LIBS permanently.
6661 ac_save_LIBS=$LIBS
6662 LIBS="-lXt $LIBS"
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h. */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <X11/Intrinsic.h>
6671 main ()
6673 XtMalloc (0)
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -s conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 LIBS=$ac_save_LIBS
6691 # We can link X programs with no special library path.
6692 ac_x_libraries=
6693 else
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 LIBS=$ac_save_LIBS
6698 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6700 # Don't even attempt the hair of trying to link an X program!
6701 for ac_extension in a so sl; do
6702 if test -r $ac_dir/libXt.$ac_extension; then
6703 ac_x_libraries=$ac_dir
6704 break 2
6706 done
6707 done
6709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6710 fi # $ac_x_libraries = no
6712 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6713 # Didn't find X anywhere. Cache the known absence of X.
6714 ac_cv_have_x="have_x=no"
6715 else
6716 # Record where we found X for the cache.
6717 ac_cv_have_x="have_x=yes \
6718 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6723 eval "$ac_cv_have_x"
6724 fi # $with_x != no
6726 if test "$have_x" != yes; then
6727 echo "$as_me:$LINENO: result: $have_x" >&5
6728 echo "${ECHO_T}$have_x" >&6
6729 no_x=yes
6730 else
6731 # If each of the values was on the command line, it overrides each guess.
6732 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6733 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6734 # Update the cache value to reflect the command line values.
6735 ac_cv_have_x="have_x=yes \
6736 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6737 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6738 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6741 if test "$no_x" = yes; then
6742 window_system=none
6743 else
6744 window_system=x11
6747 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6748 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6749 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6750 x_default_search_path=""
6751 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6752 x_search_path="\
6753 ${x_library}/X11/%L/%T/%N%C%S:\
6754 ${x_library}/X11/%l/%T/%N%C%S:\
6755 ${x_library}/X11/%T/%N%C%S:\
6756 ${x_library}/X11/%L/%T/%N%S:\
6757 ${x_library}/X11/%l/%T/%N%S:\
6758 ${x_library}/X11/%T/%N%S"
6759 if test x"${x_default_search_path}" = x; then
6760 x_default_search_path=${x_search_path}
6761 else
6762 x_default_search_path="${x_search_path}:${x_default_search_path}"
6764 done
6766 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6767 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6770 if test x"${x_includes}" = x; then
6771 bitmapdir=/usr/include/X11/bitmaps
6772 else
6773 # accumulate include directories that have X11 bitmap subdirectories
6774 bmd_acc="dummyval"
6775 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6776 if test -d "${bmd}/X11/bitmaps"; then
6777 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6779 if test -d "${bmd}/bitmaps"; then
6780 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6782 done
6783 if test ${bmd_acc} != "dummyval"; then
6784 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6788 case "${window_system}" in
6789 x11 )
6790 HAVE_X_WINDOWS=yes
6791 HAVE_X11=yes
6792 case "${with_x_toolkit}" in
6793 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6794 motif ) USE_X_TOOLKIT=MOTIF ;;
6795 gtk ) with_gtk=yes
6796 USE_X_TOOLKIT=none ;;
6797 no ) USE_X_TOOLKIT=none ;;
6798 * ) USE_X_TOOLKIT=maybe ;;
6799 esac
6801 none )
6802 HAVE_X_WINDOWS=no
6803 HAVE_X11=no
6804 USE_X_TOOLKIT=none
6806 esac
6808 ### If we're using X11, we should use the X menu package.
6809 HAVE_MENUS=no
6810 case ${HAVE_X11} in
6811 yes ) HAVE_MENUS=yes ;;
6812 esac
6814 if test "${opsys}" = "hpux9"; then
6815 case "${x_libraries}" in
6816 *X11R4* )
6817 opsysfile="s/hpux9-x11r4.h"
6819 esac
6822 if test "${opsys}" = "hpux9shr"; then
6823 case "${x_libraries}" in
6824 *X11R4* )
6825 opsysfile="s/hpux9shxr4.h"
6827 esac
6830 ### Compute the unexec source name from the object name.
6831 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6833 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6834 # Assume not, until told otherwise.
6835 GNU_MALLOC=yes
6836 doug_lea_malloc=yes
6837 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6838 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6839 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
6849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6850 #define malloc_get_state innocuous_malloc_get_state
6852 /* System header to define __stub macros and hopefully few prototypes,
6853 which can conflict with char malloc_get_state (); below.
6854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6855 <limits.h> exists even on freestanding compilers. */
6857 #ifdef __STDC__
6858 # include <limits.h>
6859 #else
6860 # include <assert.h>
6861 #endif
6863 #undef malloc_get_state
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 #ifdef __cplusplus
6867 extern "C"
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char malloc_get_state ();
6873 /* The GNU C library defines this for functions which it implements
6874 to always fail with ENOSYS. Some functions are actually named
6875 something starting with __ and the normal name is an alias. */
6876 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6877 choke me
6878 #else
6879 char (*f) () = malloc_get_state;
6880 #endif
6881 #ifdef __cplusplus
6883 #endif
6886 main ()
6888 return f != malloc_get_state;
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 ac_cv_func_malloc_get_state=yes
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_func_malloc_get_state=no
6912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6914 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6915 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6916 if test $ac_cv_func_malloc_get_state = yes; then
6918 else
6919 doug_lea_malloc=no
6922 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6923 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6924 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
6934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6935 #define malloc_set_state innocuous_malloc_set_state
6937 /* System header to define __stub macros and hopefully few prototypes,
6938 which can conflict with char malloc_set_state (); below.
6939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 <limits.h> exists even on freestanding compilers. */
6942 #ifdef __STDC__
6943 # include <limits.h>
6944 #else
6945 # include <assert.h>
6946 #endif
6948 #undef malloc_set_state
6950 /* Override any gcc2 internal prototype to avoid an error. */
6951 #ifdef __cplusplus
6952 extern "C"
6954 #endif
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char malloc_set_state ();
6958 /* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6962 choke me
6963 #else
6964 char (*f) () = malloc_set_state;
6965 #endif
6966 #ifdef __cplusplus
6968 #endif
6971 main ()
6973 return f != malloc_set_state;
6975 return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_func_malloc_set_state=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_cv_func_malloc_set_state=no
6997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7000 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7001 if test $ac_cv_func_malloc_set_state = yes; then
7003 else
7004 doug_lea_malloc=no
7007 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7008 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7009 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 extern void (* __after_morecore_hook)();
7020 main ()
7022 __after_morecore_hook = 0
7024 return 0;
7026 _ACEOF
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 emacs_cv_var___after_morecore_hook=yes
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 emacs_cv_var___after_morecore_hook=no
7046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7048 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7049 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7050 if test $emacs_cv_var___after_morecore_hook = no; then
7051 doug_lea_malloc=no
7053 if test "${system_malloc}" = "yes"; then
7054 GNU_MALLOC=no
7055 GNU_MALLOC_reason="
7056 (The GNU allocators don't work with this system configuration.)"
7058 if test "$doug_lea_malloc" = "yes" ; then
7059 if test "$GNU_MALLOC" = yes ; then
7060 GNU_MALLOC_reason="
7061 (Using Doug Lea's new malloc from the GNU C Library.)"
7064 cat >>confdefs.h <<\_ACEOF
7065 #define DOUG_LEA_MALLOC 1
7066 _ACEOF
7070 if test x"${REL_ALLOC}" = x; then
7071 REL_ALLOC=${GNU_MALLOC}
7077 for ac_header in stdlib.h unistd.h
7079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081 echo "$as_me:$LINENO: checking for $ac_header" >&5
7082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088 else
7089 # Is the header compilable?
7090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7099 #include <$ac_header>
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103 (eval $ac_compile) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 ac_header_compiler=yes
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_header_compiler=no
7120 rm -f conftest.$ac_objext conftest.$ac_ext
7121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122 echo "${ECHO_T}$ac_header_compiler" >&6
7124 # Is the header present?
7125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7127 cat >conftest.$ac_ext <<_ACEOF
7128 /* confdefs.h. */
7129 _ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7133 #include <$ac_header>
7134 _ACEOF
7135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev/null; then
7143 if test -s conftest.err; then
7144 ac_cpp_err=$ac_c_preproc_warn_flag
7145 else
7146 ac_cpp_err=
7148 else
7149 ac_cpp_err=yes
7151 if test -z "$ac_cpp_err"; then
7152 ac_header_preproc=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_header_preproc=no
7159 rm -f conftest.err conftest.$ac_ext
7160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7161 echo "${ECHO_T}$ac_header_preproc" >&6
7163 # So? What about this header?
7164 case $ac_header_compiler:$ac_header_preproc in
7165 yes:no )
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7170 ac_header_preproc=yes
7172 no:yes )
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7186 cat <<\_ASBOX
7187 ## ------------------------------------------ ##
7188 ## Report this to the AC_PACKAGE_NAME lists. ##
7189 ## ------------------------------------------ ##
7190 _ASBOX
7192 sed "s/^/$as_me: WARNING: /" >&2
7194 esac
7195 echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 eval "$as_ac_Header=\$ac_header_preproc"
7202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209 _ACEOF
7213 done
7216 for ac_func in getpagesize
7218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7219 echo "$as_me:$LINENO: checking for $ac_func" >&5
7220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_var+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 cat >conftest.$ac_ext <<_ACEOF
7225 /* confdefs.h. */
7226 _ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7232 #define $ac_func innocuous_$ac_func
7234 /* System header to define __stub macros and hopefully few prototypes,
7235 which can conflict with char $ac_func (); below.
7236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 <limits.h> exists even on freestanding compilers. */
7239 #ifdef __STDC__
7240 # include <limits.h>
7241 #else
7242 # include <assert.h>
7243 #endif
7245 #undef $ac_func
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 #ifdef __cplusplus
7249 extern "C"
7251 #endif
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254 char $ac_func ();
7255 /* The GNU C library defines this for functions which it implements
7256 to always fail with ENOSYS. Some functions are actually named
7257 something starting with __ and the normal name is an alias. */
7258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7259 choke me
7260 #else
7261 char (*f) () = $ac_func;
7262 #endif
7263 #ifdef __cplusplus
7265 #endif
7268 main ()
7270 return f != $ac_func;
7272 return 0;
7274 _ACEOF
7275 rm -f conftest.$ac_objext conftest$ac_exeext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -s conftest$ac_exeext'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 eval "$as_ac_var=yes"
7288 else
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 eval "$as_ac_var=no"
7294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7298 if test `eval echo '${'$as_ac_var'}'` = yes; then
7299 cat >>confdefs.h <<_ACEOF
7300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7301 _ACEOF
7304 done
7306 echo "$as_me:$LINENO: checking for working mmap" >&5
7307 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 if test "$cross_compiling" = yes; then
7312 ac_cv_func_mmap_fixed_mapped=no
7313 else
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h. */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 /* malloc might have been renamed as rpl_malloc. */
7322 #undef malloc
7324 /* Thanks to Mike Haertel and Jim Avera for this test.
7325 Here is a matrix of mmap possibilities:
7326 mmap private not fixed
7327 mmap private fixed at somewhere currently unmapped
7328 mmap private fixed at somewhere already mapped
7329 mmap shared not fixed
7330 mmap shared fixed at somewhere currently unmapped
7331 mmap shared fixed at somewhere already mapped
7332 For private mappings, we should verify that changes cannot be read()
7333 back from the file, nor mmap's back from the file at a different
7334 address. (There have been systems where private was not correctly
7335 implemented like the infamous i386 svr4.0, and systems where the
7336 VM page cache was not coherent with the file system buffer cache
7337 like early versions of FreeBSD and possibly contemporary NetBSD.)
7338 For shared mappings, we should conversely verify that changes get
7339 propagated back to all the places they're supposed to be.
7341 Grep wants private fixed already mapped.
7342 The main things grep needs to know about mmap are:
7343 * does it exist and is it safe to write into the mmap'd area
7344 * how to use it (BSD variants) */
7346 #include <fcntl.h>
7347 #include <sys/mman.h>
7349 #if !STDC_HEADERS && !HAVE_STDLIB_H
7350 char *malloc ();
7351 #endif
7353 /* This mess was copied from the GNU getpagesize.h. */
7354 #if !HAVE_GETPAGESIZE
7355 /* Assume that all systems that can run configure have sys/param.h. */
7356 # if !HAVE_SYS_PARAM_H
7357 # define HAVE_SYS_PARAM_H 1
7358 # endif
7360 # ifdef _SC_PAGESIZE
7361 # define getpagesize() sysconf(_SC_PAGESIZE)
7362 # else /* no _SC_PAGESIZE */
7363 # if HAVE_SYS_PARAM_H
7364 # include <sys/param.h>
7365 # ifdef EXEC_PAGESIZE
7366 # define getpagesize() EXEC_PAGESIZE
7367 # else /* no EXEC_PAGESIZE */
7368 # ifdef NBPG
7369 # define getpagesize() NBPG * CLSIZE
7370 # ifndef CLSIZE
7371 # define CLSIZE 1
7372 # endif /* no CLSIZE */
7373 # else /* no NBPG */
7374 # ifdef NBPC
7375 # define getpagesize() NBPC
7376 # else /* no NBPC */
7377 # ifdef PAGESIZE
7378 # define getpagesize() PAGESIZE
7379 # endif /* PAGESIZE */
7380 # endif /* no NBPC */
7381 # endif /* no NBPG */
7382 # endif /* no EXEC_PAGESIZE */
7383 # else /* no HAVE_SYS_PARAM_H */
7384 # define getpagesize() 8192 /* punt totally */
7385 # endif /* no HAVE_SYS_PARAM_H */
7386 # endif /* no _SC_PAGESIZE */
7388 #endif /* no HAVE_GETPAGESIZE */
7391 main ()
7393 char *data, *data2, *data3;
7394 int i, pagesize;
7395 int fd;
7397 pagesize = getpagesize ();
7399 /* First, make a file with some known garbage in it. */
7400 data = (char *) malloc (pagesize);
7401 if (!data)
7402 exit (1);
7403 for (i = 0; i < pagesize; ++i)
7404 *(data + i) = rand ();
7405 umask (0);
7406 fd = creat ("conftest.mmap", 0600);
7407 if (fd < 0)
7408 exit (1);
7409 if (write (fd, data, pagesize) != pagesize)
7410 exit (1);
7411 close (fd);
7413 /* Next, try to mmap the file at a fixed address which already has
7414 something else allocated at it. If we can, also make sure that
7415 we see the same garbage. */
7416 fd = open ("conftest.mmap", O_RDWR);
7417 if (fd < 0)
7418 exit (1);
7419 data2 = (char *) malloc (2 * pagesize);
7420 if (!data2)
7421 exit (1);
7422 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7423 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7424 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7425 exit (1);
7426 for (i = 0; i < pagesize; ++i)
7427 if (*(data + i) != *(data2 + i))
7428 exit (1);
7430 /* Finally, make sure that changes to the mapped area do not
7431 percolate back to the file as seen by read(). (This is a bug on
7432 some variants of i386 svr4.0.) */
7433 for (i = 0; i < pagesize; ++i)
7434 *(data2 + i) = *(data2 + i) + 1;
7435 data3 = (char *) malloc (pagesize);
7436 if (!data3)
7437 exit (1);
7438 if (read (fd, data3, pagesize) != pagesize)
7439 exit (1);
7440 for (i = 0; i < pagesize; ++i)
7441 if (*(data + i) != *(data3 + i))
7442 exit (1);
7443 close (fd);
7444 exit (0);
7446 _ACEOF
7447 rm -f conftest$ac_exeext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449 (eval $ac_link) 2>&5
7450 ac_status=$?
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 ac_cv_func_mmap_fixed_mapped=yes
7459 else
7460 echo "$as_me: program exited with status $ac_status" >&5
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 ( exit $ac_status )
7465 ac_cv_func_mmap_fixed_mapped=no
7467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7471 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7472 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_MMAP 1
7476 _ACEOF
7479 rm -f conftest.mmap
7481 if test $use_mmap_for_buffers = yes; then
7482 REL_ALLOC=no
7485 LIBS="$libsrc_libs $LIBS"
7488 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7489 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7490 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 ac_check_lib_save_LIBS=$LIBS
7494 LIBS="-ldnet $LIBS"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h. */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 /* We use char because int might match the return type of a gcc2
7507 builtin and then its argument prototype would still apply. */
7508 char dnet_ntoa ();
7510 main ()
7512 dnet_ntoa ();
7514 return 0;
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_dnet_dnet_ntoa=yes
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_lib_dnet_dnet_ntoa=no
7536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7537 LIBS=$ac_check_lib_save_LIBS
7539 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7540 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7541 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define HAVE_LIBDNET 1
7544 _ACEOF
7546 LIBS="-ldnet $LIBS"
7551 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7552 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7553 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-lXbsd $LIBS"
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7567 main ()
7569 main ();
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_lib_Xbsd_main=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_lib_Xbsd_main=no
7593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7594 LIBS=$ac_check_lib_save_LIBS
7596 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7597 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7598 if test $ac_cv_lib_Xbsd_main = yes; then
7599 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7604 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7605 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7606 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 ac_check_lib_save_LIBS=$LIBS
7610 LIBS="-lpthreads $LIBS"
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7618 /* Override any gcc2 internal prototype to avoid an error. */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7624 char cma_open ();
7626 main ()
7628 cma_open ();
7630 return 0;
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_lib_pthreads_cma_open=yes
7646 else
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_cv_lib_pthreads_cma_open=no
7652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7655 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7656 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7657 if test $ac_cv_lib_pthreads_cma_open = yes; then
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_LIBPTHREADS 1
7660 _ACEOF
7662 LIBS="-lpthreads $LIBS"
7667 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7668 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7669 if test -d /usr/X386/include; then
7670 HAVE_XFREE386=yes
7671 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7672 else
7673 HAVE_XFREE386=no
7675 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7676 echo "${ECHO_T}$HAVE_XFREE386" >&6
7679 case ${host_os} in
7680 aix*)
7681 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7682 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7683 if test "${gdb_cv_bigtoc+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7687 case $GCC in
7688 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7689 *) gdb_cv_bigtoc=-bbigtoc ;;
7690 esac
7692 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7701 main ()
7703 int i;
7705 return 0;
7707 _ACEOF
7708 rm -f conftest.$ac_objext conftest$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 gdb_cv_bigtoc=
7727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7730 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7731 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7733 esac
7735 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7736 # used for the tests that follow. We set them back to REAL_CFLAGS and
7737 # REAL_CPPFLAGS later on.
7739 REAL_CPPFLAGS="$CPPFLAGS"
7741 if test "${HAVE_X11}" = "yes"; then
7742 DEFS="$C_SWITCH_X_SITE $DEFS"
7743 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7744 LIBS="$LIBX $LIBS"
7745 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7746 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7748 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7749 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7750 # but it's more convenient here to set LD_RUN_PATH
7751 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7752 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7753 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7754 export LD_RUN_PATH
7757 if test "${opsys}" = "gnu-linux"; then
7758 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7759 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7760 cat >conftest.$ac_ext <<_ACEOF
7761 /* confdefs.h. */
7762 _ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7768 main ()
7770 XOpenDisplay ("foo");
7772 return 0;
7774 _ACEOF
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest$ac_exeext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 (eval $ac_try) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 xlinux_first_failure=no
7788 else
7789 echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 xlinux_first_failure=yes
7794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7795 if test "${xlinux_first_failure}" = "yes"; then
7796 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7797 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7798 OLD_CPPFLAGS="$CPPFLAGS"
7799 OLD_LIBS="$LIBS"
7800 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7801 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7802 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7803 LIBS="$LIBS -b i486-linuxaout"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7812 main ()
7814 XOpenDisplay ("foo");
7816 return 0;
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -s conftest$ac_exeext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7831 xlinux_second_failure=no
7832 else
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 xlinux_second_failure=yes
7838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7839 if test "${xlinux_second_failure}" = "yes"; then
7840 # If we get the same failure with -b, there is no use adding -b.
7841 # So take it out. This plays safe.
7842 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7843 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7844 CPPFLAGS="$OLD_CPPFLAGS"
7845 LIBS="$OLD_LIBS"
7846 echo "$as_me:$LINENO: result: no" >&5
7847 echo "${ECHO_T}no" >&6
7848 else
7849 echo "$as_me:$LINENO: result: yes" >&5
7850 echo "${ECHO_T}yes" >&6
7852 else
7853 echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7858 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7859 # header files included from there.
7860 echo "$as_me:$LINENO: checking for Xkb" >&5
7861 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <X11/Xlib.h>
7869 #include <X11/XKBlib.h>
7871 main ()
7873 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880 (eval $ac_link) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest$ac_exeext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 emacs_xkb=yes
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7895 emacs_xkb=no
7897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7898 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7899 echo "${ECHO_T}$emacs_xkb" >&6
7900 if test $emacs_xkb = yes; then
7902 cat >>confdefs.h <<\_ACEOF
7903 #define HAVE_XKBGETKEYBOARD 1
7904 _ACEOF
7912 for ac_func in XrmSetDatabase XScreenResourceString \
7913 XScreenNumberOfScreen XSetWMProtocols
7915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7916 echo "$as_me:$LINENO: checking for $ac_func" >&5
7917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7918 if eval "test \"\${$as_ac_var+set}\" = set"; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7929 #define $ac_func innocuous_$ac_func
7931 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char $ac_func (); below.
7933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 <limits.h> exists even on freestanding compilers. */
7936 #ifdef __STDC__
7937 # include <limits.h>
7938 #else
7939 # include <assert.h>
7940 #endif
7942 #undef $ac_func
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 #ifdef __cplusplus
7946 extern "C"
7948 #endif
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7951 char $ac_func ();
7952 /* The GNU C library defines this for functions which it implements
7953 to always fail with ENOSYS. Some functions are actually named
7954 something starting with __ and the normal name is an alias. */
7955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7956 choke me
7957 #else
7958 char (*f) () = $ac_func;
7959 #endif
7960 #ifdef __cplusplus
7962 #endif
7965 main ()
7967 return f != $ac_func;
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 eval "$as_ac_var=yes"
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 eval "$as_ac_var=no"
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7995 if test `eval echo '${'$as_ac_var'}'` = yes; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7998 _ACEOF
8001 done
8005 if test "${window_system}" = "x11"; then
8006 echo "$as_me:$LINENO: checking X11 version 6" >&5
8007 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8008 if test "${emacs_cv_x11_version_6+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h. */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 #include <X11/Xlib.h>
8019 main ()
8021 #if XlibSpecificationRelease < 6
8022 fail;
8023 #endif
8026 return 0;
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8031 (eval $ac_link) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 emacs_cv_x11_version_6=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 emacs_cv_x11_version_6=no
8048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8051 if test $emacs_cv_x11_version_6 = yes; then
8052 echo "$as_me:$LINENO: result: 6 or newer" >&5
8053 echo "${ECHO_T}6 or newer" >&6
8055 cat >>confdefs.h <<\_ACEOF
8056 #define HAVE_X11R6 1
8057 _ACEOF
8059 else
8060 echo "$as_me:$LINENO: result: before 6" >&5
8061 echo "${ECHO_T}before 6" >&6
8065 if test "${window_system}" = "x11"; then
8066 echo "$as_me:$LINENO: checking X11 version 5" >&5
8067 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8068 if test "${emacs_cv_x11_version_5+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <X11/Xlib.h>
8079 main ()
8081 #if XlibSpecificationRelease < 5
8082 fail;
8083 #endif
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -s conftest$ac_exeext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 (eval $ac_try) 2>&5
8098 ac_status=$?
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 emacs_cv_x11_version_5=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 emacs_cv_x11_version_5=no
8108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8111 if test $emacs_cv_x11_version_5 = yes; then
8112 echo "$as_me:$LINENO: result: 5 or newer" >&5
8113 echo "${ECHO_T}5 or newer" >&6
8114 HAVE_X11R5=yes
8116 cat >>confdefs.h <<\_ACEOF
8117 #define HAVE_X11R5 1
8118 _ACEOF
8120 else
8121 HAVE_X11R5=no
8122 echo "$as_me:$LINENO: result: before 5" >&5
8123 echo "${ECHO_T}before 5" >&6
8129 HAVE_GTK=no
8130 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8131 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8132 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8133 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8134 { (exit 1); exit 1; }; };
8136 GLIB_REQUIRED=2.0.1
8137 GTK_REQUIRED=2.0.1
8138 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8140 if test "X${with_pkg_config_prog}" != X; then
8141 PKG_CONFIG="${with_pkg_config_prog}"
8144 succeeded=no
8146 if test -z "$PKG_CONFIG"; then
8147 # Extract the first word of "pkg-config", so it can be a program name with args.
8148 set dummy pkg-config; ac_word=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154 case $PKG_CONFIG in
8155 [\\/]* | ?:[\\/]*)
8156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8170 done
8171 done
8173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8175 esac
8177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8179 if test -n "$PKG_CONFIG"; then
8180 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8181 echo "${ECHO_T}$PKG_CONFIG" >&6
8182 else
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8189 if test "$PKG_CONFIG" = "no" ; then
8190 echo "*** The pkg-config script could not be found. Make sure it is"
8191 echo "*** in your path, or give the full path to pkg-config with"
8192 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8193 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8194 else
8195 PKG_CONFIG_MIN_VERSION=0.9.0
8196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8197 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8198 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8200 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8201 echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6
8203 succeeded=yes
8205 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8206 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8207 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8208 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8209 echo "${ECHO_T}$GTK_CFLAGS" >&6
8211 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8212 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8213 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8214 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8215 echo "${ECHO_T}$GTK_LIBS" >&6
8216 else
8217 GTK_CFLAGS=""
8218 GTK_LIBS=""
8219 ## If we have a custom action on failure, don't print errors, but
8220 ## do set a variable so people can do so.
8221 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8222 echo $GTK_PKG_ERRORS
8227 else
8228 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8229 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8233 if test $succeeded = yes; then
8235 else
8236 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8237 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8238 { (exit 1); exit 1; }; }
8243 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8244 HAVE_GTK=yes
8246 cat >>confdefs.h <<\_ACEOF
8247 #define HAVE_GTK 1
8248 _ACEOF
8250 USE_X_TOOLKIT=none
8252 with_toolkit_scroll_bars=yes
8255 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8256 if test x"${HAVE_X11R5}" = xyes; then
8257 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8258 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8259 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 else
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8269 #include <X11/Intrinsic.h>
8270 #include <X11/Xaw/Simple.h>
8272 main ()
8276 return 0;
8278 _ACEOF
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 emacs_cv_x11_version_5_with_xaw=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 emacs_cv_x11_version_5_with_xaw=no
8298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8302 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8303 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8304 USE_X_TOOLKIT=LUCID
8305 else
8306 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8307 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8308 USE_X_TOOLKIT=none
8310 else
8311 USE_X_TOOLKIT=none
8315 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8317 if test "${USE_X_TOOLKIT}" != "none"; then
8318 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8319 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8320 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <X11/Intrinsic.h>
8331 main ()
8333 #if XtSpecificationRelease < 6
8334 fail;
8335 #endif
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343 (eval $ac_link) 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 (eval $ac_try) 2>&5
8350 ac_status=$?
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 emacs_cv_x11_toolkit_version_6=yes
8354 else
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8358 emacs_cv_x11_toolkit_version_6=no
8360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8363 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8364 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8365 echo "$as_me:$LINENO: result: 6 or newer" >&5
8366 echo "${ECHO_T}6 or newer" >&6
8368 cat >>confdefs.h <<\_ACEOF
8369 #define HAVE_X11XTR6 1
8370 _ACEOF
8372 else
8373 echo "$as_me:$LINENO: result: before 6" >&5
8374 echo "${ECHO_T}before 6" >&6
8377 OLDLIBS="$LIBS"
8378 if test x$HAVE_X11XTR6 = xyes; then
8379 LIBS="-lXt -lSM -lICE $LIBS"
8380 else
8381 LIBS="-lXt $LIBS"
8384 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8385 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8386 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lXmu $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 #ifdef __cplusplus
8400 extern "C"
8401 #endif
8402 /* We use char because int might match the return type of a gcc2
8403 builtin and then its argument prototype would still apply. */
8404 char XmuConvertStandardSelection ();
8406 main ()
8408 XmuConvertStandardSelection ();
8410 return 0;
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415 (eval $ac_link) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8426 else
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8436 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8437 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_LIBXMU 1
8440 _ACEOF
8442 LIBS="-lXmu $LIBS"
8446 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8449 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8450 if test "${HAVE_X11}" = "yes"; then
8451 if test "${USE_X_TOOLKIT}" != "none"; then
8453 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8454 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8455 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 else
8458 ac_check_lib_save_LIBS=$LIBS
8459 LIBS="-lXext $LIBS"
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char XShapeQueryExtension ();
8475 main ()
8477 XShapeQueryExtension ();
8479 return 0;
8481 _ACEOF
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_lib_Xext_XShapeQueryExtension=yes
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_lib_Xext_XShapeQueryExtension=no
8501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8505 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8506 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_LIBXEXT 1
8509 _ACEOF
8511 LIBS="-lXext $LIBS"
8518 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8519 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8520 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8521 if test "${emacs_cv_lesstif+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 # We put this in CFLAGS temporarily to precede other -I options
8525 # that might be in CFLAGS temporarily.
8526 # We put this in CPPFLAGS where it precedes the other -I options.
8527 OLD_CPPFLAGS=$CPPFLAGS
8528 OLD_CFLAGS=$CFLAGS
8529 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8530 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8531 cat >conftest.$ac_ext <<_ACEOF
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8539 main ()
8541 int x = 5;
8543 return 0;
8545 _ACEOF
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 emacs_cv_lesstif=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 emacs_cv_lesstif=no
8565 rm -f conftest.$ac_objext conftest.$ac_ext
8567 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8568 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8569 if test $emacs_cv_lesstif = yes; then
8570 # Make sure this -I option remains in CPPFLAGS after it is set
8571 # back to REAL_CPPFLAGS.
8572 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8573 # have those other -I options anyway. Ultimately, having this
8574 # directory ultimately in CPPFLAGS will be enough.
8575 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8576 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8577 else
8578 CFLAGS=$OLD_CFLAGS
8579 CPPFLAGS=$OLD_CPPFLAGS
8581 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8582 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8583 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 #include <Xm/Xm.h>
8594 main ()
8596 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8597 int x = 5;
8598 #else
8599 Motif version prior to 2.1.
8600 #endif
8602 return 0;
8604 _ACEOF
8605 rm -f conftest.$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 emacs_cv_motif_version_2_1=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 emacs_cv_motif_version_2_1=no
8624 rm -f conftest.$ac_objext conftest.$ac_ext
8626 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8627 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8628 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8629 if test $emacs_cv_motif_version_2_1 = yes; then
8630 HAVE_LIBXP=no
8632 cat >>confdefs.h <<\_ACEOF
8633 #define HAVE_MOTIF_2_1 1
8634 _ACEOF
8636 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8637 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8638 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lXp $LIBS"
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8651 #ifdef __cplusplus
8652 extern "C"
8653 #endif
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8656 char XpCreateContext ();
8658 main ()
8660 XpCreateContext ();
8662 return 0;
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -s conftest$ac_exeext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
8677 ac_cv_lib_Xp_XpCreateContext=yes
8678 else
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_cv_lib_Xp_XpCreateContext=no
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8685 LIBS=$ac_check_lib_save_LIBS
8687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8688 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8689 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8690 HAVE_LIBXP=yes
8693 if test ${HAVE_LIBXP} = yes; then
8695 cat >>confdefs.h <<\_ACEOF
8696 #define HAVE_LIBXP 1
8697 _ACEOF
8703 ### Is -lXaw3d available?
8704 HAVE_XAW3D=no
8705 if test "${HAVE_X11}" = "yes"; then
8706 if test "${USE_X_TOOLKIT}" != "none"; then
8707 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8708 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8709 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h. */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 #include <X11/Xaw3d/Scrollbar.h>
8719 _ACEOF
8720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } >/dev/null; then
8728 if test -s conftest.err; then
8729 ac_cpp_err=$ac_c_preproc_warn_flag
8730 else
8731 ac_cpp_err=
8733 else
8734 ac_cpp_err=yes
8736 if test -z "$ac_cpp_err"; then
8737 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8744 rm -f conftest.err conftest.$ac_ext
8746 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8747 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8748 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8749 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8750 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8751 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 ac_check_lib_save_LIBS=$LIBS
8755 LIBS="-lXaw3d $LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any gcc2 internal prototype to avoid an error. */
8764 #ifdef __cplusplus
8765 extern "C"
8766 #endif
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8769 char XawScrollbarSetThumb ();
8771 main ()
8773 XawScrollbarSetThumb ();
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8791 else
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798 LIBS=$ac_check_lib_save_LIBS
8800 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8801 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8802 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8803 HAVE_XAW3D=yes
8809 if test "${HAVE_XAW3D}" = "yes"; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_XAW3D 1
8813 _ACEOF
8821 USE_TOOLKIT_SCROLL_BARS=no
8822 if test "${with_toolkit_scroll_bars}" != "no"; then
8823 if test "${USE_X_TOOLKIT}" != "none"; then
8824 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8825 cat >>confdefs.h <<\_ACEOF
8826 #define USE_TOOLKIT_SCROLL_BARS 1
8827 _ACEOF
8829 HAVE_XAW3D=no
8830 USE_TOOLKIT_SCROLL_BARS=yes
8831 elif test "${HAVE_XAW3D}" = "yes"; then
8832 cat >>confdefs.h <<\_ACEOF
8833 #define USE_TOOLKIT_SCROLL_BARS 1
8834 _ACEOF
8836 USE_TOOLKIT_SCROLL_BARS=yes
8838 elif test "${HAVE_GTK}" = "yes"; then
8839 cat >>confdefs.h <<\_ACEOF
8840 #define USE_TOOLKIT_SCROLL_BARS 1
8841 _ACEOF
8843 USE_TOOLKIT_SCROLL_BARS=yes
8848 if test "${with_xim}" != "no"; then
8850 cat >>confdefs.h <<\_ACEOF
8851 #define USE_XIM 1
8852 _ACEOF
8854 late_CFLAGS=$CFLAGS
8855 if test "$GCC" = yes; then
8856 CFLAGS="$CFLAGS --pedantic-errors"
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8865 #include <X11/Xlib.h>
8866 #include <X11/Xresource.h>
8868 main ()
8870 Display *display;
8871 XrmDatabase db;
8872 char *res_name;
8873 char *res_class;
8874 XIMProc callback;
8875 XPointer *client_data;
8876 #ifndef __GNUC__
8877 /* If we're not using GCC, it's probably not XFree86, and this is
8878 probably right, but we can't use something like --pedantic-errors. */
8879 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8880 char*, XIMProc, XPointer*);
8881 #endif
8882 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8883 client_data);
8885 return 0;
8887 _ACEOF
8888 rm -f conftest.$ac_objext
8889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8890 (eval $ac_compile) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -s conftest.$ac_objext'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
8900 emacs_cv_arg6_star=yes
8901 else
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8906 rm -f conftest.$ac_objext conftest.$ac_ext
8908 if test "$emacs_cv_arg6_star" = yes; then
8909 cat >>confdefs.h <<\_ACEOF
8910 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8911 _ACEOF
8913 else
8914 cat >>confdefs.h <<\_ACEOF
8915 #define XRegisterIMInstantiateCallback_arg6 XPointer
8916 _ACEOF
8919 CFLAGS=$late_CFLAGS
8922 ### Use -lXpm if available, unless `--with-xpm=no'.
8923 HAVE_XPM=no
8924 if test "${HAVE_X11}" = "yes"; then
8925 if test "${with_xpm}" != "no"; then
8926 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8927 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8928 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8929 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8933 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8934 else
8935 # Is the header compilable?
8936 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8937 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h. */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8944 $ac_includes_default
8945 #include <X11/xpm.h>
8946 _ACEOF
8947 rm -f conftest.$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_header_compiler=yes
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8964 ac_header_compiler=no
8966 rm -f conftest.$ac_objext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968 echo "${ECHO_T}$ac_header_compiler" >&6
8970 # Is the header present?
8971 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8972 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <X11/xpm.h>
8980 _ACEOF
8981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } >/dev/null; then
8989 if test -s conftest.err; then
8990 ac_cpp_err=$ac_c_preproc_warn_flag
8991 else
8992 ac_cpp_err=
8994 else
8995 ac_cpp_err=yes
8997 if test -z "$ac_cpp_err"; then
8998 ac_header_preproc=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_header_preproc=no
9005 rm -f conftest.err conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9007 echo "${ECHO_T}$ac_header_preproc" >&6
9009 # So? What about this header?
9010 case $ac_header_compiler:$ac_header_preproc in
9011 yes:no )
9012 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9013 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9015 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9016 ac_header_preproc=yes
9018 no:yes )
9019 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9020 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9021 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9022 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
9024 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
9026 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9028 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
9030 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9032 cat <<\_ASBOX
9033 ## ------------------------------------------ ##
9034 ## Report this to the AC_PACKAGE_NAME lists. ##
9035 ## ------------------------------------------ ##
9036 _ASBOX
9038 sed "s/^/$as_me: WARNING: /" >&2
9040 esac
9041 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9042 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9043 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 ac_cv_header_X11_xpm_h=$ac_header_preproc
9048 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9052 if test $ac_cv_header_X11_xpm_h = yes; then
9053 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9054 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9055 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058 ac_check_lib_save_LIBS=$LIBS
9059 LIBS="-lXpm -lX11 $LIBS"
9060 cat >conftest.$ac_ext <<_ACEOF
9061 /* confdefs.h. */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9067 /* Override any gcc2 internal prototype to avoid an error. */
9068 #ifdef __cplusplus
9069 extern "C"
9070 #endif
9071 /* We use char because int might match the return type of a gcc2
9072 builtin and then its argument prototype would still apply. */
9073 char XpmReadFileToPixmap ();
9075 main ()
9077 XpmReadFileToPixmap ();
9079 return 0;
9081 _ACEOF
9082 rm -f conftest.$ac_objext conftest$ac_exeext
9083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9099 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9105 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9106 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9107 HAVE_XPM=yes
9113 if test "${HAVE_XPM}" = "yes"; then
9114 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9115 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122 #include "X11/xpm.h"
9123 #ifndef XpmReturnAllocPixels
9124 no_return_alloc_pixels
9125 #endif
9127 _ACEOF
9128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9129 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9130 HAVE_XPM=no
9131 else
9132 HAVE_XPM=yes
9134 rm -f conftest*
9137 if test "${HAVE_XPM}" = "yes"; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6
9147 if test "${HAVE_XPM}" = "yes"; then
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_XPM 1
9151 _ACEOF
9156 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9157 HAVE_JPEG=no
9158 if test "${HAVE_X11}" = "yes"; then
9159 if test "${with_jpeg}" != "no"; then
9160 if test "${ac_cv_header_jerror_h+set}" = set; then
9161 echo "$as_me:$LINENO: checking for jerror.h" >&5
9162 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9163 if test "${ac_cv_header_jerror_h+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9167 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9168 else
9169 # Is the header compilable?
9170 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9171 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9173 /* confdefs.h. */
9174 _ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 $ac_includes_default
9179 #include <jerror.h>
9180 _ACEOF
9181 rm -f conftest.$ac_objext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9183 (eval $ac_compile) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_header_compiler=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9198 ac_header_compiler=no
9200 rm -f conftest.$ac_objext conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6
9204 # Is the header present?
9205 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9206 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 #include <jerror.h>
9214 _ACEOF
9215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } >/dev/null; then
9223 if test -s conftest.err; then
9224 ac_cpp_err=$ac_c_preproc_warn_flag
9225 else
9226 ac_cpp_err=
9228 else
9229 ac_cpp_err=yes
9231 if test -z "$ac_cpp_err"; then
9232 ac_header_preproc=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_preproc=no
9239 rm -f conftest.err conftest.$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9241 echo "${ECHO_T}$ac_header_preproc" >&6
9243 # So? What about this header?
9244 case $ac_header_compiler:$ac_header_preproc in
9245 yes:no )
9246 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9247 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9249 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9250 ac_header_preproc=yes
9252 no:yes )
9253 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9254 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9256 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
9258 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
9260 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9262 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
9264 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9266 cat <<\_ASBOX
9267 ## ------------------------------------------ ##
9268 ## Report this to the AC_PACKAGE_NAME lists. ##
9269 ## ------------------------------------------ ##
9270 _ASBOX
9272 sed "s/^/$as_me: WARNING: /" >&2
9274 esac
9275 echo "$as_me:$LINENO: checking for jerror.h" >&5
9276 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9277 if test "${ac_cv_header_jerror_h+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 ac_cv_header_jerror_h=$ac_header_preproc
9282 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9283 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9286 if test $ac_cv_header_jerror_h = yes; then
9287 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9288 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9289 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 ac_check_lib_save_LIBS=$LIBS
9293 LIBS="-ljpeg $LIBS"
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any gcc2 internal prototype to avoid an error. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 /* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9307 char jpeg_destroy_compress ();
9309 main ()
9311 jpeg_destroy_compress ();
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>&5
9319 ac_status=$?
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9329 else
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9339 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9340 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9341 HAVE_JPEG=yes
9350 if test "${HAVE_JPEG}" = "yes"; then
9351 cat >>confdefs.h <<\_ACEOF
9352 #define HAVE_JPEG 1
9353 _ACEOF
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 #include <jpeglib.h>
9362 version=JPEG_LIB_VERSION
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_JPEG 1
9369 _ACEOF
9371 else
9372 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9373 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9374 HAVE_JPEG=no
9376 rm -f conftest*
9381 ### Use -lpng if available, unless `--with-png=no'.
9382 HAVE_PNG=no
9383 if test "${HAVE_X11}" = "yes"; then
9384 if test "${with_png}" != "no"; then
9385 if test "${ac_cv_header_png_h+set}" = set; then
9386 echo "$as_me:$LINENO: checking for png.h" >&5
9387 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9388 if test "${ac_cv_header_png_h+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9392 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9393 else
9394 # Is the header compilable?
9395 echo "$as_me:$LINENO: checking png.h usability" >&5
9396 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403 $ac_includes_default
9404 #include <png.h>
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9408 (eval $ac_compile) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_header_compiler=yes
9419 else
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.$ac_ext >&5
9423 ac_header_compiler=no
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427 echo "${ECHO_T}$ac_header_compiler" >&6
9429 # Is the header present?
9430 echo "$as_me:$LINENO: checking png.h presence" >&5
9431 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h. */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <png.h>
9439 _ACEOF
9440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } >/dev/null; then
9448 if test -s conftest.err; then
9449 ac_cpp_err=$ac_c_preproc_warn_flag
9450 else
9451 ac_cpp_err=
9453 else
9454 ac_cpp_err=yes
9456 if test -z "$ac_cpp_err"; then
9457 ac_header_preproc=yes
9458 else
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_preproc=no
9464 rm -f conftest.err conftest.$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9466 echo "${ECHO_T}$ac_header_preproc" >&6
9468 # So? What about this header?
9469 case $ac_header_compiler:$ac_header_preproc in
9470 yes:no )
9471 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9472 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
9474 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
9475 ac_header_preproc=yes
9477 no:yes )
9478 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9479 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9481 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
9483 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
9485 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9487 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
9489 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
9491 cat <<\_ASBOX
9492 ## ------------------------------------------ ##
9493 ## Report this to the AC_PACKAGE_NAME lists. ##
9494 ## ------------------------------------------ ##
9495 _ASBOX
9497 sed "s/^/$as_me: WARNING: /" >&2
9499 esac
9500 echo "$as_me:$LINENO: checking for png.h" >&5
9501 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9502 if test "${ac_cv_header_png_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 ac_cv_header_png_h=$ac_header_preproc
9507 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9511 if test $ac_cv_header_png_h = yes; then
9512 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9513 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9514 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517 ac_check_lib_save_LIBS=$LIBS
9518 LIBS="-lpng -lz -lm $LIBS"
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h. */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9532 char png_get_channels ();
9534 main ()
9536 png_get_channels ();
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_lib_png_png_get_channels=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9558 ac_cv_lib_png_png_get_channels=no
9560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_lib_save_LIBS
9563 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9564 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9565 if test $ac_cv_lib_png_png_get_channels = yes; then
9566 HAVE_PNG=yes
9574 if test "${HAVE_PNG}" = "yes"; then
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_PNG 1
9578 _ACEOF
9583 ### Use -ltiff if available, unless `--with-tiff=no'.
9584 HAVE_TIFF=no
9585 if test "${HAVE_X11}" = "yes"; then
9586 if test "${with_tiff}" != "no"; then
9587 if test "${ac_cv_header_tiffio_h+set}" = set; then
9588 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9589 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9590 if test "${ac_cv_header_tiffio_h+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9594 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9595 else
9596 # Is the header compilable?
9597 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9598 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 $ac_includes_default
9606 #include <tiffio.h>
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610 (eval $ac_compile) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -s conftest.$ac_objext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_header_compiler=yes
9621 else
9622 echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_header_compiler=no
9627 rm -f conftest.$ac_objext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9629 echo "${ECHO_T}$ac_header_compiler" >&6
9631 # Is the header present?
9632 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9633 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <tiffio.h>
9641 _ACEOF
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev/null; then
9650 if test -s conftest.err; then
9651 ac_cpp_err=$ac_c_preproc_warn_flag
9652 else
9653 ac_cpp_err=
9655 else
9656 ac_cpp_err=yes
9658 if test -z "$ac_cpp_err"; then
9659 ac_header_preproc=yes
9660 else
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_header_preproc=no
9666 rm -f conftest.err conftest.$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668 echo "${ECHO_T}$ac_header_preproc" >&6
9670 # So? What about this header?
9671 case $ac_header_compiler:$ac_header_preproc in
9672 yes:no )
9673 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9674 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
9676 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9679 no:yes )
9680 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9681 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9683 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
9685 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
9687 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9689 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
9691 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
9693 cat <<\_ASBOX
9694 ## ------------------------------------------ ##
9695 ## Report this to the AC_PACKAGE_NAME lists. ##
9696 ## ------------------------------------------ ##
9697 _ASBOX
9699 sed "s/^/$as_me: WARNING: /" >&2
9701 esac
9702 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9703 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9704 if test "${ac_cv_header_tiffio_h+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 ac_cv_header_tiffio_h=$ac_header_preproc
9709 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9710 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9713 if test $ac_cv_header_tiffio_h = yes; then
9714 tifflibs="-lz -lm"
9715 # At least one tiff package requires the jpeg library.
9716 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9717 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9718 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9719 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ltiff $tifflibs $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737 char TIFFGetVersion ();
9739 main ()
9741 TIFFGetVersion ();
9743 return 0;
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748 (eval $ac_link) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_lib_tiff_TIFFGetVersion=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_lib_tiff_TIFFGetVersion=no
9765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9769 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9770 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9771 HAVE_TIFF=yes
9779 if test "${HAVE_TIFF}" = "yes"; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_TIFF 1
9783 _ACEOF
9788 ### Use -lgif if available, unless `--with-gif=no'.
9789 HAVE_GIF=no
9790 if test "${HAVE_X11}" = "yes"; then
9791 if test "${with_gif}" != "no"; then
9792 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9793 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9794 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9795 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9799 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9800 else
9801 # Is the header compilable?
9802 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9803 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h. */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 #include <gif_lib.h>
9812 _ACEOF
9813 rm -f conftest.$ac_objext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815 (eval $ac_compile) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -s conftest.$ac_objext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_header_compiler=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_compiler=no
9832 rm -f conftest.$ac_objext conftest.$ac_ext
9833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9834 echo "${ECHO_T}$ac_header_compiler" >&6
9836 # Is the header present?
9837 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9838 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 #include <gif_lib.h>
9846 _ACEOF
9847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } >/dev/null; then
9855 if test -s conftest.err; then
9856 ac_cpp_err=$ac_c_preproc_warn_flag
9857 else
9858 ac_cpp_err=
9860 else
9861 ac_cpp_err=yes
9863 if test -z "$ac_cpp_err"; then
9864 ac_header_preproc=yes
9865 else
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_header_preproc=no
9871 rm -f conftest.err conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9873 echo "${ECHO_T}$ac_header_preproc" >&6
9875 # So? What about this header?
9876 case $ac_header_compiler:$ac_header_preproc in
9877 yes:no )
9878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9879 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
9881 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
9882 ac_header_preproc=yes
9884 no:yes )
9885 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9886 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9888 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
9890 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
9892 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9894 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9895 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
9896 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
9898 cat <<\_ASBOX
9899 ## ------------------------------------------ ##
9900 ## Report this to the AC_PACKAGE_NAME lists. ##
9901 ## ------------------------------------------ ##
9902 _ASBOX
9904 sed "s/^/$as_me: WARNING: /" >&2
9906 esac
9907 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9908 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9909 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 else
9912 ac_cv_header_gif_lib_h=$ac_header_preproc
9914 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9915 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9918 if test $ac_cv_header_gif_lib_h = yes; then
9919 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9920 # Earlier versions can crash Emacs.
9921 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9922 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9923 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-lungif $LIBS"
9928 cat >conftest.$ac_ext <<_ACEOF
9929 /* confdefs.h. */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9935 /* Override any gcc2 internal prototype to avoid an error. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 /* We use char because int might match the return type of a gcc2
9940 builtin and then its argument prototype would still apply. */
9941 char EGifPutExtensionLast ();
9943 main ()
9945 EGifPutExtensionLast ();
9947 return 0;
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9967 ac_cv_lib_ungif_EGifPutExtensionLast=no
9969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9972 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9973 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9974 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9975 HAVE_GIF=yes
9983 if test "${HAVE_GIF}" = "yes"; then
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_GIF 1
9987 _ACEOF
9992 ### Use Mac OS X Carbon API to implement GUI.
9993 HAVE_CARBON=no
9994 if test "${with_carbon}" != "no"; then
9995 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9996 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9997 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9998 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10002 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10003 else
10004 # Is the header compilable?
10005 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10006 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h. */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 #include <Carbon/Carbon.h>
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_header_compiler=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_header_compiler=no
10035 rm -f conftest.$ac_objext conftest.$ac_ext
10036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10037 echo "${ECHO_T}$ac_header_compiler" >&6
10039 # Is the header present?
10040 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10041 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 #include <Carbon/Carbon.h>
10049 _ACEOF
10050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10052 ac_status=$?
10053 grep -v '^ *+' conftest.er1 >conftest.err
10054 rm -f conftest.er1
10055 cat conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } >/dev/null; then
10058 if test -s conftest.err; then
10059 ac_cpp_err=$ac_c_preproc_warn_flag
10060 else
10061 ac_cpp_err=
10063 else
10064 ac_cpp_err=yes
10066 if test -z "$ac_cpp_err"; then
10067 ac_header_preproc=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_header_preproc=no
10074 rm -f conftest.err conftest.$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10076 echo "${ECHO_T}$ac_header_preproc" >&6
10078 # So? What about this header?
10079 case $ac_header_compiler:$ac_header_preproc in
10080 yes:no )
10081 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10082 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10084 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10085 ac_header_preproc=yes
10087 no:yes )
10088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10089 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10090 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10091 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10093 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10095 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10097 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10099 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10101 cat <<\_ASBOX
10102 ## ------------------------------------------ ##
10103 ## Report this to the AC_PACKAGE_NAME lists. ##
10104 ## ------------------------------------------ ##
10105 _ASBOX
10107 sed "s/^/$as_me: WARNING: /" >&2
10109 esac
10110 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10111 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10117 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10118 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10121 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10122 HAVE_CARBON=yes
10128 if test "${HAVE_CARBON}" = "yes"; then
10130 cat >>confdefs.h <<\_ACEOF
10131 #define HAVE_CARBON 1
10132 _ACEOF
10134 window_system=mac
10135 ## Specify the install directory
10136 carbon_appdir=
10137 if test "${carbon_appdir_x}" != ""; then
10138 case ${carbon_appdir_x} in
10139 y | ye | yes) carbon_appdir=/Applications ;;
10140 * ) carbon_appdir=${carbon_appdir_x} ;;
10141 esac
10143 # We also have mouse menus.
10144 HAVE_MENUS=yes
10147 ### Use session management (-lSM -lICE) if available
10148 HAVE_X_SM=no
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10151 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10152 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10153 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10157 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10158 else
10159 # Is the header compilable?
10160 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10161 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h. */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 $ac_includes_default
10169 #include <X11/SM/SMlib.h>
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10173 (eval $ac_compile) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_header_compiler=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_compiler=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10192 echo "${ECHO_T}$ac_header_compiler" >&6
10194 # Is the header present?
10195 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10196 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <X11/SM/SMlib.h>
10204 _ACEOF
10205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } >/dev/null; then
10213 if test -s conftest.err; then
10214 ac_cpp_err=$ac_c_preproc_warn_flag
10215 else
10216 ac_cpp_err=
10218 else
10219 ac_cpp_err=yes
10221 if test -z "$ac_cpp_err"; then
10222 ac_header_preproc=yes
10223 else
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_header_preproc=no
10229 rm -f conftest.err conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10231 echo "${ECHO_T}$ac_header_preproc" >&6
10233 # So? What about this header?
10234 case $ac_header_compiler:$ac_header_preproc in
10235 yes:no )
10236 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10237 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
10239 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
10240 ac_header_preproc=yes
10242 no:yes )
10243 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10244 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10246 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
10248 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
10250 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10252 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
10254 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
10256 cat <<\_ASBOX
10257 ## ------------------------------------------ ##
10258 ## Report this to the AC_PACKAGE_NAME lists. ##
10259 ## ------------------------------------------ ##
10260 _ASBOX
10262 sed "s/^/$as_me: WARNING: /" >&2
10264 esac
10265 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10266 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10267 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10272 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10273 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10276 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10277 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10278 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10279 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lSM $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any gcc2 internal prototype to avoid an error. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 /* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10297 char SmcOpenConnection ();
10299 main ()
10301 SmcOpenConnection ();
10303 return 0;
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_SM_SmcOpenConnection=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_lib_SM_SmcOpenConnection=no
10325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10328 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10329 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10330 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10331 HAVE_X_SM=yes
10332 else
10333 -lICE
10340 if test "${HAVE_X_SM}" = "yes"; then
10342 cat >>confdefs.h <<\_ACEOF
10343 #define HAVE_X_SM 1
10344 _ACEOF
10346 case "$LIBS" in
10347 *-lSM*) ;;
10348 *) LIBS="-lSM -lICE $LIBS" ;;
10349 esac
10353 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10354 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10355 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10356 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <netdb.h>
10367 main ()
10369 return h_errno;
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 emacs_cv_netdb_declares_h_errno=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 emacs_cv_netdb_declares_h_errno=no
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10395 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10396 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10397 if test $emacs_cv_netdb_declares_h_errno = yes; then
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_H_ERRNO 1
10401 _ACEOF
10405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10406 # for constant arguments. Useless!
10407 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10408 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10409 if test "${ac_cv_working_alloca_h+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #include <alloca.h>
10420 main ()
10422 char *p = (char *) alloca (2 * sizeof (int));
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_working_alloca_h=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_working_alloca_h=no
10446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10449 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10450 if test $ac_cv_working_alloca_h = yes; then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_ALLOCA_H 1
10454 _ACEOF
10458 echo "$as_me:$LINENO: checking for alloca" >&5
10459 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10460 if test "${ac_cv_func_alloca_works+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h. */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 #ifdef __GNUC__
10470 # define alloca __builtin_alloca
10471 #else
10472 # ifdef _MSC_VER
10473 # include <malloc.h>
10474 # define alloca _alloca
10475 # else
10476 # if HAVE_ALLOCA_H
10477 # include <alloca.h>
10478 # else
10479 # ifdef _AIX
10480 #pragma alloca
10481 # else
10482 # ifndef alloca /* predefined by HP cc +Olibcalls */
10483 char *alloca ();
10484 # endif
10485 # endif
10486 # endif
10487 # endif
10488 #endif
10491 main ()
10493 char *p = (char *) alloca (1);
10495 return 0;
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -s conftest$ac_exeext'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; }; then
10510 ac_cv_func_alloca_works=yes
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 ac_cv_func_alloca_works=no
10517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10520 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10522 if test $ac_cv_func_alloca_works = yes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_ALLOCA 1
10526 _ACEOF
10528 else
10529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10530 # that cause trouble. Some versions do not even contain alloca or
10531 # contain a buggy version. If you still want to use their alloca,
10532 # use ar to extract alloca.o from them instead of compiling alloca.c.
10534 ALLOCA=alloca.$ac_objext
10536 cat >>confdefs.h <<\_ACEOF
10537 #define C_ALLOCA 1
10538 _ACEOF
10541 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10542 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10543 if test "${ac_cv_os_cray+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #if defined(CRAY) && ! defined(CRAY2)
10553 webecray
10554 #else
10555 wenotbecray
10556 #endif
10558 _ACEOF
10559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10560 $EGREP "webecray" >/dev/null 2>&1; then
10561 ac_cv_os_cray=yes
10562 else
10563 ac_cv_os_cray=no
10565 rm -f conftest*
10568 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10569 echo "${ECHO_T}$ac_cv_os_cray" >&6
10570 if test $ac_cv_os_cray = yes; then
10571 for ac_func in _getb67 GETB67 getb67; do
10572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10573 echo "$as_me:$LINENO: checking for $ac_func" >&5
10574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10575 if eval "test \"\${$as_ac_var+set}\" = set"; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h. */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10586 #define $ac_func innocuous_$ac_func
10588 /* System header to define __stub macros and hopefully few prototypes,
10589 which can conflict with char $ac_func (); below.
10590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10591 <limits.h> exists even on freestanding compilers. */
10593 #ifdef __STDC__
10594 # include <limits.h>
10595 #else
10596 # include <assert.h>
10597 #endif
10599 #undef $ac_func
10601 /* Override any gcc2 internal prototype to avoid an error. */
10602 #ifdef __cplusplus
10603 extern "C"
10605 #endif
10606 /* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10608 char $ac_func ();
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10613 choke me
10614 #else
10615 char (*f) () = $ac_func;
10616 #endif
10617 #ifdef __cplusplus
10619 #endif
10622 main ()
10624 return f != $ac_func;
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 eval "$as_ac_var=yes"
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 eval "$as_ac_var=no"
10648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10652 if test `eval echo '${'$as_ac_var'}'` = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define CRAY_STACKSEG_END $ac_func
10656 _ACEOF
10658 break
10661 done
10664 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10665 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10666 if test "${ac_cv_c_stack_direction+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 if test "$cross_compiling" = yes; then
10670 ac_cv_c_stack_direction=0
10671 else
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10679 find_stack_direction ()
10681 static char *addr = 0;
10682 auto char dummy;
10683 if (addr == 0)
10685 addr = &dummy;
10686 return find_stack_direction ();
10688 else
10689 return (&dummy > addr) ? 1 : -1;
10693 main ()
10695 exit (find_stack_direction () < 0);
10697 _ACEOF
10698 rm -f conftest$ac_exeext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 ac_cv_c_stack_direction=1
10710 else
10711 echo "$as_me: program exited with status $ac_status" >&5
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ( exit $ac_status )
10716 ac_cv_c_stack_direction=-1
10718 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10722 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10724 cat >>confdefs.h <<_ACEOF
10725 #define STACK_DIRECTION $ac_cv_c_stack_direction
10726 _ACEOF
10732 # fmod, logb, and frexp are found in -lm on most systems.
10733 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10735 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10736 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10737 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 ac_check_lib_save_LIBS=$LIBS
10741 LIBS="-lm $LIBS"
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10749 /* Override any gcc2 internal prototype to avoid an error. */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 /* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
10755 char sqrt ();
10757 main ()
10759 sqrt ();
10761 return 0;
10763 _ACEOF
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -s conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10776 ac_cv_lib_m_sqrt=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 ac_cv_lib_m_sqrt=no
10783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10786 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10787 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10788 if test $ac_cv_lib_m_sqrt = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_LIBM 1
10791 _ACEOF
10793 LIBS="-lm $LIBS"
10798 # Check for mail-locking functions in a "mail" library. Probably this should
10799 # have the same check as for liblockfile below.
10801 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10802 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10803 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lmail $LIBS"
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10815 /* Override any gcc2 internal prototype to avoid an error. */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10821 char maillock ();
10823 main ()
10825 maillock ();
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_lib_mail_maillock=yes
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_cv_lib_mail_maillock=no
10849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10853 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10854 if test $ac_cv_lib_mail_maillock = yes; then
10855 cat >>confdefs.h <<_ACEOF
10856 #define HAVE_LIBMAIL 1
10857 _ACEOF
10859 LIBS="-lmail $LIBS"
10864 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10865 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10866 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-llockfile $LIBS"
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10878 /* Override any gcc2 internal prototype to avoid an error. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10884 char maillock ();
10886 main ()
10888 maillock ();
10890 return 0;
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_lib_lockfile_maillock=yes
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_cv_lib_lockfile_maillock=no
10912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10916 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10917 if test $ac_cv_lib_lockfile_maillock = yes; then
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_LIBLOCKFILE 1
10920 _ACEOF
10922 LIBS="-llockfile $LIBS"
10926 # If we have the shared liblockfile, assume we must use it for mail
10927 # locking (e.g. Debian). If we couldn't link against liblockfile
10928 # (no liblockfile.a installed), ensure that we don't need to.
10929 if test "$ac_cv_lib_lockfile_maillock" = no; then
10930 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10931 set dummy liblockfile.so; ac_word=$2
10932 echo "$as_me:$LINENO: checking for $ac_word" >&5
10933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10934 if test "${ac_cv_prog_liblockfile+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937 if test -n "$liblockfile"; then
10938 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10942 for as_dir in $as_dummy
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948 ac_cv_prog_liblockfile="yes"
10949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10952 done
10953 done
10955 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10958 liblockfile=$ac_cv_prog_liblockfile
10959 if test -n "$liblockfile"; then
10960 echo "$as_me:$LINENO: result: $liblockfile" >&5
10961 echo "${ECHO_T}$liblockfile" >&6
10962 else
10963 echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6
10967 if test $ac_cv_prog_liblockfile = yes; then
10968 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10969 This probably means that movemail could lose mail.
10970 There may be a \`development' package to install containing liblockfile." >&5
10971 echo "$as_me: error: Shared liblockfile found but can't link against it.
10972 This probably means that movemail could lose mail.
10973 There may be a \`development' package to install containing liblockfile." >&2;}
10974 { (exit 1); exit 1; }; }
10975 else :
10979 for ac_func in touchlock
10981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982 echo "$as_me:$LINENO: checking for $ac_func" >&5
10983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_var+set}\" = set"; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10995 #define $ac_func innocuous_$ac_func
10997 /* System header to define __stub macros and hopefully few prototypes,
10998 which can conflict with char $ac_func (); below.
10999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11000 <limits.h> exists even on freestanding compilers. */
11002 #ifdef __STDC__
11003 # include <limits.h>
11004 #else
11005 # include <assert.h>
11006 #endif
11008 #undef $ac_func
11010 /* Override any gcc2 internal prototype to avoid an error. */
11011 #ifdef __cplusplus
11012 extern "C"
11014 #endif
11015 /* We use char because int might match the return type of a gcc2
11016 builtin and then its argument prototype would still apply. */
11017 char $ac_func ();
11018 /* The GNU C library defines this for functions which it implements
11019 to always fail with ENOSYS. Some functions are actually named
11020 something starting with __ and the normal name is an alias. */
11021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11022 choke me
11023 #else
11024 char (*f) () = $ac_func;
11025 #endif
11026 #ifdef __cplusplus
11028 #endif
11031 main ()
11033 return f != $ac_func;
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 eval "$as_ac_var=yes"
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 eval "$as_ac_var=no"
11057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11061 if test `eval echo '${'$as_ac_var'}'` = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11064 _ACEOF
11067 done
11070 for ac_header in maillock.h
11072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11074 echo "$as_me:$LINENO: checking for $ac_header" >&5
11075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11081 else
11082 # Is the header compilable?
11083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <$ac_header>
11093 _ACEOF
11094 rm -f conftest.$ac_objext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -s conftest.$ac_objext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11107 else
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 ac_header_compiler=no
11113 rm -f conftest.$ac_objext conftest.$ac_ext
11114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11115 echo "${ECHO_T}$ac_header_compiler" >&6
11117 # Is the header present?
11118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <$ac_header>
11127 _ACEOF
11128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
11138 else
11139 ac_cpp_err=
11141 else
11142 ac_cpp_err=yes
11144 if test -z "$ac_cpp_err"; then
11145 ac_header_preproc=yes
11146 else
11147 echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 ac_header_preproc=no
11152 rm -f conftest.err conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11154 echo "${ECHO_T}$ac_header_preproc" >&6
11156 # So? What about this header?
11157 case $ac_header_compiler:$ac_header_preproc in
11158 yes:no )
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11163 ac_header_preproc=yes
11165 no:yes )
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11179 cat <<\_ASBOX
11180 ## ------------------------------------------ ##
11181 ## Report this to the AC_PACKAGE_NAME lists. ##
11182 ## ------------------------------------------ ##
11183 _ASBOX
11185 sed "s/^/$as_me: WARNING: /" >&2
11187 esac
11188 echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193 eval "$as_ac_Header=\$ac_header_preproc"
11195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11202 _ACEOF
11206 done
11276 for ac_func in gethostname getdomainname dup2 \
11277 rename closedir mkdir rmdir sysinfo \
11278 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11279 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11280 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11281 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11282 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11283 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11284 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11289 if eval "test \"\${$as_ac_var+set}\" = set"; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11307 #ifdef __STDC__
11308 # include <limits.h>
11309 #else
11310 # include <assert.h>
11311 #endif
11313 #undef $ac_func
11315 /* Override any gcc2 internal prototype to avoid an error. */
11316 #ifdef __cplusplus
11317 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char $ac_func ();
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11327 choke me
11328 #else
11329 char (*f) () = $ac_func;
11330 #endif
11331 #ifdef __cplusplus
11333 #endif
11336 main ()
11338 return f != $ac_func;
11340 return 0;
11342 _ACEOF
11343 rm -f conftest.$ac_objext conftest$ac_exeext
11344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11345 (eval $ac_link) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
11349 { ac_try='test -s conftest$ac_exeext'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 eval "$as_ac_var=yes"
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 eval "$as_ac_var=no"
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 _ACEOF
11372 done
11376 for ac_header in sys/un.h
11378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11380 echo "$as_me:$LINENO: checking for $ac_header" >&5
11381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11387 else
11388 # Is the header compilable?
11389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <$ac_header>
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_header_compiler=yes
11413 else
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_header_compiler=no
11419 rm -f conftest.$ac_objext conftest.$ac_ext
11420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11421 echo "${ECHO_T}$ac_header_compiler" >&6
11423 # Is the header present?
11424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h. */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <$ac_header>
11433 _ACEOF
11434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } >/dev/null; then
11442 if test -s conftest.err; then
11443 ac_cpp_err=$ac_c_preproc_warn_flag
11444 else
11445 ac_cpp_err=
11447 else
11448 ac_cpp_err=yes
11450 if test -z "$ac_cpp_err"; then
11451 ac_header_preproc=yes
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc in
11464 yes:no )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11471 no:yes )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11485 cat <<\_ASBOX
11486 ## ------------------------------------------ ##
11487 ## Report this to the AC_PACKAGE_NAME lists. ##
11488 ## ------------------------------------------ ##
11489 _ASBOX
11491 sed "s/^/$as_me: WARNING: /" >&2
11493 esac
11494 echo "$as_me:$LINENO: checking for $ac_header" >&5
11495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499 eval "$as_ac_Header=\$ac_header_preproc"
11501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11506 cat >>confdefs.h <<_ACEOF
11507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11508 _ACEOF
11512 done
11518 for ac_header in stdlib.h sys/time.h unistd.h
11520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11522 echo "$as_me:$LINENO: checking for $ac_header" >&5
11523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11529 else
11530 # Is the header compilable?
11531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 #include <$ac_header>
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544 (eval $ac_compile) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_header_compiler=yes
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_compiler=no
11561 rm -f conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6
11565 # Is the header present?
11566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null; then
11584 if test -s conftest.err; then
11585 ac_cpp_err=$ac_c_preproc_warn_flag
11586 else
11587 ac_cpp_err=
11589 else
11590 ac_cpp_err=yes
11592 if test -z "$ac_cpp_err"; then
11593 ac_header_preproc=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_header_preproc=no
11600 rm -f conftest.err conftest.$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc in
11606 yes:no )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11613 no:yes )
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11627 cat <<\_ASBOX
11628 ## ------------------------------------------ ##
11629 ## Report this to the AC_PACKAGE_NAME lists. ##
11630 ## ------------------------------------------ ##
11631 _ASBOX
11633 sed "s/^/$as_me: WARNING: /" >&2
11635 esac
11636 echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11650 _ACEOF
11654 done
11657 for ac_func in alarm
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11662 if eval "test \"\${$as_ac_var+set}\" = set"; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11680 #ifdef __STDC__
11681 # include <limits.h>
11682 #else
11683 # include <assert.h>
11684 #endif
11686 #undef $ac_func
11688 /* Override any gcc2 internal prototype to avoid an error. */
11689 #ifdef __cplusplus
11690 extern "C"
11692 #endif
11693 /* We use char because int might match the return type of a gcc2
11694 builtin and then its argument prototype would still apply. */
11695 char $ac_func ();
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11700 choke me
11701 #else
11702 char (*f) () = $ac_func;
11703 #endif
11704 #ifdef __cplusplus
11706 #endif
11709 main ()
11711 return f != $ac_func;
11713 return 0;
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11718 (eval $ac_link) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 eval "$as_ac_var=yes"
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 eval "$as_ac_var=no"
11735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11745 done
11747 echo "$as_me:$LINENO: checking for working mktime" >&5
11748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11749 if test "${ac_cv_func_working_mktime+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752 if test "$cross_compiling" = yes; then
11753 ac_cv_func_working_mktime=no
11754 else
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h. */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 /* Test program from Paul Eggert and Tony Leneis. */
11762 #if TIME_WITH_SYS_TIME
11763 # include <sys/time.h>
11764 # include <time.h>
11765 #else
11766 # if HAVE_SYS_TIME_H
11767 # include <sys/time.h>
11768 # else
11769 # include <time.h>
11770 # endif
11771 #endif
11773 #if HAVE_STDLIB_H
11774 # include <stdlib.h>
11775 #endif
11777 #if HAVE_UNISTD_H
11778 # include <unistd.h>
11779 #endif
11781 #if !HAVE_ALARM
11782 # define alarm(X) /* empty */
11783 #endif
11785 /* Work around redefinition to rpl_putenv by other config tests. */
11786 #undef putenv
11788 static time_t time_t_max;
11789 static time_t time_t_min;
11791 /* Values we'll use to set the TZ environment variable. */
11792 static char *tz_strings[] = {
11793 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11794 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11796 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11798 /* Fail if mktime fails to convert a date in the spring-forward gap.
11799 Based on a problem report from Andreas Jaeger. */
11800 static void
11801 spring_forward_gap ()
11803 /* glibc (up to about 1998-10-07) failed this test. */
11804 struct tm tm;
11806 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11807 instead of "TZ=America/Vancouver" in order to detect the bug even
11808 on systems that don't support the Olson extension, or don't have the
11809 full zoneinfo tables installed. */
11810 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11812 tm.tm_year = 98;
11813 tm.tm_mon = 3;
11814 tm.tm_mday = 5;
11815 tm.tm_hour = 2;
11816 tm.tm_min = 0;
11817 tm.tm_sec = 0;
11818 tm.tm_isdst = -1;
11819 if (mktime (&tm) == (time_t)-1)
11820 exit (1);
11823 static void
11824 mktime_test1 (now)
11825 time_t now;
11827 struct tm *lt;
11828 if ((lt = localtime (&now)) && mktime (lt) != now)
11829 exit (1);
11832 static void
11833 mktime_test (now)
11834 time_t now;
11836 mktime_test1 (now);
11837 mktime_test1 ((time_t) (time_t_max - now));
11838 mktime_test1 ((time_t) (time_t_min + now));
11841 static void
11842 irix_6_4_bug ()
11844 /* Based on code from Ariel Faigon. */
11845 struct tm tm;
11846 tm.tm_year = 96;
11847 tm.tm_mon = 3;
11848 tm.tm_mday = 0;
11849 tm.tm_hour = 0;
11850 tm.tm_min = 0;
11851 tm.tm_sec = 0;
11852 tm.tm_isdst = -1;
11853 mktime (&tm);
11854 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11855 exit (1);
11858 static void
11859 bigtime_test (j)
11860 int j;
11862 struct tm tm;
11863 time_t now;
11864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11865 now = mktime (&tm);
11866 if (now != (time_t) -1)
11868 struct tm *lt = localtime (&now);
11869 if (! (lt
11870 && lt->tm_year == tm.tm_year
11871 && lt->tm_mon == tm.tm_mon
11872 && lt->tm_mday == tm.tm_mday
11873 && lt->tm_hour == tm.tm_hour
11874 && lt->tm_min == tm.tm_min
11875 && lt->tm_sec == tm.tm_sec
11876 && lt->tm_yday == tm.tm_yday
11877 && lt->tm_wday == tm.tm_wday
11878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11880 exit (1);
11885 main ()
11887 time_t t, delta;
11888 int i, j;
11890 /* This test makes some buggy mktime implementations loop.
11891 Give up after 60 seconds; a mktime slower than that
11892 isn't worth using anyway. */
11893 alarm (60);
11895 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11896 continue;
11897 time_t_max--;
11898 if ((time_t) -1 < 0)
11899 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11900 continue;
11901 delta = time_t_max / 997; /* a suitable prime number */
11902 for (i = 0; i < N_STRINGS; i++)
11904 if (tz_strings[i])
11905 putenv (tz_strings[i]);
11907 for (t = 0; t <= time_t_max - delta; t += delta)
11908 mktime_test (t);
11909 mktime_test ((time_t) 1);
11910 mktime_test ((time_t) (60 * 60));
11911 mktime_test ((time_t) (60 * 60 * 24));
11913 for (j = 1; 0 < j; j *= 2)
11914 bigtime_test (j);
11915 bigtime_test (j - 1);
11917 irix_6_4_bug ();
11918 spring_forward_gap ();
11919 exit (0);
11921 _ACEOF
11922 rm -f conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_func_working_mktime=yes
11934 else
11935 echo "$as_me: program exited with status $ac_status" >&5
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ( exit $ac_status )
11940 ac_cv_func_working_mktime=no
11942 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11946 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11947 if test $ac_cv_func_working_mktime = no; then
11948 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11951 if test "$ac_cv_func_working_mktime" = no; then
11953 cat >>confdefs.h <<\_ACEOF
11954 #define BROKEN_MKTIME 1
11955 _ACEOF
11959 ac_have_func=no # yes means we've found a way to get the load average.
11961 # Make sure getloadavg.c is where it belongs, at configure-time.
11962 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11963 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11964 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11965 { (exit 1); exit 1; }; }
11967 ac_save_LIBS=$LIBS
11969 # Check for getloadavg, but be sure not to touch the cache variable.
11970 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11971 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11972 if test "${ac_cv_func_getloadavg+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983 #define getloadavg innocuous_getloadavg
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char getloadavg (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11990 #ifdef __STDC__
11991 # include <limits.h>
11992 #else
11993 # include <assert.h>
11994 #endif
11996 #undef getloadavg
11998 /* Override any gcc2 internal prototype to avoid an error. */
11999 #ifdef __cplusplus
12000 extern "C"
12002 #endif
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005 char getloadavg ();
12006 /* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12010 choke me
12011 #else
12012 char (*f) () = getloadavg;
12013 #endif
12014 #ifdef __cplusplus
12016 #endif
12019 main ()
12021 return f != getloadavg;
12023 return 0;
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -s conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_func_getloadavg=yes
12039 else
12040 echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12043 ac_cv_func_getloadavg=no
12045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12048 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12049 if test $ac_cv_func_getloadavg = yes; then
12050 exit 0
12051 else
12052 exit 1
12054 ) && ac_have_func=yes
12056 # On HPUX9, an unprivileged user can get load averages through this function.
12058 for ac_func in pstat_getdynamic
12060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12061 echo "$as_me:$LINENO: checking for $ac_func" >&5
12062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_var+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 else
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h. */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12074 #define $ac_func innocuous_$ac_func
12076 /* System header to define __stub macros and hopefully few prototypes,
12077 which can conflict with char $ac_func (); below.
12078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12079 <limits.h> exists even on freestanding compilers. */
12081 #ifdef __STDC__
12082 # include <limits.h>
12083 #else
12084 # include <assert.h>
12085 #endif
12087 #undef $ac_func
12089 /* Override any gcc2 internal prototype to avoid an error. */
12090 #ifdef __cplusplus
12091 extern "C"
12093 #endif
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12096 char $ac_func ();
12097 /* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12101 choke me
12102 #else
12103 char (*f) () = $ac_func;
12104 #endif
12105 #ifdef __cplusplus
12107 #endif
12110 main ()
12112 return f != $ac_func;
12114 return 0;
12116 _ACEOF
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12119 (eval $ac_link) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
12130 else
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.$ac_ext >&5
12134 eval "$as_ac_var=no"
12136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12140 if test `eval echo '${'$as_ac_var'}'` = yes; then
12141 cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12143 _ACEOF
12146 done
12149 # Solaris has libkstat which does not require root.
12151 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12152 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12153 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156 ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-lkstat $LIBS"
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12165 /* Override any gcc2 internal prototype to avoid an error. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 /* We use char because int might match the return type of a gcc2
12170 builtin and then its argument prototype would still apply. */
12171 char kstat_open ();
12173 main ()
12175 kstat_open ();
12177 return 0;
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12182 (eval $ac_link) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -s conftest$ac_exeext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_lib_kstat_kstat_open=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_cv_lib_kstat_kstat_open=no
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12202 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12203 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12204 if test $ac_cv_lib_kstat_kstat_open = yes; then
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_LIBKSTAT 1
12207 _ACEOF
12209 LIBS="-lkstat $LIBS"
12213 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12215 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12216 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12217 # to get the right answer into the cache.
12218 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12219 if test $ac_have_func = no; then
12220 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12221 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12222 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lelf $LIBS"
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12234 /* Override any gcc2 internal prototype to avoid an error. */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 /* We use char because int might match the return type of a gcc2
12239 builtin and then its argument prototype would still apply. */
12240 char elf_begin ();
12242 main ()
12244 elf_begin ();
12246 return 0;
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12251 (eval $ac_link) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -s conftest$ac_exeext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_lib_elf_elf_begin=yes
12262 else
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_lib_elf_elf_begin=no
12268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12271 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12272 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12273 if test $ac_cv_lib_elf_elf_begin = yes; then
12274 LIBS="-lelf $LIBS"
12278 if test $ac_have_func = no; then
12279 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12280 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12281 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 ac_check_lib_save_LIBS=$LIBS
12285 LIBS="-lkvm $LIBS"
12286 cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h. */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12293 /* Override any gcc2 internal prototype to avoid an error. */
12294 #ifdef __cplusplus
12295 extern "C"
12296 #endif
12297 /* We use char because int might match the return type of a gcc2
12298 builtin and then its argument prototype would still apply. */
12299 char kvm_open ();
12301 main ()
12303 kvm_open ();
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12310 (eval $ac_link) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_kvm_kvm_open=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_kvm_kvm_open=no
12327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12331 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12332 if test $ac_cv_lib_kvm_kvm_open = yes; then
12333 LIBS="-lkvm $LIBS"
12336 # Check for the 4.4BSD definition of getloadavg.
12337 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12338 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12339 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342 ac_check_lib_save_LIBS=$LIBS
12343 LIBS="-lutil $LIBS"
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12351 /* Override any gcc2 internal prototype to avoid an error. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 /* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357 char getloadavg ();
12359 main ()
12361 getloadavg ();
12363 return 0;
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -s conftest$ac_exeext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_lib_util_getloadavg=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_lib_util_getloadavg=no
12385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12389 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12390 if test $ac_cv_lib_util_getloadavg = yes; then
12391 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12396 if test $ac_have_func = no; then
12397 # There is a commonly available library for RS/6000 AIX.
12398 # Since it is not a standard part of AIX, it might be installed locally.
12399 ac_getloadavg_LIBS=$LIBS
12400 LIBS="-L/usr/local/lib $LIBS"
12401 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12402 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12403 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lgetloadavg $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 /* We use char because int might match the return type of a gcc2
12420 builtin and then its argument prototype would still apply. */
12421 char getloadavg ();
12423 main ()
12425 getloadavg ();
12427 return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432 (eval $ac_link) 2>&5
12433 ac_status=$?
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest$ac_exeext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_lib_getloadavg_getloadavg=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_lib_getloadavg_getloadavg=no
12449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12453 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12454 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12455 LIBS="-lgetloadavg $LIBS"
12456 else
12457 LIBS=$ac_getloadavg_LIBS
12462 # Make sure it is really in the library, if we think we found it,
12463 # otherwise set up the replacement function.
12465 for ac_func in getloadavg
12467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468 echo "$as_me:$LINENO: checking for $ac_func" >&5
12469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_var+set}\" = set"; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481 #define $ac_func innocuous_$ac_func
12483 /* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12494 #undef $ac_func
12496 /* Override any gcc2 internal prototype to avoid an error. */
12497 #ifdef __cplusplus
12498 extern "C"
12500 #endif
12501 /* We use char because int might match the return type of a gcc2
12502 builtin and then its argument prototype would still apply. */
12503 char $ac_func ();
12504 /* The GNU C library defines this for functions which it implements
12505 to always fail with ENOSYS. Some functions are actually named
12506 something starting with __ and the normal name is an alias. */
12507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12508 choke me
12509 #else
12510 char (*f) () = $ac_func;
12511 #endif
12512 #ifdef __cplusplus
12514 #endif
12517 main ()
12519 return f != $ac_func;
12521 return 0;
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 eval "$as_ac_var=yes"
12537 else
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 eval "$as_ac_var=no"
12543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548 cat >>confdefs.h <<_ACEOF
12549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12550 _ACEOF
12552 else
12553 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12555 cat >>confdefs.h <<\_ACEOF
12556 #define C_GETLOADAVG 1
12557 _ACEOF
12559 # Figure out what our getloadavg.c needs.
12560 ac_have_func=no
12561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12562 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12563 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12564 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12567 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12568 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12569 else
12570 # Is the header compilable?
12571 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12572 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 $ac_includes_default
12580 #include <sys/dg_sys_info.h>
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12584 (eval $ac_compile) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_header_compiler=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ac_header_compiler=no
12601 rm -f conftest.$ac_objext conftest.$ac_ext
12602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12603 echo "${ECHO_T}$ac_header_compiler" >&6
12605 # Is the header present?
12606 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12607 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h. */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 #include <sys/dg_sys_info.h>
12615 _ACEOF
12616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } >/dev/null; then
12624 if test -s conftest.err; then
12625 ac_cpp_err=$ac_c_preproc_warn_flag
12626 else
12627 ac_cpp_err=
12629 else
12630 ac_cpp_err=yes
12632 if test -z "$ac_cpp_err"; then
12633 ac_header_preproc=yes
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_header_preproc=no
12640 rm -f conftest.err conftest.$ac_ext
12641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12642 echo "${ECHO_T}$ac_header_preproc" >&6
12644 # So? What about this header?
12645 case $ac_header_compiler:$ac_header_preproc in
12646 yes:no )
12647 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12648 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
12650 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
12651 ac_header_preproc=yes
12653 no:yes )
12654 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12655 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12657 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
12659 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
12660 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
12661 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12663 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12664 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
12665 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
12667 cat <<\_ASBOX
12668 ## ------------------------------------------ ##
12669 ## Report this to the AC_PACKAGE_NAME lists. ##
12670 ## ------------------------------------------ ##
12671 _ASBOX
12673 sed "s/^/$as_me: WARNING: /" >&2
12675 esac
12676 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12677 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12678 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12684 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12687 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12688 ac_have_func=yes
12690 cat >>confdefs.h <<\_ACEOF
12691 #define DGUX 1
12692 _ACEOF
12695 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12696 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12697 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 ac_check_lib_save_LIBS=$LIBS
12701 LIBS="-ldgc $LIBS"
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 #ifdef __cplusplus
12711 extern "C"
12712 #endif
12713 /* We use char because int might match the return type of a gcc2
12714 builtin and then its argument prototype would still apply. */
12715 char dg_sys_info ();
12717 main ()
12719 dg_sys_info ();
12721 return 0;
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_lib_dgc_dg_sys_info=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_cv_lib_dgc_dg_sys_info=no
12743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12747 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12748 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12749 cat >>confdefs.h <<_ACEOF
12750 #define HAVE_LIBDGC 1
12751 _ACEOF
12753 LIBS="-ldgc $LIBS"
12761 if test "${ac_cv_header_locale_h+set}" = set; then
12762 echo "$as_me:$LINENO: checking for locale.h" >&5
12763 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12764 if test "${ac_cv_header_locale_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12768 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12769 else
12770 # Is the header compilable?
12771 echo "$as_me:$LINENO: checking locale.h usability" >&5
12772 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12773 cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h. */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12780 #include <locale.h>
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784 (eval $ac_compile) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -s conftest.$ac_objext'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 ac_header_compiler=yes
12795 else
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_header_compiler=no
12801 rm -f conftest.$ac_objext conftest.$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12803 echo "${ECHO_T}$ac_header_compiler" >&6
12805 # Is the header present?
12806 echo "$as_me:$LINENO: checking locale.h presence" >&5
12807 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <locale.h>
12815 _ACEOF
12816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } >/dev/null; then
12824 if test -s conftest.err; then
12825 ac_cpp_err=$ac_c_preproc_warn_flag
12826 else
12827 ac_cpp_err=
12829 else
12830 ac_cpp_err=yes
12832 if test -z "$ac_cpp_err"; then
12833 ac_header_preproc=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_header_preproc=no
12840 rm -f conftest.err conftest.$ac_ext
12841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842 echo "${ECHO_T}$ac_header_preproc" >&6
12844 # So? What about this header?
12845 case $ac_header_compiler:$ac_header_preproc in
12846 yes:no )
12847 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12848 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
12850 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc=yes
12853 no:yes )
12854 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12855 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12857 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
12859 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
12861 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12863 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
12865 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
12867 cat <<\_ASBOX
12868 ## ------------------------------------------ ##
12869 ## Report this to the AC_PACKAGE_NAME lists. ##
12870 ## ------------------------------------------ ##
12871 _ASBOX
12873 sed "s/^/$as_me: WARNING: /" >&2
12875 esac
12876 echo "$as_me:$LINENO: checking for locale.h" >&5
12877 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12878 if test "${ac_cv_header_locale_h+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881 ac_cv_header_locale_h=$ac_header_preproc
12883 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12884 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12890 for ac_func in setlocale
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12895 if eval "test \"\${$as_ac_var+set}\" = set"; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define $ac_func innocuous_$ac_func
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12913 #ifdef __STDC__
12914 # include <limits.h>
12915 #else
12916 # include <assert.h>
12917 #endif
12919 #undef $ac_func
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 #ifdef __cplusplus
12923 extern "C"
12925 #endif
12926 /* We use char because int might match the return type of a gcc2
12927 builtin and then its argument prototype would still apply. */
12928 char $ac_func ();
12929 /* The GNU C library defines this for functions which it implements
12930 to always fail with ENOSYS. Some functions are actually named
12931 something starting with __ and the normal name is an alias. */
12932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12933 choke me
12934 #else
12935 char (*f) () = $ac_func;
12936 #endif
12937 #ifdef __cplusplus
12939 #endif
12942 main ()
12944 return f != $ac_func;
12946 return 0;
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12951 (eval $ac_link) 2>&5
12952 ac_status=$?
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 eval "$as_ac_var=yes"
12962 else
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 eval "$as_ac_var=no"
12968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12972 if test `eval echo '${'$as_ac_var'}'` = yes; then
12973 cat >>confdefs.h <<_ACEOF
12974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975 _ACEOF
12978 done
12981 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12982 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12983 # Irix 4.0.5F has the header but not the library.
12984 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12985 ac_have_func=yes
12987 cat >>confdefs.h <<\_ACEOF
12988 #define SVR4 1
12989 _ACEOF
12993 if test $ac_have_func = no; then
12994 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12995 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12996 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12997 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13001 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13002 else
13003 # Is the header compilable?
13004 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13005 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <inq_stats/cpustats.h>
13014 _ACEOF
13015 rm -f conftest.$ac_objext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -s conftest.$ac_objext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 ac_header_compiler=yes
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13032 ac_header_compiler=no
13034 rm -f conftest.$ac_objext conftest.$ac_ext
13035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13036 echo "${ECHO_T}$ac_header_compiler" >&6
13038 # Is the header present?
13039 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13040 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h. */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13047 #include <inq_stats/cpustats.h>
13048 _ACEOF
13049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } >/dev/null; then
13057 if test -s conftest.err; then
13058 ac_cpp_err=$ac_c_preproc_warn_flag
13059 else
13060 ac_cpp_err=
13062 else
13063 ac_cpp_err=yes
13065 if test -z "$ac_cpp_err"; then
13066 ac_header_preproc=yes
13067 else
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_header_preproc=no
13073 rm -f conftest.err conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13075 echo "${ECHO_T}$ac_header_preproc" >&6
13077 # So? What about this header?
13078 case $ac_header_compiler:$ac_header_preproc in
13079 yes:no )
13080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13081 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13084 ac_header_preproc=yes
13086 no:yes )
13087 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13088 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13090 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
13092 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13094 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
13098 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13100 cat <<\_ASBOX
13101 ## ------------------------------------------ ##
13102 ## Report this to the AC_PACKAGE_NAME lists. ##
13103 ## ------------------------------------------ ##
13104 _ASBOX
13106 sed "s/^/$as_me: WARNING: /" >&2
13108 esac
13109 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13110 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13116 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13117 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13120 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13121 ac_have_func=yes
13123 cat >>confdefs.h <<\_ACEOF
13124 #define UMAX 1
13125 _ACEOF
13128 cat >>confdefs.h <<\_ACEOF
13129 #define UMAX4_3 1
13130 _ACEOF
13137 if test $ac_have_func = no; then
13138 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13139 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13140 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13145 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13146 else
13147 # Is the header compilable?
13148 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13149 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h. */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <sys/cpustats.h>
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -s conftest.$ac_objext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 ac_header_compiler=yes
13172 else
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13176 ac_header_compiler=no
13178 rm -f conftest.$ac_objext conftest.$ac_ext
13179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13180 echo "${ECHO_T}$ac_header_compiler" >&6
13182 # Is the header present?
13183 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13184 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <sys/cpustats.h>
13192 _ACEOF
13193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } >/dev/null; then
13201 if test -s conftest.err; then
13202 ac_cpp_err=$ac_c_preproc_warn_flag
13203 else
13204 ac_cpp_err=
13206 else
13207 ac_cpp_err=yes
13209 if test -z "$ac_cpp_err"; then
13210 ac_header_preproc=yes
13211 else
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_header_preproc=no
13217 rm -f conftest.err conftest.$ac_ext
13218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc in
13223 yes:no )
13224 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13227 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13230 no:yes )
13231 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13240 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13244 cat <<\_ASBOX
13245 ## ------------------------------------------ ##
13246 ## Report this to the AC_PACKAGE_NAME lists. ##
13247 ## ------------------------------------------ ##
13248 _ASBOX
13250 sed "s/^/$as_me: WARNING: /" >&2
13252 esac
13253 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13254 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13255 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13264 if test $ac_cv_header_sys_cpustats_h = yes; then
13265 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13266 #define UMAX 1
13267 _ACEOF
13274 if test $ac_have_func = no; then
13276 for ac_header in mach/mach.h
13278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13280 echo "$as_me:$LINENO: checking for $ac_header" >&5
13281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13283 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13287 else
13288 # Is the header compilable?
13289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13298 #include <$ac_header>
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -s conftest.$ac_objext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_header_compiler=yes
13313 else
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_header_compiler=no
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321 echo "${ECHO_T}$ac_header_compiler" >&6
13323 # Is the header present?
13324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13326 cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h. */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 #include <$ac_header>
13333 _ACEOF
13334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_c_preproc_warn_flag
13344 else
13345 ac_cpp_err=
13347 else
13348 ac_cpp_err=yes
13350 if test -z "$ac_cpp_err"; then
13351 ac_header_preproc=yes
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_header_preproc=no
13358 rm -f conftest.err conftest.$ac_ext
13359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13360 echo "${ECHO_T}$ac_header_preproc" >&6
13362 # So? What about this header?
13363 case $ac_header_compiler:$ac_header_preproc in
13364 yes:no )
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13369 ac_header_preproc=yes
13371 no:yes )
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13385 cat <<\_ASBOX
13386 ## ------------------------------------------ ##
13387 ## Report this to the AC_PACKAGE_NAME lists. ##
13388 ## ------------------------------------------ ##
13389 _ASBOX
13391 sed "s/^/$as_me: WARNING: /" >&2
13393 esac
13394 echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 eval "$as_ac_Header=\$ac_header_preproc"
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13406 cat >>confdefs.h <<_ACEOF
13407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13408 _ACEOF
13412 done
13417 for ac_header in nlist.h
13419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13421 echo "$as_me:$LINENO: checking for $ac_header" >&5
13422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428 else
13429 # Is the header compilable?
13430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h. */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <$ac_header>
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_header_compiler=yes
13454 else
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13460 rm -f conftest.$ac_objext conftest.$ac_ext
13461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 echo "${ECHO_T}$ac_header_compiler" >&6
13464 # Is the header present?
13465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <$ac_header>
13474 _ACEOF
13475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } >/dev/null; then
13483 if test -s conftest.err; then
13484 ac_cpp_err=$ac_c_preproc_warn_flag
13485 else
13486 ac_cpp_err=
13488 else
13489 ac_cpp_err=yes
13491 if test -z "$ac_cpp_err"; then
13492 ac_header_preproc=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13499 rm -f conftest.err conftest.$ac_ext
13500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc in
13505 yes:no )
13506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
13512 no:yes )
13513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13526 cat <<\_ASBOX
13527 ## ------------------------------------------ ##
13528 ## Report this to the AC_PACKAGE_NAME lists. ##
13529 ## ------------------------------------------ ##
13530 _ASBOX
13532 sed "s/^/$as_me: WARNING: /" >&2
13534 esac
13535 echo "$as_me:$LINENO: checking for $ac_header" >&5
13536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540 eval "$as_ac_Header=\$ac_header_preproc"
13542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13547 cat >>confdefs.h <<_ACEOF
13548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13549 _ACEOF
13550 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13551 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13552 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 #include <nlist.h>
13564 main ()
13566 static struct nlist ac_aggr;
13567 if (ac_aggr.n_un.n_name)
13568 return 0;
13570 return 0;
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_member_struct_nlist_n_un_n_name=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 #include <nlist.h>
13599 main ()
13601 static struct nlist ac_aggr;
13602 if (sizeof ac_aggr.n_un.n_name)
13603 return 0;
13605 return 0;
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 ac_cv_member_struct_nlist_n_un_n_name=yes
13621 else
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 ac_cv_member_struct_nlist_n_un_n_name=no
13627 rm -f conftest.$ac_objext conftest.$ac_ext
13629 rm -f conftest.$ac_objext conftest.$ac_ext
13631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13632 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13633 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13635 cat >>confdefs.h <<_ACEOF
13636 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13637 _ACEOF
13640 cat >>confdefs.h <<\_ACEOF
13641 #define NLIST_NAME_UNION 1
13642 _ACEOF
13649 done
13652 done
13655 # Some definitions of getloadavg require that the program be installed setgid.
13656 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13657 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13658 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13668 #ifdef LDAV_PRIVILEGED
13669 Yowza Am I SETGID yet
13670 #endif
13671 _ACEOF
13672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13673 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13674 ac_cv_func_getloadavg_setgid=yes
13675 else
13676 ac_cv_func_getloadavg_setgid=no
13678 rm -f conftest*
13681 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13682 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13683 if test $ac_cv_func_getloadavg_setgid = yes; then
13684 NEED_SETGID=true
13686 cat >>confdefs.h <<\_ACEOF
13687 #define GETLOADAVG_PRIVILEGED 1
13688 _ACEOF
13690 else
13691 NEED_SETGID=false
13694 if test $ac_cv_func_getloadavg_setgid = yes; then
13695 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13696 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13697 if test "${ac_cv_group_kmem+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13701 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13702 # If we got an error (system does not support symlinks), try without -L.
13703 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13704 ac_cv_group_kmem=`echo $ac_ls_output \
13705 | sed -ne 's/[ ][ ]*/ /g;
13706 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13707 / /s/.* //;p;'`
13710 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13711 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13712 KMEM_GROUP=$ac_cv_group_kmem
13714 if test "x$ac_save_LIBS" = x; then
13715 GETLOADAVG_LIBS=$LIBS
13716 else
13717 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13719 LIBS=$ac_save_LIBS
13723 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13724 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13725 if test "${ac_cv_sys_largefile_source+set}" = set; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728 while :; do
13729 ac_cv_sys_largefile_source=no
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <stdio.h>
13738 main ()
13740 return !fseeko;
13742 return 0;
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747 (eval $ac_compile) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -s conftest.$ac_objext'
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 break
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13763 rm -f conftest.$ac_objext conftest.$ac_ext
13764 cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h. */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 #define _LARGEFILE_SOURCE 1
13771 #include <stdio.h>
13773 main ()
13775 return !fseeko;
13777 return 0;
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 ac_cv_sys_largefile_source=1; break
13793 else
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13799 break
13800 done
13802 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13803 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13804 if test "$ac_cv_sys_largefile_source" != no; then
13806 cat >>confdefs.h <<_ACEOF
13807 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13808 _ACEOF
13811 rm -f conftest*
13813 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13814 # in glibc 2.1.3, but that breaks too many other things.
13815 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13816 echo "$as_me:$LINENO: checking for fseeko" >&5
13817 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13818 if test "${ac_cv_func_fseeko+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <stdio.h>
13829 main ()
13831 return fseeko && fseeko (stdin, 0, 0);
13833 return 0;
13835 _ACEOF
13836 rm -f conftest.$ac_objext conftest$ac_exeext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13838 (eval $ac_link) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest$ac_exeext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_func_fseeko=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_cv_func_fseeko=no
13855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13857 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13858 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13859 if test $ac_cv_func_fseeko = yes; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_FSEEKO 1
13863 _ACEOF
13868 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13869 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13870 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 # Use it with a single arg.
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 $ac_includes_default
13882 main ()
13884 getpgrp (0);
13886 return 0;
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891 (eval $ac_compile) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_func_getpgrp_void=no
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_func_getpgrp_void=yes
13908 rm -f conftest.$ac_objext conftest.$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13912 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13913 if test $ac_cv_func_getpgrp_void = yes; then
13915 cat >>confdefs.h <<\_ACEOF
13916 #define GETPGRP_VOID 1
13917 _ACEOF
13923 for ac_func in strftime
13925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13926 echo "$as_me:$LINENO: checking for $ac_func" >&5
13927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13928 if eval "test \"\${$as_ac_var+set}\" = set"; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931 cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h. */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13939 #define $ac_func innocuous_$ac_func
13941 /* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char $ac_func (); below.
13943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13944 <limits.h> exists even on freestanding compilers. */
13946 #ifdef __STDC__
13947 # include <limits.h>
13948 #else
13949 # include <assert.h>
13950 #endif
13952 #undef $ac_func
13954 /* Override any gcc2 internal prototype to avoid an error. */
13955 #ifdef __cplusplus
13956 extern "C"
13958 #endif
13959 /* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13961 char $ac_func ();
13962 /* The GNU C library defines this for functions which it implements
13963 to always fail with ENOSYS. Some functions are actually named
13964 something starting with __ and the normal name is an alias. */
13965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13966 choke me
13967 #else
13968 char (*f) () = $ac_func;
13969 #endif
13970 #ifdef __cplusplus
13972 #endif
13975 main ()
13977 return f != $ac_func;
13979 return 0;
13981 _ACEOF
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984 (eval $ac_link) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 eval "$as_ac_var=yes"
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 eval "$as_ac_var=no"
14001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006 cat >>confdefs.h <<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14008 _ACEOF
14010 else
14011 # strftime is in -lintl on SCO UNIX.
14012 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14013 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14014 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 else
14017 ac_check_lib_save_LIBS=$LIBS
14018 LIBS="-lintl $LIBS"
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any gcc2 internal prototype to avoid an error. */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14032 char strftime ();
14034 main ()
14036 strftime ();
14038 return 0;
14040 _ACEOF
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_lib_intl_strftime=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_cv_lib_intl_strftime=no
14060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14064 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14065 if test $ac_cv_lib_intl_strftime = yes; then
14066 cat >>confdefs.h <<\_ACEOF
14067 #define HAVE_STRFTIME 1
14068 _ACEOF
14070 LIBS="-lintl $LIBS"
14074 done
14077 # UNIX98 PTYs.
14079 for ac_func in grantpt
14081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14082 echo "$as_me:$LINENO: checking for $ac_func" >&5
14083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14084 if eval "test \"\${$as_ac_var+set}\" = set"; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14095 #define $ac_func innocuous_$ac_func
14097 /* System header to define __stub macros and hopefully few prototypes,
14098 which can conflict with char $ac_func (); below.
14099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14100 <limits.h> exists even on freestanding compilers. */
14102 #ifdef __STDC__
14103 # include <limits.h>
14104 #else
14105 # include <assert.h>
14106 #endif
14108 #undef $ac_func
14110 /* Override any gcc2 internal prototype to avoid an error. */
14111 #ifdef __cplusplus
14112 extern "C"
14114 #endif
14115 /* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14117 char $ac_func ();
14118 /* The GNU C library defines this for functions which it implements
14119 to always fail with ENOSYS. Some functions are actually named
14120 something starting with __ and the normal name is an alias. */
14121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14122 choke me
14123 #else
14124 char (*f) () = $ac_func;
14125 #endif
14126 #ifdef __cplusplus
14128 #endif
14131 main ()
14133 return f != $ac_func;
14135 return 0;
14137 _ACEOF
14138 rm -f conftest.$ac_objext conftest$ac_exeext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14150 eval "$as_ac_var=yes"
14151 else
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 eval "$as_ac_var=no"
14157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14161 if test `eval echo '${'$as_ac_var'}'` = yes; then
14162 cat >>confdefs.h <<_ACEOF
14163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14164 _ACEOF
14167 done
14170 # PTY-related GNU extensions.
14172 for ac_func in getpt
14174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14175 echo "$as_me:$LINENO: checking for $ac_func" >&5
14176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14177 if eval "test \"\${$as_ac_var+set}\" = set"; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180 cat >conftest.$ac_ext <<_ACEOF
14181 /* confdefs.h. */
14182 _ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14188 #define $ac_func innocuous_$ac_func
14190 /* System header to define __stub macros and hopefully few prototypes,
14191 which can conflict with char $ac_func (); below.
14192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14193 <limits.h> exists even on freestanding compilers. */
14195 #ifdef __STDC__
14196 # include <limits.h>
14197 #else
14198 # include <assert.h>
14199 #endif
14201 #undef $ac_func
14203 /* Override any gcc2 internal prototype to avoid an error. */
14204 #ifdef __cplusplus
14205 extern "C"
14207 #endif
14208 /* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
14210 char $ac_func ();
14211 /* The GNU C library defines this for functions which it implements
14212 to always fail with ENOSYS. Some functions are actually named
14213 something starting with __ and the normal name is an alias. */
14214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14215 choke me
14216 #else
14217 char (*f) () = $ac_func;
14218 #endif
14219 #ifdef __cplusplus
14221 #endif
14224 main ()
14226 return f != $ac_func;
14228 return 0;
14230 _ACEOF
14231 rm -f conftest.$ac_objext conftest$ac_exeext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14233 (eval $ac_link) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -s conftest$ac_exeext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 eval "$as_ac_var=yes"
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14248 eval "$as_ac_var=no"
14250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14254 if test `eval echo '${'$as_ac_var'}'` = yes; then
14255 cat >>confdefs.h <<_ACEOF
14256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14257 _ACEOF
14260 done
14263 # Check this now, so that we will NOT find the above functions in ncurses.
14264 # That is because we have not set up to link ncurses in lib-src.
14265 # It's better to believe a function is not available
14266 # than to expect to find it in ncurses.
14268 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14269 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14270 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273 ac_check_lib_save_LIBS=$LIBS
14274 LIBS="-lncurses $LIBS"
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14282 /* Override any gcc2 internal prototype to avoid an error. */
14283 #ifdef __cplusplus
14284 extern "C"
14285 #endif
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288 char tparm ();
14290 main ()
14292 tparm ();
14294 return 0;
14296 _ACEOF
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14299 (eval $ac_link) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_lib_ncurses_tparm=yes
14310 else
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 ac_cv_lib_ncurses_tparm=no
14316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14320 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14321 if test $ac_cv_lib_ncurses_tparm = yes; then
14322 cat >>confdefs.h <<_ACEOF
14323 #define HAVE_LIBNCURSES 1
14324 _ACEOF
14326 LIBS="-lncurses $LIBS"
14331 # Do we need the Hesiod library to provide the support routines?
14332 if test "$with_hesiod" = yes ; then
14333 # Don't set $LIBS here -- see comments above.
14334 resolv=no
14335 echo "$as_me:$LINENO: checking for res_send" >&5
14336 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14337 if test "${ac_cv_func_res_send+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
14347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14348 #define res_send innocuous_res_send
14350 /* System header to define __stub macros and hopefully few prototypes,
14351 which can conflict with char res_send (); below.
14352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14353 <limits.h> exists even on freestanding compilers. */
14355 #ifdef __STDC__
14356 # include <limits.h>
14357 #else
14358 # include <assert.h>
14359 #endif
14361 #undef res_send
14363 /* Override any gcc2 internal prototype to avoid an error. */
14364 #ifdef __cplusplus
14365 extern "C"
14367 #endif
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370 char res_send ();
14371 /* The GNU C library defines this for functions which it implements
14372 to always fail with ENOSYS. Some functions are actually named
14373 something starting with __ and the normal name is an alias. */
14374 #if defined (__stub_res_send) || defined (__stub___res_send)
14375 choke me
14376 #else
14377 char (*f) () = res_send;
14378 #endif
14379 #ifdef __cplusplus
14381 #endif
14384 main ()
14386 return f != res_send;
14388 return 0;
14390 _ACEOF
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_func_res_send=yes
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_func_res_send=no
14410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14412 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14413 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14414 if test $ac_cv_func_res_send = yes; then
14416 else
14417 echo "$as_me:$LINENO: checking for __res_send" >&5
14418 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14419 if test "${ac_cv_func___res_send+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422 cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h. */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
14429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14430 #define __res_send innocuous___res_send
14432 /* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char __res_send (); below.
14434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14435 <limits.h> exists even on freestanding compilers. */
14437 #ifdef __STDC__
14438 # include <limits.h>
14439 #else
14440 # include <assert.h>
14441 #endif
14443 #undef __res_send
14445 /* Override any gcc2 internal prototype to avoid an error. */
14446 #ifdef __cplusplus
14447 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 __res_send ();
14453 /* The GNU C library defines this for functions which it implements
14454 to always fail with ENOSYS. Some functions are actually named
14455 something starting with __ and the normal name is an alias. */
14456 #if defined (__stub___res_send) || defined (__stub_____res_send)
14457 choke me
14458 #else
14459 char (*f) () = __res_send;
14460 #endif
14461 #ifdef __cplusplus
14463 #endif
14466 main ()
14468 return f != __res_send;
14470 return 0;
14472 _ACEOF
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475 (eval $ac_link) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -s conftest$ac_exeext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; }; then
14485 ac_cv_func___res_send=yes
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_cv_func___res_send=no
14492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14494 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14495 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14496 if test $ac_cv_func___res_send = yes; then
14498 else
14499 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14500 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14501 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 else
14504 ac_check_lib_save_LIBS=$LIBS
14505 LIBS="-lresolv $LIBS"
14506 cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h. */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h. */
14513 /* Override any gcc2 internal prototype to avoid an error. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14519 char res_send ();
14521 main ()
14523 res_send ();
14525 return 0;
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530 (eval $ac_link) 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -s conftest$ac_exeext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_lib_resolv_res_send=yes
14541 else
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_cv_lib_resolv_res_send=no
14547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14548 LIBS=$ac_check_lib_save_LIBS
14550 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14551 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14552 if test $ac_cv_lib_resolv_res_send = yes; then
14553 resolv=yes
14554 else
14555 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14556 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14557 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560 ac_check_lib_save_LIBS=$LIBS
14561 LIBS="-lresolv $LIBS"
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14569 /* Override any gcc2 internal prototype to avoid an error. */
14570 #ifdef __cplusplus
14571 extern "C"
14572 #endif
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14575 char __res_send ();
14577 main ()
14579 __res_send ();
14581 return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14587 ac_status=$?
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_cv_lib_resolv___res_send=yes
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_cv_lib_resolv___res_send=no
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 LIBS=$ac_check_lib_save_LIBS
14606 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14607 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14608 if test $ac_cv_lib_resolv___res_send = yes; then
14609 resolv=yes
14618 if test "$resolv" = yes ; then
14619 RESOLVLIB=-lresolv
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_LIBRESOLV 1
14623 _ACEOF
14625 else
14626 RESOLVLIB=
14628 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14629 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14630 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
14640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14641 #define hes_getmailhost innocuous_hes_getmailhost
14643 /* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char hes_getmailhost (); below.
14645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14646 <limits.h> exists even on freestanding compilers. */
14648 #ifdef __STDC__
14649 # include <limits.h>
14650 #else
14651 # include <assert.h>
14652 #endif
14654 #undef hes_getmailhost
14656 /* Override any gcc2 internal prototype to avoid an error. */
14657 #ifdef __cplusplus
14658 extern "C"
14660 #endif
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char hes_getmailhost ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14668 choke me
14669 #else
14670 char (*f) () = hes_getmailhost;
14671 #endif
14672 #ifdef __cplusplus
14674 #endif
14677 main ()
14679 return f != hes_getmailhost;
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_func_hes_getmailhost=yes
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_cv_func_hes_getmailhost=no
14703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14707 if test $ac_cv_func_hes_getmailhost = yes; then
14709 else
14710 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14711 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-lhesiod $RESOLVLIB $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14724 /* Override any gcc2 internal prototype to avoid an error. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 /* We use char because int might match the return type of a gcc2
14729 builtin and then its argument prototype would still apply. */
14730 char hes_getmailhost ();
14732 main ()
14734 hes_getmailhost ();
14736 return 0;
14738 _ACEOF
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14741 (eval $ac_link) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest$ac_exeext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_lib_hesiod_hes_getmailhost=yes
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 ac_cv_lib_hesiod_hes_getmailhost=no
14758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14762 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14763 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_LIBHESIOD 1
14767 _ACEOF
14769 else
14777 # These tell us which Kerberos-related libraries to use.
14778 if test "${with_kerberos+set}" = set; then
14780 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14781 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14782 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lcom_err $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any gcc2 internal prototype to avoid an error. */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14800 char com_err ();
14802 main ()
14804 com_err ();
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_lib_com_err_com_err=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_cv_lib_com_err_com_err=no
14828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14832 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14833 if test $ac_cv_lib_com_err_com_err = yes; then
14834 cat >>confdefs.h <<_ACEOF
14835 #define HAVE_LIBCOM_ERR 1
14836 _ACEOF
14838 LIBS="-lcom_err $LIBS"
14843 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14844 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14845 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 ac_check_lib_save_LIBS=$LIBS
14849 LIBS="-lk5crypto $LIBS"
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14857 /* Override any gcc2 internal prototype to avoid an error. */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char mit_des_cbc_encrypt ();
14865 main ()
14867 mit_des_cbc_encrypt ();
14869 return 0;
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874 (eval $ac_link) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } &&
14878 { ac_try='test -s conftest$ac_exeext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14892 LIBS=$ac_check_lib_save_LIBS
14894 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14895 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14896 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_LIBK5CRYPTO 1
14899 _ACEOF
14901 LIBS="-lk5crypto $LIBS"
14906 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14907 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14908 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 ac_check_lib_save_LIBS=$LIBS
14912 LIBS="-lcrypto $LIBS"
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14920 /* Override any gcc2 internal prototype to avoid an error. */
14921 #ifdef __cplusplus
14922 extern "C"
14923 #endif
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14926 char mit_des_cbc_encrypt ();
14928 main ()
14930 mit_des_cbc_encrypt ();
14932 return 0;
14934 _ACEOF
14935 rm -f conftest.$ac_objext conftest$ac_exeext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937 (eval $ac_link) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -s conftest$ac_exeext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14947 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14952 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14955 LIBS=$ac_check_lib_save_LIBS
14957 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14958 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14959 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14960 cat >>confdefs.h <<_ACEOF
14961 #define HAVE_LIBCRYPTO 1
14962 _ACEOF
14964 LIBS="-lcrypto $LIBS"
14969 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14970 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14971 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 else
14974 ac_check_lib_save_LIBS=$LIBS
14975 LIBS="-lkrb5 $LIBS"
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h. */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14983 /* Override any gcc2 internal prototype to avoid an error. */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14989 char krb5_init_context ();
14991 main ()
14993 krb5_init_context ();
14995 return 0;
14997 _ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000 (eval $ac_link) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -s conftest$ac_exeext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_cv_lib_krb5_krb5_init_context=yes
15011 else
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_cv_lib_krb5_krb5_init_context=no
15017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15018 LIBS=$ac_check_lib_save_LIBS
15020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15021 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15022 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15023 cat >>confdefs.h <<_ACEOF
15024 #define HAVE_LIBKRB5 1
15025 _ACEOF
15027 LIBS="-lkrb5 $LIBS"
15031 if test "${with_kerberos5+set}" != set; then
15033 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15034 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15035 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038 ac_check_lib_save_LIBS=$LIBS
15039 LIBS="-ldes425 $LIBS"
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15047 /* Override any gcc2 internal prototype to avoid an error. */
15048 #ifdef __cplusplus
15049 extern "C"
15050 #endif
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15053 char des_cbc_encrypt ();
15055 main ()
15057 des_cbc_encrypt ();
15059 return 0;
15061 _ACEOF
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15064 (eval $ac_link) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -s conftest$ac_exeext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15074 ac_cv_lib_des425_des_cbc_encrypt=yes
15075 else
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ac_cv_lib_des425_des_cbc_encrypt=no
15081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15082 LIBS=$ac_check_lib_save_LIBS
15084 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15085 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15086 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_LIBDES425 1
15089 _ACEOF
15091 LIBS="-ldes425 $LIBS"
15093 else
15095 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15096 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15097 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15098 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 else
15100 ac_check_lib_save_LIBS=$LIBS
15101 LIBS="-ldes $LIBS"
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 /* We use char because int might match the return type of a gcc2
15114 builtin and then its argument prototype would still apply. */
15115 char des_cbc_encrypt ();
15117 main ()
15119 des_cbc_encrypt ();
15121 return 0;
15123 _ACEOF
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15126 (eval $ac_link) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -s conftest$ac_exeext'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_cv_lib_des_des_cbc_encrypt=yes
15137 else
15138 echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 ac_cv_lib_des_des_cbc_encrypt=no
15143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15144 LIBS=$ac_check_lib_save_LIBS
15146 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15147 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15148 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_LIBDES 1
15151 _ACEOF
15153 LIBS="-ldes $LIBS"
15160 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15161 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15162 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15163 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 else
15165 ac_check_lib_save_LIBS=$LIBS
15166 LIBS="-lkrb4 $LIBS"
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15174 /* Override any gcc2 internal prototype to avoid an error. */
15175 #ifdef __cplusplus
15176 extern "C"
15177 #endif
15178 /* We use char because int might match the return type of a gcc2
15179 builtin and then its argument prototype would still apply. */
15180 char krb_get_cred ();
15182 main ()
15184 krb_get_cred ();
15186 return 0;
15188 _ACEOF
15189 rm -f conftest.$ac_objext conftest$ac_exeext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15191 (eval $ac_link) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -s conftest$ac_exeext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_lib_krb4_krb_get_cred=yes
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_cv_lib_krb4_krb_get_cred=no
15208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15209 LIBS=$ac_check_lib_save_LIBS
15211 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15212 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15213 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_LIBKRB4 1
15216 _ACEOF
15218 LIBS="-lkrb4 $LIBS"
15220 else
15222 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15223 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15224 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227 ac_check_lib_save_LIBS=$LIBS
15228 LIBS="-lkrb $LIBS"
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15236 /* Override any gcc2 internal prototype to avoid an error. */
15237 #ifdef __cplusplus
15238 extern "C"
15239 #endif
15240 /* We use char because int might match the return type of a gcc2
15241 builtin and then its argument prototype would still apply. */
15242 char krb_get_cred ();
15244 main ()
15246 krb_get_cred ();
15248 return 0;
15250 _ACEOF
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_krb_krb_get_cred=yes
15264 else
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_lib_krb_krb_get_cred=no
15270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15271 LIBS=$ac_check_lib_save_LIBS
15273 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15274 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15275 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15276 cat >>confdefs.h <<_ACEOF
15277 #define HAVE_LIBKRB 1
15278 _ACEOF
15280 LIBS="-lkrb $LIBS"
15288 if test "${with_kerberos5+set}" = set; then
15290 for ac_header in krb5.h
15292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15294 echo "$as_me:$LINENO: checking for $ac_header" >&5
15295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15301 else
15302 # Is the header compilable?
15303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15305 cat >conftest.$ac_ext <<_ACEOF
15306 /* confdefs.h. */
15307 _ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <$ac_header>
15313 _ACEOF
15314 rm -f conftest.$ac_objext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15316 (eval $ac_compile) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_header_compiler=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_header_compiler=no
15333 rm -f conftest.$ac_objext conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15335 echo "${ECHO_T}$ac_header_compiler" >&6
15337 # Is the header present?
15338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h. */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 #include <$ac_header>
15347 _ACEOF
15348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } >/dev/null; then
15356 if test -s conftest.err; then
15357 ac_cpp_err=$ac_c_preproc_warn_flag
15358 else
15359 ac_cpp_err=
15361 else
15362 ac_cpp_err=yes
15364 if test -z "$ac_cpp_err"; then
15365 ac_header_preproc=yes
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_preproc=no
15372 rm -f conftest.err conftest.$ac_ext
15373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15374 echo "${ECHO_T}$ac_header_preproc" >&6
15376 # So? What about this header?
15377 case $ac_header_compiler:$ac_header_preproc in
15378 yes:no )
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15383 ac_header_preproc=yes
15385 no:yes )
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15399 cat <<\_ASBOX
15400 ## ------------------------------------------ ##
15401 ## Report this to the AC_PACKAGE_NAME lists. ##
15402 ## ------------------------------------------ ##
15403 _ASBOX
15405 sed "s/^/$as_me: WARNING: /" >&2
15407 esac
15408 echo "$as_me:$LINENO: checking for $ac_header" >&5
15409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 eval "$as_ac_Header=\$ac_header_preproc"
15415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15420 cat >>confdefs.h <<_ACEOF
15421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15422 _ACEOF
15426 done
15428 else
15430 for ac_header in des.h
15432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15434 echo "$as_me:$LINENO: checking for $ac_header" >&5
15435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15441 else
15442 # Is the header compilable?
15443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 $ac_includes_default
15452 #include <$ac_header>
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_header_compiler=yes
15467 else
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 ac_header_compiler=no
15473 rm -f conftest.$ac_objext conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h. */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <$ac_header>
15487 _ACEOF
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null; then
15496 if test -s conftest.err; then
15497 ac_cpp_err=$ac_c_preproc_warn_flag
15498 else
15499 ac_cpp_err=
15501 else
15502 ac_cpp_err=yes
15504 if test -z "$ac_cpp_err"; then
15505 ac_header_preproc=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_preproc=no
15512 rm -f conftest.err conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15514 echo "${ECHO_T}$ac_header_preproc" >&6
15516 # So? What about this header?
15517 case $ac_header_compiler:$ac_header_preproc in
15518 yes:no )
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15523 ac_header_preproc=yes
15525 no:yes )
15526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15539 cat <<\_ASBOX
15540 ## ------------------------------------------ ##
15541 ## Report this to the AC_PACKAGE_NAME lists. ##
15542 ## ------------------------------------------ ##
15543 _ASBOX
15545 sed "s/^/$as_me: WARNING: /" >&2
15547 esac
15548 echo "$as_me:$LINENO: checking for $ac_header" >&5
15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553 eval "$as_ac_Header=\$ac_header_preproc"
15555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15560 cat >>confdefs.h <<_ACEOF
15561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15562 _ACEOF
15564 else
15566 for ac_header in kerberosIV/des.h
15568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15577 else
15578 # Is the header compilable?
15579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15589 _ACEOF
15590 rm -f conftest.$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_header_compiler=yes
15603 else
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 ac_header_compiler=no
15609 rm -f conftest.$ac_objext conftest.$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15611 echo "${ECHO_T}$ac_header_compiler" >&6
15613 # Is the header present?
15614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15616 cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h. */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 #include <$ac_header>
15623 _ACEOF
15624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15626 ac_status=$?
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } >/dev/null; then
15632 if test -s conftest.err; then
15633 ac_cpp_err=$ac_c_preproc_warn_flag
15634 else
15635 ac_cpp_err=
15637 else
15638 ac_cpp_err=yes
15640 if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15642 else
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_preproc=no
15648 rm -f conftest.err conftest.$ac_ext
15649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15650 echo "${ECHO_T}$ac_header_preproc" >&6
15652 # So? What about this header?
15653 case $ac_header_compiler:$ac_header_preproc in
15654 yes:no )
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15659 ac_header_preproc=yes
15661 no:yes )
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 cat <<\_ASBOX
15676 ## ------------------------------------------ ##
15677 ## Report this to the AC_PACKAGE_NAME lists. ##
15678 ## ------------------------------------------ ##
15679 _ASBOX
15681 sed "s/^/$as_me: WARNING: /" >&2
15683 esac
15684 echo "$as_me:$LINENO: checking for $ac_header" >&5
15685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689 eval "$as_ac_Header=\$ac_header_preproc"
15691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15698 _ACEOF
15700 else
15702 for ac_header in kerberos/des.h
15704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15713 else
15714 # Is the header compilable?
15715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 $ac_includes_default
15724 #include <$ac_header>
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_header_compiler=yes
15739 else
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_header_compiler=no
15745 rm -f conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15747 echo "${ECHO_T}$ac_header_compiler" >&6
15749 # Is the header present?
15750 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 #include <$ac_header>
15759 _ACEOF
15760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } >/dev/null; then
15768 if test -s conftest.err; then
15769 ac_cpp_err=$ac_c_preproc_warn_flag
15770 else
15771 ac_cpp_err=
15773 else
15774 ac_cpp_err=yes
15776 if test -z "$ac_cpp_err"; then
15777 ac_header_preproc=yes
15778 else
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ac_header_preproc=no
15784 rm -f conftest.err conftest.$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6
15788 # So? What about this header?
15789 case $ac_header_compiler:$ac_header_preproc in
15790 yes:no )
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795 ac_header_preproc=yes
15797 no:yes )
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15811 cat <<\_ASBOX
15812 ## ------------------------------------------ ##
15813 ## Report this to the AC_PACKAGE_NAME lists. ##
15814 ## ------------------------------------------ ##
15815 _ASBOX
15817 sed "s/^/$as_me: WARNING: /" >&2
15819 esac
15820 echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825 eval "$as_ac_Header=\$ac_header_preproc"
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15832 cat >>confdefs.h <<_ACEOF
15833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15834 _ACEOF
15838 done
15842 done
15846 done
15849 for ac_header in krb.h
15851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853 echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15860 else
15861 # Is the header compilable?
15862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h. */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 $ac_includes_default
15871 #include <$ac_header>
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -s conftest.$ac_objext'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15885 ac_header_compiler=yes
15886 else
15887 echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15890 ac_header_compiler=no
15892 rm -f conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15894 echo "${ECHO_T}$ac_header_compiler" >&6
15896 # Is the header present?
15897 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h. */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 #include <$ac_header>
15906 _ACEOF
15907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null; then
15915 if test -s conftest.err; then
15916 ac_cpp_err=$ac_c_preproc_warn_flag
15917 else
15918 ac_cpp_err=
15920 else
15921 ac_cpp_err=yes
15923 if test -z "$ac_cpp_err"; then
15924 ac_header_preproc=yes
15925 else
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_header_preproc=no
15931 rm -f conftest.err conftest.$ac_ext
15932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15933 echo "${ECHO_T}$ac_header_preproc" >&6
15935 # So? What about this header?
15936 case $ac_header_compiler:$ac_header_preproc in
15937 yes:no )
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15942 ac_header_preproc=yes
15944 no:yes )
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15958 cat <<\_ASBOX
15959 ## ------------------------------------------ ##
15960 ## Report this to the AC_PACKAGE_NAME lists. ##
15961 ## ------------------------------------------ ##
15962 _ASBOX
15964 sed "s/^/$as_me: WARNING: /" >&2
15966 esac
15967 echo "$as_me:$LINENO: checking for $ac_header" >&5
15968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972 eval "$as_ac_Header=\$ac_header_preproc"
15974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15979 cat >>confdefs.h <<_ACEOF
15980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15981 _ACEOF
15983 else
15985 for ac_header in kerberosIV/krb.h
15987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15989 echo "$as_me:$LINENO: checking for $ac_header" >&5
15990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15996 else
15997 # Is the header compilable?
15998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 $ac_includes_default
16007 #include <$ac_header>
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler=yes
16022 else
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_header_compiler=no
16028 rm -f conftest.$ac_objext conftest.$ac_ext
16029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16030 echo "${ECHO_T}$ac_header_compiler" >&6
16032 # Is the header present?
16033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h. */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <$ac_header>
16042 _ACEOF
16043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16045 ac_status=$?
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } >/dev/null; then
16051 if test -s conftest.err; then
16052 ac_cpp_err=$ac_c_preproc_warn_flag
16053 else
16054 ac_cpp_err=
16056 else
16057 ac_cpp_err=yes
16059 if test -z "$ac_cpp_err"; then
16060 ac_header_preproc=yes
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 ac_header_preproc=no
16067 rm -f conftest.err conftest.$ac_ext
16068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16069 echo "${ECHO_T}$ac_header_preproc" >&6
16071 # So? What about this header?
16072 case $ac_header_compiler:$ac_header_preproc in
16073 yes:no )
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16078 ac_header_preproc=yes
16080 no:yes )
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16094 cat <<\_ASBOX
16095 ## ------------------------------------------ ##
16096 ## Report this to the AC_PACKAGE_NAME lists. ##
16097 ## ------------------------------------------ ##
16098 _ASBOX
16100 sed "s/^/$as_me: WARNING: /" >&2
16102 esac
16103 echo "$as_me:$LINENO: checking for $ac_header" >&5
16104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108 eval "$as_ac_Header=\$ac_header_preproc"
16110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16117 _ACEOF
16119 else
16121 for ac_header in kerberos/krb.h
16123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16125 echo "$as_me:$LINENO: checking for $ac_header" >&5
16126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16132 else
16133 # Is the header compilable?
16134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 $ac_includes_default
16143 #include <$ac_header>
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler=yes
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_header_compiler=no
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16166 echo "${ECHO_T}$ac_header_compiler" >&6
16168 # Is the header present?
16169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 #include <$ac_header>
16178 _ACEOF
16179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev/null; then
16187 if test -s conftest.err; then
16188 ac_cpp_err=$ac_c_preproc_warn_flag
16189 else
16190 ac_cpp_err=
16192 else
16193 ac_cpp_err=yes
16195 if test -z "$ac_cpp_err"; then
16196 ac_header_preproc=yes
16197 else
16198 echo "$as_me: failed program was:" >&5
16199 sed 's/^/| /' conftest.$ac_ext >&5
16201 ac_header_preproc=no
16203 rm -f conftest.err conftest.$ac_ext
16204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16205 echo "${ECHO_T}$ac_header_preproc" >&6
16207 # So? What about this header?
16208 case $ac_header_compiler:$ac_header_preproc in
16209 yes:no )
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16214 ac_header_preproc=yes
16216 no:yes )
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16230 cat <<\_ASBOX
16231 ## ------------------------------------------ ##
16232 ## Report this to the AC_PACKAGE_NAME lists. ##
16233 ## ------------------------------------------ ##
16234 _ASBOX
16236 sed "s/^/$as_me: WARNING: /" >&2
16238 esac
16239 echo "$as_me:$LINENO: checking for $ac_header" >&5
16240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 else
16244 eval "$as_ac_Header=\$ac_header_preproc"
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16251 cat >>confdefs.h <<_ACEOF
16252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16253 _ACEOF
16257 done
16261 done
16265 done
16269 for ac_header in com_err.h
16271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16273 echo "$as_me:$LINENO: checking for $ac_header" >&5
16274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16280 else
16281 # Is the header compilable?
16282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16291 #include <$ac_header>
16292 _ACEOF
16293 rm -f conftest.$ac_objext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295 (eval $ac_compile) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -s conftest.$ac_objext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_header_compiler=yes
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_header_compiler=no
16312 rm -f conftest.$ac_objext conftest.$ac_ext
16313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16314 echo "${ECHO_T}$ac_header_compiler" >&6
16316 # Is the header present?
16317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <$ac_header>
16326 _ACEOF
16327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } >/dev/null; then
16335 if test -s conftest.err; then
16336 ac_cpp_err=$ac_c_preproc_warn_flag
16337 else
16338 ac_cpp_err=
16340 else
16341 ac_cpp_err=yes
16343 if test -z "$ac_cpp_err"; then
16344 ac_header_preproc=yes
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_header_preproc=no
16351 rm -f conftest.err conftest.$ac_ext
16352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16353 echo "${ECHO_T}$ac_header_preproc" >&6
16355 # So? What about this header?
16356 case $ac_header_compiler:$ac_header_preproc in
16357 yes:no )
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16362 ac_header_preproc=yes
16364 no:yes )
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16378 cat <<\_ASBOX
16379 ## ------------------------------------------ ##
16380 ## Report this to the AC_PACKAGE_NAME lists. ##
16381 ## ------------------------------------------ ##
16382 _ASBOX
16384 sed "s/^/$as_me: WARNING: /" >&2
16386 esac
16387 echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 eval "$as_ac_Header=\$ac_header_preproc"
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16399 cat >>confdefs.h <<_ACEOF
16400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16401 _ACEOF
16405 done
16409 # Solaris requires -lintl if you want strerror (which calls dgettext)
16410 # to return localized messages.
16412 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16413 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16414 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 ac_check_lib_save_LIBS=$LIBS
16418 LIBS="-lintl $LIBS"
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16426 /* Override any gcc2 internal prototype to avoid an error. */
16427 #ifdef __cplusplus
16428 extern "C"
16429 #endif
16430 /* We use char because int might match the return type of a gcc2
16431 builtin and then its argument prototype would still apply. */
16432 char dgettext ();
16434 main ()
16436 dgettext ();
16438 return 0;
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_lib_intl_dgettext=yes
16454 else
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_cv_lib_intl_dgettext=no
16460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16461 LIBS=$ac_check_lib_save_LIBS
16463 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16464 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16465 if test $ac_cv_lib_intl_dgettext = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define HAVE_LIBINTL 1
16468 _ACEOF
16470 LIBS="-lintl $LIBS"
16475 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16476 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16477 if test "${emacs_cv_localtime_cache+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480 if test x$ac_cv_func_tzset = xyes; then
16481 if test "$cross_compiling" = yes; then
16482 # If we have tzset, assume the worst when cross-compiling.
16483 emacs_cv_localtime_cache=yes
16484 else
16485 cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h. */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 #include <time.h>
16492 extern char **environ;
16493 unset_TZ ()
16495 char **from, **to;
16496 for (to = from = environ; (*to = *from); from++)
16497 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16498 to++;
16500 char TZ_GMT0[] = "TZ=GMT0";
16501 char TZ_PST8[] = "TZ=PST8";
16502 main()
16504 time_t now = time ((time_t *) 0);
16505 int hour_GMT0, hour_unset;
16506 if (putenv (TZ_GMT0) != 0)
16507 exit (1);
16508 hour_GMT0 = localtime (&now)->tm_hour;
16509 unset_TZ ();
16510 hour_unset = localtime (&now)->tm_hour;
16511 if (putenv (TZ_PST8) != 0)
16512 exit (1);
16513 if (localtime (&now)->tm_hour == hour_GMT0)
16514 exit (1);
16515 unset_TZ ();
16516 if (localtime (&now)->tm_hour != hour_unset)
16517 exit (1);
16518 exit (0);
16520 _ACEOF
16521 rm -f conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>&5
16524 ac_status=$?
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 emacs_cv_localtime_cache=no
16533 else
16534 echo "$as_me: program exited with status $ac_status" >&5
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ( exit $ac_status )
16539 emacs_cv_localtime_cache=yes
16541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16543 else
16544 # If we lack tzset, report that localtime does not cache TZ,
16545 # since we can't invalidate the cache if we don't have tzset.
16546 emacs_cv_localtime_cache=no
16549 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16550 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16551 if test $emacs_cv_localtime_cache = yes; then
16553 cat >>confdefs.h <<\_ACEOF
16554 #define LOCALTIME_CACHE 1
16555 _ACEOF
16559 if test "x$HAVE_TIMEVAL" = xyes; then
16561 for ac_func in gettimeofday
16563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16564 echo "$as_me:$LINENO: checking for $ac_func" >&5
16565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16566 if eval "test \"\${$as_ac_var+set}\" = set"; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16577 #define $ac_func innocuous_$ac_func
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char $ac_func (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16584 #ifdef __STDC__
16585 # include <limits.h>
16586 #else
16587 # include <assert.h>
16588 #endif
16590 #undef $ac_func
16592 /* Override any gcc2 internal prototype to avoid an error. */
16593 #ifdef __cplusplus
16594 extern "C"
16596 #endif
16597 /* We use char because int might match the return type of a gcc2
16598 builtin and then its argument prototype would still apply. */
16599 char $ac_func ();
16600 /* The GNU C library defines this for functions which it implements
16601 to always fail with ENOSYS. Some functions are actually named
16602 something starting with __ and the normal name is an alias. */
16603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16604 choke me
16605 #else
16606 char (*f) () = $ac_func;
16607 #endif
16608 #ifdef __cplusplus
16610 #endif
16613 main ()
16615 return f != $ac_func;
16617 return 0;
16619 _ACEOF
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16622 (eval $ac_link) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -s conftest$ac_exeext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 eval "$as_ac_var=yes"
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 eval "$as_ac_var=no"
16639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16643 if test `eval echo '${'$as_ac_var'}'` = yes; then
16644 cat >>confdefs.h <<_ACEOF
16645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16646 _ACEOF
16649 done
16651 if test $ac_cv_func_gettimeofday = yes; then
16652 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16653 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16654 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 else
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h. */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16664 #ifdef TIME_WITH_SYS_TIME
16665 #include <sys/time.h>
16666 #include <time.h>
16667 #else
16668 #ifdef HAVE_SYS_TIME_H
16669 #include <sys/time.h>
16670 #else
16671 #include <time.h>
16672 #endif
16673 #endif
16675 main ()
16677 struct timeval time;
16678 gettimeofday (&time, 0);
16680 return 0;
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 emacs_cv_gettimeofday_two_arguments=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 emacs_cv_gettimeofday_two_arguments=no
16702 rm -f conftest.$ac_objext conftest.$ac_ext
16704 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16705 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16706 if test $emacs_cv_gettimeofday_two_arguments = no; then
16708 cat >>confdefs.h <<\_ACEOF
16709 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16710 _ACEOF
16716 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16717 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16718 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16719 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 #include <sys/types.h>
16729 #include <$ac_cv_struct_tm>
16733 main ()
16735 static struct tm ac_aggr;
16736 if (ac_aggr.tm_zone)
16737 return 0;
16739 return 0;
16741 _ACEOF
16742 rm -f conftest.$ac_objext
16743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16744 (eval $ac_compile) 2>&5
16745 ac_status=$?
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754 ac_cv_member_struct_tm_tm_zone=yes
16755 else
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h. */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16766 #include <$ac_cv_struct_tm>
16770 main ()
16772 static struct tm ac_aggr;
16773 if (sizeof ac_aggr.tm_zone)
16774 return 0;
16776 return 0;
16778 _ACEOF
16779 rm -f conftest.$ac_objext
16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -s conftest.$ac_objext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_member_struct_tm_tm_zone=yes
16792 else
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_cv_member_struct_tm_tm_zone=no
16798 rm -f conftest.$ac_objext conftest.$ac_ext
16800 rm -f conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16803 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16804 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16806 cat >>confdefs.h <<_ACEOF
16807 #define HAVE_STRUCT_TM_TM_ZONE 1
16808 _ACEOF
16813 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16815 cat >>confdefs.h <<\_ACEOF
16816 #define HAVE_TM_ZONE 1
16817 _ACEOF
16819 else
16820 echo "$as_me:$LINENO: checking for tzname" >&5
16821 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16822 if test "${ac_cv_var_tzname+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <time.h>
16832 #ifndef tzname /* For SGI. */
16833 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16834 #endif
16837 main ()
16839 atoi(*tzname);
16841 return 0;
16843 _ACEOF
16844 rm -f conftest.$ac_objext conftest$ac_exeext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16846 (eval $ac_link) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -s conftest$ac_exeext'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_var_tzname=yes
16857 else
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_var_tzname=no
16863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16866 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16867 if test $ac_cv_var_tzname = yes; then
16869 cat >>confdefs.h <<\_ACEOF
16870 #define HAVE_TZNAME 1
16871 _ACEOF
16877 if test "$ac_cv_func_gettimeofday" = yes; then
16878 echo "$as_me:$LINENO: checking for struct timezone" >&5
16879 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16880 if test "${emacs_cv_struct_timezone+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #include <sys/time.h>
16891 main ()
16893 struct timezone tz;
16895 return 0;
16897 _ACEOF
16898 rm -f conftest.$ac_objext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16900 (eval $ac_compile) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -s conftest.$ac_objext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 if test "$cross_compiling" = yes; then
16911 emacs_cv_struct_timezone=yes
16912 else
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h. */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16920 #ifdef TIME_WITH_SYS_TIME
16921 #include <sys/time.h>
16922 #include <time.h>
16923 #else
16924 #ifdef HAVE_SYS_TIME_H
16925 #include <sys/time.h>
16926 #else
16927 #include <time.h>
16928 #endif
16929 #endif
16930 main () {
16931 struct timeval time;
16932 struct timezone dummy;
16933 exit (gettimeofday (&time, &dummy));
16935 _ACEOF
16936 rm -f conftest$ac_exeext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 emacs_cv_struct_timezone=yes
16948 else
16949 echo "$as_me: program exited with status $ac_status" >&5
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 ( exit $ac_status )
16954 emacs_cv_struct_timezone=no
16956 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 emacs_cv_struct_timezone=no
16964 rm -f conftest.$ac_objext conftest.$ac_ext
16966 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16967 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16970 ok_so_far=yes
16971 echo "$as_me:$LINENO: checking for socket" >&5
16972 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16973 if test "${ac_cv_func_socket+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h. */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984 #define socket innocuous_socket
16986 /* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char socket (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16991 #ifdef __STDC__
16992 # include <limits.h>
16993 #else
16994 # include <assert.h>
16995 #endif
16997 #undef socket
16999 /* Override any gcc2 internal prototype to avoid an error. */
17000 #ifdef __cplusplus
17001 extern "C"
17003 #endif
17004 /* We use char because int might match the return type of a gcc2
17005 builtin and then its argument prototype would still apply. */
17006 char socket ();
17007 /* The GNU C library defines this for functions which it implements
17008 to always fail with ENOSYS. Some functions are actually named
17009 something starting with __ and the normal name is an alias. */
17010 #if defined (__stub_socket) || defined (__stub___socket)
17011 choke me
17012 #else
17013 char (*f) () = socket;
17014 #endif
17015 #ifdef __cplusplus
17017 #endif
17020 main ()
17022 return f != socket;
17024 return 0;
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17029 (eval $ac_link) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -s conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_func_socket=yes
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 ac_cv_func_socket=no
17046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17049 echo "${ECHO_T}$ac_cv_func_socket" >&6
17050 if test $ac_cv_func_socket = yes; then
17052 else
17053 ok_so_far=no
17056 if test $ok_so_far = yes; then
17057 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17058 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17059 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17060 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17064 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17065 else
17066 # Is the header compilable?
17067 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17068 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 $ac_includes_default
17076 #include <netinet/in.h>
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17080 (eval $ac_compile) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } &&
17084 { ac_try='test -s conftest.$ac_objext'
17085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086 (eval $ac_try) 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_header_compiler=yes
17091 else
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_header_compiler=no
17097 rm -f conftest.$ac_objext conftest.$ac_ext
17098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17099 echo "${ECHO_T}$ac_header_compiler" >&6
17101 # Is the header present?
17102 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17103 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17104 cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h. */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 #include <netinet/in.h>
17111 _ACEOF
17112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } >/dev/null; then
17120 if test -s conftest.err; then
17121 ac_cpp_err=$ac_c_preproc_warn_flag
17122 else
17123 ac_cpp_err=
17125 else
17126 ac_cpp_err=yes
17128 if test -z "$ac_cpp_err"; then
17129 ac_header_preproc=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_header_preproc=no
17136 rm -f conftest.err conftest.$ac_ext
17137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17138 echo "${ECHO_T}$ac_header_preproc" >&6
17140 # So? What about this header?
17141 case $ac_header_compiler:$ac_header_preproc in
17142 yes:no )
17143 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17144 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17145 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17146 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17147 ac_header_preproc=yes
17149 no:yes )
17150 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17151 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17152 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17153 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17154 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
17155 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
17157 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17159 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
17161 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17163 cat <<\_ASBOX
17164 ## ------------------------------------------ ##
17165 ## Report this to the AC_PACKAGE_NAME lists. ##
17166 ## ------------------------------------------ ##
17167 _ASBOX
17169 sed "s/^/$as_me: WARNING: /" >&2
17171 esac
17172 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17173 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17174 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177 ac_cv_header_netinet_in_h=$ac_header_preproc
17179 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17180 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17183 if test $ac_cv_header_netinet_in_h = yes; then
17185 else
17186 ok_so_far=no
17191 if test $ok_so_far = yes; then
17192 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17193 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17194 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17195 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17199 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17200 else
17201 # Is the header compilable?
17202 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17203 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 $ac_includes_default
17211 #include <arpa/inet.h>
17212 _ACEOF
17213 rm -f conftest.$ac_objext
17214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_header_compiler=yes
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_header_compiler=no
17232 rm -f conftest.$ac_objext conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17234 echo "${ECHO_T}$ac_header_compiler" >&6
17236 # Is the header present?
17237 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17238 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 #include <arpa/inet.h>
17246 _ACEOF
17247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } >/dev/null; then
17255 if test -s conftest.err; then
17256 ac_cpp_err=$ac_c_preproc_warn_flag
17257 else
17258 ac_cpp_err=
17260 else
17261 ac_cpp_err=yes
17263 if test -z "$ac_cpp_err"; then
17264 ac_header_preproc=yes
17265 else
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_header_preproc=no
17271 rm -f conftest.err conftest.$ac_ext
17272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17273 echo "${ECHO_T}$ac_header_preproc" >&6
17275 # So? What about this header?
17276 case $ac_header_compiler:$ac_header_preproc in
17277 yes:no )
17278 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17279 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17281 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17282 ac_header_preproc=yes
17284 no:yes )
17285 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17286 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17287 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17288 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17289 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
17290 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
17291 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
17292 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17293 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17294 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17295 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
17296 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17298 cat <<\_ASBOX
17299 ## ------------------------------------------ ##
17300 ## Report this to the AC_PACKAGE_NAME lists. ##
17301 ## ------------------------------------------ ##
17302 _ASBOX
17304 sed "s/^/$as_me: WARNING: /" >&2
17306 esac
17307 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17308 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17309 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 else
17312 ac_cv_header_arpa_inet_h=$ac_header_preproc
17314 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17315 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17318 if test $ac_cv_header_arpa_inet_h = yes; then
17320 else
17321 ok_so_far=no
17326 if test $ok_so_far = yes; then
17328 cat >>confdefs.h <<\_ACEOF
17329 #define HAVE_INET_SOCKETS 1
17330 _ACEOF
17334 if test -f /usr/lpp/X11/bin/smt.exp; then
17336 cat >>confdefs.h <<\_ACEOF
17337 #define HAVE_AIX_SMT_EXP 1
17338 _ACEOF
17342 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17343 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17344 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17345 echo "$as_me:$LINENO: result: yes" >&5
17346 echo "${ECHO_T}yes" >&6
17348 cat >>confdefs.h <<\_ACEOF
17349 #define HAVE_DEV_PTMX 1
17350 _ACEOF
17352 else
17353 echo "$as_me:$LINENO: result: no" >&5
17354 echo "${ECHO_T}no" >&6
17357 echo "$as_me:$LINENO: checking for pid_t" >&5
17358 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17359 if test "${ac_cv_type_pid_t+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 $ac_includes_default
17370 main ()
17372 if ((pid_t *) 0)
17373 return 0;
17374 if (sizeof (pid_t))
17375 return 0;
17377 return 0;
17379 _ACEOF
17380 rm -f conftest.$ac_objext
17381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17382 (eval $ac_compile) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try='test -s conftest.$ac_objext'
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_cv_type_pid_t=yes
17393 else
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_cv_type_pid_t=no
17399 rm -f conftest.$ac_objext conftest.$ac_ext
17401 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17402 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17403 if test $ac_cv_type_pid_t = yes; then
17405 else
17407 cat >>confdefs.h <<_ACEOF
17408 #define pid_t int
17409 _ACEOF
17415 for ac_header in unistd.h vfork.h
17417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17419 echo "$as_me:$LINENO: checking for $ac_header" >&5
17420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17426 else
17427 # Is the header compilable?
17428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 $ac_includes_default
17437 #include <$ac_header>
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } &&
17445 { ac_try='test -s conftest.$ac_objext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_header_compiler=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_header_compiler=no
17458 rm -f conftest.$ac_objext conftest.$ac_ext
17459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17460 echo "${ECHO_T}$ac_header_compiler" >&6
17462 # Is the header present?
17463 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 #include <$ac_header>
17472 _ACEOF
17473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17475 ac_status=$?
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } >/dev/null; then
17481 if test -s conftest.err; then
17482 ac_cpp_err=$ac_c_preproc_warn_flag
17483 else
17484 ac_cpp_err=
17486 else
17487 ac_cpp_err=yes
17489 if test -z "$ac_cpp_err"; then
17490 ac_header_preproc=yes
17491 else
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 ac_header_preproc=no
17497 rm -f conftest.err conftest.$ac_ext
17498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17499 echo "${ECHO_T}$ac_header_preproc" >&6
17501 # So? What about this header?
17502 case $ac_header_compiler:$ac_header_preproc in
17503 yes:no )
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17508 ac_header_preproc=yes
17510 no:yes )
17511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17524 cat <<\_ASBOX
17525 ## ------------------------------------------ ##
17526 ## Report this to the AC_PACKAGE_NAME lists. ##
17527 ## ------------------------------------------ ##
17528 _ASBOX
17530 sed "s/^/$as_me: WARNING: /" >&2
17532 esac
17533 echo "$as_me:$LINENO: checking for $ac_header" >&5
17534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538 eval "$as_ac_Header=\$ac_header_preproc"
17540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17545 cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17547 _ACEOF
17551 done
17555 for ac_func in fork vfork
17557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17558 echo "$as_me:$LINENO: checking for $ac_func" >&5
17559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_var+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17571 #define $ac_func innocuous_$ac_func
17573 /* System header to define __stub macros and hopefully few prototypes,
17574 which can conflict with char $ac_func (); below.
17575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17576 <limits.h> exists even on freestanding compilers. */
17578 #ifdef __STDC__
17579 # include <limits.h>
17580 #else
17581 # include <assert.h>
17582 #endif
17584 #undef $ac_func
17586 /* Override any gcc2 internal prototype to avoid an error. */
17587 #ifdef __cplusplus
17588 extern "C"
17590 #endif
17591 /* We use char because int might match the return type of a gcc2
17592 builtin and then its argument prototype would still apply. */
17593 char $ac_func ();
17594 /* The GNU C library defines this for functions which it implements
17595 to always fail with ENOSYS. Some functions are actually named
17596 something starting with __ and the normal name is an alias. */
17597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17598 choke me
17599 #else
17600 char (*f) () = $ac_func;
17601 #endif
17602 #ifdef __cplusplus
17604 #endif
17607 main ()
17609 return f != $ac_func;
17611 return 0;
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; }; then
17626 eval "$as_ac_var=yes"
17627 else
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 eval "$as_ac_var=no"
17633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17640 _ACEOF
17643 done
17645 if test "x$ac_cv_func_fork" = xyes; then
17646 echo "$as_me:$LINENO: checking for working fork" >&5
17647 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17648 if test "${ac_cv_func_fork_works+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 if test "$cross_compiling" = yes; then
17652 ac_cv_func_fork_works=cross
17653 else
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* By Ruediger Kuhlmann. */
17656 #include <sys/types.h>
17657 #if HAVE_UNISTD_H
17658 # include <unistd.h>
17659 #endif
17660 /* Some systems only have a dummy stub for fork() */
17661 int main ()
17663 if (fork() < 0)
17664 exit (1);
17665 exit (0);
17667 _ACEOF
17668 rm -f conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670 (eval $ac_link) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_func_fork_works=yes
17680 else
17681 echo "$as_me: program exited with status $ac_status" >&5
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ( exit $ac_status )
17686 ac_cv_func_fork_works=no
17688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17691 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17692 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17694 else
17695 ac_cv_func_fork_works=$ac_cv_func_fork
17697 if test "x$ac_cv_func_fork_works" = xcross; then
17698 case $host in
17699 *-*-amigaos* | *-*-msdosdjgpp*)
17700 # Override, as these systems have only a dummy fork() stub
17701 ac_cv_func_fork_works=no
17704 ac_cv_func_fork_works=yes
17706 esac
17707 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17708 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17710 ac_cv_func_vfork_works=$ac_cv_func_vfork
17711 if test "x$ac_cv_func_vfork" = xyes; then
17712 echo "$as_me:$LINENO: checking for working vfork" >&5
17713 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17714 if test "${ac_cv_func_vfork_works+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717 if test "$cross_compiling" = yes; then
17718 ac_cv_func_vfork_works=cross
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* Thanks to Paul Eggert for this test. */
17727 #include <stdio.h>
17728 #include <stdlib.h>
17729 #include <sys/types.h>
17730 #include <sys/stat.h>
17731 #include <sys/wait.h>
17732 #if HAVE_UNISTD_H
17733 # include <unistd.h>
17734 #endif
17735 #if HAVE_VFORK_H
17736 # include <vfork.h>
17737 #endif
17738 /* On some sparc systems, changes by the child to local and incoming
17739 argument registers are propagated back to the parent. The compiler
17740 is told about this with #include <vfork.h>, but some compilers
17741 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17742 static variable whose address is put into a register that is
17743 clobbered by the vfork. */
17744 static void
17745 #ifdef __cplusplus
17746 sparc_address_test (int arg)
17747 # else
17748 sparc_address_test (arg) int arg;
17749 #endif
17751 static pid_t child;
17752 if (!child) {
17753 child = vfork ();
17754 if (child < 0) {
17755 perror ("vfork");
17756 _exit(2);
17758 if (!child) {
17759 arg = getpid();
17760 write(-1, "", 0);
17761 _exit (arg);
17767 main ()
17769 pid_t parent = getpid ();
17770 pid_t child;
17772 sparc_address_test (0);
17774 child = vfork ();
17776 if (child == 0) {
17777 /* Here is another test for sparc vfork register problems. This
17778 test uses lots of local variables, at least as many local
17779 variables as main has allocated so far including compiler
17780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17782 reuse the register of parent for one of the local variables,
17783 since it will think that parent can't possibly be used any more
17784 in this routine. Assigning to the local variable will thus
17785 munge parent in the parent process. */
17786 pid_t
17787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17789 /* Convince the compiler that p..p7 are live; otherwise, it might
17790 use the same hardware register for all 8 local variables. */
17791 if (p != p1 || p != p2 || p != p3 || p != p4
17792 || p != p5 || p != p6 || p != p7)
17793 _exit(1);
17795 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17796 from child file descriptors. If the child closes a descriptor
17797 before it execs or exits, this munges the parent's descriptor
17798 as well. Test for this by closing stdout in the child. */
17799 _exit(close(fileno(stdout)) != 0);
17800 } else {
17801 int status;
17802 struct stat st;
17804 while (wait(&status) != child)
17806 exit(
17807 /* Was there some problem with vforking? */
17808 child < 0
17810 /* Did the child fail? (This shouldn't happen.) */
17811 || status
17813 /* Did the vfork/compiler bug occur? */
17814 || parent != getpid()
17816 /* Did the file descriptor bug occur? */
17817 || fstat(fileno(stdout), &st) != 0
17821 _ACEOF
17822 rm -f conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_func_vfork_works=yes
17834 else
17835 echo "$as_me: program exited with status $ac_status" >&5
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 ( exit $ac_status )
17840 ac_cv_func_vfork_works=no
17842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17846 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17849 if test "x$ac_cv_func_fork_works" = xcross; then
17850 ac_cv_func_vfork_works=ac_cv_func_vfork
17851 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17852 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17855 if test "x$ac_cv_func_vfork_works" = xyes; then
17857 cat >>confdefs.h <<\_ACEOF
17858 #define HAVE_WORKING_VFORK 1
17859 _ACEOF
17861 else
17863 cat >>confdefs.h <<\_ACEOF
17864 #define vfork fork
17865 _ACEOF
17868 if test "x$ac_cv_func_fork_works" = xyes; then
17870 cat >>confdefs.h <<\_ACEOF
17871 #define HAVE_WORKING_FORK 1
17872 _ACEOF
17877 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17878 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17879 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 #include <langinfo.h>
17890 main ()
17892 char* cs = nl_langinfo(CODESET);
17894 return 0;
17896 _ACEOF
17897 rm -f conftest.$ac_objext conftest$ac_exeext
17898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17899 (eval $ac_link) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); } &&
17903 { ac_try='test -s conftest$ac_exeext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 emacs_cv_langinfo_codeset=yes
17910 else
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 emacs_cv_langinfo_codeset=no
17916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17920 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17921 if test $emacs_cv_langinfo_codeset = yes; then
17923 cat >>confdefs.h <<\_ACEOF
17924 #define HAVE_LANGINFO_CODESET 1
17925 _ACEOF
17929 echo "$as_me:$LINENO: checking for size_t" >&5
17930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17931 if test "${ac_cv_type_size_t+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h. */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 $ac_includes_default
17942 main ()
17944 if ((size_t *) 0)
17945 return 0;
17946 if (sizeof (size_t))
17947 return 0;
17949 return 0;
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17954 (eval $ac_compile) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -s conftest.$ac_objext'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17961 ac_status=$?
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964 ac_cv_type_size_t=yes
17965 else
17966 echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17969 ac_cv_type_size_t=no
17971 rm -f conftest.$ac_objext conftest.$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17974 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17975 if test $ac_cv_type_size_t = yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_SIZE_T 1
17979 _ACEOF
17985 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17986 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17987 if test "${ac_cv_type_mbstate_t+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h. */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 # include <wchar.h>
17999 main ()
18001 mbstate_t x; return sizeof x;
18003 return 0;
18005 _ACEOF
18006 rm -f conftest.$ac_objext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18008 (eval $ac_compile) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -s conftest.$ac_objext'
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 ac_cv_type_mbstate_t=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_cv_type_mbstate_t=no
18025 rm -f conftest.$ac_objext conftest.$ac_ext
18027 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18028 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18029 if test $ac_cv_type_mbstate_t = yes; then
18031 cat >>confdefs.h <<\_ACEOF
18032 #define HAVE_MBSTATE_T 1
18033 _ACEOF
18035 else
18037 cat >>confdefs.h <<\_ACEOF
18038 #define mbstate_t int
18039 _ACEOF
18043 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18044 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18045 if test "${emacs_cv_c_restrict+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 void fred (int *restrict x);
18056 main ()
18060 return 0;
18062 _ACEOF
18063 rm -f conftest.$ac_objext
18064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18065 (eval $ac_compile) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -s conftest.$ac_objext'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075 emacs_cv_c_restrict=yes
18076 else
18077 echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 void fred (int *__restrict x);
18088 main ()
18092 return 0;
18094 _ACEOF
18095 rm -f conftest.$ac_objext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 emacs_cv_c_restrict=__restrict
18108 else
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 emacs_cv_c_restrict=no
18114 rm -f conftest.$ac_objext conftest.$ac_ext
18116 rm -f conftest.$ac_objext conftest.$ac_ext
18118 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18119 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18120 case "$emacs_cv_c_restrict" in
18121 yes) emacs_restrict=restrict;;
18122 no) emacs_restrict="";;
18123 *) emacs_restrict="$emacs_cv_c_restrict";;
18124 esac
18125 if test "$emacs_restrict" != __restrict; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define __restrict $emacs_restrict
18129 _ACEOF
18133 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18134 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18135 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18136 echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138 cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 void fred (int x[__restrict]);
18146 main ()
18150 return 0;
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -s conftest.$ac_objext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 emacs_cv_c_restrict_arr=yes
18166 else
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 emacs_cv_c_restrict_arr=no
18172 rm -f conftest.$ac_objext conftest.$ac_ext
18174 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18175 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18176 if test "$emacs_cv_c_restrict_arr" = yes; then
18178 cat >>confdefs.h <<\_ACEOF
18179 #define __restrict_arr __restrict
18180 _ACEOF
18186 # Set up the CFLAGS for real compilation, so we can substitute it.
18187 CFLAGS="$REAL_CFLAGS"
18188 CPPFLAGS="$REAL_CPPFLAGS"
18190 #### Find out which version of Emacs this is.
18191 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18192 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18193 if test x"${version}" = x; then
18194 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18195 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18196 { (exit 1); exit 1; }; }
18199 ### Specify what sort of things we'll be editing into Makefile and config.h.
18200 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18236 cat >>confdefs.h <<_ACEOF
18237 #define EMACS_CONFIGURATION "${canonical}"
18238 _ACEOF
18241 cat >>confdefs.h <<_ACEOF
18242 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18243 _ACEOF
18246 cat >>confdefs.h <<_ACEOF
18247 #define config_machfile "${machfile}"
18248 _ACEOF
18251 cat >>confdefs.h <<_ACEOF
18252 #define config_opsysfile "${opsysfile}"
18253 _ACEOF
18256 cat >>confdefs.h <<_ACEOF
18257 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18258 _ACEOF
18261 cat >>confdefs.h <<_ACEOF
18262 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18263 _ACEOF
18266 cat >>confdefs.h <<_ACEOF
18267 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18268 _ACEOF
18271 cat >>confdefs.h <<_ACEOF
18272 #define UNEXEC_SRC ${UNEXEC_SRC}
18273 _ACEOF
18276 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_X_WINDOWS 1
18280 _ACEOF
18283 if test "${USE_X_TOOLKIT}" != "none" ; then
18285 cat >>confdefs.h <<\_ACEOF
18286 #define USE_X_TOOLKIT 1
18287 _ACEOF
18290 if test "${HAVE_X11}" = "yes" ; then
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_X11 1
18294 _ACEOF
18297 if test "${HAVE_XFREE386}" = "yes" ; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_XFREE386 1
18301 _ACEOF
18304 if test "${HAVE_MENUS}" = "yes" ; then
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_MENUS 1
18308 _ACEOF
18311 if test "${GNU_MALLOC}" = "yes" ; then
18313 cat >>confdefs.h <<\_ACEOF
18314 #define GNU_MALLOC 1
18315 _ACEOF
18318 if test "${REL_ALLOC}" = "yes" ; then
18320 cat >>confdefs.h <<\_ACEOF
18321 #define REL_ALLOC 1
18322 _ACEOF
18330 #### Report on what we decided to do.
18331 #### Report GTK as a toolkit, even if it doesn't use Xt.
18332 #### It makes printing result more understandable as using GTK sets
18333 #### toolkit_scroll_bars to yes by default.
18334 if test "${HAVE_GTK}" = "yes"; then
18335 USE_X_TOOLKIT=GTK
18338 echo "
18339 Configured for \`${canonical}'.
18341 Where should the build process find the source code? ${srcdir}
18342 What operating system and machine description files should Emacs use?
18343 \`${opsysfile}' and \`${machfile}'
18344 What compiler should emacs be built with? ${CC} ${CFLAGS}
18345 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18346 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18347 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18348 What window system should Emacs use? ${window_system}
18349 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18351 if test -n "${x_includes}"; then
18352 echo " Where do we find X Windows header files? ${x_includes}"
18353 else
18354 echo " Where do we find X Windows header files? Standard dirs"
18356 if test -n "${x_libraries}"; then
18357 echo " Where do we find X Windows libraries? ${x_libraries}"
18358 else
18359 echo " Where do we find X Windows libraries? Standard dirs"
18362 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18363 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18364 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18365 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18366 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18367 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18368 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18369 echo
18371 # Remove any trailing slashes in these variables.
18372 test "${prefix}" != NONE &&
18373 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18374 test "${exec_prefix}" != NONE &&
18375 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18377 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18378 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18379 ## from Makefile.c can correctly provide the arg `-traditional' to the
18380 ## C preprocessor.
18382 cat >conftest.$ac_ext <<_ACEOF
18383 /* confdefs.h. */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 yes..yes
18389 _ACEOF
18390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18391 $EGREP "yes..yes" >/dev/null 2>&1; then
18392 CPP_NEED_TRADITIONAL=no
18393 else
18394 CPP_NEED_TRADITIONAL=yes
18396 rm -f conftest*
18399 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"
18400 ac_config_commands="$ac_config_commands default"
18401 cat >confcache <<\_ACEOF
18402 # This file is a shell script that caches the results of configure
18403 # tests run on this system so they can be shared between configure
18404 # scripts and configure runs, see configure's option --config-cache.
18405 # It is not useful on other systems. If it contains results you don't
18406 # want to keep, you may remove or edit it.
18408 # config.status only pays attention to the cache file if you give it
18409 # the --recheck option to rerun configure.
18411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18413 # following values.
18415 _ACEOF
18417 # The following way of writing the cache mishandles newlines in values,
18418 # but we know of no workaround that is simple, portable, and efficient.
18419 # So, don't put newlines in cache variables' values.
18420 # Ultrix sh set writes to stderr and can't be redirected directly,
18421 # and sets the high bit in the cache file unless we assign to the vars.
18423 (set) 2>&1 |
18424 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18425 *ac_space=\ *)
18426 # `set' does not quote correctly, so add quotes (double-quote
18427 # substitution turns \\\\ into \\, and sed turns \\ into \).
18428 sed -n \
18429 "s/'/'\\\\''/g;
18430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18433 # `set' quotes correctly as required by POSIX, so do not add quotes.
18434 sed -n \
18435 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18437 esac;
18439 sed '
18440 t clear
18441 : clear
18442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18443 t end
18444 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18445 : end' >>confcache
18446 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18447 if test -w $cache_file; then
18448 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18449 cat confcache >$cache_file
18450 else
18451 echo "not updating unwritable cache $cache_file"
18454 rm -f confcache
18456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18457 # Let make expand exec_prefix.
18458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18462 # trailing colons and then remove the whole line if VPATH becomes empty
18463 # (actually we leave an empty line to preserve line numbers).
18464 if test "x$srcdir" = x.; then
18465 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18466 s/:*\$(srcdir):*/:/;
18467 s/:*\${srcdir}:*/:/;
18468 s/:*@srcdir@:*/:/;
18469 s/^\([^=]*=[ ]*\):*/\1/;
18470 s/:*$//;
18471 s/^[^=]*=[ ]*$//;
18475 DEFS=-DHAVE_CONFIG_H
18477 ac_libobjs=
18478 ac_ltlibobjs=
18479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18480 # 1. Remove the extension, and $U if already installed.
18481 ac_i=`echo "$ac_i" |
18482 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18483 # 2. Add them.
18484 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18485 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18486 done
18487 LIBOBJS=$ac_libobjs
18489 LTLIBOBJS=$ac_ltlibobjs
18493 : ${CONFIG_STATUS=./config.status}
18494 ac_clean_files_save=$ac_clean_files
18495 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18496 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18497 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18498 cat >$CONFIG_STATUS <<_ACEOF
18499 #! $SHELL
18500 # Generated by $as_me.
18501 # Run this file to recreate the current configuration.
18502 # Compiler output produced by configure, useful for debugging
18503 # configure, is in config.log if it exists.
18505 debug=false
18506 ac_cs_recheck=false
18507 ac_cs_silent=false
18508 SHELL=\${CONFIG_SHELL-$SHELL}
18509 _ACEOF
18511 cat >>$CONFIG_STATUS <<\_ACEOF
18512 ## --------------------- ##
18513 ## M4sh Initialization. ##
18514 ## --------------------- ##
18516 # Be Bourne compatible
18517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18518 emulate sh
18519 NULLCMD=:
18520 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18521 # is contrary to our usage. Disable this feature.
18522 alias -g '${1+"$@"}'='"$@"'
18523 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18524 set -o posix
18527 # Support unset when possible.
18528 if (as_foo=foo; unset as_foo) >/dev/null 2>&1; then
18529 as_unset=unset
18530 else
18531 as_unset=false
18535 # Work around bugs in pre-3.0 UWIN ksh.
18536 $as_unset ENV MAIL MAILPATH
18537 PS1='$ '
18538 PS2='> '
18539 PS4='+ '
18541 # NLS nuisances.
18542 for as_var in \
18543 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18544 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18545 LC_TELEPHONE LC_TIME
18547 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18548 eval $as_var=C; export $as_var
18549 else
18550 $as_unset $as_var
18552 done
18554 # Required to use basename.
18555 if expr a : '\(a\)' >/dev/null 2>&1; then
18556 as_expr=expr
18557 else
18558 as_expr=false
18561 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18562 as_basename=basename
18563 else
18564 as_basename=false
18568 # Name of the executable.
18569 as_me=`$as_basename "$0" ||
18570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18571 X"$0" : 'X\(//\)$' \| \
18572 X"$0" : 'X\(/\)$' \| \
18573 . : '\(.\)' 2>/dev/null ||
18574 echo X/"$0" |
18575 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18576 /^X\/\(\/\/\)$/{ s//\1/; q; }
18577 /^X\/\(\/\).*/{ s//\1/; q; }
18578 s/.*/./; q'`
18581 # PATH needs CR, and LINENO needs CR and PATH.
18582 # Avoid depending upon Character Ranges.
18583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18586 as_cr_digits='0123456789'
18587 as_cr_alnum=$as_cr_Letters$as_cr_digits
18589 # The user is always right.
18590 if test "${PATH_SEPARATOR+set}" != set; then
18591 echo "#! /bin/sh" >conf$$.sh
18592 echo "exit 0" >>conf$$.sh
18593 chmod +x conf$$.sh
18594 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18595 PATH_SEPARATOR=';'
18596 else
18597 PATH_SEPARATOR=:
18599 rm -f conf$$.sh
18603 as_lineno_1=$LINENO
18604 as_lineno_2=$LINENO
18605 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18606 test "x$as_lineno_1" != "x$as_lineno_2" &&
18607 test "x$as_lineno_3" = "x$as_lineno_2" || {
18608 # Find who we are. Look in the path if we contain no path at all
18609 # relative or not.
18610 case $0 in
18611 *[\\/]* ) as_myself=$0 ;;
18612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18613 for as_dir in $PATH
18615 IFS=$as_save_IFS
18616 test -z "$as_dir" && as_dir=.
18617 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18618 done
18621 esac
18622 # We did not find ourselves, most probably we were run as `sh COMMAND'
18623 # in which case we are not to be found in the path.
18624 if test "x$as_myself" = x; then
18625 as_myself=$0
18627 if test ! -f "$as_myself"; then
18628 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18629 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18630 { (exit 1); exit 1; }; }
18632 case $CONFIG_SHELL in
18634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18635 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18637 IFS=$as_save_IFS
18638 test -z "$as_dir" && as_dir=.
18639 for as_base in sh bash ksh sh5; do
18640 case $as_dir in
18642 if ("$as_dir/$as_base" -c '
18643 as_lineno_1=$LINENO
18644 as_lineno_2=$LINENO
18645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18646 test "x$as_lineno_1" != "x$as_lineno_2" &&
18647 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18648 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18649 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18650 CONFIG_SHELL=$as_dir/$as_base
18651 export CONFIG_SHELL
18652 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18653 fi;;
18654 esac
18655 done
18656 done
18658 esac
18660 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18661 # uniformly replaced by the line number. The first 'sed' inserts a
18662 # line-number line before each line; the second 'sed' does the real
18663 # work. The second script uses 'N' to pair each line-number line
18664 # with the numbered line, and appends trailing '-' during
18665 # substitution so that $LINENO is not a special case at line end.
18666 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18667 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18668 sed '=' <$as_myself |
18669 sed '
18671 s,$,-,
18672 : loop
18673 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18674 t loop
18675 s,-$,,
18676 s,^['$as_cr_digits']*\n,,
18677 ' >$as_me.lineno &&
18678 chmod +x $as_me.lineno ||
18679 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18680 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18681 { (exit 1); exit 1; }; }
18683 # Don't try to exec as it changes $[0], causing all sort of problems
18684 # (the dirname of $[0] is not the place where we might find the
18685 # original and so on. Autoconf is especially sensible to this).
18686 . ./$as_me.lineno
18687 # Exit status is that of the last command.
18688 exit
18692 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18693 *c*,-n*) ECHO_N= ECHO_C='
18694 ' ECHO_T=' ' ;;
18695 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18696 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18697 esac
18699 if expr a : '\(a\)' >/dev/null 2>&1; then
18700 as_expr=expr
18701 else
18702 as_expr=false
18705 rm -f conf$$ conf$$.exe conf$$.file
18706 echo >conf$$.file
18707 if ln -s conf$$.file conf$$ 2>/dev/null; then
18708 # We could just check for DJGPP; but this test a) works b) is more generic
18709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18710 if test -f conf$$.exe; then
18711 # Don't use ln at all; we don't have any links
18712 as_ln_s='cp -p'
18713 else
18714 as_ln_s='ln -s'
18716 elif ln conf$$.file conf$$ 2>/dev/null; then
18717 as_ln_s=ln
18718 else
18719 as_ln_s='cp -p'
18721 rm -f conf$$ conf$$.exe conf$$.file
18723 if mkdir -p . 2>/dev/null; then
18724 as_mkdir_p=:
18725 else
18726 as_mkdir_p=false
18729 as_executable_p="test -f"
18731 # Sed expression to map a string onto a valid CPP name.
18732 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18734 # Sed expression to map a string onto a valid variable name.
18735 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18738 # IFS
18739 # We need space, tab and new line, in precisely that order.
18740 as_nl='
18742 IFS=" $as_nl"
18744 # CDPATH.
18745 $as_unset CDPATH
18747 exec 6>&1
18749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18750 # report actual input values of CONFIG_FILES etc. instead of their
18751 # values after options handling. Logging --version etc. is OK.
18752 exec 5>>config.log
18754 echo
18755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18756 ## Running $as_me. ##
18757 _ASBOX
18758 } >&5
18759 cat >&5 <<_CSEOF
18761 This file was extended by $as_me, which was
18762 generated by GNU Autoconf 2.57a. Invocation command line was
18764 CONFIG_FILES = $CONFIG_FILES
18765 CONFIG_HEADERS = $CONFIG_HEADERS
18766 CONFIG_LINKS = $CONFIG_LINKS
18767 CONFIG_COMMANDS = $CONFIG_COMMANDS
18768 $ $0 $@
18770 _CSEOF
18771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18772 echo >&5
18773 _ACEOF
18775 # Files that config.status was made for.
18776 if test -n "$ac_config_files"; then
18777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18780 if test -n "$ac_config_headers"; then
18781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18784 if test -n "$ac_config_links"; then
18785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18788 if test -n "$ac_config_commands"; then
18789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18792 cat >>$CONFIG_STATUS <<\_ACEOF
18794 ac_cs_usage="\
18795 \`$as_me' instantiates files from templates according to the
18796 current configuration.
18798 Usage: $0 [OPTIONS] [FILE]...
18800 -h, --help print this help, then exit
18801 -V, --version print version number, then exit
18802 -q, --quiet do not print progress messages
18803 -d, --debug don't remove temporary files
18804 --recheck update $as_me by reconfiguring in the same conditions
18805 --file=FILE[:TEMPLATE]
18806 instantiate the configuration file FILE
18807 --header=FILE[:TEMPLATE]
18808 instantiate the configuration header FILE
18810 Configuration files:
18811 $config_files
18813 Configuration headers:
18814 $config_headers
18816 Configuration commands:
18817 $config_commands
18819 Report bugs to <bug-autoconf@gnu.org>."
18820 _ACEOF
18822 cat >>$CONFIG_STATUS <<_ACEOF
18823 ac_cs_version="\\
18824 config.status
18825 configured by $0, generated by GNU Autoconf 2.57a,
18826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18828 Copyright (C) 2003 Free Software Foundation, Inc.
18829 This config.status script is free software; the Free Software Foundation
18830 gives unlimited permission to copy, distribute and modify it."
18831 srcdir=$srcdir
18832 INSTALL="$INSTALL"
18833 _ACEOF
18835 cat >>$CONFIG_STATUS <<\_ACEOF
18836 # If no file are specified by the user, then we need to provide default
18837 # value. By we need to know if files were specified by the user.
18838 ac_need_defaults=:
18839 while test $# != 0
18841 case $1 in
18842 --*=*)
18843 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18844 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18845 ac_shift=:
18848 ac_option=$1
18849 ac_optarg=$2
18850 ac_shift=shift
18852 *) # This is not an option, so the user has probably given explicit
18853 # arguments.
18854 ac_option=$1
18855 ac_need_defaults=false;;
18856 esac
18858 case $ac_option in
18859 # Handling of the options.
18860 _ACEOF
18861 cat >>$CONFIG_STATUS <<\_ACEOF
18862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18863 ac_cs_recheck=: ;;
18864 --version | --vers* | -V )
18865 echo "$ac_cs_version"; exit 0 ;;
18866 --he | --h)
18867 # Conflict between --help and --header
18868 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18869 Try \`$0 --help' for more information." >&5
18870 echo "$as_me: error: ambiguous option: $1
18871 Try \`$0 --help' for more information." >&2;}
18872 { (exit 1); exit 1; }; };;
18873 --help | --hel | -h )
18874 echo "$ac_cs_usage"; exit 0 ;;
18875 --debug | --d* | -d )
18876 debug=: ;;
18877 --file | --fil | --fi | --f )
18878 $ac_shift
18879 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18880 ac_need_defaults=false;;
18881 --header | --heade | --head | --hea )
18882 $ac_shift
18883 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18884 ac_need_defaults=false;;
18885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18887 ac_cs_silent=: ;;
18889 # This is an error.
18890 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18891 Try \`$0 --help' for more information." >&5
18892 echo "$as_me: error: unrecognized option: $1
18893 Try \`$0 --help' for more information." >&2;}
18894 { (exit 1); exit 1; }; } ;;
18896 *) ac_config_targets="$ac_config_targets $1" ;;
18898 esac
18899 shift
18900 done
18902 ac_configure_extra_args=
18904 if $ac_cs_silent; then
18905 exec 6>/dev/null
18906 ac_configure_extra_args="$ac_configure_extra_args --silent"
18909 _ACEOF
18910 cat >>$CONFIG_STATUS <<_ACEOF
18911 if \$ac_cs_recheck; then
18912 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18913 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18916 _ACEOF
18918 cat >>$CONFIG_STATUS <<_ACEOF
18920 # INIT-COMMANDS section.
18923 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18925 _ACEOF
18929 cat >>$CONFIG_STATUS <<\_ACEOF
18930 for ac_config_target in $ac_config_targets
18932 case "$ac_config_target" in
18933 # Handling of arguments.
18934 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18935 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18936 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18937 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18938 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18939 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18940 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18941 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18942 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18943 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18944 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18945 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18946 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18947 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18948 { (exit 1); exit 1; }; };;
18949 esac
18950 done
18952 # If the user did not use the arguments to specify the items to instantiate,
18953 # then the envvar interface is used. Set only those that are not.
18954 # We use the long form for the default assignment because of an extremely
18955 # bizarre bug on SunOS 4.1.3.
18956 if $ac_need_defaults; then
18957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18962 # Have a temporary directory for convenience. Make it in the build tree
18963 # simply because there is no reason to put it here, and in addition,
18964 # creating and moving files from /tmp can sometimes cause problems.
18965 # Create a temporary directory, and hook for its removal unless debugging.
18966 $debug ||
18968 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18969 trap '{ (exit 1); exit 1; }' 1 2 13 15
18972 # Create a (secure) tmp directory for tmp files.
18975 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18976 test -n "$tmp" && test -d "$tmp"
18977 } ||
18979 tmp=./confstat$$-$RANDOM
18980 (umask 077 && mkdir $tmp)
18981 } ||
18983 echo "$me: cannot create a temporary directory in ." >&2
18984 { (exit 1); exit 1; }
18987 _ACEOF
18989 cat >>$CONFIG_STATUS <<_ACEOF
18992 # CONFIG_FILES section.
18995 # No need to generate the scripts if there are no CONFIG_FILES.
18996 # This happens for instance when ./config.status config.h
18997 if test -n "\$CONFIG_FILES"; then
18998 # Protect against being on the right side of a sed subst in config.status.
18999 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19000 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19001 s,@SHELL@,$SHELL,;t t
19002 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19003 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19004 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19005 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19006 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19007 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19008 s,@exec_prefix@,$exec_prefix,;t t
19009 s,@prefix@,$prefix,;t t
19010 s,@program_transform_name@,$program_transform_name,;t t
19011 s,@bindir@,$bindir,;t t
19012 s,@sbindir@,$sbindir,;t t
19013 s,@libexecdir@,$libexecdir,;t t
19014 s,@datadir@,$datadir,;t t
19015 s,@sysconfdir@,$sysconfdir,;t t
19016 s,@sharedstatedir@,$sharedstatedir,;t t
19017 s,@localstatedir@,$localstatedir,;t t
19018 s,@libdir@,$libdir,;t t
19019 s,@includedir@,$includedir,;t t
19020 s,@oldincludedir@,$oldincludedir,;t t
19021 s,@infodir@,$infodir,;t t
19022 s,@mandir@,$mandir,;t t
19023 s,@build_alias@,$build_alias,;t t
19024 s,@host_alias@,$host_alias,;t t
19025 s,@target_alias@,$target_alias,;t t
19026 s,@DEFS@,$DEFS,;t t
19027 s,@ECHO_C@,$ECHO_C,;t t
19028 s,@ECHO_N@,$ECHO_N,;t t
19029 s,@ECHO_T@,$ECHO_T,;t t
19030 s,@LIBS@,$LIBS,;t t
19031 s,@build@,$build,;t t
19032 s,@build_cpu@,$build_cpu,;t t
19033 s,@build_vendor@,$build_vendor,;t t
19034 s,@build_os@,$build_os,;t t
19035 s,@host@,$host,;t t
19036 s,@host_cpu@,$host_cpu,;t t
19037 s,@host_vendor@,$host_vendor,;t t
19038 s,@host_os@,$host_os,;t t
19039 s,@CC@,$CC,;t t
19040 s,@CFLAGS@,$CFLAGS,;t t
19041 s,@LDFLAGS@,$LDFLAGS,;t t
19042 s,@CPPFLAGS@,$CPPFLAGS,;t t
19043 s,@ac_ct_CC@,$ac_ct_CC,;t t
19044 s,@EXEEXT@,$EXEEXT,;t t
19045 s,@OBJEXT@,$OBJEXT,;t t
19046 s,@LN_S@,$LN_S,;t t
19047 s,@CPP@,$CPP,;t t
19048 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19049 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19050 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19051 s,@RANLIB@,$RANLIB,;t t
19052 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19053 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19054 s,@EGREP@,$EGREP,;t t
19055 s,@LIBSOUND@,$LIBSOUND,;t t
19056 s,@SET_MAKE@,$SET_MAKE,;t t
19057 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19058 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19059 s,@GTK_LIBS@,$GTK_LIBS,;t t
19060 s,@ALLOCA@,$ALLOCA,;t t
19061 s,@liblockfile@,$liblockfile,;t t
19062 s,@LIBOBJS@,$LIBOBJS,;t t
19063 s,@NEED_SETGID@,$NEED_SETGID,;t t
19064 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19065 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19066 s,@version@,$version,;t t
19067 s,@configuration@,$configuration,;t t
19068 s,@canonical@,$canonical,;t t
19069 s,@srcdir@,$srcdir,;t t
19070 s,@lispdir@,$lispdir,;t t
19071 s,@locallisppath@,$locallisppath,;t t
19072 s,@lisppath@,$lisppath,;t t
19073 s,@x_default_search_path@,$x_default_search_path,;t t
19074 s,@etcdir@,$etcdir,;t t
19075 s,@archlibdir@,$archlibdir,;t t
19076 s,@docdir@,$docdir,;t t
19077 s,@bitmapdir@,$bitmapdir,;t t
19078 s,@gamedir@,$gamedir,;t t
19079 s,@gameuser@,$gameuser,;t t
19080 s,@c_switch_system@,$c_switch_system,;t t
19081 s,@c_switch_machine@,$c_switch_machine,;t t
19082 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19083 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19084 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19085 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19086 s,@machfile@,$machfile,;t t
19087 s,@opsysfile@,$opsysfile,;t t
19088 s,@carbon_appdir@,$carbon_appdir,;t t
19089 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19090 CEOF
19092 _ACEOF
19094 cat >>$CONFIG_STATUS <<\_ACEOF
19095 # Split the substitutions into bite-sized pieces for seds with
19096 # small command number limits, like on Digital OSF/1 and HP-UX.
19097 ac_max_sed_lines=48
19098 ac_sed_frag=1 # Number of current file.
19099 ac_beg=1 # First line for current file.
19100 ac_end=$ac_max_sed_lines # Line after last line for current file.
19101 ac_more_lines=:
19102 ac_sed_cmds=
19103 while $ac_more_lines; do
19104 if test $ac_beg -gt 1; then
19105 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19106 else
19107 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19109 if test ! -s $tmp/subs.frag; then
19110 ac_more_lines=false
19111 else
19112 # The purpose of the label and of the branching condition is to
19113 # speed up the sed processing (if there are no `@' at all, there
19114 # is no need to browse any of the substitutions).
19115 # These are the two extra sed commands mentioned above.
19116 (echo ':t
19117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19118 if test -z "$ac_sed_cmds"; then
19119 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19120 else
19121 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19123 ac_sed_frag=`expr $ac_sed_frag + 1`
19124 ac_beg=$ac_end
19125 ac_end=`expr $ac_end + $ac_max_sed_lines`
19127 done
19128 if test -z "$ac_sed_cmds"; then
19129 ac_sed_cmds=cat
19131 fi # test -n "$CONFIG_FILES"
19133 _ACEOF
19134 cat >>$CONFIG_STATUS <<\_ACEOF
19135 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19137 case $ac_file in
19138 - | *:- | *:-:* ) # input from stdin
19139 cat >$tmp/stdin
19140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19144 * ) ac_file_in=$ac_file.in ;;
19145 esac
19147 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19148 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19150 X"$ac_file" : 'X\(//\)[^/]' \| \
19151 X"$ac_file" : 'X\(//\)$' \| \
19152 X"$ac_file" : 'X\(/\)' \| \
19153 . : '\(.\)' 2>/dev/null ||
19154 echo X"$ac_file" |
19155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19157 /^X\(\/\/\)$/{ s//\1/; q; }
19158 /^X\(\/\).*/{ s//\1/; q; }
19159 s/.*/./; q'`
19160 { if $as_mkdir_p; then
19161 mkdir -p "$ac_dir"
19162 else
19163 as_dir="$ac_dir"
19164 as_dirs=
19165 while test ! -d "$as_dir"; do
19166 as_dirs="$as_dir $as_dirs"
19167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19169 X"$as_dir" : 'X\(//\)[^/]' \| \
19170 X"$as_dir" : 'X\(//\)$' \| \
19171 X"$as_dir" : 'X\(/\)' \| \
19172 . : '\(.\)' 2>/dev/null ||
19173 echo X"$as_dir" |
19174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19176 /^X\(\/\/\)$/{ s//\1/; q; }
19177 /^X\(\/\).*/{ s//\1/; q; }
19178 s/.*/./; q'`
19179 done
19180 test ! -n "$as_dirs" || mkdir $as_dirs
19181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19183 { (exit 1); exit 1; }; }; }
19185 ac_builddir=.
19187 if test "$ac_dir" != .; then
19188 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19189 # A "../" for each directory in $ac_dir_suffix.
19190 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19191 else
19192 ac_dir_suffix= ac_top_builddir=
19195 case $srcdir in
19196 .) # No --srcdir option. We are building in place.
19197 ac_srcdir=.
19198 if test -z "$ac_top_builddir"; then
19199 ac_top_srcdir=.
19200 else
19201 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19202 fi ;;
19203 [\\/]* | ?:[\\/]* ) # Absolute path.
19204 ac_srcdir=$srcdir$ac_dir_suffix;
19205 ac_top_srcdir=$srcdir ;;
19206 *) # Relative path.
19207 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19208 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19209 esac
19210 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19211 # absolute.
19212 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19213 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19214 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19215 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19218 case $INSTALL in
19219 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19220 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19221 esac
19223 if test x"$ac_file" != x-; then
19224 { echo "$as_me:$LINENO: creating $ac_file" >&5
19225 echo "$as_me: creating $ac_file" >&6;}
19226 rm -f "$ac_file"
19228 # Let's still pretend it is `configure' which instantiates (i.e., don't
19229 # use $as_me), people would be surprised to read:
19230 # /* config.h. Generated by config.status. */
19231 if test x"$ac_file" = x-; then
19232 configure_input=
19233 else
19234 configure_input="$ac_file. "
19236 configure_input=$configure_input"Generated from `echo $ac_file_in |
19237 sed 's,.*/,,'` by configure."
19239 # First look for the input files in the build tree, otherwise in the
19240 # src tree.
19241 ac_file_inputs=`IFS=:
19242 for f in $ac_file_in; do
19243 case $f in
19244 -) echo $tmp/stdin ;;
19245 [\\/$]*)
19246 # Absolute (can't be DOS-style, as IFS=:)
19247 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19248 echo "$as_me: error: cannot find input file: $f" >&2;}
19249 { (exit 1); exit 1; }; }
19250 echo "$f";;
19251 *) # Relative
19252 if test -f "$f"; then
19253 # Build tree
19254 echo "$f"
19255 elif test -f "$srcdir/$f"; then
19256 # Source tree
19257 echo "$srcdir/$f"
19258 else
19259 # /dev/null tree
19260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19261 echo "$as_me: error: cannot find input file: $f" >&2;}
19262 { (exit 1); exit 1; }; }
19263 fi;;
19264 esac
19265 done` || { (exit 1); exit 1; }
19266 _ACEOF
19267 cat >>$CONFIG_STATUS <<_ACEOF
19268 sed "$ac_vpsub
19269 $extrasub
19270 _ACEOF
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19274 s,@configure_input@,$configure_input,;t t
19275 s,@srcdir@,$ac_srcdir,;t t
19276 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19277 s,@top_srcdir@,$ac_top_srcdir,;t t
19278 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19279 s,@builddir@,$ac_builddir,;t t
19280 s,@abs_builddir@,$ac_abs_builddir,;t t
19281 s,@top_builddir@,$ac_top_builddir,;t t
19282 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19283 s,@INSTALL@,$ac_INSTALL,;t t
19284 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19285 rm -f $tmp/stdin
19286 if test x"$ac_file" != x-; then
19287 mv $tmp/out $ac_file
19288 else
19289 cat $tmp/out
19290 rm -f $tmp/out
19293 done
19294 _ACEOF
19295 cat >>$CONFIG_STATUS <<\_ACEOF
19298 # CONFIG_HEADER section.
19301 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19302 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19304 # ac_d sets the value in "#define NAME VALUE" lines.
19305 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19306 ac_dB='[ ].*$,\1#\2'
19307 ac_dC=' '
19308 ac_dD=',;t'
19309 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19310 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19311 ac_uB='$,\1#\2define\3'
19312 ac_uC=' '
19313 ac_uD=',;t'
19315 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19317 case $ac_file in
19318 - | *:- | *:-:* ) # input from stdin
19319 cat >$tmp/stdin
19320 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19322 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19324 * ) ac_file_in=$ac_file.in ;;
19325 esac
19327 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19328 echo "$as_me: creating $ac_file" >&6;}
19330 # First look for the input files in the build tree, otherwise in the
19331 # src tree.
19332 ac_file_inputs=`IFS=:
19333 for f in $ac_file_in; do
19334 case $f in
19335 -) echo $tmp/stdin ;;
19336 [\\/$]*)
19337 # Absolute (can't be DOS-style, as IFS=:)
19338 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19339 echo "$as_me: error: cannot find input file: $f" >&2;}
19340 { (exit 1); exit 1; }; }
19341 # Do quote $f, to prevent DOS paths from being IFS'd.
19342 echo "$f";;
19343 *) # Relative
19344 if test -f "$f"; then
19345 # Build tree
19346 echo "$f"
19347 elif test -f "$srcdir/$f"; then
19348 # Source tree
19349 echo "$srcdir/$f"
19350 else
19351 # /dev/null tree
19352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19353 echo "$as_me: error: cannot find input file: $f" >&2;}
19354 { (exit 1); exit 1; }; }
19355 fi;;
19356 esac
19357 done` || { (exit 1); exit 1; }
19358 # Remove the trailing spaces.
19359 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19361 _ACEOF
19363 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19364 # `conftest.undefs', that substitutes the proper values into
19365 # config.h.in to produce config.h. The first handles `#define'
19366 # templates, and the second `#undef' templates.
19367 # And first: Protect against being on the right side of a sed subst in
19368 # config.status. Protect against being in an unquoted here document
19369 # in config.status.
19370 rm -f conftest.defines conftest.undefs
19371 # Using a here document instead of a string reduces the quoting nightmare.
19372 # Putting comments in sed scripts is not portable.
19374 # `end' is used to avoid that the second main sed command (meant for
19375 # 0-ary CPP macros) applies to n-ary macro definitions.
19376 # See the Autoconf documentation for `clear'.
19377 cat >confdef2sed.sed <<\_ACEOF
19378 s/[\\&,]/\\&/g
19379 s,[\\$`],\\&,g
19380 t clear
19381 : clear
19382 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19383 t end
19384 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19385 : end
19386 _ACEOF
19387 # If some macros were called several times there might be several times
19388 # the same #defines, which is useless. Nevertheless, we may not want to
19389 # sort them, since we want the *last* AC-DEFINE to be honored.
19390 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19391 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19392 rm -f confdef2sed.sed
19394 # This sed command replaces #undef with comments. This is necessary, for
19395 # example, in the case of _POSIX_SOURCE, which is predefined and required
19396 # on some systems where configure will not decide to define it.
19397 cat >>conftest.undefs <<\_ACEOF
19398 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19399 _ACEOF
19401 # Break up conftest.defines because some shells have a limit on the size
19402 # of here documents, and old seds have small limits too (100 cmds).
19403 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19404 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19405 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19406 echo ' :' >>$CONFIG_STATUS
19407 rm -f conftest.tail
19408 while grep . conftest.defines >/dev/null
19410 # Write a limited-size here document to $tmp/defines.sed.
19411 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19412 # Speed up: don't consider the non `#define' lines.
19413 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19414 # Work around the forget-to-reset-the-flag bug.
19415 echo 't clr' >>$CONFIG_STATUS
19416 echo ': clr' >>$CONFIG_STATUS
19417 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19418 echo 'CEOF
19419 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19420 rm -f $tmp/in
19421 mv $tmp/out $tmp/in
19422 ' >>$CONFIG_STATUS
19423 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19424 rm -f conftest.defines
19425 mv conftest.tail conftest.defines
19426 done
19427 rm -f conftest.defines
19428 echo ' fi # grep' >>$CONFIG_STATUS
19429 echo >>$CONFIG_STATUS
19431 # Break up conftest.undefs because some shells have a limit on the size
19432 # of here documents, and old seds have small limits too (100 cmds).
19433 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19434 rm -f conftest.tail
19435 while grep . conftest.undefs >/dev/null
19437 # Write a limited-size here document to $tmp/undefs.sed.
19438 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19439 # Speed up: don't consider the non `#undef'
19440 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19441 # Work around the forget-to-reset-the-flag bug.
19442 echo 't clr' >>$CONFIG_STATUS
19443 echo ': clr' >>$CONFIG_STATUS
19444 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19445 echo 'CEOF
19446 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19447 rm -f $tmp/in
19448 mv $tmp/out $tmp/in
19449 ' >>$CONFIG_STATUS
19450 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19451 rm -f conftest.undefs
19452 mv conftest.tail conftest.undefs
19453 done
19454 rm -f conftest.undefs
19456 cat >>$CONFIG_STATUS <<\_ACEOF
19457 # Let's still pretend it is `configure' which instantiates (i.e., don't
19458 # use $as_me), people would be surprised to read:
19459 # /* config.h. Generated by config.status. */
19460 if test x"$ac_file" = x-; then
19461 echo "/* Generated by configure. */" >$tmp/config.h
19462 else
19463 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19465 cat $tmp/in >>$tmp/config.h
19466 rm -f $tmp/in
19467 if test x"$ac_file" != x-; then
19468 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19469 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19470 echo "$as_me: $ac_file is unchanged" >&6;}
19471 else
19472 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474 X"$ac_file" : 'X\(//\)[^/]' \| \
19475 X"$ac_file" : 'X\(//\)$' \| \
19476 X"$ac_file" : 'X\(/\)' \| \
19477 . : '\(.\)' 2>/dev/null ||
19478 echo X"$ac_file" |
19479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19481 /^X\(\/\/\)$/{ s//\1/; q; }
19482 /^X\(\/\).*/{ s//\1/; q; }
19483 s/.*/./; q'`
19484 { if $as_mkdir_p; then
19485 mkdir -p "$ac_dir"
19486 else
19487 as_dir="$ac_dir"
19488 as_dirs=
19489 while test ! -d "$as_dir"; do
19490 as_dirs="$as_dir $as_dirs"
19491 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19493 X"$as_dir" : 'X\(//\)[^/]' \| \
19494 X"$as_dir" : 'X\(//\)$' \| \
19495 X"$as_dir" : 'X\(/\)' \| \
19496 . : '\(.\)' 2>/dev/null ||
19497 echo X"$as_dir" |
19498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19500 /^X\(\/\/\)$/{ s//\1/; q; }
19501 /^X\(\/\).*/{ s//\1/; q; }
19502 s/.*/./; q'`
19503 done
19504 test ! -n "$as_dirs" || mkdir $as_dirs
19505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19506 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19507 { (exit 1); exit 1; }; }; }
19509 rm -f $ac_file
19510 mv $tmp/config.h $ac_file
19512 else
19513 cat $tmp/config.h
19514 rm -f $tmp/config.h
19516 done
19517 _ACEOF
19518 cat >>$CONFIG_STATUS <<\_ACEOF
19521 # CONFIG_COMMANDS section.
19523 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19524 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19525 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19526 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19527 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19528 X"$ac_dest" : 'X\(//\)[^/]' \| \
19529 X"$ac_dest" : 'X\(//\)$' \| \
19530 X"$ac_dest" : 'X\(/\)' \| \
19531 . : '\(.\)' 2>/dev/null ||
19532 echo X"$ac_dest" |
19533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19535 /^X\(\/\/\)$/{ s//\1/; q; }
19536 /^X\(\/\).*/{ s//\1/; q; }
19537 s/.*/./; q'`
19538 ac_builddir=.
19540 if test "$ac_dir" != .; then
19541 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19542 # A "../" for each directory in $ac_dir_suffix.
19543 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19544 else
19545 ac_dir_suffix= ac_top_builddir=
19548 case $srcdir in
19549 .) # No --srcdir option. We are building in place.
19550 ac_srcdir=.
19551 if test -z "$ac_top_builddir"; then
19552 ac_top_srcdir=.
19553 else
19554 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19555 fi ;;
19556 [\\/]* | ?:[\\/]* ) # Absolute path.
19557 ac_srcdir=$srcdir$ac_dir_suffix;
19558 ac_top_srcdir=$srcdir ;;
19559 *) # Relative path.
19560 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19561 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19562 esac
19563 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19564 # absolute.
19565 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19566 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19567 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19568 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19571 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19572 echo "$as_me: executing $ac_dest commands" >&6;}
19573 case $ac_dest in
19574 default )
19576 ### Make the necessary directories, if they don't exist.
19577 for dir in etc lisp ; do
19578 test -d ${dir} || mkdir ${dir}
19579 done
19581 # Build src/Makefile from ${srcdir}/src/Makefile.c
19582 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19583 # This must be done after src/config.h is built, since we rely on that file.
19585 # Now get this: Some word that is part of the ${srcdir} directory name
19586 # or the ${configuration} value might, just might, happen to be an
19587 # identifier like `sun4' or `i386' or something, and be predefined by
19588 # the C preprocessor to some helpful value like 1, or maybe the empty
19589 # string. Needless to say consequent macro substitutions are less
19590 # than conducive to the makefile finding the correct directory.
19591 undefs="`echo $top_srcdir $configuration $canonical |
19592 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19593 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19596 echo creating src/epaths.h
19597 ${MAKE-make} epaths-force
19599 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19600 # `..' to `. .' unless invoked with -traditional
19602 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19603 CPPFLAGS="$CPPFLAGS -traditional"
19606 echo creating lib-src/Makefile
19607 ( cd lib-src
19608 rm -f junk.c junk1.c junk2.c
19609 sed -e '/start of cpp stuff/q' \
19610 < Makefile.c > junk1.c
19611 sed -e '1,/start of cpp stuff/d'\
19612 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19613 < Makefile.c > junk.c
19614 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19615 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19616 cat junk1.c junk2.c > Makefile.new
19617 rm -f junk.c junk1.c junk2.c
19618 chmod 444 Makefile.new
19619 mv -f Makefile.new Makefile
19622 echo creating src/Makefile
19623 ( cd src
19624 rm -f junk.c junk1.c junk2.c
19625 sed -e '/start of cpp stuff/q' \
19626 < Makefile.c > junk1.c
19627 sed -e '1,/start of cpp stuff/d'\
19628 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19629 < Makefile.c > junk.c
19630 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19631 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19632 cat junk1.c junk2.c > Makefile.new
19633 rm -f junk.c junk1.c junk2.c
19634 chmod 444 Makefile.new
19635 mv -f Makefile.new Makefile
19638 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19639 echo creating src/.gdbinit
19640 echo source $srcdir/src/.gdbinit > src/.gdbinit
19643 # This is how we know whether to re-run configure in certain cases.
19644 touch src/config.stamp
19647 esac
19648 done
19649 _ACEOF
19651 cat >>$CONFIG_STATUS <<\_ACEOF
19653 { (exit 0); exit 0; }
19654 _ACEOF
19655 chmod +x $CONFIG_STATUS
19656 ac_clean_files=$ac_clean_files_save
19659 # configure is writing to config.log, and then calls config.status.
19660 # config.status does its own redirection, appending to config.log.
19661 # Unfortunately, on DOS this fails, as config.log is still kept open
19662 # by configure, so config.status won't be able to write to it; its
19663 # output is simply discarded. So we exec the FD to /dev/null,
19664 # effectively closing config.log, so it can be properly (re)opened and
19665 # appended to by config.status. When coming back to configure, we
19666 # need to make the FD available again.
19667 if test "$no_create" != yes; then
19668 ac_cs_success=:
19669 ac_config_status_args=
19670 test "$silent" = yes &&
19671 ac_config_status_args="$ac_config_status_args --quiet"
19672 exec 5>/dev/null
19673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19674 exec 5>>config.log
19675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19676 # would make configure fail if this is the last instruction.
19677 $ac_cs_success || { (exit 1); exit 1; }