*** empty log message ***
[emacs.git] / configure
blobb30ee7a2c9f294e84d8c58f471b55941c24808b7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
237 IFS=" $as_nl"
239 # CDPATH.
240 $as_unset CDPATH
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248 exec 6>&1
251 # Initializations.
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
273 ac_unique_file="src/lisp.h"
274 ac_config_libobj_dir=src
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB 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'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
843 System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 _ACEOF
849 if test -n "$ac_init_help"; then
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-carbon-app[=DIR] [DIR=/Application]
857 specify install directory for Emacs.app on Mac OS X
858 --disable-largefile omit support for large files
860 Optional Packages:
861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
863 --without-gcc don't use GCC to compile Emacs if GCC is found
864 --without-pop don't support POP mail retrieval with movemail
865 --with-kerberos support Kerberos-authenticated POP
866 --with-kerberos5 support Kerberos version 5 authenticated POP
867 --with-hesiod support Hesiod to get the POP server host
868 --without-sound don't compile with sound support
869 --with-x-toolkit=KIT use an X toolkit
870 (KIT = yes/lucid/athena/motif/gtk/no)
871 --with-xpm use -lXpm for displaying XPM images
872 --with-jpeg use -ljpeg for displaying JPEG images
873 --with-tiff use -ltiff for displaying TIFF images
874 --with-gif use -lungif for displaying GIF images
875 --with-png use -lpng for displaying PNG images
876 --with-gtk use GTK (same as --with-x-toolkit=gtk)
877 --with-pkg-config-prog Path to pkg-config to use for finding GTK
878 --without-toolkit-scroll-bars
879 don't use Motif or Xaw3d scroll bars
880 --without-xim don't use X11 XIM
881 --without-carbon don't use Carbon GUI on Mac OS X
882 --with-x use the X Window System
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
930 # absolute.
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 cd $ac_popdir
952 done
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
957 cat <<\_ACEOF
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.57. Invocation command line was
974 $ $0 $@
976 _ACEOF
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 _ASUNAME
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1010 } >&5
1012 cat >&5 <<_ACEOF
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1019 _ACEOF
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1034 for ac_arg
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1081 echo
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 esac;
1104 echo
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core core.* *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1162 # Predefined preprocessor variables.
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1205 done
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1302 test "$program_prefix" != NONE &&
1303 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304 # Use a double $ so make ignores it.
1305 test "$program_suffix" != NONE &&
1306 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307 # Double any \ or $. echo might interpret backslashes.
1308 # By default was `s,x,x', remove it if useless.
1309 cat <<\_ACEOF >conftest.sed
1310 s/[\\$]/&&/g;s/;s,x,x,$//
1311 _ACEOF
1312 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1313 rm conftest.sed
1316 lispdir='${datadir}/emacs/${version}/lisp'
1317 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1318 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1319 lisppath='${locallisppath}:${lispdir}'
1320 etcdir='${datadir}/emacs/${version}/etc'
1321 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1322 docdir='${datadir}/emacs/${version}/etc'
1323 gamedir='${localstatedir}/games/emacs'
1325 gameuser=games
1328 # Check whether --with-gcc or --without-gcc was given.
1329 if test "${with_gcc+set}" = set; then
1330 withval="$with_gcc"
1334 # Check whether --with-pop or --without-pop was given.
1335 if test "${with_pop+set}" = set; then
1336 withval="$with_pop"
1337 if test "$withval" = yes; then
1338 cat >>confdefs.h <<\_ACEOF
1339 #define MAIL_USE_POP 1
1340 _ACEOF
1342 else :
1344 else
1345 cat >>confdefs.h <<\_ACEOF
1346 #define MAIL_USE_POP 1
1347 _ACEOF
1352 # Check whether --with-kerberos or --without-kerberos was given.
1353 if test "${with_kerberos+set}" = set; then
1354 withval="$with_kerberos"
1355 cat >>confdefs.h <<\_ACEOF
1356 #define KERBEROS 1
1357 _ACEOF
1362 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1363 if test "${with_kerberos5+set}" = set; then
1364 withval="$with_kerberos5"
1365 if test "${with_kerberos5+set}" = set; then
1366 if test "${with_kerberos+set}" != set; then
1367 with_kerberos=yes
1368 cat >>confdefs.h <<\_ACEOF
1369 #define KERBEROS 1
1370 _ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1376 #define KERBEROS5 1
1377 _ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1385 cat >>confdefs.h <<\_ACEOF
1386 #define HESIOD 1
1387 _ACEOF
1392 # Check whether --with-sound or --without-sound was given.
1393 if test "${with_sound+set}" = set; then
1394 withval="$with_sound"
1399 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1400 if test "${with_x_toolkit+set}" = set; then
1401 withval="$with_x_toolkit"
1402 case "${withval}" in
1403 y | ye | yes ) val=athena ;;
1404 n | no ) val=no ;;
1405 l | lu | luc | luci | lucid ) val=lucid ;;
1406 a | at | ath | athe | athen | athena ) val=athena ;;
1407 m | mo | mot | moti | motif ) val=motif ;;
1408 g | gt | gtk ) val=gtk ;;
1410 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1411 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1412 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1413 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1414 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1415 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1416 { (exit 1); exit 1; }; }
1418 esac
1419 with_x_toolkit=$val
1423 # Check whether --with-xpm or --without-xpm was given.
1424 if test "${with_xpm+set}" = set; then
1425 withval="$with_xpm"
1429 # Check whether --with-jpeg or --without-jpeg was given.
1430 if test "${with_jpeg+set}" = set; then
1431 withval="$with_jpeg"
1435 # Check whether --with-tiff or --without-tiff was given.
1436 if test "${with_tiff+set}" = set; then
1437 withval="$with_tiff"
1441 # Check whether --with-gif or --without-gif was given.
1442 if test "${with_gif+set}" = set; then
1443 withval="$with_gif"
1447 # Check whether --with-png or --without-png was given.
1448 if test "${with_png+set}" = set; then
1449 withval="$with_png"
1453 # Check whether --with-gtk or --without-gtk was given.
1454 if test "${with_gtk+set}" = set; then
1455 withval="$with_gtk"
1459 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1460 if test "${with_pkg_config_prog+set}" = set; then
1461 withval="$with_pkg_config_prog"
1465 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1466 if test "${with_toolkit_scroll_bars+set}" = set; then
1467 withval="$with_toolkit_scroll_bars"
1471 # Check whether --with-xim or --without-xim was given.
1472 if test "${with_xim+set}" = set; then
1473 withval="$with_xim"
1477 # Check whether --with-carbon or --without-carbon was given.
1478 if test "${with_carbon+set}" = set; then
1479 withval="$with_carbon"
1482 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1483 if test "${enable_carbon_app+set}" = set; then
1484 enableval="$enable_carbon_app"
1485 carbon_appdir_x=${enableval}
1488 #### Make srcdir absolute, if it isn't already. It's important to
1489 #### avoid running the path through pwd unnecessarily, since pwd can
1490 #### give you automounter prefixes, which can go away. We do all this
1491 #### so Emacs can find its files when run uninstalled.
1492 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1493 unset CDPATH
1494 case "${srcdir}" in
1495 /* ) ;;
1497 ## We may be able to use the $PWD environment variable to make this
1498 ## absolute. But sometimes PWD is inaccurate.
1499 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1500 ## but that tested only for a well-formed and valid PWD,
1501 ## it did not object when PWD was well-formed and valid but just wrong.
1502 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1503 then
1504 srcdir="$PWD"
1505 else
1506 srcdir="`(cd ${srcdir}; pwd)`"
1509 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1510 esac
1512 #### Check if the source directory already has a configured system in it.
1513 if test `pwd` != `(cd ${srcdir} && pwd)` \
1514 && test -f "${srcdir}/src/config.h" ; then
1515 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1516 as a build directory right now; it has been configured in its own
1517 right. To configure in another directory as well, you MUST
1518 use GNU make. If you do not have GNU make, then you must
1519 now do \`make distclean' in ${srcdir},
1520 and then run $0 again." >&5
1521 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1522 as a build directory right now; it has been configured in its own
1523 right. To configure in another directory as well, you MUST
1524 use GNU make. If you do not have GNU make, then you must
1525 now do \`make distclean' in ${srcdir},
1526 and then run $0 again." >&2;}
1528 extrasub='/^VPATH[ ]*=/c\
1529 vpath %.c $(srcdir)\
1530 vpath %.h $(srcdir)\
1531 vpath %.y $(srcdir)\
1532 vpath %.l $(srcdir)\
1533 vpath %.s $(srcdir)\
1534 vpath %.in $(srcdir)\
1535 vpath %.texi $(srcdir)'
1538 #### Given the configuration name, set machfile and opsysfile to the
1539 #### names of the m/*.h and s/*.h files we should use.
1541 ### Canonicalize the configuration name.
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 canonical=$host
1623 configuration=${host_alias-$host}
1627 ### If you add support for a new configuration, add code to this
1628 ### switch statement to recognize your configuration name and select
1629 ### the appropriate operating system and machine description files.
1631 ### You would hope that you could choose an m/*.h file pretty much
1632 ### based on the machine portion of the configuration name, and an s-
1633 ### file based on the operating system portion. However, it turns out
1634 ### that each m/*.h file is pretty manufacturer-specific - for
1635 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1636 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1637 ### machines. So we basically have to have a special case for each
1638 ### configuration name.
1640 ### As far as handling version numbers on operating systems is
1641 ### concerned, make sure things will fail in a fixable way. If
1642 ### /etc/MACHINES doesn't say anything about version numbers, be
1643 ### prepared to handle anything reasonably. If version numbers
1644 ### matter, be sure /etc/MACHINES says something about it.
1646 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1647 ### "System V Release 4"; he writes, "The old convention encouraged
1648 ### confusion between `system' and `release' levels'."
1650 machine='' opsys='' unported=no
1651 case "${canonical}" in
1653 ## FreeBSD ports
1654 *-*-freebsd* )
1655 opsys=freebsd
1656 case "${canonical}" in
1657 alpha*-*-freebsd*) machine=alpha ;;
1658 i[3456]86-*-freebsd*) machine=intel386 ;;
1659 esac
1662 ## NetBSD ports
1663 *-*-netbsd* )
1664 opsys=netbsd
1665 case "${canonical}" in
1666 alpha*-*-netbsd*) machine=alpha ;;
1667 i[3456]86-*-netbsd*) machine=intel386 ;;
1668 m68k-*-netbsd*)
1669 # This is somewhat bogus.
1670 machine=hp9000s300 ;;
1671 powerpc-apple-netbsd*) machine=macppc ;;
1672 mips-*-netbsd*) machine=pmax ;;
1673 mipsel-*-netbsd*) machine=pmax ;;
1674 mipseb-*-netbsd*) machine=pmax ;;
1675 ns32k-*-netbsd*) machine=ns32000 ;;
1676 powerpc-*-netbsd*) machine=macppc ;;
1677 sparc*-*-netbsd*) machine=sparc ;;
1678 vax-*-netbsd*) machine=vax ;;
1679 arm-*-netbsd*) machine=arm ;;
1680 esac
1683 ## OpenBSD ports
1684 *-*-openbsd* )
1685 opsys=openbsd
1686 case "${canonical}" in
1687 alpha*-*-openbsd*) machine=alpha ;;
1688 i386-*-openbsd*) machine=intel386 ;;
1689 m68k-*-openbsd*) machine=hp9000s300 ;;
1690 mipsel-*-openbsd*) machine=pmax ;;
1691 ns32k-*-openbsd*) machine=ns32000 ;;
1692 sparc-*-openbsd*) machine=sparc ;;
1693 vax-*-openbsd*) machine=vax ;;
1694 esac
1697 ## Acorn RISCiX:
1698 arm-acorn-riscix1.1* )
1699 machine=acorn opsys=riscix1-1
1701 arm-acorn-riscix1.2* | arm-acorn-riscix )
1702 ## This name is riscix12 instead of riscix1.2
1703 ## to avoid a file name conflict on MSDOS.
1704 machine=acorn opsys=riscix12
1707 ## BSDI ports
1708 *-*-bsdi* )
1709 opsys=bsdi
1710 case "${canonical}" in
1711 i[345]86-*-bsdi*) machine=intel386 ;;
1712 sparc-*-bsdi*) machine=sparc ;;
1713 powerpc-*-bsdi*) machine=macppc ;;
1714 esac
1715 case "${canonical}" in
1716 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1717 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1718 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1719 *-*-bsdi3* ) opsys=bsdos3 ;;
1720 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1721 esac
1724 ## Alliant machines
1725 ## Strictly speaking, we need the version of the alliant operating
1726 ## system to choose the right machine file, but currently the
1727 ## configuration name doesn't tell us enough to choose the right
1728 ## one; we need to give alliants their own operating system name to
1729 ## do this right. When someone cares, they can help us.
1730 fx80-alliant-* )
1731 machine=alliant4 opsys=bsd4-2
1733 i860-alliant-* )
1734 machine=alliant-2800 opsys=bsd4-3
1737 ## Alpha (DEC) machines.
1738 alpha*-dec-osf* )
1739 machine=alpha opsys=osf1
1740 # This is needed to find X11R6.1 libraries for certain tests.
1741 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1742 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1743 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1744 # due to non-traditional preprocessing with the current compiler
1745 # defaults. OSF 4 can also have that compiler version, and there
1746 # seems always to have been a usable /usr/bin/cpp.
1747 NON_GNU_CPP=/usr/bin/cpp
1748 case "${canonical}" in
1749 alpha*-dec-osf[5-9]*)
1750 opsys=osf5-0 ;;
1751 esac
1754 alpha*-*-linux-gnu* )
1755 machine=alpha opsys=gnu-linux
1758 arm*-*-linux-gnu* )
1759 machine=arm opsys=gnu-linux
1762 ppc-*-linux | \
1763 powerpc-*-linux* )
1764 machine=macppc opsys=gnu-linux
1767 ## Altos 3068
1768 m68*-altos-sysv* )
1769 machine=altos opsys=usg5-2
1772 ## Amdahl UTS
1773 580-amdahl-sysv* )
1774 machine=amdahl opsys=usg5-2-2
1777 ## Apollo, Domain/OS
1778 m68*-apollo-* )
1779 machine=apollo opsys=bsd4-3
1782 ## AT&T 3b2, 3b5, 3b15, 3b20
1783 we32k-att-sysv* )
1784 machine=att3b opsys=usg5-2-2
1787 ## AT&T 3b1 - The Mighty Unix PC!
1788 m68*-att-sysv* )
1789 machine=7300 opsys=usg5-2-2
1792 ## Bull dpx20
1793 rs6000-bull-bosx* )
1794 machine=ibmrs6000 opsys=aix3-2
1797 ## Bull dpx2
1798 m68*-bull-sysv3* )
1799 machine=dpx2 opsys=usg5-3
1802 ## Bull sps7
1803 m68*-bull-sysv2* )
1804 machine=sps7 opsys=usg5-2
1807 ## CCI 5/32, 6/32 -- see "Tahoe".
1809 ## Celerity
1810 ## I don't know what configuration name to use for this; config.sub
1811 ## doesn't seem to know anything about it. Hey, Celerity users, get
1812 ## in touch with us!
1813 celerity-celerity-bsd* )
1814 machine=celerity opsys=bsd4-2
1817 ## Clipper
1818 ## What operating systems does this chip run that Emacs has been
1819 ## tested on?
1820 clipper-* )
1821 machine=clipper
1822 ## We'll use the catch-all code at the bottom to guess the
1823 ## operating system.
1826 ## Compaq Nonstop
1827 mips-compaq-nonstopux* )
1828 machine=nonstopux opsys=nonstopux
1831 ## Convex
1832 *-convex-bsd* | *-convex-convexos* )
1833 machine=convex opsys=bsd4-3
1834 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1835 NON_GNU_CPP="cc -E -P"
1838 ## Cubix QBx/386
1839 i[3456]86-cubix-sysv* )
1840 machine=intel386 opsys=usg5-3
1843 ## Cydra 5
1844 cydra*-cydrome-sysv* )
1845 machine=cydra5 opsys=usg5-3
1848 ## Data General AViiON Machines
1849 ## DG changed naming conventions with the release of 5.4.4.10, they
1850 ## dropped the initial 5.4 but left the intervening R. Because of the
1851 ## R this shouldn't conflict with older versions of the OS (which I
1852 ## think were named like dgux4.*). In addition, DG new AViiONs series
1853 ## uses either Motorola M88k or Intel Pentium CPUs.
1854 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1855 machine=aviion opsys=dgux4
1857 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1858 ## This name is dgux5-4-3 instead of dgux5-4r3
1859 ## to avoid a file name conflict on MSDOS.
1860 machine=aviion opsys=dgux5-4-3
1862 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1863 machine=aviion opsys=dgux5-4r2
1865 m88k-dg-dgux* )
1866 machine=aviion opsys=dgux
1869 ## Data General AViiON Intel (x86) Machines
1870 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1871 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1872 i[345]86-dg-dguxR4* )
1873 machine=aviion-intel opsys=dgux4
1876 ## DECstations
1877 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1878 machine=pmax opsys=bsd4-2
1880 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1881 machine=pmax opsys=bsd4-3
1883 mips-dec-ultrix* )
1884 machine=pmax opsys=ultrix4-3
1886 mips-dec-osf* )
1887 machine=pmax opsys=osf1
1889 mips-dec-mach_bsd4.3* )
1890 machine=pmax opsys=mach-bsd4-3
1893 ## Motorola Delta machines
1894 m68k-motorola-sysv* | m68000-motorola-sysv* )
1895 machine=delta opsys=usg5-3
1896 if test -z "`type gnucc | grep 'not found'`"
1897 then
1898 if test -s /etc/167config
1899 then CC="gnucc -m68040"
1900 else CC="gnucc -m68881"
1902 else
1903 if test -z "`type gcc | grep 'not found'`"
1904 then CC=gcc
1905 else CC=cc
1909 m88k-motorola-sysv4* )
1910 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1911 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1912 # I hope there are not other 4.0 versions for this machine
1913 # which really need usg5-4 instead.
1914 machine=delta88k opsys=usg5-4-2
1916 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1917 machine=delta88k opsys=usg5-3
1920 ## Dual machines
1921 m68*-dual-sysv* )
1922 machine=dual opsys=usg5-2
1924 m68*-dual-uniplus* )
1925 machine=dual opsys=unipl5-2
1928 ## Elxsi 6400
1929 elxsi-elxsi-sysv* )
1930 machine=elxsi opsys=usg5-2
1933 ## Encore machines
1934 ns16k-encore-bsd* )
1935 machine=ns16000 opsys=umax
1938 ## The GEC 63 - apparently, this port isn't really finished yet.
1939 # I'm sure we finished off the last of the machines, though. -- fx
1941 ## Gould Power Node and NP1
1942 pn-gould-bsd4.2* )
1943 machine=gould opsys=bsd4-2
1945 pn-gould-bsd4.3* )
1946 machine=gould opsys=bsd4-3
1948 np1-gould-bsd* )
1949 machine=gould-np1 opsys=bsd4-3
1952 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1953 ## as far as Emacs is concerned).
1954 m88k-harris-cxux* )
1955 # Build needs to be different on 7.0 and later releases
1956 case "`uname -r`" in
1957 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1958 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1959 esac
1960 NON_GNU_CPP="/lib/cpp"
1962 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1963 m68k-harris-cxux* )
1964 machine=nh3000 opsys=cxux
1966 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1967 powerpc-harris-powerunix )
1968 machine=nh6000 opsys=powerunix
1969 NON_GNU_CPP="cc -Xo -E -P"
1971 ## SR2001/SR2201 running HI-UX/MPP
1972 hppa1.1-hitachi-hiuxmpp* )
1973 machine=sr2k opsys=hiuxmpp
1975 hppa1.1-hitachi-hiuxwe2* )
1976 machine=sr2k opsys=hiuxwe2
1978 ## Honeywell XPS100
1979 xps*-honeywell-sysv* )
1980 machine=xps100 opsys=usg5-2
1983 ## HP 9000 series 200 or 300
1984 m68*-hp-bsd* )
1985 machine=hp9000s300 opsys=bsd4-3
1987 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1988 m68*-hp-hpux* )
1989 case "`uname -r`" in
1990 ## Someone's system reports A.B8.05 for this.
1991 ## I wonder what other possibilities there are.
1992 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1993 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1994 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1995 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1996 *) machine=hp9000s300 opsys=hpux ;;
1997 esac
2000 ## HP 9000 series 700 and 800, running HP/UX
2001 hppa*-hp-hpux7* )
2002 machine=hp800 opsys=hpux
2004 hppa*-hp-hpux8* )
2005 machine=hp800 opsys=hpux8
2007 hppa*-hp-hpux9shr* )
2008 machine=hp800 opsys=hpux9shr
2010 hppa*-hp-hpux9* )
2011 machine=hp800 opsys=hpux9
2013 hppa*-hp-hpux10.2* )
2014 machine=hp800 opsys=hpux10-20
2016 hppa*-hp-hpux10* )
2017 machine=hp800 opsys=hpux10
2019 hppa*-hp-hpux1[1-9]* )
2020 machine=hp800 opsys=hpux11
2023 hppa*-*-linux-gnu* )
2024 machine=hp800 opsys=gnu-linux
2027 ## HP 9000 series 700 and 800, running HP/UX
2028 hppa*-hp-hpux* )
2029 ## Cross-compilation? Nah!
2030 case "`uname -r`" in
2031 ## Someone's system reports A.B8.05 for this.
2032 ## I wonder what other possibilities there are.
2033 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2034 *.08.* ) machine=hp800 opsys=hpux8 ;;
2035 *.09.* ) machine=hp800 opsys=hpux9 ;;
2036 *) machine=hp800 opsys=hpux10 ;;
2037 esac
2039 hppa*-*-nextstep* )
2040 machine=hp800 opsys=nextstep
2043 ## Orion machines
2044 orion-orion-bsd* )
2045 machine=orion opsys=bsd4-2
2047 clipper-orion-bsd* )
2048 machine=orion105 opsys=bsd4-2
2051 ## IBM machines
2052 i[3456]86-ibm-aix1.1* )
2053 machine=ibmps2-aix opsys=usg5-2-2
2055 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2056 machine=ibmps2-aix opsys=usg5-3
2058 i370-ibm-aix*)
2059 machine=ibm370aix opsys=usg5-3
2061 s390-*-linux-gnu* )
2062 machine=ibms390 opsys=gnu-linux
2064 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2065 machine=ibmrs6000 opsys=aix3-1
2067 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2068 machine=ibmrs6000 opsys=aix3-2-5
2070 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2071 machine=ibmrs6000 opsys=aix4-1
2073 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2074 machine=ibmrs6000 opsys=aix4-2
2076 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2077 machine=ibmrs6000 opsys=aix4-2
2079 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2080 machine=ibmrs6000 opsys=aix4
2082 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2083 machine=ibmrs6000 opsys=aix4-1
2085 rs6000-ibm-aix* | powerpc-ibm-aix* )
2086 machine=ibmrs6000 opsys=aix3-2
2088 romp-ibm-bsd4.3* )
2089 machine=ibmrt opsys=bsd4-3
2091 romp-ibm-bsd4.2* )
2092 machine=ibmrt opsys=bsd4-2
2094 romp-ibm-aos4.3* )
2095 machine=ibmrt opsys=bsd4-3
2097 romp-ibm-aos4.2* )
2098 machine=ibmrt opsys=bsd4-2
2100 romp-ibm-aos* )
2101 machine=ibmrt opsys=bsd4-3
2103 romp-ibm-bsd* )
2104 machine=ibmrt opsys=bsd4-3
2106 romp-ibm-aix* )
2107 machine=ibmrt-aix opsys=usg5-2-2
2110 ## Integrated Solutions `Optimum V'
2111 m68*-isi-bsd4.2* )
2112 machine=isi-ov opsys=bsd4-2
2114 m68*-isi-bsd4.3* )
2115 machine=isi-ov opsys=bsd4-3
2118 ## Intel 386 machines where we do care about the manufacturer
2119 i[3456]86-intsys-sysv* )
2120 machine=is386 opsys=usg5-2-2
2123 ## Prime EXL
2124 i[3456]86-prime-sysv* )
2125 machine=i386 opsys=usg5-3
2128 ## Sequent Symmetry running Dynix
2129 i[3456]86-sequent-bsd* )
2130 machine=symmetry opsys=bsd4-3
2133 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2134 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2135 machine=sequent-ptx opsys=ptx4
2136 NON_GNU_CPP=/lib/cpp
2139 ## Sequent Symmetry running DYNIX/ptx
2140 ## Use the old cpp rather than the newer ANSI one.
2141 i[3456]86-sequent-ptx* )
2142 machine=sequent-ptx opsys=ptx
2143 NON_GNU_CPP="/lib/cpp"
2146 ## ncr machine running svr4.3.
2147 i[3456]86-ncr-sysv4.3 )
2148 machine=ncr386 opsys=usg5-4-3
2151 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2152 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2153 i[3456]86-ncr-sysv* )
2154 machine=ncr386 opsys=usg5-4-2
2157 ## Intel Paragon OSF/1
2158 i860-intel-osf1* )
2159 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2162 ## Intel 860
2163 i860-*-sysv4* )
2164 machine=i860 opsys=usg5-4
2165 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2166 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2169 ## Macintosh PowerPC
2170 powerpc*-*-linux-gnu* )
2171 machine=macppc opsys=gnu-linux
2174 ## Masscomp machines
2175 m68*-masscomp-rtu* )
2176 machine=masscomp opsys=rtu
2179 ## Megatest machines
2180 m68*-megatest-bsd* )
2181 machine=mega68 opsys=bsd4-2
2184 ## Workstations sold by MIPS
2185 ## This is not necessarily all workstations using the MIPS processor -
2186 ## Irises are produced by SGI, and DECstations by DEC.
2188 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2189 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2190 ## it gives for choosing between the alternatives seems to be "Use
2191 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2192 ## the BSD world." I'll assume that these are instructions for
2193 ## handling two odd situations, and that every other situation
2194 ## should use mips.h and usg5-2-2, they being listed first.
2195 mips-mips-usg* )
2196 machine=mips4
2197 ## Fall through to the general code at the bottom to decide on the OS.
2199 mips-mips-riscos4* )
2200 machine=mips4 opsys=bsd4-3
2201 NON_GNU_CC="cc -systype bsd43"
2202 NON_GNU_CPP="cc -systype bsd43 -E"
2204 mips-mips-riscos5* )
2205 machine=mips4 opsys=riscos5
2206 NON_GNU_CC="cc -systype bsd43"
2207 NON_GNU_CPP="cc -systype bsd43 -E"
2209 mips-mips-bsd* )
2210 machine=mips opsys=bsd4-3
2212 mips-mips-* )
2213 machine=mips opsys=usg5-2-2
2216 ## NeXT
2217 m68*-next-* | m68k-*-nextstep* )
2218 machine=m68k opsys=nextstep
2221 ## The complete machine from National Semiconductor
2222 ns32k-ns-genix* )
2223 machine=ns32000 opsys=usg5-2
2226 ## NCR machines
2227 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2228 machine=tower32 opsys=usg5-2-2
2230 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2231 machine=tower32v3 opsys=usg5-3
2234 ## NEC EWS4800
2235 mips-nec-sysv4*)
2236 machine=ews4800 opsys=ux4800
2239 ## Nixdorf Targon 31
2240 m68*-nixdorf-sysv* )
2241 machine=targon31 opsys=usg5-2-2
2244 ## Nu (TI or LMI)
2245 m68*-nu-sysv* )
2246 machine=nu opsys=usg5-2
2249 ## Plexus
2250 m68*-plexus-sysv* )
2251 machine=plexus opsys=usg5-2
2254 ## Pyramid machines
2255 ## I don't really have any idea what sort of processor the Pyramid has,
2256 ## so I'm assuming it is its own architecture.
2257 pyramid-pyramid-bsd* )
2258 machine=pyramid opsys=bsd4-2
2261 ## Sequent Balance
2262 ns32k-sequent-bsd4.2* )
2263 machine=sequent opsys=bsd4-2
2265 ns32k-sequent-bsd4.3* )
2266 machine=sequent opsys=bsd4-3
2269 ## Siemens Nixdorf
2270 mips-siemens-sysv* | mips-sni-sysv*)
2271 machine=mips-siemens opsys=usg5-4
2272 NON_GNU_CC=/usr/ccs/bin/cc
2273 NON_GNU_CPP=/usr/ccs/lib/cpp
2276 ## Silicon Graphics machines
2277 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2278 m68*-sgi-iris3.5* )
2279 machine=irist opsys=iris3-5
2281 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2282 machine=irist opsys=iris3-6
2284 ## Iris 4D
2285 mips-sgi-irix3* )
2286 machine=iris4d opsys=irix3-3
2288 mips-sgi-irix4* )
2289 machine=iris4d opsys=irix4-0
2291 mips-sgi-irix6.5 )
2292 machine=iris4d opsys=irix6-5
2293 # Without defining _LANGUAGE_C, things get masked out in the headers
2294 # so that, for instance, grepping for `free' in stdlib.h fails and
2295 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2296 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2297 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2299 mips-sgi-irix6* )
2300 machine=iris4d opsys=irix6-0
2301 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2302 # but presumably it does no harm.
2303 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2304 # -32 probably isn't necessary in later v.6s -- anyone know which?
2305 NON_GCC_TEST_OPTIONS=-32
2307 mips-sgi-irix5.[01]* )
2308 machine=iris4d opsys=irix5-0
2310 mips-sgi-irix5* | mips-sgi-irix* )
2311 machine=iris4d opsys=irix5-2
2314 ## SONY machines
2315 m68*-sony-bsd4.2* )
2316 machine=news opsys=bsd4-2
2318 m68*-sony-bsd4.3* )
2319 machine=news opsys=bsd4-3
2321 m68*-sony-newsos3* | m68*-sony-news3*)
2322 machine=news opsys=bsd4-3
2324 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2325 machine=news-risc opsys=bsd4-3
2327 mips-sony-newsos6* )
2328 machine=news-r6 opsys=newsos6
2330 mips-sony-news* )
2331 machine=news-risc opsys=newsos5
2334 ## Stride
2335 m68*-stride-sysv* )
2336 machine=stride opsys=usg5-2
2339 ## Suns
2340 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2341 machine=sparc opsys=gnu-linux
2344 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2345 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2346 | rs6000-*-solaris2*)
2347 case "${canonical}" in
2348 m68*-sunos1* ) machine=sun1 ;;
2349 m68*-sunos2* ) machine=sun2 ;;
2350 m68* ) machine=sun3 ;;
2351 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2352 i[3456]86-*-* ) machine=intel386 ;;
2353 powerpcle* ) machine=powerpcle ;;
2354 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2355 sparc* ) machine=sparc ;;
2356 * ) unported=yes ;;
2357 esac
2358 case "${canonical}" in
2359 ## The Sun386 didn't get past 4.0.
2360 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2361 *-sunos4.0* ) opsys=sunos4-0 ;;
2362 *-sunos4.1.[3-9]*noshare )
2363 ## This name is sunos413 instead of sunos4-1-3
2364 ## to avoid a file name conflict on MSDOS.
2365 opsys=sunos413
2366 NON_GNU_CPP=/usr/lib/cpp
2367 NON_GCC_TEST_OPTIONS=-Bstatic
2368 GCC_TEST_OPTIONS=-static
2370 *-sunos4.1.[3-9]* | *-sunos4shr*)
2371 opsys=sunos4shr
2372 NON_GNU_CPP=/usr/lib/cpp
2374 *-sunos4* | *-sunos )
2375 opsys=sunos4-1
2376 NON_GCC_TEST_OPTIONS=-Bstatic
2377 GCC_TEST_OPTIONS=-static
2379 *-sunos5.3* | *-solaris2.3* )
2380 opsys=sol2-3
2381 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 *-sunos5.4* | *-solaris2.4* )
2384 opsys=sol2-4
2385 NON_GNU_CPP=/usr/ccs/lib/cpp
2386 RANLIB="ar -ts"
2388 *-sunos5.5* | *-solaris2.5* )
2389 opsys=sol2-5
2390 NON_GNU_CPP=/usr/ccs/lib/cpp
2391 RANLIB="ar -ts"
2393 *-sunos5.6* | *-solaris2.6* )
2394 opsys=sol2-6
2395 NON_GNU_CPP=/usr/ccs/lib/cpp
2396 RANLIB="ar -ts"
2398 *-sunos5* | *-solaris* )
2399 opsys=sol2-6
2400 NON_GNU_CPP=/usr/ccs/lib/cpp
2402 * ) opsys=bsd4-2 ;;
2403 esac
2404 ## Watch out for a compiler that we know will not work.
2405 case "${canonical}" in
2406 *-solaris* | *-sunos5* )
2407 if [ "x$CC" = x/usr/ucb/cc ]; then
2408 ## /usr/ucb/cc doesn't work;
2409 ## we should find some other compiler that does work.
2410 unset CC
2413 *) ;;
2414 esac
2416 sparc-*-nextstep* )
2417 machine=sparc opsys=nextstep
2420 ## Tadpole 68k
2421 m68*-tadpole-sysv* )
2422 machine=tad68k opsys=usg5-3
2425 ## Tahoe machines
2426 tahoe-tahoe-bsd4.2* )
2427 machine=tahoe opsys=bsd4-2
2429 tahoe-tahoe-bsd4.3* )
2430 machine=tahoe opsys=bsd4-3
2433 ## Tandem Integrity S2
2434 mips-tandem-sysv* )
2435 machine=tandem-s2 opsys=usg5-3
2438 ## Tektronix XD88
2439 m88k-tektronix-sysv3* )
2440 machine=tekxd88 opsys=usg5-3
2443 ## Tektronix 16000 box (6130?)
2444 ns16k-tektronix-bsd* )
2445 machine=ns16000 opsys=bsd4-2
2447 ## Tektronix 4300
2448 ## src/m/tek4300.h hints that this is a m68k machine.
2449 m68*-tektronix-bsd* )
2450 machine=tek4300 opsys=bsd4-3
2453 ## Titan P2 or P3
2454 ## We seem to have lost the machine-description file titan.h!
2455 titan-titan-sysv* )
2456 machine=titan opsys=usg5-3
2459 ## Ustation E30 (SS5E)
2460 m68*-unisys-uniplus* )
2461 machine=ustation opsystem=unipl5-2
2464 ## Vaxen.
2465 vax-dec-* )
2466 machine=vax
2467 case "${canonical}" in
2468 *-bsd4.1* ) opsys=bsd4-1 ;;
2469 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2470 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2471 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2472 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2473 *-vms* ) opsys=vms ;;
2474 * ) unported=yes
2475 esac
2478 ## Whitechapel MG1
2479 ns16k-whitechapel-* )
2480 machine=mg1
2481 ## We don't know what sort of OS runs on these; we'll let the
2482 ## operating system guessing code below try.
2485 ## Wicat
2486 m68*-wicat-sysv* )
2487 machine=wicat opsys=usg5-2
2490 ## IA-64
2491 ia64*-*-linux* )
2492 machine=ia64 opsys=gnu-linux
2495 ## Intel 386 machines where we don't care about the manufacturer
2496 i[3456]86-*-* )
2497 machine=intel386
2498 case "${canonical}" in
2499 *-cygwin ) opsys=cygwin ;;
2500 *-lynxos* ) opsys=lynxos ;;
2501 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2502 *-isc2.2* ) opsys=isc2-2 ;;
2503 *-isc4.0* ) opsys=isc4-0 ;;
2504 *-isc4.* ) opsys=isc4-1
2505 GCC_TEST_OPTIONS=-posix
2506 NON_GCC_TEST_OPTIONS=-Xp
2508 *-isc* ) opsys=isc3-0 ;;
2509 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2510 *-esix* ) opsys=esix ;;
2511 *-xenix* ) opsys=xenix ;;
2512 *-linux-gnu* ) opsys=gnu-linux ;;
2513 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2514 *-sco3.2v5* ) opsys=sco5
2515 NON_GNU_CPP=/lib/cpp
2516 # Prevent -belf from being passed to $CPP.
2517 # /lib/cpp does not accept it.
2518 OVERRIDE_CPPFLAGS=" "
2520 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2521 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2522 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2523 *-386bsd* ) opsys=386bsd ;;
2524 *-nextstep* ) opsys=nextstep ;;
2525 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2526 esac
2529 ## m68k Linux-based GNU system
2530 m68k-*-linux-gnu* )
2531 machine=m68k opsys=gnu-linux
2534 ## Mips Linux-based GNU system
2535 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2536 machine=mips opsys=gnu-linux
2539 ## UXP/DS
2540 sparc-fujitsu-sysv4* )
2541 machine=sparc opsys=uxpds
2542 NON_GNU_CPP=/usr/ccs/lib/cpp
2543 RANLIB="ar -ts"
2546 ## UXP/V
2547 f301-fujitsu-uxpv4.1)
2548 machine=f301 opsys=uxpv
2551 ## Darwin / Mac OS X
2552 powerpc-apple-darwin* )
2553 machine=powermac opsys=darwin
2554 # Define CPP as follows to make autoconf work correctly.
2555 CPP="cc -E -traditional-cpp"
2558 ## AMD x86-64 Linux-based GNU system
2559 x86_64-*-linux-gnu* )
2560 machine=amdx86-64 opsys=gnu-linux
2564 unported=yes
2566 esac
2568 ### If the code above didn't choose an operating system, just choose
2569 ### an operating system based on the configuration name. You really
2570 ### only want to use this when you have no idea what the right
2571 ### operating system is; if you know what operating systems a machine
2572 ### runs, it's cleaner to make it explicit in the case statement
2573 ### above.
2574 if test x"${opsys}" = x; then
2575 case "${canonical}" in
2576 *-gnu* ) opsys=gnu ;;
2577 *-bsd4.[01] ) opsys=bsd4-1 ;;
2578 *-bsd4.2 ) opsys=bsd4-2 ;;
2579 *-bsd4.3 ) opsys=bsd4-3 ;;
2580 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2581 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2582 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2583 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2584 *-sysv4.2uw* ) opsys=unixware ;;
2585 *-sysv5uw* ) opsys=unixware ;;
2586 *-sysv5OpenUNIX* ) opsys=unixware ;;
2587 *-sysv4.1* | *-sysvr4.1* )
2588 NON_GNU_CPP=/usr/lib/cpp
2589 opsys=usg5-4 ;;
2590 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2591 if [ x$NON_GNU_CPP = x ]; then
2592 if [ -f /usr/ccs/lib/cpp ]; then
2593 NON_GNU_CPP=/usr/ccs/lib/cpp
2594 else
2595 NON_GNU_CPP=/lib/cpp
2598 opsys=usg5-4-2 ;;
2599 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2601 unported=yes
2603 esac
2608 if test $unported = yes; then
2609 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2610 Check \`etc/MACHINES' for recognized configuration names." >&5
2611 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2612 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2613 { (exit 1); exit 1; }; }
2616 machfile="m/${machine}.h"
2617 opsysfile="s/${opsys}.h"
2620 #### Choose a compiler.
2621 test -n "$CC" && cc_specified=yes
2623 # Save the value of CFLAGS that the user specified.
2624 SPECIFIED_CFLAGS="$CFLAGS"
2626 case ${with_gcc} in
2627 "yes" ) CC="gcc" GCC=yes ;;
2628 "no" ) : ${CC=cc} ;;
2630 esac
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636 if test -n "$ac_tool_prefix"; then
2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2663 CC=$ac_cv_prog_CC
2664 if test -n "$CC"; then
2665 echo "$as_me:$LINENO: result: $CC" >&5
2666 echo "${ECHO_T}$CC" >&6
2667 else
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2673 if test -z "$ac_cv_prog_CC"; then
2674 ac_ct_CC=$CC
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc; ac_word=$2
2677 echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC="gcc"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702 if test -n "$ac_ct_CC"; then
2703 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704 echo "${ECHO_T}$ac_ct_CC" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6
2710 CC=$ac_ct_CC
2711 else
2712 CC="$ac_cv_prog_CC"
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_CC="${ac_tool_prefix}cc"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2738 done
2739 done
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6
2747 else
2748 echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2753 if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "cc", so it can be a program name with args.
2756 set dummy cc; ac_word=$2
2757 echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_ac_ct_CC="cc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2776 done
2777 done
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 echo "${ECHO_T}$ac_ct_CC" >&6
2785 else
2786 echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6
2790 CC=$ac_ct_CC
2791 else
2792 CC="$ac_cv_prog_CC"
2796 if test -z "$CC"; then
2797 # Extract the first word of "cc", so it can be a program name with args.
2798 set dummy cc; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 ac_prog_rejected=no
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2816 ac_prog_rejected=yes
2817 continue
2819 ac_cv_prog_CC="cc"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2823 done
2824 done
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2829 shift
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2834 shift
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842 echo "$as_me:$LINENO: result: $CC" >&5
2843 echo "${ECHO_T}$CC" >&6
2844 else
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 for ac_prog in cl
2854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2875 done
2876 done
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 echo "$as_me:$LINENO: result: $CC" >&5
2883 echo "${ECHO_T}$CC" >&6
2884 else
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2889 test -n "$CC" && break
2890 done
2892 if test -z "$CC"; then
2893 ac_ct_CC=$CC
2894 for ac_prog in cl
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 echo "${ECHO_T}$ac_ct_CC" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$ac_ct_CC" && break
2932 done
2934 CC=$ac_ct_CC
2940 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: no acceptable C compiler found in \$PATH
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2946 # Provide some information about the compiler.
2947 echo "$as_me:$LINENO:" \
2948 "checking for C compiler version" >&5
2949 ac_compiler=`set X $ac_compile; echo $2`
2950 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2951 (eval $ac_compiler --version </dev/null >&5) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2956 (eval $ac_compiler -v </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); }
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #line $LINENO "configure"
2968 /* confdefs.h. */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2975 main ()
2979 return 0;
2981 _ACEOF
2982 ac_clean_files_save=$ac_clean_files
2983 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2986 # of exeext.
2987 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2988 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2989 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2991 (eval $ac_link_default) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; then
2995 # Find the output, starting from the most likely. This scheme is
2996 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2997 # resort.
2999 # Be careful to initialize this variable, since it used to be cached.
3000 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3001 ac_cv_exeext=
3002 # b.out is created by i960 compilers.
3003 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3005 test -f "$ac_file" || continue
3006 case $ac_file in
3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3009 conftest.$ac_ext )
3010 # This is the source file.
3012 [ab].out )
3013 # We found the default executable, but exeext='' is most
3014 # certainly right.
3015 break;;
3016 *.* )
3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 # FIXME: I believe we export ac_cv_exeext for Libtool,
3019 # but it would be cool to find out if it's true. Does anybody
3020 # maintain Libtool? --akim.
3021 export ac_cv_exeext
3022 break;;
3024 break;;
3025 esac
3026 done
3027 else
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: C compiler cannot create executables
3034 See \`config.log' for more details." >&2;}
3035 { (exit 77); exit 77; }; }
3038 ac_exeext=$ac_cv_exeext
3039 echo "$as_me:$LINENO: result: $ac_file" >&5
3040 echo "${ECHO_T}$ac_file" >&6
3042 # Check the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3045 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3046 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3047 # If not cross compiling, check that we can run a simple program.
3048 if test "$cross_compiling" != yes; then
3049 if { ac_try='./$ac_file'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 cross_compiling=no
3056 else
3057 if test "$cross_compiling" = maybe; then
3058 cross_compiling=yes
3059 else
3060 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&5
3063 echo "$as_me: error: cannot run C compiled programs.
3064 If you meant to cross compile, use \`--host'.
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }
3070 echo "$as_me:$LINENO: result: yes" >&5
3071 echo "${ECHO_T}yes" >&6
3073 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3074 ac_clean_files=$ac_clean_files_save
3075 # Check the compiler produces executables we can run. If not, either
3076 # the compiler is broken, or we cross compile.
3077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3080 echo "${ECHO_T}$cross_compiling" >&6
3082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3085 (eval $ac_link) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3091 # work properly (i.e., refer to `conftest.exe'), while it won't with
3092 # `rm'.
3093 for ac_file in conftest.exe conftest conftest.*; do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3097 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098 export ac_cv_exeext
3099 break;;
3100 * ) break;;
3101 esac
3102 done
3103 else
3104 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3111 rm -f conftest$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3113 echo "${ECHO_T}$ac_cv_exeext" >&6
3115 rm -f conftest.$ac_ext
3116 EXEEXT=$ac_cv_exeext
3117 ac_exeext=$EXEEXT
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 cat >conftest.$ac_ext <<_ACEOF
3124 #line $LINENO "configure"
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3132 main ()
3136 return 0;
3138 _ACEOF
3139 rm -f conftest.o conftest.obj
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3148 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 break;;
3150 esac
3151 done
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3166 echo "${ECHO_T}$ac_cv_objext" >&6
3167 OBJEXT=$ac_cv_objext
3168 ac_objext=$OBJEXT
3169 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3170 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3171 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3183 main ()
3185 #ifndef __GNUC__
3186 choke me
3187 #endif
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_compiler_gnu=yes
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 ac_compiler_gnu=no
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3218 GCC=`test $ac_compiler_gnu = yes && echo yes`
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 CFLAGS="-g"
3222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h. */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3236 main ()
3240 return 0;
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245 (eval $ac_compile) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_prog_cc_g=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 ac_cv_prog_cc_g=no
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3266 if test "$ac_test_CFLAGS" = set; then
3267 CFLAGS=$ac_save_CFLAGS
3268 elif test $ac_cv_prog_cc_g = yes; then
3269 if test "$GCC" = yes; then
3270 CFLAGS="-g -O2"
3271 else
3272 CFLAGS="-g"
3274 else
3275 if test "$GCC" = yes; then
3276 CFLAGS="-O2"
3277 else
3278 CFLAGS=
3281 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_cv_prog_cc_stdc=no
3287 ac_save_CC=$CC
3288 cat >conftest.$ac_ext <<_ACEOF
3289 #line $LINENO "configure"
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 \
3400 '#include <stdlib.h>' \
3401 'extern "C" void std::exit (int) throw (); using std::exit;' \
3402 'extern "C" void std::exit (int); using std::exit;' \
3403 'extern "C" void exit (int) throw ();' \
3404 'extern "C" void exit (int);' \
3405 'void exit (int);'
3407 cat >conftest.$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <stdlib.h>
3415 $ac_declaration
3417 main ()
3419 exit (42);
3421 return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>&5
3427 ac_status=$?
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try='test -s conftest.$ac_objext'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; }; then
3437 else
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3441 continue
3443 rm -f conftest.$ac_objext conftest.$ac_ext
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line $LINENO "configure"
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 $ac_declaration
3453 main ()
3455 exit (42);
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>&5
3463 ac_status=$?
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 break
3473 else
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3478 rm -f conftest.$ac_objext conftest.$ac_ext
3479 done
3480 rm -f conftest*
3481 if test -n "$ac_declaration"; then
3482 echo '#ifdef __cplusplus' >>confdefs.h
3483 echo $ac_declaration >>confdefs.h
3484 echo '#endif' >>confdefs.h
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3492 rm -f conftest.$ac_objext conftest.$ac_ext
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 # On Suns, sometimes $CPP names a directory.
3501 if test -n "$CPP" && test -d "$CPP"; then
3502 CPP=
3505 #### Some systems specify a CPP to use unless we are using GCC.
3506 #### Now that we know whether we are using GCC, we can decide whether
3507 #### to use that one.
3508 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3509 then
3510 CPP="$NON_GNU_CPP"
3513 #### Some systems specify a CC to use unless we are using GCC.
3514 #### Now that we know whether we are using GCC, we can decide whether
3515 #### to use that one.
3516 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3517 test x$cc_specified != xyes
3518 then
3519 CC="$NON_GNU_CC"
3522 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3523 then
3524 CC="$CC $GCC_TEST_OPTIONS"
3527 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3528 then
3529 CC="$CC $NON_GCC_TEST_OPTIONS"
3532 #### Some other nice autoconf tests.
3534 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3536 LN_S=$as_ln_s
3537 if test "$LN_S" = "ln -s"; then
3538 echo "$as_me:$LINENO: result: yes" >&5
3539 echo "${ECHO_T}yes" >&6
3540 else
3541 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3542 echo "${ECHO_T}no, using $LN_S" >&6
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3552 # On Suns, sometimes $CPP names a directory.
3553 if test -n "$CPP" && test -d "$CPP"; then
3554 CPP=
3556 if test -z "$CPP"; then
3557 if test "${ac_cv_prog_CPP+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 else
3560 # Double quotes because CPP needs to be expanded
3561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3563 ac_preproc_ok=false
3564 for ac_c_preproc_warn_flag in '' yes
3566 # Use a header file that comes with gcc, so configuring glibc
3567 # with a fresh cross-compiler works.
3568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3569 # <limits.h> exists even on freestanding compilers.
3570 # On the NeXT, cc -E runs the code through the compiler's parser,
3571 # not just through cpp. "Syntax error" is here to catch this case.
3572 cat >conftest.$ac_ext <<_ACEOF
3573 #line $LINENO "configure"
3574 /* confdefs.h. */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584 Syntax error
3585 _ACEOF
3586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 else
3597 ac_cpp_err=
3599 else
3600 ac_cpp_err=yes
3602 if test -z "$ac_cpp_err"; then
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 # Broken: fails on valid input.
3609 continue
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether non-existent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #include <ac_nonexistent.h>
3623 _ACEOF
3624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3626 ac_status=$?
3627 grep -v '^ *+' conftest.er1 >conftest.err
3628 rm -f conftest.er1
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null; then
3632 if test -s conftest.err; then
3633 ac_cpp_err=$ac_c_preproc_warn_flag
3634 else
3635 ac_cpp_err=
3637 else
3638 ac_cpp_err=yes
3640 if test -z "$ac_cpp_err"; then
3641 # Broken: success on invalid input.
3642 continue
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3651 rm -f conftest.err conftest.$ac_ext
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3657 break
3660 done
3661 ac_cv_prog_CPP=$CPP
3664 CPP=$ac_cv_prog_CPP
3665 else
3666 ac_cv_prog_CPP=$CPP
3668 echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3673 # Use a header file that comes with gcc, so configuring glibc
3674 # with a fresh cross-compiler works.
3675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676 # <limits.h> exists even on freestanding compilers.
3677 # On the NeXT, cc -E runs the code through the compiler's parser,
3678 # not just through cpp. "Syntax error" is here to catch this case.
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 #ifdef __STDC__
3687 # include <limits.h>
3688 #else
3689 # include <assert.h>
3690 #endif
3691 Syntax error
3692 _ACEOF
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_c_preproc_warn_flag
3703 else
3704 ac_cpp_err=
3706 else
3707 ac_cpp_err=yes
3709 if test -z "$ac_cpp_err"; then
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 # Broken: fails on valid input.
3716 continue
3718 rm -f conftest.err conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether non-existent headers
3721 # can be detected and how.
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <ac_nonexistent.h>
3730 _ACEOF
3731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null; then
3739 if test -s conftest.err; then
3740 ac_cpp_err=$ac_c_preproc_warn_flag
3741 else
3742 ac_cpp_err=
3744 else
3745 ac_cpp_err=yes
3747 if test -z "$ac_cpp_err"; then
3748 # Broken: success on invalid input.
3749 continue
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3754 # Passes both tests.
3755 ac_preproc_ok=:
3756 break
3758 rm -f conftest.err conftest.$ac_ext
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3765 else
3766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 # Find a good install program. We prefer a C program (faster),
3780 # so one script is as good as another. But avoid the broken or
3781 # incompatible versions:
3782 # SysV /etc/install, /usr/sbin/install
3783 # SunOS /usr/etc/install
3784 # IRIX /sbin/install
3785 # AIX /bin/install
3786 # AmigaOS /C/install, which installs bootblocks on floppy discs
3787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3792 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3793 if test -z "$INSTALL"; then
3794 if test "${ac_cv_path_install+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803 case $as_dir/ in
3804 ./ | .// | /cC/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 /usr/ucb/* ) ;;
3808 # OSF1 and SCO ODT 3.0 have their own names for install.
3809 # Don't use installbsd from OSF since it installs stuff as root
3810 # by default.
3811 for ac_prog in ginstall scoinst install; do
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3814 if test $ac_prog = install &&
3815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3816 # AIX install. It has an incompatible calling convention.
3818 elif test $ac_prog = install &&
3819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3820 # program-specific install script used by HP pwplus--don't use.
3822 else
3823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3824 break 3
3827 done
3828 done
3830 esac
3831 done
3835 if test "${ac_cv_path_install+set}" = set; then
3836 INSTALL=$ac_cv_path_install
3837 else
3838 # As a last resort, use the slow shell script. We don't cache a
3839 # path for INSTALL within a source directory, because that will
3840 # break other packages using the cache if that directory is
3841 # removed, or if the path is relative.
3842 INSTALL=$ac_install_sh
3845 echo "$as_me:$LINENO: result: $INSTALL" >&5
3846 echo "${ECHO_T}$INSTALL" >&6
3848 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849 # It thinks the first close brace ends the variable substitution.
3850 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3852 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3854 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3856 if test "x$RANLIB" = x; then
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_RANLIB+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if test -n "$RANLIB"; then
3866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3884 RANLIB=$ac_cv_prog_RANLIB
3885 if test -n "$RANLIB"; then
3886 echo "$as_me:$LINENO: result: $RANLIB" >&5
3887 echo "${ECHO_T}$RANLIB" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_RANLIB"; then
3895 ac_ct_RANLIB=$RANLIB
3896 # Extract the first word of "ranlib", so it can be a program name with args.
3897 set dummy ranlib; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$ac_ct_RANLIB"; then
3904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_RANLIB="ranlib"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3920 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3924 if test -n "$ac_ct_RANLIB"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3926 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 RANLIB=$ac_ct_RANLIB
3933 else
3934 RANLIB="$ac_cv_prog_RANLIB"
3938 # Extract the first word of "install-info", so it can be a program name with args.
3939 set dummy install-info; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 case $INSTALL_INFO in
3946 [\\/]* | ?:[\\/]*)
3947 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3965 esac
3967 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3969 if test -n "$INSTALL_INFO"; then
3970 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3971 echo "${ECHO_T}$INSTALL_INFO" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 # Extract the first word of "install-info", so it can be a program name with args.
3978 set dummy install-info; ac_word=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984 case $INSTALL_INFO in
3985 [\\/]* | ?:[\\/]*)
3986 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in /usr/sbin
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4004 esac
4006 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4008 if test -n "$INSTALL_INFO"; then
4009 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4010 echo "${ECHO_T}$INSTALL_INFO" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 # Extract the first word of "install-info", so it can be a program name with args.
4017 set dummy install-info; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 case $INSTALL_INFO in
4024 [\\/]* | ?:[\\/]*)
4025 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in /sbin
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4042 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4044 esac
4046 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4048 if test -n "$INSTALL_INFO"; then
4049 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4050 echo "${ECHO_T}$INSTALL_INFO" >&6
4051 else
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4058 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4059 then
4060 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4063 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4064 then
4065 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4070 echo "$as_me:$LINENO: checking for egrep" >&5
4071 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4072 if test "${ac_cv_prog_egrep+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4076 then ac_cv_prog_egrep='grep -E'
4077 else ac_cv_prog_egrep='egrep'
4080 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4081 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4082 EGREP=$ac_cv_prog_egrep
4086 echo "$as_me:$LINENO: checking for AIX" >&5
4087 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #ifdef _AIX
4097 #endif
4099 _ACEOF
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "yes" >/dev/null 2>&1; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103 echo "${ECHO_T}yes" >&6
4104 cat >>confdefs.h <<\_ACEOF
4105 #define _ALL_SOURCE 1
4106 _ACEOF
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6
4112 rm -f conftest*
4116 #### Extract some information from the operating system and machine files.
4118 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4119 - which libraries the lib-src programs will want, and
4120 - whether the GNU malloc routines are usable..." >&5
4121 echo "$as_me: checking the machine- and system-dependent files to find out
4122 - which libraries the lib-src programs will want, and
4123 - whether the GNU malloc routines are usable..." >&6;}
4125 ### First figure out CFLAGS (which we use for running the compiler here)
4126 ### and REAL_CFLAGS (which we use for real compilation).
4127 ### The two are the same except on a few systems, where they are made
4128 ### different to work around various lossages. For example,
4129 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4130 ### as implying static linking.
4132 ### If the CFLAGS env var is specified, we use that value
4133 ### instead of the default.
4135 ### It's not important that this name contain the PID; you can't run
4136 ### two configures in the same directory and have anything work
4137 ### anyway.
4138 tempcname="conftest.c"
4140 echo '
4141 #include "'${srcdir}'/src/'${opsysfile}'"
4142 #include "'${srcdir}'/src/'${machfile}'"
4143 #ifndef LIBS_MACHINE
4144 #define LIBS_MACHINE
4145 #endif
4146 #ifndef LIBS_SYSTEM
4147 #define LIBS_SYSTEM
4148 #endif
4149 #ifndef C_SWITCH_SYSTEM
4150 #define C_SWITCH_SYSTEM
4151 #endif
4152 #ifndef C_SWITCH_MACHINE
4153 #define C_SWITCH_MACHINE
4154 #endif
4155 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4156 configure___ c_switch_system=C_SWITCH_SYSTEM
4157 configure___ c_switch_machine=C_SWITCH_MACHINE
4159 #ifndef LIB_X11_LIB
4160 #define LIB_X11_LIB -lX11
4161 #endif
4163 #ifndef LIBX11_MACHINE
4164 #define LIBX11_MACHINE
4165 #endif
4167 #ifndef LIBX11_SYSTEM
4168 #define LIBX11_SYSTEM
4169 #endif
4170 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4172 #ifdef UNEXEC
4173 configure___ unexec=UNEXEC
4174 #else
4175 configure___ unexec=unexec.o
4176 #endif
4178 #ifdef SYSTEM_MALLOC
4179 configure___ system_malloc=yes
4180 #else
4181 configure___ system_malloc=no
4182 #endif
4184 #ifdef USE_MMAP_FOR_BUFFERS
4185 configure___ use_mmap_for_buffers=yes
4186 #else
4187 configure___ use_mmap_for_buffers=no
4188 #endif
4190 #ifndef C_DEBUG_SWITCH
4191 #define C_DEBUG_SWITCH -g
4192 #endif
4194 #ifndef C_OPTIMIZE_SWITCH
4195 #ifdef __GNUC__
4196 #define C_OPTIMIZE_SWITCH -O2
4197 #else
4198 #define C_OPTIMIZE_SWITCH -O
4199 #endif
4200 #endif
4202 #ifndef LD_SWITCH_MACHINE
4203 #define LD_SWITCH_MACHINE
4204 #endif
4206 #ifndef LD_SWITCH_SYSTEM
4207 #define LD_SWITCH_SYSTEM
4208 #endif
4210 #ifndef LD_SWITCH_X_SITE_AUX
4211 #define LD_SWITCH_X_SITE_AUX
4212 #endif
4214 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4215 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4217 #ifdef THIS_IS_CONFIGURE
4219 /* Get the CFLAGS for tests in configure. */
4220 #ifdef __GNUC__
4221 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4222 #else
4223 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4224 #endif
4226 #else /* not THIS_IS_CONFIGURE */
4228 /* Get the CFLAGS for real compilation. */
4229 #ifdef __GNUC__
4230 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4231 #else
4232 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4233 #endif
4235 #endif /* not THIS_IS_CONFIGURE */
4236 ' > ${tempcname}
4238 # The value of CPP is a quoted variable reference, so we need to do this
4239 # to get its actual value...
4240 CPP=`eval "echo $CPP"`
4241 eval `${CPP} -Isrc ${tempcname} \
4242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4243 if test "x$SPECIFIED_CFLAGS" = x; then
4244 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4245 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4246 else
4247 REAL_CFLAGS="$CFLAGS"
4249 rm ${tempcname}
4251 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4253 ### Make sure subsequent tests use flags consistent with the build flags.
4255 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4256 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4257 else
4258 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4264 cat >>confdefs.h <<\_ACEOF
4265 #define _GNU_SOURCE 1
4266 _ACEOF
4270 # Check whether --enable-largefile or --disable-largefile was given.
4271 if test "${enable_largefile+set}" = set; then
4272 enableval="$enable_largefile"
4275 if test "$enable_largefile" != no; then
4277 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282 ac_cv_sys_largefile_CC=no
4283 if test "$GCC" != yes; then
4284 ac_save_CC=$CC
4285 while :; do
4286 # IRIX 6.2 and later do not support large files by default,
4287 # so use the C compiler's -n32 option if that helps.
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line $LINENO "configure"
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <sys/types.h>
4296 /* Check that off_t can represent 2**63 - 1 correctly.
4297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4298 since some C++ compilers masquerading as C compilers
4299 incorrectly reject 9223372036854775807. */
4300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4302 && LARGE_OFF_T % 2147483647 == 1)
4303 ? 1 : -1];
4305 main ()
4309 return 0;
4311 _ACEOF
4312 rm -f conftest.$ac_objext
4313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4314 (eval $ac_compile) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 break
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.$ac_objext
4331 CC="$CC -n32"
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 ac_cv_sys_largefile_CC=' -n32'; break
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4350 rm -f conftest.$ac_objext
4351 break
4352 done
4353 CC=$ac_save_CC
4354 rm -f conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4358 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4359 if test "$ac_cv_sys_largefile_CC" != no; then
4360 CC=$CC$ac_cv_sys_largefile_CC
4363 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4364 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4365 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 while :; do
4369 ac_cv_sys_file_offset_bits=no
4370 cat >conftest.$ac_ext <<_ACEOF
4371 #line $LINENO "configure"
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <sys/types.h>
4378 /* Check that off_t can represent 2**63 - 1 correctly.
4379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4380 since some C++ compilers masquerading as C compilers
4381 incorrectly reject 9223372036854775807. */
4382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4384 && LARGE_OFF_T % 2147483647 == 1)
4385 ? 1 : -1];
4387 main ()
4391 return 0;
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 break
4407 else
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4412 rm -f conftest.$ac_objext conftest.$ac_ext
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #define _FILE_OFFSET_BITS 64
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4429 ? 1 : -1];
4431 main ()
4435 return 0;
4437 _ACEOF
4438 rm -f conftest.$ac_objext
4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_sys_file_offset_bits=64; break
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4456 rm -f conftest.$ac_objext conftest.$ac_ext
4457 break
4458 done
4460 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4461 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4462 if test "$ac_cv_sys_file_offset_bits" != no; then
4464 cat >>confdefs.h <<_ACEOF
4465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4466 _ACEOF
4469 rm -f conftest*
4470 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4471 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4472 if test "${ac_cv_sys_large_files+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 while :; do
4476 ac_cv_sys_large_files=no
4477 cat >conftest.$ac_ext <<_ACEOF
4478 #line $LINENO "configure"
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <sys/types.h>
4485 /* Check that off_t can represent 2**63 - 1 correctly.
4486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487 since some C++ compilers masquerading as C compilers
4488 incorrectly reject 9223372036854775807. */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491 && LARGE_OFF_T % 2147483647 == 1)
4492 ? 1 : -1];
4494 main ()
4498 return 0;
4500 _ACEOF
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 break
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4519 rm -f conftest.$ac_objext conftest.$ac_ext
4520 cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4536 ? 1 : -1];
4538 main ()
4542 return 0;
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_sys_large_files=1; break
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 rm -f conftest.$ac_objext conftest.$ac_ext
4564 break
4565 done
4567 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4568 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4569 if test "$ac_cv_sys_large_files" != no; then
4571 cat >>confdefs.h <<_ACEOF
4572 #define _LARGE_FILES $ac_cv_sys_large_files
4573 _ACEOF
4576 rm -f conftest*
4580 if test "${with_sound}" != "no"; then
4581 # Sound support for GNU/Linux and the free BSDs.
4582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584 if test "${ac_cv_header_stdc+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line $LINENO "configure"
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 #include <stdlib.h>
4595 #include <stdarg.h>
4596 #include <string.h>
4597 #include <float.h>
4600 main ()
4604 return 0;
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_header_stdc=yes
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_header_stdc=no
4626 rm -f conftest.$ac_objext conftest.$ac_ext
4628 if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <string.h>
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev/null 2>&1; then
4643 else
4644 ac_cv_header_stdc=no
4646 rm -f conftest*
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat >conftest.$ac_ext <<_ACEOF
4653 #line $LINENO "configure"
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #include <stdlib.h>
4661 _ACEOF
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "free" >/dev/null 2>&1; then
4665 else
4666 ac_cv_header_stdc=no
4668 rm -f conftest*
4672 if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then
4676 else
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ctype.h>
4685 #if ((' ' & 0x0FF) == 0x020)
4686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4688 #else
4689 # define ISLOWER(c) \
4690 (('a' <= (c) && (c) <= 'i') \
4691 || ('j' <= (c) && (c) <= 'r') \
4692 || ('s' <= (c) && (c) <= 'z'))
4693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #endif
4696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4698 main ()
4700 int i;
4701 for (i = 0; i < 256; i++)
4702 if (XOR (islower (i), ISLOWER (i))
4703 || toupper (i) != TOUPPER (i))
4704 exit(2);
4705 exit (0);
4707 _ACEOF
4708 rm -f conftest$ac_exeext
4709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4720 else
4721 echo "$as_me: program exited with status $ac_status" >&5
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 ( exit $ac_status )
4726 ac_cv_header_stdc=no
4728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734 if test $ac_cv_header_stdc = yes; then
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4738 _ACEOF
4742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 #line $LINENO "configure"
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 $ac_includes_default
4770 #include <$ac_header>
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_Header=yes"
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 eval "$as_ac_Header=no"
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796 cat >>confdefs.h <<_ACEOF
4797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4798 _ACEOF
4802 done
4808 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819 else
4820 # Is the header compilable?
4821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823 cat >conftest.$ac_ext <<_ACEOF
4824 #line $LINENO "configure"
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_header_compiler=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_header_compiler=no
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4854 echo "${ECHO_T}$ac_header_compiler" >&6
4856 # Is the header present?
4857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line $LINENO "configure"
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <$ac_header>
4867 _ACEOF
4868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4870 ac_status=$?
4871 grep -v '^ *+' conftest.er1 >conftest.err
4872 rm -f conftest.er1
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null; then
4876 if test -s conftest.err; then
4877 ac_cpp_err=$ac_c_preproc_warn_flag
4878 else
4879 ac_cpp_err=
4881 else
4882 ac_cpp_err=yes
4884 if test -z "$ac_cpp_err"; then
4885 ac_header_preproc=yes
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_header_preproc=no
4892 rm -f conftest.err conftest.$ac_ext
4893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4894 echo "${ECHO_T}$ac_header_preproc" >&6
4896 # So? What about this header?
4897 case $ac_header_compiler:$ac_header_preproc in
4898 yes:no )
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4904 cat <<\_ASBOX
4905 ## ------------------------------------ ##
4906 ## Report this to bug-autoconf@gnu.org. ##
4907 ## ------------------------------------ ##
4908 _ASBOX
4910 sed "s/^/$as_me: WARNING: /" >&2
4912 no:yes )
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4920 cat <<\_ASBOX
4921 ## ------------------------------------ ##
4922 ## Report this to bug-autoconf@gnu.org. ##
4923 ## ------------------------------------ ##
4924 _ASBOX
4926 sed "s/^/$as_me: WARNING: /" >&2
4928 esac
4929 echo "$as_me:$LINENO: checking for $ac_header" >&5
4930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934 eval "$as_ac_Header=$ac_header_preproc"
4936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4941 cat >>confdefs.h <<_ACEOF
4942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4947 done
4949 # Emulation library used on NetBSD.
4950 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4951 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4952 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955 ac_check_lib_save_LIBS=$LIBS
4956 LIBS="-lossaudio $LIBS"
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 #ifdef __cplusplus
4967 extern "C"
4968 #endif
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char _oss_ioctl ();
4973 main ()
4975 _oss_ioctl ();
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_ossaudio__oss_ioctl=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_lib_ossaudio__oss_ioctl=no
4999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 LIBS=$ac_check_lib_save_LIBS
5002 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5003 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5004 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5005 LIBSOUND=-lossaudio
5006 else
5007 LIBSOUND=
5036 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5037 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5038 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5039 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043 echo "$as_me:$LINENO: checking for $ac_header" >&5
5044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050 else
5051 # Is the header compilable?
5052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5055 #line $LINENO "configure"
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 #include <$ac_header>
5063 _ACEOF
5064 rm -f conftest.$ac_objext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -s conftest.$ac_objext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_header_compiler=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_header_compiler=no
5083 rm -f conftest.$ac_objext conftest.$ac_ext
5084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5085 echo "${ECHO_T}$ac_header_compiler" >&6
5087 # Is the header present?
5088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 #include <$ac_header>
5098 _ACEOF
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_c_preproc_warn_flag
5109 else
5110 ac_cpp_err=
5112 else
5113 ac_cpp_err=yes
5115 if test -z "$ac_cpp_err"; then
5116 ac_header_preproc=yes
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ac_header_preproc=no
5123 rm -f conftest.err conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5125 echo "${ECHO_T}$ac_header_preproc" >&6
5127 # So? What about this header?
5128 case $ac_header_compiler:$ac_header_preproc in
5129 yes:no )
5130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5135 cat <<\_ASBOX
5136 ## ------------------------------------ ##
5137 ## Report this to bug-autoconf@gnu.org. ##
5138 ## ------------------------------------ ##
5139 _ASBOX
5141 sed "s/^/$as_me: WARNING: /" >&2
5143 no:yes )
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5147 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5151 cat <<\_ASBOX
5152 ## ------------------------------------ ##
5153 ## Report this to bug-autoconf@gnu.org. ##
5154 ## ------------------------------------ ##
5155 _ASBOX
5157 sed "s/^/$as_me: WARNING: /" >&2
5159 esac
5160 echo "$as_me:$LINENO: checking for $ac_header" >&5
5161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 eval "$as_ac_Header=$ac_header_preproc"
5167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5172 cat >>confdefs.h <<_ACEOF
5173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5174 _ACEOF
5178 done
5181 for ac_header in term.h
5183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5184 echo "$as_me:$LINENO: checking for $ac_header" >&5
5185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 cat >conftest.$ac_ext <<_ACEOF
5190 #line $LINENO "configure"
5191 /* confdefs.h. */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <$ac_header>
5197 _ACEOF
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null; then
5206 if test -s conftest.err; then
5207 ac_cpp_err=$ac_c_preproc_warn_flag
5208 else
5209 ac_cpp_err=
5211 else
5212 ac_cpp_err=yes
5214 if test -z "$ac_cpp_err"; then
5215 eval "$as_ac_Header=yes"
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 eval "$as_ac_Header=no"
5222 rm -f conftest.err conftest.$ac_ext
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227 cat >>confdefs.h <<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229 _ACEOF
5233 done
5235 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237 if test "${ac_cv_header_stdc+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <stdlib.h>
5248 #include <stdarg.h>
5249 #include <string.h>
5250 #include <float.h>
5253 main ()
5257 return 0;
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262 (eval $ac_compile) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -s conftest.$ac_objext'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_cv_header_stdc=yes
5273 else
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_cv_header_stdc=no
5279 rm -f conftest.$ac_objext conftest.$ac_ext
5281 if test $ac_cv_header_stdc = yes; then
5282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 /* confdefs.h. */
5286 _ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 #include <string.h>
5292 _ACEOF
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "memchr" >/dev/null 2>&1; then
5296 else
5297 ac_cv_header_stdc=no
5299 rm -f conftest*
5303 if test $ac_cv_header_stdc = yes; then
5304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5305 cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 /* confdefs.h. */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h. */
5312 #include <stdlib.h>
5314 _ACEOF
5315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5316 $EGREP "free" >/dev/null 2>&1; then
5318 else
5319 ac_cv_header_stdc=no
5321 rm -f conftest*
5325 if test $ac_cv_header_stdc = yes; then
5326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5327 if test "$cross_compiling" = yes; then
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 #line $LINENO "configure"
5332 /* confdefs.h. */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <ctype.h>
5338 #if ((' ' & 0x0FF) == 0x020)
5339 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341 #else
5342 # define ISLOWER(c) \
5343 (('a' <= (c) && (c) <= 'i') \
5344 || ('j' <= (c) && (c) <= 'r') \
5345 || ('s' <= (c) && (c) <= 'z'))
5346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5347 #endif
5349 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5351 main ()
5353 int i;
5354 for (i = 0; i < 256; i++)
5355 if (XOR (islower (i), ISLOWER (i))
5356 || toupper (i) != TOUPPER (i))
5357 exit(2);
5358 exit (0);
5360 _ACEOF
5361 rm -f conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5373 else
5374 echo "$as_me: program exited with status $ac_status" >&5
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 ( exit $ac_status )
5379 ac_cv_header_stdc=no
5381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5385 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5386 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5387 if test $ac_cv_header_stdc = yes; then
5389 cat >>confdefs.h <<\_ACEOF
5390 #define STDC_HEADERS 1
5391 _ACEOF
5395 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5397 if test "${ac_cv_header_time+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line $LINENO "configure"
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <sys/types.h>
5408 #include <sys/time.h>
5409 #include <time.h>
5412 main ()
5414 if ((struct tm *) 0)
5415 return 0;
5417 return 0;
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try='test -s conftest.$ac_objext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_header_time=yes
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5437 ac_cv_header_time=no
5439 rm -f conftest.$ac_objext conftest.$ac_ext
5441 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5442 echo "${ECHO_T}$ac_cv_header_time" >&6
5443 if test $ac_cv_header_time = yes; then
5445 cat >>confdefs.h <<\_ACEOF
5446 #define TIME_WITH_SYS_TIME 1
5447 _ACEOF
5451 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5452 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5453 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5465 main ()
5467 #ifndef sys_siglist
5468 char *p = (char *) sys_siglist;
5469 #endif
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -s conftest.$ac_objext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_have_decl_sys_siglist=yes
5488 else
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_cv_have_decl_sys_siglist=no
5494 rm -f conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5497 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5498 if test $ac_cv_have_decl_sys_siglist = yes; then
5500 cat >>confdefs.h <<_ACEOF
5501 #define HAVE_DECL_SYS_SIGLIST 1
5502 _ACEOF
5505 else
5506 cat >>confdefs.h <<_ACEOF
5507 #define HAVE_DECL_SYS_SIGLIST 0
5508 _ACEOF
5514 if test $ac_cv_have_decl_sys_siglist != yes; then
5515 # For Tru64, at least:
5516 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5517 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5518 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 $ac_includes_default
5530 main ()
5532 #ifndef __sys_siglist
5533 char *p = (char *) __sys_siglist;
5534 #endif
5537 return 0;
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest.$ac_objext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 (eval $ac_try) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_have_decl___sys_siglist=yes
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_have_decl___sys_siglist=no
5559 rm -f conftest.$ac_objext conftest.$ac_ext
5561 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5562 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5563 if test $ac_cv_have_decl___sys_siglist = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_DECL___SYS_SIGLIST 1
5567 _ACEOF
5570 else
5571 cat >>confdefs.h <<_ACEOF
5572 #define HAVE_DECL___SYS_SIGLIST 0
5573 _ACEOF
5579 if test $ac_cv_have_decl___sys_siglist = yes; then
5581 cat >>confdefs.h <<\_ACEOF
5582 #define sys_siglist __sys_siglist
5583 _ACEOF
5587 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5588 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5589 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <sys/types.h>
5600 #include <sys/wait.h>
5601 #ifndef WEXITSTATUS
5602 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5603 #endif
5604 #ifndef WIFEXITED
5605 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5606 #endif
5609 main ()
5611 int s;
5612 wait (&s);
5613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5615 return 0;
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_header_sys_wait_h=yes
5631 else
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_cv_header_sys_wait_h=no
5637 rm -f conftest.$ac_objext conftest.$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5641 if test $ac_cv_header_sys_wait_h = yes; then
5643 cat >>confdefs.h <<\_ACEOF
5644 #define HAVE_SYS_WAIT_H 1
5645 _ACEOF
5650 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5651 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5652 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line $LINENO "configure"
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #ifdef TIME_WITH_SYS_TIME
5663 #include <sys/time.h>
5664 #include <time.h>
5665 #else
5666 #ifdef HAVE_SYS_TIME_H
5667 #include <sys/time.h>
5668 #else
5669 #include <time.h>
5670 #endif
5671 #endif
5672 #ifdef HAVE_UTIME_H
5673 #include <utime.h>
5674 #endif
5676 main ()
5678 static struct utimbuf x; x.actime = x.modtime;
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5685 (eval $ac_compile) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -s conftest.$ac_objext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 emacs_cv_struct_utimbuf=yes
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 emacs_cv_struct_utimbuf=no
5702 rm -f conftest.$ac_objext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5705 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5706 if test $emacs_cv_struct_utimbuf = yes; then
5708 cat >>confdefs.h <<\_ACEOF
5709 #define HAVE_STRUCT_UTIMBUF 1
5710 _ACEOF
5714 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5715 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5716 if test "${ac_cv_type_signal+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5721 /* confdefs.h. */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <sys/types.h>
5727 #include <signal.h>
5728 #ifdef signal
5729 # undef signal
5730 #endif
5731 #ifdef __cplusplus
5732 extern "C" void (*signal (int, void (*)(int)))(int);
5733 #else
5734 void (*signal ()) ();
5735 #endif
5738 main ()
5740 int i;
5742 return 0;
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_type_signal=void
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 ac_cv_type_signal=int
5764 rm -f conftest.$ac_objext conftest.$ac_ext
5766 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5767 echo "${ECHO_T}$ac_cv_type_signal" >&6
5769 cat >>confdefs.h <<_ACEOF
5770 #define RETSIGTYPE $ac_cv_type_signal
5771 _ACEOF
5775 echo "$as_me:$LINENO: checking for speed_t" >&5
5776 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5777 if test "${emacs_cv_speed_t+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <termios.h>
5789 main ()
5791 speed_t x = 1;
5793 return 0;
5795 _ACEOF
5796 rm -f conftest.$ac_objext
5797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5798 (eval $ac_compile) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 emacs_cv_speed_t=yes
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 emacs_cv_speed_t=no
5815 rm -f conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5818 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5819 if test $emacs_cv_speed_t = yes; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_SPEED_T 1
5823 _ACEOF
5827 echo "$as_me:$LINENO: checking for struct timeval" >&5
5828 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5829 if test "${emacs_cv_struct_timeval+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832 cat >conftest.$ac_ext <<_ACEOF
5833 #line $LINENO "configure"
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #ifdef TIME_WITH_SYS_TIME
5840 #include <sys/time.h>
5841 #include <time.h>
5842 #else
5843 #ifdef HAVE_SYS_TIME_H
5844 #include <sys/time.h>
5845 #else
5846 #include <time.h>
5847 #endif
5848 #endif
5850 main ()
5852 static struct timeval x; x.tv_sec = x.tv_usec;
5854 return 0;
5856 _ACEOF
5857 rm -f conftest.$ac_objext
5858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 emacs_cv_struct_timeval=yes
5870 else
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 emacs_cv_struct_timeval=no
5876 rm -f conftest.$ac_objext conftest.$ac_ext
5878 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5879 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5880 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5881 if test $emacs_cv_struct_timeval = yes; then
5883 cat >>confdefs.h <<\_ACEOF
5884 #define HAVE_TIMEVAL 1
5885 _ACEOF
5889 echo "$as_me:$LINENO: checking for struct exception" >&5
5890 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5891 if test "${emacs_cv_struct_exception+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <math.h>
5903 main ()
5905 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5907 return 0;
5909 _ACEOF
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 emacs_cv_struct_exception=yes
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 emacs_cv_struct_exception=no
5929 rm -f conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5932 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5933 HAVE_EXCEPTION=$emacs_cv_struct_exception
5934 if test $emacs_cv_struct_exception != yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define NO_MATHERR 1
5938 _ACEOF
5942 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5943 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5944 if test "${ac_cv_struct_tm+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <sys/types.h>
5955 #include <time.h>
5958 main ()
5960 struct tm *tp; tp->tm_sec;
5962 return 0;
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -s conftest.$ac_objext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_struct_tm=time.h
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_struct_tm=sys/time.h
5984 rm -f conftest.$ac_objext conftest.$ac_ext
5986 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5987 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5988 if test $ac_cv_struct_tm = sys/time.h; then
5990 cat >>confdefs.h <<\_ACEOF
5991 #define TM_IN_SYS_TIME 1
5992 _ACEOF
5996 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5997 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5998 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 #include <$ac_cv_struct_tm>
6013 main ()
6015 static struct tm ac_aggr;
6016 if (ac_aggr.tm_zone)
6017 return 0;
6019 return 0;
6021 _ACEOF
6022 rm -f conftest.$ac_objext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024 (eval $ac_compile) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6034 ac_cv_member_struct_tm_tm_zone=yes
6035 else
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <sys/types.h>
6047 #include <$ac_cv_struct_tm>
6051 main ()
6053 static struct tm ac_aggr;
6054 if (sizeof ac_aggr.tm_zone)
6055 return 0;
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062 (eval $ac_compile) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_member_struct_tm_tm_zone=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_member_struct_tm_tm_zone=no
6079 rm -f conftest.$ac_objext conftest.$ac_ext
6081 rm -f conftest.$ac_objext conftest.$ac_ext
6083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6087 cat >>confdefs.h <<_ACEOF
6088 #define HAVE_STRUCT_TM_TM_ZONE 1
6089 _ACEOF
6094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6096 cat >>confdefs.h <<\_ACEOF
6097 #define HAVE_TM_ZONE 1
6098 _ACEOF
6100 else
6101 echo "$as_me:$LINENO: checking for tzname" >&5
6102 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6103 if test "${ac_cv_var_tzname+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106 cat >conftest.$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <time.h>
6114 #ifndef tzname /* For SGI. */
6115 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6116 #endif
6119 main ()
6121 atoi(*tzname);
6123 return 0;
6125 _ACEOF
6126 rm -f conftest.$ac_objext conftest$ac_exeext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6128 (eval $ac_link) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_var_tzname=yes
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_cv_var_tzname=no
6145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6148 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6149 if test $ac_cv_var_tzname = yes; then
6151 cat >>confdefs.h <<\_ACEOF
6152 #define HAVE_TZNAME 1
6153 _ACEOF
6158 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6159 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6160 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 cat >conftest.$ac_ext <<_ACEOF
6164 #line $LINENO "configure"
6165 /* confdefs.h. */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <time.h>
6173 main ()
6175 static struct tm ac_aggr;
6176 if (ac_aggr.tm_gmtoff)
6177 return 0;
6179 return 0;
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184 (eval $ac_compile) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 ac_cv_member_struct_tm_tm_gmtoff=yes
6195 else
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <time.h>
6209 main ()
6211 static struct tm ac_aggr;
6212 if (sizeof ac_aggr.tm_gmtoff)
6213 return 0;
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try='test -s conftest.$ac_objext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_member_struct_tm_tm_gmtoff=yes
6231 else
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_cv_member_struct_tm_tm_gmtoff=no
6237 rm -f conftest.$ac_objext conftest.$ac_ext
6239 rm -f conftest.$ac_objext conftest.$ac_ext
6241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6242 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6243 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6245 cat >>confdefs.h <<\_ACEOF
6246 #define HAVE_TM_GMTOFF 1
6247 _ACEOF
6253 echo "$as_me:$LINENO: checking for function prototypes" >&5
6254 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6255 if test "$ac_cv_prog_cc_stdc" != no; then
6256 echo "$as_me:$LINENO: result: yes" >&5
6257 echo "${ECHO_T}yes" >&6
6259 cat >>confdefs.h <<\_ACEOF
6260 #define PROTOTYPES 1
6261 _ACEOF
6264 cat >>confdefs.h <<\_ACEOF
6265 #define __PROTOTYPES 1
6266 _ACEOF
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6273 echo "$as_me:$LINENO: checking for working volatile" >&5
6274 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6275 if test "${ac_cv_c_volatile+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6287 main ()
6290 volatile int x;
6291 int * volatile y;
6293 return 0;
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298 (eval $ac_compile) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_volatile=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_cv_c_volatile=no
6315 rm -f conftest.$ac_objext conftest.$ac_ext
6317 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6318 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6319 if test $ac_cv_c_volatile = no; then
6321 cat >>confdefs.h <<\_ACEOF
6322 #define volatile
6323 _ACEOF
6327 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6328 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6329 if test "${ac_cv_c_const+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6341 main ()
6343 /* FIXME: Include the comments suggested by Paul. */
6344 #ifndef __cplusplus
6345 /* Ultrix mips cc rejects this. */
6346 typedef int charset[2];
6347 const charset x;
6348 /* SunOS 4.1.1 cc rejects this. */
6349 char const *const *ccp;
6350 char **p;
6351 /* NEC SVR4.0.2 mips cc rejects this. */
6352 struct point {int x, y;};
6353 static struct point const zero = {0,0};
6354 /* AIX XL C 1.02.0.0 rejects this.
6355 It does not let you subtract one const X* pointer from another in
6356 an arm of an if-expression whose if-part is not a constant
6357 expression */
6358 const char *g = "string";
6359 ccp = &g + (g ? g-g : 0);
6360 /* HPUX 7.0 cc rejects these. */
6361 ++ccp;
6362 p = (char**) ccp;
6363 ccp = (char const *const *) p;
6364 { /* SCO 3.2v4 cc rejects this. */
6365 char *t;
6366 char const *s = 0 ? (char *) 0 : (char const *) 0;
6368 *t++ = 0;
6370 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6371 int x[] = {25, 17};
6372 const int *foo = &x[0];
6373 ++foo;
6375 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6376 typedef const int *iptr;
6377 iptr p = 0;
6378 ++p;
6380 { /* AIX XL C 1.02.0.0 rejects this saying
6381 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6382 struct s { int j; const int *ap[3]; };
6383 struct s *b; b->j = 5;
6385 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6386 const int foo = 10;
6388 #endif
6391 return 0;
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -s conftest.$ac_objext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_c_const=yes
6407 else
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6411 ac_cv_c_const=no
6413 rm -f conftest.$ac_objext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6416 echo "${ECHO_T}$ac_cv_c_const" >&6
6417 if test $ac_cv_c_const = no; then
6419 cat >>confdefs.h <<\_ACEOF
6420 #define const
6421 _ACEOF
6425 echo "$as_me:$LINENO: checking for void * support" >&5
6426 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6427 if test "${emacs_cv_void_star+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 cat >conftest.$ac_ext <<_ACEOF
6431 #line $LINENO "configure"
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6439 main ()
6441 void * foo;
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6458 emacs_cv_void_star=yes
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 emacs_cv_void_star=no
6465 rm -f conftest.$ac_objext conftest.$ac_ext
6467 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6468 echo "${ECHO_T}$emacs_cv_void_star" >&6
6469 if test $emacs_cv_void_star = yes; then
6470 cat >>confdefs.h <<\_ACEOF
6471 #define POINTER_TYPE void
6472 _ACEOF
6474 else
6475 cat >>confdefs.h <<\_ACEOF
6476 #define POINTER_TYPE char
6477 _ACEOF
6483 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6484 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6485 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6486 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489 cat >conftest.make <<\_ACEOF
6490 all:
6491 @echo 'ac_maketemp="$(MAKE)"'
6492 _ACEOF
6493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6494 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6495 if test -n "$ac_maketemp"; then
6496 eval ac_cv_prog_make_${ac_make}_set=yes
6497 else
6498 eval ac_cv_prog_make_${ac_make}_set=no
6500 rm -f conftest.make
6502 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6503 echo "$as_me:$LINENO: result: yes" >&5
6504 echo "${ECHO_T}yes" >&6
6505 SET_MAKE=
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 SET_MAKE="MAKE=${MAKE-make}"
6513 echo "$as_me:$LINENO: checking for long file names" >&5
6514 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6515 if test "${ac_cv_sys_long_file_names+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 ac_cv_sys_long_file_names=yes
6519 # Test for long file names in all the places we know might matter:
6520 # . the current directory, where building will happen
6521 # $prefix/lib where we will be installing things
6522 # $exec_prefix/lib likewise
6523 # eval it to expand exec_prefix.
6524 # $TMPDIR if set, where it might want to write temporary files
6525 # if $TMPDIR is not set:
6526 # /tmp where it might want to write temporary files
6527 # /var/tmp likewise
6528 # /usr/tmp likewise
6529 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6530 ac_tmpdirs=$TMPDIR
6531 else
6532 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6534 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6535 test -d $ac_dir || continue
6536 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6537 ac_xdir=$ac_dir/cf$$
6538 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6539 ac_tf1=$ac_xdir/conftest9012345
6540 ac_tf2=$ac_xdir/conftest9012346
6541 (echo 1 >$ac_tf1) 2>/dev/null
6542 (echo 2 >$ac_tf2) 2>/dev/null
6543 ac_val=`cat $ac_tf1 2>/dev/null`
6544 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6545 ac_cv_sys_long_file_names=no
6546 rm -rf $ac_xdir 2>/dev/null
6547 break
6549 rm -rf $ac_xdir 2>/dev/null
6550 done
6552 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6553 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6554 if test $ac_cv_sys_long_file_names = yes; then
6556 cat >>confdefs.h <<\_ACEOF
6557 #define HAVE_LONG_FILE_NAMES 1
6558 _ACEOF
6563 #### Choose a window system.
6565 echo "$as_me:$LINENO: checking for X" >&5
6566 echo $ECHO_N "checking for X... $ECHO_C" >&6
6569 # Check whether --with-x or --without-x was given.
6570 if test "${with_x+set}" = set; then
6571 withval="$with_x"
6574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6575 if test "x$with_x" = xno; then
6576 # The user explicitly disabled X.
6577 have_x=disabled
6578 else
6579 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6580 # Both variables are already set.
6581 have_x=yes
6582 else
6583 if test "${ac_cv_have_x+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 # One or both of the vars are not set, and there is no cached value.
6587 ac_x_includes=no ac_x_libraries=no
6588 rm -fr conftest.dir
6589 if mkdir conftest.dir; then
6590 cd conftest.dir
6591 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6592 cat >Imakefile <<'_ACEOF'
6593 acfindx:
6594 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6595 _ACEOF
6596 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6598 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6600 for ac_extension in a so sl; do
6601 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6602 test -f $ac_im_libdir/libX11.$ac_extension; then
6603 ac_im_usrlibdir=$ac_im_libdir; break
6605 done
6606 # Screen out bogus values from the imake configuration. They are
6607 # bogus both because they are the default anyway, and because
6608 # using them would break gcc on systems where it needs fixed includes.
6609 case $ac_im_incroot in
6610 /usr/include) ;;
6611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6612 esac
6613 case $ac_im_usrlibdir in
6614 /usr/lib | /lib) ;;
6615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6616 esac
6618 cd ..
6619 rm -fr conftest.dir
6622 # Standard set of common directories for X headers.
6623 # Check X11 before X11Rn because it is often a symlink to the current release.
6624 ac_x_header_dirs='
6625 /usr/X11/include
6626 /usr/X11R6/include
6627 /usr/X11R5/include
6628 /usr/X11R4/include
6630 /usr/include/X11
6631 /usr/include/X11R6
6632 /usr/include/X11R5
6633 /usr/include/X11R4
6635 /usr/local/X11/include
6636 /usr/local/X11R6/include
6637 /usr/local/X11R5/include
6638 /usr/local/X11R4/include
6640 /usr/local/include/X11
6641 /usr/local/include/X11R6
6642 /usr/local/include/X11R5
6643 /usr/local/include/X11R4
6645 /usr/X386/include
6646 /usr/x386/include
6647 /usr/XFree86/include/X11
6649 /usr/include
6650 /usr/local/include
6651 /usr/unsupported/include
6652 /usr/athena/include
6653 /usr/local/x11r5/include
6654 /usr/lpp/Xamples/include
6656 /usr/openwin/include
6657 /usr/openwin/share/include'
6659 if test "$ac_x_includes" = no; then
6660 # Guess where to find include files, by looking for Intrinsic.h.
6661 # First, try using that file with no special directory specified.
6662 cat >conftest.$ac_ext <<_ACEOF
6663 #line $LINENO "configure"
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>
6670 _ACEOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } >/dev/null; then
6679 if test -s conftest.err; then
6680 ac_cpp_err=$ac_c_preproc_warn_flag
6681 else
6682 ac_cpp_err=
6684 else
6685 ac_cpp_err=yes
6687 if test -z "$ac_cpp_err"; then
6688 # We can compile using X headers with no special include directory.
6689 ac_x_includes=
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 for ac_dir in $ac_x_header_dirs; do
6695 if test -r "$ac_dir/X11/Intrinsic.h"; then
6696 ac_x_includes=$ac_dir
6697 break
6699 done
6701 rm -f conftest.err conftest.$ac_ext
6702 fi # $ac_x_includes = no
6704 if test "$ac_x_libraries" = no; then
6705 # Check for the libraries.
6706 # See if we find them without any special options.
6707 # Don't add to $LIBS permanently.
6708 ac_save_LIBS=$LIBS
6709 LIBS="-lXt $LIBS"
6710 cat >conftest.$ac_ext <<_ACEOF
6711 #line $LINENO "configure"
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <X11/Intrinsic.h>
6719 main ()
6721 XtMalloc (0)
6723 return 0;
6725 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728 (eval $ac_link) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 LIBS=$ac_save_LIBS
6739 # We can link X programs with no special library path.
6740 ac_x_libraries=
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 LIBS=$ac_save_LIBS
6746 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6748 # Don't even attempt the hair of trying to link an X program!
6749 for ac_extension in a so sl; do
6750 if test -r $ac_dir/libXt.$ac_extension; then
6751 ac_x_libraries=$ac_dir
6752 break 2
6754 done
6755 done
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6758 fi # $ac_x_libraries = no
6760 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6761 # Didn't find X anywhere. Cache the known absence of X.
6762 ac_cv_have_x="have_x=no"
6763 else
6764 # Record where we found X for the cache.
6765 ac_cv_have_x="have_x=yes \
6766 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6771 eval "$ac_cv_have_x"
6772 fi # $with_x != no
6774 if test "$have_x" != yes; then
6775 echo "$as_me:$LINENO: result: $have_x" >&5
6776 echo "${ECHO_T}$have_x" >&6
6777 no_x=yes
6778 else
6779 # If each of the values was on the command line, it overrides each guess.
6780 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6781 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6782 # Update the cache value to reflect the command line values.
6783 ac_cv_have_x="have_x=yes \
6784 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6785 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6786 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6789 if test "$no_x" = yes; then
6790 window_system=none
6791 else
6792 window_system=x11
6795 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6796 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6797 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6798 x_default_search_path=""
6799 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6800 x_search_path="\
6801 ${x_library}/X11/%L/%T/%N%C%S:\
6802 ${x_library}/X11/%l/%T/%N%C%S:\
6803 ${x_library}/X11/%T/%N%C%S:\
6804 ${x_library}/X11/%L/%T/%N%S:\
6805 ${x_library}/X11/%l/%T/%N%S:\
6806 ${x_library}/X11/%T/%N%S"
6807 if test x"${x_default_search_path}" = x; then
6808 x_default_search_path=${x_search_path}
6809 else
6810 x_default_search_path="${x_search_path}:${x_default_search_path}"
6812 done
6814 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6815 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6818 if test x"${x_includes}" = x; then
6819 bitmapdir=/usr/include/X11/bitmaps
6820 else
6821 # accumulate include directories that have X11 bitmap subdirectories
6822 bmd_acc="dummyval"
6823 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6824 if test -d "${bmd}/X11/bitmaps"; then
6825 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6827 if test -d "${bmd}/bitmaps"; then
6828 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6830 done
6831 if test ${bmd_acc} != "dummyval"; then
6832 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6836 case "${window_system}" in
6837 x11 )
6838 HAVE_X_WINDOWS=yes
6839 HAVE_X11=yes
6840 case "${with_x_toolkit}" in
6841 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6842 motif ) USE_X_TOOLKIT=MOTIF ;;
6843 gtk ) with_gtk=yes
6844 USE_X_TOOLKIT=none ;;
6845 no ) USE_X_TOOLKIT=none ;;
6846 * ) USE_X_TOOLKIT=maybe ;;
6847 esac
6849 none )
6850 HAVE_X_WINDOWS=no
6851 HAVE_X11=no
6852 USE_X_TOOLKIT=none
6854 esac
6856 ### If we're using X11, we should use the X menu package.
6857 HAVE_MENUS=no
6858 case ${HAVE_X11} in
6859 yes ) HAVE_MENUS=yes ;;
6860 esac
6862 if test "${opsys}" = "hpux9"; then
6863 case "${x_libraries}" in
6864 *X11R4* )
6865 opsysfile="s/hpux9-x11r4.h"
6867 esac
6870 if test "${opsys}" = "hpux9shr"; then
6871 case "${x_libraries}" in
6872 *X11R4* )
6873 opsysfile="s/hpux9shxr4.h"
6875 esac
6878 ### Compute the unexec source name from the object name.
6879 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6881 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6882 # Assume not, until told otherwise.
6883 GNU_MALLOC=yes
6884 doug_lea_malloc=yes
6885 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6886 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6887 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 /* System header to define __stub macros and hopefully few prototypes,
6898 which can conflict with char malloc_get_state (); below.
6899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6900 <limits.h> exists even on freestanding compilers. */
6901 #ifdef __STDC__
6902 # include <limits.h>
6903 #else
6904 # include <assert.h>
6905 #endif
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 #ifdef __cplusplus
6908 extern "C"
6910 #endif
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6913 char malloc_get_state ();
6914 /* The GNU C library defines this for functions which it implements
6915 to always fail with ENOSYS. Some functions are actually named
6916 something starting with __ and the normal name is an alias. */
6917 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6918 choke me
6919 #else
6920 char (*f) () = malloc_get_state;
6921 #endif
6922 #ifdef __cplusplus
6924 #endif
6927 main ()
6929 return f != malloc_get_state;
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -s conftest$ac_exeext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 ac_cv_func_malloc_get_state=yes
6947 else
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 ac_cv_func_malloc_get_state=no
6953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6956 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6957 if test $ac_cv_func_malloc_get_state = yes; then
6959 else
6960 doug_lea_malloc=no
6963 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6964 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6965 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968 cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 /* System header to define __stub macros and hopefully few prototypes,
6976 which can conflict with char malloc_set_state (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6979 #ifdef __STDC__
6980 # include <limits.h>
6981 #else
6982 # include <assert.h>
6983 #endif
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 #ifdef __cplusplus
6986 extern "C"
6988 #endif
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991 char malloc_set_state ();
6992 /* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
6995 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6996 choke me
6997 #else
6998 char (*f) () = malloc_set_state;
6999 #endif
7000 #ifdef __cplusplus
7002 #endif
7005 main ()
7007 return f != malloc_set_state;
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext conftest$ac_exeext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7014 (eval $ac_link) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_func_malloc_set_state=yes
7025 else
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_func_malloc_set_state=no
7031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7034 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7035 if test $ac_cv_func_malloc_set_state = yes; then
7037 else
7038 doug_lea_malloc=no
7041 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7042 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7043 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 extern void (* __after_morecore_hook)();
7055 main ()
7057 __after_morecore_hook = 0
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 emacs_cv_var___after_morecore_hook=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 emacs_cv_var___after_morecore_hook=no
7081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7083 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7084 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7085 if test $emacs_cv_var___after_morecore_hook = no; then
7086 doug_lea_malloc=no
7088 if test "${system_malloc}" = "yes"; then
7089 GNU_MALLOC=no
7090 GNU_MALLOC_reason="
7091 (The GNU allocators don't work with this system configuration.)"
7093 if test "$doug_lea_malloc" = "yes" ; then
7094 if test "$GNU_MALLOC" = yes ; then
7095 GNU_MALLOC_reason="
7096 (Using Doug Lea's new malloc from the GNU C Library.)"
7099 cat >>confdefs.h <<\_ACEOF
7100 #define DOUG_LEA_MALLOC 1
7101 _ACEOF
7105 if test x"${REL_ALLOC}" = x; then
7106 REL_ALLOC=${GNU_MALLOC}
7112 for ac_header in stdlib.h unistd.h
7114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116 echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7123 else
7124 # Is the header compilable?
7125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7127 cat >conftest.$ac_ext <<_ACEOF
7128 #line $LINENO "configure"
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 $ac_includes_default
7135 #include <$ac_header>
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 ac_header_compiler=yes
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_header_compiler=no
7156 rm -f conftest.$ac_objext conftest.$ac_ext
7157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7158 echo "${ECHO_T}$ac_header_compiler" >&6
7160 # Is the header present?
7161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7163 cat >conftest.$ac_ext <<_ACEOF
7164 #line $LINENO "configure"
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <$ac_header>
7171 _ACEOF
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } >/dev/null; then
7180 if test -s conftest.err; then
7181 ac_cpp_err=$ac_c_preproc_warn_flag
7182 else
7183 ac_cpp_err=
7185 else
7186 ac_cpp_err=yes
7188 if test -z "$ac_cpp_err"; then
7189 ac_header_preproc=yes
7190 else
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_header_preproc=no
7196 rm -f conftest.err conftest.$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7198 echo "${ECHO_T}$ac_header_preproc" >&6
7200 # So? What about this header?
7201 case $ac_header_compiler:$ac_header_preproc in
7202 yes:no )
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7208 cat <<\_ASBOX
7209 ## ------------------------------------ ##
7210 ## Report this to bug-autoconf@gnu.org. ##
7211 ## ------------------------------------ ##
7212 _ASBOX
7214 sed "s/^/$as_me: WARNING: /" >&2
7216 no:yes )
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7224 cat <<\_ASBOX
7225 ## ------------------------------------ ##
7226 ## Report this to bug-autoconf@gnu.org. ##
7227 ## ------------------------------------ ##
7228 _ASBOX
7230 sed "s/^/$as_me: WARNING: /" >&2
7232 esac
7233 echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 eval "$as_ac_Header=$ac_header_preproc"
7240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7245 cat >>confdefs.h <<_ACEOF
7246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247 _ACEOF
7251 done
7254 for ac_func in getpagesize
7256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7257 echo "$as_me:$LINENO: checking for $ac_func" >&5
7258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7259 if eval "test \"\${$as_ac_var+set}\" = set"; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262 cat >conftest.$ac_ext <<_ACEOF
7263 #line $LINENO "configure"
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 /* System header to define __stub macros and hopefully few prototypes,
7270 which can conflict with char $ac_func (); below.
7271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272 <limits.h> exists even on freestanding compilers. */
7273 #ifdef __STDC__
7274 # include <limits.h>
7275 #else
7276 # include <assert.h>
7277 #endif
7278 /* Override any gcc2 internal prototype to avoid an error. */
7279 #ifdef __cplusplus
7280 extern "C"
7282 #endif
7283 /* We use char because int might match the return type of a gcc2
7284 builtin and then its argument prototype would still apply. */
7285 char $ac_func ();
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7290 choke me
7291 #else
7292 char (*f) () = $ac_func;
7293 #endif
7294 #ifdef __cplusplus
7296 #endif
7299 main ()
7301 return f != $ac_func;
7303 return 0;
7305 _ACEOF
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 eval "$as_ac_var=yes"
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 eval "$as_ac_var=no"
7325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7329 if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h <<_ACEOF
7331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332 _ACEOF
7335 done
7337 echo "$as_me:$LINENO: checking for working mmap" >&5
7338 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7339 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 if test "$cross_compiling" = yes; then
7343 ac_cv_func_mmap_fixed_mapped=no
7344 else
7345 cat >conftest.$ac_ext <<_ACEOF
7346 #line $LINENO "configure"
7347 /* confdefs.h. */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7352 $ac_includes_default
7353 /* malloc might have been renamed as rpl_malloc. */
7354 #undef malloc
7356 /* Thanks to Mike Haertel and Jim Avera for this test.
7357 Here is a matrix of mmap possibilities:
7358 mmap private not fixed
7359 mmap private fixed at somewhere currently unmapped
7360 mmap private fixed at somewhere already mapped
7361 mmap shared not fixed
7362 mmap shared fixed at somewhere currently unmapped
7363 mmap shared fixed at somewhere already mapped
7364 For private mappings, we should verify that changes cannot be read()
7365 back from the file, nor mmap's back from the file at a different
7366 address. (There have been systems where private was not correctly
7367 implemented like the infamous i386 svr4.0, and systems where the
7368 VM page cache was not coherent with the file system buffer cache
7369 like early versions of FreeBSD and possibly contemporary NetBSD.)
7370 For shared mappings, we should conversely verify that changes get
7371 propagated back to all the places they're supposed to be.
7373 Grep wants private fixed already mapped.
7374 The main things grep needs to know about mmap are:
7375 * does it exist and is it safe to write into the mmap'd area
7376 * how to use it (BSD variants) */
7378 #include <fcntl.h>
7379 #include <sys/mman.h>
7381 #if !STDC_HEADERS && !HAVE_STDLIB_H
7382 char *malloc ();
7383 #endif
7385 /* This mess was copied from the GNU getpagesize.h. */
7386 #if !HAVE_GETPAGESIZE
7387 /* Assume that all systems that can run configure have sys/param.h. */
7388 # if !HAVE_SYS_PARAM_H
7389 # define HAVE_SYS_PARAM_H 1
7390 # endif
7392 # ifdef _SC_PAGESIZE
7393 # define getpagesize() sysconf(_SC_PAGESIZE)
7394 # else /* no _SC_PAGESIZE */
7395 # if HAVE_SYS_PARAM_H
7396 # include <sys/param.h>
7397 # ifdef EXEC_PAGESIZE
7398 # define getpagesize() EXEC_PAGESIZE
7399 # else /* no EXEC_PAGESIZE */
7400 # ifdef NBPG
7401 # define getpagesize() NBPG * CLSIZE
7402 # ifndef CLSIZE
7403 # define CLSIZE 1
7404 # endif /* no CLSIZE */
7405 # else /* no NBPG */
7406 # ifdef NBPC
7407 # define getpagesize() NBPC
7408 # else /* no NBPC */
7409 # ifdef PAGESIZE
7410 # define getpagesize() PAGESIZE
7411 # endif /* PAGESIZE */
7412 # endif /* no NBPC */
7413 # endif /* no NBPG */
7414 # endif /* no EXEC_PAGESIZE */
7415 # else /* no HAVE_SYS_PARAM_H */
7416 # define getpagesize() 8192 /* punt totally */
7417 # endif /* no HAVE_SYS_PARAM_H */
7418 # endif /* no _SC_PAGESIZE */
7420 #endif /* no HAVE_GETPAGESIZE */
7423 main ()
7425 char *data, *data2, *data3;
7426 int i, pagesize;
7427 int fd;
7429 pagesize = getpagesize ();
7431 /* First, make a file with some known garbage in it. */
7432 data = (char *) malloc (pagesize);
7433 if (!data)
7434 exit (1);
7435 for (i = 0; i < pagesize; ++i)
7436 *(data + i) = rand ();
7437 umask (0);
7438 fd = creat ("conftest.mmap", 0600);
7439 if (fd < 0)
7440 exit (1);
7441 if (write (fd, data, pagesize) != pagesize)
7442 exit (1);
7443 close (fd);
7445 /* Next, try to mmap the file at a fixed address which already has
7446 something else allocated at it. If we can, also make sure that
7447 we see the same garbage. */
7448 fd = open ("conftest.mmap", O_RDWR);
7449 if (fd < 0)
7450 exit (1);
7451 data2 = (char *) malloc (2 * pagesize);
7452 if (!data2)
7453 exit (1);
7454 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7455 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7456 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7457 exit (1);
7458 for (i = 0; i < pagesize; ++i)
7459 if (*(data + i) != *(data2 + i))
7460 exit (1);
7462 /* Finally, make sure that changes to the mapped area do not
7463 percolate back to the file as seen by read(). (This is a bug on
7464 some variants of i386 svr4.0.) */
7465 for (i = 0; i < pagesize; ++i)
7466 *(data2 + i) = *(data2 + i) + 1;
7467 data3 = (char *) malloc (pagesize);
7468 if (!data3)
7469 exit (1);
7470 if (read (fd, data3, pagesize) != pagesize)
7471 exit (1);
7472 for (i = 0; i < pagesize; ++i)
7473 if (*(data + i) != *(data3 + i))
7474 exit (1);
7475 close (fd);
7476 exit (0);
7478 _ACEOF
7479 rm -f conftest$ac_exeext
7480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481 (eval $ac_link) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 (eval $ac_try) 2>&5
7487 ac_status=$?
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_func_mmap_fixed_mapped=yes
7491 else
7492 echo "$as_me: program exited with status $ac_status" >&5
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7496 ( exit $ac_status )
7497 ac_cv_func_mmap_fixed_mapped=no
7499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7503 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7504 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7506 cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_MMAP 1
7508 _ACEOF
7511 rm -f conftest.mmap
7513 if test $use_mmap_for_buffers = yes; then
7514 REL_ALLOC=no
7517 LIBS="$libsrc_libs $LIBS"
7520 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7521 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7522 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 ac_check_lib_save_LIBS=$LIBS
7526 LIBS="-ldnet $LIBS"
7527 cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 #ifdef __cplusplus
7537 extern "C"
7538 #endif
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7541 char dnet_ntoa ();
7543 main ()
7545 dnet_ntoa ();
7547 return 0;
7549 _ACEOF
7550 rm -f conftest.$ac_objext conftest$ac_exeext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7552 (eval $ac_link) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -s conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_lib_dnet_dnet_ntoa=yes
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 ac_cv_lib_dnet_dnet_ntoa=no
7569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7572 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7573 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7575 cat >>confdefs.h <<_ACEOF
7576 #define HAVE_LIBDNET 1
7577 _ACEOF
7579 LIBS="-ldnet $LIBS"
7584 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7585 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589 ac_check_lib_save_LIBS=$LIBS
7590 LIBS="-lXbsd $LIBS"
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line $LINENO "configure"
7593 /* confdefs.h. */
7594 _ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7601 main ()
7603 main ();
7605 return 0;
7607 _ACEOF
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 ac_cv_lib_Xbsd_main=yes
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_cv_lib_Xbsd_main=no
7627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7628 LIBS=$ac_check_lib_save_LIBS
7630 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7631 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7632 if test $ac_cv_lib_Xbsd_main = yes; then
7633 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7638 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7639 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7640 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lpthreads $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 #line $LINENO "configure"
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659 char cma_open ();
7661 main ()
7663 cma_open ();
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } &&
7674 { ac_try='test -s conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_lib_pthreads_cma_open=yes
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 ac_cv_lib_pthreads_cma_open=no
7687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7691 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7692 if test $ac_cv_lib_pthreads_cma_open = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define HAVE_LIBPTHREADS 1
7695 _ACEOF
7697 LIBS="-lpthreads $LIBS"
7702 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7703 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7704 if test -d /usr/X386/include; then
7705 HAVE_XFREE386=yes
7706 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7707 else
7708 HAVE_XFREE386=no
7710 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7711 echo "${ECHO_T}$HAVE_XFREE386" >&6
7714 case ${host_os} in
7715 aix*)
7716 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7717 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
7718 if test "${gdb_cv_bigtoc+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7722 case $GCC in
7723 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7724 *) gdb_cv_bigtoc=-bbigtoc ;;
7725 esac
7727 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7728 cat >conftest.$ac_ext <<_ACEOF
7729 #line $LINENO "configure"
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7737 main ()
7739 int i;
7741 return 0;
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746 (eval $ac_link) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 gdb_cv_bigtoc=
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7767 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
7769 esac
7771 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7772 # used for the tests that follow. We set them back to REAL_CFLAGS and
7773 # REAL_CPPFLAGS later on.
7775 REAL_CPPFLAGS="$CPPFLAGS"
7777 if test "${HAVE_X11}" = "yes"; then
7778 DEFS="$C_SWITCH_X_SITE $DEFS"
7779 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7780 LIBS="$LIBX $LIBS"
7781 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7782 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7784 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7785 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7786 # but it's more convenient here to set LD_RUN_PATH
7787 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7788 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7789 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7790 export LD_RUN_PATH
7793 if test "${opsys}" = "gnu-linux"; then
7794 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7795 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 /* confdefs.h. */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7805 main ()
7807 XOpenDisplay ("foo");
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -s conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 xlinux_first_failure=no
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 xlinux_first_failure=yes
7831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7832 if test "${xlinux_first_failure}" = "yes"; then
7833 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7834 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7835 OLD_CPPFLAGS="$CPPFLAGS"
7836 OLD_LIBS="$LIBS"
7837 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7838 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7839 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7840 LIBS="$LIBS -b i486-linuxaout"
7841 cat >conftest.$ac_ext <<_ACEOF
7842 #line $LINENO "configure"
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7850 main ()
7852 XOpenDisplay ("foo");
7854 return 0;
7856 _ACEOF
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859 (eval $ac_link) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 xlinux_second_failure=no
7870 else
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 xlinux_second_failure=yes
7876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7877 if test "${xlinux_second_failure}" = "yes"; then
7878 # If we get the same failure with -b, there is no use adding -b.
7879 # So take it out. This plays safe.
7880 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7881 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7882 CPPFLAGS="$OLD_CPPFLAGS"
7883 LIBS="$OLD_LIBS"
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 else
7887 echo "$as_me:$LINENO: result: yes" >&5
7888 echo "${ECHO_T}yes" >&6
7890 else
7891 echo "$as_me:$LINENO: result: no" >&5
7892 echo "${ECHO_T}no" >&6
7896 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7897 # header files included from there.
7898 echo "$as_me:$LINENO: checking for Xkb" >&5
7899 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 /* confdefs.h. */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 #include <X11/Xlib.h>
7908 #include <X11/XKBlib.h>
7910 main ()
7912 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7914 return 0;
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 emacs_xkb=yes
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 emacs_xkb=no
7936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7938 echo "${ECHO_T}$emacs_xkb" >&6
7939 if test $emacs_xkb = yes; then
7941 cat >>confdefs.h <<\_ACEOF
7942 #define HAVE_XKBGETKEYBOARD 1
7943 _ACEOF
7951 for ac_func in XrmSetDatabase XScreenResourceString \
7952 XScreenNumberOfScreen XSetWMProtocols
7954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7955 echo "$as_me:$LINENO: checking for $ac_func" >&5
7956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7957 if eval "test \"\${$as_ac_var+set}\" = set"; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
7960 cat >conftest.$ac_ext <<_ACEOF
7961 #line $LINENO "configure"
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 /* System header to define __stub macros and hopefully few prototypes,
7968 which can conflict with char $ac_func (); below.
7969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7970 <limits.h> exists even on freestanding compilers. */
7971 #ifdef __STDC__
7972 # include <limits.h>
7973 #else
7974 # include <assert.h>
7975 #endif
7976 /* Override any gcc2 internal prototype to avoid an error. */
7977 #ifdef __cplusplus
7978 extern "C"
7980 #endif
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char $ac_func ();
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7988 choke me
7989 #else
7990 char (*f) () = $ac_func;
7991 #endif
7992 #ifdef __cplusplus
7994 #endif
7997 main ()
7999 return f != $ac_func;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 eval "$as_ac_var=yes"
8017 else
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 eval "$as_ac_var=no"
8023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8027 if test `eval echo '${'$as_ac_var'}'` = yes; then
8028 cat >>confdefs.h <<_ACEOF
8029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8030 _ACEOF
8033 done
8037 if test "${window_system}" = "x11"; then
8038 echo "$as_me:$LINENO: checking X11 version 6" >&5
8039 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8040 if test "${emacs_cv_x11_version_6+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8045 /* confdefs.h. */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Xlib.h>
8052 main ()
8054 #if XlibSpecificationRelease < 6
8055 fail;
8056 #endif
8059 return 0;
8061 _ACEOF
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8064 (eval $ac_link) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -s conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 (eval $ac_try) 2>&5
8071 ac_status=$?
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 emacs_cv_x11_version_6=yes
8075 else
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 emacs_cv_x11_version_6=no
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8084 if test $emacs_cv_x11_version_6 = yes; then
8085 echo "$as_me:$LINENO: result: 6 or newer" >&5
8086 echo "${ECHO_T}6 or newer" >&6
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_X11R6 1
8090 _ACEOF
8092 else
8093 echo "$as_me:$LINENO: result: before 6" >&5
8094 echo "${ECHO_T}before 6" >&6
8098 if test "${window_system}" = "x11"; then
8099 echo "$as_me:$LINENO: checking X11 version 5" >&5
8100 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8101 if test "${emacs_cv_x11_version_5+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104 cat >conftest.$ac_ext <<_ACEOF
8105 #line $LINENO "configure"
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 #include <X11/Xlib.h>
8113 main ()
8115 #if XlibSpecificationRelease < 5
8116 fail;
8117 #endif
8120 return 0;
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 (eval $ac_try) 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 emacs_cv_x11_version_5=yes
8136 else
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 emacs_cv_x11_version_5=no
8142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145 if test $emacs_cv_x11_version_5 = yes; then
8146 echo "$as_me:$LINENO: result: 5 or newer" >&5
8147 echo "${ECHO_T}5 or newer" >&6
8148 HAVE_X11R5=yes
8150 cat >>confdefs.h <<\_ACEOF
8151 #define HAVE_X11R5 1
8152 _ACEOF
8154 else
8155 HAVE_X11R5=no
8156 echo "$as_me:$LINENO: result: before 5" >&5
8157 echo "${ECHO_T}before 5" >&6
8163 HAVE_GTK=no
8164 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8165 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8166 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8167 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8168 { (exit 1); exit 1; }; };
8170 GLIB_REQUIRED=2.0.1
8171 GTK_REQUIRED=2.0.1
8172 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8174 if test "X${with_pkg_config_prog}" != X; then
8175 PKG_CONFIG="${with_pkg_config_prog}"
8178 succeeded=no
8180 if test -z "$PKG_CONFIG"; then
8181 # Extract the first word of "pkg-config", so it can be a program name with args.
8182 set dummy pkg-config; ac_word=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 case $PKG_CONFIG in
8189 [\\/]* | ?:[\\/]*)
8190 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8204 done
8205 done
8207 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8209 esac
8211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8213 if test -n "$PKG_CONFIG"; then
8214 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8215 echo "${ECHO_T}$PKG_CONFIG" >&6
8216 else
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8223 if test "$PKG_CONFIG" = "no" ; then
8224 echo "*** The pkg-config script could not be found. Make sure it is"
8225 echo "*** in your path, or give the full path to pkg-config with"
8226 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8227 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8228 else
8229 PKG_CONFIG_MIN_VERSION=0.9.0
8230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8231 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8232 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8234 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8235 echo "$as_me:$LINENO: result: yes" >&5
8236 echo "${ECHO_T}yes" >&6
8237 succeeded=yes
8239 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8240 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8241 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8242 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8243 echo "${ECHO_T}$GTK_CFLAGS" >&6
8245 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8246 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8247 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8248 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8249 echo "${ECHO_T}$GTK_LIBS" >&6
8250 else
8251 GTK_CFLAGS=""
8252 GTK_LIBS=""
8253 ## If we have a custom action on failure, don't print errors, but
8254 ## do set a variable so people can do so.
8255 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8256 echo $GTK_PKG_ERRORS
8261 else
8262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8267 if test $succeeded = yes; then
8269 else
8270 { { 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
8271 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;}
8272 { (exit 1); exit 1; }; }
8277 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8278 HAVE_GTK=yes
8280 cat >>confdefs.h <<\_ACEOF
8281 #define HAVE_GTK 1
8282 _ACEOF
8284 USE_X_TOOLKIT=none
8286 with_toolkit_scroll_bars=yes
8289 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8290 if test x"${HAVE_X11R5}" = xyes; then
8291 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8292 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8293 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296 cat >conftest.$ac_ext <<_ACEOF
8297 #line $LINENO "configure"
8298 /* confdefs.h. */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8304 #include <X11/Intrinsic.h>
8305 #include <X11/Xaw/Simple.h>
8307 main ()
8311 return 0;
8313 _ACEOF
8314 rm -f conftest.$ac_objext conftest$ac_exeext
8315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 emacs_cv_x11_version_5_with_xaw=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8331 emacs_cv_x11_version_5_with_xaw=no
8333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8336 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8337 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8338 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8339 USE_X_TOOLKIT=LUCID
8340 else
8341 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8342 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8343 USE_X_TOOLKIT=none
8345 else
8346 USE_X_TOOLKIT=none
8350 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8352 if test "${USE_X_TOOLKIT}" != "none"; then
8353 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8354 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8355 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line $LINENO "configure"
8360 /* confdefs.h. */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 #include <X11/Intrinsic.h>
8367 main ()
8369 #if XtSpecificationRelease < 6
8370 fail;
8371 #endif
8374 return 0;
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 emacs_cv_x11_toolkit_version_6=yes
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 emacs_cv_x11_toolkit_version_6=no
8396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8399 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8400 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8401 echo "$as_me:$LINENO: result: 6 or newer" >&5
8402 echo "${ECHO_T}6 or newer" >&6
8404 cat >>confdefs.h <<\_ACEOF
8405 #define HAVE_X11XTR6 1
8406 _ACEOF
8408 else
8409 echo "$as_me:$LINENO: result: before 6" >&5
8410 echo "${ECHO_T}before 6" >&6
8413 OLDLIBS="$LIBS"
8414 if test x$HAVE_X11XTR6 = xyes; then
8415 LIBS="-lXt -lSM -lICE $LIBS"
8416 else
8417 LIBS="-lXt $LIBS"
8420 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8421 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8422 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 ac_check_lib_save_LIBS=$LIBS
8426 LIBS="-lXmu $LIBS"
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 /* confdefs.h. */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8435 /* Override any gcc2 internal prototype to avoid an error. */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 /* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441 char XmuConvertStandardSelection ();
8443 main ()
8445 XmuConvertStandardSelection ();
8447 return 0;
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8473 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8474 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8475 cat >>confdefs.h <<_ACEOF
8476 #define HAVE_LIBXMU 1
8477 _ACEOF
8479 LIBS="-lXmu $LIBS"
8483 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8486 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8487 if test "${HAVE_X11}" = "yes"; then
8488 if test "${USE_X_TOOLKIT}" != "none"; then
8490 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8491 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8492 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 ac_check_lib_save_LIBS=$LIBS
8496 LIBS="-lXext $LIBS"
8497 cat >conftest.$ac_ext <<_ACEOF
8498 #line $LINENO "configure"
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8505 /* Override any gcc2 internal prototype to avoid an error. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 /* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511 char XShapeQueryExtension ();
8513 main ()
8515 XShapeQueryExtension ();
8517 return 0;
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_lib_Xext_XShapeQueryExtension=yes
8533 else
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 ac_cv_lib_Xext_XShapeQueryExtension=no
8539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8540 LIBS=$ac_check_lib_save_LIBS
8542 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8543 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8544 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8545 cat >>confdefs.h <<_ACEOF
8546 #define HAVE_LIBXEXT 1
8547 _ACEOF
8549 LIBS="-lXext $LIBS"
8556 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8557 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8558 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8559 if test "${emacs_cv_lesstif+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 # We put this in CFLAGS temporarily to precede other -I options
8563 # that might be in CFLAGS temporarily.
8564 # We put this in CPPFLAGS where it precedes the other -I options.
8565 OLD_CPPFLAGS=$CPPFLAGS
8566 OLD_CFLAGS=$CFLAGS
8567 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8568 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8569 cat >conftest.$ac_ext <<_ACEOF
8570 #line $LINENO "configure"
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8578 main ()
8580 int x = 5;
8582 return 0;
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 emacs_cv_lesstif=yes
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 emacs_cv_lesstif=no
8604 rm -f conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8607 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8608 if test $emacs_cv_lesstif = yes; then
8609 # Make sure this -I option remains in CPPFLAGS after it is set
8610 # back to REAL_CPPFLAGS.
8611 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8612 # have those other -I options anyway. Ultimately, having this
8613 # directory ultimately in CPPFLAGS will be enough.
8614 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8615 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8616 else
8617 CFLAGS=$OLD_CFLAGS
8618 CPPFLAGS=$OLD_CPPFLAGS
8620 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8621 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8622 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8627 /* confdefs.h. */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8632 #include <Xm/Xm.h>
8634 main ()
8636 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8637 int x = 5;
8638 #else
8639 Motif version prior to 2.1.
8640 #endif
8642 return 0;
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 emacs_cv_motif_version_2_1=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 emacs_cv_motif_version_2_1=no
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8666 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8667 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8668 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8669 if test $emacs_cv_motif_version_2_1 = yes; then
8670 HAVE_LIBXP=no
8672 cat >>confdefs.h <<\_ACEOF
8673 #define HAVE_MOTIF_2_1 1
8674 _ACEOF
8676 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8677 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8678 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 ac_check_lib_save_LIBS=$LIBS
8682 LIBS="-lXp $LIBS"
8683 cat >conftest.$ac_ext <<_ACEOF
8684 #line $LINENO "configure"
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 #ifdef __cplusplus
8693 extern "C"
8694 #endif
8695 /* We use char because int might match the return type of a gcc2
8696 builtin and then its argument prototype would still apply. */
8697 char XpCreateContext ();
8699 main ()
8701 XpCreateContext ();
8703 return 0;
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_lib_Xp_XpCreateContext=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_lib_Xp_XpCreateContext=no
8725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8729 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8730 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8731 HAVE_LIBXP=yes
8734 if test ${HAVE_LIBXP} = yes; then
8736 cat >>confdefs.h <<\_ACEOF
8737 #define HAVE_LIBXP 1
8738 _ACEOF
8744 ### Is -lXaw3d available?
8745 HAVE_XAW3D=no
8746 if test "${HAVE_X11}" = "yes"; then
8747 if test "${USE_X_TOOLKIT}" != "none"; then
8748 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8749 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8750 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line $LINENO "configure"
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 #include <X11/Xaw3d/Scrollbar.h>
8761 _ACEOF
8762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8764 ac_status=$?
8765 grep -v '^ *+' conftest.er1 >conftest.err
8766 rm -f conftest.er1
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } >/dev/null; then
8770 if test -s conftest.err; then
8771 ac_cpp_err=$ac_c_preproc_warn_flag
8772 else
8773 ac_cpp_err=
8775 else
8776 ac_cpp_err=yes
8778 if test -z "$ac_cpp_err"; then
8779 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8780 else
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8786 rm -f conftest.err conftest.$ac_ext
8788 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8789 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8790 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8791 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8792 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8793 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 ac_check_lib_save_LIBS=$LIBS
8797 LIBS="-lXaw3d $LIBS"
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 /* Override any gcc2 internal prototype to avoid an error. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 #endif
8810 /* We use char because int might match the return type of a gcc2
8811 builtin and then its argument prototype would still apply. */
8812 char XawScrollbarSetThumb ();
8814 main ()
8816 XawScrollbarSetThumb ();
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8844 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8845 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8846 HAVE_XAW3D=yes
8852 if test "${HAVE_XAW3D}" = "yes"; then
8854 cat >>confdefs.h <<\_ACEOF
8855 #define HAVE_XAW3D 1
8856 _ACEOF
8864 USE_TOOLKIT_SCROLL_BARS=no
8865 if test "${with_toolkit_scroll_bars}" != "no"; then
8866 if test "${USE_X_TOOLKIT}" != "none"; then
8867 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8868 cat >>confdefs.h <<\_ACEOF
8869 #define USE_TOOLKIT_SCROLL_BARS 1
8870 _ACEOF
8872 HAVE_XAW3D=no
8873 USE_TOOLKIT_SCROLL_BARS=yes
8874 elif test "${HAVE_XAW3D}" = "yes"; then
8875 cat >>confdefs.h <<\_ACEOF
8876 #define USE_TOOLKIT_SCROLL_BARS 1
8877 _ACEOF
8879 USE_TOOLKIT_SCROLL_BARS=yes
8881 elif test "${HAVE_GTK}" = "yes"; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define USE_TOOLKIT_SCROLL_BARS 1
8884 _ACEOF
8886 USE_TOOLKIT_SCROLL_BARS=yes
8891 if test "${with_xim}" != "no"; then
8893 cat >>confdefs.h <<\_ACEOF
8894 #define USE_XIM 1
8895 _ACEOF
8897 late_CFLAGS=$CFLAGS
8898 if test "$GCC" = yes; then
8899 CFLAGS="$CFLAGS --pedantic-errors"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8903 /* confdefs.h. */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8909 #include <X11/Xlib.h>
8910 #include <X11/Xresource.h>
8912 main ()
8914 Display *display;
8915 XrmDatabase db;
8916 char *res_name;
8917 char *res_class;
8918 XIMProc callback;
8919 XPointer *client_data;
8920 #ifndef __GNUC__
8921 /* If we're not using GCC, it's probably not XFree86, and this is
8922 probably right, but we can't use something like --pedantic-errors. */
8923 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8924 char*, XIMProc, XPointer*);
8925 #endif
8926 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8927 client_data);
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 emacs_cv_arg6_star=yes
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8952 if test "$emacs_cv_arg6_star" = yes; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8955 _ACEOF
8957 else
8958 cat >>confdefs.h <<\_ACEOF
8959 #define XRegisterIMInstantiateCallback_arg6 XPointer
8960 _ACEOF
8963 CFLAGS=$late_CFLAGS
8966 ### Use -lXpm if available, unless `--with-xpm=no'.
8967 HAVE_XPM=no
8968 if test "${HAVE_X11}" = "yes"; then
8969 if test "${with_xpm}" != "no"; then
8970 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8971 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8972 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8973 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8977 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8978 else
8979 # Is the header compilable?
8980 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8981 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 #line $LINENO "configure"
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8990 #include <X11/xpm.h>
8991 _ACEOF
8992 rm -f conftest.$ac_objext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994 (eval $ac_compile) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest.$ac_objext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 ac_header_compiler=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_header_compiler=no
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9013 echo "${ECHO_T}$ac_header_compiler" >&6
9015 # Is the header present?
9016 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9017 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <X11/xpm.h>
9026 _ACEOF
9027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } >/dev/null; then
9035 if test -s conftest.err; then
9036 ac_cpp_err=$ac_c_preproc_warn_flag
9037 else
9038 ac_cpp_err=
9040 else
9041 ac_cpp_err=yes
9043 if test -z "$ac_cpp_err"; then
9044 ac_header_preproc=yes
9045 else
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 ac_header_preproc=no
9051 rm -f conftest.err conftest.$ac_ext
9052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9053 echo "${ECHO_T}$ac_header_preproc" >&6
9055 # So? What about this header?
9056 case $ac_header_compiler:$ac_header_preproc in
9057 yes:no )
9058 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9059 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9061 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9063 cat <<\_ASBOX
9064 ## ------------------------------------ ##
9065 ## Report this to bug-autoconf@gnu.org. ##
9066 ## ------------------------------------ ##
9067 _ASBOX
9069 sed "s/^/$as_me: WARNING: /" >&2
9071 no:yes )
9072 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9073 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9075 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9079 cat <<\_ASBOX
9080 ## ------------------------------------ ##
9081 ## Report this to bug-autoconf@gnu.org. ##
9082 ## ------------------------------------ ##
9083 _ASBOX
9085 sed "s/^/$as_me: WARNING: /" >&2
9087 esac
9088 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9089 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9090 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 ac_cv_header_X11_xpm_h=$ac_header_preproc
9095 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9096 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9099 if test $ac_cv_header_X11_xpm_h = yes; then
9100 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9101 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9102 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 ac_check_lib_save_LIBS=$LIBS
9106 LIBS="-lXpm -lX11 $LIBS"
9107 cat >conftest.$ac_ext <<_ACEOF
9108 #line $LINENO "configure"
9109 /* confdefs.h. */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9115 /* Override any gcc2 internal prototype to avoid an error. */
9116 #ifdef __cplusplus
9117 extern "C"
9118 #endif
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9121 char XpmReadFileToPixmap ();
9123 main ()
9125 XpmReadFileToPixmap ();
9127 return 0;
9129 _ACEOF
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
9136 { ac_try='test -s conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9150 LIBS=$ac_check_lib_save_LIBS
9152 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9153 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9154 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9155 HAVE_XPM=yes
9161 if test "${HAVE_XPM}" = "yes"; then
9162 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9163 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include "X11/xpm.h"
9172 #ifndef XpmReturnAllocPixels
9173 no_return_alloc_pixels
9174 #endif
9176 _ACEOF
9177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9178 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9179 HAVE_XPM=no
9180 else
9181 HAVE_XPM=yes
9183 rm -f conftest*
9186 if test "${HAVE_XPM}" = "yes"; then
9187 echo "$as_me:$LINENO: result: yes" >&5
9188 echo "${ECHO_T}yes" >&6
9189 else
9190 echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9196 if test "${HAVE_XPM}" = "yes"; then
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_XPM 1
9200 _ACEOF
9205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9206 HAVE_JPEG=no
9207 if test "${HAVE_X11}" = "yes"; then
9208 if test "${with_jpeg}" != "no"; then
9209 if test "${ac_cv_header_jerror_h+set}" = set; then
9210 echo "$as_me:$LINENO: checking for jerror.h" >&5
9211 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9212 if test "${ac_cv_header_jerror_h+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9216 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9217 else
9218 # Is the header compilable?
9219 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9220 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9222 #line $LINENO "configure"
9223 /* confdefs.h. */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 #include <jerror.h>
9230 _ACEOF
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -s conftest.$ac_objext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 ac_header_compiler=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_header_compiler=no
9250 rm -f conftest.$ac_objext conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252 echo "${ECHO_T}$ac_header_compiler" >&6
9254 # Is the header present?
9255 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9256 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9258 #line $LINENO "configure"
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <jerror.h>
9265 _ACEOF
9266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9268 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err
9270 rm -f conftest.er1
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } >/dev/null; then
9274 if test -s conftest.err; then
9275 ac_cpp_err=$ac_c_preproc_warn_flag
9276 else
9277 ac_cpp_err=
9279 else
9280 ac_cpp_err=yes
9282 if test -z "$ac_cpp_err"; then
9283 ac_header_preproc=yes
9284 else
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc in
9296 yes:no )
9297 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9302 cat <<\_ASBOX
9303 ## ------------------------------------ ##
9304 ## Report this to bug-autoconf@gnu.org. ##
9305 ## ------------------------------------ ##
9306 _ASBOX
9308 sed "s/^/$as_me: WARNING: /" >&2
9310 no:yes )
9311 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9312 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9314 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9316 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9318 cat <<\_ASBOX
9319 ## ------------------------------------ ##
9320 ## Report this to bug-autoconf@gnu.org. ##
9321 ## ------------------------------------ ##
9322 _ASBOX
9324 sed "s/^/$as_me: WARNING: /" >&2
9326 esac
9327 echo "$as_me:$LINENO: checking for jerror.h" >&5
9328 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9329 if test "${ac_cv_header_jerror_h+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332 ac_cv_header_jerror_h=$ac_header_preproc
9334 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9335 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9338 if test $ac_cv_header_jerror_h = yes; then
9339 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9340 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9341 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 ac_check_lib_save_LIBS=$LIBS
9345 LIBS="-ljpeg $LIBS"
9346 cat >conftest.$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9348 /* confdefs.h. */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9354 /* Override any gcc2 internal prototype to avoid an error. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360 char jpeg_destroy_compress ();
9362 main ()
9364 jpeg_destroy_compress ();
9366 return 0;
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9392 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9393 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9394 HAVE_JPEG=yes
9403 if test "${HAVE_JPEG}" = "yes"; then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_JPEG 1
9406 _ACEOF
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 #include <jpeglib.h>
9416 version=JPEG_LIB_VERSION
9418 _ACEOF
9419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9420 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9421 cat >>confdefs.h <<\_ACEOF
9422 #define HAVE_JPEG 1
9423 _ACEOF
9425 else
9426 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9427 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9428 HAVE_JPEG=no
9430 rm -f conftest*
9435 ### Use -lpng if available, unless `--with-png=no'.
9436 HAVE_PNG=no
9437 if test "${HAVE_X11}" = "yes"; then
9438 if test "${with_png}" != "no"; then
9439 if test "${ac_cv_header_png_h+set}" = set; then
9440 echo "$as_me:$LINENO: checking for png.h" >&5
9441 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9442 if test "${ac_cv_header_png_h+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9446 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9447 else
9448 # Is the header compilable?
9449 echo "$as_me:$LINENO: checking png.h usability" >&5
9450 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line $LINENO "configure"
9453 /* confdefs.h. */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 $ac_includes_default
9459 #include <png.h>
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_header_compiler=yes
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9478 ac_header_compiler=no
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9482 echo "${ECHO_T}$ac_header_compiler" >&6
9484 # Is the header present?
9485 echo "$as_me:$LINENO: checking png.h presence" >&5
9486 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9488 #line $LINENO "configure"
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 #include <png.h>
9495 _ACEOF
9496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } >/dev/null; then
9504 if test -s conftest.err; then
9505 ac_cpp_err=$ac_c_preproc_warn_flag
9506 else
9507 ac_cpp_err=
9509 else
9510 ac_cpp_err=yes
9512 if test -z "$ac_cpp_err"; then
9513 ac_header_preproc=yes
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 ac_header_preproc=no
9520 rm -f conftest.err conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522 echo "${ECHO_T}$ac_header_preproc" >&6
9524 # So? What about this header?
9525 case $ac_header_compiler:$ac_header_preproc in
9526 yes:no )
9527 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9528 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9530 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9532 cat <<\_ASBOX
9533 ## ------------------------------------ ##
9534 ## Report this to bug-autoconf@gnu.org. ##
9535 ## ------------------------------------ ##
9536 _ASBOX
9538 sed "s/^/$as_me: WARNING: /" >&2
9540 no:yes )
9541 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9542 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9544 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9546 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9548 cat <<\_ASBOX
9549 ## ------------------------------------ ##
9550 ## Report this to bug-autoconf@gnu.org. ##
9551 ## ------------------------------------ ##
9552 _ASBOX
9554 sed "s/^/$as_me: WARNING: /" >&2
9556 esac
9557 echo "$as_me:$LINENO: checking for png.h" >&5
9558 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9559 if test "${ac_cv_header_png_h+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 ac_cv_header_png_h=$ac_header_preproc
9564 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9565 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9568 if test $ac_cv_header_png_h = yes; then
9569 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9570 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9571 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 ac_check_lib_save_LIBS=$LIBS
9575 LIBS="-lpng -lz -lm $LIBS"
9576 cat >conftest.$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 /* Override any gcc2 internal prototype to avoid an error. */
9585 #ifdef __cplusplus
9586 extern "C"
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9590 char png_get_channels ();
9592 main ()
9594 png_get_channels ();
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_lib_png_png_get_channels=yes
9612 else
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_lib_png_png_get_channels=no
9618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9621 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9622 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9623 if test $ac_cv_lib_png_png_get_channels = yes; then
9624 HAVE_PNG=yes
9632 if test "${HAVE_PNG}" = "yes"; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_PNG 1
9636 _ACEOF
9641 ### Use -ltiff if available, unless `--with-tiff=no'.
9642 HAVE_TIFF=no
9643 if test "${HAVE_X11}" = "yes"; then
9644 if test "${with_tiff}" != "no"; then
9645 if test "${ac_cv_header_tiffio_h+set}" = set; then
9646 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9647 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9648 if test "${ac_cv_header_tiffio_h+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9652 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9653 else
9654 # Is the header compilable?
9655 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9656 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9657 cat >conftest.$ac_ext <<_ACEOF
9658 #line $LINENO "configure"
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 #include <tiffio.h>
9666 _ACEOF
9667 rm -f conftest.$ac_objext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9669 (eval $ac_compile) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_header_compiler=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_header_compiler=no
9686 rm -f conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9688 echo "${ECHO_T}$ac_header_compiler" >&6
9690 # Is the header present?
9691 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9692 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694 #line $LINENO "configure"
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 #include <tiffio.h>
9701 _ACEOF
9702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } >/dev/null; then
9710 if test -s conftest.err; then
9711 ac_cpp_err=$ac_c_preproc_warn_flag
9712 else
9713 ac_cpp_err=
9715 else
9716 ac_cpp_err=yes
9718 if test -z "$ac_cpp_err"; then
9719 ac_header_preproc=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_header_preproc=no
9726 rm -f conftest.err conftest.$ac_ext
9727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9728 echo "${ECHO_T}$ac_header_preproc" >&6
9730 # So? What about this header?
9731 case $ac_header_compiler:$ac_header_preproc in
9732 yes:no )
9733 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9734 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9736 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9738 cat <<\_ASBOX
9739 ## ------------------------------------ ##
9740 ## Report this to bug-autoconf@gnu.org. ##
9741 ## ------------------------------------ ##
9742 _ASBOX
9744 sed "s/^/$as_me: WARNING: /" >&2
9746 no:yes )
9747 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9748 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9750 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9754 cat <<\_ASBOX
9755 ## ------------------------------------ ##
9756 ## Report this to bug-autoconf@gnu.org. ##
9757 ## ------------------------------------ ##
9758 _ASBOX
9760 sed "s/^/$as_me: WARNING: /" >&2
9762 esac
9763 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9764 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9765 if test "${ac_cv_header_tiffio_h+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768 ac_cv_header_tiffio_h=$ac_header_preproc
9770 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9771 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9774 if test $ac_cv_header_tiffio_h = yes; then
9775 tifflibs="-lz -lm"
9776 # At least one tiff package requires the jpeg library.
9777 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9778 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9779 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9780 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783 ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-ltiff $tifflibs $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9793 /* Override any gcc2 internal prototype to avoid an error. */
9794 #ifdef __cplusplus
9795 extern "C"
9796 #endif
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799 char TIFFGetVersion ();
9801 main ()
9803 TIFFGetVersion ();
9805 return 0;
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lib_tiff_TIFFGetVersion=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_cv_lib_tiff_TIFFGetVersion=no
9827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9828 LIBS=$ac_check_lib_save_LIBS
9830 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9831 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9832 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9833 HAVE_TIFF=yes
9841 if test "${HAVE_TIFF}" = "yes"; then
9843 cat >>confdefs.h <<\_ACEOF
9844 #define HAVE_TIFF 1
9845 _ACEOF
9850 ### Use -lgif if available, unless `--with-gif=no'.
9851 HAVE_GIF=no
9852 if test "${HAVE_X11}" = "yes"; then
9853 if test "${with_gif}" != "no"; then
9854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9855 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9856 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9857 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9861 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9862 else
9863 # Is the header compilable?
9864 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9865 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9867 #line $LINENO "configure"
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 $ac_includes_default
9874 #include <gif_lib.h>
9875 _ACEOF
9876 rm -f conftest.$ac_objext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878 (eval $ac_compile) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest.$ac_objext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 (eval $ac_try) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_header_compiler=yes
9889 else
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_header_compiler=no
9895 rm -f conftest.$ac_objext conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9897 echo "${ECHO_T}$ac_header_compiler" >&6
9899 # Is the header present?
9900 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9901 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 #include <gif_lib.h>
9910 _ACEOF
9911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } >/dev/null; then
9919 if test -s conftest.err; then
9920 ac_cpp_err=$ac_c_preproc_warn_flag
9921 else
9922 ac_cpp_err=
9924 else
9925 ac_cpp_err=yes
9927 if test -z "$ac_cpp_err"; then
9928 ac_header_preproc=yes
9929 else
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_header_preproc=no
9935 rm -f conftest.err conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9937 echo "${ECHO_T}$ac_header_preproc" >&6
9939 # So? What about this header?
9940 case $ac_header_compiler:$ac_header_preproc in
9941 yes:no )
9942 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9943 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9945 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9947 cat <<\_ASBOX
9948 ## ------------------------------------ ##
9949 ## Report this to bug-autoconf@gnu.org. ##
9950 ## ------------------------------------ ##
9951 _ASBOX
9953 sed "s/^/$as_me: WARNING: /" >&2
9955 no:yes )
9956 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9957 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9959 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9963 cat <<\_ASBOX
9964 ## ------------------------------------ ##
9965 ## Report this to bug-autoconf@gnu.org. ##
9966 ## ------------------------------------ ##
9967 _ASBOX
9969 sed "s/^/$as_me: WARNING: /" >&2
9971 esac
9972 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9973 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9974 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 ac_cv_header_gif_lib_h=$ac_header_preproc
9979 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9980 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9983 if test $ac_cv_header_gif_lib_h = yes; then
9984 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9985 # Earlier versions can crash Emacs.
9986 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9987 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9988 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 ac_check_lib_save_LIBS=$LIBS
9992 LIBS="-lungif $LIBS"
9993 cat >conftest.$ac_ext <<_ACEOF
9994 #line $LINENO "configure"
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any gcc2 internal prototype to avoid an error. */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10007 char EGifPutExtensionLast ();
10009 main ()
10011 EGifPutExtensionLast ();
10013 return 0;
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest$ac_exeext'
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_cv_lib_ungif_EGifPutExtensionLast=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_cv_lib_ungif_EGifPutExtensionLast=no
10035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10038 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10039 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10040 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10041 HAVE_GIF=yes
10049 if test "${HAVE_GIF}" = "yes"; then
10051 cat >>confdefs.h <<\_ACEOF
10052 #define HAVE_GIF 1
10053 _ACEOF
10058 ### Use Mac OS X Carbon API to implement GUI.
10059 HAVE_CARBON=no
10060 if test "${with_carbon}" != "no"; then
10061 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10062 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10063 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10064 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10068 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10069 else
10070 # Is the header compilable?
10071 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10072 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074 #line $LINENO "configure"
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 $ac_includes_default
10081 #include <Carbon/Carbon.h>
10082 _ACEOF
10083 rm -f conftest.$ac_objext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10085 (eval $ac_compile) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -s conftest.$ac_objext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_header_compiler=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_header_compiler=no
10102 rm -f conftest.$ac_objext conftest.$ac_ext
10103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6
10106 # Is the header present?
10107 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10108 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line $LINENO "configure"
10111 /* confdefs.h. */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 #include <Carbon/Carbon.h>
10117 _ACEOF
10118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } >/dev/null; then
10126 if test -s conftest.err; then
10127 ac_cpp_err=$ac_c_preproc_warn_flag
10128 else
10129 ac_cpp_err=
10131 else
10132 ac_cpp_err=yes
10134 if test -z "$ac_cpp_err"; then
10135 ac_header_preproc=yes
10136 else
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_header_preproc=no
10142 rm -f conftest.err conftest.$ac_ext
10143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10144 echo "${ECHO_T}$ac_header_preproc" >&6
10146 # So? What about this header?
10147 case $ac_header_compiler:$ac_header_preproc in
10148 yes:no )
10149 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10150 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10152 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10154 cat <<\_ASBOX
10155 ## ------------------------------------ ##
10156 ## Report this to bug-autoconf@gnu.org. ##
10157 ## ------------------------------------ ##
10158 _ASBOX
10160 sed "s/^/$as_me: WARNING: /" >&2
10162 no:yes )
10163 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10168 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10170 cat <<\_ASBOX
10171 ## ------------------------------------ ##
10172 ## Report this to bug-autoconf@gnu.org. ##
10173 ## ------------------------------------ ##
10174 _ASBOX
10176 sed "s/^/$as_me: WARNING: /" >&2
10178 esac
10179 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10180 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10181 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10186 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10187 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10190 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10191 HAVE_CARBON=yes
10197 if test "${HAVE_CARBON}" = "yes"; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_CARBON 1
10201 _ACEOF
10203 window_system=mac
10204 ## Specify the install directory
10205 carbon_appdir=
10206 if test "${carbon_appdir_x}" != ""; then
10207 case ${carbon_appdir_x} in
10208 y | ye | yes) carbon_appdir=/Applications ;;
10209 * ) carbon_appdir=${carbon_appdir_x} ;;
10210 esac
10212 # We also have mouse menus.
10213 HAVE_MENUS=yes
10216 ### Use session management (-lSM -lICE) if available
10217 HAVE_X_SM=no
10218 if test "${HAVE_X11}" = "yes"; then
10219 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10220 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10221 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10222 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10226 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10227 else
10228 # Is the header compilable?
10229 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10230 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10232 #line $LINENO "configure"
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 #include <X11/SM/SMlib.h>
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243 (eval $ac_compile) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -s conftest.$ac_objext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_header_compiler=yes
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 ac_header_compiler=no
10260 rm -f conftest.$ac_objext conftest.$ac_ext
10261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10262 echo "${ECHO_T}$ac_header_compiler" >&6
10264 # Is the header present?
10265 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10266 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 /* confdefs.h. */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 #include <X11/SM/SMlib.h>
10275 _ACEOF
10276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } >/dev/null; then
10284 if test -s conftest.err; then
10285 ac_cpp_err=$ac_c_preproc_warn_flag
10286 else
10287 ac_cpp_err=
10289 else
10290 ac_cpp_err=yes
10292 if test -z "$ac_cpp_err"; then
10293 ac_header_preproc=yes
10294 else
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_header_preproc=no
10300 rm -f conftest.err conftest.$ac_ext
10301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10302 echo "${ECHO_T}$ac_header_preproc" >&6
10304 # So? What about this header?
10305 case $ac_header_compiler:$ac_header_preproc in
10306 yes:no )
10307 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10308 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10310 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10312 cat <<\_ASBOX
10313 ## ------------------------------------ ##
10314 ## Report this to bug-autoconf@gnu.org. ##
10315 ## ------------------------------------ ##
10316 _ASBOX
10318 sed "s/^/$as_me: WARNING: /" >&2
10320 no:yes )
10321 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10322 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10324 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10326 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10328 cat <<\_ASBOX
10329 ## ------------------------------------ ##
10330 ## Report this to bug-autoconf@gnu.org. ##
10331 ## ------------------------------------ ##
10332 _ASBOX
10334 sed "s/^/$as_me: WARNING: /" >&2
10336 esac
10337 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10338 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10339 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10344 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10345 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10348 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10349 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10350 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10351 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 ac_check_lib_save_LIBS=$LIBS
10355 LIBS="-lSM $LIBS"
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10364 /* Override any gcc2 internal prototype to avoid an error. */
10365 #ifdef __cplusplus
10366 extern "C"
10367 #endif
10368 /* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
10370 char SmcOpenConnection ();
10372 main ()
10374 SmcOpenConnection ();
10376 return 0;
10378 _ACEOF
10379 rm -f conftest.$ac_objext conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_SM_SmcOpenConnection=yes
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10396 ac_cv_lib_SM_SmcOpenConnection=no
10398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10402 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10403 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10404 HAVE_X_SM=yes
10405 else
10406 -lICE
10413 if test "${HAVE_X_SM}" = "yes"; then
10415 cat >>confdefs.h <<\_ACEOF
10416 #define HAVE_X_SM 1
10417 _ACEOF
10419 case "$LIBS" in
10420 *-lSM*) ;;
10421 *) LIBS="-lSM -lICE $LIBS" ;;
10422 esac
10426 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10427 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10428 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10429 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 cat >conftest.$ac_ext <<_ACEOF
10433 #line $LINENO "configure"
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <netdb.h>
10441 main ()
10443 return h_errno;
10445 return 0;
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450 (eval $ac_link) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 emacs_cv_netdb_declares_h_errno=yes
10461 else
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 emacs_cv_netdb_declares_h_errno=no
10467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10469 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10470 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10471 if test $emacs_cv_netdb_declares_h_errno = yes; then
10473 cat >>confdefs.h <<\_ACEOF
10474 #define HAVE_H_ERRNO 1
10475 _ACEOF
10479 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10480 # for constant arguments. Useless!
10481 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10482 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10483 if test "${ac_cv_working_alloca_h+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 /* confdefs.h. */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10493 #include <alloca.h>
10495 main ()
10497 char *p = (char *) alloca (2 * sizeof (int));
10499 return 0;
10501 _ACEOF
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -s conftest$ac_exeext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 ac_cv_working_alloca_h=yes
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 ac_cv_working_alloca_h=no
10521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10523 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10525 if test $ac_cv_working_alloca_h = yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_ALLOCA_H 1
10529 _ACEOF
10533 echo "$as_me:$LINENO: checking for alloca" >&5
10534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10535 if test "${ac_cv_func_alloca_works+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 cat >conftest.$ac_ext <<_ACEOF
10539 #line $LINENO "configure"
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 #ifdef __GNUC__
10546 # define alloca __builtin_alloca
10547 #else
10548 # ifdef _MSC_VER
10549 # include <malloc.h>
10550 # define alloca _alloca
10551 # else
10552 # if HAVE_ALLOCA_H
10553 # include <alloca.h>
10554 # else
10555 # ifdef _AIX
10556 #pragma alloca
10557 # else
10558 # ifndef alloca /* predefined by HP cc +Olibcalls */
10559 char *alloca ();
10560 # endif
10561 # endif
10562 # endif
10563 # endif
10564 #endif
10567 main ()
10569 char *p = (char *) alloca (1);
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -s conftest$ac_exeext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_func_alloca_works=yes
10587 else
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_cv_func_alloca_works=no
10593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10595 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10596 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10598 if test $ac_cv_func_alloca_works = yes; then
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_ALLOCA 1
10602 _ACEOF
10604 else
10605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10606 # that cause trouble. Some versions do not even contain alloca or
10607 # contain a buggy version. If you still want to use their alloca,
10608 # use ar to extract alloca.o from them instead of compiling alloca.c.
10610 ALLOCA=alloca.$ac_objext
10612 cat >>confdefs.h <<\_ACEOF
10613 #define C_ALLOCA 1
10614 _ACEOF
10617 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10618 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10619 if test "${ac_cv_os_cray+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 cat >conftest.$ac_ext <<_ACEOF
10623 #line $LINENO "configure"
10624 /* confdefs.h. */
10625 _ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #if defined(CRAY) && ! defined(CRAY2)
10630 webecray
10631 #else
10632 wenotbecray
10633 #endif
10635 _ACEOF
10636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10637 $EGREP "webecray" >/dev/null 2>&1; then
10638 ac_cv_os_cray=yes
10639 else
10640 ac_cv_os_cray=no
10642 rm -f conftest*
10645 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10646 echo "${ECHO_T}$ac_cv_os_cray" >&6
10647 if test $ac_cv_os_cray = yes; then
10648 for ac_func in _getb67 GETB67 getb67; do
10649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10650 echo "$as_me:$LINENO: checking for $ac_func" >&5
10651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10652 if eval "test \"\${$as_ac_var+set}\" = set"; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655 cat >conftest.$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func (); below.
10664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665 <limits.h> exists even on freestanding compilers. */
10666 #ifdef __STDC__
10667 # include <limits.h>
10668 #else
10669 # include <assert.h>
10670 #endif
10671 /* Override any gcc2 internal prototype to avoid an error. */
10672 #ifdef __cplusplus
10673 extern "C"
10675 #endif
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char $ac_func ();
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683 choke me
10684 #else
10685 char (*f) () = $ac_func;
10686 #endif
10687 #ifdef __cplusplus
10689 #endif
10692 main ()
10694 return f != $ac_func;
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 eval "$as_ac_var=yes"
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 eval "$as_ac_var=no"
10718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10724 cat >>confdefs.h <<_ACEOF
10725 #define CRAY_STACKSEG_END $ac_func
10726 _ACEOF
10728 break
10731 done
10734 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10735 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10736 if test "${ac_cv_c_stack_direction+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 else
10739 if test "$cross_compiling" = yes; then
10740 ac_cv_c_stack_direction=0
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 #line $LINENO "configure"
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10750 find_stack_direction ()
10752 static char *addr = 0;
10753 auto char dummy;
10754 if (addr == 0)
10756 addr = &dummy;
10757 return find_stack_direction ();
10759 else
10760 return (&dummy > addr) ? 1 : -1;
10764 main ()
10766 exit (find_stack_direction () < 0);
10768 _ACEOF
10769 rm -f conftest$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_c_stack_direction=1
10781 else
10782 echo "$as_me: program exited with status $ac_status" >&5
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 ( exit $ac_status )
10787 ac_cv_c_stack_direction=-1
10789 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10793 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10795 cat >>confdefs.h <<_ACEOF
10796 #define STACK_DIRECTION $ac_cv_c_stack_direction
10797 _ACEOF
10803 # fmod, logb, and frexp are found in -lm on most systems.
10804 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10806 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10807 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10808 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-lm $LIBS"
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line $LINENO "configure"
10815 /* confdefs.h. */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char sqrt ();
10829 main ()
10831 sqrt ();
10833 return 0;
10835 _ACEOF
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10838 (eval $ac_link) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest$ac_exeext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_lib_m_sqrt=yes
10849 else
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_lib_m_sqrt=no
10855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10858 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10859 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10860 if test $ac_cv_lib_m_sqrt = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862 #define HAVE_LIBM 1
10863 _ACEOF
10865 LIBS="-lm $LIBS"
10870 # Check for mail-locking functions in a "mail" library. Probably this should
10871 # have the same check as for liblockfile below.
10873 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10874 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10875 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-lmail $LIBS"
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any gcc2 internal prototype to avoid an error. */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char maillock ();
10896 main ()
10898 maillock ();
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_mail_maillock=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_lib_mail_maillock=no
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10926 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10927 if test $ac_cv_lib_mail_maillock = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_LIBMAIL 1
10930 _ACEOF
10932 LIBS="-lmail $LIBS"
10937 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10938 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10939 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 else
10942 ac_check_lib_save_LIBS=$LIBS
10943 LIBS="-llockfile $LIBS"
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 /* We use char because int might match the return type of a gcc2
10957 builtin and then its argument prototype would still apply. */
10958 char maillock ();
10960 main ()
10962 maillock ();
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext conftest$ac_exeext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10969 (eval $ac_link) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_lib_lockfile_maillock=yes
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_lib_lockfile_maillock=no
10986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_lib_save_LIBS
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10990 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10991 if test $ac_cv_lib_lockfile_maillock = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_LIBLOCKFILE 1
10994 _ACEOF
10996 LIBS="-llockfile $LIBS"
11000 # If we have the shared liblockfile, assume we must use it for mail
11001 # locking (e.g. Debian). If we couldn't link against liblockfile
11002 # (no liblockfile.a installed), ensure that we don't need to.
11003 if test "$ac_cv_lib_lockfile_maillock" = no; then
11004 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11005 set dummy liblockfile.so; ac_word=$2
11006 echo "$as_me:$LINENO: checking for $ac_word" >&5
11007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11008 if test "${ac_cv_prog_liblockfile+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 if test -n "$liblockfile"; then
11012 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11013 else
11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11016 for as_dir in $as_dummy
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_prog_liblockfile="yes"
11023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11026 done
11027 done
11029 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11032 liblockfile=$ac_cv_prog_liblockfile
11033 if test -n "$liblockfile"; then
11034 echo "$as_me:$LINENO: result: $liblockfile" >&5
11035 echo "${ECHO_T}$liblockfile" >&6
11036 else
11037 echo "$as_me:$LINENO: result: no" >&5
11038 echo "${ECHO_T}no" >&6
11041 if test $ac_cv_prog_liblockfile = yes; then
11042 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11043 This probably means that movemail could lose mail.
11044 There may be a \`development' package to install containing liblockfile." >&5
11045 echo "$as_me: error: Shared liblockfile found but can't link against it.
11046 This probably means that movemail could lose mail.
11047 There may be a \`development' package to install containing liblockfile." >&2;}
11048 { (exit 1); exit 1; }; }
11049 else :
11053 for ac_func in touchlock
11055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 echo "$as_me:$LINENO: checking for $ac_func" >&5
11057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11058 if eval "test \"\${$as_ac_var+set}\" = set"; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061 cat >conftest.$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11063 /* confdefs.h. */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h. */
11068 /* System header to define __stub macros and hopefully few prototypes,
11069 which can conflict with char $ac_func (); below.
11070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11071 <limits.h> exists even on freestanding compilers. */
11072 #ifdef __STDC__
11073 # include <limits.h>
11074 #else
11075 # include <assert.h>
11076 #endif
11077 /* Override any gcc2 internal prototype to avoid an error. */
11078 #ifdef __cplusplus
11079 extern "C"
11081 #endif
11082 /* We use char because int might match the return type of a gcc2
11083 builtin and then its argument prototype would still apply. */
11084 char $ac_func ();
11085 /* The GNU C library defines this for functions which it implements
11086 to always fail with ENOSYS. Some functions are actually named
11087 something starting with __ and the normal name is an alias. */
11088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11089 choke me
11090 #else
11091 char (*f) () = $ac_func;
11092 #endif
11093 #ifdef __cplusplus
11095 #endif
11098 main ()
11100 return f != $ac_func;
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107 (eval $ac_link) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } &&
11111 { ac_try='test -s conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 eval "$as_ac_var=yes"
11118 else
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 eval "$as_ac_var=no"
11124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11128 if test `eval echo '${'$as_ac_var'}'` = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 _ACEOF
11134 done
11137 for ac_header in maillock.h
11139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11141 echo "$as_me:$LINENO: checking for $ac_header" >&5
11142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11148 else
11149 # Is the header compilable?
11150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line $LINENO "configure"
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 #include <$ac_header>
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164 (eval $ac_compile) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } &&
11168 { ac_try='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 ac_header_compiler=yes
11175 else
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_header_compiler=no
11181 rm -f conftest.$ac_objext conftest.$ac_ext
11182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 echo "${ECHO_T}$ac_header_compiler" >&6
11185 # Is the header present?
11186 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 #include <$ac_header>
11196 _ACEOF
11197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev/null; then
11205 if test -s conftest.err; then
11206 ac_cpp_err=$ac_c_preproc_warn_flag
11207 else
11208 ac_cpp_err=
11210 else
11211 ac_cpp_err=yes
11213 if test -z "$ac_cpp_err"; then
11214 ac_header_preproc=yes
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_header_preproc=no
11221 rm -f conftest.err conftest.$ac_ext
11222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223 echo "${ECHO_T}$ac_header_preproc" >&6
11225 # So? What about this header?
11226 case $ac_header_compiler:$ac_header_preproc in
11227 yes:no )
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11233 cat <<\_ASBOX
11234 ## ------------------------------------ ##
11235 ## Report this to bug-autoconf@gnu.org. ##
11236 ## ------------------------------------ ##
11237 _ASBOX
11239 sed "s/^/$as_me: WARNING: /" >&2
11241 no:yes )
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11249 cat <<\_ASBOX
11250 ## ------------------------------------ ##
11251 ## Report this to bug-autoconf@gnu.org. ##
11252 ## ------------------------------------ ##
11253 _ASBOX
11255 sed "s/^/$as_me: WARNING: /" >&2
11257 esac
11258 echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 eval "$as_ac_Header=$ac_header_preproc"
11265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11272 _ACEOF
11276 done
11346 for ac_func in gethostname getdomainname dup2 \
11347 rename closedir mkdir rmdir sysinfo \
11348 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11349 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11350 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11351 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11352 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11353 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11354 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 cat >conftest.$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func (); below.
11371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372 <limits.h> exists even on freestanding compilers. */
11373 #ifdef __STDC__
11374 # include <limits.h>
11375 #else
11376 # include <assert.h>
11377 #endif
11378 /* Override any gcc2 internal prototype to avoid an error. */
11379 #ifdef __cplusplus
11380 extern "C"
11382 #endif
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11385 char $ac_func ();
11386 /* The GNU C library defines this for functions which it implements
11387 to always fail with ENOSYS. Some functions are actually named
11388 something starting with __ and the normal name is an alias. */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11390 choke me
11391 #else
11392 char (*f) () = $ac_func;
11393 #endif
11394 #ifdef __cplusplus
11396 #endif
11399 main ()
11401 return f != $ac_func;
11403 return 0;
11405 _ACEOF
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -s conftest$ac_exeext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 eval "$as_ac_var=yes"
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 eval "$as_ac_var=no"
11425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11429 if test `eval echo '${'$as_ac_var'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11432 _ACEOF
11435 done
11439 for ac_header in sys/un.h
11441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11443 echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11450 else
11451 # Is the header compilable?
11452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11454 cat >conftest.$ac_ext <<_ACEOF
11455 #line $LINENO "configure"
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11462 #include <$ac_header>
11463 _ACEOF
11464 rm -f conftest.$ac_objext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466 (eval $ac_compile) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_header_compiler=yes
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_compiler=no
11483 rm -f conftest.$ac_objext conftest.$ac_ext
11484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11485 echo "${ECHO_T}$ac_header_compiler" >&6
11487 # Is the header present?
11488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11490 cat >conftest.$ac_ext <<_ACEOF
11491 #line $LINENO "configure"
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <$ac_header>
11498 _ACEOF
11499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null; then
11507 if test -s conftest.err; then
11508 ac_cpp_err=$ac_c_preproc_warn_flag
11509 else
11510 ac_cpp_err=
11512 else
11513 ac_cpp_err=yes
11515 if test -z "$ac_cpp_err"; then
11516 ac_header_preproc=yes
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_preproc=no
11523 rm -f conftest.err conftest.$ac_ext
11524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11525 echo "${ECHO_T}$ac_header_preproc" >&6
11527 # So? What about this header?
11528 case $ac_header_compiler:$ac_header_preproc in
11529 yes:no )
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11535 cat <<\_ASBOX
11536 ## ------------------------------------ ##
11537 ## Report this to bug-autoconf@gnu.org. ##
11538 ## ------------------------------------ ##
11539 _ASBOX
11541 sed "s/^/$as_me: WARNING: /" >&2
11543 no:yes )
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11551 cat <<\_ASBOX
11552 ## ------------------------------------ ##
11553 ## Report this to bug-autoconf@gnu.org. ##
11554 ## ------------------------------------ ##
11555 _ASBOX
11557 sed "s/^/$as_me: WARNING: /" >&2
11559 esac
11560 echo "$as_me:$LINENO: checking for $ac_header" >&5
11561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 eval "$as_ac_Header=$ac_header_preproc"
11567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11574 _ACEOF
11578 done
11583 for ac_header in sys/time.h unistd.h
11585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11587 echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11594 else
11595 # Is the header compilable?
11596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11607 _ACEOF
11608 rm -f conftest.$ac_objext
11609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11610 (eval $ac_compile) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -s conftest.$ac_objext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_header_compiler=yes
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_header_compiler=no
11627 rm -f conftest.$ac_objext conftest.$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11629 echo "${ECHO_T}$ac_header_compiler" >&6
11631 # Is the header present?
11632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 #include <$ac_header>
11642 _ACEOF
11643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } >/dev/null; then
11651 if test -s conftest.err; then
11652 ac_cpp_err=$ac_c_preproc_warn_flag
11653 else
11654 ac_cpp_err=
11656 else
11657 ac_cpp_err=yes
11659 if test -z "$ac_cpp_err"; then
11660 ac_header_preproc=yes
11661 else
11662 echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11665 ac_header_preproc=no
11667 rm -f conftest.err conftest.$ac_ext
11668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11669 echo "${ECHO_T}$ac_header_preproc" >&6
11671 # So? What about this header?
11672 case $ac_header_compiler:$ac_header_preproc in
11673 yes:no )
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11679 cat <<\_ASBOX
11680 ## ------------------------------------ ##
11681 ## Report this to bug-autoconf@gnu.org. ##
11682 ## ------------------------------------ ##
11683 _ASBOX
11685 sed "s/^/$as_me: WARNING: /" >&2
11687 no:yes )
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695 cat <<\_ASBOX
11696 ## ------------------------------------ ##
11697 ## Report this to bug-autoconf@gnu.org. ##
11698 ## ------------------------------------ ##
11699 _ASBOX
11701 sed "s/^/$as_me: WARNING: /" >&2
11703 esac
11704 echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 eval "$as_ac_Header=$ac_header_preproc"
11711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11718 _ACEOF
11722 done
11725 for ac_func in alarm
11727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11728 echo "$as_me:$LINENO: checking for $ac_func" >&5
11729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11730 if eval "test \"\${$as_ac_var+set}\" = set"; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 cat >conftest.$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11744 #ifdef __STDC__
11745 # include <limits.h>
11746 #else
11747 # include <assert.h>
11748 #endif
11749 /* Override any gcc2 internal prototype to avoid an error. */
11750 #ifdef __cplusplus
11751 extern "C"
11753 #endif
11754 /* We use char because int might match the return type of a gcc2
11755 builtin and then its argument prototype would still apply. */
11756 char $ac_func ();
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11761 choke me
11762 #else
11763 char (*f) () = $ac_func;
11764 #endif
11765 #ifdef __cplusplus
11767 #endif
11770 main ()
11772 return f != $ac_func;
11774 return 0;
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -s conftest$ac_exeext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 eval "$as_ac_var=yes"
11790 else
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 eval "$as_ac_var=no"
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11803 _ACEOF
11806 done
11808 echo "$as_me:$LINENO: checking for working mktime" >&5
11809 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11810 if test "${ac_cv_func_working_mktime+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813 if test "$cross_compiling" = yes; then
11814 ac_cv_func_working_mktime=no
11815 else
11816 cat >conftest.$ac_ext <<_ACEOF
11817 #line $LINENO "configure"
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 /* Test program from Paul Eggert and Tony Leneis. */
11824 #if TIME_WITH_SYS_TIME
11825 # include <sys/time.h>
11826 # include <time.h>
11827 #else
11828 # if HAVE_SYS_TIME_H
11829 # include <sys/time.h>
11830 # else
11831 # include <time.h>
11832 # endif
11833 #endif
11835 #if HAVE_UNISTD_H
11836 # include <unistd.h>
11837 #endif
11839 #if !HAVE_ALARM
11840 # define alarm(X) /* empty */
11841 #endif
11843 /* Work around redefinition to rpl_putenv by other config tests. */
11844 #undef putenv
11846 static time_t time_t_max;
11848 /* Values we'll use to set the TZ environment variable. */
11849 static const char *const tz_strings[] = {
11850 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11851 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11853 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11855 /* Fail if mktime fails to convert a date in the spring-forward gap.
11856 Based on a problem report from Andreas Jaeger. */
11857 static void
11858 spring_forward_gap ()
11860 /* glibc (up to about 1998-10-07) failed this test. */
11861 struct tm tm;
11863 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11864 instead of "TZ=America/Vancouver" in order to detect the bug even
11865 on systems that don't support the Olson extension, or don't have the
11866 full zoneinfo tables installed. */
11867 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11869 tm.tm_year = 98;
11870 tm.tm_mon = 3;
11871 tm.tm_mday = 5;
11872 tm.tm_hour = 2;
11873 tm.tm_min = 0;
11874 tm.tm_sec = 0;
11875 tm.tm_isdst = -1;
11876 if (mktime (&tm) == (time_t)-1)
11877 exit (1);
11880 static void
11881 mktime_test (now)
11882 time_t now;
11884 struct tm *lt;
11885 if ((lt = localtime (&now)) && mktime (lt) != now)
11886 exit (1);
11887 now = time_t_max - now;
11888 if ((lt = localtime (&now)) && mktime (lt) != now)
11889 exit (1);
11892 static void
11893 irix_6_4_bug ()
11895 /* Based on code from Ariel Faigon. */
11896 struct tm tm;
11897 tm.tm_year = 96;
11898 tm.tm_mon = 3;
11899 tm.tm_mday = 0;
11900 tm.tm_hour = 0;
11901 tm.tm_min = 0;
11902 tm.tm_sec = 0;
11903 tm.tm_isdst = -1;
11904 mktime (&tm);
11905 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11906 exit (1);
11909 static void
11910 bigtime_test (j)
11911 int j;
11913 struct tm tm;
11914 time_t now;
11915 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11916 now = mktime (&tm);
11917 if (now != (time_t) -1)
11919 struct tm *lt = localtime (&now);
11920 if (! (lt
11921 && lt->tm_year == tm.tm_year
11922 && lt->tm_mon == tm.tm_mon
11923 && lt->tm_mday == tm.tm_mday
11924 && lt->tm_hour == tm.tm_hour
11925 && lt->tm_min == tm.tm_min
11926 && lt->tm_sec == tm.tm_sec
11927 && lt->tm_yday == tm.tm_yday
11928 && lt->tm_wday == tm.tm_wday
11929 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11930 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11931 exit (1);
11936 main ()
11938 time_t t, delta;
11939 int i, j;
11941 /* This test makes some buggy mktime implementations loop.
11942 Give up after 60 seconds; a mktime slower than that
11943 isn't worth using anyway. */
11944 alarm (60);
11946 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11947 continue;
11948 time_t_max--;
11949 delta = time_t_max / 997; /* a suitable prime number */
11950 for (i = 0; i < N_STRINGS; i++)
11952 if (tz_strings[i])
11953 putenv (tz_strings[i]);
11955 for (t = 0; t <= time_t_max - delta; t += delta)
11956 mktime_test (t);
11957 mktime_test ((time_t) 60 * 60);
11958 mktime_test ((time_t) 60 * 60 * 24);
11960 for (j = 1; 0 < j; j *= 2)
11961 bigtime_test (j);
11962 bigtime_test (j - 1);
11964 irix_6_4_bug ();
11965 spring_forward_gap ();
11966 exit (0);
11968 _ACEOF
11969 rm -f conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_func_working_mktime=yes
11981 else
11982 echo "$as_me: program exited with status $ac_status" >&5
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ( exit $ac_status )
11987 ac_cv_func_working_mktime=no
11989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11993 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11994 if test $ac_cv_func_working_mktime = no; then
11995 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11998 if test "$ac_cv_func_working_mktime" = no; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define BROKEN_MKTIME 1
12002 _ACEOF
12006 ac_have_func=no # yes means we've found a way to get the load average.
12008 # Make sure getloadavg.c is where it belongs, at configure-time.
12009 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12010 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
12011 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12012 { (exit 1); exit 1; }; }
12014 ac_save_LIBS=$LIBS
12016 # Check for getloadavg, but be sure not to touch the cache variable.
12017 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12018 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12019 if test "${ac_cv_func_getloadavg+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 cat >conftest.$ac_ext <<_ACEOF
12023 #line $LINENO "configure"
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 /* System header to define __stub macros and hopefully few prototypes,
12030 which can conflict with char getloadavg (); below.
12031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12032 <limits.h> exists even on freestanding compilers. */
12033 #ifdef __STDC__
12034 # include <limits.h>
12035 #else
12036 # include <assert.h>
12037 #endif
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 #ifdef __cplusplus
12040 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char getloadavg ();
12046 /* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12050 choke me
12051 #else
12052 char (*f) () = getloadavg;
12053 #endif
12054 #ifdef __cplusplus
12056 #endif
12059 main ()
12061 return f != getloadavg;
12063 return 0;
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_cv_func_getloadavg=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_cv_func_getloadavg=no
12085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12087 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12088 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12089 if test $ac_cv_func_getloadavg = yes; then
12090 exit 0
12091 else
12092 exit 1
12094 ) && ac_have_func=yes
12096 # On HPUX9, an unprivileged user can get load averages through this function.
12098 for ac_func in pstat_getdynamic
12100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12101 echo "$as_me:$LINENO: checking for $ac_func" >&5
12102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12103 if eval "test \"\${$as_ac_var+set}\" = set"; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 cat >conftest.$ac_ext <<_ACEOF
12107 #line $LINENO "configure"
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12117 #ifdef __STDC__
12118 # include <limits.h>
12119 #else
12120 # include <assert.h>
12121 #endif
12122 /* Override any gcc2 internal prototype to avoid an error. */
12123 #ifdef __cplusplus
12124 extern "C"
12126 #endif
12127 /* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
12129 char $ac_func ();
12130 /* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
12133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12134 choke me
12135 #else
12136 char (*f) () = $ac_func;
12137 #endif
12138 #ifdef __cplusplus
12140 #endif
12143 main ()
12145 return f != $ac_func;
12147 return 0;
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 eval "$as_ac_var=yes"
12163 else
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 eval "$as_ac_var=no"
12169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12173 if test `eval echo '${'$as_ac_var'}'` = yes; then
12174 cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12176 _ACEOF
12179 done
12182 # Solaris has libkstat which does not require root.
12184 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12185 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12186 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lkstat $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12192 #line $LINENO "configure"
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any gcc2 internal prototype to avoid an error. */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 /* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205 char kstat_open ();
12207 main ()
12209 kstat_open ();
12211 return 0;
12213 _ACEOF
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12217 ac_status=$?
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest$ac_exeext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_cv_lib_kstat_kstat_open=yes
12227 else
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_lib_kstat_kstat_open=no
12233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12237 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12238 if test $ac_cv_lib_kstat_kstat_open = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define HAVE_LIBKSTAT 1
12241 _ACEOF
12243 LIBS="-lkstat $LIBS"
12247 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12249 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12250 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12251 # to get the right answer into the cache.
12252 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12253 if test $ac_have_func = no; then
12254 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12255 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12256 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 ac_check_lib_save_LIBS=$LIBS
12260 LIBS="-lelf $LIBS"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 #line $LINENO "configure"
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12269 /* Override any gcc2 internal prototype to avoid an error. */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 /* We use char because int might match the return type of a gcc2
12274 builtin and then its argument prototype would still apply. */
12275 char elf_begin ();
12277 main ()
12279 elf_begin ();
12281 return 0;
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_elf_elf_begin=yes
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_lib_elf_elf_begin=no
12303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12308 if test $ac_cv_lib_elf_elf_begin = yes; then
12309 LIBS="-lelf $LIBS"
12313 if test $ac_have_func = no; then
12314 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12315 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319 ac_check_lib_save_LIBS=$LIBS
12320 LIBS="-lkvm $LIBS"
12321 cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 /* Override any gcc2 internal prototype to avoid an error. */
12330 #ifdef __cplusplus
12331 extern "C"
12332 #endif
12333 /* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335 char kvm_open ();
12337 main ()
12339 kvm_open ();
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_lib_kvm_kvm_open=yes
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_lib_kvm_kvm_open=no
12363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12367 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12368 if test $ac_cv_lib_kvm_kvm_open = yes; then
12369 LIBS="-lkvm $LIBS"
12372 # Check for the 4.4BSD definition of getloadavg.
12373 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12374 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12375 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lutil $LIBS"
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char getloadavg ();
12396 main ()
12398 getloadavg ();
12400 return 0;
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_lib_util_getloadavg=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_cv_lib_util_getloadavg=no
12422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12423 LIBS=$ac_check_lib_save_LIBS
12425 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12426 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12427 if test $ac_cv_lib_util_getloadavg = yes; then
12428 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12433 if test $ac_have_func = no; then
12434 # There is a commonly available library for RS/6000 AIX.
12435 # Since it is not a standard part of AIX, it might be installed locally.
12436 ac_getloadavg_LIBS=$LIBS
12437 LIBS="-L/usr/local/lib $LIBS"
12438 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12439 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12440 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lgetloadavg $LIBS"
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line $LINENO "configure"
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12453 /* Override any gcc2 internal prototype to avoid an error. */
12454 #ifdef __cplusplus
12455 extern "C"
12456 #endif
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12459 char getloadavg ();
12461 main ()
12463 getloadavg ();
12465 return 0;
12467 _ACEOF
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12470 (eval $ac_link) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_lib_getloadavg_getloadavg=yes
12481 else
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_lib_getloadavg_getloadavg=no
12487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12488 LIBS=$ac_check_lib_save_LIBS
12490 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12491 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12492 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12493 LIBS="-lgetloadavg $LIBS"
12494 else
12495 LIBS=$ac_getloadavg_LIBS
12500 # Make sure it is really in the library, if we think we found it,
12501 # otherwise set up the replacement function.
12503 for ac_func in getloadavg
12505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506 echo "$as_me:$LINENO: checking for $ac_func" >&5
12507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_var+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 cat >conftest.$ac_ext <<_ACEOF
12512 #line $LINENO "configure"
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 /* System header to define __stub macros and hopefully few prototypes,
12519 which can conflict with char $ac_func (); below.
12520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521 <limits.h> exists even on freestanding compilers. */
12522 #ifdef __STDC__
12523 # include <limits.h>
12524 #else
12525 # include <assert.h>
12526 #endif
12527 /* Override any gcc2 internal prototype to avoid an error. */
12528 #ifdef __cplusplus
12529 extern "C"
12531 #endif
12532 /* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12534 char $ac_func ();
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12539 choke me
12540 #else
12541 char (*f) () = $ac_func;
12542 #endif
12543 #ifdef __cplusplus
12545 #endif
12548 main ()
12550 return f != $ac_func;
12552 return 0;
12554 _ACEOF
12555 rm -f conftest.$ac_objext conftest$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 eval "$as_ac_var=no"
12574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12578 if test `eval echo '${'$as_ac_var'}'` = yes; then
12579 cat >>confdefs.h <<_ACEOF
12580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12581 _ACEOF
12583 else
12584 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12586 cat >>confdefs.h <<\_ACEOF
12587 #define C_GETLOADAVG 1
12588 _ACEOF
12590 # Figure out what our getloadavg.c needs.
12591 ac_have_func=no
12592 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12593 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12594 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12595 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12599 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12600 else
12601 # Is the header compilable?
12602 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12603 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12604 cat >conftest.$ac_ext <<_ACEOF
12605 #line $LINENO "configure"
12606 /* confdefs.h. */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611 $ac_includes_default
12612 #include <sys/dg_sys_info.h>
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
12626 ac_header_compiler=yes
12627 else
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_header_compiler=no
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12635 echo "${ECHO_T}$ac_header_compiler" >&6
12637 # Is the header present?
12638 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12639 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 #include <sys/dg_sys_info.h>
12648 _ACEOF
12649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev/null; then
12657 if test -s conftest.err; then
12658 ac_cpp_err=$ac_c_preproc_warn_flag
12659 else
12660 ac_cpp_err=
12662 else
12663 ac_cpp_err=yes
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc=yes
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 ac_header_preproc=no
12673 rm -f conftest.err conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12675 echo "${ECHO_T}$ac_header_preproc" >&6
12677 # So? What about this header?
12678 case $ac_header_compiler:$ac_header_preproc in
12679 yes:no )
12680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12681 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12683 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12685 cat <<\_ASBOX
12686 ## ------------------------------------ ##
12687 ## Report this to bug-autoconf@gnu.org. ##
12688 ## ------------------------------------ ##
12689 _ASBOX
12691 sed "s/^/$as_me: WARNING: /" >&2
12693 no:yes )
12694 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12695 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12696 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12697 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12698 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12699 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12701 cat <<\_ASBOX
12702 ## ------------------------------------ ##
12703 ## Report this to bug-autoconf@gnu.org. ##
12704 ## ------------------------------------ ##
12705 _ASBOX
12707 sed "s/^/$as_me: WARNING: /" >&2
12709 esac
12710 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12711 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12712 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 else
12715 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12717 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12718 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12721 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12722 ac_have_func=yes
12724 cat >>confdefs.h <<\_ACEOF
12725 #define DGUX 1
12726 _ACEOF
12729 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12730 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12731 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734 ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-ldgc $LIBS"
12736 cat >conftest.$ac_ext <<_ACEOF
12737 #line $LINENO "configure"
12738 /* confdefs.h. */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12744 /* Override any gcc2 internal prototype to avoid an error. */
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 /* We use char because int might match the return type of a gcc2
12749 builtin and then its argument prototype would still apply. */
12750 char dg_sys_info ();
12752 main ()
12754 dg_sys_info ();
12756 return 0;
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761 (eval $ac_link) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_lib_dgc_dg_sys_info=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 ac_cv_lib_dgc_dg_sys_info=no
12778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12782 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12783 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBDGC 1
12786 _ACEOF
12788 LIBS="-ldgc $LIBS"
12796 if test "${ac_cv_header_locale_h+set}" = set; then
12797 echo "$as_me:$LINENO: checking for locale.h" >&5
12798 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12799 if test "${ac_cv_header_locale_h+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12803 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12804 else
12805 # Is the header compilable?
12806 echo "$as_me:$LINENO: checking locale.h usability" >&5
12807 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12808 cat >conftest.$ac_ext <<_ACEOF
12809 #line $LINENO "configure"
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12816 #include <locale.h>
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 ac_header_compiler=yes
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_header_compiler=no
12837 rm -f conftest.$ac_objext conftest.$ac_ext
12838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12839 echo "${ECHO_T}$ac_header_compiler" >&6
12841 # Is the header present?
12842 echo "$as_me:$LINENO: checking locale.h presence" >&5
12843 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12845 #line $LINENO "configure"
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 #include <locale.h>
12852 _ACEOF
12853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } >/dev/null; then
12861 if test -s conftest.err; then
12862 ac_cpp_err=$ac_c_preproc_warn_flag
12863 else
12864 ac_cpp_err=
12866 else
12867 ac_cpp_err=yes
12869 if test -z "$ac_cpp_err"; then
12870 ac_header_preproc=yes
12871 else
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_header_preproc=no
12877 rm -f conftest.err conftest.$ac_ext
12878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12879 echo "${ECHO_T}$ac_header_preproc" >&6
12881 # So? What about this header?
12882 case $ac_header_compiler:$ac_header_preproc in
12883 yes:no )
12884 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12885 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12887 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12889 cat <<\_ASBOX
12890 ## ------------------------------------ ##
12891 ## Report this to bug-autoconf@gnu.org. ##
12892 ## ------------------------------------ ##
12893 _ASBOX
12895 sed "s/^/$as_me: WARNING: /" >&2
12897 no:yes )
12898 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12899 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12901 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12903 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12905 cat <<\_ASBOX
12906 ## ------------------------------------ ##
12907 ## Report this to bug-autoconf@gnu.org. ##
12908 ## ------------------------------------ ##
12909 _ASBOX
12911 sed "s/^/$as_me: WARNING: /" >&2
12913 esac
12914 echo "$as_me:$LINENO: checking for locale.h" >&5
12915 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12916 if test "${ac_cv_header_locale_h+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919 ac_cv_header_locale_h=$ac_header_preproc
12921 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12922 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12928 for ac_func in setlocale
12930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12931 echo "$as_me:$LINENO: checking for $ac_func" >&5
12932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12933 if eval "test \"\${$as_ac_var+set}\" = set"; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below.
12945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12946 <limits.h> exists even on freestanding compilers. */
12947 #ifdef __STDC__
12948 # include <limits.h>
12949 #else
12950 # include <assert.h>
12951 #endif
12952 /* Override any gcc2 internal prototype to avoid an error. */
12953 #ifdef __cplusplus
12954 extern "C"
12956 #endif
12957 /* We use char because int might match the return type of a gcc2
12958 builtin and then its argument prototype would still apply. */
12959 char $ac_func ();
12960 /* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964 choke me
12965 #else
12966 char (*f) () = $ac_func;
12967 #endif
12968 #ifdef __cplusplus
12970 #endif
12973 main ()
12975 return f != $ac_func;
12977 return 0;
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -s conftest$ac_exeext'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 eval "$as_ac_var=yes"
12993 else
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 eval "$as_ac_var=no"
12999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13003 if test `eval echo '${'$as_ac_var'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13006 _ACEOF
13009 done
13012 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13013 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13014 # Irix 4.0.5F has the header but not the library.
13015 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13016 ac_have_func=yes
13018 cat >>confdefs.h <<\_ACEOF
13019 #define SVR4 1
13020 _ACEOF
13024 if test $ac_have_func = no; then
13025 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13026 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13027 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13028 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13032 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13033 else
13034 # Is the header compilable?
13035 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13036 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line $LINENO "configure"
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 $ac_includes_default
13045 #include <inq_stats/cpustats.h>
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13049 (eval $ac_compile) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
13053 { ac_try='test -s conftest.$ac_objext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_header_compiler=yes
13060 else
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13064 ac_header_compiler=no
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13068 echo "${ECHO_T}$ac_header_compiler" >&6
13070 # Is the header present?
13071 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13072 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13073 cat >conftest.$ac_ext <<_ACEOF
13074 #line $LINENO "configure"
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 #include <inq_stats/cpustats.h>
13081 _ACEOF
13082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } >/dev/null; then
13090 if test -s conftest.err; then
13091 ac_cpp_err=$ac_c_preproc_warn_flag
13092 else
13093 ac_cpp_err=
13095 else
13096 ac_cpp_err=yes
13098 if test -z "$ac_cpp_err"; then
13099 ac_header_preproc=yes
13100 else
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_header_preproc=no
13106 rm -f conftest.err conftest.$ac_ext
13107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13108 echo "${ECHO_T}$ac_header_preproc" >&6
13110 # So? What about this header?
13111 case $ac_header_compiler:$ac_header_preproc in
13112 yes:no )
13113 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13114 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13116 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13118 cat <<\_ASBOX
13119 ## ------------------------------------ ##
13120 ## Report this to bug-autoconf@gnu.org. ##
13121 ## ------------------------------------ ##
13122 _ASBOX
13124 sed "s/^/$as_me: WARNING: /" >&2
13126 no:yes )
13127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13128 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13130 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13134 cat <<\_ASBOX
13135 ## ------------------------------------ ##
13136 ## Report this to bug-autoconf@gnu.org. ##
13137 ## ------------------------------------ ##
13138 _ASBOX
13140 sed "s/^/$as_me: WARNING: /" >&2
13142 esac
13143 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13155 ac_have_func=yes
13157 cat >>confdefs.h <<\_ACEOF
13158 #define UMAX 1
13159 _ACEOF
13162 cat >>confdefs.h <<\_ACEOF
13163 #define UMAX4_3 1
13164 _ACEOF
13171 if test $ac_have_func = no; then
13172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13173 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13180 else
13181 # Is the header compilable?
13182 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13184 cat >conftest.$ac_ext <<_ACEOF
13185 #line $LINENO "configure"
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <sys/cpustats.h>
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13196 (eval $ac_compile) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try='test -s conftest.$ac_objext'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 ac_header_compiler=yes
13207 else
13208 echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13211 ac_header_compiler=no
13213 rm -f conftest.$ac_objext conftest.$ac_ext
13214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215 echo "${ECHO_T}$ac_header_compiler" >&6
13217 # Is the header present?
13218 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13219 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13220 cat >conftest.$ac_ext <<_ACEOF
13221 #line $LINENO "configure"
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 #include <sys/cpustats.h>
13228 _ACEOF
13229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } >/dev/null; then
13237 if test -s conftest.err; then
13238 ac_cpp_err=$ac_c_preproc_warn_flag
13239 else
13240 ac_cpp_err=
13242 else
13243 ac_cpp_err=yes
13245 if test -z "$ac_cpp_err"; then
13246 ac_header_preproc=yes
13247 else
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ac_header_preproc=no
13253 rm -f conftest.err conftest.$ac_ext
13254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255 echo "${ECHO_T}$ac_header_preproc" >&6
13257 # So? What about this header?
13258 case $ac_header_compiler:$ac_header_preproc in
13259 yes:no )
13260 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13261 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13263 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13265 cat <<\_ASBOX
13266 ## ------------------------------------ ##
13267 ## Report this to bug-autoconf@gnu.org. ##
13268 ## ------------------------------------ ##
13269 _ASBOX
13271 sed "s/^/$as_me: WARNING: /" >&2
13273 no:yes )
13274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13275 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13277 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13279 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13281 cat <<\_ASBOX
13282 ## ------------------------------------ ##
13283 ## Report this to bug-autoconf@gnu.org. ##
13284 ## ------------------------------------ ##
13285 _ASBOX
13287 sed "s/^/$as_me: WARNING: /" >&2
13289 esac
13290 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13291 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13292 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13297 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13298 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13301 if test $ac_cv_header_sys_cpustats_h = yes; then
13302 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13303 #define UMAX 1
13304 _ACEOF
13311 if test $ac_have_func = no; then
13313 for ac_header in mach/mach.h
13315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13317 echo "$as_me:$LINENO: checking for $ac_header" >&5
13318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13324 else
13325 # Is the header compilable?
13326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13328 cat >conftest.$ac_ext <<_ACEOF
13329 #line $LINENO "configure"
13330 /* confdefs.h. */
13331 _ACEOF
13332 cat confdefs.h >>conftest.$ac_ext
13333 cat >>conftest.$ac_ext <<_ACEOF
13334 /* end confdefs.h. */
13335 $ac_includes_default
13336 #include <$ac_header>
13337 _ACEOF
13338 rm -f conftest.$ac_objext
13339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13340 (eval $ac_compile) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -s conftest.$ac_objext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_header_compiler=yes
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13355 ac_header_compiler=no
13357 rm -f conftest.$ac_objext conftest.$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6
13361 # Is the header present?
13362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13364 cat >conftest.$ac_ext <<_ACEOF
13365 #line $LINENO "configure"
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <$ac_header>
13372 _ACEOF
13373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } >/dev/null; then
13381 if test -s conftest.err; then
13382 ac_cpp_err=$ac_c_preproc_warn_flag
13383 else
13384 ac_cpp_err=
13386 else
13387 ac_cpp_err=yes
13389 if test -z "$ac_cpp_err"; then
13390 ac_header_preproc=yes
13391 else
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_header_preproc=no
13397 rm -f conftest.err conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc in
13403 yes:no )
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13409 cat <<\_ASBOX
13410 ## ------------------------------------ ##
13411 ## Report this to bug-autoconf@gnu.org. ##
13412 ## ------------------------------------ ##
13413 _ASBOX
13415 sed "s/^/$as_me: WARNING: /" >&2
13417 no:yes )
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13425 cat <<\_ASBOX
13426 ## ------------------------------------ ##
13427 ## Report this to bug-autoconf@gnu.org. ##
13428 ## ------------------------------------ ##
13429 _ASBOX
13431 sed "s/^/$as_me: WARNING: /" >&2
13433 esac
13434 echo "$as_me:$LINENO: checking for $ac_header" >&5
13435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439 eval "$as_ac_Header=$ac_header_preproc"
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h <<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448 _ACEOF
13452 done
13457 for ac_header in nlist.h
13459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461 echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468 else
13469 # Is the header compilable?
13470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line $LINENO "configure"
13474 /* confdefs.h. */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 $ac_includes_default
13480 #include <$ac_header>
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484 (eval $ac_compile) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_compiler=no
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503 echo "${ECHO_T}$ac_header_compiler" >&6
13505 # Is the header present?
13506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <$ac_header>
13516 _ACEOF
13517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13519 ac_status=$?
13520 grep -v '^ *+' conftest.er1 >conftest.err
13521 rm -f conftest.er1
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } >/dev/null; then
13525 if test -s conftest.err; then
13526 ac_cpp_err=$ac_c_preproc_warn_flag
13527 else
13528 ac_cpp_err=
13530 else
13531 ac_cpp_err=yes
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13541 rm -f conftest.err conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543 echo "${ECHO_T}$ac_header_preproc" >&6
13545 # So? What about this header?
13546 case $ac_header_compiler:$ac_header_preproc in
13547 yes:no )
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13553 cat <<\_ASBOX
13554 ## ------------------------------------ ##
13555 ## Report this to bug-autoconf@gnu.org. ##
13556 ## ------------------------------------ ##
13557 _ASBOX
13559 sed "s/^/$as_me: WARNING: /" >&2
13561 no:yes )
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 cat <<\_ASBOX
13570 ## ------------------------------------ ##
13571 ## Report this to bug-autoconf@gnu.org. ##
13572 ## ------------------------------------ ##
13573 _ASBOX
13575 sed "s/^/$as_me: WARNING: /" >&2
13577 esac
13578 echo "$as_me:$LINENO: checking for $ac_header" >&5
13579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 eval "$as_ac_Header=$ac_header_preproc"
13585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13590 cat >>confdefs.h <<_ACEOF
13591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13592 _ACEOF
13593 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13594 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13595 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <nlist.h>
13608 main ()
13610 static struct nlist ac_aggr;
13611 if (ac_aggr.n_un.n_name)
13612 return 0;
13614 return 0;
13616 _ACEOF
13617 rm -f conftest.$ac_objext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_member_struct_nlist_n_un_n_name=yes
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 cat >conftest.$ac_ext <<_ACEOF
13635 #line $LINENO "configure"
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include <nlist.h>
13644 main ()
13646 static struct nlist ac_aggr;
13647 if (sizeof ac_aggr.n_un.n_name)
13648 return 0;
13650 return 0;
13652 _ACEOF
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_cv_member_struct_nlist_n_un_n_name=yes
13666 else
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_cv_member_struct_nlist_n_un_n_name=no
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13677 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13678 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13682 _ACEOF
13685 cat >>confdefs.h <<\_ACEOF
13686 #define NLIST_NAME_UNION 1
13687 _ACEOF
13694 done
13697 done
13700 # Some definitions of getloadavg require that the program be installed setgid.
13701 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13702 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13703 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706 cat >conftest.$ac_ext <<_ACEOF
13707 #line $LINENO "configure"
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13714 #ifdef LDAV_PRIVILEGED
13715 Yowza Am I SETGID yet
13716 #endif
13717 _ACEOF
13718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13719 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13720 ac_cv_func_getloadavg_setgid=yes
13721 else
13722 ac_cv_func_getloadavg_setgid=no
13724 rm -f conftest*
13727 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13728 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13729 if test $ac_cv_func_getloadavg_setgid = yes; then
13730 NEED_SETGID=true
13732 cat >>confdefs.h <<\_ACEOF
13733 #define GETLOADAVG_PRIVILEGED 1
13734 _ACEOF
13736 else
13737 NEED_SETGID=false
13740 if test $ac_cv_func_getloadavg_setgid = yes; then
13741 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13742 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13743 if test "${ac_cv_group_kmem+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 else
13746 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13747 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13748 # If we got an error (system does not support symlinks), try without -L.
13749 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13750 ac_cv_group_kmem=`echo $ac_ls_output \
13751 | sed -ne 's/[ ][ ]*/ /g;
13752 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13753 / /s/.* //;p;'`
13756 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13757 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13758 KMEM_GROUP=$ac_cv_group_kmem
13760 if test "x$ac_save_LIBS" = x; then
13761 GETLOADAVG_LIBS=$LIBS
13762 else
13763 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13765 LIBS=$ac_save_LIBS
13769 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13770 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13771 if test "${ac_cv_sys_largefile_source+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774 while :; do
13775 ac_cv_sys_largefile_source=no
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13778 /* confdefs.h. */
13779 _ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <stdio.h>
13785 main ()
13787 return !fseeko;
13789 return 0;
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 break
13805 else
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13810 rm -f conftest.$ac_objext conftest.$ac_ext
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 /* confdefs.h. */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #define _LARGEFILE_SOURCE 1
13819 #include <stdio.h>
13821 main ()
13823 return !fseeko;
13825 return 0;
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13830 (eval $ac_compile) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_sys_largefile_source=1; break
13841 else
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13846 rm -f conftest.$ac_objext conftest.$ac_ext
13847 break
13848 done
13850 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13851 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13852 if test "$ac_cv_sys_largefile_source" != no; then
13854 cat >>confdefs.h <<_ACEOF
13855 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13856 _ACEOF
13859 rm -f conftest*
13861 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13862 # in glibc 2.1.3, but that breaks too many other things.
13863 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13864 echo "$as_me:$LINENO: checking for fseeko" >&5
13865 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13866 if test "${ac_cv_func_fseeko+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 else
13869 cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <stdio.h>
13878 main ()
13880 return fseeko && fseeko (stdin, 0, 0);
13882 return 0;
13884 _ACEOF
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_func_fseeko=yes
13898 else
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ac_cv_func_fseeko=no
13904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13907 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13908 if test $ac_cv_func_fseeko = yes; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define HAVE_FSEEKO 1
13912 _ACEOF
13917 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13918 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13919 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922 # Use it with a single arg.
13923 cat >conftest.$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13932 main ()
13934 getpgrp (0);
13936 return 0;
13938 _ACEOF
13939 rm -f conftest.$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_cv_func_getpgrp_void=no
13952 else
13953 echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13956 ac_cv_func_getpgrp_void=yes
13958 rm -f conftest.$ac_objext conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13962 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13963 if test $ac_cv_func_getpgrp_void = yes; then
13965 cat >>confdefs.h <<\_ACEOF
13966 #define GETPGRP_VOID 1
13967 _ACEOF
13973 for ac_func in strftime
13975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13976 echo "$as_me:$LINENO: checking for $ac_func" >&5
13977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13978 if eval "test \"\${$as_ac_var+set}\" = set"; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981 cat >conftest.$ac_ext <<_ACEOF
13982 #line $LINENO "configure"
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char $ac_func (); below.
13990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13991 <limits.h> exists even on freestanding compilers. */
13992 #ifdef __STDC__
13993 # include <limits.h>
13994 #else
13995 # include <assert.h>
13996 #endif
13997 /* Override any gcc2 internal prototype to avoid an error. */
13998 #ifdef __cplusplus
13999 extern "C"
14001 #endif
14002 /* We use char because int might match the return type of a gcc2
14003 builtin and then its argument prototype would still apply. */
14004 char $ac_func ();
14005 /* The GNU C library defines this for functions which it implements
14006 to always fail with ENOSYS. Some functions are actually named
14007 something starting with __ and the normal name is an alias. */
14008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14009 choke me
14010 #else
14011 char (*f) () = $ac_func;
14012 #endif
14013 #ifdef __cplusplus
14015 #endif
14018 main ()
14020 return f != $ac_func;
14022 return 0;
14024 _ACEOF
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14027 (eval $ac_link) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest$ac_exeext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 eval "$as_ac_var=yes"
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 eval "$as_ac_var=no"
14044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14048 if test `eval echo '${'$as_ac_var'}'` = yes; then
14049 cat >>confdefs.h <<_ACEOF
14050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14051 _ACEOF
14053 else
14054 # strftime is in -lintl on SCO UNIX.
14055 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14056 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14057 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-lintl $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14070 /* Override any gcc2 internal prototype to avoid an error. */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 /* We use char because int might match the return type of a gcc2
14075 builtin and then its argument prototype would still apply. */
14076 char strftime ();
14078 main ()
14080 strftime ();
14082 return 0;
14084 _ACEOF
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14087 (eval $ac_link) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_lib_intl_strftime=yes
14098 else
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_lib_intl_strftime=no
14104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14105 LIBS=$ac_check_lib_save_LIBS
14107 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14108 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14109 if test $ac_cv_lib_intl_strftime = yes; then
14110 cat >>confdefs.h <<\_ACEOF
14111 #define HAVE_STRFTIME 1
14112 _ACEOF
14114 LIBS="-lintl $LIBS"
14118 done
14121 # UNIX98 PTYs.
14123 for ac_func in grantpt
14125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126 echo "$as_me:$LINENO: checking for $ac_func" >&5
14127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14128 if eval "test \"\${$as_ac_var+set}\" = set"; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 cat >conftest.$ac_ext <<_ACEOF
14132 #line $LINENO "configure"
14133 /* confdefs.h. */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 /* System header to define __stub macros and hopefully few prototypes,
14139 which can conflict with char $ac_func (); below.
14140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14141 <limits.h> exists even on freestanding compilers. */
14142 #ifdef __STDC__
14143 # include <limits.h>
14144 #else
14145 # include <assert.h>
14146 #endif
14147 /* Override any gcc2 internal prototype to avoid an error. */
14148 #ifdef __cplusplus
14149 extern "C"
14151 #endif
14152 /* We use char because int might match the return type of a gcc2
14153 builtin and then its argument prototype would still apply. */
14154 char $ac_func ();
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14159 choke me
14160 #else
14161 char (*f) () = $ac_func;
14162 #endif
14163 #ifdef __cplusplus
14165 #endif
14168 main ()
14170 return f != $ac_func;
14172 return 0;
14174 _ACEOF
14175 rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177 (eval $ac_link) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -s conftest$ac_exeext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 eval "$as_ac_var=yes"
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 eval "$as_ac_var=no"
14194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14198 if test `eval echo '${'$as_ac_var'}'` = yes; then
14199 cat >>confdefs.h <<_ACEOF
14200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14201 _ACEOF
14204 done
14207 # PTY-related GNU extensions.
14209 for ac_func in getpt
14211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 echo "$as_me:$LINENO: checking for $ac_func" >&5
14213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14214 if eval "test \"\${$as_ac_var+set}\" = set"; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 #line $LINENO "configure"
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 /* System header to define __stub macros and hopefully few prototypes,
14225 which can conflict with char $ac_func (); below.
14226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14227 <limits.h> exists even on freestanding compilers. */
14228 #ifdef __STDC__
14229 # include <limits.h>
14230 #else
14231 # include <assert.h>
14232 #endif
14233 /* Override any gcc2 internal prototype to avoid an error. */
14234 #ifdef __cplusplus
14235 extern "C"
14237 #endif
14238 /* We use char because int might match the return type of a gcc2
14239 builtin and then its argument prototype would still apply. */
14240 char $ac_func ();
14241 /* The GNU C library defines this for functions which it implements
14242 to always fail with ENOSYS. Some functions are actually named
14243 something starting with __ and the normal name is an alias. */
14244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14245 choke me
14246 #else
14247 char (*f) () = $ac_func;
14248 #endif
14249 #ifdef __cplusplus
14251 #endif
14254 main ()
14256 return f != $ac_func;
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263 (eval $ac_link) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -s conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 eval "$as_ac_var=yes"
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 eval "$as_ac_var=no"
14280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14284 if test `eval echo '${'$as_ac_var'}'` = yes; then
14285 cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14287 _ACEOF
14290 done
14293 # Check this now, so that we will NOT find the above functions in ncurses.
14294 # That is because we have not set up to link ncurses in lib-src.
14295 # It's better to believe a function is not available
14296 # than to expect to find it in ncurses.
14298 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14299 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14300 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lncurses $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14306 #line $LINENO "configure"
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any gcc2 internal prototype to avoid an error. */
14314 #ifdef __cplusplus
14315 extern "C"
14316 #endif
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14319 char tparm ();
14321 main ()
14323 tparm ();
14325 return 0;
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -s conftest$ac_exeext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_lib_ncurses_tparm=yes
14341 else
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_lib_ncurses_tparm=no
14347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14348 LIBS=$ac_check_lib_save_LIBS
14350 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14351 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14352 if test $ac_cv_lib_ncurses_tparm = yes; then
14353 cat >>confdefs.h <<_ACEOF
14354 #define HAVE_LIBNCURSES 1
14355 _ACEOF
14357 LIBS="-lncurses $LIBS"
14362 # Do we need the Hesiod library to provide the support routines?
14363 if test "$with_hesiod" = yes ; then
14364 # Don't set $LIBS here -- see comments above.
14365 resolv=no
14366 echo "$as_me:$LINENO: checking for res_send" >&5
14367 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14368 if test "${ac_cv_func_res_send+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 cat >conftest.$ac_ext <<_ACEOF
14372 #line $LINENO "configure"
14373 /* confdefs.h. */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 /* System header to define __stub macros and hopefully few prototypes,
14379 which can conflict with char res_send (); below.
14380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14381 <limits.h> exists even on freestanding compilers. */
14382 #ifdef __STDC__
14383 # include <limits.h>
14384 #else
14385 # include <assert.h>
14386 #endif
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 #ifdef __cplusplus
14389 extern "C"
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14394 char res_send ();
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_res_send) || defined (__stub___res_send)
14399 choke me
14400 #else
14401 char (*f) () = res_send;
14402 #endif
14403 #ifdef __cplusplus
14405 #endif
14408 main ()
14410 return f != res_send;
14412 return 0;
14414 _ACEOF
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -s conftest$ac_exeext'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; }; then
14427 ac_cv_func_res_send=yes
14428 else
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_cv_func_res_send=no
14434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14436 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14437 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14438 if test $ac_cv_func_res_send = yes; then
14440 else
14441 echo "$as_me:$LINENO: checking for __res_send" >&5
14442 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14443 if test "${ac_cv_func___res_send+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446 cat >conftest.$ac_ext <<_ACEOF
14447 #line $LINENO "configure"
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 /* System header to define __stub macros and hopefully few prototypes,
14454 which can conflict with char __res_send (); below.
14455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14456 <limits.h> exists even on freestanding compilers. */
14457 #ifdef __STDC__
14458 # include <limits.h>
14459 #else
14460 # include <assert.h>
14461 #endif
14462 /* Override any gcc2 internal prototype to avoid an error. */
14463 #ifdef __cplusplus
14464 extern "C"
14466 #endif
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14469 char __res_send ();
14470 /* The GNU C library defines this for functions which it implements
14471 to always fail with ENOSYS. Some functions are actually named
14472 something starting with __ and the normal name is an alias. */
14473 #if defined (__stub___res_send) || defined (__stub_____res_send)
14474 choke me
14475 #else
14476 char (*f) () = __res_send;
14477 #endif
14478 #ifdef __cplusplus
14480 #endif
14483 main ()
14485 return f != __res_send;
14487 return 0;
14489 _ACEOF
14490 rm -f conftest.$ac_objext conftest$ac_exeext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14492 (eval $ac_link) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest$ac_exeext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_func___res_send=yes
14503 else
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_cv_func___res_send=no
14509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14511 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14512 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14513 if test $ac_cv_func___res_send = yes; then
14515 else
14516 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14517 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14518 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 ac_check_lib_save_LIBS=$LIBS
14522 LIBS="-lresolv $LIBS"
14523 cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14531 /* Override any gcc2 internal prototype to avoid an error. */
14532 #ifdef __cplusplus
14533 extern "C"
14534 #endif
14535 /* We use char because int might match the return type of a gcc2
14536 builtin and then its argument prototype would still apply. */
14537 char res_send ();
14539 main ()
14541 res_send ();
14543 return 0;
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14548 (eval $ac_link) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -s conftest$ac_exeext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_cv_lib_resolv_res_send=yes
14559 else
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 ac_cv_lib_resolv_res_send=no
14565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14566 LIBS=$ac_check_lib_save_LIBS
14568 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14569 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14570 if test $ac_cv_lib_resolv_res_send = yes; then
14571 resolv=yes
14572 else
14573 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14574 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14575 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 ac_check_lib_save_LIBS=$LIBS
14579 LIBS="-lresolv $LIBS"
14580 cat >conftest.$ac_ext <<_ACEOF
14581 #line $LINENO "configure"
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char __res_send ();
14596 main ()
14598 __res_send ();
14600 return 0;
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -s conftest$ac_exeext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_lib_resolv___res_send=yes
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_lib_resolv___res_send=no
14622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14623 LIBS=$ac_check_lib_save_LIBS
14625 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14626 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14627 if test $ac_cv_lib_resolv___res_send = yes; then
14628 resolv=yes
14637 if test "$resolv" = yes ; then
14638 RESOLVLIB=-lresolv
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_LIBRESOLV 1
14642 _ACEOF
14644 else
14645 RESOLVLIB=
14647 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14648 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14649 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652 cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char hes_getmailhost (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14663 #ifdef __STDC__
14664 # include <limits.h>
14665 #else
14666 # include <assert.h>
14667 #endif
14668 /* Override any gcc2 internal prototype to avoid an error. */
14669 #ifdef __cplusplus
14670 extern "C"
14672 #endif
14673 /* We use char because int might match the return type of a gcc2
14674 builtin and then its argument prototype would still apply. */
14675 char hes_getmailhost ();
14676 /* The GNU C library defines this for functions which it implements
14677 to always fail with ENOSYS. Some functions are actually named
14678 something starting with __ and the normal name is an alias. */
14679 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14680 choke me
14681 #else
14682 char (*f) () = hes_getmailhost;
14683 #endif
14684 #ifdef __cplusplus
14686 #endif
14689 main ()
14691 return f != hes_getmailhost;
14693 return 0;
14695 _ACEOF
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_cv_func_hes_getmailhost=yes
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_func_hes_getmailhost=no
14715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14717 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14718 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14719 if test $ac_cv_func_hes_getmailhost = yes; then
14721 else
14722 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14723 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14724 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727 ac_check_lib_save_LIBS=$LIBS
14728 LIBS="-lhesiod $RESOLVLIB $LIBS"
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line $LINENO "configure"
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14737 /* Override any gcc2 internal prototype to avoid an error. */
14738 #ifdef __cplusplus
14739 extern "C"
14740 #endif
14741 /* We use char because int might match the return type of a gcc2
14742 builtin and then its argument prototype would still apply. */
14743 char hes_getmailhost ();
14745 main ()
14747 hes_getmailhost ();
14749 return 0;
14751 _ACEOF
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_hesiod_hes_getmailhost=yes
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_lib_hesiod_hes_getmailhost=no
14771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14774 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14775 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14776 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_LIBHESIOD 1
14780 _ACEOF
14782 else
14790 # These tell us which Kerberos-related libraries to use.
14791 if test "${with_kerberos+set}" = set; then
14793 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14794 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14795 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798 ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lcom_err $LIBS"
14800 cat >conftest.$ac_ext <<_ACEOF
14801 #line $LINENO "configure"
14802 /* confdefs.h. */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14808 /* Override any gcc2 internal prototype to avoid an error. */
14809 #ifdef __cplusplus
14810 extern "C"
14811 #endif
14812 /* We use char because int might match the return type of a gcc2
14813 builtin and then its argument prototype would still apply. */
14814 char com_err ();
14816 main ()
14818 com_err ();
14820 return 0;
14822 _ACEOF
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 ac_cv_lib_com_err_com_err=yes
14836 else
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_lib_com_err_com_err=no
14842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14843 LIBS=$ac_check_lib_save_LIBS
14845 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14846 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14847 if test $ac_cv_lib_com_err_com_err = yes; then
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_LIBCOM_ERR 1
14850 _ACEOF
14852 LIBS="-lcom_err $LIBS"
14857 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14858 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14859 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lk5crypto $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14865 #line $LINENO "configure"
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14872 /* Override any gcc2 internal prototype to avoid an error. */
14873 #ifdef __cplusplus
14874 extern "C"
14875 #endif
14876 /* We use char because int might match the return type of a gcc2
14877 builtin and then its argument prototype would still apply. */
14878 char mit_des_cbc_encrypt ();
14880 main ()
14882 mit_des_cbc_encrypt ();
14884 return 0;
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -s conftest$ac_exeext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14910 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14911 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_LIBK5CRYPTO 1
14914 _ACEOF
14916 LIBS="-lk5crypto $LIBS"
14921 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14922 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14923 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lcrypto $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line $LINENO "configure"
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14936 /* Override any gcc2 internal prototype to avoid an error. */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 /* We use char because int might match the return type of a gcc2
14941 builtin and then its argument prototype would still apply. */
14942 char mit_des_cbc_encrypt ();
14944 main ()
14946 mit_des_cbc_encrypt ();
14948 return 0;
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14964 else
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14974 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14975 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define HAVE_LIBCRYPTO 1
14978 _ACEOF
14980 LIBS="-lcrypto $LIBS"
14985 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14986 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14987 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 else
14990 ac_check_lib_save_LIBS=$LIBS
14991 LIBS="-lkrb5 $LIBS"
14992 cat >conftest.$ac_ext <<_ACEOF
14993 #line $LINENO "configure"
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15006 char krb5_init_context ();
15008 main ()
15010 krb5_init_context ();
15012 return 0;
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try='test -s conftest$ac_exeext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_lib_krb5_krb5_init_context=yes
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_cv_lib_krb5_krb5_init_context=no
15034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15035 LIBS=$ac_check_lib_save_LIBS
15037 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15038 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15039 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041 #define HAVE_LIBKRB5 1
15042 _ACEOF
15044 LIBS="-lkrb5 $LIBS"
15048 if test "${with_kerberos5+set}" != set; then
15050 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15051 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15052 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-ldes425 $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 /* confdefs.h. */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 /* Override any gcc2 internal prototype to avoid an error. */
15066 #ifdef __cplusplus
15067 extern "C"
15068 #endif
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15071 char des_cbc_encrypt ();
15073 main ()
15075 des_cbc_encrypt ();
15077 return 0;
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest$ac_exeext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_cv_lib_des425_des_cbc_encrypt=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_lib_des425_des_cbc_encrypt=no
15099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15102 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15103 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15104 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_LIBDES425 1
15107 _ACEOF
15109 LIBS="-ldes425 $LIBS"
15111 else
15113 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15114 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15115 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118 ac_check_lib_save_LIBS=$LIBS
15119 LIBS="-ldes $LIBS"
15120 cat >conftest.$ac_ext <<_ACEOF
15121 #line $LINENO "configure"
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 /* Override any gcc2 internal prototype to avoid an error. */
15129 #ifdef __cplusplus
15130 extern "C"
15131 #endif
15132 /* We use char because int might match the return type of a gcc2
15133 builtin and then its argument prototype would still apply. */
15134 char des_cbc_encrypt ();
15136 main ()
15138 des_cbc_encrypt ();
15140 return 0;
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15145 (eval $ac_link) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -s conftest$ac_exeext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_cv_lib_des_des_cbc_encrypt=yes
15156 else
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_cv_lib_des_des_cbc_encrypt=no
15162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15163 LIBS=$ac_check_lib_save_LIBS
15165 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15166 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15167 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_LIBDES 1
15170 _ACEOF
15172 LIBS="-ldes $LIBS"
15179 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15180 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15181 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184 ac_check_lib_save_LIBS=$LIBS
15185 LIBS="-lkrb4 $LIBS"
15186 cat >conftest.$ac_ext <<_ACEOF
15187 #line $LINENO "configure"
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any gcc2 internal prototype to avoid an error. */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15200 char krb_get_cred ();
15202 main ()
15204 krb_get_cred ();
15206 return 0;
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_lib_krb4_krb_get_cred=yes
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_cv_lib_krb4_krb_get_cred=no
15228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15232 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15233 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_LIBKRB4 1
15236 _ACEOF
15238 LIBS="-lkrb4 $LIBS"
15240 else
15242 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15243 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15244 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247 ac_check_lib_save_LIBS=$LIBS
15248 LIBS="-lkrb $LIBS"
15249 cat >conftest.$ac_ext <<_ACEOF
15250 #line $LINENO "configure"
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any gcc2 internal prototype to avoid an error. */
15258 #ifdef __cplusplus
15259 extern "C"
15260 #endif
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15263 char krb_get_cred ();
15265 main ()
15267 krb_get_cred ();
15269 return 0;
15271 _ACEOF
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15274 (eval $ac_link) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } &&
15278 { ac_try='test -s conftest$ac_exeext'
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_cv_lib_krb_krb_get_cred=yes
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_cv_lib_krb_krb_get_cred=no
15291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15294 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15295 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15296 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_LIBKRB 1
15299 _ACEOF
15301 LIBS="-lkrb $LIBS"
15309 if test "${with_kerberos5+set}" = set; then
15311 for ac_header in krb5.h
15313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15315 echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15322 else
15323 # Is the header compilable?
15324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15326 cat >conftest.$ac_ext <<_ACEOF
15327 #line $LINENO "configure"
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 $ac_includes_default
15334 #include <$ac_header>
15335 _ACEOF
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15355 rm -f conftest.$ac_objext conftest.$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 /* confdefs.h. */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 #include <$ac_header>
15370 _ACEOF
15371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } >/dev/null; then
15379 if test -s conftest.err; then
15380 ac_cpp_err=$ac_c_preproc_warn_flag
15381 else
15382 ac_cpp_err=
15384 else
15385 ac_cpp_err=yes
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_preproc=no
15395 rm -f conftest.err conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc in
15401 yes:no )
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15407 cat <<\_ASBOX
15408 ## ------------------------------------ ##
15409 ## Report this to bug-autoconf@gnu.org. ##
15410 ## ------------------------------------ ##
15411 _ASBOX
15413 sed "s/^/$as_me: WARNING: /" >&2
15415 no:yes )
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15423 cat <<\_ASBOX
15424 ## ------------------------------------ ##
15425 ## Report this to bug-autoconf@gnu.org. ##
15426 ## ------------------------------------ ##
15427 _ASBOX
15429 sed "s/^/$as_me: WARNING: /" >&2
15431 esac
15432 echo "$as_me:$LINENO: checking for $ac_header" >&5
15433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437 eval "$as_ac_Header=$ac_header_preproc"
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15444 cat >>confdefs.h <<_ACEOF
15445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15446 _ACEOF
15450 done
15452 else
15454 for ac_header in des.h
15456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15458 echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465 else
15466 # Is the header compilable?
15467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15470 #line $LINENO "configure"
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15491 ac_header_compiler=yes
15492 else
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_header_compiler=no
15498 rm -f conftest.$ac_objext conftest.$ac_ext
15499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15500 echo "${ECHO_T}$ac_header_compiler" >&6
15502 # Is the header present?
15503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15505 cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15507 /* confdefs.h. */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 #include <$ac_header>
15513 _ACEOF
15514 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15516 ac_status=$?
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } >/dev/null; then
15522 if test -s conftest.err; then
15523 ac_cpp_err=$ac_c_preproc_warn_flag
15524 else
15525 ac_cpp_err=
15527 else
15528 ac_cpp_err=yes
15530 if test -z "$ac_cpp_err"; then
15531 ac_header_preproc=yes
15532 else
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_header_preproc=no
15538 rm -f conftest.err conftest.$ac_ext
15539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540 echo "${ECHO_T}$ac_header_preproc" >&6
15542 # So? What about this header?
15543 case $ac_header_compiler:$ac_header_preproc in
15544 yes:no )
15545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15550 cat <<\_ASBOX
15551 ## ------------------------------------ ##
15552 ## Report this to bug-autoconf@gnu.org. ##
15553 ## ------------------------------------ ##
15554 _ASBOX
15556 sed "s/^/$as_me: WARNING: /" >&2
15558 no:yes )
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15566 cat <<\_ASBOX
15567 ## ------------------------------------ ##
15568 ## Report this to bug-autoconf@gnu.org. ##
15569 ## ------------------------------------ ##
15570 _ASBOX
15572 sed "s/^/$as_me: WARNING: /" >&2
15574 esac
15575 echo "$as_me:$LINENO: checking for $ac_header" >&5
15576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580 eval "$as_ac_Header=$ac_header_preproc"
15582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15589 _ACEOF
15591 else
15593 for ac_header in kerberosIV/des.h
15595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15604 else
15605 # Is the header compilable?
15606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15608 cat >conftest.$ac_ext <<_ACEOF
15609 #line $LINENO "configure"
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 $ac_includes_default
15616 #include <$ac_header>
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -s conftest.$ac_objext'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; }; then
15630 ac_header_compiler=yes
15631 else
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_compiler=no
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15639 echo "${ECHO_T}$ac_header_compiler" >&6
15641 # Is the header present?
15642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <$ac_header>
15652 _ACEOF
15653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 else
15664 ac_cpp_err=
15666 else
15667 ac_cpp_err=yes
15669 if test -z "$ac_cpp_err"; then
15670 ac_header_preproc=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_header_preproc=no
15677 rm -f conftest.err conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15679 echo "${ECHO_T}$ac_header_preproc" >&6
15681 # So? What about this header?
15682 case $ac_header_compiler:$ac_header_preproc in
15683 yes:no )
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15689 cat <<\_ASBOX
15690 ## ------------------------------------ ##
15691 ## Report this to bug-autoconf@gnu.org. ##
15692 ## ------------------------------------ ##
15693 _ASBOX
15695 sed "s/^/$as_me: WARNING: /" >&2
15697 no:yes )
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15705 cat <<\_ASBOX
15706 ## ------------------------------------ ##
15707 ## Report this to bug-autoconf@gnu.org. ##
15708 ## ------------------------------------ ##
15709 _ASBOX
15711 sed "s/^/$as_me: WARNING: /" >&2
15713 esac
15714 echo "$as_me:$LINENO: checking for $ac_header" >&5
15715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 eval "$as_ac_Header=$ac_header_preproc"
15721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15728 _ACEOF
15730 else
15732 for ac_header in kerberos/des.h
15734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15736 echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15743 else
15744 # Is the header compilable?
15745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15747 cat >conftest.$ac_ext <<_ACEOF
15748 #line $LINENO "configure"
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15756 _ACEOF
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_header_compiler=yes
15770 else
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15776 rm -f conftest.$ac_objext conftest.$ac_ext
15777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778 echo "${ECHO_T}$ac_header_compiler" >&6
15780 # Is the header present?
15781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <$ac_header>
15791 _ACEOF
15792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15794 ac_status=$?
15795 grep -v '^ *+' conftest.er1 >conftest.err
15796 rm -f conftest.er1
15797 cat conftest.err >&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); } >/dev/null; then
15800 if test -s conftest.err; then
15801 ac_cpp_err=$ac_c_preproc_warn_flag
15802 else
15803 ac_cpp_err=
15805 else
15806 ac_cpp_err=yes
15808 if test -z "$ac_cpp_err"; then
15809 ac_header_preproc=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_preproc=no
15816 rm -f conftest.err conftest.$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc in
15822 yes:no )
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15828 cat <<\_ASBOX
15829 ## ------------------------------------ ##
15830 ## Report this to bug-autoconf@gnu.org. ##
15831 ## ------------------------------------ ##
15832 _ASBOX
15834 sed "s/^/$as_me: WARNING: /" >&2
15836 no:yes )
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15844 cat <<\_ASBOX
15845 ## ------------------------------------ ##
15846 ## Report this to bug-autoconf@gnu.org. ##
15847 ## ------------------------------------ ##
15848 _ASBOX
15850 sed "s/^/$as_me: WARNING: /" >&2
15852 esac
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
15857 else
15858 eval "$as_ac_Header=$ac_header_preproc"
15860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15865 cat >>confdefs.h <<_ACEOF
15866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 _ACEOF
15871 done
15875 done
15879 done
15882 for ac_header in krb.h
15884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15886 echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15893 else
15894 # Is the header compilable?
15895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15897 cat >conftest.$ac_ext <<_ACEOF
15898 #line $LINENO "configure"
15899 /* confdefs.h. */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 $ac_includes_default
15905 #include <$ac_header>
15906 _ACEOF
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_header_compiler=yes
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_compiler=no
15926 rm -f conftest.$ac_objext conftest.$ac_ext
15927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15928 echo "${ECHO_T}$ac_header_compiler" >&6
15930 # Is the header present?
15931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15934 #line $LINENO "configure"
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15940 #include <$ac_header>
15941 _ACEOF
15942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 else
15953 ac_cpp_err=
15955 else
15956 ac_cpp_err=yes
15958 if test -z "$ac_cpp_err"; then
15959 ac_header_preproc=yes
15960 else
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 ac_header_preproc=no
15966 rm -f conftest.err conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15968 echo "${ECHO_T}$ac_header_preproc" >&6
15970 # So? What about this header?
15971 case $ac_header_compiler:$ac_header_preproc in
15972 yes:no )
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15978 cat <<\_ASBOX
15979 ## ------------------------------------ ##
15980 ## Report this to bug-autoconf@gnu.org. ##
15981 ## ------------------------------------ ##
15982 _ASBOX
15984 sed "s/^/$as_me: WARNING: /" >&2
15986 no:yes )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15994 cat <<\_ASBOX
15995 ## ------------------------------------ ##
15996 ## Report this to bug-autoconf@gnu.org. ##
15997 ## ------------------------------------ ##
15998 _ASBOX
16000 sed "s/^/$as_me: WARNING: /" >&2
16002 esac
16003 echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 eval "$as_ac_Header=$ac_header_preproc"
16010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 _ACEOF
16019 else
16021 for ac_header in kerberosIV/krb.h
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16025 echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16032 else
16033 # Is the header compilable?
16034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_header_compiler=no
16065 rm -f conftest.$ac_objext conftest.$ac_ext
16066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16067 echo "${ECHO_T}$ac_header_compiler" >&6
16069 # Is the header present?
16070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16072 cat >conftest.$ac_ext <<_ACEOF
16073 #line $LINENO "configure"
16074 /* confdefs.h. */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <$ac_header>
16080 _ACEOF
16081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev/null; then
16089 if test -s conftest.err; then
16090 ac_cpp_err=$ac_c_preproc_warn_flag
16091 else
16092 ac_cpp_err=
16094 else
16095 ac_cpp_err=yes
16097 if test -z "$ac_cpp_err"; then
16098 ac_header_preproc=yes
16099 else
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_preproc=no
16105 rm -f conftest.err conftest.$ac_ext
16106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16107 echo "${ECHO_T}$ac_header_preproc" >&6
16109 # So? What about this header?
16110 case $ac_header_compiler:$ac_header_preproc in
16111 yes:no )
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 cat <<\_ASBOX
16118 ## ------------------------------------ ##
16119 ## Report this to bug-autoconf@gnu.org. ##
16120 ## ------------------------------------ ##
16121 _ASBOX
16123 sed "s/^/$as_me: WARNING: /" >&2
16125 no:yes )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16133 cat <<\_ASBOX
16134 ## ------------------------------------ ##
16135 ## Report this to bug-autoconf@gnu.org. ##
16136 ## ------------------------------------ ##
16137 _ASBOX
16139 sed "s/^/$as_me: WARNING: /" >&2
16141 esac
16142 echo "$as_me:$LINENO: checking for $ac_header" >&5
16143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147 eval "$as_ac_Header=$ac_header_preproc"
16149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16154 cat >>confdefs.h <<_ACEOF
16155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16156 _ACEOF
16158 else
16160 for ac_header in kerberos/krb.h
16162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16164 echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16171 else
16172 # Is the header compilable?
16173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16175 cat >conftest.$ac_ext <<_ACEOF
16176 #line $LINENO "configure"
16177 /* confdefs.h. */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16183 #include <$ac_header>
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16187 (eval $ac_compile) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ac_header_compiler=yes
16198 else
16199 echo "$as_me: failed program was:" >&5
16200 sed 's/^/| /' conftest.$ac_ext >&5
16202 ac_header_compiler=no
16204 rm -f conftest.$ac_objext conftest.$ac_ext
16205 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16206 echo "${ECHO_T}$ac_header_compiler" >&6
16208 # Is the header present?
16209 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16211 cat >conftest.$ac_ext <<_ACEOF
16212 #line $LINENO "configure"
16213 /* confdefs.h. */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <$ac_header>
16219 _ACEOF
16220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } >/dev/null; then
16228 if test -s conftest.err; then
16229 ac_cpp_err=$ac_c_preproc_warn_flag
16230 else
16231 ac_cpp_err=
16233 else
16234 ac_cpp_err=yes
16236 if test -z "$ac_cpp_err"; then
16237 ac_header_preproc=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_preproc=no
16244 rm -f conftest.err conftest.$ac_ext
16245 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16246 echo "${ECHO_T}$ac_header_preproc" >&6
16248 # So? What about this header?
16249 case $ac_header_compiler:$ac_header_preproc in
16250 yes:no )
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16256 cat <<\_ASBOX
16257 ## ------------------------------------ ##
16258 ## Report this to bug-autoconf@gnu.org. ##
16259 ## ------------------------------------ ##
16260 _ASBOX
16262 sed "s/^/$as_me: WARNING: /" >&2
16264 no:yes )
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16272 cat <<\_ASBOX
16273 ## ------------------------------------ ##
16274 ## Report this to bug-autoconf@gnu.org. ##
16275 ## ------------------------------------ ##
16276 _ASBOX
16278 sed "s/^/$as_me: WARNING: /" >&2
16280 esac
16281 echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 else
16286 eval "$as_ac_Header=$ac_header_preproc"
16288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16293 cat >>confdefs.h <<_ACEOF
16294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16295 _ACEOF
16299 done
16303 done
16307 done
16311 for ac_header in com_err.h
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16315 echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322 else
16323 # Is the header compilable?
16324 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16326 cat >conftest.$ac_ext <<_ACEOF
16327 #line $LINENO "configure"
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>&5
16339 ac_status=$?
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_header_compiler=yes
16349 else
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16355 rm -f conftest.$ac_objext conftest.$ac_ext
16356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16357 echo "${ECHO_T}$ac_header_compiler" >&6
16359 # Is the header present?
16360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16363 #line $LINENO "configure"
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 #include <$ac_header>
16370 _ACEOF
16371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16373 ac_status=$?
16374 grep -v '^ *+' conftest.er1 >conftest.err
16375 rm -f conftest.er1
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } >/dev/null; then
16379 if test -s conftest.err; then
16380 ac_cpp_err=$ac_c_preproc_warn_flag
16381 else
16382 ac_cpp_err=
16384 else
16385 ac_cpp_err=yes
16387 if test -z "$ac_cpp_err"; then
16388 ac_header_preproc=yes
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_header_preproc=no
16395 rm -f conftest.err conftest.$ac_ext
16396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16397 echo "${ECHO_T}$ac_header_preproc" >&6
16399 # So? What about this header?
16400 case $ac_header_compiler:$ac_header_preproc in
16401 yes:no )
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407 cat <<\_ASBOX
16408 ## ------------------------------------ ##
16409 ## Report this to bug-autoconf@gnu.org. ##
16410 ## ------------------------------------ ##
16411 _ASBOX
16413 sed "s/^/$as_me: WARNING: /" >&2
16415 no:yes )
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16423 cat <<\_ASBOX
16424 ## ------------------------------------ ##
16425 ## Report this to bug-autoconf@gnu.org. ##
16426 ## ------------------------------------ ##
16427 _ASBOX
16429 sed "s/^/$as_me: WARNING: /" >&2
16431 esac
16432 echo "$as_me:$LINENO: checking for $ac_header" >&5
16433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437 eval "$as_ac_Header=$ac_header_preproc"
16439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16444 cat >>confdefs.h <<_ACEOF
16445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16446 _ACEOF
16450 done
16454 # Solaris requires -lintl if you want strerror (which calls dgettext)
16455 # to return localized messages.
16457 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16458 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16459 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462 ac_check_lib_save_LIBS=$LIBS
16463 LIBS="-lintl $LIBS"
16464 cat >conftest.$ac_ext <<_ACEOF
16465 #line $LINENO "configure"
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16472 /* Override any gcc2 internal prototype to avoid an error. */
16473 #ifdef __cplusplus
16474 extern "C"
16475 #endif
16476 /* We use char because int might match the return type of a gcc2
16477 builtin and then its argument prototype would still apply. */
16478 char dgettext ();
16480 main ()
16482 dgettext ();
16484 return 0;
16486 _ACEOF
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489 (eval $ac_link) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_lib_intl_dgettext=yes
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16504 ac_cv_lib_intl_dgettext=no
16506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16509 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16510 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16511 if test $ac_cv_lib_intl_dgettext = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_LIBINTL 1
16514 _ACEOF
16516 LIBS="-lintl $LIBS"
16521 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16522 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16523 if test "${emacs_cv_localtime_cache+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 if test x$ac_cv_func_tzset = xyes; then
16527 if test "$cross_compiling" = yes; then
16528 # If we have tzset, assume the worst when cross-compiling.
16529 emacs_cv_localtime_cache=yes
16530 else
16531 cat >conftest.$ac_ext <<_ACEOF
16532 #line $LINENO "configure"
16533 /* confdefs.h. */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 #include <time.h>
16539 extern char **environ;
16540 unset_TZ ()
16542 char **from, **to;
16543 for (to = from = environ; (*to = *from); from++)
16544 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16545 to++;
16547 char TZ_GMT0[] = "TZ=GMT0";
16548 char TZ_PST8[] = "TZ=PST8";
16549 main()
16551 time_t now = time ((time_t *) 0);
16552 int hour_GMT0, hour_unset;
16553 if (putenv (TZ_GMT0) != 0)
16554 exit (1);
16555 hour_GMT0 = localtime (&now)->tm_hour;
16556 unset_TZ ();
16557 hour_unset = localtime (&now)->tm_hour;
16558 if (putenv (TZ_PST8) != 0)
16559 exit (1);
16560 if (localtime (&now)->tm_hour == hour_GMT0)
16561 exit (1);
16562 unset_TZ ();
16563 if (localtime (&now)->tm_hour != hour_unset)
16564 exit (1);
16565 exit (0);
16567 _ACEOF
16568 rm -f conftest$ac_exeext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16570 (eval $ac_link) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 emacs_cv_localtime_cache=no
16580 else
16581 echo "$as_me: program exited with status $ac_status" >&5
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ( exit $ac_status )
16586 emacs_cv_localtime_cache=yes
16588 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16590 else
16591 # If we lack tzset, report that localtime does not cache TZ,
16592 # since we can't invalidate the cache if we don't have tzset.
16593 emacs_cv_localtime_cache=no
16596 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16597 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16598 if test $emacs_cv_localtime_cache = yes; then
16600 cat >>confdefs.h <<\_ACEOF
16601 #define LOCALTIME_CACHE 1
16602 _ACEOF
16606 if test "x$HAVE_TIMEVAL" = xyes; then
16608 for ac_func in gettimeofday
16610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611 echo "$as_me:$LINENO: checking for $ac_func" >&5
16612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16613 if eval "test \"\${$as_ac_var+set}\" = set"; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616 cat >conftest.$ac_ext <<_ACEOF
16617 #line $LINENO "configure"
16618 /* confdefs.h. */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 /* System header to define __stub macros and hopefully few prototypes,
16624 which can conflict with char $ac_func (); below.
16625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16626 <limits.h> exists even on freestanding compilers. */
16627 #ifdef __STDC__
16628 # include <limits.h>
16629 #else
16630 # include <assert.h>
16631 #endif
16632 /* Override any gcc2 internal prototype to avoid an error. */
16633 #ifdef __cplusplus
16634 extern "C"
16636 #endif
16637 /* We use char because int might match the return type of a gcc2
16638 builtin and then its argument prototype would still apply. */
16639 char $ac_func ();
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16644 choke me
16645 #else
16646 char (*f) () = $ac_func;
16647 #endif
16648 #ifdef __cplusplus
16650 #endif
16653 main ()
16655 return f != $ac_func;
16657 return 0;
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662 (eval $ac_link) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 eval "$as_ac_var=yes"
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 eval "$as_ac_var=no"
16679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16686 _ACEOF
16689 done
16691 if test $ac_cv_func_gettimeofday = yes; then
16692 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16693 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16694 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697 cat >conftest.$ac_ext <<_ACEOF
16698 #line $LINENO "configure"
16699 /* confdefs.h. */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16705 #ifdef TIME_WITH_SYS_TIME
16706 #include <sys/time.h>
16707 #include <time.h>
16708 #else
16709 #ifdef HAVE_SYS_TIME_H
16710 #include <sys/time.h>
16711 #else
16712 #include <time.h>
16713 #endif
16714 #endif
16716 main ()
16718 struct timeval time;
16719 gettimeofday (&time, 0);
16721 return 0;
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 emacs_cv_gettimeofday_two_arguments=yes
16737 else
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 emacs_cv_gettimeofday_two_arguments=no
16743 rm -f conftest.$ac_objext conftest.$ac_ext
16745 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16746 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16747 if test $emacs_cv_gettimeofday_two_arguments = no; then
16749 cat >>confdefs.h <<\_ACEOF
16750 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16751 _ACEOF
16757 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16758 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16759 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16760 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 #include <sys/types.h>
16771 #include <$ac_cv_struct_tm>
16775 main ()
16777 static struct tm ac_aggr;
16778 if (ac_aggr.tm_zone)
16779 return 0;
16781 return 0;
16783 _ACEOF
16784 rm -f conftest.$ac_objext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16786 (eval $ac_compile) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ac_cv_member_struct_tm_tm_zone=yes
16797 else
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16801 cat >conftest.$ac_ext <<_ACEOF
16802 #line $LINENO "configure"
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/types.h>
16809 #include <$ac_cv_struct_tm>
16813 main ()
16815 static struct tm ac_aggr;
16816 if (sizeof ac_aggr.tm_zone)
16817 return 0;
16819 return 0;
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16824 (eval $ac_compile) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -s conftest.$ac_objext'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_cv_member_struct_tm_tm_zone=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_member_struct_tm_tm_zone=no
16841 rm -f conftest.$ac_objext conftest.$ac_ext
16843 rm -f conftest.$ac_objext conftest.$ac_ext
16845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16846 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16847 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define HAVE_STRUCT_TM_TM_ZONE 1
16851 _ACEOF
16856 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16858 cat >>confdefs.h <<\_ACEOF
16859 #define HAVE_TM_ZONE 1
16860 _ACEOF
16862 else
16863 echo "$as_me:$LINENO: checking for tzname" >&5
16864 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16865 if test "${ac_cv_var_tzname+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868 cat >conftest.$ac_ext <<_ACEOF
16869 #line $LINENO "configure"
16870 /* confdefs.h. */
16871 _ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16875 #include <time.h>
16876 #ifndef tzname /* For SGI. */
16877 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16878 #endif
16881 main ()
16883 atoi(*tzname);
16885 return 0;
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16890 (eval $ac_link) 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -s conftest$ac_exeext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_var_tzname=yes
16901 else
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ac_cv_var_tzname=no
16907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16910 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16911 if test $ac_cv_var_tzname = yes; then
16913 cat >>confdefs.h <<\_ACEOF
16914 #define HAVE_TZNAME 1
16915 _ACEOF
16921 if test "$ac_cv_func_gettimeofday" = yes; then
16922 echo "$as_me:$LINENO: checking for struct timezone" >&5
16923 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16924 if test "${emacs_cv_struct_timezone+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 else
16927 cat >conftest.$ac_ext <<_ACEOF
16928 #line $LINENO "configure"
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934 #include <sys/time.h>
16936 main ()
16938 struct timezone tz;
16940 return 0;
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16945 (eval $ac_compile) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 if test "$cross_compiling" = yes; then
16956 emacs_cv_struct_timezone=yes
16957 else
16958 cat >conftest.$ac_ext <<_ACEOF
16959 #line $LINENO "configure"
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 #ifdef TIME_WITH_SYS_TIME
16967 #include <sys/time.h>
16968 #include <time.h>
16969 #else
16970 #ifdef HAVE_SYS_TIME_H
16971 #include <sys/time.h>
16972 #else
16973 #include <time.h>
16974 #endif
16975 #endif
16976 main () {
16977 struct timeval time;
16978 struct timezone dummy;
16979 exit (gettimeofday (&time, &dummy));
16981 _ACEOF
16982 rm -f conftest$ac_exeext
16983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16984 (eval $ac_link) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
16993 emacs_cv_struct_timezone=yes
16994 else
16995 echo "$as_me: program exited with status $ac_status" >&5
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ( exit $ac_status )
17000 emacs_cv_struct_timezone=no
17002 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 emacs_cv_struct_timezone=no
17010 rm -f conftest.$ac_objext conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17013 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17016 ok_so_far=yes
17017 echo "$as_me:$LINENO: checking for socket" >&5
17018 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17019 if test "${ac_cv_func_socket+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 #line $LINENO "configure"
17024 /* confdefs.h. */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17029 /* System header to define __stub macros and hopefully few prototypes,
17030 which can conflict with char socket (); below.
17031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17032 <limits.h> exists even on freestanding compilers. */
17033 #ifdef __STDC__
17034 # include <limits.h>
17035 #else
17036 # include <assert.h>
17037 #endif
17038 /* Override any gcc2 internal prototype to avoid an error. */
17039 #ifdef __cplusplus
17040 extern "C"
17042 #endif
17043 /* We use char because int might match the return type of a gcc2
17044 builtin and then its argument prototype would still apply. */
17045 char socket ();
17046 /* The GNU C library defines this for functions which it implements
17047 to always fail with ENOSYS. Some functions are actually named
17048 something starting with __ and the normal name is an alias. */
17049 #if defined (__stub_socket) || defined (__stub___socket)
17050 choke me
17051 #else
17052 char (*f) () = socket;
17053 #endif
17054 #ifdef __cplusplus
17056 #endif
17059 main ()
17061 return f != socket;
17063 return 0;
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17068 (eval $ac_link) 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -s conftest$ac_exeext'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_func_socket=yes
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_cv_func_socket=no
17085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17087 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17088 echo "${ECHO_T}$ac_cv_func_socket" >&6
17089 if test $ac_cv_func_socket = yes; then
17091 else
17092 ok_so_far=no
17095 if test $ok_so_far = yes; then
17096 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17097 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17098 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17099 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17102 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17103 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17104 else
17105 # Is the header compilable?
17106 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17107 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17108 cat >conftest.$ac_ext <<_ACEOF
17109 #line $LINENO "configure"
17110 /* confdefs.h. */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 $ac_includes_default
17116 #include <netinet/in.h>
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -s conftest.$ac_objext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17127 ac_status=$?
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17130 ac_header_compiler=yes
17131 else
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ac_header_compiler=no
17137 rm -f conftest.$ac_objext conftest.$ac_ext
17138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17139 echo "${ECHO_T}$ac_header_compiler" >&6
17141 # Is the header present?
17142 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17143 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17145 #line $LINENO "configure"
17146 /* confdefs.h. */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h. */
17151 #include <netinet/in.h>
17152 _ACEOF
17153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } >/dev/null; then
17161 if test -s conftest.err; then
17162 ac_cpp_err=$ac_c_preproc_warn_flag
17163 else
17164 ac_cpp_err=
17166 else
17167 ac_cpp_err=yes
17169 if test -z "$ac_cpp_err"; then
17170 ac_header_preproc=yes
17171 else
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_header_preproc=no
17177 rm -f conftest.err conftest.$ac_ext
17178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17179 echo "${ECHO_T}$ac_header_preproc" >&6
17181 # So? What about this header?
17182 case $ac_header_compiler:$ac_header_preproc in
17183 yes:no )
17184 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17185 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17187 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17189 cat <<\_ASBOX
17190 ## ------------------------------------ ##
17191 ## Report this to bug-autoconf@gnu.org. ##
17192 ## ------------------------------------ ##
17193 _ASBOX
17195 sed "s/^/$as_me: WARNING: /" >&2
17197 no:yes )
17198 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17199 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17201 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17203 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17205 cat <<\_ASBOX
17206 ## ------------------------------------ ##
17207 ## Report this to bug-autoconf@gnu.org. ##
17208 ## ------------------------------------ ##
17209 _ASBOX
17211 sed "s/^/$as_me: WARNING: /" >&2
17213 esac
17214 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17215 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17216 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219 ac_cv_header_netinet_in_h=$ac_header_preproc
17221 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17222 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17225 if test $ac_cv_header_netinet_in_h = yes; then
17227 else
17228 ok_so_far=no
17233 if test $ok_so_far = yes; then
17234 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17235 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17236 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17237 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17241 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17242 else
17243 # Is the header compilable?
17244 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17245 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17246 cat >conftest.$ac_ext <<_ACEOF
17247 #line $LINENO "configure"
17248 /* confdefs.h. */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 $ac_includes_default
17254 #include <arpa/inet.h>
17255 _ACEOF
17256 rm -f conftest.$ac_objext
17257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17258 (eval $ac_compile) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_header_compiler=yes
17269 else
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_header_compiler=no
17275 rm -f conftest.$ac_objext conftest.$ac_ext
17276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6
17279 # Is the header present?
17280 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17281 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17282 cat >conftest.$ac_ext <<_ACEOF
17283 #line $LINENO "configure"
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #include <arpa/inet.h>
17290 _ACEOF
17291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17293 ac_status=$?
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } >/dev/null; then
17299 if test -s conftest.err; then
17300 ac_cpp_err=$ac_c_preproc_warn_flag
17301 else
17302 ac_cpp_err=
17304 else
17305 ac_cpp_err=yes
17307 if test -z "$ac_cpp_err"; then
17308 ac_header_preproc=yes
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17313 ac_header_preproc=no
17315 rm -f conftest.err conftest.$ac_ext
17316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17317 echo "${ECHO_T}$ac_header_preproc" >&6
17319 # So? What about this header?
17320 case $ac_header_compiler:$ac_header_preproc in
17321 yes:no )
17322 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17323 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17325 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17327 cat <<\_ASBOX
17328 ## ------------------------------------ ##
17329 ## Report this to bug-autoconf@gnu.org. ##
17330 ## ------------------------------------ ##
17331 _ASBOX
17333 sed "s/^/$as_me: WARNING: /" >&2
17335 no:yes )
17336 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17337 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17339 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17341 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17343 cat <<\_ASBOX
17344 ## ------------------------------------ ##
17345 ## Report this to bug-autoconf@gnu.org. ##
17346 ## ------------------------------------ ##
17347 _ASBOX
17349 sed "s/^/$as_me: WARNING: /" >&2
17351 esac
17352 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17353 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17354 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357 ac_cv_header_arpa_inet_h=$ac_header_preproc
17359 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17360 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17363 if test $ac_cv_header_arpa_inet_h = yes; then
17365 else
17366 ok_so_far=no
17371 if test $ok_so_far = yes; then
17373 cat >>confdefs.h <<\_ACEOF
17374 #define HAVE_INET_SOCKETS 1
17375 _ACEOF
17379 if test -f /usr/lpp/X11/bin/smt.exp; then
17381 cat >>confdefs.h <<\_ACEOF
17382 #define HAVE_AIX_SMT_EXP 1
17383 _ACEOF
17387 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17388 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17389 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17390 echo "$as_me:$LINENO: result: yes" >&5
17391 echo "${ECHO_T}yes" >&6
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_DEV_PTMX 1
17395 _ACEOF
17397 else
17398 echo "$as_me:$LINENO: result: no" >&5
17399 echo "${ECHO_T}no" >&6
17402 echo "$as_me:$LINENO: checking for pid_t" >&5
17403 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17404 if test "${ac_cv_type_pid_t+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407 cat >conftest.$ac_ext <<_ACEOF
17408 #line $LINENO "configure"
17409 /* confdefs.h. */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17416 main ()
17418 if ((pid_t *) 0)
17419 return 0;
17420 if (sizeof (pid_t))
17421 return 0;
17423 return 0;
17425 _ACEOF
17426 rm -f conftest.$ac_objext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17428 (eval $ac_compile) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_type_pid_t=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_type_pid_t=no
17445 rm -f conftest.$ac_objext conftest.$ac_ext
17447 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17448 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17449 if test $ac_cv_type_pid_t = yes; then
17451 else
17453 cat >>confdefs.h <<_ACEOF
17454 #define pid_t int
17455 _ACEOF
17461 for ac_header in unistd.h vfork.h
17463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17465 echo "$as_me:$LINENO: checking for $ac_header" >&5
17466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17472 else
17473 # Is the header compilable?
17474 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 #include <$ac_header>
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_header_compiler=yes
17499 else
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 ac_header_compiler=no
17505 rm -f conftest.$ac_objext conftest.$ac_ext
17506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17507 echo "${ECHO_T}$ac_header_compiler" >&6
17509 # Is the header present?
17510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17512 cat >conftest.$ac_ext <<_ACEOF
17513 #line $LINENO "configure"
17514 /* confdefs.h. */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 #include <$ac_header>
17520 _ACEOF
17521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17523 ac_status=$?
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } >/dev/null; then
17529 if test -s conftest.err; then
17530 ac_cpp_err=$ac_c_preproc_warn_flag
17531 else
17532 ac_cpp_err=
17534 else
17535 ac_cpp_err=yes
17537 if test -z "$ac_cpp_err"; then
17538 ac_header_preproc=yes
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_header_preproc=no
17545 rm -f conftest.err conftest.$ac_ext
17546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17547 echo "${ECHO_T}$ac_header_preproc" >&6
17549 # So? What about this header?
17550 case $ac_header_compiler:$ac_header_preproc in
17551 yes:no )
17552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17557 cat <<\_ASBOX
17558 ## ------------------------------------ ##
17559 ## Report this to bug-autoconf@gnu.org. ##
17560 ## ------------------------------------ ##
17561 _ASBOX
17563 sed "s/^/$as_me: WARNING: /" >&2
17565 no:yes )
17566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17573 cat <<\_ASBOX
17574 ## ------------------------------------ ##
17575 ## Report this to bug-autoconf@gnu.org. ##
17576 ## ------------------------------------ ##
17577 _ASBOX
17579 sed "s/^/$as_me: WARNING: /" >&2
17581 esac
17582 echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587 eval "$as_ac_Header=$ac_header_preproc"
17589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17594 cat >>confdefs.h <<_ACEOF
17595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17596 _ACEOF
17600 done
17604 for ac_func in fork vfork
17606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17607 echo "$as_me:$LINENO: checking for $ac_func" >&5
17608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17609 if eval "test \"\${$as_ac_var+set}\" = set"; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612 cat >conftest.$ac_ext <<_ACEOF
17613 #line $LINENO "configure"
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 /* System header to define __stub macros and hopefully few prototypes,
17620 which can conflict with char $ac_func (); below.
17621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17622 <limits.h> exists even on freestanding compilers. */
17623 #ifdef __STDC__
17624 # include <limits.h>
17625 #else
17626 # include <assert.h>
17627 #endif
17628 /* Override any gcc2 internal prototype to avoid an error. */
17629 #ifdef __cplusplus
17630 extern "C"
17632 #endif
17633 /* We use char because int might match the return type of a gcc2
17634 builtin and then its argument prototype would still apply. */
17635 char $ac_func ();
17636 /* The GNU C library defines this for functions which it implements
17637 to always fail with ENOSYS. Some functions are actually named
17638 something starting with __ and the normal name is an alias. */
17639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17640 choke me
17641 #else
17642 char (*f) () = $ac_func;
17643 #endif
17644 #ifdef __cplusplus
17646 #endif
17649 main ()
17651 return f != $ac_func;
17653 return 0;
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658 (eval $ac_link) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 eval "$as_ac_var=no"
17675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17682 _ACEOF
17685 done
17687 if test "x$ac_cv_func_fork" = xyes; then
17688 echo "$as_me:$LINENO: checking for working fork" >&5
17689 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17690 if test "${ac_cv_func_fork_works+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693 if test "$cross_compiling" = yes; then
17694 ac_cv_func_fork_works=cross
17695 else
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* By Ruediger Kuhlmann. */
17698 #include <sys/types.h>
17699 #if HAVE_UNISTD_H
17700 # include <unistd.h>
17701 #endif
17702 /* Some systems only have a dummy stub for fork() */
17703 int main ()
17705 if (fork() < 0)
17706 exit (1);
17707 exit (0);
17709 _ACEOF
17710 rm -f conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_func_fork_works=yes
17722 else
17723 echo "$as_me: program exited with status $ac_status" >&5
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ( exit $ac_status )
17728 ac_cv_func_fork_works=no
17730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17733 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17734 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17736 else
17737 ac_cv_func_fork_works=$ac_cv_func_fork
17739 if test "x$ac_cv_func_fork_works" = xcross; then
17740 case $host in
17741 *-*-amigaos* | *-*-msdosdjgpp*)
17742 # Override, as these systems have only a dummy fork() stub
17743 ac_cv_func_fork_works=no
17746 ac_cv_func_fork_works=yes
17748 esac
17749 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17750 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17752 ac_cv_func_vfork_works=$ac_cv_func_vfork
17753 if test "x$ac_cv_func_vfork" = xyes; then
17754 echo "$as_me:$LINENO: checking for working vfork" >&5
17755 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17756 if test "${ac_cv_func_vfork_works+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759 if test "$cross_compiling" = yes; then
17760 ac_cv_func_vfork_works=cross
17761 else
17762 cat >conftest.$ac_ext <<_ACEOF
17763 #line $LINENO "configure"
17764 /* confdefs.h. */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 /* Thanks to Paul Eggert for this test. */
17770 #include <stdio.h>
17771 #include <stdlib.h>
17772 #include <sys/types.h>
17773 #include <sys/stat.h>
17774 #include <sys/wait.h>
17775 #if HAVE_UNISTD_H
17776 # include <unistd.h>
17777 #endif
17778 #if HAVE_VFORK_H
17779 # include <vfork.h>
17780 #endif
17781 /* On some sparc systems, changes by the child to local and incoming
17782 argument registers are propagated back to the parent. The compiler
17783 is told about this with #include <vfork.h>, but some compilers
17784 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17785 static variable whose address is put into a register that is
17786 clobbered by the vfork. */
17787 static void
17788 #ifdef __cplusplus
17789 sparc_address_test (int arg)
17790 # else
17791 sparc_address_test (arg) int arg;
17792 #endif
17794 static pid_t child;
17795 if (!child) {
17796 child = vfork ();
17797 if (child < 0) {
17798 perror ("vfork");
17799 _exit(2);
17801 if (!child) {
17802 arg = getpid();
17803 write(-1, "", 0);
17804 _exit (arg);
17810 main ()
17812 pid_t parent = getpid ();
17813 pid_t child;
17815 sparc_address_test (0);
17817 child = vfork ();
17819 if (child == 0) {
17820 /* Here is another test for sparc vfork register problems. This
17821 test uses lots of local variables, at least as many local
17822 variables as main has allocated so far including compiler
17823 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17824 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17825 reuse the register of parent for one of the local variables,
17826 since it will think that parent can't possibly be used any more
17827 in this routine. Assigning to the local variable will thus
17828 munge parent in the parent process. */
17829 pid_t
17830 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17831 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17832 /* Convince the compiler that p..p7 are live; otherwise, it might
17833 use the same hardware register for all 8 local variables. */
17834 if (p != p1 || p != p2 || p != p3 || p != p4
17835 || p != p5 || p != p6 || p != p7)
17836 _exit(1);
17838 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17839 from child file descriptors. If the child closes a descriptor
17840 before it execs or exits, this munges the parent's descriptor
17841 as well. Test for this by closing stdout in the child. */
17842 _exit(close(fileno(stdout)) != 0);
17843 } else {
17844 int status;
17845 struct stat st;
17847 while (wait(&status) != child)
17849 exit(
17850 /* Was there some problem with vforking? */
17851 child < 0
17853 /* Did the child fail? (This shouldn't happen.) */
17854 || status
17856 /* Did the vfork/compiler bug occur? */
17857 || parent != getpid()
17859 /* Did the file descriptor bug occur? */
17860 || fstat(fileno(stdout), &st) != 0
17864 _ACEOF
17865 rm -f conftest$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_cv_func_vfork_works=yes
17877 else
17878 echo "$as_me: program exited with status $ac_status" >&5
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17882 ( exit $ac_status )
17883 ac_cv_func_vfork_works=no
17885 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17889 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17892 if test "x$ac_cv_func_fork_works" = xcross; then
17893 ac_cv_func_vfork_works=ac_cv_func_vfork
17894 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17895 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17898 if test "x$ac_cv_func_vfork_works" = xyes; then
17900 cat >>confdefs.h <<\_ACEOF
17901 #define HAVE_WORKING_VFORK 1
17902 _ACEOF
17904 else
17906 cat >>confdefs.h <<\_ACEOF
17907 #define vfork fork
17908 _ACEOF
17911 if test "x$ac_cv_func_fork_works" = xyes; then
17913 cat >>confdefs.h <<\_ACEOF
17914 #define HAVE_WORKING_FORK 1
17915 _ACEOF
17920 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17921 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17922 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924 else
17925 cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 #include <langinfo.h>
17934 main ()
17936 char* cs = nl_langinfo(CODESET);
17938 return 0;
17940 _ACEOF
17941 rm -f conftest.$ac_objext conftest$ac_exeext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -s conftest$ac_exeext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 emacs_cv_langinfo_codeset=yes
17954 else
17955 echo "$as_me: failed program was:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 emacs_cv_langinfo_codeset=no
17960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17963 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17964 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17965 if test $emacs_cv_langinfo_codeset = yes; then
17967 cat >>confdefs.h <<\_ACEOF
17968 #define HAVE_LANGINFO_CODESET 1
17969 _ACEOF
17973 echo "$as_me:$LINENO: checking for size_t" >&5
17974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17975 if test "${ac_cv_type_size_t+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 cat >conftest.$ac_ext <<_ACEOF
17979 #line $LINENO "configure"
17980 /* confdefs.h. */
17981 _ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 $ac_includes_default
17987 main ()
17989 if ((size_t *) 0)
17990 return 0;
17991 if (sizeof (size_t))
17992 return 0;
17994 return 0;
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17999 (eval $ac_compile) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_type_size_t=yes
18010 else
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_type_size_t=no
18016 rm -f conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18019 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18020 if test $ac_cv_type_size_t = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_SIZE_T 1
18024 _ACEOF
18030 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18031 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18032 if test "${ac_cv_type_mbstate_t+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 else
18035 cat >conftest.$ac_ext <<_ACEOF
18036 #line $LINENO "configure"
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 $ac_includes_default
18043 # include <wchar.h>
18045 main ()
18047 mbstate_t x; return sizeof x;
18049 return 0;
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } &&
18058 { ac_try='test -s conftest.$ac_objext'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 ac_cv_type_mbstate_t=yes
18065 else
18066 echo "$as_me: failed program was:" >&5
18067 sed 's/^/| /' conftest.$ac_ext >&5
18069 ac_cv_type_mbstate_t=no
18071 rm -f conftest.$ac_objext conftest.$ac_ext
18073 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18074 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18075 if test $ac_cv_type_mbstate_t = yes; then
18077 cat >>confdefs.h <<\_ACEOF
18078 #define HAVE_MBSTATE_T 1
18079 _ACEOF
18081 else
18083 cat >>confdefs.h <<\_ACEOF
18084 #define mbstate_t int
18085 _ACEOF
18089 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18090 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18091 if test "${emacs_cv_c_restrict+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 #line $LINENO "configure"
18096 /* confdefs.h. */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 void fred (int *restrict x);
18103 main ()
18107 return 0;
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18112 (eval $ac_compile) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
18116 { ac_try='test -s conftest.$ac_objext'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
18122 emacs_cv_c_restrict=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 cat >conftest.$ac_ext <<_ACEOF
18128 #line $LINENO "configure"
18129 /* confdefs.h. */
18130 _ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 void fred (int *__restrict x);
18136 main ()
18140 return 0;
18142 _ACEOF
18143 rm -f conftest.$ac_objext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 emacs_cv_c_restrict=__restrict
18156 else
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 emacs_cv_c_restrict=no
18162 rm -f conftest.$ac_objext conftest.$ac_ext
18164 rm -f conftest.$ac_objext conftest.$ac_ext
18166 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18167 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18168 case "$emacs_cv_c_restrict" in
18169 yes) emacs_restrict=restrict;;
18170 no) emacs_restrict="";;
18171 *) emacs_restrict="$emacs_cv_c_restrict";;
18172 esac
18173 if test "$emacs_restrict" != __restrict; then
18175 cat >>confdefs.h <<_ACEOF
18176 #define __restrict $emacs_restrict
18177 _ACEOF
18181 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18182 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18183 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 cat >conftest.$ac_ext <<_ACEOF
18187 #line $LINENO "configure"
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 void fred (int x[__restrict]);
18195 main ()
18199 return 0;
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204 (eval $ac_compile) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -s conftest.$ac_objext'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 emacs_cv_c_restrict_arr=yes
18215 else
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 emacs_cv_c_restrict_arr=no
18221 rm -f conftest.$ac_objext conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18224 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18225 if test "$emacs_cv_c_restrict_arr" = yes; then
18227 cat >>confdefs.h <<\_ACEOF
18228 #define __restrict_arr __restrict
18229 _ACEOF
18235 # Set up the CFLAGS for real compilation, so we can substitute it.
18236 CFLAGS="$REAL_CFLAGS"
18237 CPPFLAGS="$REAL_CPPFLAGS"
18239 #### Find out which version of Emacs this is.
18240 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18241 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18242 if test x"${version}" = x; then
18243 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18244 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18245 { (exit 1); exit 1; }; }
18248 ### Specify what sort of things we'll be editing into Makefile and config.h.
18249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18285 cat >>confdefs.h <<_ACEOF
18286 #define EMACS_CONFIGURATION "${canonical}"
18287 _ACEOF
18290 cat >>confdefs.h <<_ACEOF
18291 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18292 _ACEOF
18295 cat >>confdefs.h <<_ACEOF
18296 #define config_machfile "${machfile}"
18297 _ACEOF
18300 cat >>confdefs.h <<_ACEOF
18301 #define config_opsysfile "${opsysfile}"
18302 _ACEOF
18305 cat >>confdefs.h <<_ACEOF
18306 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18307 _ACEOF
18310 cat >>confdefs.h <<_ACEOF
18311 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18312 _ACEOF
18315 cat >>confdefs.h <<_ACEOF
18316 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18317 _ACEOF
18320 cat >>confdefs.h <<_ACEOF
18321 #define UNEXEC_SRC ${UNEXEC_SRC}
18322 _ACEOF
18325 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18327 cat >>confdefs.h <<\_ACEOF
18328 #define HAVE_X_WINDOWS 1
18329 _ACEOF
18332 if test "${USE_X_TOOLKIT}" != "none" ; then
18334 cat >>confdefs.h <<\_ACEOF
18335 #define USE_X_TOOLKIT 1
18336 _ACEOF
18339 if test "${HAVE_X11}" = "yes" ; then
18341 cat >>confdefs.h <<\_ACEOF
18342 #define HAVE_X11 1
18343 _ACEOF
18346 if test "${HAVE_XFREE386}" = "yes" ; then
18348 cat >>confdefs.h <<\_ACEOF
18349 #define HAVE_XFREE386 1
18350 _ACEOF
18353 if test "${HAVE_MENUS}" = "yes" ; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_MENUS 1
18357 _ACEOF
18360 if test "${GNU_MALLOC}" = "yes" ; then
18362 cat >>confdefs.h <<\_ACEOF
18363 #define GNU_MALLOC 1
18364 _ACEOF
18367 if test "${REL_ALLOC}" = "yes" ; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define REL_ALLOC 1
18371 _ACEOF
18379 #### Report on what we decided to do.
18380 #### Report GTK as a toolkit, even if it doesn't use Xt.
18381 #### It makes printing result more understandable as using GTK sets
18382 #### toolkit_scroll_bars to yes by default.
18383 if test "${HAVE_GTK}" = "yes"; then
18384 USE_X_TOOLKIT=GTK
18387 echo "
18388 Configured for \`${canonical}'.
18390 Where should the build process find the source code? ${srcdir}
18391 What operating system and machine description files should Emacs use?
18392 \`${opsysfile}' and \`${machfile}'
18393 What compiler should emacs be built with? ${CC} ${CFLAGS}
18394 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18395 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18396 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18397 What window system should Emacs use? ${window_system}
18398 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18400 if test -n "${x_includes}"; then
18401 echo " Where do we find X Windows header files? ${x_includes}"
18402 else
18403 echo " Where do we find X Windows header files? Standard dirs"
18405 if test -n "${x_libraries}"; then
18406 echo " Where do we find X Windows libraries? ${x_libraries}"
18407 else
18408 echo " Where do we find X Windows libraries? Standard dirs"
18411 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18412 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18413 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18414 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18415 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18416 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18417 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18418 echo
18420 # Remove any trailing slashes in these variables.
18421 test "${prefix}" != NONE &&
18422 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18423 test "${exec_prefix}" != NONE &&
18424 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18426 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18427 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18428 ## from Makefile.c can correctly provide the arg `-traditional' to the
18429 ## C preprocessor.
18431 cat >conftest.$ac_ext <<_ACEOF
18432 #line $LINENO "configure"
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 yes..yes
18439 _ACEOF
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441 $EGREP "yes..yes" >/dev/null 2>&1; then
18442 CPP_NEED_TRADITIONAL=no
18443 else
18444 CPP_NEED_TRADITIONAL=yes
18446 rm -f conftest*
18449 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"
18450 ac_config_commands="$ac_config_commands default"
18451 cat >confcache <<\_ACEOF
18452 # This file is a shell script that caches the results of configure
18453 # tests run on this system so they can be shared between configure
18454 # scripts and configure runs, see configure's option --config-cache.
18455 # It is not useful on other systems. If it contains results you don't
18456 # want to keep, you may remove or edit it.
18458 # config.status only pays attention to the cache file if you give it
18459 # the --recheck option to rerun configure.
18461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18463 # following values.
18465 _ACEOF
18467 # The following way of writing the cache mishandles newlines in values,
18468 # but we know of no workaround that is simple, portable, and efficient.
18469 # So, don't put newlines in cache variables' values.
18470 # Ultrix sh set writes to stderr and can't be redirected directly,
18471 # and sets the high bit in the cache file unless we assign to the vars.
18473 (set) 2>&1 |
18474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18475 *ac_space=\ *)
18476 # `set' does not quote correctly, so add quotes (double-quote
18477 # substitution turns \\\\ into \\, and sed turns \\ into \).
18478 sed -n \
18479 "s/'/'\\\\''/g;
18480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18483 # `set' quotes correctly as required by POSIX, so do not add quotes.
18484 sed -n \
18485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18487 esac;
18489 sed '
18490 t clear
18491 : clear
18492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18493 t end
18494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18495 : end' >>confcache
18496 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18497 if test -w $cache_file; then
18498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18499 cat confcache >$cache_file
18500 else
18501 echo "not updating unwritable cache $cache_file"
18504 rm -f confcache
18506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18507 # Let make expand exec_prefix.
18508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18512 # trailing colons and then remove the whole line if VPATH becomes empty
18513 # (actually we leave an empty line to preserve line numbers).
18514 if test "x$srcdir" = x.; then
18515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18516 s/:*\$(srcdir):*/:/;
18517 s/:*\${srcdir}:*/:/;
18518 s/:*@srcdir@:*/:/;
18519 s/^\([^=]*=[ ]*\):*/\1/;
18520 s/:*$//;
18521 s/^[^=]*=[ ]*$//;
18525 DEFS=-DHAVE_CONFIG_H
18527 ac_libobjs=
18528 ac_ltlibobjs=
18529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18530 # 1. Remove the extension, and $U if already installed.
18531 ac_i=`echo "$ac_i" |
18532 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18533 # 2. Add them.
18534 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18535 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18536 done
18537 LIBOBJS=$ac_libobjs
18539 LTLIBOBJS=$ac_ltlibobjs
18543 : ${CONFIG_STATUS=./config.status}
18544 ac_clean_files_save=$ac_clean_files
18545 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18546 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18547 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18548 cat >$CONFIG_STATUS <<_ACEOF
18549 #! $SHELL
18550 # Generated by $as_me.
18551 # Run this file to recreate the current configuration.
18552 # Compiler output produced by configure, useful for debugging
18553 # configure, is in config.log if it exists.
18555 debug=false
18556 ac_cs_recheck=false
18557 ac_cs_silent=false
18558 SHELL=\${CONFIG_SHELL-$SHELL}
18559 _ACEOF
18561 cat >>$CONFIG_STATUS <<\_ACEOF
18562 ## --------------------- ##
18563 ## M4sh Initialization. ##
18564 ## --------------------- ##
18566 # Be Bourne compatible
18567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18568 emulate sh
18569 NULLCMD=:
18570 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18571 # is contrary to our usage. Disable this feature.
18572 alias -g '${1+"$@"}'='"$@"'
18573 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18574 set -o posix
18577 # Support unset when possible.
18578 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18579 as_unset=unset
18580 else
18581 as_unset=false
18585 # Work around bugs in pre-3.0 UWIN ksh.
18586 $as_unset ENV MAIL MAILPATH
18587 PS1='$ '
18588 PS2='> '
18589 PS4='+ '
18591 # NLS nuisances.
18592 for as_var in \
18593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18595 LC_TELEPHONE LC_TIME
18597 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18598 eval $as_var=C; export $as_var
18599 else
18600 $as_unset $as_var
18602 done
18604 # Required to use basename.
18605 if expr a : '\(a\)' >/dev/null 2>&1; then
18606 as_expr=expr
18607 else
18608 as_expr=false
18611 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18612 as_basename=basename
18613 else
18614 as_basename=false
18618 # Name of the executable.
18619 as_me=`$as_basename "$0" ||
18620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18621 X"$0" : 'X\(//\)$' \| \
18622 X"$0" : 'X\(/\)$' \| \
18623 . : '\(.\)' 2>/dev/null ||
18624 echo X/"$0" |
18625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18626 /^X\/\(\/\/\)$/{ s//\1/; q; }
18627 /^X\/\(\/\).*/{ s//\1/; q; }
18628 s/.*/./; q'`
18631 # PATH needs CR, and LINENO needs CR and PATH.
18632 # Avoid depending upon Character Ranges.
18633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18636 as_cr_digits='0123456789'
18637 as_cr_alnum=$as_cr_Letters$as_cr_digits
18639 # The user is always right.
18640 if test "${PATH_SEPARATOR+set}" != set; then
18641 echo "#! /bin/sh" >conf$$.sh
18642 echo "exit 0" >>conf$$.sh
18643 chmod +x conf$$.sh
18644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18645 PATH_SEPARATOR=';'
18646 else
18647 PATH_SEPARATOR=:
18649 rm -f conf$$.sh
18653 as_lineno_1=$LINENO
18654 as_lineno_2=$LINENO
18655 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18656 test "x$as_lineno_1" != "x$as_lineno_2" &&
18657 test "x$as_lineno_3" = "x$as_lineno_2" || {
18658 # Find who we are. Look in the path if we contain no path at all
18659 # relative or not.
18660 case $0 in
18661 *[\\/]* ) as_myself=$0 ;;
18662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18663 for as_dir in $PATH
18665 IFS=$as_save_IFS
18666 test -z "$as_dir" && as_dir=.
18667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18668 done
18671 esac
18672 # We did not find ourselves, most probably we were run as `sh COMMAND'
18673 # in which case we are not to be found in the path.
18674 if test "x$as_myself" = x; then
18675 as_myself=$0
18677 if test ! -f "$as_myself"; then
18678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18680 { (exit 1); exit 1; }; }
18682 case $CONFIG_SHELL in
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for as_base in sh bash ksh sh5; do
18690 case $as_dir in
18692 if ("$as_dir/$as_base" -c '
18693 as_lineno_1=$LINENO
18694 as_lineno_2=$LINENO
18695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18696 test "x$as_lineno_1" != "x$as_lineno_2" &&
18697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18698 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18699 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18700 CONFIG_SHELL=$as_dir/$as_base
18701 export CONFIG_SHELL
18702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18703 fi;;
18704 esac
18705 done
18706 done
18708 esac
18710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18711 # uniformly replaced by the line number. The first 'sed' inserts a
18712 # line-number line before each line; the second 'sed' does the real
18713 # work. The second script uses 'N' to pair each line-number line
18714 # with the numbered line, and appends trailing '-' during
18715 # substitution so that $LINENO is not a special case at line end.
18716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18718 sed '=' <$as_myself |
18719 sed '
18721 s,$,-,
18722 : loop
18723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18724 t loop
18725 s,-$,,
18726 s,^['$as_cr_digits']*\n,,
18727 ' >$as_me.lineno &&
18728 chmod +x $as_me.lineno ||
18729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18731 { (exit 1); exit 1; }; }
18733 # Don't try to exec as it changes $[0], causing all sort of problems
18734 # (the dirname of $[0] is not the place where we might find the
18735 # original and so on. Autoconf is especially sensible to this).
18736 . ./$as_me.lineno
18737 # Exit status is that of the last command.
18738 exit
18742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18743 *c*,-n*) ECHO_N= ECHO_C='
18744 ' ECHO_T=' ' ;;
18745 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18746 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18747 esac
18749 if expr a : '\(a\)' >/dev/null 2>&1; then
18750 as_expr=expr
18751 else
18752 as_expr=false
18755 rm -f conf$$ conf$$.exe conf$$.file
18756 echo >conf$$.file
18757 if ln -s conf$$.file conf$$ 2>/dev/null; then
18758 # We could just check for DJGPP; but this test a) works b) is more generic
18759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18760 if test -f conf$$.exe; then
18761 # Don't use ln at all; we don't have any links
18762 as_ln_s='cp -p'
18763 else
18764 as_ln_s='ln -s'
18766 elif ln conf$$.file conf$$ 2>/dev/null; then
18767 as_ln_s=ln
18768 else
18769 as_ln_s='cp -p'
18771 rm -f conf$$ conf$$.exe conf$$.file
18773 if mkdir -p . 2>/dev/null; then
18774 as_mkdir_p=:
18775 else
18776 as_mkdir_p=false
18779 as_executable_p="test -f"
18781 # Sed expression to map a string onto a valid CPP name.
18782 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18784 # Sed expression to map a string onto a valid variable name.
18785 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18788 # IFS
18789 # We need space, tab and new line, in precisely that order.
18790 as_nl='
18792 IFS=" $as_nl"
18794 # CDPATH.
18795 $as_unset CDPATH
18797 exec 6>&1
18799 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18800 # report actual input values of CONFIG_FILES etc. instead of their
18801 # values after options handling. Logging --version etc. is OK.
18802 exec 5>>config.log
18804 echo
18805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18806 ## Running $as_me. ##
18807 _ASBOX
18808 } >&5
18809 cat >&5 <<_CSEOF
18811 This file was extended by $as_me, which was
18812 generated by GNU Autoconf 2.57. Invocation command line was
18814 CONFIG_FILES = $CONFIG_FILES
18815 CONFIG_HEADERS = $CONFIG_HEADERS
18816 CONFIG_LINKS = $CONFIG_LINKS
18817 CONFIG_COMMANDS = $CONFIG_COMMANDS
18818 $ $0 $@
18820 _CSEOF
18821 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18822 echo >&5
18823 _ACEOF
18825 # Files that config.status was made for.
18826 if test -n "$ac_config_files"; then
18827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18830 if test -n "$ac_config_headers"; then
18831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18834 if test -n "$ac_config_links"; then
18835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18838 if test -n "$ac_config_commands"; then
18839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18842 cat >>$CONFIG_STATUS <<\_ACEOF
18844 ac_cs_usage="\
18845 \`$as_me' instantiates files from templates according to the
18846 current configuration.
18848 Usage: $0 [OPTIONS] [FILE]...
18850 -h, --help print this help, then exit
18851 -V, --version print version number, then exit
18852 -q, --quiet do not print progress messages
18853 -d, --debug don't remove temporary files
18854 --recheck update $as_me by reconfiguring in the same conditions
18855 --file=FILE[:TEMPLATE]
18856 instantiate the configuration file FILE
18857 --header=FILE[:TEMPLATE]
18858 instantiate the configuration header FILE
18860 Configuration files:
18861 $config_files
18863 Configuration headers:
18864 $config_headers
18866 Configuration commands:
18867 $config_commands
18869 Report bugs to <bug-autoconf@gnu.org>."
18870 _ACEOF
18872 cat >>$CONFIG_STATUS <<_ACEOF
18873 ac_cs_version="\\
18874 config.status
18875 configured by $0, generated by GNU Autoconf 2.57,
18876 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18878 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18879 Free Software Foundation, Inc.
18880 This config.status script is free software; the Free Software Foundation
18881 gives unlimited permission to copy, distribute and modify it."
18882 srcdir=$srcdir
18883 INSTALL="$INSTALL"
18884 _ACEOF
18886 cat >>$CONFIG_STATUS <<\_ACEOF
18887 # If no file are specified by the user, then we need to provide default
18888 # value. By we need to know if files were specified by the user.
18889 ac_need_defaults=:
18890 while test $# != 0
18892 case $1 in
18893 --*=*)
18894 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18895 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18896 ac_shift=:
18899 ac_option=$1
18900 ac_optarg=$2
18901 ac_shift=shift
18903 *) # This is not an option, so the user has probably given explicit
18904 # arguments.
18905 ac_option=$1
18906 ac_need_defaults=false;;
18907 esac
18909 case $ac_option in
18910 # Handling of the options.
18911 _ACEOF
18912 cat >>$CONFIG_STATUS <<\_ACEOF
18913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18914 ac_cs_recheck=: ;;
18915 --version | --vers* | -V )
18916 echo "$ac_cs_version"; exit 0 ;;
18917 --he | --h)
18918 # Conflict between --help and --header
18919 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18920 Try \`$0 --help' for more information." >&5
18921 echo "$as_me: error: ambiguous option: $1
18922 Try \`$0 --help' for more information." >&2;}
18923 { (exit 1); exit 1; }; };;
18924 --help | --hel | -h )
18925 echo "$ac_cs_usage"; exit 0 ;;
18926 --debug | --d* | -d )
18927 debug=: ;;
18928 --file | --fil | --fi | --f )
18929 $ac_shift
18930 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18931 ac_need_defaults=false;;
18932 --header | --heade | --head | --hea )
18933 $ac_shift
18934 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18935 ac_need_defaults=false;;
18936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18938 ac_cs_silent=: ;;
18940 # This is an error.
18941 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18942 Try \`$0 --help' for more information." >&5
18943 echo "$as_me: error: unrecognized option: $1
18944 Try \`$0 --help' for more information." >&2;}
18945 { (exit 1); exit 1; }; } ;;
18947 *) ac_config_targets="$ac_config_targets $1" ;;
18949 esac
18950 shift
18951 done
18953 ac_configure_extra_args=
18955 if $ac_cs_silent; then
18956 exec 6>/dev/null
18957 ac_configure_extra_args="$ac_configure_extra_args --silent"
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<_ACEOF
18962 if \$ac_cs_recheck; then
18963 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18964 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18967 _ACEOF
18969 cat >>$CONFIG_STATUS <<_ACEOF
18971 # INIT-COMMANDS section.
18974 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18976 _ACEOF
18980 cat >>$CONFIG_STATUS <<\_ACEOF
18981 for ac_config_target in $ac_config_targets
18983 case "$ac_config_target" in
18984 # Handling of arguments.
18985 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18986 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18987 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18988 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18989 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18990 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18991 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18992 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18993 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18994 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18995 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18996 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18997 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18998 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18999 { (exit 1); exit 1; }; };;
19000 esac
19001 done
19003 # If the user did not use the arguments to specify the items to instantiate,
19004 # then the envvar interface is used. Set only those that are not.
19005 # We use the long form for the default assignment because of an extremely
19006 # bizarre bug on SunOS 4.1.3.
19007 if $ac_need_defaults; then
19008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19013 # Have a temporary directory for convenience. Make it in the build tree
19014 # simply because there is no reason to put it here, and in addition,
19015 # creating and moving files from /tmp can sometimes cause problems.
19016 # Create a temporary directory, and hook for its removal unless debugging.
19017 $debug ||
19019 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19020 trap '{ (exit 1); exit 1; }' 1 2 13 15
19023 # Create a (secure) tmp directory for tmp files.
19026 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19027 test -n "$tmp" && test -d "$tmp"
19028 } ||
19030 tmp=./confstat$$-$RANDOM
19031 (umask 077 && mkdir $tmp)
19032 } ||
19034 echo "$me: cannot create a temporary directory in ." >&2
19035 { (exit 1); exit 1; }
19038 _ACEOF
19040 cat >>$CONFIG_STATUS <<_ACEOF
19043 # CONFIG_FILES section.
19046 # No need to generate the scripts if there are no CONFIG_FILES.
19047 # This happens for instance when ./config.status config.h
19048 if test -n "\$CONFIG_FILES"; then
19049 # Protect against being on the right side of a sed subst in config.status.
19050 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19051 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19052 s,@SHELL@,$SHELL,;t t
19053 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19054 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19055 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19056 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19057 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19058 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19059 s,@exec_prefix@,$exec_prefix,;t t
19060 s,@prefix@,$prefix,;t t
19061 s,@program_transform_name@,$program_transform_name,;t t
19062 s,@bindir@,$bindir,;t t
19063 s,@sbindir@,$sbindir,;t t
19064 s,@libexecdir@,$libexecdir,;t t
19065 s,@datadir@,$datadir,;t t
19066 s,@sysconfdir@,$sysconfdir,;t t
19067 s,@sharedstatedir@,$sharedstatedir,;t t
19068 s,@localstatedir@,$localstatedir,;t t
19069 s,@libdir@,$libdir,;t t
19070 s,@includedir@,$includedir,;t t
19071 s,@oldincludedir@,$oldincludedir,;t t
19072 s,@infodir@,$infodir,;t t
19073 s,@mandir@,$mandir,;t t
19074 s,@build_alias@,$build_alias,;t t
19075 s,@host_alias@,$host_alias,;t t
19076 s,@target_alias@,$target_alias,;t t
19077 s,@DEFS@,$DEFS,;t t
19078 s,@ECHO_C@,$ECHO_C,;t t
19079 s,@ECHO_N@,$ECHO_N,;t t
19080 s,@ECHO_T@,$ECHO_T,;t t
19081 s,@LIBS@,$LIBS,;t t
19082 s,@build@,$build,;t t
19083 s,@build_cpu@,$build_cpu,;t t
19084 s,@build_vendor@,$build_vendor,;t t
19085 s,@build_os@,$build_os,;t t
19086 s,@host@,$host,;t t
19087 s,@host_cpu@,$host_cpu,;t t
19088 s,@host_vendor@,$host_vendor,;t t
19089 s,@host_os@,$host_os,;t t
19090 s,@CC@,$CC,;t t
19091 s,@CFLAGS@,$CFLAGS,;t t
19092 s,@LDFLAGS@,$LDFLAGS,;t t
19093 s,@CPPFLAGS@,$CPPFLAGS,;t t
19094 s,@ac_ct_CC@,$ac_ct_CC,;t t
19095 s,@EXEEXT@,$EXEEXT,;t t
19096 s,@OBJEXT@,$OBJEXT,;t t
19097 s,@LN_S@,$LN_S,;t t
19098 s,@CPP@,$CPP,;t t
19099 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19100 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19101 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19102 s,@RANLIB@,$RANLIB,;t t
19103 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19104 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19105 s,@EGREP@,$EGREP,;t t
19106 s,@LIBSOUND@,$LIBSOUND,;t t
19107 s,@SET_MAKE@,$SET_MAKE,;t t
19108 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19109 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19110 s,@GTK_LIBS@,$GTK_LIBS,;t t
19111 s,@ALLOCA@,$ALLOCA,;t t
19112 s,@liblockfile@,$liblockfile,;t t
19113 s,@LIBOBJS@,$LIBOBJS,;t t
19114 s,@NEED_SETGID@,$NEED_SETGID,;t t
19115 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19116 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19117 s,@version@,$version,;t t
19118 s,@configuration@,$configuration,;t t
19119 s,@canonical@,$canonical,;t t
19120 s,@srcdir@,$srcdir,;t t
19121 s,@lispdir@,$lispdir,;t t
19122 s,@locallisppath@,$locallisppath,;t t
19123 s,@lisppath@,$lisppath,;t t
19124 s,@x_default_search_path@,$x_default_search_path,;t t
19125 s,@etcdir@,$etcdir,;t t
19126 s,@archlibdir@,$archlibdir,;t t
19127 s,@docdir@,$docdir,;t t
19128 s,@bitmapdir@,$bitmapdir,;t t
19129 s,@gamedir@,$gamedir,;t t
19130 s,@gameuser@,$gameuser,;t t
19131 s,@c_switch_system@,$c_switch_system,;t t
19132 s,@c_switch_machine@,$c_switch_machine,;t t
19133 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19134 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19135 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19136 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19137 s,@machfile@,$machfile,;t t
19138 s,@opsysfile@,$opsysfile,;t t
19139 s,@carbon_appdir@,$carbon_appdir,;t t
19140 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19141 CEOF
19143 _ACEOF
19145 cat >>$CONFIG_STATUS <<\_ACEOF
19146 # Split the substitutions into bite-sized pieces for seds with
19147 # small command number limits, like on Digital OSF/1 and HP-UX.
19148 ac_max_sed_lines=48
19149 ac_sed_frag=1 # Number of current file.
19150 ac_beg=1 # First line for current file.
19151 ac_end=$ac_max_sed_lines # Line after last line for current file.
19152 ac_more_lines=:
19153 ac_sed_cmds=
19154 while $ac_more_lines; do
19155 if test $ac_beg -gt 1; then
19156 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19157 else
19158 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19160 if test ! -s $tmp/subs.frag; then
19161 ac_more_lines=false
19162 else
19163 # The purpose of the label and of the branching condition is to
19164 # speed up the sed processing (if there are no `@' at all, there
19165 # is no need to browse any of the substitutions).
19166 # These are the two extra sed commands mentioned above.
19167 (echo ':t
19168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19169 if test -z "$ac_sed_cmds"; then
19170 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19171 else
19172 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19174 ac_sed_frag=`expr $ac_sed_frag + 1`
19175 ac_beg=$ac_end
19176 ac_end=`expr $ac_end + $ac_max_sed_lines`
19178 done
19179 if test -z "$ac_sed_cmds"; then
19180 ac_sed_cmds=cat
19182 fi # test -n "$CONFIG_FILES"
19184 _ACEOF
19185 cat >>$CONFIG_STATUS <<\_ACEOF
19186 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19188 case $ac_file in
19189 - | *:- | *:-:* ) # input from stdin
19190 cat >$tmp/stdin
19191 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19192 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19193 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19194 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19195 * ) ac_file_in=$ac_file.in ;;
19196 esac
19198 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19199 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19201 X"$ac_file" : 'X\(//\)[^/]' \| \
19202 X"$ac_file" : 'X\(//\)$' \| \
19203 X"$ac_file" : 'X\(/\)' \| \
19204 . : '\(.\)' 2>/dev/null ||
19205 echo X"$ac_file" |
19206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19208 /^X\(\/\/\)$/{ s//\1/; q; }
19209 /^X\(\/\).*/{ s//\1/; q; }
19210 s/.*/./; q'`
19211 { if $as_mkdir_p; then
19212 mkdir -p "$ac_dir"
19213 else
19214 as_dir="$ac_dir"
19215 as_dirs=
19216 while test ! -d "$as_dir"; do
19217 as_dirs="$as_dir $as_dirs"
19218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19220 X"$as_dir" : 'X\(//\)[^/]' \| \
19221 X"$as_dir" : 'X\(//\)$' \| \
19222 X"$as_dir" : 'X\(/\)' \| \
19223 . : '\(.\)' 2>/dev/null ||
19224 echo X"$as_dir" |
19225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19227 /^X\(\/\/\)$/{ s//\1/; q; }
19228 /^X\(\/\).*/{ s//\1/; q; }
19229 s/.*/./; q'`
19230 done
19231 test ! -n "$as_dirs" || mkdir $as_dirs
19232 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19233 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19234 { (exit 1); exit 1; }; }; }
19236 ac_builddir=.
19238 if test "$ac_dir" != .; then
19239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19240 # A "../" for each directory in $ac_dir_suffix.
19241 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19242 else
19243 ac_dir_suffix= ac_top_builddir=
19246 case $srcdir in
19247 .) # No --srcdir option. We are building in place.
19248 ac_srcdir=.
19249 if test -z "$ac_top_builddir"; then
19250 ac_top_srcdir=.
19251 else
19252 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19253 fi ;;
19254 [\\/]* | ?:[\\/]* ) # Absolute path.
19255 ac_srcdir=$srcdir$ac_dir_suffix;
19256 ac_top_srcdir=$srcdir ;;
19257 *) # Relative path.
19258 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19259 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19260 esac
19261 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19262 # absolute.
19263 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19264 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19265 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19266 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19269 case $INSTALL in
19270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19271 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19272 esac
19274 if test x"$ac_file" != x-; then
19275 { echo "$as_me:$LINENO: creating $ac_file" >&5
19276 echo "$as_me: creating $ac_file" >&6;}
19277 rm -f "$ac_file"
19279 # Let's still pretend it is `configure' which instantiates (i.e., don't
19280 # use $as_me), people would be surprised to read:
19281 # /* config.h. Generated by config.status. */
19282 if test x"$ac_file" = x-; then
19283 configure_input=
19284 else
19285 configure_input="$ac_file. "
19287 configure_input=$configure_input"Generated from `echo $ac_file_in |
19288 sed 's,.*/,,'` by configure."
19290 # First look for the input files in the build tree, otherwise in the
19291 # src tree.
19292 ac_file_inputs=`IFS=:
19293 for f in $ac_file_in; do
19294 case $f in
19295 -) echo $tmp/stdin ;;
19296 [\\/$]*)
19297 # Absolute (can't be DOS-style, as IFS=:)
19298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19299 echo "$as_me: error: cannot find input file: $f" >&2;}
19300 { (exit 1); exit 1; }; }
19301 echo $f;;
19302 *) # Relative
19303 if test -f "$f"; then
19304 # Build tree
19305 echo $f
19306 elif test -f "$srcdir/$f"; then
19307 # Source tree
19308 echo $srcdir/$f
19309 else
19310 # /dev/null tree
19311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19312 echo "$as_me: error: cannot find input file: $f" >&2;}
19313 { (exit 1); exit 1; }; }
19314 fi;;
19315 esac
19316 done` || { (exit 1); exit 1; }
19317 _ACEOF
19318 cat >>$CONFIG_STATUS <<_ACEOF
19319 sed "$ac_vpsub
19320 $extrasub
19321 _ACEOF
19322 cat >>$CONFIG_STATUS <<\_ACEOF
19324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19325 s,@configure_input@,$configure_input,;t t
19326 s,@srcdir@,$ac_srcdir,;t t
19327 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19328 s,@top_srcdir@,$ac_top_srcdir,;t t
19329 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19330 s,@builddir@,$ac_builddir,;t t
19331 s,@abs_builddir@,$ac_abs_builddir,;t t
19332 s,@top_builddir@,$ac_top_builddir,;t t
19333 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19334 s,@INSTALL@,$ac_INSTALL,;t t
19335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19336 rm -f $tmp/stdin
19337 if test x"$ac_file" != x-; then
19338 mv $tmp/out $ac_file
19339 else
19340 cat $tmp/out
19341 rm -f $tmp/out
19344 done
19345 _ACEOF
19346 cat >>$CONFIG_STATUS <<\_ACEOF
19349 # CONFIG_HEADER section.
19352 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19353 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19355 # ac_d sets the value in "#define NAME VALUE" lines.
19356 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19357 ac_dB='[ ].*$,\1#\2'
19358 ac_dC=' '
19359 ac_dD=',;t'
19360 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19361 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19362 ac_uB='$,\1#\2define\3'
19363 ac_uC=' '
19364 ac_uD=',;t'
19366 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19368 case $ac_file in
19369 - | *:- | *:-:* ) # input from stdin
19370 cat >$tmp/stdin
19371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19375 * ) ac_file_in=$ac_file.in ;;
19376 esac
19378 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19379 echo "$as_me: creating $ac_file" >&6;}
19381 # First look for the input files in the build tree, otherwise in the
19382 # src tree.
19383 ac_file_inputs=`IFS=:
19384 for f in $ac_file_in; do
19385 case $f in
19386 -) echo $tmp/stdin ;;
19387 [\\/$]*)
19388 # Absolute (can't be DOS-style, as IFS=:)
19389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19390 echo "$as_me: error: cannot find input file: $f" >&2;}
19391 { (exit 1); exit 1; }; }
19392 echo $f;;
19393 *) # Relative
19394 if test -f "$f"; then
19395 # Build tree
19396 echo $f
19397 elif test -f "$srcdir/$f"; then
19398 # Source tree
19399 echo $srcdir/$f
19400 else
19401 # /dev/null tree
19402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19403 echo "$as_me: error: cannot find input file: $f" >&2;}
19404 { (exit 1); exit 1; }; }
19405 fi;;
19406 esac
19407 done` || { (exit 1); exit 1; }
19408 # Remove the trailing spaces.
19409 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19411 _ACEOF
19413 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19414 # `conftest.undefs', that substitutes the proper values into
19415 # config.h.in to produce config.h. The first handles `#define'
19416 # templates, and the second `#undef' templates.
19417 # And first: Protect against being on the right side of a sed subst in
19418 # config.status. Protect against being in an unquoted here document
19419 # in config.status.
19420 rm -f conftest.defines conftest.undefs
19421 # Using a here document instead of a string reduces the quoting nightmare.
19422 # Putting comments in sed scripts is not portable.
19424 # `end' is used to avoid that the second main sed command (meant for
19425 # 0-ary CPP macros) applies to n-ary macro definitions.
19426 # See the Autoconf documentation for `clear'.
19427 cat >confdef2sed.sed <<\_ACEOF
19428 s/[\\&,]/\\&/g
19429 s,[\\$`],\\&,g
19430 t clear
19431 : clear
19432 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19433 t end
19434 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19435 : end
19436 _ACEOF
19437 # If some macros were called several times there might be several times
19438 # the same #defines, which is useless. Nevertheless, we may not want to
19439 # sort them, since we want the *last* AC-DEFINE to be honored.
19440 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19441 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19442 rm -f confdef2sed.sed
19444 # This sed command replaces #undef with comments. This is necessary, for
19445 # example, in the case of _POSIX_SOURCE, which is predefined and required
19446 # on some systems where configure will not decide to define it.
19447 cat >>conftest.undefs <<\_ACEOF
19448 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19449 _ACEOF
19451 # Break up conftest.defines because some shells have a limit on the size
19452 # of here documents, and old seds have small limits too (100 cmds).
19453 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19454 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19455 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19456 echo ' :' >>$CONFIG_STATUS
19457 rm -f conftest.tail
19458 while grep . conftest.defines >/dev/null
19460 # Write a limited-size here document to $tmp/defines.sed.
19461 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19462 # Speed up: don't consider the non `#define' lines.
19463 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19464 # Work around the forget-to-reset-the-flag bug.
19465 echo 't clr' >>$CONFIG_STATUS
19466 echo ': clr' >>$CONFIG_STATUS
19467 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19468 echo 'CEOF
19469 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19470 rm -f $tmp/in
19471 mv $tmp/out $tmp/in
19472 ' >>$CONFIG_STATUS
19473 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19474 rm -f conftest.defines
19475 mv conftest.tail conftest.defines
19476 done
19477 rm -f conftest.defines
19478 echo ' fi # grep' >>$CONFIG_STATUS
19479 echo >>$CONFIG_STATUS
19481 # Break up conftest.undefs because some shells have a limit on the size
19482 # of here documents, and old seds have small limits too (100 cmds).
19483 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19484 rm -f conftest.tail
19485 while grep . conftest.undefs >/dev/null
19487 # Write a limited-size here document to $tmp/undefs.sed.
19488 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19489 # Speed up: don't consider the non `#undef'
19490 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19491 # Work around the forget-to-reset-the-flag bug.
19492 echo 't clr' >>$CONFIG_STATUS
19493 echo ': clr' >>$CONFIG_STATUS
19494 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19495 echo 'CEOF
19496 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19497 rm -f $tmp/in
19498 mv $tmp/out $tmp/in
19499 ' >>$CONFIG_STATUS
19500 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19501 rm -f conftest.undefs
19502 mv conftest.tail conftest.undefs
19503 done
19504 rm -f conftest.undefs
19506 cat >>$CONFIG_STATUS <<\_ACEOF
19507 # Let's still pretend it is `configure' which instantiates (i.e., don't
19508 # use $as_me), people would be surprised to read:
19509 # /* config.h. Generated by config.status. */
19510 if test x"$ac_file" = x-; then
19511 echo "/* Generated by configure. */" >$tmp/config.h
19512 else
19513 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19515 cat $tmp/in >>$tmp/config.h
19516 rm -f $tmp/in
19517 if test x"$ac_file" != x-; then
19518 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19519 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19520 echo "$as_me: $ac_file is unchanged" >&6;}
19521 else
19522 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19524 X"$ac_file" : 'X\(//\)[^/]' \| \
19525 X"$ac_file" : 'X\(//\)$' \| \
19526 X"$ac_file" : 'X\(/\)' \| \
19527 . : '\(.\)' 2>/dev/null ||
19528 echo X"$ac_file" |
19529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19531 /^X\(\/\/\)$/{ s//\1/; q; }
19532 /^X\(\/\).*/{ s//\1/; q; }
19533 s/.*/./; q'`
19534 { if $as_mkdir_p; then
19535 mkdir -p "$ac_dir"
19536 else
19537 as_dir="$ac_dir"
19538 as_dirs=
19539 while test ! -d "$as_dir"; do
19540 as_dirs="$as_dir $as_dirs"
19541 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19543 X"$as_dir" : 'X\(//\)[^/]' \| \
19544 X"$as_dir" : 'X\(//\)$' \| \
19545 X"$as_dir" : 'X\(/\)' \| \
19546 . : '\(.\)' 2>/dev/null ||
19547 echo X"$as_dir" |
19548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19550 /^X\(\/\/\)$/{ s//\1/; q; }
19551 /^X\(\/\).*/{ s//\1/; q; }
19552 s/.*/./; q'`
19553 done
19554 test ! -n "$as_dirs" || mkdir $as_dirs
19555 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19556 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19557 { (exit 1); exit 1; }; }; }
19559 rm -f $ac_file
19560 mv $tmp/config.h $ac_file
19562 else
19563 cat $tmp/config.h
19564 rm -f $tmp/config.h
19566 done
19567 _ACEOF
19568 cat >>$CONFIG_STATUS <<\_ACEOF
19571 # CONFIG_COMMANDS section.
19573 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19574 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19575 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19576 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19578 X"$ac_dest" : 'X\(//\)[^/]' \| \
19579 X"$ac_dest" : 'X\(//\)$' \| \
19580 X"$ac_dest" : 'X\(/\)' \| \
19581 . : '\(.\)' 2>/dev/null ||
19582 echo X"$ac_dest" |
19583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19585 /^X\(\/\/\)$/{ s//\1/; q; }
19586 /^X\(\/\).*/{ s//\1/; q; }
19587 s/.*/./; q'`
19588 ac_builddir=.
19590 if test "$ac_dir" != .; then
19591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19592 # A "../" for each directory in $ac_dir_suffix.
19593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19594 else
19595 ac_dir_suffix= ac_top_builddir=
19598 case $srcdir in
19599 .) # No --srcdir option. We are building in place.
19600 ac_srcdir=.
19601 if test -z "$ac_top_builddir"; then
19602 ac_top_srcdir=.
19603 else
19604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19605 fi ;;
19606 [\\/]* | ?:[\\/]* ) # Absolute path.
19607 ac_srcdir=$srcdir$ac_dir_suffix;
19608 ac_top_srcdir=$srcdir ;;
19609 *) # Relative path.
19610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19612 esac
19613 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19614 # absolute.
19615 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19616 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19617 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19618 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19621 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19622 echo "$as_me: executing $ac_dest commands" >&6;}
19623 case $ac_dest in
19624 default )
19626 ### Make the necessary directories, if they don't exist.
19627 for dir in etc lisp ; do
19628 test -d ${dir} || mkdir ${dir}
19629 done
19631 # Build src/Makefile from ${srcdir}/src/Makefile.c
19632 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19633 # This must be done after src/config.h is built, since we rely on that file.
19635 # Now get this: Some word that is part of the ${srcdir} directory name
19636 # or the ${configuration} value might, just might, happen to be an
19637 # identifier like `sun4' or `i386' or something, and be predefined by
19638 # the C preprocessor to some helpful value like 1, or maybe the empty
19639 # string. Needless to say consequent macro substitutions are less
19640 # than conducive to the makefile finding the correct directory.
19641 undefs="`echo $top_srcdir $configuration $canonical |
19642 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19643 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19646 echo creating src/epaths.h
19647 ${MAKE-make} epaths-force
19649 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19650 # `..' to `. .' unless invoked with -traditional
19652 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19653 CPPFLAGS="$CPPFLAGS -traditional"
19656 echo creating lib-src/Makefile
19657 ( cd lib-src
19658 rm -f junk.c junk1.c junk2.c
19659 sed -e '/start of cpp stuff/q' \
19660 < Makefile.c > junk1.c
19661 sed -e '1,/start of cpp stuff/d'\
19662 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19663 < Makefile.c > junk.c
19664 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19665 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19666 cat junk1.c junk2.c > Makefile.new
19667 rm -f junk.c junk1.c junk2.c
19668 chmod 444 Makefile.new
19669 mv -f Makefile.new Makefile
19672 echo creating src/Makefile
19673 ( cd src
19674 rm -f junk.c junk1.c junk2.c
19675 sed -e '/start of cpp stuff/q' \
19676 < Makefile.c > junk1.c
19677 sed -e '1,/start of cpp stuff/d'\
19678 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19679 < Makefile.c > junk.c
19680 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19681 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19682 cat junk1.c junk2.c > Makefile.new
19683 rm -f junk.c junk1.c junk2.c
19684 chmod 444 Makefile.new
19685 mv -f Makefile.new Makefile
19688 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19689 echo creating src/.gdbinit
19690 echo source $srcdir/src/.gdbinit > src/.gdbinit
19693 # This is how we know whether to re-run configure in certain cases.
19694 touch src/config.stamp
19697 esac
19698 done
19699 _ACEOF
19701 cat >>$CONFIG_STATUS <<\_ACEOF
19703 { (exit 0); exit 0; }
19704 _ACEOF
19705 chmod +x $CONFIG_STATUS
19706 ac_clean_files=$ac_clean_files_save
19709 # configure is writing to config.log, and then calls config.status.
19710 # config.status does its own redirection, appending to config.log.
19711 # Unfortunately, on DOS this fails, as config.log is still kept open
19712 # by configure, so config.status won't be able to write to it; its
19713 # output is simply discarded. So we exec the FD to /dev/null,
19714 # effectively closing config.log, so it can be properly (re)opened and
19715 # appended to by config.status. When coming back to configure, we
19716 # need to make the FD available again.
19717 if test "$no_create" != yes; then
19718 ac_cs_success=:
19719 ac_config_status_args=
19720 test "$silent" = yes &&
19721 ac_config_status_args="$ac_config_status_args --quiet"
19722 exec 5>/dev/null
19723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19724 exec 5>>config.log
19725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19726 # would make configure fail if this is the last instruction.
19727 $ac_cs_success || { (exit 1); exit 1; }