configure: Regenerate
[emacs.git] / configure
blob9c3d5403a84898cad4a0cf6c14f08147befac5ac
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 cat >conftest.$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 #include <X11/Xlib.h>
8906 #include <X11/Xresource.h>
8908 main ()
8910 Display *display;
8911 XrmDatabase db;
8912 char *res_name;
8913 char *res_class;
8914 XIMProc callback;
8915 XPointer *client_data;
8916 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
8917 client_data);
8919 return 0;
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 emacs_cv_arg6_star=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8940 rm -f conftest.$ac_objext conftest.$ac_ext
8942 if test "$emacs_cv_arg6_star" = yes; then
8943 cat >>confdefs.h <<\_ACEOF
8944 #define XRegisterIMInstantiateCallback_arg6 XPointer*
8945 _ACEOF
8947 else
8948 cat >>confdefs.h <<\_ACEOF
8949 #define XRegisterIMInstantiateCallback_arg6 XPointer
8950 _ACEOF
8955 ### Use -lXpm if available, unless `--with-xpm=no'.
8956 HAVE_XPM=no
8957 if test "${HAVE_X11}" = "yes"; then
8958 if test "${with_xpm}" != "no"; then
8959 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8960 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8961 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8967 else
8968 # Is the header compilable?
8969 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8970 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8979 #include <X11/xpm.h>
8980 _ACEOF
8981 rm -f conftest.$ac_objext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -s conftest.$ac_objext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_header_compiler=yes
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_header_compiler=no
9000 rm -f conftest.$ac_objext conftest.$ac_ext
9001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9002 echo "${ECHO_T}$ac_header_compiler" >&6
9004 # Is the header present?
9005 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9006 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <X11/xpm.h>
9015 _ACEOF
9016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } >/dev/null; then
9024 if test -s conftest.err; then
9025 ac_cpp_err=$ac_c_preproc_warn_flag
9026 else
9027 ac_cpp_err=
9029 else
9030 ac_cpp_err=yes
9032 if test -z "$ac_cpp_err"; then
9033 ac_header_preproc=yes
9034 else
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_header_preproc=no
9040 rm -f conftest.err conftest.$ac_ext
9041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9042 echo "${ECHO_T}$ac_header_preproc" >&6
9044 # So? What about this header?
9045 case $ac_header_compiler:$ac_header_preproc in
9046 yes:no )
9047 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9048 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9052 cat <<\_ASBOX
9053 ## ------------------------------------ ##
9054 ## Report this to bug-autoconf@gnu.org. ##
9055 ## ------------------------------------ ##
9056 _ASBOX
9058 sed "s/^/$as_me: WARNING: /" >&2
9060 no:yes )
9061 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9062 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9064 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9068 cat <<\_ASBOX
9069 ## ------------------------------------ ##
9070 ## Report this to bug-autoconf@gnu.org. ##
9071 ## ------------------------------------ ##
9072 _ASBOX
9074 sed "s/^/$as_me: WARNING: /" >&2
9076 esac
9077 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9078 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9079 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082 ac_cv_header_X11_xpm_h=$ac_header_preproc
9084 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9085 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9088 if test $ac_cv_header_X11_xpm_h = yes; then
9089 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9090 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9091 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 ac_check_lib_save_LIBS=$LIBS
9095 LIBS="-lXpm -lX11 $LIBS"
9096 cat >conftest.$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9110 char XpmReadFileToPixmap ();
9112 main ()
9114 XpmReadFileToPixmap ();
9116 return 0;
9118 _ACEOF
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
9125 { ac_try='test -s conftest$ac_exeext'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9132 else
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9139 LIBS=$ac_check_lib_save_LIBS
9141 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9142 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9143 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9144 HAVE_XPM=yes
9150 if test "${HAVE_XPM}" = "yes"; then
9151 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9152 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include "X11/xpm.h"
9161 #ifndef XpmReturnAllocPixels
9162 no_return_alloc_pixels
9163 #endif
9165 _ACEOF
9166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9167 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9168 HAVE_XPM=no
9169 else
9170 HAVE_XPM=yes
9172 rm -f conftest*
9175 if test "${HAVE_XPM}" = "yes"; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177 echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9185 if test "${HAVE_XPM}" = "yes"; then
9187 cat >>confdefs.h <<\_ACEOF
9188 #define HAVE_XPM 1
9189 _ACEOF
9194 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9195 HAVE_JPEG=no
9196 if test "${HAVE_X11}" = "yes"; then
9197 if test "${with_jpeg}" != "no"; then
9198 if test "${ac_cv_header_jerror_h+set}" = set; then
9199 echo "$as_me:$LINENO: checking for jerror.h" >&5
9200 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9201 if test "${ac_cv_header_jerror_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9206 else
9207 # Is the header compilable?
9208 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9209 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9210 cat >conftest.$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9218 #include <jerror.h>
9219 _ACEOF
9220 rm -f conftest.$ac_objext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_header_compiler=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_compiler=no
9239 rm -f conftest.$ac_objext conftest.$ac_ext
9240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6
9243 # Is the header present?
9244 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9245 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9248 /* confdefs.h. */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h. */
9253 #include <jerror.h>
9254 _ACEOF
9255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 ac_status=$?
9258 grep -v '^ *+' conftest.er1 >conftest.err
9259 rm -f conftest.er1
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } >/dev/null; then
9263 if test -s conftest.err; then
9264 ac_cpp_err=$ac_c_preproc_warn_flag
9265 else
9266 ac_cpp_err=
9268 else
9269 ac_cpp_err=yes
9271 if test -z "$ac_cpp_err"; then
9272 ac_header_preproc=yes
9273 else
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_header_preproc=no
9279 rm -f conftest.err conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9281 echo "${ECHO_T}$ac_header_preproc" >&6
9283 # So? What about this header?
9284 case $ac_header_compiler:$ac_header_preproc in
9285 yes:no )
9286 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9287 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9289 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9291 cat <<\_ASBOX
9292 ## ------------------------------------ ##
9293 ## Report this to bug-autoconf@gnu.org. ##
9294 ## ------------------------------------ ##
9295 _ASBOX
9297 sed "s/^/$as_me: WARNING: /" >&2
9299 no:yes )
9300 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9301 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9303 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9305 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9307 cat <<\_ASBOX
9308 ## ------------------------------------ ##
9309 ## Report this to bug-autoconf@gnu.org. ##
9310 ## ------------------------------------ ##
9311 _ASBOX
9313 sed "s/^/$as_me: WARNING: /" >&2
9315 esac
9316 echo "$as_me:$LINENO: checking for jerror.h" >&5
9317 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9318 if test "${ac_cv_header_jerror_h+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 ac_cv_header_jerror_h=$ac_header_preproc
9323 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9324 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9327 if test $ac_cv_header_jerror_h = yes; then
9328 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9329 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9330 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-ljpeg $LIBS"
9335 cat >conftest.$ac_ext <<_ACEOF
9336 #line $LINENO "configure"
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9343 /* Override any gcc2 internal prototype to avoid an error. */
9344 #ifdef __cplusplus
9345 extern "C"
9346 #endif
9347 /* We use char because int might match the return type of a gcc2
9348 builtin and then its argument prototype would still apply. */
9349 char jpeg_destroy_compress ();
9351 main ()
9353 jpeg_destroy_compress ();
9355 return 0;
9357 _ACEOF
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9378 LIBS=$ac_check_lib_save_LIBS
9380 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9381 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9382 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9383 HAVE_JPEG=yes
9392 if test "${HAVE_JPEG}" = "yes"; then
9393 cat >>confdefs.h <<\_ACEOF
9394 #define HAVE_JPEG 1
9395 _ACEOF
9397 cat >conftest.$ac_ext <<_ACEOF
9398 #line $LINENO "configure"
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 #include <jpeglib.h>
9405 version=JPEG_LIB_VERSION
9407 _ACEOF
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9410 cat >>confdefs.h <<\_ACEOF
9411 #define HAVE_JPEG 1
9412 _ACEOF
9414 else
9415 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9416 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9417 HAVE_JPEG=no
9419 rm -f conftest*
9424 ### Use -lpng if available, unless `--with-png=no'.
9425 HAVE_PNG=no
9426 if test "${HAVE_X11}" = "yes"; then
9427 if test "${with_png}" != "no"; then
9428 if test "${ac_cv_header_png_h+set}" = set; then
9429 echo "$as_me:$LINENO: checking for png.h" >&5
9430 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9431 if test "${ac_cv_header_png_h+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9435 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9436 else
9437 # Is the header compilable?
9438 echo "$as_me:$LINENO: checking png.h usability" >&5
9439 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9448 #include <png.h>
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_header_compiler=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_header_compiler=no
9469 rm -f conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9471 echo "${ECHO_T}$ac_header_compiler" >&6
9473 # Is the header present?
9474 echo "$as_me:$LINENO: checking png.h presence" >&5
9475 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <png.h>
9484 _ACEOF
9485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } >/dev/null; then
9493 if test -s conftest.err; then
9494 ac_cpp_err=$ac_c_preproc_warn_flag
9495 else
9496 ac_cpp_err=
9498 else
9499 ac_cpp_err=yes
9501 if test -z "$ac_cpp_err"; then
9502 ac_header_preproc=yes
9503 else
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_header_preproc=no
9509 rm -f conftest.err conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc in
9515 yes:no )
9516 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9519 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9521 cat <<\_ASBOX
9522 ## ------------------------------------ ##
9523 ## Report this to bug-autoconf@gnu.org. ##
9524 ## ------------------------------------ ##
9525 _ASBOX
9527 sed "s/^/$as_me: WARNING: /" >&2
9529 no:yes )
9530 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9531 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9533 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9535 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9537 cat <<\_ASBOX
9538 ## ------------------------------------ ##
9539 ## Report this to bug-autoconf@gnu.org. ##
9540 ## ------------------------------------ ##
9541 _ASBOX
9543 sed "s/^/$as_me: WARNING: /" >&2
9545 esac
9546 echo "$as_me:$LINENO: checking for png.h" >&5
9547 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9548 if test "${ac_cv_header_png_h+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_cv_header_png_h=$ac_header_preproc
9553 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9554 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9557 if test $ac_cv_header_png_h = yes; then
9558 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9559 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9560 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563 ac_check_lib_save_LIBS=$LIBS
9564 LIBS="-lpng -lz -lm $LIBS"
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char png_get_channels ();
9581 main ()
9583 png_get_channels ();
9585 return 0;
9587 _ACEOF
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_png_png_get_channels=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_png_png_get_channels=no
9607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_lib_save_LIBS
9610 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9611 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9612 if test $ac_cv_lib_png_png_get_channels = yes; then
9613 HAVE_PNG=yes
9621 if test "${HAVE_PNG}" = "yes"; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_PNG 1
9625 _ACEOF
9630 ### Use -ltiff if available, unless `--with-tiff=no'.
9631 HAVE_TIFF=no
9632 if test "${HAVE_X11}" = "yes"; then
9633 if test "${with_tiff}" != "no"; then
9634 if test "${ac_cv_header_tiffio_h+set}" = set; then
9635 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9636 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_tiffio_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9641 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9642 else
9643 # Is the header compilable?
9644 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9645 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9646 cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9648 /* confdefs.h. */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9654 #include <tiffio.h>
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_header_compiler=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_header_compiler=no
9675 rm -f conftest.$ac_objext conftest.$ac_ext
9676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9677 echo "${ECHO_T}$ac_header_compiler" >&6
9679 # Is the header present?
9680 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9681 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9682 cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 #include <tiffio.h>
9690 _ACEOF
9691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev/null; then
9699 if test -s conftest.err; then
9700 ac_cpp_err=$ac_c_preproc_warn_flag
9701 else
9702 ac_cpp_err=
9704 else
9705 ac_cpp_err=yes
9707 if test -z "$ac_cpp_err"; then
9708 ac_header_preproc=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_header_preproc=no
9715 rm -f conftest.err conftest.$ac_ext
9716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9717 echo "${ECHO_T}$ac_header_preproc" >&6
9719 # So? What about this header?
9720 case $ac_header_compiler:$ac_header_preproc in
9721 yes:no )
9722 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9723 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9727 cat <<\_ASBOX
9728 ## ------------------------------------ ##
9729 ## Report this to bug-autoconf@gnu.org. ##
9730 ## ------------------------------------ ##
9731 _ASBOX
9733 sed "s/^/$as_me: WARNING: /" >&2
9735 no:yes )
9736 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9737 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9739 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9741 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9743 cat <<\_ASBOX
9744 ## ------------------------------------ ##
9745 ## Report this to bug-autoconf@gnu.org. ##
9746 ## ------------------------------------ ##
9747 _ASBOX
9749 sed "s/^/$as_me: WARNING: /" >&2
9751 esac
9752 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9753 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9754 if test "${ac_cv_header_tiffio_h+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 ac_cv_header_tiffio_h=$ac_header_preproc
9759 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9760 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9763 if test $ac_cv_header_tiffio_h = yes; then
9764 tifflibs="-lz -lm"
9765 # At least one tiff package requires the jpeg library.
9766 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9767 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9768 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9769 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-ltiff $tifflibs $LIBS"
9774 cat >conftest.$ac_ext <<_ACEOF
9775 #line $LINENO "configure"
9776 /* confdefs.h. */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any gcc2 internal prototype to avoid an error. */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char TIFFGetVersion ();
9790 main ()
9792 TIFFGetVersion ();
9794 return 0;
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_lib_tiff_TIFFGetVersion=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_cv_lib_tiff_TIFFGetVersion=no
9816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9819 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9820 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9821 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9822 HAVE_TIFF=yes
9830 if test "${HAVE_TIFF}" = "yes"; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_TIFF 1
9834 _ACEOF
9839 ### Use -lgif if available, unless `--with-gif=no'.
9840 HAVE_GIF=no
9841 if test "${HAVE_X11}" = "yes"; then
9842 if test "${with_gif}" != "no"; then
9843 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9844 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9845 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9846 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9850 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9851 else
9852 # Is the header compilable?
9853 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9854 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9855 cat >conftest.$ac_ext <<_ACEOF
9856 #line $LINENO "configure"
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 $ac_includes_default
9863 #include <gif_lib.h>
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler=yes
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_header_compiler=no
9884 rm -f conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9890 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <gif_lib.h>
9899 _ACEOF
9900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9902 ac_status=$?
9903 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1
9905 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } >/dev/null; then
9908 if test -s conftest.err; then
9909 ac_cpp_err=$ac_c_preproc_warn_flag
9910 else
9911 ac_cpp_err=
9913 else
9914 ac_cpp_err=yes
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc=yes
9918 else
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_preproc=no
9924 rm -f conftest.err conftest.$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc in
9930 yes:no )
9931 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9934 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9936 cat <<\_ASBOX
9937 ## ------------------------------------ ##
9938 ## Report this to bug-autoconf@gnu.org. ##
9939 ## ------------------------------------ ##
9940 _ASBOX
9942 sed "s/^/$as_me: WARNING: /" >&2
9944 no:yes )
9945 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9946 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9948 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9950 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9952 cat <<\_ASBOX
9953 ## ------------------------------------ ##
9954 ## Report this to bug-autoconf@gnu.org. ##
9955 ## ------------------------------------ ##
9956 _ASBOX
9958 sed "s/^/$as_me: WARNING: /" >&2
9960 esac
9961 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9962 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9963 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966 ac_cv_header_gif_lib_h=$ac_header_preproc
9968 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9969 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9972 if test $ac_cv_header_gif_lib_h = yes; then
9973 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9974 # Earlier versions can crash Emacs.
9975 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9976 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9977 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980 ac_check_lib_save_LIBS=$LIBS
9981 LIBS="-lungif $LIBS"
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9990 /* Override any gcc2 internal prototype to avoid an error. */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
9996 char EGifPutExtensionLast ();
9998 main ()
10000 EGifPutExtensionLast ();
10002 return 0;
10004 _ACEOF
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007 (eval $ac_link) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_cv_lib_ungif_EGifPutExtensionLast=no
10024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10027 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10028 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
10029 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10030 HAVE_GIF=yes
10038 if test "${HAVE_GIF}" = "yes"; then
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_GIF 1
10042 _ACEOF
10047 ### Use Mac OS X Carbon API to implement GUI.
10048 HAVE_CARBON=no
10049 if test "${with_carbon}" != "no"; then
10050 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10051 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10052 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10053 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10057 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10058 else
10059 # Is the header compilable?
10060 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10061 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10062 cat >conftest.$ac_ext <<_ACEOF
10063 #line $LINENO "configure"
10064 /* confdefs.h. */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10069 $ac_includes_default
10070 #include <Carbon/Carbon.h>
10071 _ACEOF
10072 rm -f conftest.$ac_objext
10073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10074 (eval $ac_compile) 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -s conftest.$ac_objext'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; }; then
10084 ac_header_compiler=yes
10085 else
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_header_compiler=no
10091 rm -f conftest.$ac_objext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6
10095 # Is the header present?
10096 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10097 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 #include <Carbon/Carbon.h>
10106 _ACEOF
10107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } >/dev/null; then
10115 if test -s conftest.err; then
10116 ac_cpp_err=$ac_c_preproc_warn_flag
10117 else
10118 ac_cpp_err=
10120 else
10121 ac_cpp_err=yes
10123 if test -z "$ac_cpp_err"; then
10124 ac_header_preproc=yes
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_header_preproc=no
10131 rm -f conftest.err conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc in
10137 yes:no )
10138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10143 cat <<\_ASBOX
10144 ## ------------------------------------ ##
10145 ## Report this to bug-autoconf@gnu.org. ##
10146 ## ------------------------------------ ##
10147 _ASBOX
10149 sed "s/^/$as_me: WARNING: /" >&2
10151 no:yes )
10152 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10153 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10155 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10157 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10159 cat <<\_ASBOX
10160 ## ------------------------------------ ##
10161 ## Report this to bug-autoconf@gnu.org. ##
10162 ## ------------------------------------ ##
10163 _ASBOX
10165 sed "s/^/$as_me: WARNING: /" >&2
10167 esac
10168 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10169 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10170 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10175 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10176 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10179 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10180 HAVE_CARBON=yes
10186 if test "${HAVE_CARBON}" = "yes"; then
10188 cat >>confdefs.h <<\_ACEOF
10189 #define HAVE_CARBON 1
10190 _ACEOF
10192 window_system=mac
10193 ## Specify the install directory
10194 carbon_appdir=
10195 if test "${carbon_appdir_x}" != ""; then
10196 case ${carbon_appdir_x} in
10197 y | ye | yes) carbon_appdir=/Applications ;;
10198 * ) carbon_appdir=${carbon_appdir_x} ;;
10199 esac
10201 # We also have mouse menus.
10202 HAVE_MENUS=yes
10205 ### Use session management (-lSM -lICE) if available
10206 HAVE_X_SM=no
10207 if test "${HAVE_X11}" = "yes"; then
10208 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10209 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10210 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10211 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10215 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10216 else
10217 # Is the header compilable?
10218 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10219 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 #include <X11/SM/SMlib.h>
10229 _ACEOF
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest.$ac_objext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_header_compiler=yes
10243 else
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ac_header_compiler=no
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10251 echo "${ECHO_T}$ac_header_compiler" >&6
10253 # Is the header present?
10254 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10255 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10258 /* confdefs.h. */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 #include <X11/SM/SMlib.h>
10264 _ACEOF
10265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } >/dev/null; then
10273 if test -s conftest.err; then
10274 ac_cpp_err=$ac_c_preproc_warn_flag
10275 else
10276 ac_cpp_err=
10278 else
10279 ac_cpp_err=yes
10281 if test -z "$ac_cpp_err"; then
10282 ac_header_preproc=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_header_preproc=no
10289 rm -f conftest.err conftest.$ac_ext
10290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10291 echo "${ECHO_T}$ac_header_preproc" >&6
10293 # So? What about this header?
10294 case $ac_header_compiler:$ac_header_preproc in
10295 yes:no )
10296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10297 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10301 cat <<\_ASBOX
10302 ## ------------------------------------ ##
10303 ## Report this to bug-autoconf@gnu.org. ##
10304 ## ------------------------------------ ##
10305 _ASBOX
10307 sed "s/^/$as_me: WARNING: /" >&2
10309 no:yes )
10310 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10311 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10312 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10313 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10314 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10315 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10317 cat <<\_ASBOX
10318 ## ------------------------------------ ##
10319 ## Report this to bug-autoconf@gnu.org. ##
10320 ## ------------------------------------ ##
10321 _ASBOX
10323 sed "s/^/$as_me: WARNING: /" >&2
10325 esac
10326 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10327 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10328 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10333 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10334 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10337 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10338 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10339 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10340 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 ac_check_lib_save_LIBS=$LIBS
10344 LIBS="-lSM $LIBS"
10345 cat >conftest.$ac_ext <<_ACEOF
10346 #line $LINENO "configure"
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char SmcOpenConnection ();
10361 main ()
10363 SmcOpenConnection ();
10365 return 0;
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_lib_SM_SmcOpenConnection=yes
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_lib_SM_SmcOpenConnection=no
10387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10390 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10391 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10392 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10393 HAVE_X_SM=yes
10394 else
10395 -lICE
10402 if test "${HAVE_X_SM}" = "yes"; then
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_X_SM 1
10406 _ACEOF
10408 case "$LIBS" in
10409 *-lSM*) ;;
10410 *) LIBS="-lSM -lICE $LIBS" ;;
10411 esac
10415 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10416 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10417 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10418 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 #include <netdb.h>
10430 main ()
10432 return h_errno;
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 emacs_cv_netdb_declares_h_errno=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 emacs_cv_netdb_declares_h_errno=no
10456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10458 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10459 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10460 if test $emacs_cv_netdb_declares_h_errno = yes; then
10462 cat >>confdefs.h <<\_ACEOF
10463 #define HAVE_H_ERRNO 1
10464 _ACEOF
10468 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10469 # for constant arguments. Useless!
10470 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10471 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10472 if test "${ac_cv_working_alloca_h+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 #include <alloca.h>
10484 main ()
10486 char *p = (char *) alloca (2 * sizeof (int));
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493 (eval $ac_link) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -s conftest$ac_exeext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_working_alloca_h=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_working_alloca_h=no
10510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10513 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10514 if test $ac_cv_working_alloca_h = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_ALLOCA_H 1
10518 _ACEOF
10522 echo "$as_me:$LINENO: checking for alloca" >&5
10523 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10524 if test "${ac_cv_func_alloca_works+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 #line $LINENO "configure"
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 #ifdef __GNUC__
10535 # define alloca __builtin_alloca
10536 #else
10537 # ifdef _MSC_VER
10538 # include <malloc.h>
10539 # define alloca _alloca
10540 # else
10541 # if HAVE_ALLOCA_H
10542 # include <alloca.h>
10543 # else
10544 # ifdef _AIX
10545 #pragma alloca
10546 # else
10547 # ifndef alloca /* predefined by HP cc +Olibcalls */
10548 char *alloca ();
10549 # endif
10550 # endif
10551 # endif
10552 # endif
10553 #endif
10556 main ()
10558 char *p = (char *) alloca (1);
10560 return 0;
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest$ac_exeext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_func_alloca_works=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_func_alloca_works=no
10582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10585 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10587 if test $ac_cv_func_alloca_works = yes; then
10589 cat >>confdefs.h <<\_ACEOF
10590 #define HAVE_ALLOCA 1
10591 _ACEOF
10593 else
10594 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10595 # that cause trouble. Some versions do not even contain alloca or
10596 # contain a buggy version. If you still want to use their alloca,
10597 # use ar to extract alloca.o from them instead of compiling alloca.c.
10599 ALLOCA=alloca.$ac_objext
10601 cat >>confdefs.h <<\_ACEOF
10602 #define C_ALLOCA 1
10603 _ACEOF
10606 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10607 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10608 if test "${ac_cv_os_cray+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 #if defined(CRAY) && ! defined(CRAY2)
10619 webecray
10620 #else
10621 wenotbecray
10622 #endif
10624 _ACEOF
10625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10626 $EGREP "webecray" >/dev/null 2>&1; then
10627 ac_cv_os_cray=yes
10628 else
10629 ac_cv_os_cray=no
10631 rm -f conftest*
10634 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10635 echo "${ECHO_T}$ac_cv_os_cray" >&6
10636 if test $ac_cv_os_cray = yes; then
10637 for ac_func in _getb67 GETB67 getb67; do
10638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10639 echo "$as_me:$LINENO: checking for $ac_func" >&5
10640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10641 if eval "test \"\${$as_ac_var+set}\" = set"; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 /* confdefs.h. */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char $ac_func (); below.
10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654 <limits.h> exists even on freestanding compilers. */
10655 #ifdef __STDC__
10656 # include <limits.h>
10657 #else
10658 # include <assert.h>
10659 #endif
10660 /* Override any gcc2 internal prototype to avoid an error. */
10661 #ifdef __cplusplus
10662 extern "C"
10664 #endif
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10667 char $ac_func ();
10668 /* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10672 choke me
10673 #else
10674 char (*f) () = $ac_func;
10675 #endif
10676 #ifdef __cplusplus
10678 #endif
10681 main ()
10683 return f != $ac_func;
10685 return 0;
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690 (eval $ac_link) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } &&
10694 { ac_try='test -s conftest$ac_exeext'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
10700 eval "$as_ac_var=yes"
10701 else
10702 echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 eval "$as_ac_var=no"
10707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10711 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713 cat >>confdefs.h <<_ACEOF
10714 #define CRAY_STACKSEG_END $ac_func
10715 _ACEOF
10717 break
10720 done
10723 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10724 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10725 if test "${ac_cv_c_stack_direction+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 if test "$cross_compiling" = yes; then
10729 ac_cv_c_stack_direction=0
10730 else
10731 cat >conftest.$ac_ext <<_ACEOF
10732 #line $LINENO "configure"
10733 /* confdefs.h. */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10739 find_stack_direction ()
10741 static char *addr = 0;
10742 auto char dummy;
10743 if (addr == 0)
10745 addr = &dummy;
10746 return find_stack_direction ();
10748 else
10749 return (&dummy > addr) ? 1 : -1;
10753 main ()
10755 exit (find_stack_direction () < 0);
10757 _ACEOF
10758 rm -f conftest$ac_exeext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10760 (eval $ac_link) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 ac_cv_c_stack_direction=1
10770 else
10771 echo "$as_me: program exited with status $ac_status" >&5
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ( exit $ac_status )
10776 ac_cv_c_stack_direction=-1
10778 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10782 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10784 cat >>confdefs.h <<_ACEOF
10785 #define STACK_DIRECTION $ac_cv_c_stack_direction
10786 _ACEOF
10792 # fmod, logb, and frexp are found in -lm on most systems.
10793 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10795 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10796 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10797 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800 ac_check_lib_save_LIBS=$LIBS
10801 LIBS="-lm $LIBS"
10802 cat >conftest.$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char sqrt ();
10818 main ()
10820 sqrt ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 ac_cv_lib_m_sqrt=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_cv_lib_m_sqrt=no
10844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10848 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10849 if test $ac_cv_lib_m_sqrt = yes; then
10850 cat >>confdefs.h <<_ACEOF
10851 #define HAVE_LIBM 1
10852 _ACEOF
10854 LIBS="-lm $LIBS"
10859 # Check for mail-locking functions in a "mail" library. Probably this should
10860 # have the same check as for liblockfile below.
10862 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10863 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10864 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867 ac_check_lib_save_LIBS=$LIBS
10868 LIBS="-lmail $LIBS"
10869 cat >conftest.$ac_ext <<_ACEOF
10870 #line $LINENO "configure"
10871 /* confdefs.h. */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10877 /* Override any gcc2 internal prototype to avoid an error. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10883 char maillock ();
10885 main ()
10887 maillock ();
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_lib_mail_maillock=yes
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_cv_lib_mail_maillock=no
10911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10912 LIBS=$ac_check_lib_save_LIBS
10914 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10915 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10916 if test $ac_cv_lib_mail_maillock = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_LIBMAIL 1
10919 _ACEOF
10921 LIBS="-lmail $LIBS"
10926 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10927 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10928 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-llockfile $LIBS"
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10935 /* confdefs.h. */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10941 /* Override any gcc2 internal prototype to avoid an error. */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 /* We use char because int might match the return type of a gcc2
10946 builtin and then its argument prototype would still apply. */
10947 char maillock ();
10949 main ()
10951 maillock ();
10953 return 0;
10955 _ACEOF
10956 rm -f conftest.$ac_objext conftest$ac_exeext
10957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10958 (eval $ac_link) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
10962 { ac_try='test -s conftest$ac_exeext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 ac_cv_lib_lockfile_maillock=yes
10969 else
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ac_cv_lib_lockfile_maillock=no
10975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_lib_save_LIBS
10978 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10979 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10980 if test $ac_cv_lib_lockfile_maillock = yes; then
10981 cat >>confdefs.h <<_ACEOF
10982 #define HAVE_LIBLOCKFILE 1
10983 _ACEOF
10985 LIBS="-llockfile $LIBS"
10989 # If we have the shared liblockfile, assume we must use it for mail
10990 # locking (e.g. Debian). If we couldn't link against liblockfile
10991 # (no liblockfile.a installed), ensure that we don't need to.
10992 if test "$ac_cv_lib_lockfile_maillock" = no; then
10993 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10994 set dummy liblockfile.so; ac_word=$2
10995 echo "$as_me:$LINENO: checking for $ac_word" >&5
10996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10997 if test "${ac_cv_prog_liblockfile+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000 if test -n "$liblockfile"; then
11001 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11002 else
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11005 for as_dir in $as_dummy
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_prog_liblockfile="yes"
11012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11015 done
11016 done
11018 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11021 liblockfile=$ac_cv_prog_liblockfile
11022 if test -n "$liblockfile"; then
11023 echo "$as_me:$LINENO: result: $liblockfile" >&5
11024 echo "${ECHO_T}$liblockfile" >&6
11025 else
11026 echo "$as_me:$LINENO: result: no" >&5
11027 echo "${ECHO_T}no" >&6
11030 if test $ac_cv_prog_liblockfile = yes; then
11031 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
11032 This probably means that movemail could lose mail.
11033 There may be a \`development' package to install containing liblockfile." >&5
11034 echo "$as_me: error: Shared liblockfile found but can't link against it.
11035 This probably means that movemail could lose mail.
11036 There may be a \`development' package to install containing liblockfile." >&2;}
11037 { (exit 1); exit 1; }; }
11038 else :
11042 for ac_func in touchlock
11044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045 echo "$as_me:$LINENO: checking for $ac_func" >&5
11046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11047 if eval "test \"\${$as_ac_var+set}\" = set"; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 cat >conftest.$ac_ext <<_ACEOF
11051 #line $LINENO "configure"
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11061 #ifdef __STDC__
11062 # include <limits.h>
11063 #else
11064 # include <assert.h>
11065 #endif
11066 /* Override any gcc2 internal prototype to avoid an error. */
11067 #ifdef __cplusplus
11068 extern "C"
11070 #endif
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char $ac_func ();
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11078 choke me
11079 #else
11080 char (*f) () = $ac_func;
11081 #endif
11082 #ifdef __cplusplus
11084 #endif
11087 main ()
11089 return f != $ac_func;
11091 return 0;
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -s conftest$ac_exeext'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 eval "$as_ac_var=yes"
11107 else
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 eval "$as_ac_var=no"
11113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h <<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120 _ACEOF
11123 done
11126 for ac_header in maillock.h
11128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11130 echo "$as_me:$LINENO: checking for $ac_header" >&5
11131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11137 else
11138 # Is the header compilable?
11139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 $ac_includes_default
11149 #include <$ac_header>
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_header_compiler=yes
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_compiler=no
11170 rm -f conftest.$ac_objext conftest.$ac_ext
11171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11172 echo "${ECHO_T}$ac_header_compiler" >&6
11174 # Is the header present?
11175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11179 /* confdefs.h. */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <$ac_header>
11185 _ACEOF
11186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } >/dev/null; then
11194 if test -s conftest.err; then
11195 ac_cpp_err=$ac_c_preproc_warn_flag
11196 else
11197 ac_cpp_err=
11199 else
11200 ac_cpp_err=yes
11202 if test -z "$ac_cpp_err"; then
11203 ac_header_preproc=yes
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 ac_header_preproc=no
11210 rm -f conftest.err conftest.$ac_ext
11211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11212 echo "${ECHO_T}$ac_header_preproc" >&6
11214 # So? What about this header?
11215 case $ac_header_compiler:$ac_header_preproc in
11216 yes:no )
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222 cat <<\_ASBOX
11223 ## ------------------------------------ ##
11224 ## Report this to bug-autoconf@gnu.org. ##
11225 ## ------------------------------------ ##
11226 _ASBOX
11228 sed "s/^/$as_me: WARNING: /" >&2
11230 no:yes )
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238 cat <<\_ASBOX
11239 ## ------------------------------------ ##
11240 ## Report this to bug-autoconf@gnu.org. ##
11241 ## ------------------------------------ ##
11242 _ASBOX
11244 sed "s/^/$as_me: WARNING: /" >&2
11246 esac
11247 echo "$as_me:$LINENO: checking for $ac_header" >&5
11248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252 eval "$as_ac_Header=$ac_header_preproc"
11254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11261 _ACEOF
11265 done
11334 for ac_func in gethostname getdomainname dup2 \
11335 rename closedir mkdir rmdir sysinfo \
11336 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11337 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11338 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11339 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11340 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11341 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
11342 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen
11344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11345 echo "$as_me:$LINENO: checking for $ac_func" >&5
11346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11347 if eval "test \"\${$as_ac_var+set}\" = set"; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 #line $LINENO "configure"
11352 /* confdefs.h. */
11353 _ACEOF
11354 cat confdefs.h >>conftest.$ac_ext
11355 cat >>conftest.$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11361 #ifdef __STDC__
11362 # include <limits.h>
11363 #else
11364 # include <assert.h>
11365 #endif
11366 /* Override any gcc2 internal prototype to avoid an error. */
11367 #ifdef __cplusplus
11368 extern "C"
11370 #endif
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11373 char $ac_func ();
11374 /* The GNU C library defines this for functions which it implements
11375 to always fail with ENOSYS. Some functions are actually named
11376 something starting with __ and the normal name is an alias. */
11377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11378 choke me
11379 #else
11380 char (*f) () = $ac_func;
11381 #endif
11382 #ifdef __cplusplus
11384 #endif
11387 main ()
11389 return f != $ac_func;
11391 return 0;
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 eval "$as_ac_var=yes"
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11411 eval "$as_ac_var=no"
11413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11417 if test `eval echo '${'$as_ac_var'}'` = yes; then
11418 cat >>confdefs.h <<_ACEOF
11419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11420 _ACEOF
11423 done
11427 for ac_header in sys/un.h
11429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11431 echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11438 else
11439 # Is the header compilable?
11440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 #line $LINENO "configure"
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11454 (eval $ac_compile) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -s conftest.$ac_objext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 ac_header_compiler=yes
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11469 ac_header_compiler=no
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11473 echo "${ECHO_T}$ac_header_compiler" >&6
11475 # Is the header present?
11476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11478 cat >conftest.$ac_ext <<_ACEOF
11479 #line $LINENO "configure"
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #include <$ac_header>
11486 _ACEOF
11487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev/null; then
11495 if test -s conftest.err; then
11496 ac_cpp_err=$ac_c_preproc_warn_flag
11497 else
11498 ac_cpp_err=
11500 else
11501 ac_cpp_err=yes
11503 if test -z "$ac_cpp_err"; then
11504 ac_header_preproc=yes
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_header_preproc=no
11511 rm -f conftest.err conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11513 echo "${ECHO_T}$ac_header_preproc" >&6
11515 # So? What about this header?
11516 case $ac_header_compiler:$ac_header_preproc in
11517 yes:no )
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11523 cat <<\_ASBOX
11524 ## ------------------------------------ ##
11525 ## Report this to bug-autoconf@gnu.org. ##
11526 ## ------------------------------------ ##
11527 _ASBOX
11529 sed "s/^/$as_me: WARNING: /" >&2
11531 no:yes )
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11539 cat <<\_ASBOX
11540 ## ------------------------------------ ##
11541 ## Report this to bug-autoconf@gnu.org. ##
11542 ## ------------------------------------ ##
11543 _ASBOX
11545 sed "s/^/$as_me: WARNING: /" >&2
11547 esac
11548 echo "$as_me:$LINENO: checking for $ac_header" >&5
11549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553 eval "$as_ac_Header=$ac_header_preproc"
11555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562 _ACEOF
11566 done
11571 for ac_header in sys/time.h unistd.h
11573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11575 echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11582 else
11583 # Is the header compilable?
11584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11586 cat >conftest.$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11588 /* confdefs.h. */
11589 _ACEOF
11590 cat confdefs.h >>conftest.$ac_ext
11591 cat >>conftest.$ac_ext <<_ACEOF
11592 /* end confdefs.h. */
11593 $ac_includes_default
11594 #include <$ac_header>
11595 _ACEOF
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_header_compiler=yes
11609 else
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_header_compiler=no
11615 rm -f conftest.$ac_objext conftest.$ac_ext
11616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11617 echo "${ECHO_T}$ac_header_compiler" >&6
11619 # Is the header present?
11620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 #include <$ac_header>
11630 _ACEOF
11631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } >/dev/null; then
11639 if test -s conftest.err; then
11640 ac_cpp_err=$ac_c_preproc_warn_flag
11641 else
11642 ac_cpp_err=
11644 else
11645 ac_cpp_err=yes
11647 if test -z "$ac_cpp_err"; then
11648 ac_header_preproc=yes
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ac_header_preproc=no
11655 rm -f conftest.err conftest.$ac_ext
11656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11657 echo "${ECHO_T}$ac_header_preproc" >&6
11659 # So? What about this header?
11660 case $ac_header_compiler:$ac_header_preproc in
11661 yes:no )
11662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11667 cat <<\_ASBOX
11668 ## ------------------------------------ ##
11669 ## Report this to bug-autoconf@gnu.org. ##
11670 ## ------------------------------------ ##
11671 _ASBOX
11673 sed "s/^/$as_me: WARNING: /" >&2
11675 no:yes )
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11683 cat <<\_ASBOX
11684 ## ------------------------------------ ##
11685 ## Report this to bug-autoconf@gnu.org. ##
11686 ## ------------------------------------ ##
11687 _ASBOX
11689 sed "s/^/$as_me: WARNING: /" >&2
11691 esac
11692 echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697 eval "$as_ac_Header=$ac_header_preproc"
11699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11704 cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11706 _ACEOF
11710 done
11713 for ac_func in alarm
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_var+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 cat >conftest.$ac_ext <<_ACEOF
11722 #line $LINENO "configure"
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 /* System header to define __stub macros and hopefully few prototypes,
11729 which can conflict with char $ac_func (); below.
11730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731 <limits.h> exists even on freestanding compilers. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11737 /* Override any gcc2 internal prototype to avoid an error. */
11738 #ifdef __cplusplus
11739 extern "C"
11741 #endif
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744 char $ac_func ();
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11749 choke me
11750 #else
11751 char (*f) () = $ac_func;
11752 #endif
11753 #ifdef __cplusplus
11755 #endif
11758 main ()
11760 return f != $ac_func;
11762 return 0;
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767 (eval $ac_link) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 eval "$as_ac_var=yes"
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 eval "$as_ac_var=no"
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11791 _ACEOF
11794 done
11796 echo "$as_me:$LINENO: checking for working mktime" >&5
11797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11798 if test "${ac_cv_func_working_mktime+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 if test "$cross_compiling" = yes; then
11802 ac_cv_func_working_mktime=no
11803 else
11804 cat >conftest.$ac_ext <<_ACEOF
11805 #line $LINENO "configure"
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 /* Test program from Paul Eggert and Tony Leneis. */
11812 #if TIME_WITH_SYS_TIME
11813 # include <sys/time.h>
11814 # include <time.h>
11815 #else
11816 # if HAVE_SYS_TIME_H
11817 # include <sys/time.h>
11818 # else
11819 # include <time.h>
11820 # endif
11821 #endif
11823 #if HAVE_UNISTD_H
11824 # include <unistd.h>
11825 #endif
11827 #if !HAVE_ALARM
11828 # define alarm(X) /* empty */
11829 #endif
11831 /* Work around redefinition to rpl_putenv by other config tests. */
11832 #undef putenv
11834 static time_t time_t_max;
11836 /* Values we'll use to set the TZ environment variable. */
11837 static const char *const tz_strings[] = {
11838 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11839 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11841 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11843 /* Fail if mktime fails to convert a date in the spring-forward gap.
11844 Based on a problem report from Andreas Jaeger. */
11845 static void
11846 spring_forward_gap ()
11848 /* glibc (up to about 1998-10-07) failed this test. */
11849 struct tm tm;
11851 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11852 instead of "TZ=America/Vancouver" in order to detect the bug even
11853 on systems that don't support the Olson extension, or don't have the
11854 full zoneinfo tables installed. */
11855 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11857 tm.tm_year = 98;
11858 tm.tm_mon = 3;
11859 tm.tm_mday = 5;
11860 tm.tm_hour = 2;
11861 tm.tm_min = 0;
11862 tm.tm_sec = 0;
11863 tm.tm_isdst = -1;
11864 if (mktime (&tm) == (time_t)-1)
11865 exit (1);
11868 static void
11869 mktime_test (now)
11870 time_t now;
11872 struct tm *lt;
11873 if ((lt = localtime (&now)) && mktime (lt) != now)
11874 exit (1);
11875 now = time_t_max - now;
11876 if ((lt = localtime (&now)) && mktime (lt) != now)
11877 exit (1);
11880 static void
11881 irix_6_4_bug ()
11883 /* Based on code from Ariel Faigon. */
11884 struct tm tm;
11885 tm.tm_year = 96;
11886 tm.tm_mon = 3;
11887 tm.tm_mday = 0;
11888 tm.tm_hour = 0;
11889 tm.tm_min = 0;
11890 tm.tm_sec = 0;
11891 tm.tm_isdst = -1;
11892 mktime (&tm);
11893 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11894 exit (1);
11897 static void
11898 bigtime_test (j)
11899 int j;
11901 struct tm tm;
11902 time_t now;
11903 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11904 now = mktime (&tm);
11905 if (now != (time_t) -1)
11907 struct tm *lt = localtime (&now);
11908 if (! (lt
11909 && lt->tm_year == tm.tm_year
11910 && lt->tm_mon == tm.tm_mon
11911 && lt->tm_mday == tm.tm_mday
11912 && lt->tm_hour == tm.tm_hour
11913 && lt->tm_min == tm.tm_min
11914 && lt->tm_sec == tm.tm_sec
11915 && lt->tm_yday == tm.tm_yday
11916 && lt->tm_wday == tm.tm_wday
11917 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11918 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11919 exit (1);
11924 main ()
11926 time_t t, delta;
11927 int i, j;
11929 /* This test makes some buggy mktime implementations loop.
11930 Give up after 60 seconds; a mktime slower than that
11931 isn't worth using anyway. */
11932 alarm (60);
11934 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11935 continue;
11936 time_t_max--;
11937 delta = time_t_max / 997; /* a suitable prime number */
11938 for (i = 0; i < N_STRINGS; i++)
11940 if (tz_strings[i])
11941 putenv (tz_strings[i]);
11943 for (t = 0; t <= time_t_max - delta; t += delta)
11944 mktime_test (t);
11945 mktime_test ((time_t) 60 * 60);
11946 mktime_test ((time_t) 60 * 60 * 24);
11948 for (j = 1; 0 < j; j *= 2)
11949 bigtime_test (j);
11950 bigtime_test (j - 1);
11952 irix_6_4_bug ();
11953 spring_forward_gap ();
11954 exit (0);
11956 _ACEOF
11957 rm -f conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 ac_cv_func_working_mktime=yes
11969 else
11970 echo "$as_me: program exited with status $ac_status" >&5
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11974 ( exit $ac_status )
11975 ac_cv_func_working_mktime=no
11977 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11981 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11982 if test $ac_cv_func_working_mktime = no; then
11983 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11986 if test "$ac_cv_func_working_mktime" = no; then
11988 cat >>confdefs.h <<\_ACEOF
11989 #define BROKEN_MKTIME 1
11990 _ACEOF
11994 ac_have_func=no # yes means we've found a way to get the load average.
11996 # Make sure getloadavg.c is where it belongs, at configure-time.
11997 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11998 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11999 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
12000 { (exit 1); exit 1; }; }
12002 ac_save_LIBS=$LIBS
12004 # Check for getloadavg, but be sure not to touch the cache variable.
12005 (echo "$as_me:$LINENO: checking for getloadavg" >&5
12006 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
12007 if test "${ac_cv_func_getloadavg+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 #line $LINENO "configure"
12012 /* confdefs.h. */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 /* System header to define __stub macros and hopefully few prototypes,
12018 which can conflict with char getloadavg (); below.
12019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12020 <limits.h> exists even on freestanding compilers. */
12021 #ifdef __STDC__
12022 # include <limits.h>
12023 #else
12024 # include <assert.h>
12025 #endif
12026 /* Override any gcc2 internal prototype to avoid an error. */
12027 #ifdef __cplusplus
12028 extern "C"
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12033 char getloadavg ();
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
12038 choke me
12039 #else
12040 char (*f) () = getloadavg;
12041 #endif
12042 #ifdef __cplusplus
12044 #endif
12047 main ()
12049 return f != getloadavg;
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -s conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_func_getloadavg=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_cv_func_getloadavg=no
12073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12076 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
12077 if test $ac_cv_func_getloadavg = yes; then
12078 exit 0
12079 else
12080 exit 1
12082 ) && ac_have_func=yes
12084 # On HPUX9, an unprivileged user can get load averages through this function.
12086 for ac_func in pstat_getdynamic
12088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12089 echo "$as_me:$LINENO: checking for $ac_func" >&5
12090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12091 if eval "test \"\${$as_ac_var+set}\" = set"; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 cat >conftest.$ac_ext <<_ACEOF
12095 #line $LINENO "configure"
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12105 #ifdef __STDC__
12106 # include <limits.h>
12107 #else
12108 # include <assert.h>
12109 #endif
12110 /* Override any gcc2 internal prototype to avoid an error. */
12111 #ifdef __cplusplus
12112 extern "C"
12114 #endif
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12117 char $ac_func ();
12118 /* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
12121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12122 choke me
12123 #else
12124 char (*f) () = $ac_func;
12125 #endif
12126 #ifdef __cplusplus
12128 #endif
12131 main ()
12133 return f != $ac_func;
12135 return 0;
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140 (eval $ac_link) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest$ac_exeext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 eval "$as_ac_var=yes"
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 eval "$as_ac_var=no"
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12161 if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12164 _ACEOF
12167 done
12170 # Solaris has libkstat which does not require root.
12172 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12173 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12174 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-lkstat $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12180 #line $LINENO "configure"
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12187 /* Override any gcc2 internal prototype to avoid an error. */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 /* We use char because int might match the return type of a gcc2
12192 builtin and then its argument prototype would still apply. */
12193 char kstat_open ();
12195 main ()
12197 kstat_open ();
12199 return 0;
12201 _ACEOF
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_kstat_kstat_open=yes
12215 else
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_cv_lib_kstat_kstat_open=no
12221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12225 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12226 if test $ac_cv_lib_kstat_kstat_open = yes; then
12227 cat >>confdefs.h <<_ACEOF
12228 #define HAVE_LIBKSTAT 1
12229 _ACEOF
12231 LIBS="-lkstat $LIBS"
12235 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12237 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12238 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12239 # to get the right answer into the cache.
12240 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12241 if test $ac_have_func = no; then
12242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-lelf $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line $LINENO "configure"
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12257 /* Override any gcc2 internal prototype to avoid an error. */
12258 #ifdef __cplusplus
12259 extern "C"
12260 #endif
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12263 char elf_begin ();
12265 main ()
12267 elf_begin ();
12269 return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -s conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_lib_elf_elf_begin=yes
12285 else
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_elf_elf_begin=no
12291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12295 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12296 if test $ac_cv_lib_elf_elf_begin = yes; then
12297 LIBS="-lelf $LIBS"
12301 if test $ac_have_func = no; then
12302 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12303 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12304 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lkvm $LIBS"
12309 cat >conftest.$ac_ext <<_ACEOF
12310 #line $LINENO "configure"
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12317 /* Override any gcc2 internal prototype to avoid an error. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12323 char kvm_open ();
12325 main ()
12327 kvm_open ();
12329 return 0;
12331 _ACEOF
12332 rm -f conftest.$ac_objext conftest$ac_exeext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12334 (eval $ac_link) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_kvm_kvm_open=yes
12345 else
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_cv_lib_kvm_kvm_open=no
12351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12355 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12356 if test $ac_cv_lib_kvm_kvm_open = yes; then
12357 LIBS="-lkvm $LIBS"
12360 # Check for the 4.4BSD definition of getloadavg.
12361 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12362 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12363 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-lutil $LIBS"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12370 /* confdefs.h. */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any gcc2 internal prototype to avoid an error. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 /* We use char because int might match the return type of a gcc2
12381 builtin and then its argument prototype would still apply. */
12382 char getloadavg ();
12384 main ()
12386 getloadavg ();
12388 return 0;
12390 _ACEOF
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12393 (eval $ac_link) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_lib_util_getloadavg=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_lib_util_getloadavg=no
12410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12411 LIBS=$ac_check_lib_save_LIBS
12413 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12414 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12415 if test $ac_cv_lib_util_getloadavg = yes; then
12416 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12421 if test $ac_have_func = no; then
12422 # There is a commonly available library for RS/6000 AIX.
12423 # Since it is not a standard part of AIX, it might be installed locally.
12424 ac_getloadavg_LIBS=$LIBS
12425 LIBS="-L/usr/local/lib $LIBS"
12426 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12427 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12428 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-lgetloadavg $LIBS"
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12441 /* Override any gcc2 internal prototype to avoid an error. */
12442 #ifdef __cplusplus
12443 extern "C"
12444 #endif
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447 char getloadavg ();
12449 main ()
12451 getloadavg ();
12453 return 0;
12455 _ACEOF
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -s conftest$ac_exeext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_lib_getloadavg_getloadavg=yes
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_lib_getloadavg_getloadavg=no
12475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12479 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12480 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12481 LIBS="-lgetloadavg $LIBS"
12482 else
12483 LIBS=$ac_getloadavg_LIBS
12488 # Make sure it is really in the library, if we think we found it,
12489 # otherwise set up the replacement function.
12491 for ac_func in getloadavg
12493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12494 echo "$as_me:$LINENO: checking for $ac_func" >&5
12495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_var+set}\" = set"; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499 cat >conftest.$ac_ext <<_ACEOF
12500 #line $LINENO "configure"
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12510 #ifdef __STDC__
12511 # include <limits.h>
12512 #else
12513 # include <assert.h>
12514 #endif
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 #ifdef __cplusplus
12517 extern "C"
12519 #endif
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12522 char $ac_func ();
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12527 choke me
12528 #else
12529 char (*f) () = $ac_func;
12530 #endif
12531 #ifdef __cplusplus
12533 #endif
12536 main ()
12538 return f != $ac_func;
12540 return 0;
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 eval "$as_ac_var=yes"
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 eval "$as_ac_var=no"
12562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12566 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569 _ACEOF
12571 else
12572 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12574 cat >>confdefs.h <<\_ACEOF
12575 #define C_GETLOADAVG 1
12576 _ACEOF
12578 # Figure out what our getloadavg.c needs.
12579 ac_have_func=no
12580 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12581 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12582 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12583 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12588 else
12589 # Is the header compilable?
12590 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12591 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12592 cat >conftest.$ac_ext <<_ACEOF
12593 #line $LINENO "configure"
12594 /* confdefs.h. */
12595 _ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 #include <sys/dg_sys_info.h>
12601 _ACEOF
12602 rm -f conftest.$ac_objext
12603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_header_compiler=yes
12615 else
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_header_compiler=no
12621 rm -f conftest.$ac_objext conftest.$ac_ext
12622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12623 echo "${ECHO_T}$ac_header_compiler" >&6
12625 # Is the header present?
12626 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12627 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12628 cat >conftest.$ac_ext <<_ACEOF
12629 #line $LINENO "configure"
12630 /* confdefs.h. */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <sys/dg_sys_info.h>
12636 _ACEOF
12637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } >/dev/null; then
12645 if test -s conftest.err; then
12646 ac_cpp_err=$ac_c_preproc_warn_flag
12647 else
12648 ac_cpp_err=
12650 else
12651 ac_cpp_err=yes
12653 if test -z "$ac_cpp_err"; then
12654 ac_header_preproc=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 ac_header_preproc=no
12661 rm -f conftest.err conftest.$ac_ext
12662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc in
12667 yes:no )
12668 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12671 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12673 cat <<\_ASBOX
12674 ## ------------------------------------ ##
12675 ## Report this to bug-autoconf@gnu.org. ##
12676 ## ------------------------------------ ##
12677 _ASBOX
12679 sed "s/^/$as_me: WARNING: /" >&2
12681 no:yes )
12682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12687 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12689 cat <<\_ASBOX
12690 ## ------------------------------------ ##
12691 ## Report this to bug-autoconf@gnu.org. ##
12692 ## ------------------------------------ ##
12693 _ASBOX
12695 sed "s/^/$as_me: WARNING: /" >&2
12697 esac
12698 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12699 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12700 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12706 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12709 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12710 ac_have_func=yes
12712 cat >>confdefs.h <<\_ACEOF
12713 #define DGUX 1
12714 _ACEOF
12717 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12718 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12719 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-ldgc $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12725 #line $LINENO "configure"
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any gcc2 internal prototype to avoid an error. */
12733 #ifdef __cplusplus
12734 extern "C"
12735 #endif
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12738 char dg_sys_info ();
12740 main ()
12742 dg_sys_info ();
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -s conftest$ac_exeext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_lib_dgc_dg_sys_info=yes
12760 else
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_cv_lib_dgc_dg_sys_info=no
12766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12767 LIBS=$ac_check_lib_save_LIBS
12769 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12770 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12771 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12772 cat >>confdefs.h <<_ACEOF
12773 #define HAVE_LIBDGC 1
12774 _ACEOF
12776 LIBS="-ldgc $LIBS"
12784 if test "${ac_cv_header_locale_h+set}" = set; then
12785 echo "$as_me:$LINENO: checking for locale.h" >&5
12786 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12787 if test "${ac_cv_header_locale_h+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12791 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12792 else
12793 # Is the header compilable?
12794 echo "$as_me:$LINENO: checking locale.h usability" >&5
12795 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12796 cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 #include <locale.h>
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_header_compiler=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12825 rm -f conftest.$ac_objext conftest.$ac_ext
12826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12827 echo "${ECHO_T}$ac_header_compiler" >&6
12829 # Is the header present?
12830 echo "$as_me:$LINENO: checking locale.h presence" >&5
12831 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12832 cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <locale.h>
12840 _ACEOF
12841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } >/dev/null; then
12849 if test -s conftest.err; then
12850 ac_cpp_err=$ac_c_preproc_warn_flag
12851 else
12852 ac_cpp_err=
12854 else
12855 ac_cpp_err=yes
12857 if test -z "$ac_cpp_err"; then
12858 ac_header_preproc=yes
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc in
12871 yes:no )
12872 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12873 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12875 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12877 cat <<\_ASBOX
12878 ## ------------------------------------ ##
12879 ## Report this to bug-autoconf@gnu.org. ##
12880 ## ------------------------------------ ##
12881 _ASBOX
12883 sed "s/^/$as_me: WARNING: /" >&2
12885 no:yes )
12886 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12887 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12889 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12891 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12893 cat <<\_ASBOX
12894 ## ------------------------------------ ##
12895 ## Report this to bug-autoconf@gnu.org. ##
12896 ## ------------------------------------ ##
12897 _ASBOX
12899 sed "s/^/$as_me: WARNING: /" >&2
12901 esac
12902 echo "$as_me:$LINENO: checking for locale.h" >&5
12903 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12904 if test "${ac_cv_header_locale_h+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907 ac_cv_header_locale_h=$ac_header_preproc
12909 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12910 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12916 for ac_func in setlocale
12918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12919 echo "$as_me:$LINENO: checking for $ac_func" >&5
12920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12921 if eval "test \"\${$as_ac_var+set}\" = set"; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924 cat >conftest.$ac_ext <<_ACEOF
12925 #line $LINENO "configure"
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* System header to define __stub macros and hopefully few prototypes,
12932 which can conflict with char $ac_func (); below.
12933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12934 <limits.h> exists even on freestanding compilers. */
12935 #ifdef __STDC__
12936 # include <limits.h>
12937 #else
12938 # include <assert.h>
12939 #endif
12940 /* Override any gcc2 internal prototype to avoid an error. */
12941 #ifdef __cplusplus
12942 extern "C"
12944 #endif
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char $ac_func ();
12948 /* The GNU C library defines this for functions which it implements
12949 to always fail with ENOSYS. Some functions are actually named
12950 something starting with __ and the normal name is an alias. */
12951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12952 choke me
12953 #else
12954 char (*f) () = $ac_func;
12955 #endif
12956 #ifdef __cplusplus
12958 #endif
12961 main ()
12963 return f != $ac_func;
12965 return 0;
12967 _ACEOF
12968 rm -f conftest.$ac_objext conftest$ac_exeext
12969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -s conftest$ac_exeext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 eval "$as_ac_var=yes"
12981 else
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 eval "$as_ac_var=no"
12987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12997 done
13000 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13001 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13002 # Irix 4.0.5F has the header but not the library.
13003 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
13004 ac_have_func=yes
13006 cat >>confdefs.h <<\_ACEOF
13007 #define SVR4 1
13008 _ACEOF
13012 if test $ac_have_func = no; then
13013 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13014 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13015 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13016 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13020 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13021 else
13022 # Is the header compilable?
13023 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13024 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13025 cat >conftest.$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 $ac_includes_default
13033 #include <inq_stats/cpustats.h>
13034 _ACEOF
13035 rm -f conftest.$ac_objext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037 (eval $ac_compile) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_header_compiler=yes
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_header_compiler=no
13054 rm -f conftest.$ac_objext conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13056 echo "${ECHO_T}$ac_header_compiler" >&6
13058 # Is the header present?
13059 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13060 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13061 cat >conftest.$ac_ext <<_ACEOF
13062 #line $LINENO "configure"
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <inq_stats/cpustats.h>
13069 _ACEOF
13070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } >/dev/null; then
13078 if test -s conftest.err; then
13079 ac_cpp_err=$ac_c_preproc_warn_flag
13080 else
13081 ac_cpp_err=
13083 else
13084 ac_cpp_err=yes
13086 if test -z "$ac_cpp_err"; then
13087 ac_header_preproc=yes
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 ac_header_preproc=no
13094 rm -f conftest.err conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13096 echo "${ECHO_T}$ac_header_preproc" >&6
13098 # So? What about this header?
13099 case $ac_header_compiler:$ac_header_preproc in
13100 yes:no )
13101 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13102 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13104 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13106 cat <<\_ASBOX
13107 ## ------------------------------------ ##
13108 ## Report this to bug-autoconf@gnu.org. ##
13109 ## ------------------------------------ ##
13110 _ASBOX
13112 sed "s/^/$as_me: WARNING: /" >&2
13114 no:yes )
13115 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13116 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13118 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13120 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13122 cat <<\_ASBOX
13123 ## ------------------------------------ ##
13124 ## Report this to bug-autoconf@gnu.org. ##
13125 ## ------------------------------------ ##
13126 _ASBOX
13128 sed "s/^/$as_me: WARNING: /" >&2
13130 esac
13131 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13132 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13133 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13138 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13139 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13142 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13143 ac_have_func=yes
13145 cat >>confdefs.h <<\_ACEOF
13146 #define UMAX 1
13147 _ACEOF
13150 cat >>confdefs.h <<\_ACEOF
13151 #define UMAX4_3 1
13152 _ACEOF
13159 if test $ac_have_func = no; then
13160 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13161 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13162 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13163 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13168 else
13169 # Is the header compilable?
13170 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13171 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 /* confdefs.h. */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13179 $ac_includes_default
13180 #include <sys/cpustats.h>
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 ac_header_compiler=yes
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_header_compiler=no
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13203 echo "${ECHO_T}$ac_header_compiler" >&6
13205 # Is the header present?
13206 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13207 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13208 cat >conftest.$ac_ext <<_ACEOF
13209 #line $LINENO "configure"
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 #include <sys/cpustats.h>
13216 _ACEOF
13217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13219 ac_status=$?
13220 grep -v '^ *+' conftest.er1 >conftest.err
13221 rm -f conftest.er1
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } >/dev/null; then
13225 if test -s conftest.err; then
13226 ac_cpp_err=$ac_c_preproc_warn_flag
13227 else
13228 ac_cpp_err=
13230 else
13231 ac_cpp_err=yes
13233 if test -z "$ac_cpp_err"; then
13234 ac_header_preproc=yes
13235 else
13236 echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13239 ac_header_preproc=no
13241 rm -f conftest.err conftest.$ac_ext
13242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13243 echo "${ECHO_T}$ac_header_preproc" >&6
13245 # So? What about this header?
13246 case $ac_header_compiler:$ac_header_preproc in
13247 yes:no )
13248 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13249 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13250 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13251 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13253 cat <<\_ASBOX
13254 ## ------------------------------------ ##
13255 ## Report this to bug-autoconf@gnu.org. ##
13256 ## ------------------------------------ ##
13257 _ASBOX
13259 sed "s/^/$as_me: WARNING: /" >&2
13261 no:yes )
13262 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13263 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13265 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13267 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13269 cat <<\_ASBOX
13270 ## ------------------------------------ ##
13271 ## Report this to bug-autoconf@gnu.org. ##
13272 ## ------------------------------------ ##
13273 _ASBOX
13275 sed "s/^/$as_me: WARNING: /" >&2
13277 esac
13278 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13279 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13280 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13285 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13286 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13289 if test $ac_cv_header_sys_cpustats_h = yes; then
13290 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13291 #define UMAX 1
13292 _ACEOF
13299 if test $ac_have_func = no; then
13301 for ac_header in mach/mach.h
13303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo "$as_me:$LINENO: checking for $ac_header" >&5
13306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13312 else
13313 # Is the header compilable?
13314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13318 /* confdefs.h. */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 $ac_includes_default
13324 #include <$ac_header>
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -s conftest.$ac_objext'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_header_compiler=yes
13339 else
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_header_compiler=no
13345 rm -f conftest.$ac_objext conftest.$ac_ext
13346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6
13349 # Is the header present?
13350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13352 cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <$ac_header>
13360 _ACEOF
13361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev/null; then
13369 if test -s conftest.err; then
13370 ac_cpp_err=$ac_c_preproc_warn_flag
13371 else
13372 ac_cpp_err=
13374 else
13375 ac_cpp_err=yes
13377 if test -z "$ac_cpp_err"; then
13378 ac_header_preproc=yes
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 ac_header_preproc=no
13385 rm -f conftest.err conftest.$ac_ext
13386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13387 echo "${ECHO_T}$ac_header_preproc" >&6
13389 # So? What about this header?
13390 case $ac_header_compiler:$ac_header_preproc in
13391 yes:no )
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13397 cat <<\_ASBOX
13398 ## ------------------------------------ ##
13399 ## Report this to bug-autoconf@gnu.org. ##
13400 ## ------------------------------------ ##
13401 _ASBOX
13403 sed "s/^/$as_me: WARNING: /" >&2
13405 no:yes )
13406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13413 cat <<\_ASBOX
13414 ## ------------------------------------ ##
13415 ## Report this to bug-autoconf@gnu.org. ##
13416 ## ------------------------------------ ##
13417 _ASBOX
13419 sed "s/^/$as_me: WARNING: /" >&2
13421 esac
13422 echo "$as_me:$LINENO: checking for $ac_header" >&5
13423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427 eval "$as_ac_Header=$ac_header_preproc"
13429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13434 cat >>confdefs.h <<_ACEOF
13435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13436 _ACEOF
13440 done
13445 for ac_header in nlist.h
13447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo "$as_me:$LINENO: checking for $ac_header" >&5
13450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 else
13457 # Is the header compilable?
13458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13460 cat >conftest.$ac_ext <<_ACEOF
13461 #line $LINENO "configure"
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 #include <$ac_header>
13469 _ACEOF
13470 rm -f conftest.$ac_objext
13471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13472 (eval $ac_compile) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 ac_header_compiler=yes
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_compiler=no
13489 rm -f conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 echo "${ECHO_T}$ac_header_compiler" >&6
13493 # Is the header present?
13494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 /* confdefs.h. */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <$ac_header>
13504 _ACEOF
13505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null; then
13513 if test -s conftest.err; then
13514 ac_cpp_err=$ac_c_preproc_warn_flag
13515 else
13516 ac_cpp_err=
13518 else
13519 ac_cpp_err=yes
13521 if test -z "$ac_cpp_err"; then
13522 ac_header_preproc=yes
13523 else
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_header_preproc=no
13529 rm -f conftest.err conftest.$ac_ext
13530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc in
13535 yes:no )
13536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13541 cat <<\_ASBOX
13542 ## ------------------------------------ ##
13543 ## Report this to bug-autoconf@gnu.org. ##
13544 ## ------------------------------------ ##
13545 _ASBOX
13547 sed "s/^/$as_me: WARNING: /" >&2
13549 no:yes )
13550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13557 cat <<\_ASBOX
13558 ## ------------------------------------ ##
13559 ## Report this to bug-autoconf@gnu.org. ##
13560 ## ------------------------------------ ##
13561 _ASBOX
13563 sed "s/^/$as_me: WARNING: /" >&2
13565 esac
13566 echo "$as_me:$LINENO: checking for $ac_header" >&5
13567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 eval "$as_ac_Header=$ac_header_preproc"
13573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13578 cat >>confdefs.h <<_ACEOF
13579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13580 _ACEOF
13581 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13582 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13583 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 /* confdefs.h. */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 #include <nlist.h>
13596 main ()
13598 static struct nlist ac_aggr;
13599 if (ac_aggr.n_un.n_name)
13600 return 0;
13602 return 0;
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -s conftest.$ac_objext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 ac_cv_member_struct_nlist_n_un_n_name=yes
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 cat >conftest.$ac_ext <<_ACEOF
13623 #line $LINENO "configure"
13624 /* confdefs.h. */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 #include <nlist.h>
13632 main ()
13634 static struct nlist ac_aggr;
13635 if (sizeof ac_aggr.n_un.n_name)
13636 return 0;
13638 return 0;
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_cv_member_struct_nlist_n_un_n_name=yes
13654 else
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 ac_cv_member_struct_nlist_n_un_n_name=no
13660 rm -f conftest.$ac_objext conftest.$ac_ext
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13665 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13666 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13670 _ACEOF
13673 cat >>confdefs.h <<\_ACEOF
13674 #define NLIST_NAME_UNION 1
13675 _ACEOF
13682 done
13685 done
13688 # Some definitions of getloadavg require that the program be installed setgid.
13689 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13690 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13691 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 cat >conftest.$ac_ext <<_ACEOF
13695 #line $LINENO "configure"
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13702 #ifdef LDAV_PRIVILEGED
13703 Yowza Am I SETGID yet
13704 #endif
13705 _ACEOF
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13708 ac_cv_func_getloadavg_setgid=yes
13709 else
13710 ac_cv_func_getloadavg_setgid=no
13712 rm -f conftest*
13715 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13716 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13717 if test $ac_cv_func_getloadavg_setgid = yes; then
13718 NEED_SETGID=true
13720 cat >>confdefs.h <<\_ACEOF
13721 #define GETLOADAVG_PRIVILEGED 1
13722 _ACEOF
13724 else
13725 NEED_SETGID=false
13728 if test $ac_cv_func_getloadavg_setgid = yes; then
13729 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13730 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13731 if test "${ac_cv_group_kmem+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13735 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13736 # If we got an error (system does not support symlinks), try without -L.
13737 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13738 ac_cv_group_kmem=`echo $ac_ls_output \
13739 | sed -ne 's/[ ][ ]*/ /g;
13740 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13741 / /s/.* //;p;'`
13744 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13745 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13746 KMEM_GROUP=$ac_cv_group_kmem
13748 if test "x$ac_save_LIBS" = x; then
13749 GETLOADAVG_LIBS=$LIBS
13750 else
13751 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13753 LIBS=$ac_save_LIBS
13757 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13758 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13759 if test "${ac_cv_sys_largefile_source+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762 while :; do
13763 ac_cv_sys_largefile_source=no
13764 cat >conftest.$ac_ext <<_ACEOF
13765 #line $LINENO "configure"
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 #include <stdio.h>
13773 main ()
13775 return !fseeko;
13777 return 0;
13779 _ACEOF
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 break
13793 else
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13799 cat >conftest.$ac_ext <<_ACEOF
13800 #line $LINENO "configure"
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #define _LARGEFILE_SOURCE 1
13807 #include <stdio.h>
13809 main ()
13811 return !fseeko;
13813 return 0;
13815 _ACEOF
13816 rm -f conftest.$ac_objext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13818 (eval $ac_compile) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_sys_largefile_source=1; break
13829 else
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13834 rm -f conftest.$ac_objext conftest.$ac_ext
13835 break
13836 done
13838 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13839 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13840 if test "$ac_cv_sys_largefile_source" != no; then
13842 cat >>confdefs.h <<_ACEOF
13843 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13844 _ACEOF
13847 rm -f conftest*
13849 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13850 # in glibc 2.1.3, but that breaks too many other things.
13851 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13852 echo "$as_me:$LINENO: checking for fseeko" >&5
13853 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13854 if test "${ac_cv_func_fseeko+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13859 /* confdefs.h. */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <stdio.h>
13866 main ()
13868 return fseeko && fseeko (stdin, 0, 0);
13870 return 0;
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -s conftest$ac_exeext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_func_fseeko=yes
13886 else
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_func_fseeko=no
13892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13894 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13895 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13896 if test $ac_cv_func_fseeko = yes; then
13898 cat >>confdefs.h <<\_ACEOF
13899 #define HAVE_FSEEKO 1
13900 _ACEOF
13905 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13906 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13907 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 # Use it with a single arg.
13911 cat >conftest.$ac_ext <<_ACEOF
13912 #line $LINENO "configure"
13913 /* confdefs.h. */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 $ac_includes_default
13920 main ()
13922 getpgrp (0);
13924 return 0;
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -s conftest.$ac_objext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13936 ac_status=$?
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_func_getpgrp_void=no
13940 else
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_cv_func_getpgrp_void=yes
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13950 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13951 if test $ac_cv_func_getpgrp_void = yes; then
13953 cat >>confdefs.h <<\_ACEOF
13954 #define GETPGRP_VOID 1
13955 _ACEOF
13961 for ac_func in strftime
13963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13964 echo "$as_me:$LINENO: checking for $ac_func" >&5
13965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_var+set}\" = set"; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969 cat >conftest.$ac_ext <<_ACEOF
13970 #line $LINENO "configure"
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 /* System header to define __stub macros and hopefully few prototypes,
13977 which can conflict with char $ac_func (); below.
13978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13979 <limits.h> exists even on freestanding compilers. */
13980 #ifdef __STDC__
13981 # include <limits.h>
13982 #else
13983 # include <assert.h>
13984 #endif
13985 /* Override any gcc2 internal prototype to avoid an error. */
13986 #ifdef __cplusplus
13987 extern "C"
13989 #endif
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13992 char $ac_func ();
13993 /* The GNU C library defines this for functions which it implements
13994 to always fail with ENOSYS. Some functions are actually named
13995 something starting with __ and the normal name is an alias. */
13996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13997 choke me
13998 #else
13999 char (*f) () = $ac_func;
14000 #endif
14001 #ifdef __cplusplus
14003 #endif
14006 main ()
14008 return f != $ac_func;
14010 return 0;
14012 _ACEOF
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015 (eval $ac_link) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -s conftest$ac_exeext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 eval "$as_ac_var=yes"
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 eval "$as_ac_var=no"
14032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14036 if test `eval echo '${'$as_ac_var'}'` = yes; then
14037 cat >>confdefs.h <<_ACEOF
14038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14039 _ACEOF
14041 else
14042 # strftime is in -lintl on SCO UNIX.
14043 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14044 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
14045 if test "${ac_cv_lib_intl_strftime+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 ac_check_lib_save_LIBS=$LIBS
14049 LIBS="-lintl $LIBS"
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 /* confdefs.h. */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14058 /* Override any gcc2 internal prototype to avoid an error. */
14059 #ifdef __cplusplus
14060 extern "C"
14061 #endif
14062 /* We use char because int might match the return type of a gcc2
14063 builtin and then its argument prototype would still apply. */
14064 char strftime ();
14066 main ()
14068 strftime ();
14070 return 0;
14072 _ACEOF
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_lib_intl_strftime=yes
14086 else
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_lib_intl_strftime=no
14092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14093 LIBS=$ac_check_lib_save_LIBS
14095 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14096 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
14097 if test $ac_cv_lib_intl_strftime = yes; then
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_STRFTIME 1
14100 _ACEOF
14102 LIBS="-lintl $LIBS"
14106 done
14109 # UNIX98 PTYs.
14111 for ac_func in grantpt
14113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14114 echo "$as_me:$LINENO: checking for $ac_func" >&5
14115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_var+set}\" = set"; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 cat >conftest.$ac_ext <<_ACEOF
14120 #line $LINENO "configure"
14121 /* confdefs.h. */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* System header to define __stub macros and hopefully few prototypes,
14127 which can conflict with char $ac_func (); below.
14128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14129 <limits.h> exists even on freestanding compilers. */
14130 #ifdef __STDC__
14131 # include <limits.h>
14132 #else
14133 # include <assert.h>
14134 #endif
14135 /* Override any gcc2 internal prototype to avoid an error. */
14136 #ifdef __cplusplus
14137 extern "C"
14139 #endif
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14142 char $ac_func ();
14143 /* The GNU C library defines this for functions which it implements
14144 to always fail with ENOSYS. Some functions are actually named
14145 something starting with __ and the normal name is an alias. */
14146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14147 choke me
14148 #else
14149 char (*f) () = $ac_func;
14150 #endif
14151 #ifdef __cplusplus
14153 #endif
14156 main ()
14158 return f != $ac_func;
14160 return 0;
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -s conftest$ac_exeext'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 eval "$as_ac_var=yes"
14176 else
14177 echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 eval "$as_ac_var=no"
14182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14186 if test `eval echo '${'$as_ac_var'}'` = yes; then
14187 cat >>confdefs.h <<_ACEOF
14188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14189 _ACEOF
14192 done
14195 # PTY-related GNU extensions.
14197 for ac_func in getpt
14199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14200 echo "$as_me:$LINENO: checking for $ac_func" >&5
14201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14202 if eval "test \"\${$as_ac_var+set}\" = set"; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205 cat >conftest.$ac_ext <<_ACEOF
14206 #line $LINENO "configure"
14207 /* confdefs.h. */
14208 _ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 /* System header to define __stub macros and hopefully few prototypes,
14213 which can conflict with char $ac_func (); below.
14214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14215 <limits.h> exists even on freestanding compilers. */
14216 #ifdef __STDC__
14217 # include <limits.h>
14218 #else
14219 # include <assert.h>
14220 #endif
14221 /* Override any gcc2 internal prototype to avoid an error. */
14222 #ifdef __cplusplus
14223 extern "C"
14225 #endif
14226 /* We use char because int might match the return type of a gcc2
14227 builtin and then its argument prototype would still apply. */
14228 char $ac_func ();
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14233 choke me
14234 #else
14235 char (*f) () = $ac_func;
14236 #endif
14237 #ifdef __cplusplus
14239 #endif
14242 main ()
14244 return f != $ac_func;
14246 return 0;
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251 (eval $ac_link) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -s conftest$ac_exeext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 eval "$as_ac_var=yes"
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 eval "$as_ac_var=no"
14268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14272 if test `eval echo '${'$as_ac_var'}'` = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14275 _ACEOF
14278 done
14281 # Check this now, so that we will NOT find the above functions in ncurses.
14282 # That is because we have not set up to link ncurses in lib-src.
14283 # It's better to believe a function is not available
14284 # than to expect to find it in ncurses.
14286 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14287 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14288 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lncurses $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any gcc2 internal prototype to avoid an error. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 /* We use char because int might match the return type of a gcc2
14306 builtin and then its argument prototype would still apply. */
14307 char tparm ();
14309 main ()
14311 tparm ();
14313 return 0;
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318 (eval $ac_link) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -s conftest$ac_exeext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ac_cv_lib_ncurses_tparm=yes
14329 else
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_lib_ncurses_tparm=no
14335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14338 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14339 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14340 if test $ac_cv_lib_ncurses_tparm = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define HAVE_LIBNCURSES 1
14343 _ACEOF
14345 LIBS="-lncurses $LIBS"
14350 # Do we need the Hesiod library to provide the support routines?
14351 if test "$with_hesiod" = yes ; then
14352 # Don't set $LIBS here -- see comments above.
14353 resolv=no
14354 echo "$as_me:$LINENO: checking for res_send" >&5
14355 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14356 if test "${ac_cv_func_res_send+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 cat >conftest.$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14361 /* confdefs.h. */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 /* System header to define __stub macros and hopefully few prototypes,
14367 which can conflict with char res_send (); below.
14368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14369 <limits.h> exists even on freestanding compilers. */
14370 #ifdef __STDC__
14371 # include <limits.h>
14372 #else
14373 # include <assert.h>
14374 #endif
14375 /* Override any gcc2 internal prototype to avoid an error. */
14376 #ifdef __cplusplus
14377 extern "C"
14379 #endif
14380 /* We use char because int might match the return type of a gcc2
14381 builtin and then its argument prototype would still apply. */
14382 char res_send ();
14383 /* The GNU C library defines this for functions which it implements
14384 to always fail with ENOSYS. Some functions are actually named
14385 something starting with __ and the normal name is an alias. */
14386 #if defined (__stub_res_send) || defined (__stub___res_send)
14387 choke me
14388 #else
14389 char (*f) () = res_send;
14390 #endif
14391 #ifdef __cplusplus
14393 #endif
14396 main ()
14398 return f != res_send;
14400 return 0;
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405 (eval $ac_link) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -s conftest$ac_exeext'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_cv_func_res_send=yes
14416 else
14417 echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14420 ac_cv_func_res_send=no
14422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14425 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14426 if test $ac_cv_func_res_send = yes; then
14428 else
14429 echo "$as_me:$LINENO: checking for __res_send" >&5
14430 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14431 if test "${ac_cv_func___res_send+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 else
14434 cat >conftest.$ac_ext <<_ACEOF
14435 #line $LINENO "configure"
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 /* System header to define __stub macros and hopefully few prototypes,
14442 which can conflict with char __res_send (); below.
14443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14444 <limits.h> exists even on freestanding compilers. */
14445 #ifdef __STDC__
14446 # include <limits.h>
14447 #else
14448 # include <assert.h>
14449 #endif
14450 /* Override any gcc2 internal prototype to avoid an error. */
14451 #ifdef __cplusplus
14452 extern "C"
14454 #endif
14455 /* We use char because int might match the return type of a gcc2
14456 builtin and then its argument prototype would still apply. */
14457 char __res_send ();
14458 /* The GNU C library defines this for functions which it implements
14459 to always fail with ENOSYS. Some functions are actually named
14460 something starting with __ and the normal name is an alias. */
14461 #if defined (__stub___res_send) || defined (__stub_____res_send)
14462 choke me
14463 #else
14464 char (*f) () = __res_send;
14465 #endif
14466 #ifdef __cplusplus
14468 #endif
14471 main ()
14473 return f != __res_send;
14475 return 0;
14477 _ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>&5
14481 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -s conftest$ac_exeext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_func___res_send=yes
14491 else
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 ac_cv_func___res_send=no
14497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14500 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14501 if test $ac_cv_func___res_send = yes; then
14503 else
14504 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14505 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14506 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509 ac_check_lib_save_LIBS=$LIBS
14510 LIBS="-lresolv $LIBS"
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char res_send ();
14527 main ()
14529 res_send ();
14531 return 0;
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -s conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_lib_resolv_res_send=yes
14547 else
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_cv_lib_resolv_res_send=no
14553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14557 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14558 if test $ac_cv_lib_resolv_res_send = yes; then
14559 resolv=yes
14560 else
14561 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14562 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14563 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 else
14566 ac_check_lib_save_LIBS=$LIBS
14567 LIBS="-lresolv $LIBS"
14568 cat >conftest.$ac_ext <<_ACEOF
14569 #line $LINENO "configure"
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14576 /* Override any gcc2 internal prototype to avoid an error. */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 /* We use char because int might match the return type of a gcc2
14581 builtin and then its argument prototype would still apply. */
14582 char __res_send ();
14584 main ()
14586 __res_send ();
14588 return 0;
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14593 (eval $ac_link) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -s conftest$ac_exeext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_lib_resolv___res_send=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14608 ac_cv_lib_resolv___res_send=no
14610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14611 LIBS=$ac_check_lib_save_LIBS
14613 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14614 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14615 if test $ac_cv_lib_resolv___res_send = yes; then
14616 resolv=yes
14625 if test "$resolv" = yes ; then
14626 RESOLVLIB=-lresolv
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_LIBRESOLV 1
14630 _ACEOF
14632 else
14633 RESOLVLIB=
14635 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14636 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14637 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 /* System header to define __stub macros and hopefully few prototypes,
14648 which can conflict with char hes_getmailhost (); below.
14649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14650 <limits.h> exists even on freestanding compilers. */
14651 #ifdef __STDC__
14652 # include <limits.h>
14653 #else
14654 # include <assert.h>
14655 #endif
14656 /* Override any gcc2 internal prototype to avoid an error. */
14657 #ifdef __cplusplus
14658 extern "C"
14660 #endif
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char hes_getmailhost ();
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14668 choke me
14669 #else
14670 char (*f) () = hes_getmailhost;
14671 #endif
14672 #ifdef __cplusplus
14674 #endif
14677 main ()
14679 return f != hes_getmailhost;
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_func_hes_getmailhost=yes
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_cv_func_hes_getmailhost=no
14703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14707 if test $ac_cv_func_hes_getmailhost = yes; then
14709 else
14710 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14711 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-lhesiod $RESOLVLIB $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 /* confdefs.h. */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14725 /* Override any gcc2 internal prototype to avoid an error. */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char hes_getmailhost ();
14733 main ()
14735 hes_getmailhost ();
14737 return 0;
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_hesiod_hes_getmailhost=yes
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_lib_hesiod_hes_getmailhost=no
14759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14760 LIBS=$ac_check_lib_save_LIBS
14762 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14763 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14764 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_LIBHESIOD 1
14768 _ACEOF
14770 else
14778 # These tell us which Kerberos-related libraries to use.
14779 if test "${with_kerberos+set}" = set; then
14781 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14782 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14783 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 ac_check_lib_save_LIBS=$LIBS
14787 LIBS="-lcom_err $LIBS"
14788 cat >conftest.$ac_ext <<_ACEOF
14789 #line $LINENO "configure"
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14802 char com_err ();
14804 main ()
14806 com_err ();
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -s conftest$ac_exeext'
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_lib_com_err_com_err=yes
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 ac_cv_lib_com_err_com_err=no
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 LIBS=$ac_check_lib_save_LIBS
14833 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14834 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14835 if test $ac_cv_lib_com_err_com_err = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_LIBCOM_ERR 1
14838 _ACEOF
14840 LIBS="-lcom_err $LIBS"
14845 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14846 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14847 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850 ac_check_lib_save_LIBS=$LIBS
14851 LIBS="-lk5crypto $LIBS"
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 /* confdefs.h. */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14860 /* Override any gcc2 internal prototype to avoid an error. */
14861 #ifdef __cplusplus
14862 extern "C"
14863 #endif
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866 char mit_des_cbc_encrypt ();
14868 main ()
14870 mit_des_cbc_encrypt ();
14872 return 0;
14874 _ACEOF
14875 rm -f conftest.$ac_objext conftest$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -s conftest$ac_exeext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14888 else
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_lib_save_LIBS
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14898 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14899 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14900 cat >>confdefs.h <<_ACEOF
14901 #define HAVE_LIBK5CRYPTO 1
14902 _ACEOF
14904 LIBS="-lk5crypto $LIBS"
14909 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14910 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14911 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 ac_check_lib_save_LIBS=$LIBS
14915 LIBS="-lcrypto $LIBS"
14916 cat >conftest.$ac_ext <<_ACEOF
14917 #line $LINENO "configure"
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14924 /* Override any gcc2 internal prototype to avoid an error. */
14925 #ifdef __cplusplus
14926 extern "C"
14927 #endif
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14930 char mit_des_cbc_encrypt ();
14932 main ()
14934 mit_des_cbc_encrypt ();
14936 return 0;
14938 _ACEOF
14939 rm -f conftest.$ac_objext conftest$ac_exeext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14941 (eval $ac_link) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -s conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_check_lib_save_LIBS
14961 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14962 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14963 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_LIBCRYPTO 1
14966 _ACEOF
14968 LIBS="-lcrypto $LIBS"
14973 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14974 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14975 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 ac_check_lib_save_LIBS=$LIBS
14979 LIBS="-lkrb5 $LIBS"
14980 cat >conftest.$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14988 /* Override any gcc2 internal prototype to avoid an error. */
14989 #ifdef __cplusplus
14990 extern "C"
14991 #endif
14992 /* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */
14994 char krb5_init_context ();
14996 main ()
14998 krb5_init_context ();
15000 return 0;
15002 _ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15005 (eval $ac_link) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } &&
15009 { ac_try='test -s conftest$ac_exeext'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_cv_lib_krb5_krb5_init_context=yes
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 ac_cv_lib_krb5_krb5_init_context=no
15022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15023 LIBS=$ac_check_lib_save_LIBS
15025 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15026 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
15027 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define HAVE_LIBKRB5 1
15030 _ACEOF
15032 LIBS="-lkrb5 $LIBS"
15036 if test "${with_kerberos5+set}" != set; then
15038 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
15039 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
15040 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-ldes425 $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 #line $LINENO "configure"
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any gcc2 internal prototype to avoid an error. */
15054 #ifdef __cplusplus
15055 extern "C"
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15059 char des_cbc_encrypt ();
15061 main ()
15063 des_cbc_encrypt ();
15065 return 0;
15067 _ACEOF
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -s conftest$ac_exeext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_cv_lib_des425_des_cbc_encrypt=yes
15081 else
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 ac_cv_lib_des425_des_cbc_encrypt=no
15087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15088 LIBS=$ac_check_lib_save_LIBS
15090 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15091 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15092 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15093 cat >>confdefs.h <<_ACEOF
15094 #define HAVE_LIBDES425 1
15095 _ACEOF
15097 LIBS="-ldes425 $LIBS"
15099 else
15101 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15102 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15103 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106 ac_check_lib_save_LIBS=$LIBS
15107 LIBS="-ldes $LIBS"
15108 cat >conftest.$ac_ext <<_ACEOF
15109 #line $LINENO "configure"
15110 /* confdefs.h. */
15111 _ACEOF
15112 cat confdefs.h >>conftest.$ac_ext
15113 cat >>conftest.$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 #ifdef __cplusplus
15118 extern "C"
15119 #endif
15120 /* We use char because int might match the return type of a gcc2
15121 builtin and then its argument prototype would still apply. */
15122 char des_cbc_encrypt ();
15124 main ()
15126 des_cbc_encrypt ();
15128 return 0;
15130 _ACEOF
15131 rm -f conftest.$ac_objext conftest$ac_exeext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15133 (eval $ac_link) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -s conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_cv_lib_des_des_cbc_encrypt=yes
15144 else
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_lib_des_des_cbc_encrypt=no
15150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15151 LIBS=$ac_check_lib_save_LIBS
15153 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15154 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15155 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define HAVE_LIBDES 1
15158 _ACEOF
15160 LIBS="-ldes $LIBS"
15167 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15168 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15169 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 ac_check_lib_save_LIBS=$LIBS
15173 LIBS="-lkrb4 $LIBS"
15174 cat >conftest.$ac_ext <<_ACEOF
15175 #line $LINENO "configure"
15176 /* confdefs.h. */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 #ifdef __cplusplus
15184 extern "C"
15185 #endif
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15188 char krb_get_cred ();
15190 main ()
15192 krb_get_cred ();
15194 return 0;
15196 _ACEOF
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -s conftest$ac_exeext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 ac_cv_lib_krb4_krb_get_cred=yes
15210 else
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_cv_lib_krb4_krb_get_cred=no
15216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15217 LIBS=$ac_check_lib_save_LIBS
15219 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15220 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15221 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15222 cat >>confdefs.h <<_ACEOF
15223 #define HAVE_LIBKRB4 1
15224 _ACEOF
15226 LIBS="-lkrb4 $LIBS"
15228 else
15230 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15231 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15232 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 ac_check_lib_save_LIBS=$LIBS
15236 LIBS="-lkrb $LIBS"
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any gcc2 internal prototype to avoid an error. */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15251 char krb_get_cred ();
15253 main ()
15255 krb_get_cred ();
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_lib_krb_krb_get_cred=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_cv_lib_krb_krb_get_cred=no
15279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15283 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15284 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define HAVE_LIBKRB 1
15287 _ACEOF
15289 LIBS="-lkrb $LIBS"
15297 if test "${with_kerberos5+set}" = set; then
15299 for ac_header in krb5.h
15301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15303 echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15310 else
15311 # Is the header compilable?
15312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15314 cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 $ac_includes_default
15322 #include <$ac_header>
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15326 (eval $ac_compile) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -s conftest.$ac_objext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_header_compiler=yes
15337 else
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_header_compiler=no
15343 rm -f conftest.$ac_objext conftest.$ac_ext
15344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15345 echo "${ECHO_T}$ac_header_compiler" >&6
15347 # Is the header present?
15348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line $LINENO "configure"
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <$ac_header>
15358 _ACEOF
15359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 else
15370 ac_cpp_err=
15372 else
15373 ac_cpp_err=yes
15375 if test -z "$ac_cpp_err"; then
15376 ac_header_preproc=yes
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_header_preproc=no
15383 rm -f conftest.err conftest.$ac_ext
15384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15385 echo "${ECHO_T}$ac_header_preproc" >&6
15387 # So? What about this header?
15388 case $ac_header_compiler:$ac_header_preproc in
15389 yes:no )
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15395 cat <<\_ASBOX
15396 ## ------------------------------------ ##
15397 ## Report this to bug-autoconf@gnu.org. ##
15398 ## ------------------------------------ ##
15399 _ASBOX
15401 sed "s/^/$as_me: WARNING: /" >&2
15403 no:yes )
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 cat <<\_ASBOX
15412 ## ------------------------------------ ##
15413 ## Report this to bug-autoconf@gnu.org. ##
15414 ## ------------------------------------ ##
15415 _ASBOX
15417 sed "s/^/$as_me: WARNING: /" >&2
15419 esac
15420 echo "$as_me:$LINENO: checking for $ac_header" >&5
15421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425 eval "$as_ac_Header=$ac_header_preproc"
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15434 _ACEOF
15438 done
15440 else
15442 for ac_header in des.h
15444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15446 echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15453 else
15454 # Is the header compilable?
15455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 $ac_includes_default
15465 #include <$ac_header>
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15476 ac_status=$?
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_header_compiler=yes
15480 else
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 ac_header_compiler=no
15486 rm -f conftest.$ac_objext conftest.$ac_ext
15487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6
15490 # Is the header present?
15491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15493 cat >conftest.$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #include <$ac_header>
15501 _ACEOF
15502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } >/dev/null; then
15510 if test -s conftest.err; then
15511 ac_cpp_err=$ac_c_preproc_warn_flag
15512 else
15513 ac_cpp_err=
15515 else
15516 ac_cpp_err=yes
15518 if test -z "$ac_cpp_err"; then
15519 ac_header_preproc=yes
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_header_preproc=no
15526 rm -f conftest.err conftest.$ac_ext
15527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15528 echo "${ECHO_T}$ac_header_preproc" >&6
15530 # So? What about this header?
15531 case $ac_header_compiler:$ac_header_preproc in
15532 yes:no )
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15538 cat <<\_ASBOX
15539 ## ------------------------------------ ##
15540 ## Report this to bug-autoconf@gnu.org. ##
15541 ## ------------------------------------ ##
15542 _ASBOX
15544 sed "s/^/$as_me: WARNING: /" >&2
15546 no:yes )
15547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15554 cat <<\_ASBOX
15555 ## ------------------------------------ ##
15556 ## Report this to bug-autoconf@gnu.org. ##
15557 ## ------------------------------------ ##
15558 _ASBOX
15560 sed "s/^/$as_me: WARNING: /" >&2
15562 esac
15563 echo "$as_me:$LINENO: checking for $ac_header" >&5
15564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 eval "$as_ac_Header=$ac_header_preproc"
15570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15575 cat >>confdefs.h <<_ACEOF
15576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15577 _ACEOF
15579 else
15581 for ac_header in kerberosIV/des.h
15583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15592 else
15593 # Is the header compilable?
15594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15597 #line $LINENO "configure"
15598 /* confdefs.h. */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 $ac_includes_default
15604 #include <$ac_header>
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_header_compiler=yes
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_header_compiler=no
15625 rm -f conftest.$ac_objext conftest.$ac_ext
15626 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15627 echo "${ECHO_T}$ac_header_compiler" >&6
15629 # Is the header present?
15630 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15634 /* confdefs.h. */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <$ac_header>
15640 _ACEOF
15641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15643 ac_status=$?
15644 grep -v '^ *+' conftest.er1 >conftest.err
15645 rm -f conftest.er1
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } >/dev/null; then
15649 if test -s conftest.err; then
15650 ac_cpp_err=$ac_c_preproc_warn_flag
15651 else
15652 ac_cpp_err=
15654 else
15655 ac_cpp_err=yes
15657 if test -z "$ac_cpp_err"; then
15658 ac_header_preproc=yes
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 ac_header_preproc=no
15665 rm -f conftest.err conftest.$ac_ext
15666 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15667 echo "${ECHO_T}$ac_header_preproc" >&6
15669 # So? What about this header?
15670 case $ac_header_compiler:$ac_header_preproc in
15671 yes:no )
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15677 cat <<\_ASBOX
15678 ## ------------------------------------ ##
15679 ## Report this to bug-autoconf@gnu.org. ##
15680 ## ------------------------------------ ##
15681 _ASBOX
15683 sed "s/^/$as_me: WARNING: /" >&2
15685 no:yes )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15693 cat <<\_ASBOX
15694 ## ------------------------------------ ##
15695 ## Report this to bug-autoconf@gnu.org. ##
15696 ## ------------------------------------ ##
15697 _ASBOX
15699 sed "s/^/$as_me: WARNING: /" >&2
15701 esac
15702 echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707 eval "$as_ac_Header=$ac_header_preproc"
15709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15716 _ACEOF
15718 else
15720 for ac_header in kerberos/des.h
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15731 else
15732 # Is the header compilable?
15733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 $ac_includes_default
15743 #include <$ac_header>
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest.$ac_objext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler=yes
15758 else
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_header_compiler=no
15764 rm -f conftest.$ac_objext conftest.$ac_ext
15765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766 echo "${ECHO_T}$ac_header_compiler" >&6
15768 # Is the header present?
15769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15771 cat >conftest.$ac_ext <<_ACEOF
15772 #line $LINENO "configure"
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 #include <$ac_header>
15779 _ACEOF
15780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15782 ac_status=$?
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } >/dev/null; then
15788 if test -s conftest.err; then
15789 ac_cpp_err=$ac_c_preproc_warn_flag
15790 else
15791 ac_cpp_err=
15793 else
15794 ac_cpp_err=yes
15796 if test -z "$ac_cpp_err"; then
15797 ac_header_preproc=yes
15798 else
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_preproc=no
15804 rm -f conftest.err conftest.$ac_ext
15805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15806 echo "${ECHO_T}$ac_header_preproc" >&6
15808 # So? What about this header?
15809 case $ac_header_compiler:$ac_header_preproc in
15810 yes:no )
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15816 cat <<\_ASBOX
15817 ## ------------------------------------ ##
15818 ## Report this to bug-autoconf@gnu.org. ##
15819 ## ------------------------------------ ##
15820 _ASBOX
15822 sed "s/^/$as_me: WARNING: /" >&2
15824 no:yes )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 cat <<\_ASBOX
15833 ## ------------------------------------ ##
15834 ## Report this to bug-autoconf@gnu.org. ##
15835 ## ------------------------------------ ##
15836 _ASBOX
15838 sed "s/^/$as_me: WARNING: /" >&2
15840 esac
15841 echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846 eval "$as_ac_Header=$ac_header_preproc"
15848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 _ACEOF
15859 done
15863 done
15867 done
15870 for ac_header in krb.h
15872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15881 else
15882 # Is the header compilable?
15883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15887 /* confdefs.h. */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 $ac_includes_default
15893 #include <$ac_header>
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler=yes
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_header_compiler=no
15914 rm -f conftest.$ac_objext conftest.$ac_ext
15915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6
15918 # Is the header present?
15919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15929 _ACEOF
15930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } >/dev/null; then
15938 if test -s conftest.err; then
15939 ac_cpp_err=$ac_c_preproc_warn_flag
15940 else
15941 ac_cpp_err=
15943 else
15944 ac_cpp_err=yes
15946 if test -z "$ac_cpp_err"; then
15947 ac_header_preproc=yes
15948 else
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_header_preproc=no
15954 rm -f conftest.err conftest.$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15956 echo "${ECHO_T}$ac_header_preproc" >&6
15958 # So? What about this header?
15959 case $ac_header_compiler:$ac_header_preproc in
15960 yes:no )
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966 cat <<\_ASBOX
15967 ## ------------------------------------ ##
15968 ## Report this to bug-autoconf@gnu.org. ##
15969 ## ------------------------------------ ##
15970 _ASBOX
15972 sed "s/^/$as_me: WARNING: /" >&2
15974 no:yes )
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15982 cat <<\_ASBOX
15983 ## ------------------------------------ ##
15984 ## Report this to bug-autoconf@gnu.org. ##
15985 ## ------------------------------------ ##
15986 _ASBOX
15988 sed "s/^/$as_me: WARNING: /" >&2
15990 esac
15991 echo "$as_me:$LINENO: checking for $ac_header" >&5
15992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996 eval "$as_ac_Header=$ac_header_preproc"
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16003 cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16005 _ACEOF
16007 else
16009 for ac_header in kerberosIV/krb.h
16011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16013 echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16020 else
16021 # Is the header compilable?
16022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16024 cat >conftest.$ac_ext <<_ACEOF
16025 #line $LINENO "configure"
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16032 #include <$ac_header>
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16043 ac_status=$?
16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 ac_header_compiler=yes
16047 else
16048 echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_header_compiler=no
16053 rm -f conftest.$ac_objext conftest.$ac_ext
16054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6
16057 # Is the header present?
16058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <$ac_header>
16068 _ACEOF
16069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } >/dev/null; then
16077 if test -s conftest.err; then
16078 ac_cpp_err=$ac_c_preproc_warn_flag
16079 else
16080 ac_cpp_err=
16082 else
16083 ac_cpp_err=yes
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16087 else
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_preproc=no
16093 rm -f conftest.err conftest.$ac_ext
16094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc in
16099 yes:no )
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16105 cat <<\_ASBOX
16106 ## ------------------------------------ ##
16107 ## Report this to bug-autoconf@gnu.org. ##
16108 ## ------------------------------------ ##
16109 _ASBOX
16111 sed "s/^/$as_me: WARNING: /" >&2
16113 no:yes )
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16121 cat <<\_ASBOX
16122 ## ------------------------------------ ##
16123 ## Report this to bug-autoconf@gnu.org. ##
16124 ## ------------------------------------ ##
16125 _ASBOX
16127 sed "s/^/$as_me: WARNING: /" >&2
16129 esac
16130 echo "$as_me:$LINENO: checking for $ac_header" >&5
16131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135 eval "$as_ac_Header=$ac_header_preproc"
16137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 _ACEOF
16146 else
16148 for ac_header in kerberos/krb.h
16150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16152 echo "$as_me:$LINENO: checking for $ac_header" >&5
16153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16155 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16159 else
16160 # Is the header compilable?
16161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16163 cat >conftest.$ac_ext <<_ACEOF
16164 #line $LINENO "configure"
16165 /* confdefs.h. */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 $ac_includes_default
16171 #include <$ac_header>
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175 (eval $ac_compile) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_header_compiler=yes
16186 else
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_header_compiler=no
16192 rm -f conftest.$ac_objext conftest.$ac_ext
16193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16194 echo "${ECHO_T}$ac_header_compiler" >&6
16196 # Is the header present?
16197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16199 cat >conftest.$ac_ext <<_ACEOF
16200 #line $LINENO "configure"
16201 /* confdefs.h. */
16202 _ACEOF
16203 cat confdefs.h >>conftest.$ac_ext
16204 cat >>conftest.$ac_ext <<_ACEOF
16205 /* end confdefs.h. */
16206 #include <$ac_header>
16207 _ACEOF
16208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } >/dev/null; then
16216 if test -s conftest.err; then
16217 ac_cpp_err=$ac_c_preproc_warn_flag
16218 else
16219 ac_cpp_err=
16221 else
16222 ac_cpp_err=yes
16224 if test -z "$ac_cpp_err"; then
16225 ac_header_preproc=yes
16226 else
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_header_preproc=no
16232 rm -f conftest.err conftest.$ac_ext
16233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16234 echo "${ECHO_T}$ac_header_preproc" >&6
16236 # So? What about this header?
16237 case $ac_header_compiler:$ac_header_preproc in
16238 yes:no )
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16244 cat <<\_ASBOX
16245 ## ------------------------------------ ##
16246 ## Report this to bug-autoconf@gnu.org. ##
16247 ## ------------------------------------ ##
16248 _ASBOX
16250 sed "s/^/$as_me: WARNING: /" >&2
16252 no:yes )
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16260 cat <<\_ASBOX
16261 ## ------------------------------------ ##
16262 ## Report this to bug-autoconf@gnu.org. ##
16263 ## ------------------------------------ ##
16264 _ASBOX
16266 sed "s/^/$as_me: WARNING: /" >&2
16268 esac
16269 echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274 eval "$as_ac_Header=$ac_header_preproc"
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16283 _ACEOF
16287 done
16291 done
16295 done
16299 for ac_header in com_err.h
16301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16303 echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16310 else
16311 # Is the header compilable?
16312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16314 cat >conftest.$ac_ext <<_ACEOF
16315 #line $LINENO "configure"
16316 /* confdefs.h. */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 #include <$ac_header>
16323 _ACEOF
16324 rm -f conftest.$ac_objext
16325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16326 (eval $ac_compile) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16333 ac_status=$?
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_header_compiler=yes
16337 else
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ac_header_compiler=no
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16345 echo "${ECHO_T}$ac_header_compiler" >&6
16347 # Is the header present?
16348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16351 #line $LINENO "configure"
16352 /* confdefs.h. */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 #include <$ac_header>
16358 _ACEOF
16359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16361 ac_status=$?
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } >/dev/null; then
16367 if test -s conftest.err; then
16368 ac_cpp_err=$ac_c_preproc_warn_flag
16369 else
16370 ac_cpp_err=
16372 else
16373 ac_cpp_err=yes
16375 if test -z "$ac_cpp_err"; then
16376 ac_header_preproc=yes
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_header_preproc=no
16383 rm -f conftest.err conftest.$ac_ext
16384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385 echo "${ECHO_T}$ac_header_preproc" >&6
16387 # So? What about this header?
16388 case $ac_header_compiler:$ac_header_preproc in
16389 yes:no )
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16395 cat <<\_ASBOX
16396 ## ------------------------------------ ##
16397 ## Report this to bug-autoconf@gnu.org. ##
16398 ## ------------------------------------ ##
16399 _ASBOX
16401 sed "s/^/$as_me: WARNING: /" >&2
16403 no:yes )
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16411 cat <<\_ASBOX
16412 ## ------------------------------------ ##
16413 ## Report this to bug-autoconf@gnu.org. ##
16414 ## ------------------------------------ ##
16415 _ASBOX
16417 sed "s/^/$as_me: WARNING: /" >&2
16419 esac
16420 echo "$as_me:$LINENO: checking for $ac_header" >&5
16421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 eval "$as_ac_Header=$ac_header_preproc"
16427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16432 cat >>confdefs.h <<_ACEOF
16433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16434 _ACEOF
16438 done
16442 # Solaris requires -lintl if you want strerror (which calls dgettext)
16443 # to return localized messages.
16445 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16446 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16447 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16448 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450 ac_check_lib_save_LIBS=$LIBS
16451 LIBS="-lintl $LIBS"
16452 cat >conftest.$ac_ext <<_ACEOF
16453 #line $LINENO "configure"
16454 /* confdefs.h. */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16460 /* Override any gcc2 internal prototype to avoid an error. */
16461 #ifdef __cplusplus
16462 extern "C"
16463 #endif
16464 /* We use char because int might match the return type of a gcc2
16465 builtin and then its argument prototype would still apply. */
16466 char dgettext ();
16468 main ()
16470 dgettext ();
16472 return 0;
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477 (eval $ac_link) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -s conftest$ac_exeext'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_lib_intl_dgettext=yes
16488 else
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_cv_lib_intl_dgettext=no
16494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16497 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16498 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16499 if test $ac_cv_lib_intl_dgettext = yes; then
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_LIBINTL 1
16502 _ACEOF
16504 LIBS="-lintl $LIBS"
16509 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16510 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16511 if test "${emacs_cv_localtime_cache+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514 if test x$ac_cv_func_tzset = xyes; then
16515 if test "$cross_compiling" = yes; then
16516 # If we have tzset, assume the worst when cross-compiling.
16517 emacs_cv_localtime_cache=yes
16518 else
16519 cat >conftest.$ac_ext <<_ACEOF
16520 #line $LINENO "configure"
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 #include <time.h>
16527 extern char **environ;
16528 unset_TZ ()
16530 char **from, **to;
16531 for (to = from = environ; (*to = *from); from++)
16532 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16533 to++;
16535 char TZ_GMT0[] = "TZ=GMT0";
16536 char TZ_PST8[] = "TZ=PST8";
16537 main()
16539 time_t now = time ((time_t *) 0);
16540 int hour_GMT0, hour_unset;
16541 if (putenv (TZ_GMT0) != 0)
16542 exit (1);
16543 hour_GMT0 = localtime (&now)->tm_hour;
16544 unset_TZ ();
16545 hour_unset = localtime (&now)->tm_hour;
16546 if (putenv (TZ_PST8) != 0)
16547 exit (1);
16548 if (localtime (&now)->tm_hour == hour_GMT0)
16549 exit (1);
16550 unset_TZ ();
16551 if (localtime (&now)->tm_hour != hour_unset)
16552 exit (1);
16553 exit (0);
16555 _ACEOF
16556 rm -f conftest$ac_exeext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16558 (eval $ac_link) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 emacs_cv_localtime_cache=no
16568 else
16569 echo "$as_me: program exited with status $ac_status" >&5
16570 echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16573 ( exit $ac_status )
16574 emacs_cv_localtime_cache=yes
16576 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16578 else
16579 # If we lack tzset, report that localtime does not cache TZ,
16580 # since we can't invalidate the cache if we don't have tzset.
16581 emacs_cv_localtime_cache=no
16584 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16585 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16586 if test $emacs_cv_localtime_cache = yes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define LOCALTIME_CACHE 1
16590 _ACEOF
16594 if test "x$HAVE_TIMEVAL" = xyes; then
16596 for ac_func in gettimeofday
16598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16601 if eval "test \"\${$as_ac_var+set}\" = set"; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604 cat >conftest.$ac_ext <<_ACEOF
16605 #line $LINENO "configure"
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* System header to define __stub macros and hopefully few prototypes,
16612 which can conflict with char $ac_func (); below.
16613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16614 <limits.h> exists even on freestanding compilers. */
16615 #ifdef __STDC__
16616 # include <limits.h>
16617 #else
16618 # include <assert.h>
16619 #endif
16620 /* Override any gcc2 internal prototype to avoid an error. */
16621 #ifdef __cplusplus
16622 extern "C"
16624 #endif
16625 /* We use char because int might match the return type of a gcc2
16626 builtin and then its argument prototype would still apply. */
16627 char $ac_func ();
16628 /* The GNU C library defines this for functions which it implements
16629 to always fail with ENOSYS. Some functions are actually named
16630 something starting with __ and the normal name is an alias. */
16631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16632 choke me
16633 #else
16634 char (*f) () = $ac_func;
16635 #endif
16636 #ifdef __cplusplus
16638 #endif
16641 main ()
16643 return f != $ac_func;
16645 return 0;
16647 _ACEOF
16648 rm -f conftest.$ac_objext conftest$ac_exeext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16650 (eval $ac_link) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 eval "$as_ac_var=yes"
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 eval "$as_ac_var=no"
16667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16674 _ACEOF
16677 done
16679 if test $ac_cv_func_gettimeofday = yes; then
16680 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16681 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685 cat >conftest.$ac_ext <<_ACEOF
16686 #line $LINENO "configure"
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 #ifdef TIME_WITH_SYS_TIME
16694 #include <sys/time.h>
16695 #include <time.h>
16696 #else
16697 #ifdef HAVE_SYS_TIME_H
16698 #include <sys/time.h>
16699 #else
16700 #include <time.h>
16701 #endif
16702 #endif
16704 main ()
16706 struct timeval time;
16707 gettimeofday (&time, 0);
16709 return 0;
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16714 (eval $ac_compile) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 emacs_cv_gettimeofday_two_arguments=yes
16725 else
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 emacs_cv_gettimeofday_two_arguments=no
16731 rm -f conftest.$ac_objext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16734 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16735 if test $emacs_cv_gettimeofday_two_arguments = no; then
16737 cat >>confdefs.h <<\_ACEOF
16738 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16739 _ACEOF
16745 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16746 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16747 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
16748 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751 cat >conftest.$ac_ext <<_ACEOF
16752 #line $LINENO "configure"
16753 /* confdefs.h. */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 #include <sys/types.h>
16759 #include <$ac_cv_struct_tm>
16763 main ()
16765 static struct tm ac_aggr;
16766 if (ac_aggr.tm_zone)
16767 return 0;
16769 return 0;
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774 (eval $ac_compile) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -s conftest.$ac_objext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_member_struct_tm_tm_zone=yes
16785 else
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 cat >conftest.$ac_ext <<_ACEOF
16790 #line $LINENO "configure"
16791 /* confdefs.h. */
16792 _ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 #include <sys/types.h>
16797 #include <$ac_cv_struct_tm>
16801 main ()
16803 static struct tm ac_aggr;
16804 if (sizeof ac_aggr.tm_zone)
16805 return 0;
16807 return 0;
16809 _ACEOF
16810 rm -f conftest.$ac_objext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_member_struct_tm_tm_zone=yes
16823 else
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_cv_member_struct_tm_tm_zone=no
16829 rm -f conftest.$ac_objext conftest.$ac_ext
16831 rm -f conftest.$ac_objext conftest.$ac_ext
16833 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16834 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
16835 if test $ac_cv_member_struct_tm_tm_zone = yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define HAVE_STRUCT_TM_TM_ZONE 1
16839 _ACEOF
16844 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16846 cat >>confdefs.h <<\_ACEOF
16847 #define HAVE_TM_ZONE 1
16848 _ACEOF
16850 else
16851 echo "$as_me:$LINENO: checking for tzname" >&5
16852 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
16853 if test "${ac_cv_var_tzname+set}" = set; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856 cat >conftest.$ac_ext <<_ACEOF
16857 #line $LINENO "configure"
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 #include <time.h>
16864 #ifndef tzname /* For SGI. */
16865 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16866 #endif
16869 main ()
16871 atoi(*tzname);
16873 return 0;
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_var_tzname=yes
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_cv_var_tzname=no
16895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16898 echo "${ECHO_T}$ac_cv_var_tzname" >&6
16899 if test $ac_cv_var_tzname = yes; then
16901 cat >>confdefs.h <<\_ACEOF
16902 #define HAVE_TZNAME 1
16903 _ACEOF
16909 if test "$ac_cv_func_gettimeofday" = yes; then
16910 echo "$as_me:$LINENO: checking for struct timezone" >&5
16911 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16912 if test "${emacs_cv_struct_timezone+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/time.h>
16924 main ()
16926 struct timezone tz;
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 if test "$cross_compiling" = yes; then
16944 emacs_cv_struct_timezone=yes
16945 else
16946 cat >conftest.$ac_ext <<_ACEOF
16947 #line $LINENO "configure"
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16954 #ifdef TIME_WITH_SYS_TIME
16955 #include <sys/time.h>
16956 #include <time.h>
16957 #else
16958 #ifdef HAVE_SYS_TIME_H
16959 #include <sys/time.h>
16960 #else
16961 #include <time.h>
16962 #endif
16963 #endif
16964 main () {
16965 struct timeval time;
16966 struct timezone dummy;
16967 exit (gettimeofday (&time, &dummy));
16969 _ACEOF
16970 rm -f conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; }; then
16981 emacs_cv_struct_timezone=yes
16982 else
16983 echo "$as_me: program exited with status $ac_status" >&5
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ( exit $ac_status )
16988 emacs_cv_struct_timezone=no
16990 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 emacs_cv_struct_timezone=no
16998 rm -f conftest.$ac_objext conftest.$ac_ext
17000 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17001 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
17004 ok_so_far=yes
17005 echo "$as_me:$LINENO: checking for socket" >&5
17006 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17007 if test "${ac_cv_func_socket+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010 cat >conftest.$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17012 /* confdefs.h. */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 /* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char socket (); below.
17019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020 <limits.h> exists even on freestanding compilers. */
17021 #ifdef __STDC__
17022 # include <limits.h>
17023 #else
17024 # include <assert.h>
17025 #endif
17026 /* Override any gcc2 internal prototype to avoid an error. */
17027 #ifdef __cplusplus
17028 extern "C"
17030 #endif
17031 /* We use char because int might match the return type of a gcc2
17032 builtin and then its argument prototype would still apply. */
17033 char socket ();
17034 /* The GNU C library defines this for functions which it implements
17035 to always fail with ENOSYS. Some functions are actually named
17036 something starting with __ and the normal name is an alias. */
17037 #if defined (__stub_socket) || defined (__stub___socket)
17038 choke me
17039 #else
17040 char (*f) () = socket;
17041 #endif
17042 #ifdef __cplusplus
17044 #endif
17047 main ()
17049 return f != socket;
17051 return 0;
17053 _ACEOF
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_func_socket=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_cv_func_socket=no
17073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17075 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17076 echo "${ECHO_T}$ac_cv_func_socket" >&6
17077 if test $ac_cv_func_socket = yes; then
17079 else
17080 ok_so_far=no
17083 if test $ok_so_far = yes; then
17084 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17085 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17086 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17087 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17091 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17092 else
17093 # Is the header compilable?
17094 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17095 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17096 cat >conftest.$ac_ext <<_ACEOF
17097 #line $LINENO "configure"
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 $ac_includes_default
17104 #include <netinet/in.h>
17105 _ACEOF
17106 rm -f conftest.$ac_objext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17108 (eval $ac_compile) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } &&
17112 { ac_try='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_header_compiler=yes
17119 else
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 ac_header_compiler=no
17125 rm -f conftest.$ac_objext conftest.$ac_ext
17126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17127 echo "${ECHO_T}$ac_header_compiler" >&6
17129 # Is the header present?
17130 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17131 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17132 cat >conftest.$ac_ext <<_ACEOF
17133 #line $LINENO "configure"
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <netinet/in.h>
17140 _ACEOF
17141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } >/dev/null; then
17149 if test -s conftest.err; then
17150 ac_cpp_err=$ac_c_preproc_warn_flag
17151 else
17152 ac_cpp_err=
17154 else
17155 ac_cpp_err=yes
17157 if test -z "$ac_cpp_err"; then
17158 ac_header_preproc=yes
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 ac_header_preproc=no
17165 rm -f conftest.err conftest.$ac_ext
17166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17167 echo "${ECHO_T}$ac_header_preproc" >&6
17169 # So? What about this header?
17170 case $ac_header_compiler:$ac_header_preproc in
17171 yes:no )
17172 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17173 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17174 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17175 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17177 cat <<\_ASBOX
17178 ## ------------------------------------ ##
17179 ## Report this to bug-autoconf@gnu.org. ##
17180 ## ------------------------------------ ##
17181 _ASBOX
17183 sed "s/^/$as_me: WARNING: /" >&2
17185 no:yes )
17186 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17187 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17189 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17193 cat <<\_ASBOX
17194 ## ------------------------------------ ##
17195 ## Report this to bug-autoconf@gnu.org. ##
17196 ## ------------------------------------ ##
17197 _ASBOX
17199 sed "s/^/$as_me: WARNING: /" >&2
17201 esac
17202 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17203 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17204 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207 ac_cv_header_netinet_in_h=$ac_header_preproc
17209 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17213 if test $ac_cv_header_netinet_in_h = yes; then
17215 else
17216 ok_so_far=no
17221 if test $ok_so_far = yes; then
17222 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17223 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17224 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17225 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17229 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17230 else
17231 # Is the header compilable?
17232 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17233 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17235 #line $LINENO "configure"
17236 /* confdefs.h. */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 $ac_includes_default
17242 #include <arpa/inet.h>
17243 _ACEOF
17244 rm -f conftest.$ac_objext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17246 (eval $ac_compile) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_header_compiler=yes
17257 else
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_header_compiler=no
17263 rm -f conftest.$ac_objext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6
17267 # Is the header present?
17268 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17269 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17271 #line $LINENO "configure"
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17277 #include <arpa/inet.h>
17278 _ACEOF
17279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17281 ac_status=$?
17282 grep -v '^ *+' conftest.er1 >conftest.err
17283 rm -f conftest.er1
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } >/dev/null; then
17287 if test -s conftest.err; then
17288 ac_cpp_err=$ac_c_preproc_warn_flag
17289 else
17290 ac_cpp_err=
17292 else
17293 ac_cpp_err=yes
17295 if test -z "$ac_cpp_err"; then
17296 ac_header_preproc=yes
17297 else
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_header_preproc=no
17303 rm -f conftest.err conftest.$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305 echo "${ECHO_T}$ac_header_preproc" >&6
17307 # So? What about this header?
17308 case $ac_header_compiler:$ac_header_preproc in
17309 yes:no )
17310 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17311 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17315 cat <<\_ASBOX
17316 ## ------------------------------------ ##
17317 ## Report this to bug-autoconf@gnu.org. ##
17318 ## ------------------------------------ ##
17319 _ASBOX
17321 sed "s/^/$as_me: WARNING: /" >&2
17323 no:yes )
17324 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17325 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17327 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17329 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17331 cat <<\_ASBOX
17332 ## ------------------------------------ ##
17333 ## Report this to bug-autoconf@gnu.org. ##
17334 ## ------------------------------------ ##
17335 _ASBOX
17337 sed "s/^/$as_me: WARNING: /" >&2
17339 esac
17340 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17341 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17342 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 else
17345 ac_cv_header_arpa_inet_h=$ac_header_preproc
17347 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17348 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17351 if test $ac_cv_header_arpa_inet_h = yes; then
17353 else
17354 ok_so_far=no
17359 if test $ok_so_far = yes; then
17361 cat >>confdefs.h <<\_ACEOF
17362 #define HAVE_INET_SOCKETS 1
17363 _ACEOF
17367 if test -f /usr/lpp/X11/bin/smt.exp; then
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE_AIX_SMT_EXP 1
17371 _ACEOF
17375 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17376 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17377 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17378 echo "$as_me:$LINENO: result: yes" >&5
17379 echo "${ECHO_T}yes" >&6
17381 cat >>confdefs.h <<\_ACEOF
17382 #define HAVE_DEV_PTMX 1
17383 _ACEOF
17385 else
17386 echo "$as_me:$LINENO: result: no" >&5
17387 echo "${ECHO_T}no" >&6
17390 echo "$as_me:$LINENO: checking for pid_t" >&5
17391 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17392 if test "${ac_cv_type_pid_t+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395 cat >conftest.$ac_ext <<_ACEOF
17396 #line $LINENO "configure"
17397 /* confdefs.h. */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 $ac_includes_default
17404 main ()
17406 if ((pid_t *) 0)
17407 return 0;
17408 if (sizeof (pid_t))
17409 return 0;
17411 return 0;
17413 _ACEOF
17414 rm -f conftest.$ac_objext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17416 (eval $ac_compile) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -s conftest.$ac_objext'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_type_pid_t=yes
17427 else
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_cv_type_pid_t=no
17433 rm -f conftest.$ac_objext conftest.$ac_ext
17435 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17436 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17437 if test $ac_cv_type_pid_t = yes; then
17439 else
17441 cat >>confdefs.h <<_ACEOF
17442 #define pid_t int
17443 _ACEOF
17449 for ac_header in unistd.h vfork.h
17451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17453 echo "$as_me:$LINENO: checking for $ac_header" >&5
17454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17460 else
17461 # Is the header compilable?
17462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17465 #line $LINENO "configure"
17466 /* confdefs.h. */
17467 _ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 $ac_includes_default
17472 #include <$ac_header>
17473 _ACEOF
17474 rm -f conftest.$ac_objext
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -s conftest.$ac_objext'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486 ac_header_compiler=yes
17487 else
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 ac_header_compiler=no
17493 rm -f conftest.$ac_objext conftest.$ac_ext
17494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17495 echo "${ECHO_T}$ac_header_compiler" >&6
17497 # Is the header present?
17498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17500 cat >conftest.$ac_ext <<_ACEOF
17501 #line $LINENO "configure"
17502 /* confdefs.h. */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 #include <$ac_header>
17508 _ACEOF
17509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev/null; then
17517 if test -s conftest.err; then
17518 ac_cpp_err=$ac_c_preproc_warn_flag
17519 else
17520 ac_cpp_err=
17522 else
17523 ac_cpp_err=yes
17525 if test -z "$ac_cpp_err"; then
17526 ac_header_preproc=yes
17527 else
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ac_header_preproc=no
17533 rm -f conftest.err conftest.$ac_ext
17534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17535 echo "${ECHO_T}$ac_header_preproc" >&6
17537 # So? What about this header?
17538 case $ac_header_compiler:$ac_header_preproc in
17539 yes:no )
17540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17545 cat <<\_ASBOX
17546 ## ------------------------------------ ##
17547 ## Report this to bug-autoconf@gnu.org. ##
17548 ## ------------------------------------ ##
17549 _ASBOX
17551 sed "s/^/$as_me: WARNING: /" >&2
17553 no:yes )
17554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17561 cat <<\_ASBOX
17562 ## ------------------------------------ ##
17563 ## Report this to bug-autoconf@gnu.org. ##
17564 ## ------------------------------------ ##
17565 _ASBOX
17567 sed "s/^/$as_me: WARNING: /" >&2
17569 esac
17570 echo "$as_me:$LINENO: checking for $ac_header" >&5
17571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 else
17575 eval "$as_ac_Header=$ac_header_preproc"
17577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17582 cat >>confdefs.h <<_ACEOF
17583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17584 _ACEOF
17588 done
17592 for ac_func in fork vfork
17594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17595 echo "$as_me:$LINENO: checking for $ac_func" >&5
17596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17597 if eval "test \"\${$as_ac_var+set}\" = set"; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600 cat >conftest.$ac_ext <<_ACEOF
17601 #line $LINENO "configure"
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char $ac_func (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17611 #ifdef __STDC__
17612 # include <limits.h>
17613 #else
17614 # include <assert.h>
17615 #endif
17616 /* Override any gcc2 internal prototype to avoid an error. */
17617 #ifdef __cplusplus
17618 extern "C"
17620 #endif
17621 /* We use char because int might match the return type of a gcc2
17622 builtin and then its argument prototype would still apply. */
17623 char $ac_func ();
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17628 choke me
17629 #else
17630 char (*f) () = $ac_func;
17631 #endif
17632 #ifdef __cplusplus
17634 #endif
17637 main ()
17639 return f != $ac_func;
17641 return 0;
17643 _ACEOF
17644 rm -f conftest.$ac_objext conftest$ac_exeext
17645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17646 (eval $ac_link) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
17650 { ac_try='test -s conftest$ac_exeext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 eval "$as_ac_var=yes"
17657 else
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 eval "$as_ac_var=no"
17663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17667 if test `eval echo '${'$as_ac_var'}'` = yes; then
17668 cat >>confdefs.h <<_ACEOF
17669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17670 _ACEOF
17673 done
17675 if test "x$ac_cv_func_fork" = xyes; then
17676 echo "$as_me:$LINENO: checking for working fork" >&5
17677 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17678 if test "${ac_cv_func_fork_works+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681 if test "$cross_compiling" = yes; then
17682 ac_cv_func_fork_works=cross
17683 else
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* By Ruediger Kuhlmann. */
17686 #include <sys/types.h>
17687 #if HAVE_UNISTD_H
17688 # include <unistd.h>
17689 #endif
17690 /* Some systems only have a dummy stub for fork() */
17691 int main ()
17693 if (fork() < 0)
17694 exit (1);
17695 exit (0);
17697 _ACEOF
17698 rm -f conftest$ac_exeext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17700 (eval $ac_link) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_func_fork_works=yes
17710 else
17711 echo "$as_me: program exited with status $ac_status" >&5
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ( exit $ac_status )
17716 ac_cv_func_fork_works=no
17718 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17721 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17722 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17724 else
17725 ac_cv_func_fork_works=$ac_cv_func_fork
17727 if test "x$ac_cv_func_fork_works" = xcross; then
17728 case $host in
17729 *-*-amigaos* | *-*-msdosdjgpp*)
17730 # Override, as these systems have only a dummy fork() stub
17731 ac_cv_func_fork_works=no
17734 ac_cv_func_fork_works=yes
17736 esac
17737 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17738 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17740 ac_cv_func_vfork_works=$ac_cv_func_vfork
17741 if test "x$ac_cv_func_vfork" = xyes; then
17742 echo "$as_me:$LINENO: checking for working vfork" >&5
17743 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17744 if test "${ac_cv_func_vfork_works+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747 if test "$cross_compiling" = yes; then
17748 ac_cv_func_vfork_works=cross
17749 else
17750 cat >conftest.$ac_ext <<_ACEOF
17751 #line $LINENO "configure"
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 /* Thanks to Paul Eggert for this test. */
17758 #include <stdio.h>
17759 #include <stdlib.h>
17760 #include <sys/types.h>
17761 #include <sys/stat.h>
17762 #include <sys/wait.h>
17763 #if HAVE_UNISTD_H
17764 # include <unistd.h>
17765 #endif
17766 #if HAVE_VFORK_H
17767 # include <vfork.h>
17768 #endif
17769 /* On some sparc systems, changes by the child to local and incoming
17770 argument registers are propagated back to the parent. The compiler
17771 is told about this with #include <vfork.h>, but some compilers
17772 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17773 static variable whose address is put into a register that is
17774 clobbered by the vfork. */
17775 static void
17776 #ifdef __cplusplus
17777 sparc_address_test (int arg)
17778 # else
17779 sparc_address_test (arg) int arg;
17780 #endif
17782 static pid_t child;
17783 if (!child) {
17784 child = vfork ();
17785 if (child < 0) {
17786 perror ("vfork");
17787 _exit(2);
17789 if (!child) {
17790 arg = getpid();
17791 write(-1, "", 0);
17792 _exit (arg);
17798 main ()
17800 pid_t parent = getpid ();
17801 pid_t child;
17803 sparc_address_test (0);
17805 child = vfork ();
17807 if (child == 0) {
17808 /* Here is another test for sparc vfork register problems. This
17809 test uses lots of local variables, at least as many local
17810 variables as main has allocated so far including compiler
17811 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17812 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17813 reuse the register of parent for one of the local variables,
17814 since it will think that parent can't possibly be used any more
17815 in this routine. Assigning to the local variable will thus
17816 munge parent in the parent process. */
17817 pid_t
17818 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17819 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17820 /* Convince the compiler that p..p7 are live; otherwise, it might
17821 use the same hardware register for all 8 local variables. */
17822 if (p != p1 || p != p2 || p != p3 || p != p4
17823 || p != p5 || p != p6 || p != p7)
17824 _exit(1);
17826 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17827 from child file descriptors. If the child closes a descriptor
17828 before it execs or exits, this munges the parent's descriptor
17829 as well. Test for this by closing stdout in the child. */
17830 _exit(close(fileno(stdout)) != 0);
17831 } else {
17832 int status;
17833 struct stat st;
17835 while (wait(&status) != child)
17837 exit(
17838 /* Was there some problem with vforking? */
17839 child < 0
17841 /* Did the child fail? (This shouldn't happen.) */
17842 || status
17844 /* Did the vfork/compiler bug occur? */
17845 || parent != getpid()
17847 /* Did the file descriptor bug occur? */
17848 || fstat(fileno(stdout), &st) != 0
17852 _ACEOF
17853 rm -f conftest$ac_exeext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864 ac_cv_func_vfork_works=yes
17865 else
17866 echo "$as_me: program exited with status $ac_status" >&5
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ( exit $ac_status )
17871 ac_cv_func_vfork_works=no
17873 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17876 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17877 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17880 if test "x$ac_cv_func_fork_works" = xcross; then
17881 ac_cv_func_vfork_works=ac_cv_func_vfork
17882 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17883 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17886 if test "x$ac_cv_func_vfork_works" = xyes; then
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_WORKING_VFORK 1
17890 _ACEOF
17892 else
17894 cat >>confdefs.h <<\_ACEOF
17895 #define vfork fork
17896 _ACEOF
17899 if test "x$ac_cv_func_fork_works" = xyes; then
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE_WORKING_FORK 1
17903 _ACEOF
17908 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17909 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17910 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 cat >conftest.$ac_ext <<_ACEOF
17914 #line $LINENO "configure"
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 #include <langinfo.h>
17922 main ()
17924 char* cs = nl_langinfo(CODESET);
17926 return 0;
17928 _ACEOF
17929 rm -f conftest.$ac_objext conftest$ac_exeext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17931 (eval $ac_link) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 emacs_cv_langinfo_codeset=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 emacs_cv_langinfo_codeset=no
17948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17952 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17953 if test $emacs_cv_langinfo_codeset = yes; then
17955 cat >>confdefs.h <<\_ACEOF
17956 #define HAVE_LANGINFO_CODESET 1
17957 _ACEOF
17961 echo "$as_me:$LINENO: checking for size_t" >&5
17962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17963 if test "${ac_cv_type_size_t+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 cat >conftest.$ac_ext <<_ACEOF
17967 #line $LINENO "configure"
17968 /* confdefs.h. */
17969 _ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17975 main ()
17977 if ((size_t *) 0)
17978 return 0;
17979 if (sizeof (size_t))
17980 return 0;
17982 return 0;
17984 _ACEOF
17985 rm -f conftest.$ac_objext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17987 (eval $ac_compile) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_cv_type_size_t=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_type_size_t=no
18004 rm -f conftest.$ac_objext conftest.$ac_ext
18006 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18007 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18008 if test $ac_cv_type_size_t = yes; then
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_SIZE_T 1
18012 _ACEOF
18018 echo "$as_me:$LINENO: checking for mbstate_t" >&5
18019 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
18020 if test "${ac_cv_type_mbstate_t+set}" = set; then
18021 echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023 cat >conftest.$ac_ext <<_ACEOF
18024 #line $LINENO "configure"
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 $ac_includes_default
18031 # include <wchar.h>
18033 main ()
18035 mbstate_t x; return sizeof x;
18037 return 0;
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18042 (eval $ac_compile) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_type_mbstate_t=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_cv_type_mbstate_t=no
18059 rm -f conftest.$ac_objext conftest.$ac_ext
18061 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18062 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
18063 if test $ac_cv_type_mbstate_t = yes; then
18065 cat >>confdefs.h <<\_ACEOF
18066 #define HAVE_MBSTATE_T 1
18067 _ACEOF
18069 else
18071 cat >>confdefs.h <<\_ACEOF
18072 #define mbstate_t int
18073 _ACEOF
18077 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
18078 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
18079 if test "${emacs_cv_c_restrict+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082 cat >conftest.$ac_ext <<_ACEOF
18083 #line $LINENO "configure"
18084 /* confdefs.h. */
18085 _ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 void fred (int *restrict x);
18091 main ()
18095 return 0;
18097 _ACEOF
18098 rm -f conftest.$ac_objext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100 (eval $ac_compile) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -s conftest.$ac_objext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 emacs_cv_c_restrict=yes
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 cat >conftest.$ac_ext <<_ACEOF
18116 #line $LINENO "configure"
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 void fred (int *__restrict x);
18124 main ()
18128 return 0;
18130 _ACEOF
18131 rm -f conftest.$ac_objext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18133 (eval $ac_compile) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 emacs_cv_c_restrict=__restrict
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 emacs_cv_c_restrict=no
18150 rm -f conftest.$ac_objext conftest.$ac_ext
18152 rm -f conftest.$ac_objext conftest.$ac_ext
18154 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18155 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
18156 case "$emacs_cv_c_restrict" in
18157 yes) emacs_restrict=restrict;;
18158 no) emacs_restrict="";;
18159 *) emacs_restrict="$emacs_cv_c_restrict";;
18160 esac
18161 if test "$emacs_restrict" != __restrict; then
18163 cat >>confdefs.h <<_ACEOF
18164 #define __restrict $emacs_restrict
18165 _ACEOF
18169 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
18170 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
18171 if test "${emacs_cv_c_restrict_arr+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 cat >conftest.$ac_ext <<_ACEOF
18175 #line $LINENO "configure"
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 void fred (int x[__restrict]);
18183 main ()
18187 return 0;
18189 _ACEOF
18190 rm -f conftest.$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -s conftest.$ac_objext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 emacs_cv_c_restrict_arr=yes
18203 else
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 emacs_cv_c_restrict_arr=no
18209 rm -f conftest.$ac_objext conftest.$ac_ext
18211 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
18212 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
18213 if test "$emacs_cv_c_restrict_arr" = yes; then
18215 cat >>confdefs.h <<\_ACEOF
18216 #define __restrict_arr __restrict
18217 _ACEOF
18223 # Set up the CFLAGS for real compilation, so we can substitute it.
18224 CFLAGS="$REAL_CFLAGS"
18225 CPPFLAGS="$REAL_CPPFLAGS"
18227 #### Find out which version of Emacs this is.
18228 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
18229 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
18230 if test x"${version}" = x; then
18231 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
18232 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
18233 { (exit 1); exit 1; }; }
18236 ### Specify what sort of things we'll be editing into Makefile and config.h.
18237 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18273 cat >>confdefs.h <<_ACEOF
18274 #define EMACS_CONFIGURATION "${canonical}"
18275 _ACEOF
18278 cat >>confdefs.h <<_ACEOF
18279 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18280 _ACEOF
18283 cat >>confdefs.h <<_ACEOF
18284 #define config_machfile "${machfile}"
18285 _ACEOF
18288 cat >>confdefs.h <<_ACEOF
18289 #define config_opsysfile "${opsysfile}"
18290 _ACEOF
18293 cat >>confdefs.h <<_ACEOF
18294 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18295 _ACEOF
18298 cat >>confdefs.h <<_ACEOF
18299 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18300 _ACEOF
18303 cat >>confdefs.h <<_ACEOF
18304 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18305 _ACEOF
18308 cat >>confdefs.h <<_ACEOF
18309 #define UNEXEC_SRC ${UNEXEC_SRC}
18310 _ACEOF
18313 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE_X_WINDOWS 1
18317 _ACEOF
18320 if test "${USE_X_TOOLKIT}" != "none" ; then
18322 cat >>confdefs.h <<\_ACEOF
18323 #define USE_X_TOOLKIT 1
18324 _ACEOF
18327 if test "${HAVE_X11}" = "yes" ; then
18329 cat >>confdefs.h <<\_ACEOF
18330 #define HAVE_X11 1
18331 _ACEOF
18334 if test "${HAVE_XFREE386}" = "yes" ; then
18336 cat >>confdefs.h <<\_ACEOF
18337 #define HAVE_XFREE386 1
18338 _ACEOF
18341 if test "${HAVE_MENUS}" = "yes" ; then
18343 cat >>confdefs.h <<\_ACEOF
18344 #define HAVE_MENUS 1
18345 _ACEOF
18348 if test "${GNU_MALLOC}" = "yes" ; then
18350 cat >>confdefs.h <<\_ACEOF
18351 #define GNU_MALLOC 1
18352 _ACEOF
18355 if test "${REL_ALLOC}" = "yes" ; then
18357 cat >>confdefs.h <<\_ACEOF
18358 #define REL_ALLOC 1
18359 _ACEOF
18367 #### Report on what we decided to do.
18368 #### Report GTK as a toolkit, even if it doesn't use Xt.
18369 #### It makes printing result more understandable as using GTK sets
18370 #### toolkit_scroll_bars to yes by default.
18371 if test "${HAVE_GTK}" = "yes"; then
18372 USE_X_TOOLKIT=GTK
18375 echo "
18376 Configured for \`${canonical}'.
18378 Where should the build process find the source code? ${srcdir}
18379 What operating system and machine description files should Emacs use?
18380 \`${opsysfile}' and \`${machfile}'
18381 What compiler should emacs be built with? ${CC} ${CFLAGS}
18382 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18383 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18384 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18385 What window system should Emacs use? ${window_system}
18386 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18388 if test -n "${x_includes}"; then
18389 echo " Where do we find X Windows header files? ${x_includes}"
18390 else
18391 echo " Where do we find X Windows header files? Standard dirs"
18393 if test -n "${x_libraries}"; then
18394 echo " Where do we find X Windows libraries? ${x_libraries}"
18395 else
18396 echo " Where do we find X Windows libraries? Standard dirs"
18399 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18400 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18401 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18402 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18403 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18404 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18405 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18406 echo
18408 # Remove any trailing slashes in these variables.
18409 test "${prefix}" != NONE &&
18410 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18411 test "${exec_prefix}" != NONE &&
18412 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18414 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18415 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18416 ## from Makefile.c can correctly provide the arg `-traditional' to the
18417 ## C preprocessor.
18419 cat >conftest.$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18421 /* confdefs.h. */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 yes..yes
18427 _ACEOF
18428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18429 $EGREP "yes..yes" >/dev/null 2>&1; then
18430 CPP_NEED_TRADITIONAL=no
18431 else
18432 CPP_NEED_TRADITIONAL=yes
18434 rm -f conftest*
18437 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"
18438 ac_config_commands="$ac_config_commands default"
18439 cat >confcache <<\_ACEOF
18440 # This file is a shell script that caches the results of configure
18441 # tests run on this system so they can be shared between configure
18442 # scripts and configure runs, see configure's option --config-cache.
18443 # It is not useful on other systems. If it contains results you don't
18444 # want to keep, you may remove or edit it.
18446 # config.status only pays attention to the cache file if you give it
18447 # the --recheck option to rerun configure.
18449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18451 # following values.
18453 _ACEOF
18455 # The following way of writing the cache mishandles newlines in values,
18456 # but we know of no workaround that is simple, portable, and efficient.
18457 # So, don't put newlines in cache variables' values.
18458 # Ultrix sh set writes to stderr and can't be redirected directly,
18459 # and sets the high bit in the cache file unless we assign to the vars.
18461 (set) 2>&1 |
18462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18463 *ac_space=\ *)
18464 # `set' does not quote correctly, so add quotes (double-quote
18465 # substitution turns \\\\ into \\, and sed turns \\ into \).
18466 sed -n \
18467 "s/'/'\\\\''/g;
18468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18471 # `set' quotes correctly as required by POSIX, so do not add quotes.
18472 sed -n \
18473 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18475 esac;
18477 sed '
18478 t clear
18479 : clear
18480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18481 t end
18482 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18483 : end' >>confcache
18484 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18485 if test -w $cache_file; then
18486 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18487 cat confcache >$cache_file
18488 else
18489 echo "not updating unwritable cache $cache_file"
18492 rm -f confcache
18494 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18495 # Let make expand exec_prefix.
18496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18498 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18499 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18500 # trailing colons and then remove the whole line if VPATH becomes empty
18501 # (actually we leave an empty line to preserve line numbers).
18502 if test "x$srcdir" = x.; then
18503 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18504 s/:*\$(srcdir):*/:/;
18505 s/:*\${srcdir}:*/:/;
18506 s/:*@srcdir@:*/:/;
18507 s/^\([^=]*=[ ]*\):*/\1/;
18508 s/:*$//;
18509 s/^[^=]*=[ ]*$//;
18513 DEFS=-DHAVE_CONFIG_H
18515 ac_libobjs=
18516 ac_ltlibobjs=
18517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18518 # 1. Remove the extension, and $U if already installed.
18519 ac_i=`echo "$ac_i" |
18520 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18521 # 2. Add them.
18522 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18523 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18524 done
18525 LIBOBJS=$ac_libobjs
18527 LTLIBOBJS=$ac_ltlibobjs
18531 : ${CONFIG_STATUS=./config.status}
18532 ac_clean_files_save=$ac_clean_files
18533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18536 cat >$CONFIG_STATUS <<_ACEOF
18537 #! $SHELL
18538 # Generated by $as_me.
18539 # Run this file to recreate the current configuration.
18540 # Compiler output produced by configure, useful for debugging
18541 # configure, is in config.log if it exists.
18543 debug=false
18544 ac_cs_recheck=false
18545 ac_cs_silent=false
18546 SHELL=\${CONFIG_SHELL-$SHELL}
18547 _ACEOF
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 ## --------------------- ##
18551 ## M4sh Initialization. ##
18552 ## --------------------- ##
18554 # Be Bourne compatible
18555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18556 emulate sh
18557 NULLCMD=:
18558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18559 # is contrary to our usage. Disable this feature.
18560 alias -g '${1+"$@"}'='"$@"'
18561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18562 set -o posix
18565 # Support unset when possible.
18566 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18567 as_unset=unset
18568 else
18569 as_unset=false
18573 # Work around bugs in pre-3.0 UWIN ksh.
18574 $as_unset ENV MAIL MAILPATH
18575 PS1='$ '
18576 PS2='> '
18577 PS4='+ '
18579 # NLS nuisances.
18580 for as_var in \
18581 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18582 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18583 LC_TELEPHONE LC_TIME
18585 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18586 eval $as_var=C; export $as_var
18587 else
18588 $as_unset $as_var
18590 done
18592 # Required to use basename.
18593 if expr a : '\(a\)' >/dev/null 2>&1; then
18594 as_expr=expr
18595 else
18596 as_expr=false
18599 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18600 as_basename=basename
18601 else
18602 as_basename=false
18606 # Name of the executable.
18607 as_me=`$as_basename "$0" ||
18608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18609 X"$0" : 'X\(//\)$' \| \
18610 X"$0" : 'X\(/\)$' \| \
18611 . : '\(.\)' 2>/dev/null ||
18612 echo X/"$0" |
18613 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18614 /^X\/\(\/\/\)$/{ s//\1/; q; }
18615 /^X\/\(\/\).*/{ s//\1/; q; }
18616 s/.*/./; q'`
18619 # PATH needs CR, and LINENO needs CR and PATH.
18620 # Avoid depending upon Character Ranges.
18621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18624 as_cr_digits='0123456789'
18625 as_cr_alnum=$as_cr_Letters$as_cr_digits
18627 # The user is always right.
18628 if test "${PATH_SEPARATOR+set}" != set; then
18629 echo "#! /bin/sh" >conf$$.sh
18630 echo "exit 0" >>conf$$.sh
18631 chmod +x conf$$.sh
18632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18633 PATH_SEPARATOR=';'
18634 else
18635 PATH_SEPARATOR=:
18637 rm -f conf$$.sh
18641 as_lineno_1=$LINENO
18642 as_lineno_2=$LINENO
18643 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18644 test "x$as_lineno_1" != "x$as_lineno_2" &&
18645 test "x$as_lineno_3" = "x$as_lineno_2" || {
18646 # Find who we are. Look in the path if we contain no path at all
18647 # relative or not.
18648 case $0 in
18649 *[\\/]* ) as_myself=$0 ;;
18650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18651 for as_dir in $PATH
18653 IFS=$as_save_IFS
18654 test -z "$as_dir" && as_dir=.
18655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18656 done
18659 esac
18660 # We did not find ourselves, most probably we were run as `sh COMMAND'
18661 # in which case we are not to be found in the path.
18662 if test "x$as_myself" = x; then
18663 as_myself=$0
18665 if test ! -f "$as_myself"; then
18666 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18667 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18668 { (exit 1); exit 1; }; }
18670 case $CONFIG_SHELL in
18672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18673 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18675 IFS=$as_save_IFS
18676 test -z "$as_dir" && as_dir=.
18677 for as_base in sh bash ksh sh5; do
18678 case $as_dir in
18680 if ("$as_dir/$as_base" -c '
18681 as_lineno_1=$LINENO
18682 as_lineno_2=$LINENO
18683 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18684 test "x$as_lineno_1" != "x$as_lineno_2" &&
18685 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18686 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18687 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18688 CONFIG_SHELL=$as_dir/$as_base
18689 export CONFIG_SHELL
18690 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18691 fi;;
18692 esac
18693 done
18694 done
18696 esac
18698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18699 # uniformly replaced by the line number. The first 'sed' inserts a
18700 # line-number line before each line; the second 'sed' does the real
18701 # work. The second script uses 'N' to pair each line-number line
18702 # with the numbered line, and appends trailing '-' during
18703 # substitution so that $LINENO is not a special case at line end.
18704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18705 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18706 sed '=' <$as_myself |
18707 sed '
18709 s,$,-,
18710 : loop
18711 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18712 t loop
18713 s,-$,,
18714 s,^['$as_cr_digits']*\n,,
18715 ' >$as_me.lineno &&
18716 chmod +x $as_me.lineno ||
18717 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18718 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18719 { (exit 1); exit 1; }; }
18721 # Don't try to exec as it changes $[0], causing all sort of problems
18722 # (the dirname of $[0] is not the place where we might find the
18723 # original and so on. Autoconf is especially sensible to this).
18724 . ./$as_me.lineno
18725 # Exit status is that of the last command.
18726 exit
18730 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18731 *c*,-n*) ECHO_N= ECHO_C='
18732 ' ECHO_T=' ' ;;
18733 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18734 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18735 esac
18737 if expr a : '\(a\)' >/dev/null 2>&1; then
18738 as_expr=expr
18739 else
18740 as_expr=false
18743 rm -f conf$$ conf$$.exe conf$$.file
18744 echo >conf$$.file
18745 if ln -s conf$$.file conf$$ 2>/dev/null; then
18746 # We could just check for DJGPP; but this test a) works b) is more generic
18747 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18748 if test -f conf$$.exe; then
18749 # Don't use ln at all; we don't have any links
18750 as_ln_s='cp -p'
18751 else
18752 as_ln_s='ln -s'
18754 elif ln conf$$.file conf$$ 2>/dev/null; then
18755 as_ln_s=ln
18756 else
18757 as_ln_s='cp -p'
18759 rm -f conf$$ conf$$.exe conf$$.file
18761 if mkdir -p . 2>/dev/null; then
18762 as_mkdir_p=:
18763 else
18764 as_mkdir_p=false
18767 as_executable_p="test -f"
18769 # Sed expression to map a string onto a valid CPP name.
18770 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18772 # Sed expression to map a string onto a valid variable name.
18773 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18776 # IFS
18777 # We need space, tab and new line, in precisely that order.
18778 as_nl='
18780 IFS=" $as_nl"
18782 # CDPATH.
18783 $as_unset CDPATH
18785 exec 6>&1
18787 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18788 # report actual input values of CONFIG_FILES etc. instead of their
18789 # values after options handling. Logging --version etc. is OK.
18790 exec 5>>config.log
18792 echo
18793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18794 ## Running $as_me. ##
18795 _ASBOX
18796 } >&5
18797 cat >&5 <<_CSEOF
18799 This file was extended by $as_me, which was
18800 generated by GNU Autoconf 2.57. Invocation command line was
18802 CONFIG_FILES = $CONFIG_FILES
18803 CONFIG_HEADERS = $CONFIG_HEADERS
18804 CONFIG_LINKS = $CONFIG_LINKS
18805 CONFIG_COMMANDS = $CONFIG_COMMANDS
18806 $ $0 $@
18808 _CSEOF
18809 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18810 echo >&5
18811 _ACEOF
18813 # Files that config.status was made for.
18814 if test -n "$ac_config_files"; then
18815 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18818 if test -n "$ac_config_headers"; then
18819 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18822 if test -n "$ac_config_links"; then
18823 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18826 if test -n "$ac_config_commands"; then
18827 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18830 cat >>$CONFIG_STATUS <<\_ACEOF
18832 ac_cs_usage="\
18833 \`$as_me' instantiates files from templates according to the
18834 current configuration.
18836 Usage: $0 [OPTIONS] [FILE]...
18838 -h, --help print this help, then exit
18839 -V, --version print version number, then exit
18840 -q, --quiet do not print progress messages
18841 -d, --debug don't remove temporary files
18842 --recheck update $as_me by reconfiguring in the same conditions
18843 --file=FILE[:TEMPLATE]
18844 instantiate the configuration file FILE
18845 --header=FILE[:TEMPLATE]
18846 instantiate the configuration header FILE
18848 Configuration files:
18849 $config_files
18851 Configuration headers:
18852 $config_headers
18854 Configuration commands:
18855 $config_commands
18857 Report bugs to <bug-autoconf@gnu.org>."
18858 _ACEOF
18860 cat >>$CONFIG_STATUS <<_ACEOF
18861 ac_cs_version="\\
18862 config.status
18863 configured by $0, generated by GNU Autoconf 2.57,
18864 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18867 Free Software Foundation, Inc.
18868 This config.status script is free software; the Free Software Foundation
18869 gives unlimited permission to copy, distribute and modify it."
18870 srcdir=$srcdir
18871 INSTALL="$INSTALL"
18872 _ACEOF
18874 cat >>$CONFIG_STATUS <<\_ACEOF
18875 # If no file are specified by the user, then we need to provide default
18876 # value. By we need to know if files were specified by the user.
18877 ac_need_defaults=:
18878 while test $# != 0
18880 case $1 in
18881 --*=*)
18882 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18883 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18884 ac_shift=:
18887 ac_option=$1
18888 ac_optarg=$2
18889 ac_shift=shift
18891 *) # This is not an option, so the user has probably given explicit
18892 # arguments.
18893 ac_option=$1
18894 ac_need_defaults=false;;
18895 esac
18897 case $ac_option in
18898 # Handling of the options.
18899 _ACEOF
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18902 ac_cs_recheck=: ;;
18903 --version | --vers* | -V )
18904 echo "$ac_cs_version"; exit 0 ;;
18905 --he | --h)
18906 # Conflict between --help and --header
18907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18908 Try \`$0 --help' for more information." >&5
18909 echo "$as_me: error: ambiguous option: $1
18910 Try \`$0 --help' for more information." >&2;}
18911 { (exit 1); exit 1; }; };;
18912 --help | --hel | -h )
18913 echo "$ac_cs_usage"; exit 0 ;;
18914 --debug | --d* | -d )
18915 debug=: ;;
18916 --file | --fil | --fi | --f )
18917 $ac_shift
18918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18919 ac_need_defaults=false;;
18920 --header | --heade | --head | --hea )
18921 $ac_shift
18922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18923 ac_need_defaults=false;;
18924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18926 ac_cs_silent=: ;;
18928 # This is an error.
18929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18930 Try \`$0 --help' for more information." >&5
18931 echo "$as_me: error: unrecognized option: $1
18932 Try \`$0 --help' for more information." >&2;}
18933 { (exit 1); exit 1; }; } ;;
18935 *) ac_config_targets="$ac_config_targets $1" ;;
18937 esac
18938 shift
18939 done
18941 ac_configure_extra_args=
18943 if $ac_cs_silent; then
18944 exec 6>/dev/null
18945 ac_configure_extra_args="$ac_configure_extra_args --silent"
18948 _ACEOF
18949 cat >>$CONFIG_STATUS <<_ACEOF
18950 if \$ac_cs_recheck; then
18951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18955 _ACEOF
18957 cat >>$CONFIG_STATUS <<_ACEOF
18959 # INIT-COMMANDS section.
18962 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18964 _ACEOF
18968 cat >>$CONFIG_STATUS <<\_ACEOF
18969 for ac_config_target in $ac_config_targets
18971 case "$ac_config_target" in
18972 # Handling of arguments.
18973 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18974 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18975 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18976 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18977 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18978 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18979 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18980 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18981 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18982 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18983 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18984 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18985 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18986 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18987 { (exit 1); exit 1; }; };;
18988 esac
18989 done
18991 # If the user did not use the arguments to specify the items to instantiate,
18992 # then the envvar interface is used. Set only those that are not.
18993 # We use the long form for the default assignment because of an extremely
18994 # bizarre bug on SunOS 4.1.3.
18995 if $ac_need_defaults; then
18996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19001 # Have a temporary directory for convenience. Make it in the build tree
19002 # simply because there is no reason to put it here, and in addition,
19003 # creating and moving files from /tmp can sometimes cause problems.
19004 # Create a temporary directory, and hook for its removal unless debugging.
19005 $debug ||
19007 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19008 trap '{ (exit 1); exit 1; }' 1 2 13 15
19011 # Create a (secure) tmp directory for tmp files.
19014 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19015 test -n "$tmp" && test -d "$tmp"
19016 } ||
19018 tmp=./confstat$$-$RANDOM
19019 (umask 077 && mkdir $tmp)
19020 } ||
19022 echo "$me: cannot create a temporary directory in ." >&2
19023 { (exit 1); exit 1; }
19026 _ACEOF
19028 cat >>$CONFIG_STATUS <<_ACEOF
19031 # CONFIG_FILES section.
19034 # No need to generate the scripts if there are no CONFIG_FILES.
19035 # This happens for instance when ./config.status config.h
19036 if test -n "\$CONFIG_FILES"; then
19037 # Protect against being on the right side of a sed subst in config.status.
19038 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19039 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19040 s,@SHELL@,$SHELL,;t t
19041 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19042 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19043 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19044 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19045 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19046 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19047 s,@exec_prefix@,$exec_prefix,;t t
19048 s,@prefix@,$prefix,;t t
19049 s,@program_transform_name@,$program_transform_name,;t t
19050 s,@bindir@,$bindir,;t t
19051 s,@sbindir@,$sbindir,;t t
19052 s,@libexecdir@,$libexecdir,;t t
19053 s,@datadir@,$datadir,;t t
19054 s,@sysconfdir@,$sysconfdir,;t t
19055 s,@sharedstatedir@,$sharedstatedir,;t t
19056 s,@localstatedir@,$localstatedir,;t t
19057 s,@libdir@,$libdir,;t t
19058 s,@includedir@,$includedir,;t t
19059 s,@oldincludedir@,$oldincludedir,;t t
19060 s,@infodir@,$infodir,;t t
19061 s,@mandir@,$mandir,;t t
19062 s,@build_alias@,$build_alias,;t t
19063 s,@host_alias@,$host_alias,;t t
19064 s,@target_alias@,$target_alias,;t t
19065 s,@DEFS@,$DEFS,;t t
19066 s,@ECHO_C@,$ECHO_C,;t t
19067 s,@ECHO_N@,$ECHO_N,;t t
19068 s,@ECHO_T@,$ECHO_T,;t t
19069 s,@LIBS@,$LIBS,;t t
19070 s,@build@,$build,;t t
19071 s,@build_cpu@,$build_cpu,;t t
19072 s,@build_vendor@,$build_vendor,;t t
19073 s,@build_os@,$build_os,;t t
19074 s,@host@,$host,;t t
19075 s,@host_cpu@,$host_cpu,;t t
19076 s,@host_vendor@,$host_vendor,;t t
19077 s,@host_os@,$host_os,;t t
19078 s,@CC@,$CC,;t t
19079 s,@CFLAGS@,$CFLAGS,;t t
19080 s,@LDFLAGS@,$LDFLAGS,;t t
19081 s,@CPPFLAGS@,$CPPFLAGS,;t t
19082 s,@ac_ct_CC@,$ac_ct_CC,;t t
19083 s,@EXEEXT@,$EXEEXT,;t t
19084 s,@OBJEXT@,$OBJEXT,;t t
19085 s,@LN_S@,$LN_S,;t t
19086 s,@CPP@,$CPP,;t t
19087 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19088 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19089 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19090 s,@RANLIB@,$RANLIB,;t t
19091 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19092 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
19093 s,@EGREP@,$EGREP,;t t
19094 s,@LIBSOUND@,$LIBSOUND,;t t
19095 s,@SET_MAKE@,$SET_MAKE,;t t
19096 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19097 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
19098 s,@GTK_LIBS@,$GTK_LIBS,;t t
19099 s,@ALLOCA@,$ALLOCA,;t t
19100 s,@liblockfile@,$liblockfile,;t t
19101 s,@LIBOBJS@,$LIBOBJS,;t t
19102 s,@NEED_SETGID@,$NEED_SETGID,;t t
19103 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
19104 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
19105 s,@version@,$version,;t t
19106 s,@configuration@,$configuration,;t t
19107 s,@canonical@,$canonical,;t t
19108 s,@srcdir@,$srcdir,;t t
19109 s,@lispdir@,$lispdir,;t t
19110 s,@locallisppath@,$locallisppath,;t t
19111 s,@lisppath@,$lisppath,;t t
19112 s,@x_default_search_path@,$x_default_search_path,;t t
19113 s,@etcdir@,$etcdir,;t t
19114 s,@archlibdir@,$archlibdir,;t t
19115 s,@docdir@,$docdir,;t t
19116 s,@bitmapdir@,$bitmapdir,;t t
19117 s,@gamedir@,$gamedir,;t t
19118 s,@gameuser@,$gameuser,;t t
19119 s,@c_switch_system@,$c_switch_system,;t t
19120 s,@c_switch_machine@,$c_switch_machine,;t t
19121 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
19122 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
19123 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
19124 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
19125 s,@machfile@,$machfile,;t t
19126 s,@opsysfile@,$opsysfile,;t t
19127 s,@carbon_appdir@,$carbon_appdir,;t t
19128 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19129 CEOF
19131 _ACEOF
19133 cat >>$CONFIG_STATUS <<\_ACEOF
19134 # Split the substitutions into bite-sized pieces for seds with
19135 # small command number limits, like on Digital OSF/1 and HP-UX.
19136 ac_max_sed_lines=48
19137 ac_sed_frag=1 # Number of current file.
19138 ac_beg=1 # First line for current file.
19139 ac_end=$ac_max_sed_lines # Line after last line for current file.
19140 ac_more_lines=:
19141 ac_sed_cmds=
19142 while $ac_more_lines; do
19143 if test $ac_beg -gt 1; then
19144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19145 else
19146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19148 if test ! -s $tmp/subs.frag; then
19149 ac_more_lines=false
19150 else
19151 # The purpose of the label and of the branching condition is to
19152 # speed up the sed processing (if there are no `@' at all, there
19153 # is no need to browse any of the substitutions).
19154 # These are the two extra sed commands mentioned above.
19155 (echo ':t
19156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19157 if test -z "$ac_sed_cmds"; then
19158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19159 else
19160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19162 ac_sed_frag=`expr $ac_sed_frag + 1`
19163 ac_beg=$ac_end
19164 ac_end=`expr $ac_end + $ac_max_sed_lines`
19166 done
19167 if test -z "$ac_sed_cmds"; then
19168 ac_sed_cmds=cat
19170 fi # test -n "$CONFIG_FILES"
19172 _ACEOF
19173 cat >>$CONFIG_STATUS <<\_ACEOF
19174 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19176 case $ac_file in
19177 - | *:- | *:-:* ) # input from stdin
19178 cat >$tmp/stdin
19179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19183 * ) ac_file_in=$ac_file.in ;;
19184 esac
19186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19189 X"$ac_file" : 'X\(//\)[^/]' \| \
19190 X"$ac_file" : 'X\(//\)$' \| \
19191 X"$ac_file" : 'X\(/\)' \| \
19192 . : '\(.\)' 2>/dev/null ||
19193 echo X"$ac_file" |
19194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19196 /^X\(\/\/\)$/{ s//\1/; q; }
19197 /^X\(\/\).*/{ s//\1/; q; }
19198 s/.*/./; q'`
19199 { if $as_mkdir_p; then
19200 mkdir -p "$ac_dir"
19201 else
19202 as_dir="$ac_dir"
19203 as_dirs=
19204 while test ! -d "$as_dir"; do
19205 as_dirs="$as_dir $as_dirs"
19206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X"$as_dir" : 'X\(//\)[^/]' \| \
19209 X"$as_dir" : 'X\(//\)$' \| \
19210 X"$as_dir" : 'X\(/\)' \| \
19211 . : '\(.\)' 2>/dev/null ||
19212 echo X"$as_dir" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19215 /^X\(\/\/\)$/{ s//\1/; q; }
19216 /^X\(\/\).*/{ s//\1/; q; }
19217 s/.*/./; q'`
19218 done
19219 test ! -n "$as_dirs" || mkdir $as_dirs
19220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19221 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19222 { (exit 1); exit 1; }; }; }
19224 ac_builddir=.
19226 if test "$ac_dir" != .; then
19227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19228 # A "../" for each directory in $ac_dir_suffix.
19229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19230 else
19231 ac_dir_suffix= ac_top_builddir=
19234 case $srcdir in
19235 .) # No --srcdir option. We are building in place.
19236 ac_srcdir=.
19237 if test -z "$ac_top_builddir"; then
19238 ac_top_srcdir=.
19239 else
19240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19241 fi ;;
19242 [\\/]* | ?:[\\/]* ) # Absolute path.
19243 ac_srcdir=$srcdir$ac_dir_suffix;
19244 ac_top_srcdir=$srcdir ;;
19245 *) # Relative path.
19246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19248 esac
19249 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19250 # absolute.
19251 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19252 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19253 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19254 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19257 case $INSTALL in
19258 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19259 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19260 esac
19262 if test x"$ac_file" != x-; then
19263 { echo "$as_me:$LINENO: creating $ac_file" >&5
19264 echo "$as_me: creating $ac_file" >&6;}
19265 rm -f "$ac_file"
19267 # Let's still pretend it is `configure' which instantiates (i.e., don't
19268 # use $as_me), people would be surprised to read:
19269 # /* config.h. Generated by config.status. */
19270 if test x"$ac_file" = x-; then
19271 configure_input=
19272 else
19273 configure_input="$ac_file. "
19275 configure_input=$configure_input"Generated from `echo $ac_file_in |
19276 sed 's,.*/,,'` by configure."
19278 # First look for the input files in the build tree, otherwise in the
19279 # src tree.
19280 ac_file_inputs=`IFS=:
19281 for f in $ac_file_in; do
19282 case $f in
19283 -) echo $tmp/stdin ;;
19284 [\\/$]*)
19285 # Absolute (can't be DOS-style, as IFS=:)
19286 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19287 echo "$as_me: error: cannot find input file: $f" >&2;}
19288 { (exit 1); exit 1; }; }
19289 echo $f;;
19290 *) # Relative
19291 if test -f "$f"; then
19292 # Build tree
19293 echo $f
19294 elif test -f "$srcdir/$f"; then
19295 # Source tree
19296 echo $srcdir/$f
19297 else
19298 # /dev/null tree
19299 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19300 echo "$as_me: error: cannot find input file: $f" >&2;}
19301 { (exit 1); exit 1; }; }
19302 fi;;
19303 esac
19304 done` || { (exit 1); exit 1; }
19305 _ACEOF
19306 cat >>$CONFIG_STATUS <<_ACEOF
19307 sed "$ac_vpsub
19308 $extrasub
19309 _ACEOF
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19313 s,@configure_input@,$configure_input,;t t
19314 s,@srcdir@,$ac_srcdir,;t t
19315 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19316 s,@top_srcdir@,$ac_top_srcdir,;t t
19317 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19318 s,@builddir@,$ac_builddir,;t t
19319 s,@abs_builddir@,$ac_abs_builddir,;t t
19320 s,@top_builddir@,$ac_top_builddir,;t t
19321 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19322 s,@INSTALL@,$ac_INSTALL,;t t
19323 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19324 rm -f $tmp/stdin
19325 if test x"$ac_file" != x-; then
19326 mv $tmp/out $ac_file
19327 else
19328 cat $tmp/out
19329 rm -f $tmp/out
19332 done
19333 _ACEOF
19334 cat >>$CONFIG_STATUS <<\_ACEOF
19337 # CONFIG_HEADER section.
19340 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19341 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19343 # ac_d sets the value in "#define NAME VALUE" lines.
19344 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19345 ac_dB='[ ].*$,\1#\2'
19346 ac_dC=' '
19347 ac_dD=',;t'
19348 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19349 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19350 ac_uB='$,\1#\2define\3'
19351 ac_uC=' '
19352 ac_uD=',;t'
19354 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19356 case $ac_file in
19357 - | *:- | *:-:* ) # input from stdin
19358 cat >$tmp/stdin
19359 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19361 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19363 * ) ac_file_in=$ac_file.in ;;
19364 esac
19366 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19367 echo "$as_me: creating $ac_file" >&6;}
19369 # First look for the input files in the build tree, otherwise in the
19370 # src tree.
19371 ac_file_inputs=`IFS=:
19372 for f in $ac_file_in; do
19373 case $f in
19374 -) echo $tmp/stdin ;;
19375 [\\/$]*)
19376 # Absolute (can't be DOS-style, as IFS=:)
19377 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19378 echo "$as_me: error: cannot find input file: $f" >&2;}
19379 { (exit 1); exit 1; }; }
19380 echo $f;;
19381 *) # Relative
19382 if test -f "$f"; then
19383 # Build tree
19384 echo $f
19385 elif test -f "$srcdir/$f"; then
19386 # Source tree
19387 echo $srcdir/$f
19388 else
19389 # /dev/null tree
19390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19391 echo "$as_me: error: cannot find input file: $f" >&2;}
19392 { (exit 1); exit 1; }; }
19393 fi;;
19394 esac
19395 done` || { (exit 1); exit 1; }
19396 # Remove the trailing spaces.
19397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19399 _ACEOF
19401 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19402 # `conftest.undefs', that substitutes the proper values into
19403 # config.h.in to produce config.h. The first handles `#define'
19404 # templates, and the second `#undef' templates.
19405 # And first: Protect against being on the right side of a sed subst in
19406 # config.status. Protect against being in an unquoted here document
19407 # in config.status.
19408 rm -f conftest.defines conftest.undefs
19409 # Using a here document instead of a string reduces the quoting nightmare.
19410 # Putting comments in sed scripts is not portable.
19412 # `end' is used to avoid that the second main sed command (meant for
19413 # 0-ary CPP macros) applies to n-ary macro definitions.
19414 # See the Autoconf documentation for `clear'.
19415 cat >confdef2sed.sed <<\_ACEOF
19416 s/[\\&,]/\\&/g
19417 s,[\\$`],\\&,g
19418 t clear
19419 : clear
19420 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19421 t end
19422 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19423 : end
19424 _ACEOF
19425 # If some macros were called several times there might be several times
19426 # the same #defines, which is useless. Nevertheless, we may not want to
19427 # sort them, since we want the *last* AC-DEFINE to be honored.
19428 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19429 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19430 rm -f confdef2sed.sed
19432 # This sed command replaces #undef with comments. This is necessary, for
19433 # example, in the case of _POSIX_SOURCE, which is predefined and required
19434 # on some systems where configure will not decide to define it.
19435 cat >>conftest.undefs <<\_ACEOF
19436 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19437 _ACEOF
19439 # Break up conftest.defines because some shells have a limit on the size
19440 # of here documents, and old seds have small limits too (100 cmds).
19441 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19442 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19443 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19444 echo ' :' >>$CONFIG_STATUS
19445 rm -f conftest.tail
19446 while grep . conftest.defines >/dev/null
19448 # Write a limited-size here document to $tmp/defines.sed.
19449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19450 # Speed up: don't consider the non `#define' lines.
19451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19452 # Work around the forget-to-reset-the-flag bug.
19453 echo 't clr' >>$CONFIG_STATUS
19454 echo ': clr' >>$CONFIG_STATUS
19455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19456 echo 'CEOF
19457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19458 rm -f $tmp/in
19459 mv $tmp/out $tmp/in
19460 ' >>$CONFIG_STATUS
19461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19462 rm -f conftest.defines
19463 mv conftest.tail conftest.defines
19464 done
19465 rm -f conftest.defines
19466 echo ' fi # grep' >>$CONFIG_STATUS
19467 echo >>$CONFIG_STATUS
19469 # Break up conftest.undefs because some shells have a limit on the size
19470 # of here documents, and old seds have small limits too (100 cmds).
19471 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19472 rm -f conftest.tail
19473 while grep . conftest.undefs >/dev/null
19475 # Write a limited-size here document to $tmp/undefs.sed.
19476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19477 # Speed up: don't consider the non `#undef'
19478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19479 # Work around the forget-to-reset-the-flag bug.
19480 echo 't clr' >>$CONFIG_STATUS
19481 echo ': clr' >>$CONFIG_STATUS
19482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19483 echo 'CEOF
19484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19485 rm -f $tmp/in
19486 mv $tmp/out $tmp/in
19487 ' >>$CONFIG_STATUS
19488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19489 rm -f conftest.undefs
19490 mv conftest.tail conftest.undefs
19491 done
19492 rm -f conftest.undefs
19494 cat >>$CONFIG_STATUS <<\_ACEOF
19495 # Let's still pretend it is `configure' which instantiates (i.e., don't
19496 # use $as_me), people would be surprised to read:
19497 # /* config.h. Generated by config.status. */
19498 if test x"$ac_file" = x-; then
19499 echo "/* Generated by configure. */" >$tmp/config.h
19500 else
19501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19503 cat $tmp/in >>$tmp/config.h
19504 rm -f $tmp/in
19505 if test x"$ac_file" != x-; then
19506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19508 echo "$as_me: $ac_file is unchanged" >&6;}
19509 else
19510 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512 X"$ac_file" : 'X\(//\)[^/]' \| \
19513 X"$ac_file" : 'X\(//\)$' \| \
19514 X"$ac_file" : 'X\(/\)' \| \
19515 . : '\(.\)' 2>/dev/null ||
19516 echo X"$ac_file" |
19517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19519 /^X\(\/\/\)$/{ s//\1/; q; }
19520 /^X\(\/\).*/{ s//\1/; q; }
19521 s/.*/./; q'`
19522 { if $as_mkdir_p; then
19523 mkdir -p "$ac_dir"
19524 else
19525 as_dir="$ac_dir"
19526 as_dirs=
19527 while test ! -d "$as_dir"; do
19528 as_dirs="$as_dir $as_dirs"
19529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19531 X"$as_dir" : 'X\(//\)[^/]' \| \
19532 X"$as_dir" : 'X\(//\)$' \| \
19533 X"$as_dir" : 'X\(/\)' \| \
19534 . : '\(.\)' 2>/dev/null ||
19535 echo X"$as_dir" |
19536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19538 /^X\(\/\/\)$/{ s//\1/; q; }
19539 /^X\(\/\).*/{ s//\1/; q; }
19540 s/.*/./; q'`
19541 done
19542 test ! -n "$as_dirs" || mkdir $as_dirs
19543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19544 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19545 { (exit 1); exit 1; }; }; }
19547 rm -f $ac_file
19548 mv $tmp/config.h $ac_file
19550 else
19551 cat $tmp/config.h
19552 rm -f $tmp/config.h
19554 done
19555 _ACEOF
19556 cat >>$CONFIG_STATUS <<\_ACEOF
19559 # CONFIG_COMMANDS section.
19561 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19564 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19566 X"$ac_dest" : 'X\(//\)[^/]' \| \
19567 X"$ac_dest" : 'X\(//\)$' \| \
19568 X"$ac_dest" : 'X\(/\)' \| \
19569 . : '\(.\)' 2>/dev/null ||
19570 echo X"$ac_dest" |
19571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19573 /^X\(\/\/\)$/{ s//\1/; q; }
19574 /^X\(\/\).*/{ s//\1/; q; }
19575 s/.*/./; q'`
19576 ac_builddir=.
19578 if test "$ac_dir" != .; then
19579 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19580 # A "../" for each directory in $ac_dir_suffix.
19581 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19582 else
19583 ac_dir_suffix= ac_top_builddir=
19586 case $srcdir in
19587 .) # No --srcdir option. We are building in place.
19588 ac_srcdir=.
19589 if test -z "$ac_top_builddir"; then
19590 ac_top_srcdir=.
19591 else
19592 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19593 fi ;;
19594 [\\/]* | ?:[\\/]* ) # Absolute path.
19595 ac_srcdir=$srcdir$ac_dir_suffix;
19596 ac_top_srcdir=$srcdir ;;
19597 *) # Relative path.
19598 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19599 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19600 esac
19601 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19602 # absolute.
19603 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19604 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19605 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19606 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19609 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19610 echo "$as_me: executing $ac_dest commands" >&6;}
19611 case $ac_dest in
19612 default )
19614 ### Make the necessary directories, if they don't exist.
19615 for dir in etc lisp ; do
19616 test -d ${dir} || mkdir ${dir}
19617 done
19619 # Build src/Makefile from ${srcdir}/src/Makefile.c
19620 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19621 # This must be done after src/config.h is built, since we rely on that file.
19623 # Now get this: Some word that is part of the ${srcdir} directory name
19624 # or the ${configuration} value might, just might, happen to be an
19625 # identifier like `sun4' or `i386' or something, and be predefined by
19626 # the C preprocessor to some helpful value like 1, or maybe the empty
19627 # string. Needless to say consequent macro substitutions are less
19628 # than conducive to the makefile finding the correct directory.
19629 undefs="`echo $top_srcdir $configuration $canonical |
19630 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19631 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19634 echo creating src/epaths.h
19635 ${MAKE-make} epaths-force
19637 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19638 # `..' to `. .' unless invoked with -traditional
19640 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19641 CPPFLAGS="$CPPFLAGS -traditional"
19644 echo creating lib-src/Makefile
19645 ( cd lib-src
19646 rm -f junk.c junk1.c junk2.c
19647 sed -e '/start of cpp stuff/q' \
19648 < Makefile.c > junk1.c
19649 sed -e '1,/start of cpp stuff/d'\
19650 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19651 < Makefile.c > junk.c
19652 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19653 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19654 cat junk1.c junk2.c > Makefile.new
19655 rm -f junk.c junk1.c junk2.c
19656 chmod 444 Makefile.new
19657 mv -f Makefile.new Makefile
19660 echo creating src/Makefile
19661 ( cd src
19662 rm -f junk.c junk1.c junk2.c
19663 sed -e '/start of cpp stuff/q' \
19664 < Makefile.c > junk1.c
19665 sed -e '1,/start of cpp stuff/d'\
19666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19667 < Makefile.c > junk.c
19668 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19670 cat junk1.c junk2.c > Makefile.new
19671 rm -f junk.c junk1.c junk2.c
19672 chmod 444 Makefile.new
19673 mv -f Makefile.new Makefile
19676 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19677 echo creating src/.gdbinit
19678 echo source $srcdir/src/.gdbinit > src/.gdbinit
19681 # This is how we know whether to re-run configure in certain cases.
19682 touch src/config.stamp
19685 esac
19686 done
19687 _ACEOF
19689 cat >>$CONFIG_STATUS <<\_ACEOF
19691 { (exit 0); exit 0; }
19692 _ACEOF
19693 chmod +x $CONFIG_STATUS
19694 ac_clean_files=$ac_clean_files_save
19697 # configure is writing to config.log, and then calls config.status.
19698 # config.status does its own redirection, appending to config.log.
19699 # Unfortunately, on DOS this fails, as config.log is still kept open
19700 # by configure, so config.status won't be able to write to it; its
19701 # output is simply discarded. So we exec the FD to /dev/null,
19702 # effectively closing config.log, so it can be properly (re)opened and
19703 # appended to by config.status. When coming back to configure, we
19704 # need to make the FD available again.
19705 if test "$no_create" != yes; then
19706 ac_cs_success=:
19707 ac_config_status_args=
19708 test "$silent" = yes &&
19709 ac_config_status_args="$ac_config_status_args --quiet"
19710 exec 5>/dev/null
19711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19712 exec 5>>config.log
19713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19714 # would make configure fail if this is the last instruction.
19715 $ac_cs_success || { (exit 1); exit 1; }