* ibuffer.el (ibuffer-window-list): Remove.
[emacs.git] / configure
blob8264168b6f86871df60215632042f94ae4a83525
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* )
2014 machine=hp800 opsys=hpux10
2016 hppa*-hp-hpux1[1-9]* )
2017 machine=hp800 opsys=hpux11
2020 hppa*-*-linux-gnu* )
2021 machine=hp800 opsys=gnu-linux
2024 ## HP 9000 series 700 and 800, running HP/UX
2025 hppa*-hp-hpux* )
2026 ## Cross-compilation? Nah!
2027 case "`uname -r`" in
2028 ## Someone's system reports A.B8.05 for this.
2029 ## I wonder what other possibilities there are.
2030 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2031 *.08.* ) machine=hp800 opsys=hpux8 ;;
2032 *.09.* ) machine=hp800 opsys=hpux9 ;;
2033 *) machine=hp800 opsys=hpux10 ;;
2034 esac
2036 hppa*-*-nextstep* )
2037 machine=hp800 opsys=nextstep
2040 ## Orion machines
2041 orion-orion-bsd* )
2042 machine=orion opsys=bsd4-2
2044 clipper-orion-bsd* )
2045 machine=orion105 opsys=bsd4-2
2048 ## IBM machines
2049 i[3456]86-ibm-aix1.1* )
2050 machine=ibmps2-aix opsys=usg5-2-2
2052 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2053 machine=ibmps2-aix opsys=usg5-3
2055 i370-ibm-aix*)
2056 machine=ibm370aix opsys=usg5-3
2058 s390-*-linux-gnu)
2059 machine=ibms390 opsys=gnu-linux
2061 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2062 machine=ibmrs6000 opsys=aix3-1
2064 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2065 machine=ibmrs6000 opsys=aix3-2-5
2067 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2068 machine=ibmrs6000 opsys=aix4-1
2070 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2071 machine=ibmrs6000 opsys=aix4-2
2073 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
2074 machine=ibmrs6000 opsys=aix4-2
2076 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2077 machine=ibmrs6000 opsys=aix4
2079 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2080 machine=ibmrs6000 opsys=aix4-1
2082 rs6000-ibm-aix* | powerpc-ibm-aix* )
2083 machine=ibmrs6000 opsys=aix3-2
2085 romp-ibm-bsd4.3* )
2086 machine=ibmrt opsys=bsd4-3
2088 romp-ibm-bsd4.2* )
2089 machine=ibmrt opsys=bsd4-2
2091 romp-ibm-aos4.3* )
2092 machine=ibmrt opsys=bsd4-3
2094 romp-ibm-aos4.2* )
2095 machine=ibmrt opsys=bsd4-2
2097 romp-ibm-aos* )
2098 machine=ibmrt opsys=bsd4-3
2100 romp-ibm-bsd* )
2101 machine=ibmrt opsys=bsd4-3
2103 romp-ibm-aix* )
2104 machine=ibmrt-aix opsys=usg5-2-2
2107 ## Integrated Solutions `Optimum V'
2108 m68*-isi-bsd4.2* )
2109 machine=isi-ov opsys=bsd4-2
2111 m68*-isi-bsd4.3* )
2112 machine=isi-ov opsys=bsd4-3
2115 ## Intel 386 machines where we do care about the manufacturer
2116 i[3456]86-intsys-sysv* )
2117 machine=is386 opsys=usg5-2-2
2120 ## Prime EXL
2121 i[3456]86-prime-sysv* )
2122 machine=i386 opsys=usg5-3
2125 ## Sequent Symmetry running Dynix
2126 i[3456]86-sequent-bsd* )
2127 machine=symmetry opsys=bsd4-3
2130 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2131 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2132 machine=sequent-ptx opsys=ptx4
2133 NON_GNU_CPP=/lib/cpp
2136 ## Sequent Symmetry running DYNIX/ptx
2137 ## Use the old cpp rather than the newer ANSI one.
2138 i[3456]86-sequent-ptx* )
2139 machine=sequent-ptx opsys=ptx
2140 NON_GNU_CPP="/lib/cpp"
2143 ## ncr machine running svr4.3.
2144 i[3456]86-ncr-sysv4.3 )
2145 machine=ncr386 opsys=usg5-4-3
2148 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2149 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2150 i[3456]86-ncr-sysv* )
2151 machine=ncr386 opsys=usg5-4-2
2154 ## Intel Paragon OSF/1
2155 i860-intel-osf1* )
2156 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2159 ## Intel 860
2160 i860-*-sysv4* )
2161 machine=i860 opsys=usg5-4
2162 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2163 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2166 ## Macintosh PowerPC
2167 powerpc*-*-linux-gnu* )
2168 machine=macppc opsys=gnu-linux
2171 ## Masscomp machines
2172 m68*-masscomp-rtu* )
2173 machine=masscomp opsys=rtu
2176 ## Megatest machines
2177 m68*-megatest-bsd* )
2178 machine=mega68 opsys=bsd4-2
2181 ## Workstations sold by MIPS
2182 ## This is not necessarily all workstations using the MIPS processor -
2183 ## Irises are produced by SGI, and DECstations by DEC.
2185 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2186 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2187 ## it gives for choosing between the alternatives seems to be "Use
2188 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2189 ## the BSD world." I'll assume that these are instructions for
2190 ## handling two odd situations, and that every other situation
2191 ## should use mips.h and usg5-2-2, they being listed first.
2192 mips-mips-usg* )
2193 machine=mips4
2194 ## Fall through to the general code at the bottom to decide on the OS.
2196 mips-mips-riscos4* )
2197 machine=mips4 opsys=bsd4-3
2198 NON_GNU_CC="cc -systype bsd43"
2199 NON_GNU_CPP="cc -systype bsd43 -E"
2201 mips-mips-riscos5* )
2202 machine=mips4 opsys=riscos5
2203 NON_GNU_CC="cc -systype bsd43"
2204 NON_GNU_CPP="cc -systype bsd43 -E"
2206 mips-mips-bsd* )
2207 machine=mips opsys=bsd4-3
2209 mips-mips-* )
2210 machine=mips opsys=usg5-2-2
2213 ## NeXT
2214 m68*-next-* | m68k-*-nextstep* )
2215 machine=m68k opsys=nextstep
2218 ## The complete machine from National Semiconductor
2219 ns32k-ns-genix* )
2220 machine=ns32000 opsys=usg5-2
2223 ## NCR machines
2224 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2225 machine=tower32 opsys=usg5-2-2
2227 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2228 machine=tower32v3 opsys=usg5-3
2231 ## NEC EWS4800
2232 mips-nec-sysv4*)
2233 machine=ews4800 opsys=ux4800
2236 ## Nixdorf Targon 31
2237 m68*-nixdorf-sysv* )
2238 machine=targon31 opsys=usg5-2-2
2241 ## Nu (TI or LMI)
2242 m68*-nu-sysv* )
2243 machine=nu opsys=usg5-2
2246 ## Plexus
2247 m68*-plexus-sysv* )
2248 machine=plexus opsys=usg5-2
2251 ## Pyramid machines
2252 ## I don't really have any idea what sort of processor the Pyramid has,
2253 ## so I'm assuming it is its own architecture.
2254 pyramid-pyramid-bsd* )
2255 machine=pyramid opsys=bsd4-2
2258 ## Sequent Balance
2259 ns32k-sequent-bsd4.2* )
2260 machine=sequent opsys=bsd4-2
2262 ns32k-sequent-bsd4.3* )
2263 machine=sequent opsys=bsd4-3
2266 ## Siemens Nixdorf
2267 mips-siemens-sysv* | mips-sni-sysv*)
2268 machine=mips-siemens opsys=usg5-4
2269 NON_GNU_CC=/usr/ccs/bin/cc
2270 NON_GNU_CPP=/usr/ccs/lib/cpp
2273 ## Silicon Graphics machines
2274 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2275 m68*-sgi-iris3.5* )
2276 machine=irist opsys=iris3-5
2278 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2279 machine=irist opsys=iris3-6
2281 ## Iris 4D
2282 mips-sgi-irix3* )
2283 machine=iris4d opsys=irix3-3
2285 mips-sgi-irix4* )
2286 machine=iris4d opsys=irix4-0
2288 mips-sgi-irix6.5 )
2289 machine=iris4d opsys=irix6-5
2290 # Without defining _LANGUAGE_C, things get masked out in the headers
2291 # so that, for instance, grepping for `free' in stdlib.h fails and
2292 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2293 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2294 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2296 mips-sgi-irix6* )
2297 machine=iris4d opsys=irix6-0
2298 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2299 # but presumably it does no harm.
2300 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2301 # -32 probably isn't necessary in later v.6s -- anyone know which?
2302 NON_GCC_TEST_OPTIONS=-32
2304 mips-sgi-irix5.[01]* )
2305 machine=iris4d opsys=irix5-0
2307 mips-sgi-irix5* | mips-sgi-irix* )
2308 machine=iris4d opsys=irix5-2
2311 ## SONY machines
2312 m68*-sony-bsd4.2* )
2313 machine=news opsys=bsd4-2
2315 m68*-sony-bsd4.3* )
2316 machine=news opsys=bsd4-3
2318 m68*-sony-newsos3* | m68*-sony-news3*)
2319 machine=news opsys=bsd4-3
2321 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2322 machine=news-risc opsys=bsd4-3
2324 mips-sony-newsos6* )
2325 machine=news-r6 opsys=newsos6
2327 mips-sony-news* )
2328 machine=news-risc opsys=newsos5
2331 ## Stride
2332 m68*-stride-sysv* )
2333 machine=stride opsys=usg5-2
2336 ## Suns
2337 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2338 machine=sparc opsys=gnu-linux
2341 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2342 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2343 | rs6000-*-solaris2*)
2344 case "${canonical}" in
2345 m68*-sunos1* ) machine=sun1 ;;
2346 m68*-sunos2* ) machine=sun2 ;;
2347 m68* ) machine=sun3 ;;
2348 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2349 i[3456]86-*-* ) machine=intel386 ;;
2350 powerpcle* ) machine=powerpcle ;;
2351 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2352 sparc* ) machine=sparc ;;
2353 * ) unported=yes ;;
2354 esac
2355 case "${canonical}" in
2356 ## The Sun386 didn't get past 4.0.
2357 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2358 *-sunos4.0* ) opsys=sunos4-0 ;;
2359 *-sunos4.1.[3-9]*noshare )
2360 ## This name is sunos413 instead of sunos4-1-3
2361 ## to avoid a file name conflict on MSDOS.
2362 opsys=sunos413
2363 NON_GNU_CPP=/usr/lib/cpp
2364 NON_GCC_TEST_OPTIONS=-Bstatic
2365 GCC_TEST_OPTIONS=-static
2367 *-sunos4.1.[3-9]* | *-sunos4shr*)
2368 opsys=sunos4shr
2369 NON_GNU_CPP=/usr/lib/cpp
2371 *-sunos4* | *-sunos )
2372 opsys=sunos4-1
2373 NON_GCC_TEST_OPTIONS=-Bstatic
2374 GCC_TEST_OPTIONS=-static
2376 *-sunos5.3* | *-solaris2.3* )
2377 opsys=sol2-3
2378 NON_GNU_CPP=/usr/ccs/lib/cpp
2380 *-sunos5.4* | *-solaris2.4* )
2381 opsys=sol2-4
2382 NON_GNU_CPP=/usr/ccs/lib/cpp
2383 RANLIB="ar -ts"
2385 *-sunos5.5* | *-solaris2.5* )
2386 opsys=sol2-5
2387 NON_GNU_CPP=/usr/ccs/lib/cpp
2388 RANLIB="ar -ts"
2390 *-sunos5.6* | *-solaris2.6* )
2391 opsys=sol2-6
2392 NON_GNU_CPP=/usr/ccs/lib/cpp
2393 RANLIB="ar -ts"
2395 *-sunos5* | *-solaris* )
2396 opsys=sol2-6
2397 NON_GNU_CPP=/usr/ccs/lib/cpp
2399 * ) opsys=bsd4-2 ;;
2400 esac
2401 ## Watch out for a compiler that we know will not work.
2402 case "${canonical}" in
2403 *-solaris* | *-sunos5* )
2404 if [ "x$CC" = x/usr/ucb/cc ]; then
2405 ## /usr/ucb/cc doesn't work;
2406 ## we should find some other compiler that does work.
2407 unset CC
2410 *) ;;
2411 esac
2413 sparc-*-nextstep* )
2414 machine=sparc opsys=nextstep
2417 ## Tadpole 68k
2418 m68*-tadpole-sysv* )
2419 machine=tad68k opsys=usg5-3
2422 ## Tahoe machines
2423 tahoe-tahoe-bsd4.2* )
2424 machine=tahoe opsys=bsd4-2
2426 tahoe-tahoe-bsd4.3* )
2427 machine=tahoe opsys=bsd4-3
2430 ## Tandem Integrity S2
2431 mips-tandem-sysv* )
2432 machine=tandem-s2 opsys=usg5-3
2435 ## Tektronix XD88
2436 m88k-tektronix-sysv3* )
2437 machine=tekxd88 opsys=usg5-3
2440 ## Tektronix 16000 box (6130?)
2441 ns16k-tektronix-bsd* )
2442 machine=ns16000 opsys=bsd4-2
2444 ## Tektronix 4300
2445 ## src/m/tek4300.h hints that this is a m68k machine.
2446 m68*-tektronix-bsd* )
2447 machine=tek4300 opsys=bsd4-3
2450 ## Titan P2 or P3
2451 ## We seem to have lost the machine-description file titan.h!
2452 titan-titan-sysv* )
2453 machine=titan opsys=usg5-3
2456 ## Ustation E30 (SS5E)
2457 m68*-unisys-uniplus* )
2458 machine=ustation opsystem=unipl5-2
2461 ## Vaxen.
2462 vax-dec-* )
2463 machine=vax
2464 case "${canonical}" in
2465 *-bsd4.1* ) opsys=bsd4-1 ;;
2466 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2467 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2468 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2469 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2470 *-vms* ) opsys=vms ;;
2471 * ) unported=yes
2472 esac
2475 ## Whitechapel MG1
2476 ns16k-whitechapel-* )
2477 machine=mg1
2478 ## We don't know what sort of OS runs on these; we'll let the
2479 ## operating system guessing code below try.
2482 ## Wicat
2483 m68*-wicat-sysv* )
2484 machine=wicat opsys=usg5-2
2487 ## IA-64
2488 ia64*-*-linux* )
2489 machine=ia64 opsys=gnu-linux
2492 ## Intel 386 machines where we don't care about the manufacturer
2493 i[3456]86-*-* )
2494 machine=intel386
2495 case "${canonical}" in
2496 *-lynxos* ) opsys=lynxos ;;
2497 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2498 *-isc2.2* ) opsys=isc2-2 ;;
2499 *-isc4.0* ) opsys=isc4-0 ;;
2500 *-isc4.* ) opsys=isc4-1
2501 GCC_TEST_OPTIONS=-posix
2502 NON_GCC_TEST_OPTIONS=-Xp
2504 *-isc* ) opsys=isc3-0 ;;
2505 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2506 *-esix* ) opsys=esix ;;
2507 *-xenix* ) opsys=xenix ;;
2508 *-linux-gnu* ) opsys=gnu-linux ;;
2509 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2510 *-sco3.2v5* ) opsys=sco5
2511 NON_GNU_CPP=/lib/cpp
2512 # Prevent -belf from being passed to $CPP.
2513 # /lib/cpp does not accept it.
2514 OVERRIDE_CPPFLAGS=" "
2516 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2517 *-386bsd* ) opsys=386bsd ;;
2518 *-nextstep* ) opsys=nextstep ;;
2519 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2520 esac
2523 ## m68k Linux-based GNU system
2524 m68k-*-linux-gnu* )
2525 machine=m68k opsys=gnu-linux
2528 ## Mips Linux-based GNU system
2529 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2530 machine=mips opsys=gnu-linux
2533 ## UXP/DS
2534 sparc-fujitsu-sysv4* )
2535 machine=sparc opsys=uxpds
2536 NON_GNU_CPP=/usr/ccs/lib/cpp
2537 RANLIB="ar -ts"
2540 ## UXP/V
2541 f301-fujitsu-uxpv4.1)
2542 machine=f301 opsys=uxpv
2545 ## Darwin / Mac OS X
2546 powerpc-apple-darwin* )
2547 machine=powermac opsys=darwin
2548 # Define CPP as follows to make autoconf work correctly.
2549 CPP="cc -E -traditional-cpp"
2552 ## AMD x86-64 Linux-based GNU system
2553 x86_64-*-linux-gnu* )
2554 machine=amdx86-64 opsys=gnu-linux
2558 unported=yes
2560 esac
2562 ### If the code above didn't choose an operating system, just choose
2563 ### an operating system based on the configuration name. You really
2564 ### only want to use this when you have no idea what the right
2565 ### operating system is; if you know what operating systems a machine
2566 ### runs, it's cleaner to make it explicit in the case statement
2567 ### above.
2568 if test x"${opsys}" = x; then
2569 case "${canonical}" in
2570 *-gnu* ) opsys=gnu ;;
2571 *-bsd4.[01] ) opsys=bsd4-1 ;;
2572 *-bsd4.2 ) opsys=bsd4-2 ;;
2573 *-bsd4.3 ) opsys=bsd4-3 ;;
2574 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2575 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2576 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2577 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2578 *-sysv4.2uw* ) opsys=unixware ;;
2579 *-sysv4.1* | *-sysvr4.1* )
2580 NON_GNU_CPP=/usr/lib/cpp
2581 opsys=usg5-4 ;;
2582 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2583 if [ x$NON_GNU_CPP = x ]; then
2584 if [ -f /usr/ccs/lib/cpp ]; then
2585 NON_GNU_CPP=/usr/ccs/lib/cpp
2586 else
2587 NON_GNU_CPP=/lib/cpp
2590 opsys=usg5-4-2 ;;
2591 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2593 unported=yes
2595 esac
2600 if test $unported = yes; then
2601 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2602 Check \`etc/MACHINES' for recognized configuration names." >&5
2603 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2604 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2605 { (exit 1); exit 1; }; }
2608 machfile="m/${machine}.h"
2609 opsysfile="s/${opsys}.h"
2612 #### Choose a compiler.
2613 test -n "$CC" && cc_specified=yes
2615 # Save the value of CFLAGS that the user specified.
2616 SPECIFIED_CFLAGS="$CFLAGS"
2618 case ${with_gcc} in
2619 "yes" ) CC="gcc" GCC=yes ;;
2620 "no" ) : ${CC=cc} ;;
2622 esac
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 if test -n "$ac_tool_prefix"; then
2629 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2630 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 else
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657 echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2665 if test -z "$ac_cv_prog_CC"; then
2666 ac_ct_CC=$CC
2667 # Extract the first word of "gcc", so it can be a program name with args.
2668 set dummy gcc; ac_word=$2
2669 echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 if test -n "$ac_ct_CC"; then
2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_ac_ct_CC="gcc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2688 done
2689 done
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6
2697 else
2698 echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2702 CC=$ac_ct_CC
2703 else
2704 CC="$ac_cv_prog_CC"
2707 if test -z "$CC"; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2735 CC=$ac_cv_prog_CC
2736 if test -n "$CC"; then
2737 echo "$as_me:$LINENO: result: $CC" >&5
2738 echo "${ECHO_T}$CC" >&6
2739 else
2740 echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2745 if test -z "$ac_cv_prog_CC"; then
2746 ac_ct_CC=$CC
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_ac_ct_CC="cc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2768 done
2769 done
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6
2777 else
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2782 CC=$ac_ct_CC
2783 else
2784 CC="$ac_cv_prog_CC"
2788 if test -z "$CC"; then
2789 # Extract the first word of "cc", so it can be a program name with args.
2790 set dummy cc; ac_word=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 ac_prog_rejected=no
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808 ac_prog_rejected=yes
2809 continue
2811 ac_cv_prog_CC="cc"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2815 done
2816 done
2818 if test $ac_prog_rejected = yes; then
2819 # We found a bogon in the path, so make sure we never use it.
2820 set dummy $ac_cv_prog_CC
2821 shift
2822 if test $# != 0; then
2823 # We chose a different compiler from the bogus one.
2824 # However, it has the same basename, so the bogon will be chosen
2825 # first if we set CC to just the basename; use the full file name.
2826 shift
2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6
2836 else
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 for ac_prog in cl
2846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2848 echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875 echo "${ECHO_T}$CC" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2881 test -n "$CC" && break
2882 done
2884 if test -z "$CC"; then
2885 ac_ct_CC=$CC
2886 for ac_prog in cl
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC="$ac_prog"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2917 echo "${ECHO_T}$ac_ct_CC" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2923 test -n "$ac_ct_CC" && break
2924 done
2926 CC=$ac_ct_CC
2932 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." >&5
2934 echo "$as_me: error: no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
2938 # Provide some information about the compiler.
2939 echo "$as_me:$LINENO:" \
2940 "checking for C compiler version" >&5
2941 ac_compiler=`set X $ac_compile; echo $2`
2942 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2943 (eval $ac_compiler --version </dev/null >&5) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2947 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2948 (eval $ac_compiler -v </dev/null >&5) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2953 (eval $ac_compiler -V </dev/null >&5) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line $LINENO "configure"
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2967 main ()
2971 return 0;
2973 _ACEOF
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2978 # of exeext.
2979 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2980 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2983 (eval $ac_link_default) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 # Find the output, starting from the most likely. This scheme is
2988 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2989 # resort.
2991 # Be careful to initialize this variable, since it used to be cached.
2992 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2993 ac_cv_exeext=
2994 # b.out is created by i960 compilers.
2995 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3001 conftest.$ac_ext )
3002 # This is the source file.
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 # FIXME: I believe we export ac_cv_exeext for Libtool,
3011 # but it would be cool to find out if it's true. Does anybody
3012 # maintain Libtool? --akim.
3013 export ac_cv_exeext
3014 break;;
3016 break;;
3017 esac
3018 done
3019 else
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C compiler cannot create executables
3026 See \`config.log' for more details." >&2;}
3027 { (exit 77); exit 77; }; }
3030 ac_exeext=$ac_cv_exeext
3031 echo "$as_me:$LINENO: result: $ac_file" >&5
3032 echo "${ECHO_T}$ac_file" >&6
3034 # Check the compiler produces executables we can run. If not, either
3035 # the compiler is broken, or we cross compile.
3036 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3037 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3038 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3039 # If not cross compiling, check that we can run a simple program.
3040 if test "$cross_compiling" != yes; then
3041 if { ac_try='./$ac_file'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 cross_compiling=no
3048 else
3049 if test "$cross_compiling" = maybe; then
3050 cross_compiling=yes
3051 else
3052 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3062 echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3065 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 # Check the compiler produces executables we can run. If not, either
3068 # the compiler is broken, or we cross compile.
3069 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3071 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3072 echo "${ECHO_T}$cross_compiling" >&6
3074 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3077 (eval $ac_link) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3084 # `rm'.
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3090 export ac_cv_exeext
3091 break;;
3092 * ) break;;
3093 esac
3094 done
3095 else
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest$ac_cv_exeext
3104 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3109 ac_exeext=$EXEEXT
3110 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 cat >conftest.$ac_ext <<_ACEOF
3116 #line $LINENO "configure"
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3124 main ()
3128 return 0;
3130 _ACEOF
3131 rm -f conftest.o conftest.obj
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; then
3137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 break;;
3142 esac
3143 done
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3151 See \`config.log' for more details." >&2;}
3152 { (exit 1); exit 1; }; }
3155 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3157 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3158 echo "${ECHO_T}$ac_cv_objext" >&6
3159 OBJEXT=$ac_cv_objext
3160 ac_objext=$OBJEXT
3161 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 cat >conftest.$ac_ext <<_ACEOF
3167 #line $LINENO "configure"
3168 /* confdefs.h. */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3175 main ()
3177 #ifndef __GNUC__
3178 choke me
3179 #endif
3182 return 0;
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 ac_compiler_gnu=yes
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 ac_compiler_gnu=no
3204 rm -f conftest.$ac_objext conftest.$ac_ext
3205 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3208 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3209 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3210 GCC=`test $ac_compiler_gnu = yes && echo yes`
3211 ac_test_CFLAGS=${CFLAGS+set}
3212 ac_save_CFLAGS=$CFLAGS
3213 CFLAGS="-g"
3214 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line $LINENO "configure"
3221 /* confdefs.h. */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237 (eval $ac_compile) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
3247 ac_cv_prog_cc_g=yes
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3252 ac_cv_prog_cc_g=no
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3256 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3258 if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260 elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3266 else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3273 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 ac_cv_prog_cc_stdc=no
3279 ac_save_CC=$CC
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdarg.h>
3288 #include <stdio.h>
3289 #include <sys/types.h>
3290 #include <sys/stat.h>
3291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3292 struct buf { int x; };
3293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3294 static char *e (p, i)
3295 char **p;
3296 int i;
3298 return p[i];
3300 static char *f (char * (*g) (char **, int), char **p, ...)
3302 char *s;
3303 va_list v;
3304 va_start (v,p);
3305 s = g (p, va_arg (v,int));
3306 va_end (v);
3307 return s;
3309 int test (int i, double x);
3310 struct s1 {int (*f) (int a);};
3311 struct s2 {int (*f) (double a);};
3312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 int argc;
3314 char **argv;
3316 main ()
3318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 return 0;
3322 _ACEOF
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_prog_cc_stdc=$ac_arg
3346 break
3347 else
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f conftest.$ac_objext
3353 done
3354 rm -f conftest.$ac_ext conftest.$ac_objext
3355 CC=$ac_save_CC
3359 case "x$ac_cv_prog_cc_stdc" in
3360 x|xno)
3361 echo "$as_me:$LINENO: result: none needed" >&5
3362 echo "${ECHO_T}none needed" >&6 ;;
3364 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3366 CC="$CC $ac_cv_prog_cc_stdc" ;;
3367 esac
3369 # Some people use a C++ compiler to compile C. Since we use `exit',
3370 # in C++ we need to declare it. In case someone uses the same compiler
3371 # for both compiling C and C++ we need to have the C++ compiler decide
3372 # the declaration of exit, since it's the most demanding environment.
3373 cat >conftest.$ac_ext <<_ACEOF
3374 #ifndef __cplusplus
3375 choke me
3376 #endif
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 for ac_declaration in \
3392 '#include <stdlib.h>' \
3393 'extern "C" void std::exit (int) throw (); using std::exit;' \
3394 'extern "C" void std::exit (int); using std::exit;' \
3395 'extern "C" void exit (int) throw ();' \
3396 'extern "C" void exit (int);' \
3397 'void exit (int);'
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <stdlib.h>
3407 $ac_declaration
3409 main ()
3411 exit (42);
3413 return 0;
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 continue
3435 rm -f conftest.$ac_objext conftest.$ac_ext
3436 cat >conftest.$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3438 /* confdefs.h. */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 $ac_declaration
3445 main ()
3447 exit (42);
3449 return 0;
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454 (eval $ac_compile) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 break
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3470 rm -f conftest.$ac_objext conftest.$ac_ext
3471 done
3472 rm -f conftest*
3473 if test -n "$ac_declaration"; then
3474 echo '#ifdef __cplusplus' >>confdefs.h
3475 echo $ac_declaration >>confdefs.h
3476 echo '#endif' >>confdefs.h
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3484 rm -f conftest.$ac_objext conftest.$ac_ext
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3494 CPP=
3497 #### Some systems specify a CPP to use unless we are using GCC.
3498 #### Now that we know whether we are using GCC, we can decide whether
3499 #### to use that one.
3500 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3501 then
3502 CPP="$NON_GNU_CPP"
3505 #### Some systems specify a CC 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_CC" != x && test x$GCC != xyes &&
3509 test x$cc_specified != xyes
3510 then
3511 CC="$NON_GNU_CC"
3514 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3515 then
3516 CC="$CC $GCC_TEST_OPTIONS"
3519 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3520 then
3521 CC="$CC $NON_GCC_TEST_OPTIONS"
3524 #### Some other nice autoconf tests.
3526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3528 LN_S=$as_ln_s
3529 if test "$LN_S" = "ln -s"; then
3530 echo "$as_me:$LINENO: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3534 echo "${ECHO_T}no, using $LN_S" >&6
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3543 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3544 # On Suns, sometimes $CPP names a directory.
3545 if test -n "$CPP" && test -d "$CPP"; then
3546 CPP=
3548 if test -z "$CPP"; then
3549 if test "${ac_cv_prog_CPP+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 # Double quotes because CPP needs to be expanded
3553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3555 ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #ifdef __STDC__
3572 # include <limits.h>
3573 #else
3574 # include <assert.h>
3575 #endif
3576 Syntax error
3577 _ACEOF
3578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 else
3589 ac_cpp_err=
3591 else
3592 ac_cpp_err=yes
3594 if test -z "$ac_cpp_err"; then
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3600 # Broken: fails on valid input.
3601 continue
3603 rm -f conftest.err conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether non-existent headers
3606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <ac_nonexistent.h>
3615 _ACEOF
3616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 else
3627 ac_cpp_err=
3629 else
3630 ac_cpp_err=yes
3632 if test -z "$ac_cpp_err"; then
3633 # Broken: success on invalid input.
3634 continue
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3643 rm -f conftest.err conftest.$ac_ext
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then
3649 break
3652 done
3653 ac_cv_prog_CPP=$CPP
3656 CPP=$ac_cv_prog_CPP
3657 else
3658 ac_cv_prog_CPP=$CPP
3660 echo "$as_me:$LINENO: result: $CPP" >&5
3661 echo "${ECHO_T}$CPP" >&6
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat >conftest.$ac_ext <<_ACEOF
3672 #line $LINENO "configure"
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #ifdef __STDC__
3679 # include <limits.h>
3680 #else
3681 # include <assert.h>
3682 #endif
3683 Syntax error
3684 _ACEOF
3685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3687 ac_status=$?
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } >/dev/null; then
3693 if test -s conftest.err; then
3694 ac_cpp_err=$ac_c_preproc_warn_flag
3695 else
3696 ac_cpp_err=
3698 else
3699 ac_cpp_err=yes
3701 if test -z "$ac_cpp_err"; then
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Broken: fails on valid input.
3708 continue
3710 rm -f conftest.err conftest.$ac_ext
3712 # OK, works on sane cases. Now check whether non-existent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line $LINENO "configure"
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 else
3734 ac_cpp_err=
3736 else
3737 ac_cpp_err=yes
3739 if test -z "$ac_cpp_err"; then
3740 # Broken: success on invalid input.
3741 continue
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3750 rm -f conftest.err conftest.$ac_ext
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3757 else
3758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3761 See \`config.log' for more details." >&2;}
3762 { (exit 1); exit 1; }; }
3765 ac_ext=c
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 # Find a good install program. We prefer a C program (faster),
3772 # so one script is as good as another. But avoid the broken or
3773 # incompatible versions:
3774 # SysV /etc/install, /usr/sbin/install
3775 # SunOS /usr/etc/install
3776 # IRIX /sbin/install
3777 # AIX /bin/install
3778 # AmigaOS /C/install, which installs bootblocks on floppy discs
3779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3782 # ./install, which can be erroneously created by make from ./install.sh.
3783 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3785 if test -z "$INSTALL"; then
3786 if test "${ac_cv_path_install+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 # Account for people who put trailing slashes in PATH elements.
3795 case $as_dir/ in
3796 ./ | .// | /cC/* | \
3797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3798 /usr/ucb/* ) ;;
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3802 # by default.
3803 for ac_prog in ginstall scoinst install; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3806 if test $ac_prog = install &&
3807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3810 elif test $ac_prog = install &&
3811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3814 else
3815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3816 break 3
3819 done
3820 done
3822 esac
3823 done
3827 if test "${ac_cv_path_install+set}" = set; then
3828 INSTALL=$ac_cv_path_install
3829 else
3830 # As a last resort, use the slow shell script. We don't cache a
3831 # path for INSTALL within a source directory, because that will
3832 # break other packages using the cache if that directory is
3833 # removed, or if the path is relative.
3834 INSTALL=$ac_install_sh
3837 echo "$as_me:$LINENO: result: $INSTALL" >&5
3838 echo "${ECHO_T}$INSTALL" >&6
3840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3841 # It thinks the first close brace ends the variable substitution.
3842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3848 if test "x$RANLIB" = x; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3852 echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3854 if test "${ac_cv_prog_RANLIB+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if test -n "$RANLIB"; then
3858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3871 done
3872 done
3876 RANLIB=$ac_cv_prog_RANLIB
3877 if test -n "$RANLIB"; then
3878 echo "$as_me:$LINENO: result: $RANLIB" >&5
3879 echo "${ECHO_T}$RANLIB" >&6
3880 else
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887 ac_ct_RANLIB=$RANLIB
3888 # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$ac_ct_RANLIB"; then
3896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_RANLIB="ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3912 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3916 if test -n "$ac_ct_RANLIB"; then
3917 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3918 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3919 else
3920 echo "$as_me:$LINENO: result: no" >&5
3921 echo "${ECHO_T}no" >&6
3924 RANLIB=$ac_ct_RANLIB
3925 else
3926 RANLIB="$ac_cv_prog_RANLIB"
3930 # Extract the first word of "install-info", so it can be a program name with args.
3931 set dummy install-info; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 case $INSTALL_INFO in
3938 [\\/]* | ?:[\\/]*)
3939 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3957 esac
3959 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3961 if test -n "$INSTALL_INFO"; then
3962 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
3963 echo "${ECHO_T}$INSTALL_INFO" >&6
3964 else
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "install-info", so it can be a program name with args.
3970 set dummy install-info; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 case $INSTALL_INFO in
3977 [\\/]* | ?:[\\/]*)
3978 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in /usr/sbin
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3996 esac
3998 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4000 if test -n "$INSTALL_INFO"; then
4001 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4002 echo "${ECHO_T}$INSTALL_INFO" >&6
4003 else
4004 echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4008 # Extract the first word of "install-info", so it can be a program name with args.
4009 set dummy install-info; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 case $INSTALL_INFO in
4016 [\\/]* | ?:[\\/]*)
4017 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in /sbin
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4031 done
4032 done
4034 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4036 esac
4038 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4040 if test -n "$INSTALL_INFO"; then
4041 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4042 echo "${ECHO_T}$INSTALL_INFO" >&6
4043 else
4044 echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4050 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4051 then
4052 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4055 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4056 then
4057 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4062 echo "$as_me:$LINENO: checking for egrep" >&5
4063 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4064 if test "${ac_cv_prog_egrep+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4068 then ac_cv_prog_egrep='grep -E'
4069 else ac_cv_prog_egrep='egrep'
4072 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4073 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4074 EGREP=$ac_cv_prog_egrep
4078 echo "$as_me:$LINENO: checking for AIX" >&5
4079 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4080 cat >conftest.$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 /* confdefs.h. */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 #ifdef _AIX
4089 #endif
4091 _ACEOF
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "yes" >/dev/null 2>&1; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096 cat >>confdefs.h <<\_ACEOF
4097 #define _ALL_SOURCE 1
4098 _ACEOF
4100 else
4101 echo "$as_me:$LINENO: result: no" >&5
4102 echo "${ECHO_T}no" >&6
4104 rm -f conftest*
4108 #### Extract some information from the operating system and machine files.
4110 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4111 - which libraries the lib-src programs will want, and
4112 - whether the GNU malloc routines are usable..." >&5
4113 echo "$as_me: checking the machine- and system-dependent files to find out
4114 - which libraries the lib-src programs will want, and
4115 - whether the GNU malloc routines are usable..." >&6;}
4117 ### First figure out CFLAGS (which we use for running the compiler here)
4118 ### and REAL_CFLAGS (which we use for real compilation).
4119 ### The two are the same except on a few systems, where they are made
4120 ### different to work around various lossages. For example,
4121 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4122 ### as implying static linking.
4124 ### If the CFLAGS env var is specified, we use that value
4125 ### instead of the default.
4127 ### It's not important that this name contain the PID; you can't run
4128 ### two configures in the same directory and have anything work
4129 ### anyway.
4130 tempcname="conftest.c"
4132 echo '
4133 #include "'${srcdir}'/src/'${opsysfile}'"
4134 #include "'${srcdir}'/src/'${machfile}'"
4135 #ifndef LIBS_MACHINE
4136 #define LIBS_MACHINE
4137 #endif
4138 #ifndef LIBS_SYSTEM
4139 #define LIBS_SYSTEM
4140 #endif
4141 #ifndef C_SWITCH_SYSTEM
4142 #define C_SWITCH_SYSTEM
4143 #endif
4144 #ifndef C_SWITCH_MACHINE
4145 #define C_SWITCH_MACHINE
4146 #endif
4147 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4148 configure___ c_switch_system=C_SWITCH_SYSTEM
4149 configure___ c_switch_machine=C_SWITCH_MACHINE
4151 #ifndef LIB_X11_LIB
4152 #define LIB_X11_LIB -lX11
4153 #endif
4155 #ifndef LIBX11_MACHINE
4156 #define LIBX11_MACHINE
4157 #endif
4159 #ifndef LIBX11_SYSTEM
4160 #define LIBX11_SYSTEM
4161 #endif
4162 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4164 #ifdef UNEXEC
4165 configure___ unexec=UNEXEC
4166 #else
4167 configure___ unexec=unexec.o
4168 #endif
4170 #ifdef SYSTEM_MALLOC
4171 configure___ system_malloc=yes
4172 #else
4173 configure___ system_malloc=no
4174 #endif
4176 #ifdef USE_MMAP_FOR_BUFFERS
4177 configure___ use_mmap_for_buffers=yes
4178 #else
4179 configure___ use_mmap_for_buffers=no
4180 #endif
4182 #ifndef C_DEBUG_SWITCH
4183 #define C_DEBUG_SWITCH -g
4184 #endif
4186 #ifndef C_OPTIMIZE_SWITCH
4187 #ifdef __GNUC__
4188 #define C_OPTIMIZE_SWITCH -O2
4189 #else
4190 #define C_OPTIMIZE_SWITCH -O
4191 #endif
4192 #endif
4194 #ifndef LD_SWITCH_MACHINE
4195 #define LD_SWITCH_MACHINE
4196 #endif
4198 #ifndef LD_SWITCH_SYSTEM
4199 #define LD_SWITCH_SYSTEM
4200 #endif
4202 #ifndef LD_SWITCH_X_SITE_AUX
4203 #define LD_SWITCH_X_SITE_AUX
4204 #endif
4206 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4207 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4209 #ifdef THIS_IS_CONFIGURE
4211 /* Get the CFLAGS for tests in configure. */
4212 #ifdef __GNUC__
4213 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4214 #else
4215 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4216 #endif
4218 #else /* not THIS_IS_CONFIGURE */
4220 /* Get the CFLAGS for real compilation. */
4221 #ifdef __GNUC__
4222 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4223 #else
4224 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4225 #endif
4227 #endif /* not THIS_IS_CONFIGURE */
4228 ' > ${tempcname}
4230 # The value of CPP is a quoted variable reference, so we need to do this
4231 # to get its actual value...
4232 CPP=`eval "echo $CPP"`
4233 eval `${CPP} -Isrc ${tempcname} \
4234 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4235 if test "x$SPECIFIED_CFLAGS" = x; then
4236 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4237 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4238 else
4239 REAL_CFLAGS="$CFLAGS"
4241 rm ${tempcname}
4243 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4245 ### Make sure subsequent tests use flags consistent with the build flags.
4247 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4248 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4249 else
4250 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4256 cat >>confdefs.h <<\_ACEOF
4257 #define _GNU_SOURCE 1
4258 _ACEOF
4262 # Check whether --enable-largefile or --disable-largefile was given.
4263 if test "${enable_largefile+set}" = set; then
4264 enableval="$enable_largefile"
4267 if test "$enable_largefile" != no; then
4269 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4270 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4271 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 ac_cv_sys_largefile_CC=no
4275 if test "$GCC" != yes; then
4276 ac_save_CC=$CC
4277 while :; do
4278 # IRIX 6.2 and later do not support large files by default,
4279 # so use the C compiler's -n32 option if that helps.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <sys/types.h>
4288 /* Check that off_t can represent 2**63 - 1 correctly.
4289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290 since some C++ compilers masquerading as C compilers
4291 incorrectly reject 9223372036854775807. */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294 && LARGE_OFF_T % 2147483647 == 1)
4295 ? 1 : -1];
4297 main ()
4301 return 0;
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 (eval $ac_try) 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 break
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4322 rm -f conftest.$ac_objext
4323 CC="$CC -n32"
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_sys_largefile_CC=' -n32'; break
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 rm -f conftest.$ac_objext
4343 break
4344 done
4345 CC=$ac_save_CC
4346 rm -f conftest.$ac_ext
4349 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4350 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4351 if test "$ac_cv_sys_largefile_CC" != no; then
4352 CC=$CC$ac_cv_sys_largefile_CC
4355 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4356 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4357 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 while :; do
4361 ac_cv_sys_file_offset_bits=no
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 /* confdefs.h. */
4365 _ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 /* Check that off_t can represent 2**63 - 1 correctly.
4371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372 since some C++ compilers masquerading as C compilers
4373 incorrectly reject 9223372036854775807. */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376 && LARGE_OFF_T % 2147483647 == 1)
4377 ? 1 : -1];
4379 main ()
4383 return 0;
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 (eval $ac_try) 2>&5
4395 ac_status=$?
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 break
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4405 cat >conftest.$ac_ext <<_ACEOF
4406 #line $LINENO "configure"
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #define _FILE_OFFSET_BITS 64
4413 #include <sys/types.h>
4414 /* Check that off_t can represent 2**63 - 1 correctly.
4415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4416 since some C++ compilers masquerading as C compilers
4417 incorrectly reject 9223372036854775807. */
4418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4420 && LARGE_OFF_T % 2147483647 == 1)
4421 ? 1 : -1];
4423 main ()
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest.$ac_objext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_sys_file_offset_bits=64; break
4443 else
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4448 rm -f conftest.$ac_objext conftest.$ac_ext
4449 break
4450 done
4452 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4453 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4454 if test "$ac_cv_sys_file_offset_bits" != no; then
4456 cat >>confdefs.h <<_ACEOF
4457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4458 _ACEOF
4461 rm -f conftest*
4462 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4463 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4464 if test "${ac_cv_sys_large_files+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 while :; do
4468 ac_cv_sys_large_files=no
4469 cat >conftest.$ac_ext <<_ACEOF
4470 #line $LINENO "configure"
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <sys/types.h>
4477 /* Check that off_t can represent 2**63 - 1 correctly.
4478 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4479 since some C++ compilers masquerading as C compilers
4480 incorrectly reject 9223372036854775807. */
4481 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4482 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4483 && LARGE_OFF_T % 2147483647 == 1)
4484 ? 1 : -1];
4486 main ()
4490 return 0;
4492 _ACEOF
4493 rm -f conftest.$ac_objext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495 (eval $ac_compile) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 break
4506 else
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f conftest.$ac_objext conftest.$ac_ext
4512 cat >conftest.$ac_ext <<_ACEOF
4513 #line $LINENO "configure"
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #define _LARGE_FILES 1
4520 #include <sys/types.h>
4521 /* Check that off_t can represent 2**63 - 1 correctly.
4522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4523 since some C++ compilers masquerading as C compilers
4524 incorrectly reject 9223372036854775807. */
4525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4527 && LARGE_OFF_T % 2147483647 == 1)
4528 ? 1 : -1];
4530 main ()
4534 return 0;
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539 (eval $ac_compile) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 ac_cv_sys_large_files=1; break
4550 else
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4555 rm -f conftest.$ac_objext conftest.$ac_ext
4556 break
4557 done
4559 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4561 if test "$ac_cv_sys_large_files" != no; then
4563 cat >>confdefs.h <<_ACEOF
4564 #define _LARGE_FILES $ac_cv_sys_large_files
4565 _ACEOF
4568 rm -f conftest*
4572 if test "${with_sound}" != "no"; then
4573 # Sound support for GNU/Linux and the free BSDs.
4574 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4575 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4576 if test "${ac_cv_header_stdc+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line $LINENO "configure"
4581 /* confdefs.h. */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4586 #include <stdlib.h>
4587 #include <stdarg.h>
4588 #include <string.h>
4589 #include <float.h>
4592 main ()
4596 return 0;
4598 _ACEOF
4599 rm -f conftest.$ac_objext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4601 (eval $ac_compile) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -s conftest.$ac_objext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 ac_cv_header_stdc=yes
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_cv_header_stdc=no
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629 #include <string.h>
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "memchr" >/dev/null 2>&1; then
4635 else
4636 ac_cv_header_stdc=no
4638 rm -f conftest*
4642 if test $ac_cv_header_stdc = yes; then
4643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <stdlib.h>
4653 _ACEOF
4654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4655 $EGREP "free" >/dev/null 2>&1; then
4657 else
4658 ac_cv_header_stdc=no
4660 rm -f conftest*
4664 if test $ac_cv_header_stdc = yes; then
4665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4666 if test "$cross_compiling" = yes; then
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <ctype.h>
4677 #if ((' ' & 0x0FF) == 0x020)
4678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4680 #else
4681 # define ISLOWER(c) \
4682 (('a' <= (c) && (c) <= 'i') \
4683 || ('j' <= (c) && (c) <= 'r') \
4684 || ('s' <= (c) && (c) <= 'z'))
4685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686 #endif
4688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4690 main ()
4692 int i;
4693 for (i = 0; i < 256; i++)
4694 if (XOR (islower (i), ISLOWER (i))
4695 || toupper (i) != TOUPPER (i))
4696 exit(2);
4697 exit (0);
4699 _ACEOF
4700 rm -f conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4712 else
4713 echo "$as_me: program exited with status $ac_status" >&5
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ( exit $ac_status )
4718 ac_cv_header_stdc=no
4720 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4725 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4726 if test $ac_cv_header_stdc = yes; then
4728 cat >>confdefs.h <<\_ACEOF
4729 #define STDC_HEADERS 1
4730 _ACEOF
4734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4744 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4745 inttypes.h stdint.h unistd.h
4747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_header" >&5
4749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4762 #include <$ac_header>
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 eval "$as_ac_Header=yes"
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 eval "$as_ac_Header=no"
4783 rm -f conftest.$ac_objext conftest.$ac_ext
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4788 cat >>confdefs.h <<_ACEOF
4789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 _ACEOF
4794 done
4800 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
4802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo "$as_me:$LINENO: checking for $ac_header" >&5
4805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4811 else
4812 # Is the header compilable?
4813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4815 cat >conftest.$ac_ext <<_ACEOF
4816 #line $LINENO "configure"
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 $ac_includes_default
4823 #include <$ac_header>
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -s conftest.$ac_objext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_header_compiler=yes
4838 else
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 ac_header_compiler=no
4844 rm -f conftest.$ac_objext conftest.$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4846 echo "${ECHO_T}$ac_header_compiler" >&6
4848 # Is the header present?
4849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4852 #line $LINENO "configure"
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <$ac_header>
4859 _ACEOF
4860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null; then
4868 if test -s conftest.err; then
4869 ac_cpp_err=$ac_c_preproc_warn_flag
4870 else
4871 ac_cpp_err=
4873 else
4874 ac_cpp_err=yes
4876 if test -z "$ac_cpp_err"; then
4877 ac_header_preproc=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_header_preproc=no
4884 rm -f conftest.err conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4886 echo "${ECHO_T}$ac_header_preproc" >&6
4888 # So? What about this header?
4889 case $ac_header_compiler:$ac_header_preproc in
4890 yes:no )
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4896 cat <<\_ASBOX
4897 ## ------------------------------------ ##
4898 ## Report this to bug-autoconf@gnu.org. ##
4899 ## ------------------------------------ ##
4900 _ASBOX
4902 sed "s/^/$as_me: WARNING: /" >&2
4904 no:yes )
4905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4912 cat <<\_ASBOX
4913 ## ------------------------------------ ##
4914 ## Report this to bug-autoconf@gnu.org. ##
4915 ## ------------------------------------ ##
4916 _ASBOX
4918 sed "s/^/$as_me: WARNING: /" >&2
4920 esac
4921 echo "$as_me:$LINENO: checking for $ac_header" >&5
4922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 eval "$as_ac_Header=$ac_header_preproc"
4928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4933 cat >>confdefs.h <<_ACEOF
4934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935 _ACEOF
4939 done
4941 # Emulation library used on NetBSD.
4942 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4943 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4944 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947 ac_check_lib_save_LIBS=$LIBS
4948 LIBS="-lossaudio $LIBS"
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4951 /* confdefs.h. */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 #ifdef __cplusplus
4959 extern "C"
4960 #endif
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4963 char _oss_ioctl ();
4965 main ()
4967 _oss_ioctl ();
4969 return 0;
4971 _ACEOF
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 (eval $ac_try) 2>&5
4981 ac_status=$?
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 ac_cv_lib_ossaudio__oss_ioctl=yes
4985 else
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 ac_cv_lib_ossaudio__oss_ioctl=no
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4996 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4997 LIBSOUND=-lossaudio
4998 else
4999 LIBSOUND=
5027 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5028 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5029 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
5030 sys/param.h sys/vlimit.h sys/resource.h
5032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034 echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5041 else
5042 # Is the header compilable?
5043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5045 cat >conftest.$ac_ext <<_ACEOF
5046 #line $LINENO "configure"
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5053 #include <$ac_header>
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_header_compiler=yes
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 ac_header_compiler=no
5074 rm -f conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5076 echo "${ECHO_T}$ac_header_compiler" >&6
5078 # Is the header present?
5079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5081 cat >conftest.$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 /* confdefs.h. */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <$ac_header>
5089 _ACEOF
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 else
5101 ac_cpp_err=
5103 else
5104 ac_cpp_err=yes
5106 if test -z "$ac_cpp_err"; then
5107 ac_header_preproc=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ac_header_preproc=no
5114 rm -f conftest.err conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5116 echo "${ECHO_T}$ac_header_preproc" >&6
5118 # So? What about this header?
5119 case $ac_header_compiler:$ac_header_preproc in
5120 yes:no )
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5126 cat <<\_ASBOX
5127 ## ------------------------------------ ##
5128 ## Report this to bug-autoconf@gnu.org. ##
5129 ## ------------------------------------ ##
5130 _ASBOX
5132 sed "s/^/$as_me: WARNING: /" >&2
5134 no:yes )
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5142 cat <<\_ASBOX
5143 ## ------------------------------------ ##
5144 ## Report this to bug-autoconf@gnu.org. ##
5145 ## ------------------------------------ ##
5146 _ASBOX
5148 sed "s/^/$as_me: WARNING: /" >&2
5150 esac
5151 echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 eval "$as_ac_Header=$ac_header_preproc"
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5165 _ACEOF
5169 done
5172 for ac_header in term.h
5174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175 echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <$ac_header>
5188 _ACEOF
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_c_preproc_warn_flag
5199 else
5200 ac_cpp_err=
5202 else
5203 ac_cpp_err=yes
5205 if test -z "$ac_cpp_err"; then
5206 eval "$as_ac_Header=yes"
5207 else
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5211 eval "$as_ac_Header=no"
5213 rm -f conftest.err conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5220 _ACEOF
5224 done
5226 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5227 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5228 if test "${ac_cv_header_stdc+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5244 main ()
5248 return 0;
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_cv_header_stdc=yes
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_cv_header_stdc=no
5270 rm -f conftest.$ac_objext conftest.$ac_ext
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 #line $LINENO "configure"
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <string.h>
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then
5287 else
5288 ac_cv_header_stdc=no
5290 rm -f conftest*
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <stdlib.h>
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then
5309 else
5310 ac_cv_header_stdc=no
5312 rm -f conftest*
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then
5320 else
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <ctype.h>
5329 #if ((' ' & 0x0FF) == 0x020)
5330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5332 #else
5333 # define ISLOWER(c) \
5334 (('a' <= (c) && (c) <= 'i') \
5335 || ('j' <= (c) && (c) <= 'r') \
5336 || ('s' <= (c) && (c) <= 'z'))
5337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5338 #endif
5340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 main ()
5344 int i;
5345 for (i = 0; i < 256; i++)
5346 if (XOR (islower (i), ISLOWER (i))
5347 || toupper (i) != TOUPPER (i))
5348 exit(2);
5349 exit (0);
5351 _ACEOF
5352 rm -f conftest$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5364 else
5365 echo "$as_me: program exited with status $ac_status" >&5
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 ( exit $ac_status )
5370 ac_cv_header_stdc=no
5372 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5376 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5377 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5378 if test $ac_cv_header_stdc = yes; then
5380 cat >>confdefs.h <<\_ACEOF
5381 #define STDC_HEADERS 1
5382 _ACEOF
5386 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5387 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5388 if test "${ac_cv_header_time+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 cat >conftest.$ac_ext <<_ACEOF
5392 #line $LINENO "configure"
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399 #include <sys/time.h>
5400 #include <time.h>
5403 main ()
5405 if ((struct tm *) 0)
5406 return 0;
5408 return 0;
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413 (eval $ac_compile) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_header_time=yes
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_header_time=no
5430 rm -f conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5433 echo "${ECHO_T}$ac_cv_header_time" >&6
5434 if test $ac_cv_header_time = yes; then
5436 cat >>confdefs.h <<\_ACEOF
5437 #define TIME_WITH_SYS_TIME 1
5438 _ACEOF
5442 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5443 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5444 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line $LINENO "configure"
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5456 main ()
5458 #ifndef sys_siglist
5459 char *p = (char *) sys_siglist;
5460 #endif
5463 return 0;
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_have_decl_sys_siglist=yes
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_cv_have_decl_sys_siglist=no
5485 rm -f conftest.$ac_objext conftest.$ac_ext
5487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5488 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5489 if test $ac_cv_have_decl_sys_siglist = yes; then
5491 cat >>confdefs.h <<_ACEOF
5492 #define HAVE_DECL_SYS_SIGLIST 1
5493 _ACEOF
5496 else
5497 cat >>confdefs.h <<_ACEOF
5498 #define HAVE_DECL_SYS_SIGLIST 0
5499 _ACEOF
5505 if test $ac_cv_have_decl_sys_siglist != yes; then
5506 # For Tru64, at least:
5507 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5508 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5509 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5521 main ()
5523 #ifndef __sys_siglist
5524 char *p = (char *) __sys_siglist;
5525 #endif
5528 return 0;
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_have_decl___sys_siglist=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 ac_cv_have_decl___sys_siglist=no
5550 rm -f conftest.$ac_objext conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5553 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5554 if test $ac_cv_have_decl___sys_siglist = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_DECL___SYS_SIGLIST 1
5558 _ACEOF
5561 else
5562 cat >>confdefs.h <<_ACEOF
5563 #define HAVE_DECL___SYS_SIGLIST 0
5564 _ACEOF
5570 if test $ac_cv_have_decl___sys_siglist = yes; then
5572 cat >>confdefs.h <<\_ACEOF
5573 #define sys_siglist __sys_siglist
5574 _ACEOF
5578 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5579 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5580 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 #include <sys/wait.h>
5592 #ifndef WEXITSTATUS
5593 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5594 #endif
5595 #ifndef WIFEXITED
5596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5597 #endif
5600 main ()
5602 int s;
5603 wait (&s);
5604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_header_sys_wait_h=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_header_sys_wait_h=no
5628 rm -f conftest.$ac_objext conftest.$ac_ext
5630 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5632 if test $ac_cv_header_sys_wait_h = yes; then
5634 cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_SYS_WAIT_H 1
5636 _ACEOF
5641 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5642 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5643 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #ifdef TIME_WITH_SYS_TIME
5654 #include <sys/time.h>
5655 #include <time.h>
5656 #else
5657 #ifdef HAVE_SYS_TIME_H
5658 #include <sys/time.h>
5659 #else
5660 #include <time.h>
5661 #endif
5662 #endif
5663 #ifdef HAVE_UTIME_H
5664 #include <utime.h>
5665 #endif
5667 main ()
5669 static struct utimbuf x; x.actime = x.modtime;
5671 return 0;
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 emacs_cv_struct_utimbuf=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 emacs_cv_struct_utimbuf=no
5693 rm -f conftest.$ac_objext conftest.$ac_ext
5695 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5696 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5697 if test $emacs_cv_struct_utimbuf = yes; then
5699 cat >>confdefs.h <<\_ACEOF
5700 #define HAVE_STRUCT_UTIMBUF 1
5701 _ACEOF
5705 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5706 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5707 if test "${ac_cv_type_signal+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 #include <signal.h>
5719 #ifdef signal
5720 # undef signal
5721 #endif
5722 #ifdef __cplusplus
5723 extern "C" void (*signal (int, void (*)(int)))(int);
5724 #else
5725 void (*signal ()) ();
5726 #endif
5729 main ()
5731 int i;
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 ac_cv_type_signal=void
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 ac_cv_type_signal=int
5755 rm -f conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5758 echo "${ECHO_T}$ac_cv_type_signal" >&6
5760 cat >>confdefs.h <<_ACEOF
5761 #define RETSIGTYPE $ac_cv_type_signal
5762 _ACEOF
5766 echo "$as_me:$LINENO: checking for speed_t" >&5
5767 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5768 if test "${emacs_cv_speed_t+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <termios.h>
5780 main ()
5782 speed_t x = 1;
5784 return 0;
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 emacs_cv_speed_t=yes
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5804 emacs_cv_speed_t=no
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5809 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5810 if test $emacs_cv_speed_t = yes; then
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_SPEED_T 1
5814 _ACEOF
5818 echo "$as_me:$LINENO: checking for struct timeval" >&5
5819 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5820 if test "${emacs_cv_struct_timeval+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #ifdef TIME_WITH_SYS_TIME
5831 #include <sys/time.h>
5832 #include <time.h>
5833 #else
5834 #ifdef HAVE_SYS_TIME_H
5835 #include <sys/time.h>
5836 #else
5837 #include <time.h>
5838 #endif
5839 #endif
5841 main ()
5843 static struct timeval x; x.tv_sec = x.tv_usec;
5845 return 0;
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 emacs_cv_struct_timeval=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5865 emacs_cv_struct_timeval=no
5867 rm -f conftest.$ac_objext conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5870 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5871 HAVE_TIMEVAL=$emacs_cv_struct_timeval
5872 if test $emacs_cv_struct_timeval = yes; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAVE_TIMEVAL 1
5876 _ACEOF
5880 echo "$as_me:$LINENO: checking for struct exception" >&5
5881 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5882 if test "${emacs_cv_struct_exception+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #line $LINENO "configure"
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <math.h>
5894 main ()
5896 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5898 return 0;
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 emacs_cv_struct_exception=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 emacs_cv_struct_exception=no
5920 rm -f conftest.$ac_objext conftest.$ac_ext
5922 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5923 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5924 HAVE_EXCEPTION=$emacs_cv_struct_exception
5925 if test $emacs_cv_struct_exception != yes; then
5927 cat >>confdefs.h <<\_ACEOF
5928 #define NO_MATHERR 1
5929 _ACEOF
5933 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5934 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5935 if test "${ac_cv_struct_tm+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938 cat >conftest.$ac_ext <<_ACEOF
5939 #line $LINENO "configure"
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <sys/types.h>
5946 #include <time.h>
5949 main ()
5951 struct tm *tp; tp->tm_sec;
5953 return 0;
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_struct_tm=time.h
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_struct_tm=sys/time.h
5975 rm -f conftest.$ac_objext conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5978 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5979 if test $ac_cv_struct_tm = sys/time.h; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define TM_IN_SYS_TIME 1
5983 _ACEOF
5987 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5988 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5989 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line $LINENO "configure"
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 #include <$ac_cv_struct_tm>
6004 main ()
6006 static struct tm ac_aggr;
6007 if (ac_aggr.tm_zone)
6008 return 0;
6010 return 0;
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest.$ac_objext'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6025 ac_cv_member_struct_tm_tm_zone=yes
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6030 cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6038 #include <$ac_cv_struct_tm>
6042 main ()
6044 static struct tm ac_aggr;
6045 if (sizeof ac_aggr.tm_zone)
6046 return 0;
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_member_struct_tm_tm_zone=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_member_struct_tm_tm_zone=no
6070 rm -f conftest.$ac_objext conftest.$ac_ext
6072 rm -f conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6076 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_STRUCT_TM_TM_ZONE 1
6080 _ACEOF
6085 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_TM_ZONE 1
6089 _ACEOF
6091 else
6092 echo "$as_me:$LINENO: checking for tzname" >&5
6093 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6094 if test "${ac_cv_var_tzname+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 cat >conftest.$ac_ext <<_ACEOF
6098 #line $LINENO "configure"
6099 /* confdefs.h. */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6104 #include <time.h>
6105 #ifndef tzname /* For SGI. */
6106 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6107 #endif
6110 main ()
6112 atoi(*tzname);
6114 return 0;
6116 _ACEOF
6117 rm -f conftest.$ac_objext conftest$ac_exeext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119 (eval $ac_link) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_var_tzname=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_var_tzname=no
6136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6139 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6140 if test $ac_cv_var_tzname = yes; then
6142 cat >>confdefs.h <<\_ACEOF
6143 #define HAVE_TZNAME 1
6144 _ACEOF
6149 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6150 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6151 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <time.h>
6164 main ()
6166 static struct tm ac_aggr;
6167 if (ac_aggr.tm_gmtoff)
6168 return 0;
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_member_struct_tm_tm_gmtoff=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 cat >conftest.$ac_ext <<_ACEOF
6191 #line $LINENO "configure"
6192 /* confdefs.h. */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 #include <time.h>
6200 main ()
6202 static struct tm ac_aggr;
6203 if (sizeof ac_aggr.tm_gmtoff)
6204 return 0;
6206 return 0;
6208 _ACEOF
6209 rm -f conftest.$ac_objext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6211 (eval $ac_compile) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_member_struct_tm_tm_gmtoff=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_member_struct_tm_tm_gmtoff=no
6228 rm -f conftest.$ac_objext conftest.$ac_ext
6230 rm -f conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6234 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define HAVE_TM_GMTOFF 1
6238 _ACEOF
6244 echo "$as_me:$LINENO: checking for function prototypes" >&5
6245 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6246 if test "$ac_cv_prog_cc_stdc" != no; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248 echo "${ECHO_T}yes" >&6
6250 cat >>confdefs.h <<\_ACEOF
6251 #define PROTOTYPES 1
6252 _ACEOF
6255 cat >>confdefs.h <<\_ACEOF
6256 #define __PROTOTYPES 1
6257 _ACEOF
6259 else
6260 echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6
6264 echo "$as_me:$LINENO: checking for working volatile" >&5
6265 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6266 if test "${ac_cv_c_volatile+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 #line $LINENO "configure"
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6278 main ()
6281 volatile int x;
6282 int * volatile y;
6284 return 0;
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 (eval $ac_compile) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_c_volatile=yes
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_c_volatile=no
6306 rm -f conftest.$ac_objext conftest.$ac_ext
6308 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6309 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6310 if test $ac_cv_c_volatile = no; then
6312 cat >>confdefs.h <<\_ACEOF
6313 #define volatile
6314 _ACEOF
6318 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6319 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6320 if test "${ac_cv_c_const+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 else
6323 cat >conftest.$ac_ext <<_ACEOF
6324 #line $LINENO "configure"
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6332 main ()
6334 /* FIXME: Include the comments suggested by Paul. */
6335 #ifndef __cplusplus
6336 /* Ultrix mips cc rejects this. */
6337 typedef int charset[2];
6338 const charset x;
6339 /* SunOS 4.1.1 cc rejects this. */
6340 char const *const *ccp;
6341 char **p;
6342 /* NEC SVR4.0.2 mips cc rejects this. */
6343 struct point {int x, y;};
6344 static struct point const zero = {0,0};
6345 /* AIX XL C 1.02.0.0 rejects this.
6346 It does not let you subtract one const X* pointer from another in
6347 an arm of an if-expression whose if-part is not a constant
6348 expression */
6349 const char *g = "string";
6350 ccp = &g + (g ? g-g : 0);
6351 /* HPUX 7.0 cc rejects these. */
6352 ++ccp;
6353 p = (char**) ccp;
6354 ccp = (char const *const *) p;
6355 { /* SCO 3.2v4 cc rejects this. */
6356 char *t;
6357 char const *s = 0 ? (char *) 0 : (char const *) 0;
6359 *t++ = 0;
6361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6362 int x[] = {25, 17};
6363 const int *foo = &x[0];
6364 ++foo;
6366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6367 typedef const int *iptr;
6368 iptr p = 0;
6369 ++p;
6371 { /* AIX XL C 1.02.0.0 rejects this saying
6372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6373 struct s { int j; const int *ap[3]; };
6374 struct s *b; b->j = 5;
6376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6377 const int foo = 10;
6379 #endif
6382 return 0;
6384 _ACEOF
6385 rm -f conftest.$ac_objext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387 (eval $ac_compile) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_cv_c_const=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_cv_c_const=no
6404 rm -f conftest.$ac_objext conftest.$ac_ext
6406 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6407 echo "${ECHO_T}$ac_cv_c_const" >&6
6408 if test $ac_cv_c_const = no; then
6410 cat >>confdefs.h <<\_ACEOF
6411 #define const
6412 _ACEOF
6416 echo "$as_me:$LINENO: checking for void * support" >&5
6417 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6418 if test "${emacs_cv_void_star+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6430 main ()
6432 void * foo;
6434 return 0;
6436 _ACEOF
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 emacs_cv_void_star=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 emacs_cv_void_star=no
6456 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6459 echo "${ECHO_T}$emacs_cv_void_star" >&6
6460 if test $emacs_cv_void_star = yes; then
6461 cat >>confdefs.h <<\_ACEOF
6462 #define POINTER_TYPE void
6463 _ACEOF
6465 else
6466 cat >>confdefs.h <<\_ACEOF
6467 #define POINTER_TYPE char
6468 _ACEOF
6474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6475 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6476 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 cat >conftest.make <<\_ACEOF
6481 all:
6482 @echo 'ac_maketemp="$(MAKE)"'
6483 _ACEOF
6484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6486 if test -n "$ac_maketemp"; then
6487 eval ac_cv_prog_make_${ac_make}_set=yes
6488 else
6489 eval ac_cv_prog_make_${ac_make}_set=no
6491 rm -f conftest.make
6493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6494 echo "$as_me:$LINENO: result: yes" >&5
6495 echo "${ECHO_T}yes" >&6
6496 SET_MAKE=
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6500 SET_MAKE="MAKE=${MAKE-make}"
6504 echo "$as_me:$LINENO: checking for long file names" >&5
6505 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6506 if test "${ac_cv_sys_long_file_names+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 ac_cv_sys_long_file_names=yes
6510 # Test for long file names in all the places we know might matter:
6511 # . the current directory, where building will happen
6512 # $prefix/lib where we will be installing things
6513 # $exec_prefix/lib likewise
6514 # eval it to expand exec_prefix.
6515 # $TMPDIR if set, where it might want to write temporary files
6516 # if $TMPDIR is not set:
6517 # /tmp where it might want to write temporary files
6518 # /var/tmp likewise
6519 # /usr/tmp likewise
6520 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6521 ac_tmpdirs=$TMPDIR
6522 else
6523 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6525 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6526 test -d $ac_dir || continue
6527 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6528 ac_xdir=$ac_dir/cf$$
6529 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6530 ac_tf1=$ac_xdir/conftest9012345
6531 ac_tf2=$ac_xdir/conftest9012346
6532 (echo 1 >$ac_tf1) 2>/dev/null
6533 (echo 2 >$ac_tf2) 2>/dev/null
6534 ac_val=`cat $ac_tf1 2>/dev/null`
6535 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6536 ac_cv_sys_long_file_names=no
6537 rm -rf $ac_xdir 2>/dev/null
6538 break
6540 rm -rf $ac_xdir 2>/dev/null
6541 done
6543 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6544 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6545 if test $ac_cv_sys_long_file_names = yes; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_LONG_FILE_NAMES 1
6549 _ACEOF
6554 #### Choose a window system.
6556 echo "$as_me:$LINENO: checking for X" >&5
6557 echo $ECHO_N "checking for X... $ECHO_C" >&6
6560 # Check whether --with-x or --without-x was given.
6561 if test "${with_x+set}" = set; then
6562 withval="$with_x"
6565 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6566 if test "x$with_x" = xno; then
6567 # The user explicitly disabled X.
6568 have_x=disabled
6569 else
6570 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6571 # Both variables are already set.
6572 have_x=yes
6573 else
6574 if test "${ac_cv_have_x+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 # One or both of the vars are not set, and there is no cached value.
6578 ac_x_includes=no ac_x_libraries=no
6579 rm -fr conftest.dir
6580 if mkdir conftest.dir; then
6581 cd conftest.dir
6582 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6583 cat >Imakefile <<'_ACEOF'
6584 acfindx:
6585 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6586 _ACEOF
6587 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6589 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6590 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6591 for ac_extension in a so sl; do
6592 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6593 test -f $ac_im_libdir/libX11.$ac_extension; then
6594 ac_im_usrlibdir=$ac_im_libdir; break
6596 done
6597 # Screen out bogus values from the imake configuration. They are
6598 # bogus both because they are the default anyway, and because
6599 # using them would break gcc on systems where it needs fixed includes.
6600 case $ac_im_incroot in
6601 /usr/include) ;;
6602 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6603 esac
6604 case $ac_im_usrlibdir in
6605 /usr/lib | /lib) ;;
6606 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6607 esac
6609 cd ..
6610 rm -fr conftest.dir
6613 # Standard set of common directories for X headers.
6614 # Check X11 before X11Rn because it is often a symlink to the current release.
6615 ac_x_header_dirs='
6616 /usr/X11/include
6617 /usr/X11R6/include
6618 /usr/X11R5/include
6619 /usr/X11R4/include
6621 /usr/include/X11
6622 /usr/include/X11R6
6623 /usr/include/X11R5
6624 /usr/include/X11R4
6626 /usr/local/X11/include
6627 /usr/local/X11R6/include
6628 /usr/local/X11R5/include
6629 /usr/local/X11R4/include
6631 /usr/local/include/X11
6632 /usr/local/include/X11R6
6633 /usr/local/include/X11R5
6634 /usr/local/include/X11R4
6636 /usr/X386/include
6637 /usr/x386/include
6638 /usr/XFree86/include/X11
6640 /usr/include
6641 /usr/local/include
6642 /usr/unsupported/include
6643 /usr/athena/include
6644 /usr/local/x11r5/include
6645 /usr/lpp/Xamples/include
6647 /usr/openwin/include
6648 /usr/openwin/share/include'
6650 if test "$ac_x_includes" = no; then
6651 # Guess where to find include files, by looking for Intrinsic.h.
6652 # First, try using that file with no special directory specified.
6653 cat >conftest.$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 #include <X11/Intrinsic.h>
6661 _ACEOF
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev/null; then
6670 if test -s conftest.err; then
6671 ac_cpp_err=$ac_c_preproc_warn_flag
6672 else
6673 ac_cpp_err=
6675 else
6676 ac_cpp_err=yes
6678 if test -z "$ac_cpp_err"; then
6679 # We can compile using X headers with no special include directory.
6680 ac_x_includes=
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 for ac_dir in $ac_x_header_dirs; do
6686 if test -r "$ac_dir/X11/Intrinsic.h"; then
6687 ac_x_includes=$ac_dir
6688 break
6690 done
6692 rm -f conftest.err conftest.$ac_ext
6693 fi # $ac_x_includes = no
6695 if test "$ac_x_libraries" = no; then
6696 # Check for the libraries.
6697 # See if we find them without any special options.
6698 # Don't add to $LIBS permanently.
6699 ac_save_LIBS=$LIBS
6700 LIBS="-lXt $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 #line $LINENO "configure"
6703 /* confdefs.h. */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <X11/Intrinsic.h>
6710 main ()
6712 XtMalloc (0)
6714 return 0;
6716 _ACEOF
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try='test -s conftest$ac_exeext'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 LIBS=$ac_save_LIBS
6730 # We can link X programs with no special library path.
6731 ac_x_libraries=
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 LIBS=$ac_save_LIBS
6737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6739 # Don't even attempt the hair of trying to link an X program!
6740 for ac_extension in a so sl; do
6741 if test -r $ac_dir/libXt.$ac_extension; then
6742 ac_x_libraries=$ac_dir
6743 break 2
6745 done
6746 done
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 fi # $ac_x_libraries = no
6751 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6752 # Didn't find X anywhere. Cache the known absence of X.
6753 ac_cv_have_x="have_x=no"
6754 else
6755 # Record where we found X for the cache.
6756 ac_cv_have_x="have_x=yes \
6757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6762 eval "$ac_cv_have_x"
6763 fi # $with_x != no
6765 if test "$have_x" != yes; then
6766 echo "$as_me:$LINENO: result: $have_x" >&5
6767 echo "${ECHO_T}$have_x" >&6
6768 no_x=yes
6769 else
6770 # If each of the values was on the command line, it overrides each guess.
6771 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6772 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6773 # Update the cache value to reflect the command line values.
6774 ac_cv_have_x="have_x=yes \
6775 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6776 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6777 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6780 if test "$no_x" = yes; then
6781 window_system=none
6782 else
6783 window_system=x11
6786 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6787 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6788 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6789 x_default_search_path=""
6790 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6791 x_search_path="\
6792 ${x_library}/X11/%L/%T/%N%C%S:\
6793 ${x_library}/X11/%l/%T/%N%C%S:\
6794 ${x_library}/X11/%T/%N%C%S:\
6795 ${x_library}/X11/%L/%T/%N%S:\
6796 ${x_library}/X11/%l/%T/%N%S:\
6797 ${x_library}/X11/%T/%N%S"
6798 if test x"${x_default_search_path}" = x; then
6799 x_default_search_path=${x_search_path}
6800 else
6801 x_default_search_path="${x_search_path}:${x_default_search_path}"
6803 done
6805 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
6806 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6809 if test x"${x_includes}" = x; then
6810 bitmapdir=/usr/include/X11/bitmaps
6811 else
6812 # accumulate include directories that have X11 bitmap subdirectories
6813 bmd_acc="dummyval"
6814 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6815 if test -d "${bmd}/X11/bitmaps"; then
6816 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
6818 if test -d "${bmd}/bitmaps"; then
6819 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
6821 done
6822 if test ${bmd_acc} != "dummyval"; then
6823 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6827 case "${window_system}" in
6828 x11 )
6829 HAVE_X_WINDOWS=yes
6830 HAVE_X11=yes
6831 case "${with_x_toolkit}" in
6832 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
6833 motif ) USE_X_TOOLKIT=MOTIF ;;
6834 gtk ) with_gtk=yes
6835 USE_X_TOOLKIT=none ;;
6836 no ) USE_X_TOOLKIT=none ;;
6837 * ) USE_X_TOOLKIT=maybe ;;
6838 esac
6840 none )
6841 HAVE_X_WINDOWS=no
6842 HAVE_X11=no
6843 USE_X_TOOLKIT=none
6845 esac
6847 ### If we're using X11, we should use the X menu package.
6848 HAVE_MENUS=no
6849 case ${HAVE_X11} in
6850 yes ) HAVE_MENUS=yes ;;
6851 esac
6853 if test "${opsys}" = "hpux9"; then
6854 case "${x_libraries}" in
6855 *X11R4* )
6856 opsysfile="s/hpux9-x11r4.h"
6858 esac
6861 if test "${opsys}" = "hpux9shr"; then
6862 case "${x_libraries}" in
6863 *X11R4* )
6864 opsysfile="s/hpux9shxr4.h"
6866 esac
6869 ### Compute the unexec source name from the object name.
6870 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
6872 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6873 # Assume not, until told otherwise.
6874 GNU_MALLOC=yes
6875 doug_lea_malloc=yes
6876 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6877 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6878 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 #line $LINENO "configure"
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char malloc_get_state (); below.
6890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891 <limits.h> exists even on freestanding compilers. */
6892 #ifdef __STDC__
6893 # include <limits.h>
6894 #else
6895 # include <assert.h>
6896 #endif
6897 /* Override any gcc2 internal prototype to avoid an error. */
6898 #ifdef __cplusplus
6899 extern "C"
6901 #endif
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6904 char malloc_get_state ();
6905 /* The GNU C library defines this for functions which it implements
6906 to always fail with ENOSYS. Some functions are actually named
6907 something starting with __ and the normal name is an alias. */
6908 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6909 choke me
6910 #else
6911 char (*f) () = malloc_get_state;
6912 #endif
6913 #ifdef __cplusplus
6915 #endif
6918 main ()
6920 return f != malloc_get_state;
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927 (eval $ac_link) 2>&5
6928 ac_status=$?
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -s conftest$ac_exeext'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; }; then
6937 ac_cv_func_malloc_get_state=yes
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_cv_func_malloc_get_state=no
6944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6946 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6947 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6948 if test $ac_cv_func_malloc_get_state = yes; then
6950 else
6951 doug_lea_malloc=no
6954 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6955 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6956 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 #line $LINENO "configure"
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char malloc_set_state (); below.
6968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6969 <limits.h> exists even on freestanding compilers. */
6970 #ifdef __STDC__
6971 # include <limits.h>
6972 #else
6973 # include <assert.h>
6974 #endif
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 #ifdef __cplusplus
6977 extern "C"
6979 #endif
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982 char malloc_set_state ();
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6987 choke me
6988 #else
6989 char (*f) () = malloc_set_state;
6990 #endif
6991 #ifdef __cplusplus
6993 #endif
6996 main ()
6998 return f != malloc_set_state;
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_func_malloc_set_state=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_func_malloc_set_state=no
7022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7025 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7026 if test $ac_cv_func_malloc_set_state = yes; then
7028 else
7029 doug_lea_malloc=no
7032 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7033 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7034 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 extern void (* __after_morecore_hook)();
7046 main ()
7048 __after_morecore_hook = 0
7050 return 0;
7052 _ACEOF
7053 rm -f conftest.$ac_objext conftest$ac_exeext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 emacs_cv_var___after_morecore_hook=yes
7066 else
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 emacs_cv_var___after_morecore_hook=no
7072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7075 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7076 if test $emacs_cv_var___after_morecore_hook = no; then
7077 doug_lea_malloc=no
7079 if test "${system_malloc}" = "yes"; then
7080 GNU_MALLOC=no
7081 GNU_MALLOC_reason="
7082 (The GNU allocators don't work with this system configuration.)"
7084 if test "$doug_lea_malloc" = "yes" ; then
7085 if test "$GNU_MALLOC" = yes ; then
7086 GNU_MALLOC_reason="
7087 (Using Doug Lea's new malloc from the GNU C Library.)"
7090 cat >>confdefs.h <<\_ACEOF
7091 #define DOUG_LEA_MALLOC 1
7092 _ACEOF
7096 if test x"${REL_ALLOC}" = x; then
7097 REL_ALLOC=${GNU_MALLOC}
7103 for ac_header in stdlib.h unistd.h
7105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo "$as_me:$LINENO: checking for $ac_header" >&5
7108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 else
7115 # Is the header compilable?
7116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #include <$ac_header>
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_header_compiler=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_header_compiler=no
7147 rm -f conftest.$ac_objext conftest.$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7149 echo "${ECHO_T}$ac_header_compiler" >&6
7151 # Is the header present?
7152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7155 #line $LINENO "configure"
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 #include <$ac_header>
7162 _ACEOF
7163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7165 ac_status=$?
7166 grep -v '^ *+' conftest.er1 >conftest.err
7167 rm -f conftest.er1
7168 cat conftest.err >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } >/dev/null; then
7171 if test -s conftest.err; then
7172 ac_cpp_err=$ac_c_preproc_warn_flag
7173 else
7174 ac_cpp_err=
7176 else
7177 ac_cpp_err=yes
7179 if test -z "$ac_cpp_err"; then
7180 ac_header_preproc=yes
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_header_preproc=no
7187 rm -f conftest.err conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7189 echo "${ECHO_T}$ac_header_preproc" >&6
7191 # So? What about this header?
7192 case $ac_header_compiler:$ac_header_preproc in
7193 yes:no )
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7199 cat <<\_ASBOX
7200 ## ------------------------------------ ##
7201 ## Report this to bug-autoconf@gnu.org. ##
7202 ## ------------------------------------ ##
7203 _ASBOX
7205 sed "s/^/$as_me: WARNING: /" >&2
7207 no:yes )
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7211 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7215 cat <<\_ASBOX
7216 ## ------------------------------------ ##
7217 ## Report this to bug-autoconf@gnu.org. ##
7218 ## ------------------------------------ ##
7219 _ASBOX
7221 sed "s/^/$as_me: WARNING: /" >&2
7223 esac
7224 echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 eval "$as_ac_Header=$ac_header_preproc"
7231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7236 cat >>confdefs.h <<_ACEOF
7237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 _ACEOF
7242 done
7245 for ac_func in getpagesize
7247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7248 echo "$as_me:$LINENO: checking for $ac_func" >&5
7249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_var+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
7264 #ifdef __STDC__
7265 # include <limits.h>
7266 #else
7267 # include <assert.h>
7268 #endif
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 #ifdef __cplusplus
7271 extern "C"
7273 #endif
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7276 char $ac_func ();
7277 /* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281 choke me
7282 #else
7283 char (*f) () = $ac_func;
7284 #endif
7285 #ifdef __cplusplus
7287 #endif
7290 main ()
7292 return f != $ac_func;
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>&5
7300 ac_status=$?
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_var=yes"
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 eval "$as_ac_var=no"
7316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7320 if test `eval echo '${'$as_ac_var'}'` = yes; then
7321 cat >>confdefs.h <<_ACEOF
7322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7323 _ACEOF
7326 done
7328 echo "$as_me:$LINENO: checking for working mmap" >&5
7329 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7330 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 if test "$cross_compiling" = yes; then
7334 ac_cv_func_mmap_fixed_mapped=no
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line $LINENO "configure"
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 /* malloc might have been renamed as rpl_malloc. */
7345 #undef malloc
7347 /* Thanks to Mike Haertel and Jim Avera for this test.
7348 Here is a matrix of mmap possibilities:
7349 mmap private not fixed
7350 mmap private fixed at somewhere currently unmapped
7351 mmap private fixed at somewhere already mapped
7352 mmap shared not fixed
7353 mmap shared fixed at somewhere currently unmapped
7354 mmap shared fixed at somewhere already mapped
7355 For private mappings, we should verify that changes cannot be read()
7356 back from the file, nor mmap's back from the file at a different
7357 address. (There have been systems where private was not correctly
7358 implemented like the infamous i386 svr4.0, and systems where the
7359 VM page cache was not coherent with the file system buffer cache
7360 like early versions of FreeBSD and possibly contemporary NetBSD.)
7361 For shared mappings, we should conversely verify that changes get
7362 propagated back to all the places they're supposed to be.
7364 Grep wants private fixed already mapped.
7365 The main things grep needs to know about mmap are:
7366 * does it exist and is it safe to write into the mmap'd area
7367 * how to use it (BSD variants) */
7369 #include <fcntl.h>
7370 #include <sys/mman.h>
7372 #if !STDC_HEADERS && !HAVE_STDLIB_H
7373 char *malloc ();
7374 #endif
7376 /* This mess was copied from the GNU getpagesize.h. */
7377 #if !HAVE_GETPAGESIZE
7378 /* Assume that all systems that can run configure have sys/param.h. */
7379 # if !HAVE_SYS_PARAM_H
7380 # define HAVE_SYS_PARAM_H 1
7381 # endif
7383 # ifdef _SC_PAGESIZE
7384 # define getpagesize() sysconf(_SC_PAGESIZE)
7385 # else /* no _SC_PAGESIZE */
7386 # if HAVE_SYS_PARAM_H
7387 # include <sys/param.h>
7388 # ifdef EXEC_PAGESIZE
7389 # define getpagesize() EXEC_PAGESIZE
7390 # else /* no EXEC_PAGESIZE */
7391 # ifdef NBPG
7392 # define getpagesize() NBPG * CLSIZE
7393 # ifndef CLSIZE
7394 # define CLSIZE 1
7395 # endif /* no CLSIZE */
7396 # else /* no NBPG */
7397 # ifdef NBPC
7398 # define getpagesize() NBPC
7399 # else /* no NBPC */
7400 # ifdef PAGESIZE
7401 # define getpagesize() PAGESIZE
7402 # endif /* PAGESIZE */
7403 # endif /* no NBPC */
7404 # endif /* no NBPG */
7405 # endif /* no EXEC_PAGESIZE */
7406 # else /* no HAVE_SYS_PARAM_H */
7407 # define getpagesize() 8192 /* punt totally */
7408 # endif /* no HAVE_SYS_PARAM_H */
7409 # endif /* no _SC_PAGESIZE */
7411 #endif /* no HAVE_GETPAGESIZE */
7414 main ()
7416 char *data, *data2, *data3;
7417 int i, pagesize;
7418 int fd;
7420 pagesize = getpagesize ();
7422 /* First, make a file with some known garbage in it. */
7423 data = (char *) malloc (pagesize);
7424 if (!data)
7425 exit (1);
7426 for (i = 0; i < pagesize; ++i)
7427 *(data + i) = rand ();
7428 umask (0);
7429 fd = creat ("conftest.mmap", 0600);
7430 if (fd < 0)
7431 exit (1);
7432 if (write (fd, data, pagesize) != pagesize)
7433 exit (1);
7434 close (fd);
7436 /* Next, try to mmap the file at a fixed address which already has
7437 something else allocated at it. If we can, also make sure that
7438 we see the same garbage. */
7439 fd = open ("conftest.mmap", O_RDWR);
7440 if (fd < 0)
7441 exit (1);
7442 data2 = (char *) malloc (2 * pagesize);
7443 if (!data2)
7444 exit (1);
7445 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7448 exit (1);
7449 for (i = 0; i < pagesize; ++i)
7450 if (*(data + i) != *(data2 + i))
7451 exit (1);
7453 /* Finally, make sure that changes to the mapped area do not
7454 percolate back to the file as seen by read(). (This is a bug on
7455 some variants of i386 svr4.0.) */
7456 for (i = 0; i < pagesize; ++i)
7457 *(data2 + i) = *(data2 + i) + 1;
7458 data3 = (char *) malloc (pagesize);
7459 if (!data3)
7460 exit (1);
7461 if (read (fd, data3, pagesize) != pagesize)
7462 exit (1);
7463 for (i = 0; i < pagesize; ++i)
7464 if (*(data + i) != *(data3 + i))
7465 exit (1);
7466 close (fd);
7467 exit (0);
7469 _ACEOF
7470 rm -f conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_func_mmap_fixed_mapped=yes
7482 else
7483 echo "$as_me: program exited with status $ac_status" >&5
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ( exit $ac_status )
7488 ac_cv_func_mmap_fixed_mapped=no
7490 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7494 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7495 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7497 cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MMAP 1
7499 _ACEOF
7502 rm -f conftest.mmap
7504 if test $use_mmap_for_buffers = yes; then
7505 REL_ALLOC=no
7508 LIBS="$libsrc_libs $LIBS"
7511 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7512 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7513 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-ldnet $LIBS"
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line $LINENO "configure"
7520 /* confdefs.h. */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7526 /* Override any gcc2 internal prototype to avoid an error. */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7532 char dnet_ntoa ();
7534 main ()
7536 dnet_ntoa ();
7538 return 0;
7540 _ACEOF
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7544 ac_status=$?
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_lib_dnet_dnet_ntoa=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 ac_cv_lib_dnet_dnet_ntoa=no
7560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561 LIBS=$ac_check_lib_save_LIBS
7563 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7564 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7565 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7566 cat >>confdefs.h <<_ACEOF
7567 #define HAVE_LIBDNET 1
7568 _ACEOF
7570 LIBS="-ldnet $LIBS"
7575 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7576 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7577 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580 ac_check_lib_save_LIBS=$LIBS
7581 LIBS="-lXbsd $LIBS"
7582 cat >conftest.$ac_ext <<_ACEOF
7583 #line $LINENO "configure"
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7592 main ()
7594 main ();
7596 return 0;
7598 _ACEOF
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601 (eval $ac_link) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -s conftest$ac_exeext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 (eval $ac_try) 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_lib_Xbsd_main=yes
7612 else
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 ac_cv_lib_Xbsd_main=no
7618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7619 LIBS=$ac_check_lib_save_LIBS
7621 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7622 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7623 if test $ac_cv_lib_Xbsd_main = yes; then
7624 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7629 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7630 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7631 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 ac_check_lib_save_LIBS=$LIBS
7635 LIBS="-lpthreads $LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line $LINENO "configure"
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 #ifdef __cplusplus
7646 extern "C"
7647 #endif
7648 /* We use char because int might match the return type of a gcc2
7649 builtin and then its argument prototype would still apply. */
7650 char cma_open ();
7652 main ()
7654 cma_open ();
7656 return 0;
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest$ac_exeext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_cv_lib_pthreads_cma_open=yes
7672 else
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 ac_cv_lib_pthreads_cma_open=no
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 LIBS=$ac_check_lib_save_LIBS
7681 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7682 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7683 if test $ac_cv_lib_pthreads_cma_open = yes; then
7684 cat >>confdefs.h <<_ACEOF
7685 #define HAVE_LIBPTHREADS 1
7686 _ACEOF
7688 LIBS="-lpthreads $LIBS"
7693 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7694 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7695 if test -d /usr/X386/include; then
7696 HAVE_XFREE386=yes
7697 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7698 else
7699 HAVE_XFREE386=no
7701 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7702 echo "${ECHO_T}$HAVE_XFREE386" >&6
7704 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7705 # used for the tests that follow. We set them back to REAL_CFLAGS and
7706 # REAL_CPPFLAGS later on.
7708 REAL_CPPFLAGS="$CPPFLAGS"
7710 if test "${HAVE_X11}" = "yes"; then
7711 DEFS="$C_SWITCH_X_SITE $DEFS"
7712 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
7713 LIBS="$LIBX $LIBS"
7714 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
7715 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
7717 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7718 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7719 # but it's more convenient here to set LD_RUN_PATH
7720 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7721 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
7722 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7723 export LD_RUN_PATH
7726 if test "${opsys}" = "gnu-linux"; then
7727 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7728 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line $LINENO "configure"
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7738 main ()
7740 XOpenDisplay ("foo");
7742 return 0;
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 xlinux_first_failure=no
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 xlinux_first_failure=yes
7764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7765 if test "${xlinux_first_failure}" = "yes"; then
7766 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7767 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7768 OLD_CPPFLAGS="$CPPFLAGS"
7769 OLD_LIBS="$LIBS"
7770 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7771 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7772 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7773 LIBS="$LIBS -b i486-linuxaout"
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7783 main ()
7785 XOpenDisplay ("foo");
7787 return 0;
7789 _ACEOF
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792 (eval $ac_link) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 xlinux_second_failure=no
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 xlinux_second_failure=yes
7809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7810 if test "${xlinux_second_failure}" = "yes"; then
7811 # If we get the same failure with -b, there is no use adding -b.
7812 # So take it out. This plays safe.
7813 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
7814 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7815 CPPFLAGS="$OLD_CPPFLAGS"
7816 LIBS="$OLD_LIBS"
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 else
7820 echo "$as_me:$LINENO: result: yes" >&5
7821 echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7829 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7830 # header files included from there.
7831 echo "$as_me:$LINENO: checking for Xkb" >&5
7832 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <X11/Xlib.h>
7841 #include <X11/XKBlib.h>
7843 main ()
7845 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7847 return 0;
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -s conftest$ac_exeext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_xkb=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 emacs_xkb=no
7869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7870 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7871 echo "${ECHO_T}$emacs_xkb" >&6
7872 if test $emacs_xkb = yes; then
7874 cat >>confdefs.h <<\_ACEOF
7875 #define HAVE_XKBGETKEYBOARD 1
7876 _ACEOF
7884 for ac_func in XrmSetDatabase XScreenResourceString \
7885 XScreenNumberOfScreen XSetWMProtocols
7887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7888 echo "$as_me:$LINENO: checking for $ac_func" >&5
7889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7890 if eval "test \"\${$as_ac_var+set}\" = set"; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line $LINENO "configure"
7895 /* confdefs.h. */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h. */
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func (); below.
7902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903 <limits.h> exists even on freestanding compilers. */
7904 #ifdef __STDC__
7905 # include <limits.h>
7906 #else
7907 # include <assert.h>
7908 #endif
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 #ifdef __cplusplus
7911 extern "C"
7913 #endif
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7916 char $ac_func ();
7917 /* The GNU C library defines this for functions which it implements
7918 to always fail with ENOSYS. Some functions are actually named
7919 something starting with __ and the normal name is an alias. */
7920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7921 choke me
7922 #else
7923 char (*f) () = $ac_func;
7924 #endif
7925 #ifdef __cplusplus
7927 #endif
7930 main ()
7932 return f != $ac_func;
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_var=yes"
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 eval "$as_ac_var=no"
7956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7960 if test `eval echo '${'$as_ac_var'}'` = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7963 _ACEOF
7966 done
7970 if test "${window_system}" = "x11"; then
7971 echo "$as_me:$LINENO: checking X11 version 6" >&5
7972 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7973 if test "${emacs_cv_x11_version_6+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 cat >conftest.$ac_ext <<_ACEOF
7977 #line $LINENO "configure"
7978 /* confdefs.h. */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <X11/Xlib.h>
7985 main ()
7987 #if XlibSpecificationRelease < 6
7988 fail;
7989 #endif
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 emacs_cv_x11_version_6=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 emacs_cv_x11_version_6=no
8014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8017 if test $emacs_cv_x11_version_6 = yes; then
8018 echo "$as_me:$LINENO: result: 6 or newer" >&5
8019 echo "${ECHO_T}6 or newer" >&6
8021 cat >>confdefs.h <<\_ACEOF
8022 #define HAVE_X11R6 1
8023 _ACEOF
8025 else
8026 echo "$as_me:$LINENO: result: before 6" >&5
8027 echo "${ECHO_T}before 6" >&6
8031 if test "${window_system}" = "x11"; then
8032 echo "$as_me:$LINENO: checking X11 version 5" >&5
8033 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8034 if test "${emacs_cv_x11_version_5+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 cat >conftest.$ac_ext <<_ACEOF
8038 #line $LINENO "configure"
8039 /* confdefs.h. */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 #include <X11/Xlib.h>
8046 main ()
8048 #if XlibSpecificationRelease < 5
8049 fail;
8050 #endif
8053 return 0;
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -s conftest$ac_exeext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 (eval $ac_try) 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 emacs_cv_x11_version_5=yes
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 emacs_cv_x11_version_5=no
8075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8078 if test $emacs_cv_x11_version_5 = yes; then
8079 echo "$as_me:$LINENO: result: 5 or newer" >&5
8080 echo "${ECHO_T}5 or newer" >&6
8081 HAVE_X11R5=yes
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_X11R5 1
8085 _ACEOF
8087 else
8088 HAVE_X11R5=no
8089 echo "$as_me:$LINENO: result: before 5" >&5
8090 echo "${ECHO_T}before 5" >&6
8096 HAVE_GTK=no
8097 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
8098 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
8099 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
8100 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
8101 { (exit 1); exit 1; }; };
8103 GLIB_REQUIRED=2.0.1
8104 GTK_REQUIRED=2.0.1
8105 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8107 if test "X${with_pkg_config_prog}" != X; then
8108 PKG_CONFIG="${with_pkg_config_prog}"
8111 succeeded=no
8113 if test -z "$PKG_CONFIG"; then
8114 # Extract the first word of "pkg-config", so it can be a program name with args.
8115 set dummy pkg-config; ac_word=$2
8116 echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 else
8121 case $PKG_CONFIG in
8122 [\\/]* | ?:[\\/]*)
8123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8137 done
8138 done
8140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8142 esac
8144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8146 if test -n "$PKG_CONFIG"; then
8147 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8148 echo "${ECHO_T}$PKG_CONFIG" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8156 if test "$PKG_CONFIG" = "no" ; then
8157 echo "*** The pkg-config script could not be found. Make sure it is"
8158 echo "*** in your path, or give the full path to pkg-config with"
8159 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
8160 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8161 else
8162 PKG_CONFIG_MIN_VERSION=0.9.0
8163 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8164 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8165 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
8167 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
8168 echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170 succeeded=yes
8172 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8173 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
8174 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
8175 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8176 echo "${ECHO_T}$GTK_CFLAGS" >&6
8178 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8179 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
8180 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
8181 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8182 echo "${ECHO_T}$GTK_LIBS" >&6
8183 else
8184 GTK_CFLAGS=""
8185 GTK_LIBS=""
8186 ## If we have a custom action on failure, don't print errors, but
8187 ## do set a variable so people can do so.
8188 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8189 echo $GTK_PKG_ERRORS
8194 else
8195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8200 if test $succeeded = yes; then
8202 else
8203 { { 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
8204 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;}
8205 { (exit 1); exit 1; }; }
8210 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8211 HAVE_GTK=yes
8213 cat >>confdefs.h <<\_ACEOF
8214 #define HAVE_GTK 1
8215 _ACEOF
8217 USE_X_TOOLKIT=none
8219 with_toolkit_scroll_bars=yes
8222 if test x"${USE_X_TOOLKIT}" = xmaybe; then
8223 if test x"${HAVE_X11R5}" = xyes; then
8224 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8225 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8226 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8237 #include <X11/Intrinsic.h>
8238 #include <X11/Xaw/Simple.h>
8240 main ()
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8250 ac_status=$?
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 emacs_cv_x11_version_5_with_xaw=yes
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 emacs_cv_x11_version_5_with_xaw=no
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8269 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8270 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8271 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8272 USE_X_TOOLKIT=LUCID
8273 else
8274 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8275 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8276 USE_X_TOOLKIT=none
8278 else
8279 USE_X_TOOLKIT=none
8283 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8285 if test "${USE_X_TOOLKIT}" != "none"; then
8286 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8287 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8288 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 else
8291 cat >conftest.$ac_ext <<_ACEOF
8292 #line $LINENO "configure"
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 #include <X11/Intrinsic.h>
8300 main ()
8302 #if XtSpecificationRelease < 6
8303 fail;
8304 #endif
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 emacs_cv_x11_toolkit_version_6=yes
8323 else
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 emacs_cv_x11_toolkit_version_6=no
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8332 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8334 echo "$as_me:$LINENO: result: 6 or newer" >&5
8335 echo "${ECHO_T}6 or newer" >&6
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_X11XTR6 1
8339 _ACEOF
8341 else
8342 echo "$as_me:$LINENO: result: before 6" >&5
8343 echo "${ECHO_T}before 6" >&6
8346 OLDLIBS="$LIBS"
8347 if test x$HAVE_X11XTR6 = xyes; then
8348 LIBS="-lXt -lSM -lICE $LIBS"
8349 else
8350 LIBS="-lXt $LIBS"
8353 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8354 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8355 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 ac_check_lib_save_LIBS=$LIBS
8359 LIBS="-lXmu $LIBS"
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char XmuConvertStandardSelection ();
8376 main ()
8378 XmuConvertStandardSelection ();
8380 return 0;
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8403 LIBS=$ac_check_lib_save_LIBS
8405 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8406 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8407 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409 #define HAVE_LIBXMU 1
8410 _ACEOF
8412 LIBS="-lXmu $LIBS"
8416 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
8419 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8420 if test "${HAVE_X11}" = "yes"; then
8421 if test "${USE_X_TOOLKIT}" != "none"; then
8423 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8424 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8425 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lXext $LIBS"
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8432 /* confdefs.h. */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char XShapeQueryExtension ();
8446 main ()
8448 XShapeQueryExtension ();
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
8459 { ac_try='test -s conftest$ac_exeext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_cv_lib_Xext_XShapeQueryExtension=yes
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_lib_Xext_XShapeQueryExtension=no
8472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8476 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8477 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define HAVE_LIBXEXT 1
8480 _ACEOF
8482 LIBS="-lXext $LIBS"
8489 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8490 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8491 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8492 if test "${emacs_cv_lesstif+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 # We put this in CFLAGS temporarily to precede other -I options
8496 # that might be in CFLAGS temporarily.
8497 # We put this in CPPFLAGS where it precedes the other -I options.
8498 OLD_CPPFLAGS=$CPPFLAGS
8499 OLD_CFLAGS=$CFLAGS
8500 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8501 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line $LINENO "configure"
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8511 main ()
8513 int x = 5;
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 emacs_cv_lesstif=yes
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 emacs_cv_lesstif=no
8537 rm -f conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8540 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8541 if test $emacs_cv_lesstif = yes; then
8542 # Make sure this -I option remains in CPPFLAGS after it is set
8543 # back to REAL_CPPFLAGS.
8544 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8545 # have those other -I options anyway. Ultimately, having this
8546 # directory ultimately in CPPFLAGS will be enough.
8547 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8548 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8549 else
8550 CFLAGS=$OLD_CFLAGS
8551 CPPFLAGS=$OLD_CPPFLAGS
8553 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8554 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8555 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 cat >conftest.$ac_ext <<_ACEOF
8559 #line $LINENO "configure"
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 #include <Xm/Xm.h>
8567 main ()
8569 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8570 int x = 5;
8571 #else
8572 Motif version prior to 2.1.
8573 #endif
8575 return 0;
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 emacs_cv_motif_version_2_1=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 emacs_cv_motif_version_2_1=no
8597 rm -f conftest.$ac_objext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8600 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8601 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8602 if test $emacs_cv_motif_version_2_1 = yes; then
8603 HAVE_LIBXP=no
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_MOTIF_2_1 1
8607 _ACEOF
8609 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8610 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8611 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 ac_check_lib_save_LIBS=$LIBS
8615 LIBS="-lXp $LIBS"
8616 cat >conftest.$ac_ext <<_ACEOF
8617 #line $LINENO "configure"
8618 /* confdefs.h. */
8619 _ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 #ifdef __cplusplus
8626 extern "C"
8627 #endif
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8630 char XpCreateContext ();
8632 main ()
8634 XpCreateContext ();
8636 return 0;
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -s conftest$ac_exeext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_lib_Xp_XpCreateContext=yes
8652 else
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 ac_cv_lib_Xp_XpCreateContext=no
8658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8662 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8663 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8664 HAVE_LIBXP=yes
8667 if test ${HAVE_LIBXP} = yes; then
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_LIBXP 1
8671 _ACEOF
8677 ### Is -lXaw3d available?
8678 HAVE_XAW3D=no
8679 if test "${HAVE_X11}" = "yes"; then
8680 if test "${USE_X_TOOLKIT}" != "none"; then
8681 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8682 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8683 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <X11/Xaw3d/Scrollbar.h>
8694 _ACEOF
8695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } >/dev/null; then
8703 if test -s conftest.err; then
8704 ac_cpp_err=$ac_c_preproc_warn_flag
8705 else
8706 ac_cpp_err=
8708 else
8709 ac_cpp_err=yes
8711 if test -z "$ac_cpp_err"; then
8712 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
8719 rm -f conftest.err conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8723 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8724 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8725 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8726 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-lXaw3d $LIBS"
8731 cat >conftest.$ac_ext <<_ACEOF
8732 #line $LINENO "configure"
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 /* Override any gcc2 internal prototype to avoid an error. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745 char XawScrollbarSetThumb ();
8747 main ()
8749 XawScrollbarSetThumb ();
8751 return 0;
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8774 LIBS=$ac_check_lib_save_LIBS
8776 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8777 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8778 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8779 HAVE_XAW3D=yes
8785 if test "${HAVE_XAW3D}" = "yes"; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define HAVE_XAW3D 1
8789 _ACEOF
8797 USE_TOOLKIT_SCROLL_BARS=no
8798 if test "${with_toolkit_scroll_bars}" != "no"; then
8799 if test "${USE_X_TOOLKIT}" != "none"; then
8800 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8801 cat >>confdefs.h <<\_ACEOF
8802 #define USE_TOOLKIT_SCROLL_BARS 1
8803 _ACEOF
8805 HAVE_XAW3D=no
8806 USE_TOOLKIT_SCROLL_BARS=yes
8807 elif test "${HAVE_XAW3D}" = "yes"; then
8808 cat >>confdefs.h <<\_ACEOF
8809 #define USE_TOOLKIT_SCROLL_BARS 1
8810 _ACEOF
8812 USE_TOOLKIT_SCROLL_BARS=yes
8814 elif test "${HAVE_GTK}" = "yes"; then
8815 cat >>confdefs.h <<\_ACEOF
8816 #define USE_TOOLKIT_SCROLL_BARS 1
8817 _ACEOF
8819 USE_TOOLKIT_SCROLL_BARS=yes
8824 if test "${with_xim}" != "no"; then
8826 cat >>confdefs.h <<\_ACEOF
8827 #define USE_XIM 1
8828 _ACEOF
8832 ### Use -lXpm if available, unless `--with-xpm=no'.
8833 HAVE_XPM=no
8834 if test "${HAVE_X11}" = "yes"; then
8835 if test "${with_xpm}" != "no"; then
8836 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8837 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8838 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8839 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8843 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8844 else
8845 # Is the header compilable?
8846 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8847 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8849 #line $LINENO "configure"
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8856 #include <X11/xpm.h>
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860 (eval $ac_compile) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); } &&
8864 { ac_try='test -s conftest.$ac_objext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_header_compiler=yes
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_header_compiler=no
8877 rm -f conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879 echo "${ECHO_T}$ac_header_compiler" >&6
8881 # Is the header present?
8882 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8883 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <X11/xpm.h>
8892 _ACEOF
8893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } >/dev/null; then
8901 if test -s conftest.err; then
8902 ac_cpp_err=$ac_c_preproc_warn_flag
8903 else
8904 ac_cpp_err=
8906 else
8907 ac_cpp_err=yes
8909 if test -z "$ac_cpp_err"; then
8910 ac_header_preproc=yes
8911 else
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_header_preproc=no
8917 rm -f conftest.err conftest.$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8919 echo "${ECHO_T}$ac_header_preproc" >&6
8921 # So? What about this header?
8922 case $ac_header_compiler:$ac_header_preproc in
8923 yes:no )
8924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8925 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8929 cat <<\_ASBOX
8930 ## ------------------------------------ ##
8931 ## Report this to bug-autoconf@gnu.org. ##
8932 ## ------------------------------------ ##
8933 _ASBOX
8935 sed "s/^/$as_me: WARNING: /" >&2
8937 no:yes )
8938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8939 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8941 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8943 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8945 cat <<\_ASBOX
8946 ## ------------------------------------ ##
8947 ## Report this to bug-autoconf@gnu.org. ##
8948 ## ------------------------------------ ##
8949 _ASBOX
8951 sed "s/^/$as_me: WARNING: /" >&2
8953 esac
8954 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8955 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8956 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959 ac_cv_header_X11_xpm_h=$ac_header_preproc
8961 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8962 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8965 if test $ac_cv_header_X11_xpm_h = yes; then
8966 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8967 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8968 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 ac_check_lib_save_LIBS=$LIBS
8972 LIBS="-lXpm -lX11 $LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 #line $LINENO "configure"
8975 /* confdefs.h. */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8981 /* Override any gcc2 internal prototype to avoid an error. */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 /* We use char because int might match the return type of a gcc2
8986 builtin and then its argument prototype would still apply. */
8987 char XpmReadFileToPixmap ();
8989 main ()
8991 XpmReadFileToPixmap ();
8993 return 0;
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9018 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9019 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9020 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9021 HAVE_XPM=yes
9027 if test "${HAVE_XPM}" = "yes"; then
9028 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9029 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include "X11/xpm.h"
9038 #ifndef XpmReturnAllocPixels
9039 no_return_alloc_pixels
9040 #endif
9042 _ACEOF
9043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9044 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9045 HAVE_XPM=no
9046 else
9047 HAVE_XPM=yes
9049 rm -f conftest*
9052 if test "${HAVE_XPM}" = "yes"; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6
9062 if test "${HAVE_XPM}" = "yes"; then
9064 cat >>confdefs.h <<\_ACEOF
9065 #define HAVE_XPM 1
9066 _ACEOF
9071 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9072 HAVE_JPEG=no
9073 if test "${HAVE_X11}" = "yes"; then
9074 if test "${with_jpeg}" != "no"; then
9075 if test "${ac_cv_header_jerror_h+set}" = set; then
9076 echo "$as_me:$LINENO: checking for jerror.h" >&5
9077 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9078 if test "${ac_cv_header_jerror_h+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9082 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9083 else
9084 # Is the header compilable?
9085 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9086 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h. */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 #include <jerror.h>
9096 _ACEOF
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_header_compiler=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9114 ac_header_compiler=no
9116 rm -f conftest.$ac_objext conftest.$ac_ext
9117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9118 echo "${ECHO_T}$ac_header_compiler" >&6
9120 # Is the header present?
9121 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9122 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9123 cat >conftest.$ac_ext <<_ACEOF
9124 #line $LINENO "configure"
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <jerror.h>
9131 _ACEOF
9132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } >/dev/null; then
9140 if test -s conftest.err; then
9141 ac_cpp_err=$ac_c_preproc_warn_flag
9142 else
9143 ac_cpp_err=
9145 else
9146 ac_cpp_err=yes
9148 if test -z "$ac_cpp_err"; then
9149 ac_header_preproc=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_header_preproc=no
9156 rm -f conftest.err conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9158 echo "${ECHO_T}$ac_header_preproc" >&6
9160 # So? What about this header?
9161 case $ac_header_compiler:$ac_header_preproc in
9162 yes:no )
9163 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9164 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9168 cat <<\_ASBOX
9169 ## ------------------------------------ ##
9170 ## Report this to bug-autoconf@gnu.org. ##
9171 ## ------------------------------------ ##
9172 _ASBOX
9174 sed "s/^/$as_me: WARNING: /" >&2
9176 no:yes )
9177 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9178 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9180 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9182 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9184 cat <<\_ASBOX
9185 ## ------------------------------------ ##
9186 ## Report this to bug-autoconf@gnu.org. ##
9187 ## ------------------------------------ ##
9188 _ASBOX
9190 sed "s/^/$as_me: WARNING: /" >&2
9192 esac
9193 echo "$as_me:$LINENO: checking for jerror.h" >&5
9194 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9195 if test "${ac_cv_header_jerror_h+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198 ac_cv_header_jerror_h=$ac_header_preproc
9200 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9201 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9204 if test $ac_cv_header_jerror_h = yes; then
9205 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9206 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 ac_check_lib_save_LIBS=$LIBS
9211 LIBS="-ljpeg $LIBS"
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9214 /* confdefs.h. */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 #ifdef __cplusplus
9222 extern "C"
9223 #endif
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char jpeg_destroy_compress ();
9228 main ()
9230 jpeg_destroy_compress ();
9232 return 0;
9234 _ACEOF
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9238 ac_status=$?
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9248 else
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9258 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9259 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9260 HAVE_JPEG=yes
9269 if test "${HAVE_JPEG}" = "yes"; then
9270 cat >>confdefs.h <<\_ACEOF
9271 #define HAVE_JPEG 1
9272 _ACEOF
9274 cat >conftest.$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9276 /* confdefs.h. */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <jpeglib.h>
9282 version=JPEG_LIB_VERSION
9284 _ACEOF
9285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9286 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9287 cat >>confdefs.h <<\_ACEOF
9288 #define HAVE_JPEG 1
9289 _ACEOF
9291 else
9292 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9293 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9294 HAVE_JPEG=no
9296 rm -f conftest*
9301 ### Use -lpng if available, unless `--with-png=no'.
9302 HAVE_PNG=no
9303 if test "${HAVE_X11}" = "yes"; then
9304 if test "${with_png}" != "no"; then
9305 if test "${ac_cv_header_png_h+set}" = set; then
9306 echo "$as_me:$LINENO: checking for png.h" >&5
9307 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9308 if test "${ac_cv_header_png_h+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9312 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9313 else
9314 # Is the header compilable?
9315 echo "$as_me:$LINENO: checking png.h usability" >&5
9316 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9317 cat >conftest.$ac_ext <<_ACEOF
9318 #line $LINENO "configure"
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 #include <png.h>
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>&5
9330 ac_status=$?
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -s conftest.$ac_objext'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; }; then
9339 ac_header_compiler=yes
9340 else
9341 echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9344 ac_header_compiler=no
9346 rm -f conftest.$ac_objext conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6
9350 # Is the header present?
9351 echo "$as_me:$LINENO: checking png.h presence" >&5
9352 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h. */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 #include <png.h>
9361 _ACEOF
9362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } >/dev/null; then
9370 if test -s conftest.err; then
9371 ac_cpp_err=$ac_c_preproc_warn_flag
9372 else
9373 ac_cpp_err=
9375 else
9376 ac_cpp_err=yes
9378 if test -z "$ac_cpp_err"; then
9379 ac_header_preproc=yes
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_header_preproc=no
9386 rm -f conftest.err conftest.$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9388 echo "${ECHO_T}$ac_header_preproc" >&6
9390 # So? What about this header?
9391 case $ac_header_compiler:$ac_header_preproc in
9392 yes:no )
9393 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9394 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9396 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9398 cat <<\_ASBOX
9399 ## ------------------------------------ ##
9400 ## Report this to bug-autoconf@gnu.org. ##
9401 ## ------------------------------------ ##
9402 _ASBOX
9404 sed "s/^/$as_me: WARNING: /" >&2
9406 no:yes )
9407 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9408 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9410 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9414 cat <<\_ASBOX
9415 ## ------------------------------------ ##
9416 ## Report this to bug-autoconf@gnu.org. ##
9417 ## ------------------------------------ ##
9418 _ASBOX
9420 sed "s/^/$as_me: WARNING: /" >&2
9422 esac
9423 echo "$as_me:$LINENO: checking for png.h" >&5
9424 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9425 if test "${ac_cv_header_png_h+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 ac_cv_header_png_h=$ac_header_preproc
9430 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9431 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9434 if test $ac_cv_header_png_h = yes; then
9435 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9436 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9437 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-lpng -lz -lm $LIBS"
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char png_get_channels ();
9458 main ()
9460 png_get_channels ();
9462 return 0;
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest$ac_exeext'
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; }; then
9477 ac_cv_lib_png_png_get_channels=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_png_png_get_channels=no
9484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9485 LIBS=$ac_check_lib_save_LIBS
9487 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9488 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9489 if test $ac_cv_lib_png_png_get_channels = yes; then
9490 HAVE_PNG=yes
9498 if test "${HAVE_PNG}" = "yes"; then
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_PNG 1
9502 _ACEOF
9507 ### Use -ltiff if available, unless `--with-tiff=no'.
9508 HAVE_TIFF=no
9509 if test "${HAVE_X11}" = "yes"; then
9510 if test "${with_tiff}" != "no"; then
9511 if test "${ac_cv_header_tiffio_h+set}" = set; then
9512 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9513 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9514 if test "${ac_cv_header_tiffio_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9518 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9519 else
9520 # Is the header compilable?
9521 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9522 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9523 cat >conftest.$ac_ext <<_ACEOF
9524 #line $LINENO "configure"
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 $ac_includes_default
9531 #include <tiffio.h>
9532 _ACEOF
9533 rm -f conftest.$ac_objext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9535 (eval $ac_compile) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -s conftest.$ac_objext'
9540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541 (eval $ac_try) 2>&5
9542 ac_status=$?
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; }; then
9545 ac_header_compiler=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_header_compiler=no
9552 rm -f conftest.$ac_objext conftest.$ac_ext
9553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9554 echo "${ECHO_T}$ac_header_compiler" >&6
9556 # Is the header present?
9557 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9558 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9560 #line $LINENO "configure"
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9566 #include <tiffio.h>
9567 _ACEOF
9568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } >/dev/null; then
9576 if test -s conftest.err; then
9577 ac_cpp_err=$ac_c_preproc_warn_flag
9578 else
9579 ac_cpp_err=
9581 else
9582 ac_cpp_err=yes
9584 if test -z "$ac_cpp_err"; then
9585 ac_header_preproc=yes
9586 else
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_header_preproc=no
9592 rm -f conftest.err conftest.$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9594 echo "${ECHO_T}$ac_header_preproc" >&6
9596 # So? What about this header?
9597 case $ac_header_compiler:$ac_header_preproc in
9598 yes:no )
9599 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9600 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9601 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9602 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9604 cat <<\_ASBOX
9605 ## ------------------------------------ ##
9606 ## Report this to bug-autoconf@gnu.org. ##
9607 ## ------------------------------------ ##
9608 _ASBOX
9610 sed "s/^/$as_me: WARNING: /" >&2
9612 no:yes )
9613 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9614 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9616 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9618 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9620 cat <<\_ASBOX
9621 ## ------------------------------------ ##
9622 ## Report this to bug-autoconf@gnu.org. ##
9623 ## ------------------------------------ ##
9624 _ASBOX
9626 sed "s/^/$as_me: WARNING: /" >&2
9628 esac
9629 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9630 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_tiffio_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_cv_header_tiffio_h=$ac_header_preproc
9636 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9637 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9640 if test $ac_cv_header_tiffio_h = yes; then
9641 tifflibs="-lz -lm"
9642 # At least one tiff package requires the jpeg library.
9643 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9644 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9645 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9646 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-ltiff $tifflibs $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9659 /* Override any gcc2 internal prototype to avoid an error. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char TIFFGetVersion ();
9667 main ()
9669 TIFFGetVersion ();
9671 return 0;
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_tiff_TIFFGetVersion=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9691 ac_cv_lib_tiff_TIFFGetVersion=no
9693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9697 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9698 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9699 HAVE_TIFF=yes
9707 if test "${HAVE_TIFF}" = "yes"; then
9709 cat >>confdefs.h <<\_ACEOF
9710 #define HAVE_TIFF 1
9711 _ACEOF
9716 ### Use -lgif if available, unless `--with-gif=no'.
9717 HAVE_GIF=no
9718 if test "${HAVE_X11}" = "yes"; then
9719 if test "${with_gif}" != "no"; then
9720 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9721 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9722 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9723 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9727 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9728 else
9729 # Is the header compilable?
9730 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9731 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 $ac_includes_default
9740 #include <gif_lib.h>
9741 _ACEOF
9742 rm -f conftest.$ac_objext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744 (eval $ac_compile) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_header_compiler=yes
9755 else
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_header_compiler=no
9761 rm -f conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9763 echo "${ECHO_T}$ac_header_compiler" >&6
9765 # Is the header present?
9766 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9767 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9770 /* confdefs.h. */
9771 _ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <gif_lib.h>
9776 _ACEOF
9777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } >/dev/null; then
9785 if test -s conftest.err; then
9786 ac_cpp_err=$ac_c_preproc_warn_flag
9787 else
9788 ac_cpp_err=
9790 else
9791 ac_cpp_err=yes
9793 if test -z "$ac_cpp_err"; then
9794 ac_header_preproc=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_header_preproc=no
9801 rm -f conftest.err conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9803 echo "${ECHO_T}$ac_header_preproc" >&6
9805 # So? What about this header?
9806 case $ac_header_compiler:$ac_header_preproc in
9807 yes:no )
9808 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9809 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9811 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9813 cat <<\_ASBOX
9814 ## ------------------------------------ ##
9815 ## Report this to bug-autoconf@gnu.org. ##
9816 ## ------------------------------------ ##
9817 _ASBOX
9819 sed "s/^/$as_me: WARNING: /" >&2
9821 no:yes )
9822 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9823 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9825 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9827 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9829 cat <<\_ASBOX
9830 ## ------------------------------------ ##
9831 ## Report this to bug-autoconf@gnu.org. ##
9832 ## ------------------------------------ ##
9833 _ASBOX
9835 sed "s/^/$as_me: WARNING: /" >&2
9837 esac
9838 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9839 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9840 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 ac_cv_header_gif_lib_h=$ac_header_preproc
9845 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9846 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9849 if test $ac_cv_header_gif_lib_h = yes; then
9850 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9851 # Earlier versions can crash Emacs.
9852 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9853 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9854 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 ac_check_lib_save_LIBS=$LIBS
9858 LIBS="-lungif $LIBS"
9859 cat >conftest.$ac_ext <<_ACEOF
9860 #line $LINENO "configure"
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9867 /* Override any gcc2 internal prototype to avoid an error. */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */
9873 char EGifPutExtensionLast ();
9875 main ()
9877 EGifPutExtensionLast ();
9879 return 0;
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9884 (eval $ac_link) 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
9888 { ac_try='test -s conftest$ac_exeext'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; }; then
9894 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9895 else
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_cv_lib_ungif_EGifPutExtensionLast=no
9901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9905 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9906 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9907 HAVE_GIF=yes
9915 if test "${HAVE_GIF}" = "yes"; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_GIF 1
9919 _ACEOF
9924 ### Use Mac OS X Carbon API to implement GUI.
9925 HAVE_CARBON=no
9926 if test "${with_carbon}" != "no"; then
9927 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9928 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9929 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9930 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9934 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9935 else
9936 # Is the header compilable?
9937 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9938 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 $ac_includes_default
9947 #include <Carbon/Carbon.h>
9948 _ACEOF
9949 rm -f conftest.$ac_objext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>&5
9952 ac_status=$?
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -s conftest.$ac_objext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957 (eval $ac_try) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_header_compiler=yes
9962 else
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_header_compiler=no
9968 rm -f conftest.$ac_objext conftest.$ac_ext
9969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9970 echo "${ECHO_T}$ac_header_compiler" >&6
9972 # Is the header present?
9973 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9974 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9977 /* confdefs.h. */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 #include <Carbon/Carbon.h>
9983 _ACEOF
9984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } >/dev/null; then
9992 if test -s conftest.err; then
9993 ac_cpp_err=$ac_c_preproc_warn_flag
9994 else
9995 ac_cpp_err=
9997 else
9998 ac_cpp_err=yes
10000 if test -z "$ac_cpp_err"; then
10001 ac_header_preproc=yes
10002 else
10003 echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10006 ac_header_preproc=no
10008 rm -f conftest.err conftest.$ac_ext
10009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10010 echo "${ECHO_T}$ac_header_preproc" >&6
10012 # So? What about this header?
10013 case $ac_header_compiler:$ac_header_preproc in
10014 yes:no )
10015 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10016 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10018 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10020 cat <<\_ASBOX
10021 ## ------------------------------------ ##
10022 ## Report this to bug-autoconf@gnu.org. ##
10023 ## ------------------------------------ ##
10024 _ASBOX
10026 sed "s/^/$as_me: WARNING: /" >&2
10028 no:yes )
10029 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10030 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10031 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10032 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10034 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10036 cat <<\_ASBOX
10037 ## ------------------------------------ ##
10038 ## Report this to bug-autoconf@gnu.org. ##
10039 ## ------------------------------------ ##
10040 _ASBOX
10042 sed "s/^/$as_me: WARNING: /" >&2
10044 esac
10045 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10046 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
10047 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10052 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10053 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
10056 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10057 HAVE_CARBON=yes
10063 if test "${HAVE_CARBON}" = "yes"; then
10065 cat >>confdefs.h <<\_ACEOF
10066 #define HAVE_CARBON 1
10067 _ACEOF
10069 window_system=mac
10070 ## Specify the install directory
10071 carbon_appdir=
10072 if test "${carbon_appdir_x}" != ""; then
10073 case ${carbon_appdir_x} in
10074 y | ye | yes) carbon_appdir=/Applications ;;
10075 * ) carbon_appdir=${carbon_appdir_x} ;;
10076 esac
10078 # We also have mouse menus.
10079 HAVE_MENUS=yes
10082 ### Use session management (-lSM -lICE) if available
10083 HAVE_X_SM=no
10084 if test "${HAVE_X11}" = "yes"; then
10085 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10086 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10087 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10088 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10092 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10093 else
10094 # Is the header compilable?
10095 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10096 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 #include <X11/SM/SMlib.h>
10106 _ACEOF
10107 rm -f conftest.$ac_objext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_header_compiler=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_header_compiler=no
10126 rm -f conftest.$ac_objext conftest.$ac_ext
10127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10128 echo "${ECHO_T}$ac_header_compiler" >&6
10130 # Is the header present?
10131 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10132 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10134 #line $LINENO "configure"
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 #include <X11/SM/SMlib.h>
10141 _ACEOF
10142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } >/dev/null; then
10150 if test -s conftest.err; then
10151 ac_cpp_err=$ac_c_preproc_warn_flag
10152 else
10153 ac_cpp_err=
10155 else
10156 ac_cpp_err=yes
10158 if test -z "$ac_cpp_err"; then
10159 ac_header_preproc=yes
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_header_preproc=no
10166 rm -f conftest.err conftest.$ac_ext
10167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168 echo "${ECHO_T}$ac_header_preproc" >&6
10170 # So? What about this header?
10171 case $ac_header_compiler:$ac_header_preproc in
10172 yes:no )
10173 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10174 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10176 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10178 cat <<\_ASBOX
10179 ## ------------------------------------ ##
10180 ## Report this to bug-autoconf@gnu.org. ##
10181 ## ------------------------------------ ##
10182 _ASBOX
10184 sed "s/^/$as_me: WARNING: /" >&2
10186 no:yes )
10187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
10194 cat <<\_ASBOX
10195 ## ------------------------------------ ##
10196 ## Report this to bug-autoconf@gnu.org. ##
10197 ## ------------------------------------ ##
10198 _ASBOX
10200 sed "s/^/$as_me: WARNING: /" >&2
10202 esac
10203 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10204 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
10205 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
10210 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
10211 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
10214 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
10215 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10216 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
10217 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-lSM $LIBS"
10222 cat >conftest.$ac_ext <<_ACEOF
10223 #line $LINENO "configure"
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 /* Override any gcc2 internal prototype to avoid an error. */
10231 #ifdef __cplusplus
10232 extern "C"
10233 #endif
10234 /* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10236 char SmcOpenConnection ();
10238 main ()
10240 SmcOpenConnection ();
10242 return 0;
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -s conftest$ac_exeext'
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
10257 ac_cv_lib_SM_SmcOpenConnection=yes
10258 else
10259 echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_cv_lib_SM_SmcOpenConnection=no
10264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10268 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
10269 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10270 HAVE_X_SM=yes
10271 else
10272 -lICE
10279 if test "${HAVE_X_SM}" = "yes"; then
10281 cat >>confdefs.h <<\_ACEOF
10282 #define HAVE_X_SM 1
10283 _ACEOF
10285 case "$LIBS" in
10286 *-lSM*) ;;
10287 *) LIBS="-lSM -lICE $LIBS" ;;
10288 esac
10292 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10293 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10294 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10295 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line $LINENO "configure"
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <netdb.h>
10307 main ()
10309 return h_errno;
10311 return 0;
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -s conftest$ac_exeext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 emacs_cv_netdb_declares_h_errno=yes
10327 else
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 emacs_cv_netdb_declares_h_errno=no
10333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10335 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10336 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10337 if test $emacs_cv_netdb_declares_h_errno = yes; then
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_H_ERRNO 1
10341 _ACEOF
10345 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10346 # for constant arguments. Useless!
10347 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10348 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10349 if test "${ac_cv_working_alloca_h+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line $LINENO "configure"
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <alloca.h>
10361 main ()
10363 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h=yes
10381 else
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_working_alloca_h=no
10387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10389 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10390 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10391 if test $ac_cv_working_alloca_h = yes; then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_ALLOCA_H 1
10395 _ACEOF
10399 echo "$as_me:$LINENO: checking for alloca" >&5
10400 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10401 if test "${ac_cv_func_alloca_works+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 #line $LINENO "configure"
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 #ifdef __GNUC__
10412 # define alloca __builtin_alloca
10413 #else
10414 # ifdef _MSC_VER
10415 # include <malloc.h>
10416 # define alloca _alloca
10417 # else
10418 # if HAVE_ALLOCA_H
10419 # include <alloca.h>
10420 # else
10421 # ifdef _AIX
10422 #pragma alloca
10423 # else
10424 # ifndef alloca /* predefined by HP cc +Olibcalls */
10425 char *alloca ();
10426 # endif
10427 # endif
10428 # endif
10429 # endif
10430 #endif
10433 main ()
10435 char *p = (char *) alloca (1);
10437 return 0;
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>&5
10443 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } &&
10446 { ac_try='test -s conftest$ac_exeext'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
10452 ac_cv_func_alloca_works=yes
10453 else
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_cv_func_alloca_works=no
10459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10461 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10464 if test $ac_cv_func_alloca_works = yes; then
10466 cat >>confdefs.h <<\_ACEOF
10467 #define HAVE_ALLOCA 1
10468 _ACEOF
10470 else
10471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10472 # that cause trouble. Some versions do not even contain alloca or
10473 # contain a buggy version. If you still want to use their alloca,
10474 # use ar to extract alloca.o from them instead of compiling alloca.c.
10476 ALLOCA=alloca.$ac_objext
10478 cat >>confdefs.h <<\_ACEOF
10479 #define C_ALLOCA 1
10480 _ACEOF
10483 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10485 if test "${ac_cv_os_cray+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 cat >conftest.$ac_ext <<_ACEOF
10489 #line $LINENO "configure"
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #if defined(CRAY) && ! defined(CRAY2)
10496 webecray
10497 #else
10498 wenotbecray
10499 #endif
10501 _ACEOF
10502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10503 $EGREP "webecray" >/dev/null 2>&1; then
10504 ac_cv_os_cray=yes
10505 else
10506 ac_cv_os_cray=no
10508 rm -f conftest*
10511 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10512 echo "${ECHO_T}$ac_cv_os_cray" >&6
10513 if test $ac_cv_os_cray = yes; then
10514 for ac_func in _getb67 GETB67 getb67; do
10515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10516 echo "$as_me:$LINENO: checking for $ac_func" >&5
10517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10518 if eval "test \"\${$as_ac_var+set}\" = set"; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10523 /* confdefs.h. */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10532 #ifdef __STDC__
10533 # include <limits.h>
10534 #else
10535 # include <assert.h>
10536 #endif
10537 /* Override any gcc2 internal prototype to avoid an error. */
10538 #ifdef __cplusplus
10539 extern "C"
10541 #endif
10542 /* We use char because int might match the return type of a gcc2
10543 builtin and then its argument prototype would still apply. */
10544 char $ac_func ();
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10549 choke me
10550 #else
10551 char (*f) () = $ac_func;
10552 #endif
10553 #ifdef __cplusplus
10555 #endif
10558 main ()
10560 return f != $ac_func;
10562 return 0;
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 eval "$as_ac_var=yes"
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 eval "$as_ac_var=no"
10584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10588 if test `eval echo '${'$as_ac_var'}'` = yes; then
10590 cat >>confdefs.h <<_ACEOF
10591 #define CRAY_STACKSEG_END $ac_func
10592 _ACEOF
10594 break
10597 done
10600 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10601 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10602 if test "${ac_cv_c_stack_direction+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 if test "$cross_compiling" = yes; then
10606 ac_cv_c_stack_direction=0
10607 else
10608 cat >conftest.$ac_ext <<_ACEOF
10609 #line $LINENO "configure"
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10616 find_stack_direction ()
10618 static char *addr = 0;
10619 auto char dummy;
10620 if (addr == 0)
10622 addr = &dummy;
10623 return find_stack_direction ();
10625 else
10626 return (&dummy > addr) ? 1 : -1;
10630 main ()
10632 exit (find_stack_direction () < 0);
10634 _ACEOF
10635 rm -f conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 ac_cv_c_stack_direction=1
10647 else
10648 echo "$as_me: program exited with status $ac_status" >&5
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ( exit $ac_status )
10653 ac_cv_c_stack_direction=-1
10655 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10659 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10661 cat >>confdefs.h <<_ACEOF
10662 #define STACK_DIRECTION $ac_cv_c_stack_direction
10663 _ACEOF
10669 # fmod, logb, and frexp are found in -lm on most systems.
10670 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10672 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10673 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10674 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677 ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-lm $LIBS"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line $LINENO "configure"
10681 /* confdefs.h. */
10682 _ACEOF
10683 cat confdefs.h >>conftest.$ac_ext
10684 cat >>conftest.$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10687 /* Override any gcc2 internal prototype to avoid an error. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 /* We use char because int might match the return type of a gcc2
10692 builtin and then its argument prototype would still apply. */
10693 char sqrt ();
10695 main ()
10697 sqrt ();
10699 return 0;
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704 (eval $ac_link) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -s conftest$ac_exeext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_lib_m_sqrt=yes
10715 else
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10719 ac_cv_lib_m_sqrt=no
10721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10724 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10725 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10726 if test $ac_cv_lib_m_sqrt = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_LIBM 1
10729 _ACEOF
10731 LIBS="-lm $LIBS"
10736 # Check for mail-locking functions in a "mail" library
10738 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10739 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10740 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 ac_check_lib_save_LIBS=$LIBS
10744 LIBS="-lmail $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10753 /* Override any gcc2 internal prototype to avoid an error. */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 /* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */
10759 char maillock ();
10761 main ()
10763 maillock ();
10765 return 0;
10767 _ACEOF
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -s conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_lib_mail_maillock=yes
10781 else
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ac_cv_lib_mail_maillock=no
10787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10791 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10792 if test $ac_cv_lib_mail_maillock = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define HAVE_LIBMAIL 1
10795 _ACEOF
10797 LIBS="-lmail $LIBS"
10802 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10803 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10804 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807 ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-llockfile $LIBS"
10809 cat >conftest.$ac_ext <<_ACEOF
10810 #line $LINENO "configure"
10811 /* confdefs.h. */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10817 /* Override any gcc2 internal prototype to avoid an error. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char maillock ();
10825 main ()
10827 maillock ();
10829 return 0;
10831 _ACEOF
10832 rm -f conftest.$ac_objext conftest$ac_exeext
10833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10834 (eval $ac_link) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -s conftest$ac_exeext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_lib_lockfile_maillock=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 ac_cv_lib_lockfile_maillock=no
10851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10854 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10855 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10856 if test $ac_cv_lib_lockfile_maillock = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define HAVE_LIBLOCKFILE 1
10859 _ACEOF
10861 LIBS="-llockfile $LIBS"
10865 # If we have the shared liblockfile, assume we must use it for mail
10866 # locking (e.g. Debian). If we couldn't link against liblockfile
10867 # (no liblockfile.a installed), ensure that we don't need to.
10868 if test "$ac_cv_lib_lockfile_maillock" = no; then
10869 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10870 set dummy liblockfile.so; ac_word=$2
10871 echo "$as_me:$LINENO: checking for $ac_word" >&5
10872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10873 if test "${ac_cv_prog_liblockfile+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 if test -n "$liblockfile"; then
10877 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10878 else
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10881 for as_dir in $as_dummy
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_liblockfile="yes"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10894 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10897 liblockfile=$ac_cv_prog_liblockfile
10898 if test -n "$liblockfile"; then
10899 echo "$as_me:$LINENO: result: $liblockfile" >&5
10900 echo "${ECHO_T}$liblockfile" >&6
10901 else
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10906 if test $ac_cv_prog_liblockfile = yes; then
10907 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10908 This probably means that movemail could lose mail.
10909 There may be a \`development' package to install containing liblockfile." >&5
10910 echo "$as_me: error: Shared liblockfile found but can't link against it.
10911 This probably means that movemail could lose mail.
10912 There may be a \`development' package to install containing liblockfile." >&2;}
10913 { (exit 1); exit 1; }; }
10914 else
10915 cat >>confdefs.h <<\_ACEOF
10916 #define LIBMAIL -llockfile
10917 _ACEOF
10920 else :
10923 for ac_func in touchlock
10925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10926 echo "$as_me:$LINENO: checking for $ac_func" >&5
10927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10928 if eval "test \"\${$as_ac_var+set}\" = set"; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 else
10931 cat >conftest.$ac_ext <<_ACEOF
10932 #line $LINENO "configure"
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 /* System header to define __stub macros and hopefully few prototypes,
10939 which can conflict with char $ac_func (); below.
10940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941 <limits.h> exists even on freestanding compilers. */
10942 #ifdef __STDC__
10943 # include <limits.h>
10944 #else
10945 # include <assert.h>
10946 #endif
10947 /* Override any gcc2 internal prototype to avoid an error. */
10948 #ifdef __cplusplus
10949 extern "C"
10951 #endif
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char $ac_func ();
10955 /* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 choke me
10960 #else
10961 char (*f) () = $ac_func;
10962 #endif
10963 #ifdef __cplusplus
10965 #endif
10968 main ()
10970 return f != $ac_func;
10972 return 0;
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 eval "$as_ac_var=yes"
10988 else
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 eval "$as_ac_var=no"
10994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10997 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10998 if test `eval echo '${'$as_ac_var'}'` = yes; then
10999 cat >>confdefs.h <<_ACEOF
11000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11001 _ACEOF
11004 done
11007 for ac_header in maillock.h
11009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11011 echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11018 else
11019 # Is the header compilable?
11020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11022 cat >conftest.$ac_ext <<_ACEOF
11023 #line $LINENO "configure"
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11030 #include <$ac_header>
11031 _ACEOF
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 ac_header_compiler=yes
11045 else
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ac_header_compiler=no
11051 rm -f conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11053 echo "${ECHO_T}$ac_header_compiler" >&6
11055 # Is the header present?
11056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 /* confdefs.h. */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 #include <$ac_header>
11066 _ACEOF
11067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 else
11078 ac_cpp_err=
11080 else
11081 ac_cpp_err=yes
11083 if test -z "$ac_cpp_err"; then
11084 ac_header_preproc=yes
11085 else
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_header_preproc=no
11091 rm -f conftest.err conftest.$ac_ext
11092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11093 echo "${ECHO_T}$ac_header_preproc" >&6
11095 # So? What about this header?
11096 case $ac_header_compiler:$ac_header_preproc in
11097 yes:no )
11098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11103 cat <<\_ASBOX
11104 ## ------------------------------------ ##
11105 ## Report this to bug-autoconf@gnu.org. ##
11106 ## ------------------------------------ ##
11107 _ASBOX
11109 sed "s/^/$as_me: WARNING: /" >&2
11111 no:yes )
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11119 cat <<\_ASBOX
11120 ## ------------------------------------ ##
11121 ## Report this to bug-autoconf@gnu.org. ##
11122 ## ------------------------------------ ##
11123 _ASBOX
11125 sed "s/^/$as_me: WARNING: /" >&2
11127 esac
11128 echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 eval "$as_ac_Header=$ac_header_preproc"
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142 _ACEOF
11146 done
11209 for ac_func in gethostname getdomainname dup2 \
11210 rename closedir mkdir rmdir sysinfo \
11211 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11212 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11213 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11214 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11215 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11216 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
11218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11219 echo "$as_me:$LINENO: checking for $ac_func" >&5
11220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11221 if eval "test \"\${$as_ac_var+set}\" = set"; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 cat >conftest.$ac_ext <<_ACEOF
11225 #line $LINENO "configure"
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11235 #ifdef __STDC__
11236 # include <limits.h>
11237 #else
11238 # include <assert.h>
11239 #endif
11240 /* Override any gcc2 internal prototype to avoid an error. */
11241 #ifdef __cplusplus
11242 extern "C"
11244 #endif
11245 /* We use char because int might match the return type of a gcc2
11246 builtin and then its argument prototype would still apply. */
11247 char $ac_func ();
11248 /* The GNU C library defines this for functions which it implements
11249 to always fail with ENOSYS. Some functions are actually named
11250 something starting with __ and the normal name is an alias. */
11251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11252 choke me
11253 #else
11254 char (*f) () = $ac_func;
11255 #endif
11256 #ifdef __cplusplus
11258 #endif
11261 main ()
11263 return f != $ac_func;
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest$ac_exeext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 eval "$as_ac_var=yes"
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 eval "$as_ac_var=no"
11287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 _ACEOF
11297 done
11301 for ac_header in sys/un.h
11303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11305 echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11312 else
11313 # Is the header compilable?
11314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 $ac_includes_default
11324 #include <$ac_header>
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -s conftest.$ac_objext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_header_compiler=yes
11339 else
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_header_compiler=no
11345 rm -f conftest.$ac_objext conftest.$ac_ext
11346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11347 echo "${ECHO_T}$ac_header_compiler" >&6
11349 # Is the header present?
11350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11352 cat >conftest.$ac_ext <<_ACEOF
11353 #line $LINENO "configure"
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <$ac_header>
11360 _ACEOF
11361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } >/dev/null; then
11369 if test -s conftest.err; then
11370 ac_cpp_err=$ac_c_preproc_warn_flag
11371 else
11372 ac_cpp_err=
11374 else
11375 ac_cpp_err=yes
11377 if test -z "$ac_cpp_err"; then
11378 ac_header_preproc=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11385 rm -f conftest.err conftest.$ac_ext
11386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11387 echo "${ECHO_T}$ac_header_preproc" >&6
11389 # So? What about this header?
11390 case $ac_header_compiler:$ac_header_preproc in
11391 yes:no )
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 cat <<\_ASBOX
11398 ## ------------------------------------ ##
11399 ## Report this to bug-autoconf@gnu.org. ##
11400 ## ------------------------------------ ##
11401 _ASBOX
11403 sed "s/^/$as_me: WARNING: /" >&2
11405 no:yes )
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 cat <<\_ASBOX
11414 ## ------------------------------------ ##
11415 ## Report this to bug-autoconf@gnu.org. ##
11416 ## ------------------------------------ ##
11417 _ASBOX
11419 sed "s/^/$as_me: WARNING: /" >&2
11421 esac
11422 echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 eval "$as_ac_Header=$ac_header_preproc"
11429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11434 cat >>confdefs.h <<_ACEOF
11435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 _ACEOF
11440 done
11445 for ac_header in sys/time.h unistd.h
11447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11449 echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11456 else
11457 # Is the header compilable?
11458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 $ac_includes_default
11468 #include <$ac_header>
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_header_compiler=yes
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_header_compiler=no
11489 rm -f conftest.$ac_objext conftest.$ac_ext
11490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11491 echo "${ECHO_T}$ac_header_compiler" >&6
11493 # Is the header present?
11494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11497 #line $LINENO "configure"
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null; then
11513 if test -s conftest.err; then
11514 ac_cpp_err=$ac_c_preproc_warn_flag
11515 else
11516 ac_cpp_err=
11518 else
11519 ac_cpp_err=yes
11521 if test -z "$ac_cpp_err"; then
11522 ac_header_preproc=yes
11523 else
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 ac_header_preproc=no
11529 rm -f conftest.err conftest.$ac_ext
11530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11531 echo "${ECHO_T}$ac_header_preproc" >&6
11533 # So? What about this header?
11534 case $ac_header_compiler:$ac_header_preproc in
11535 yes:no )
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 cat <<\_ASBOX
11542 ## ------------------------------------ ##
11543 ## Report this to bug-autoconf@gnu.org. ##
11544 ## ------------------------------------ ##
11545 _ASBOX
11547 sed "s/^/$as_me: WARNING: /" >&2
11549 no:yes )
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11557 cat <<\_ASBOX
11558 ## ------------------------------------ ##
11559 ## Report this to bug-autoconf@gnu.org. ##
11560 ## ------------------------------------ ##
11561 _ASBOX
11563 sed "s/^/$as_me: WARNING: /" >&2
11565 esac
11566 echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 eval "$as_ac_Header=$ac_header_preproc"
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11580 _ACEOF
11584 done
11587 for ac_func in alarm
11589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11590 echo "$as_me:$LINENO: checking for $ac_func" >&5
11591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11592 if eval "test \"\${$as_ac_var+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 cat >conftest.$ac_ext <<_ACEOF
11596 #line $LINENO "configure"
11597 /* confdefs.h. */
11598 _ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611 /* Override any gcc2 internal prototype to avoid an error. */
11612 #ifdef __cplusplus
11613 extern "C"
11615 #endif
11616 /* We use char because int might match the return type of a gcc2
11617 builtin and then its argument prototype would still apply. */
11618 char $ac_func ();
11619 /* The GNU C library defines this for functions which it implements
11620 to always fail with ENOSYS. Some functions are actually named
11621 something starting with __ and the normal name is an alias. */
11622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11623 choke me
11624 #else
11625 char (*f) () = $ac_func;
11626 #endif
11627 #ifdef __cplusplus
11629 #endif
11632 main ()
11634 return f != $ac_func;
11636 return 0;
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 eval "$as_ac_var=yes"
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 eval "$as_ac_var=no"
11658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11662 if test `eval echo '${'$as_ac_var'}'` = yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11665 _ACEOF
11668 done
11670 echo "$as_me:$LINENO: checking for working mktime" >&5
11671 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11672 if test "${ac_cv_func_working_mktime+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675 if test "$cross_compiling" = yes; then
11676 ac_cv_func_working_mktime=no
11677 else
11678 cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 /* Test program from Paul Eggert and Tony Leneis. */
11686 #if TIME_WITH_SYS_TIME
11687 # include <sys/time.h>
11688 # include <time.h>
11689 #else
11690 # if HAVE_SYS_TIME_H
11691 # include <sys/time.h>
11692 # else
11693 # include <time.h>
11694 # endif
11695 #endif
11697 #if HAVE_UNISTD_H
11698 # include <unistd.h>
11699 #endif
11701 #if !HAVE_ALARM
11702 # define alarm(X) /* empty */
11703 #endif
11705 /* Work around redefinition to rpl_putenv by other config tests. */
11706 #undef putenv
11708 static time_t time_t_max;
11710 /* Values we'll use to set the TZ environment variable. */
11711 static const char *const tz_strings[] = {
11712 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11713 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11715 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11717 /* Fail if mktime fails to convert a date in the spring-forward gap.
11718 Based on a problem report from Andreas Jaeger. */
11719 static void
11720 spring_forward_gap ()
11722 /* glibc (up to about 1998-10-07) failed this test. */
11723 struct tm tm;
11725 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11726 instead of "TZ=America/Vancouver" in order to detect the bug even
11727 on systems that don't support the Olson extension, or don't have the
11728 full zoneinfo tables installed. */
11729 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11731 tm.tm_year = 98;
11732 tm.tm_mon = 3;
11733 tm.tm_mday = 5;
11734 tm.tm_hour = 2;
11735 tm.tm_min = 0;
11736 tm.tm_sec = 0;
11737 tm.tm_isdst = -1;
11738 if (mktime (&tm) == (time_t)-1)
11739 exit (1);
11742 static void
11743 mktime_test (now)
11744 time_t now;
11746 struct tm *lt;
11747 if ((lt = localtime (&now)) && mktime (lt) != now)
11748 exit (1);
11749 now = time_t_max - now;
11750 if ((lt = localtime (&now)) && mktime (lt) != now)
11751 exit (1);
11754 static void
11755 irix_6_4_bug ()
11757 /* Based on code from Ariel Faigon. */
11758 struct tm tm;
11759 tm.tm_year = 96;
11760 tm.tm_mon = 3;
11761 tm.tm_mday = 0;
11762 tm.tm_hour = 0;
11763 tm.tm_min = 0;
11764 tm.tm_sec = 0;
11765 tm.tm_isdst = -1;
11766 mktime (&tm);
11767 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11768 exit (1);
11771 static void
11772 bigtime_test (j)
11773 int j;
11775 struct tm tm;
11776 time_t now;
11777 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11778 now = mktime (&tm);
11779 if (now != (time_t) -1)
11781 struct tm *lt = localtime (&now);
11782 if (! (lt
11783 && lt->tm_year == tm.tm_year
11784 && lt->tm_mon == tm.tm_mon
11785 && lt->tm_mday == tm.tm_mday
11786 && lt->tm_hour == tm.tm_hour
11787 && lt->tm_min == tm.tm_min
11788 && lt->tm_sec == tm.tm_sec
11789 && lt->tm_yday == tm.tm_yday
11790 && lt->tm_wday == tm.tm_wday
11791 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11792 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11793 exit (1);
11798 main ()
11800 time_t t, delta;
11801 int i, j;
11803 /* This test makes some buggy mktime implementations loop.
11804 Give up after 60 seconds; a mktime slower than that
11805 isn't worth using anyway. */
11806 alarm (60);
11808 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11809 continue;
11810 time_t_max--;
11811 delta = time_t_max / 997; /* a suitable prime number */
11812 for (i = 0; i < N_STRINGS; i++)
11814 if (tz_strings[i])
11815 putenv (tz_strings[i]);
11817 for (t = 0; t <= time_t_max - delta; t += delta)
11818 mktime_test (t);
11819 mktime_test ((time_t) 60 * 60);
11820 mktime_test ((time_t) 60 * 60 * 24);
11822 for (j = 1; 0 < j; j *= 2)
11823 bigtime_test (j);
11824 bigtime_test (j - 1);
11826 irix_6_4_bug ();
11827 spring_forward_gap ();
11828 exit (0);
11830 _ACEOF
11831 rm -f conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>&5
11834 ac_status=$?
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
11842 ac_cv_func_working_mktime=yes
11843 else
11844 echo "$as_me: program exited with status $ac_status" >&5
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ( exit $ac_status )
11849 ac_cv_func_working_mktime=no
11851 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11855 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11856 if test $ac_cv_func_working_mktime = no; then
11857 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11860 if test "$ac_cv_func_working_mktime" = no; then
11862 cat >>confdefs.h <<\_ACEOF
11863 #define BROKEN_MKTIME 1
11864 _ACEOF
11868 ac_have_func=no # yes means we've found a way to get the load average.
11870 # Make sure getloadavg.c is where it belongs, at configure-time.
11871 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11872 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11873 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11874 { (exit 1); exit 1; }; }
11876 ac_save_LIBS=$LIBS
11878 # Check for getloadavg, but be sure not to touch the cache variable.
11879 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11880 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11881 if test "${ac_cv_func_getloadavg+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char getloadavg (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11895 #ifdef __STDC__
11896 # include <limits.h>
11897 #else
11898 # include <assert.h>
11899 #endif
11900 /* Override any gcc2 internal prototype to avoid an error. */
11901 #ifdef __cplusplus
11902 extern "C"
11904 #endif
11905 /* We use char because int might match the return type of a gcc2
11906 builtin and then its argument prototype would still apply. */
11907 char getloadavg ();
11908 /* The GNU C library defines this for functions which it implements
11909 to always fail with ENOSYS. Some functions are actually named
11910 something starting with __ and the normal name is an alias. */
11911 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11912 choke me
11913 #else
11914 char (*f) () = getloadavg;
11915 #endif
11916 #ifdef __cplusplus
11918 #endif
11921 main ()
11923 return f != getloadavg;
11925 return 0;
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_func_getloadavg=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_cv_func_getloadavg=no
11947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11949 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11950 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11951 if test $ac_cv_func_getloadavg = yes; then
11952 exit 0
11953 else
11954 exit 1
11956 ) && ac_have_func=yes
11958 # On HPUX9, an unprivileged user can get load averages through this function.
11960 for ac_func in pstat_getdynamic
11962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11965 if eval "test \"\${$as_ac_var+set}\" = set"; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11979 #ifdef __STDC__
11980 # include <limits.h>
11981 #else
11982 # include <assert.h>
11983 #endif
11984 /* Override any gcc2 internal prototype to avoid an error. */
11985 #ifdef __cplusplus
11986 extern "C"
11988 #endif
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char $ac_func ();
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11996 choke me
11997 #else
11998 char (*f) () = $ac_func;
11999 #endif
12000 #ifdef __cplusplus
12002 #endif
12005 main ()
12007 return f != $ac_func;
12009 return 0;
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
12018 { ac_try='test -s conftest$ac_exeext'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 eval "$as_ac_var=yes"
12025 else
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038 _ACEOF
12041 done
12044 # Solaris has libkstat which does not require root.
12046 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
12047 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
12048 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lkstat $LIBS"
12053 cat >conftest.$ac_ext <<_ACEOF
12054 #line $LINENO "configure"
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 /* Override any gcc2 internal prototype to avoid an error. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12067 char kstat_open ();
12069 main ()
12071 kstat_open ();
12073 return 0;
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078 (eval $ac_link) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_lib_kstat_kstat_open=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_lib_kstat_kstat_open=no
12095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12098 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12099 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12100 if test $ac_cv_lib_kstat_kstat_open = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_LIBKSTAT 1
12103 _ACEOF
12105 LIBS="-lkstat $LIBS"
12109 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12111 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12112 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12113 # to get the right answer into the cache.
12114 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12115 if test $ac_have_func = no; then
12116 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12117 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12118 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lelf $LIBS"
12123 cat >conftest.$ac_ext <<_ACEOF
12124 #line $LINENO "configure"
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12131 /* Override any gcc2 internal prototype to avoid an error. */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 /* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12137 char elf_begin ();
12139 main ()
12141 elf_begin ();
12143 return 0;
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12148 (eval $ac_link) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -s conftest$ac_exeext'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_cv_lib_elf_elf_begin=yes
12159 else
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_cv_lib_elf_elf_begin=no
12165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12168 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12169 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12170 if test $ac_cv_lib_elf_elf_begin = yes; then
12171 LIBS="-lelf $LIBS"
12175 if test $ac_have_func = no; then
12176 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12177 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12178 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 ac_check_lib_save_LIBS=$LIBS
12182 LIBS="-lkvm $LIBS"
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 /* confdefs.h. */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any gcc2 internal prototype to avoid an error. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char kvm_open ();
12199 main ()
12201 kvm_open ();
12203 return 0;
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -s conftest$ac_exeext'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 ac_cv_lib_kvm_kvm_open=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_lib_kvm_kvm_open=no
12225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12228 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12229 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12230 if test $ac_cv_lib_kvm_kvm_open = yes; then
12231 LIBS="-lkvm $LIBS"
12234 # Check for the 4.4BSD definition of getloadavg.
12235 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12236 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12237 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240 ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-lutil $LIBS"
12242 cat >conftest.$ac_ext <<_ACEOF
12243 #line $LINENO "configure"
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 /* Override any gcc2 internal prototype to avoid an error. */
12251 #ifdef __cplusplus
12252 extern "C"
12253 #endif
12254 /* We use char because int might match the return type of a gcc2
12255 builtin and then its argument prototype would still apply. */
12256 char getloadavg ();
12258 main ()
12260 getloadavg ();
12262 return 0;
12264 _ACEOF
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12267 (eval $ac_link) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -s conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_cv_lib_util_getloadavg=yes
12278 else
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12282 ac_cv_lib_util_getloadavg=no
12284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12287 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12288 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12289 if test $ac_cv_lib_util_getloadavg = yes; then
12290 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12295 if test $ac_have_func = no; then
12296 # There is a commonly available library for RS/6000 AIX.
12297 # Since it is not a standard part of AIX, it might be installed locally.
12298 ac_getloadavg_LIBS=$LIBS
12299 LIBS="-L/usr/local/lib $LIBS"
12300 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12301 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12302 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lgetloadavg $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 #line $LINENO "configure"
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char getloadavg ();
12323 main ()
12325 getloadavg ();
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -s conftest$ac_exeext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_lib_getloadavg_getloadavg=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_cv_lib_getloadavg_getloadavg=no
12349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12352 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12353 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12354 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12355 LIBS="-lgetloadavg $LIBS"
12356 else
12357 LIBS=$ac_getloadavg_LIBS
12362 # Make sure it is really in the library, if we think we found it,
12363 # otherwise set up the replacement function.
12365 for ac_func in getloadavg
12367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12368 echo "$as_me:$LINENO: checking for $ac_func" >&5
12369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12370 if eval "test \"\${$as_ac_var+set}\" = set"; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373 cat >conftest.$ac_ext <<_ACEOF
12374 #line $LINENO "configure"
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12384 #ifdef __STDC__
12385 # include <limits.h>
12386 #else
12387 # include <assert.h>
12388 #endif
12389 /* Override any gcc2 internal prototype to avoid an error. */
12390 #ifdef __cplusplus
12391 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char $ac_func ();
12397 /* The GNU C library defines this for functions which it implements
12398 to always fail with ENOSYS. Some functions are actually named
12399 something starting with __ and the normal name is an alias. */
12400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12401 choke me
12402 #else
12403 char (*f) () = $ac_func;
12404 #endif
12405 #ifdef __cplusplus
12407 #endif
12410 main ()
12412 return f != $ac_func;
12414 return 0;
12416 _ACEOF
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 eval "$as_ac_var=yes"
12430 else
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 eval "$as_ac_var=no"
12436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12440 if test `eval echo '${'$as_ac_var'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12443 _ACEOF
12445 else
12446 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12448 cat >>confdefs.h <<\_ACEOF
12449 #define C_GETLOADAVG 1
12450 _ACEOF
12452 # Figure out what our getloadavg.c needs.
12453 ac_have_func=no
12454 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12455 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12456 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12457 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12461 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12462 else
12463 # Is the header compilable?
12464 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12465 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 $ac_includes_default
12474 #include <sys/dg_sys_info.h>
12475 _ACEOF
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_header_compiler=yes
12489 else
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_compiler=no
12495 rm -f conftest.$ac_objext conftest.$ac_ext
12496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12497 echo "${ECHO_T}$ac_header_compiler" >&6
12499 # Is the header present?
12500 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12501 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12503 #line $LINENO "configure"
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #include <sys/dg_sys_info.h>
12510 _ACEOF
12511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } >/dev/null; then
12519 if test -s conftest.err; then
12520 ac_cpp_err=$ac_c_preproc_warn_flag
12521 else
12522 ac_cpp_err=
12524 else
12525 ac_cpp_err=yes
12527 if test -z "$ac_cpp_err"; then
12528 ac_header_preproc=yes
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_header_preproc=no
12535 rm -f conftest.err conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12537 echo "${ECHO_T}$ac_header_preproc" >&6
12539 # So? What about this header?
12540 case $ac_header_compiler:$ac_header_preproc in
12541 yes:no )
12542 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12543 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12544 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12545 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12547 cat <<\_ASBOX
12548 ## ------------------------------------ ##
12549 ## Report this to bug-autoconf@gnu.org. ##
12550 ## ------------------------------------ ##
12551 _ASBOX
12553 sed "s/^/$as_me: WARNING: /" >&2
12555 no:yes )
12556 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12557 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12559 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12561 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12563 cat <<\_ASBOX
12564 ## ------------------------------------ ##
12565 ## Report this to bug-autoconf@gnu.org. ##
12566 ## ------------------------------------ ##
12567 _ASBOX
12569 sed "s/^/$as_me: WARNING: /" >&2
12571 esac
12572 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12573 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12574 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
12579 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12580 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12583 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12584 ac_have_func=yes
12586 cat >>confdefs.h <<\_ACEOF
12587 #define DGUX 1
12588 _ACEOF
12591 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12592 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12593 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 ac_check_lib_save_LIBS=$LIBS
12597 LIBS="-ldgc $LIBS"
12598 cat >conftest.$ac_ext <<_ACEOF
12599 #line $LINENO "configure"
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any gcc2 internal prototype to avoid an error. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612 char dg_sys_info ();
12614 main ()
12616 dg_sys_info ();
12618 return 0;
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_lib_dgc_dg_sys_info=yes
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12638 ac_cv_lib_dgc_dg_sys_info=no
12640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12643 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12644 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12645 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12646 cat >>confdefs.h <<_ACEOF
12647 #define HAVE_LIBDGC 1
12648 _ACEOF
12650 LIBS="-ldgc $LIBS"
12658 if test "${ac_cv_header_locale_h+set}" = set; then
12659 echo "$as_me:$LINENO: checking for locale.h" >&5
12660 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12661 if test "${ac_cv_header_locale_h+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12665 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12666 else
12667 # Is the header compilable?
12668 echo "$as_me:$LINENO: checking locale.h usability" >&5
12669 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12670 cat >conftest.$ac_ext <<_ACEOF
12671 #line $LINENO "configure"
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 #include <locale.h>
12679 _ACEOF
12680 rm -f conftest.$ac_objext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } &&
12686 { ac_try='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_header_compiler=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 ac_header_compiler=no
12699 rm -f conftest.$ac_objext conftest.$ac_ext
12700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12701 echo "${ECHO_T}$ac_header_compiler" >&6
12703 # Is the header present?
12704 echo "$as_me:$LINENO: checking locale.h presence" >&5
12705 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12707 #line $LINENO "configure"
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <locale.h>
12714 _ACEOF
12715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_c_preproc_warn_flag
12725 else
12726 ac_cpp_err=
12728 else
12729 ac_cpp_err=yes
12731 if test -z "$ac_cpp_err"; then
12732 ac_header_preproc=yes
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_header_preproc=no
12739 rm -f conftest.err conftest.$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 echo "${ECHO_T}$ac_header_preproc" >&6
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc in
12745 yes:no )
12746 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12749 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12751 cat <<\_ASBOX
12752 ## ------------------------------------ ##
12753 ## Report this to bug-autoconf@gnu.org. ##
12754 ## ------------------------------------ ##
12755 _ASBOX
12757 sed "s/^/$as_me: WARNING: /" >&2
12759 no:yes )
12760 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12761 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12763 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12765 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12767 cat <<\_ASBOX
12768 ## ------------------------------------ ##
12769 ## Report this to bug-autoconf@gnu.org. ##
12770 ## ------------------------------------ ##
12771 _ASBOX
12773 sed "s/^/$as_me: WARNING: /" >&2
12775 esac
12776 echo "$as_me:$LINENO: checking for locale.h" >&5
12777 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12778 if test "${ac_cv_header_locale_h+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781 ac_cv_header_locale_h=$ac_header_preproc
12783 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12784 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12790 for ac_func in setlocale
12792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12793 echo "$as_me:$LINENO: checking for $ac_func" >&5
12794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12795 if eval "test \"\${$as_ac_var+set}\" = set"; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 cat >conftest.$ac_ext <<_ACEOF
12799 #line $LINENO "configure"
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 /* System header to define __stub macros and hopefully few prototypes,
12806 which can conflict with char $ac_func (); below.
12807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12808 <limits.h> exists even on freestanding compilers. */
12809 #ifdef __STDC__
12810 # include <limits.h>
12811 #else
12812 # include <assert.h>
12813 #endif
12814 /* Override any gcc2 internal prototype to avoid an error. */
12815 #ifdef __cplusplus
12816 extern "C"
12818 #endif
12819 /* We use char because int might match the return type of a gcc2
12820 builtin and then its argument prototype would still apply. */
12821 char $ac_func ();
12822 /* The GNU C library defines this for functions which it implements
12823 to always fail with ENOSYS. Some functions are actually named
12824 something starting with __ and the normal name is an alias. */
12825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12826 choke me
12827 #else
12828 char (*f) () = $ac_func;
12829 #endif
12830 #ifdef __cplusplus
12832 #endif
12835 main ()
12837 return f != $ac_func;
12839 return 0;
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -s conftest$ac_exeext'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 eval "$as_ac_var=yes"
12855 else
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 eval "$as_ac_var=no"
12861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12865 if test `eval echo '${'$as_ac_var'}'` = yes; then
12866 cat >>confdefs.h <<_ACEOF
12867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12868 _ACEOF
12871 done
12874 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12875 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12876 # Irix 4.0.5F has the header but not the library.
12877 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12878 ac_have_func=yes
12880 cat >>confdefs.h <<\_ACEOF
12881 #define SVR4 1
12882 _ACEOF
12886 if test $ac_have_func = no; then
12887 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12888 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12889 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12890 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12894 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12895 else
12896 # Is the header compilable?
12897 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12898 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12899 cat >conftest.$ac_ext <<_ACEOF
12900 #line $LINENO "configure"
12901 /* confdefs.h. */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 $ac_includes_default
12907 #include <inq_stats/cpustats.h>
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911 (eval $ac_compile) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_header_compiler=yes
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12926 ac_header_compiler=no
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12930 echo "${ECHO_T}$ac_header_compiler" >&6
12932 # Is the header present?
12933 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12934 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12935 cat >conftest.$ac_ext <<_ACEOF
12936 #line $LINENO "configure"
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <inq_stats/cpustats.h>
12943 _ACEOF
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
12954 else
12955 ac_cpp_err=
12957 else
12958 ac_cpp_err=yes
12960 if test -z "$ac_cpp_err"; then
12961 ac_header_preproc=yes
12962 else
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 ac_header_preproc=no
12968 rm -f conftest.err conftest.$ac_ext
12969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12970 echo "${ECHO_T}$ac_header_preproc" >&6
12972 # So? What about this header?
12973 case $ac_header_compiler:$ac_header_preproc in
12974 yes:no )
12975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12976 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12978 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12980 cat <<\_ASBOX
12981 ## ------------------------------------ ##
12982 ## Report this to bug-autoconf@gnu.org. ##
12983 ## ------------------------------------ ##
12984 _ASBOX
12986 sed "s/^/$as_me: WARNING: /" >&2
12988 no:yes )
12989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12990 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12992 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12994 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12996 cat <<\_ASBOX
12997 ## ------------------------------------ ##
12998 ## Report this to bug-autoconf@gnu.org. ##
12999 ## ------------------------------------ ##
13000 _ASBOX
13002 sed "s/^/$as_me: WARNING: /" >&2
13004 esac
13005 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13006 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13007 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
13012 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13013 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13016 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13017 ac_have_func=yes
13019 cat >>confdefs.h <<\_ACEOF
13020 #define UMAX 1
13021 _ACEOF
13024 cat >>confdefs.h <<\_ACEOF
13025 #define UMAX4_3 1
13026 _ACEOF
13033 if test $ac_have_func = no; then
13034 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13035 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13036 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13037 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13041 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13042 else
13043 # Is the header compilable?
13044 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13045 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13046 cat >conftest.$ac_ext <<_ACEOF
13047 #line $LINENO "configure"
13048 /* confdefs.h. */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 #include <sys/cpustats.h>
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest.$ac_objext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 ac_header_compiler=yes
13069 else
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_header_compiler=no
13075 rm -f conftest.$ac_objext conftest.$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13077 echo "${ECHO_T}$ac_header_compiler" >&6
13079 # Is the header present?
13080 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13081 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13082 cat >conftest.$ac_ext <<_ACEOF
13083 #line $LINENO "configure"
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 #include <sys/cpustats.h>
13090 _ACEOF
13091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 ac_status=$?
13094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_c_preproc_warn_flag
13101 else
13102 ac_cpp_err=
13104 else
13105 ac_cpp_err=yes
13107 if test -z "$ac_cpp_err"; then
13108 ac_header_preproc=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ac_header_preproc=no
13115 rm -f conftest.err conftest.$ac_ext
13116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13117 echo "${ECHO_T}$ac_header_preproc" >&6
13119 # So? What about this header?
13120 case $ac_header_compiler:$ac_header_preproc in
13121 yes:no )
13122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13123 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13125 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13127 cat <<\_ASBOX
13128 ## ------------------------------------ ##
13129 ## Report this to bug-autoconf@gnu.org. ##
13130 ## ------------------------------------ ##
13131 _ASBOX
13133 sed "s/^/$as_me: WARNING: /" >&2
13135 no:yes )
13136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13137 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13139 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13143 cat <<\_ASBOX
13144 ## ------------------------------------ ##
13145 ## Report this to bug-autoconf@gnu.org. ##
13146 ## ------------------------------------ ##
13147 _ASBOX
13149 sed "s/^/$as_me: WARNING: /" >&2
13151 esac
13152 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13153 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13154 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 ac_cv_header_sys_cpustats_h=$ac_header_preproc
13159 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13160 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13163 if test $ac_cv_header_sys_cpustats_h = yes; then
13164 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
13165 #define UMAX 1
13166 _ACEOF
13173 if test $ac_have_func = no; then
13175 for ac_header in mach/mach.h
13177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13179 echo "$as_me:$LINENO: checking for $ac_header" >&5
13180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13186 else
13187 # Is the header compilable?
13188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 /* confdefs.h. */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 $ac_includes_default
13198 #include <$ac_header>
13199 _ACEOF
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_header_compiler=yes
13213 else
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_header_compiler=no
13219 rm -f conftest.$ac_objext conftest.$ac_ext
13220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13221 echo "${ECHO_T}$ac_header_compiler" >&6
13223 # Is the header present?
13224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13226 cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <$ac_header>
13234 _ACEOF
13235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } >/dev/null; then
13243 if test -s conftest.err; then
13244 ac_cpp_err=$ac_c_preproc_warn_flag
13245 else
13246 ac_cpp_err=
13248 else
13249 ac_cpp_err=yes
13251 if test -z "$ac_cpp_err"; then
13252 ac_header_preproc=yes
13253 else
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ac_header_preproc=no
13259 rm -f conftest.err conftest.$ac_ext
13260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13261 echo "${ECHO_T}$ac_header_preproc" >&6
13263 # So? What about this header?
13264 case $ac_header_compiler:$ac_header_preproc in
13265 yes:no )
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13271 cat <<\_ASBOX
13272 ## ------------------------------------ ##
13273 ## Report this to bug-autoconf@gnu.org. ##
13274 ## ------------------------------------ ##
13275 _ASBOX
13277 sed "s/^/$as_me: WARNING: /" >&2
13279 no:yes )
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13287 cat <<\_ASBOX
13288 ## ------------------------------------ ##
13289 ## Report this to bug-autoconf@gnu.org. ##
13290 ## ------------------------------------ ##
13291 _ASBOX
13293 sed "s/^/$as_me: WARNING: /" >&2
13295 esac
13296 echo "$as_me:$LINENO: checking for $ac_header" >&5
13297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301 eval "$as_ac_Header=$ac_header_preproc"
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13308 cat >>confdefs.h <<_ACEOF
13309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13310 _ACEOF
13314 done
13319 for ac_header in nlist.h
13321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo "$as_me:$LINENO: checking for $ac_header" >&5
13324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330 else
13331 # Is the header compilable?
13332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13334 cat >conftest.$ac_ext <<_ACEOF
13335 #line $LINENO "configure"
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 $ac_includes_default
13342 #include <$ac_header>
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346 (eval $ac_compile) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -s conftest.$ac_objext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_header_compiler=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_header_compiler=no
13363 rm -f conftest.$ac_objext conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365 echo "${ECHO_T}$ac_header_compiler" >&6
13367 # Is the header present?
13368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include <$ac_header>
13378 _ACEOF
13379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } >/dev/null; then
13387 if test -s conftest.err; then
13388 ac_cpp_err=$ac_c_preproc_warn_flag
13389 else
13390 ac_cpp_err=
13392 else
13393 ac_cpp_err=yes
13395 if test -z "$ac_cpp_err"; then
13396 ac_header_preproc=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_preproc=no
13403 rm -f conftest.err conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 echo "${ECHO_T}$ac_header_preproc" >&6
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc in
13409 yes:no )
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 cat <<\_ASBOX
13416 ## ------------------------------------ ##
13417 ## Report this to bug-autoconf@gnu.org. ##
13418 ## ------------------------------------ ##
13419 _ASBOX
13421 sed "s/^/$as_me: WARNING: /" >&2
13423 no:yes )
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13431 cat <<\_ASBOX
13432 ## ------------------------------------ ##
13433 ## Report this to bug-autoconf@gnu.org. ##
13434 ## ------------------------------------ ##
13435 _ASBOX
13437 sed "s/^/$as_me: WARNING: /" >&2
13439 esac
13440 echo "$as_me:$LINENO: checking for $ac_header" >&5
13441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445 eval "$as_ac_Header=$ac_header_preproc"
13447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454 _ACEOF
13455 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13456 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13457 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
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 #include <nlist.h>
13470 main ()
13472 static struct nlist ac_aggr;
13473 if (ac_aggr.n_un.n_name)
13474 return 0;
13476 return 0;
13478 _ACEOF
13479 rm -f conftest.$ac_objext
13480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13481 (eval $ac_compile) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13488 ac_status=$?
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_member_struct_nlist_n_un_n_name=yes
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
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 <nlist.h>
13506 main ()
13508 static struct nlist ac_aggr;
13509 if (sizeof ac_aggr.n_un.n_name)
13510 return 0;
13512 return 0;
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_member_struct_nlist_n_un_n_name=yes
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_member_struct_nlist_n_un_n_name=no
13534 rm -f conftest.$ac_objext conftest.$ac_ext
13536 rm -f conftest.$ac_objext conftest.$ac_ext
13538 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13539 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13540 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13544 _ACEOF
13547 cat >>confdefs.h <<\_ACEOF
13548 #define NLIST_NAME_UNION 1
13549 _ACEOF
13556 done
13559 done
13562 # Some definitions of getloadavg require that the program be installed setgid.
13563 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13564 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13565 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line $LINENO "configure"
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13576 #ifdef LDAV_PRIVILEGED
13577 Yowza Am I SETGID yet
13578 #endif
13579 _ACEOF
13580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13581 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
13582 ac_cv_func_getloadavg_setgid=yes
13583 else
13584 ac_cv_func_getloadavg_setgid=no
13586 rm -f conftest*
13589 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13590 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13591 if test $ac_cv_func_getloadavg_setgid = yes; then
13592 NEED_SETGID=true
13594 cat >>confdefs.h <<\_ACEOF
13595 #define GETLOADAVG_PRIVILEGED 1
13596 _ACEOF
13598 else
13599 NEED_SETGID=false
13602 if test $ac_cv_func_getloadavg_setgid = yes; then
13603 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13604 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13605 if test "${ac_cv_group_kmem+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13609 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13610 # If we got an error (system does not support symlinks), try without -L.
13611 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13612 ac_cv_group_kmem=`echo $ac_ls_output \
13613 | sed -ne 's/[ ][ ]*/ /g;
13614 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13615 / /s/.* //;p;'`
13618 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13619 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13620 KMEM_GROUP=$ac_cv_group_kmem
13622 if test "x$ac_save_LIBS" = x; then
13623 GETLOADAVG_LIBS=$LIBS
13624 else
13625 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13627 LIBS=$ac_save_LIBS
13631 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13632 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13633 if test "${ac_cv_sys_largefile_source+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 while :; do
13637 ac_cv_sys_largefile_source=no
13638 cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 /* confdefs.h. */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 #include <stdio.h>
13647 main ()
13649 return !fseeko;
13651 return 0;
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656 (eval $ac_compile) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 break
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #define _LARGEFILE_SOURCE 1
13681 #include <stdio.h>
13683 main ()
13685 return !fseeko;
13687 return 0;
13689 _ACEOF
13690 rm -f conftest.$ac_objext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 ac_cv_sys_largefile_source=1; break
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13708 rm -f conftest.$ac_objext conftest.$ac_ext
13709 break
13710 done
13712 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13713 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13714 if test "$ac_cv_sys_largefile_source" != no; then
13716 cat >>confdefs.h <<_ACEOF
13717 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13718 _ACEOF
13721 rm -f conftest*
13723 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13724 # in glibc 2.1.3, but that breaks too many other things.
13725 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13726 echo "$as_me:$LINENO: checking for fseeko" >&5
13727 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13728 if test "${ac_cv_func_fseeko+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 /* confdefs.h. */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 #include <stdio.h>
13740 main ()
13742 return fseeko && fseeko (stdin, 0, 0);
13744 return 0;
13746 _ACEOF
13747 rm -f conftest.$ac_objext conftest$ac_exeext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749 (eval $ac_link) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_cv_func_fseeko=yes
13760 else
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_cv_func_fseeko=no
13766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13768 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13769 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13770 if test $ac_cv_func_fseeko = yes; then
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_FSEEKO 1
13774 _ACEOF
13779 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13780 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13781 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 # Use it with a single arg.
13785 cat >conftest.$ac_ext <<_ACEOF
13786 #line $LINENO "configure"
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 $ac_includes_default
13794 main ()
13796 getpgrp (0);
13798 return 0;
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_func_getpgrp_void=no
13814 else
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ac_cv_func_getpgrp_void=yes
13820 rm -f conftest.$ac_objext conftest.$ac_ext
13823 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13824 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13825 if test $ac_cv_func_getpgrp_void = yes; then
13827 cat >>confdefs.h <<\_ACEOF
13828 #define GETPGRP_VOID 1
13829 _ACEOF
13834 # UNIX98 PTYs.
13836 for ac_func in grantpt
13838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 echo "$as_me:$LINENO: checking for $ac_func" >&5
13840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13841 if eval "test \"\${$as_ac_var+set}\" = set"; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844 cat >conftest.$ac_ext <<_ACEOF
13845 #line $LINENO "configure"
13846 /* confdefs.h. */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char $ac_func (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13855 #ifdef __STDC__
13856 # include <limits.h>
13857 #else
13858 # include <assert.h>
13859 #endif
13860 /* Override any gcc2 internal prototype to avoid an error. */
13861 #ifdef __cplusplus
13862 extern "C"
13864 #endif
13865 /* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867 char $ac_func ();
13868 /* The GNU C library defines this for functions which it implements
13869 to always fail with ENOSYS. Some functions are actually named
13870 something starting with __ and the normal name is an alias. */
13871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13872 choke me
13873 #else
13874 char (*f) () = $ac_func;
13875 #endif
13876 #ifdef __cplusplus
13878 #endif
13881 main ()
13883 return f != $ac_func;
13885 return 0;
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 eval "$as_ac_var=yes"
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13905 eval "$as_ac_var=no"
13907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13911 if test `eval echo '${'$as_ac_var'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914 _ACEOF
13917 done
13920 # PTY-related GNU extensions.
13922 for ac_func in getpt
13924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13925 echo "$as_me:$LINENO: checking for $ac_func" >&5
13926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13927 if eval "test \"\${$as_ac_var+set}\" = set"; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 cat >conftest.$ac_ext <<_ACEOF
13931 #line $LINENO "configure"
13932 /* confdefs.h. */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 /* System header to define __stub macros and hopefully few prototypes,
13938 which can conflict with char $ac_func (); below.
13939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13940 <limits.h> exists even on freestanding compilers. */
13941 #ifdef __STDC__
13942 # include <limits.h>
13943 #else
13944 # include <assert.h>
13945 #endif
13946 /* Override any gcc2 internal prototype to avoid an error. */
13947 #ifdef __cplusplus
13948 extern "C"
13950 #endif
13951 /* We use char because int might match the return type of a gcc2
13952 builtin and then its argument prototype would still apply. */
13953 char $ac_func ();
13954 /* The GNU C library defines this for functions which it implements
13955 to always fail with ENOSYS. Some functions are actually named
13956 something starting with __ and the normal name is an alias. */
13957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13958 choke me
13959 #else
13960 char (*f) () = $ac_func;
13961 #endif
13962 #ifdef __cplusplus
13964 #endif
13967 main ()
13969 return f != $ac_func;
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 eval "$as_ac_var=yes"
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 eval "$as_ac_var=no"
13993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13997 if test `eval echo '${'$as_ac_var'}'` = yes; then
13998 cat >>confdefs.h <<_ACEOF
13999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14000 _ACEOF
14003 done
14006 # Check this now, so that we will NOT find the above functions in ncurses.
14007 # That is because we have not set up to link ncurses in lib-src.
14008 # It's better to believe a function is not available
14009 # than to expect to find it in ncurses.
14011 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016 ac_check_lib_save_LIBS=$LIBS
14017 LIBS="-lncurses $LIBS"
14018 cat >conftest.$ac_ext <<_ACEOF
14019 #line $LINENO "configure"
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14026 /* Override any gcc2 internal prototype to avoid an error. */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14032 char tparm ();
14034 main ()
14036 tparm ();
14038 return 0;
14040 _ACEOF
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043 (eval $ac_link) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
14053 ac_cv_lib_ncurses_tparm=yes
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 ac_cv_lib_ncurses_tparm=no
14060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14064 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14065 if test $ac_cv_lib_ncurses_tparm = yes; then
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_LIBNCURSES 1
14068 _ACEOF
14070 LIBS="-lncurses $LIBS"
14075 # Do we need the Hesiod library to provide the support routines?
14076 if test "$with_hesiod" = yes ; then
14077 # Don't set $LIBS here -- see comments above.
14078 resolv=no
14079 echo "$as_me:$LINENO: checking for res_send" >&5
14080 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14081 if test "${ac_cv_func_res_send+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 /* confdefs.h. */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 /* System header to define __stub macros and hopefully few prototypes,
14092 which can conflict with char res_send (); below.
14093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14094 <limits.h> exists even on freestanding compilers. */
14095 #ifdef __STDC__
14096 # include <limits.h>
14097 #else
14098 # include <assert.h>
14099 #endif
14100 /* Override any gcc2 internal prototype to avoid an error. */
14101 #ifdef __cplusplus
14102 extern "C"
14104 #endif
14105 /* We use char because int might match the return type of a gcc2
14106 builtin and then its argument prototype would still apply. */
14107 char res_send ();
14108 /* The GNU C library defines this for functions which it implements
14109 to always fail with ENOSYS. Some functions are actually named
14110 something starting with __ and the normal name is an alias. */
14111 #if defined (__stub_res_send) || defined (__stub___res_send)
14112 choke me
14113 #else
14114 char (*f) () = res_send;
14115 #endif
14116 #ifdef __cplusplus
14118 #endif
14121 main ()
14123 return f != res_send;
14125 return 0;
14127 _ACEOF
14128 rm -f conftest.$ac_objext conftest$ac_exeext
14129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_func_res_send=yes
14141 else
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_func_res_send=no
14147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14149 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14150 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14151 if test $ac_cv_func_res_send = yes; then
14153 else
14154 echo "$as_me:$LINENO: checking for __res_send" >&5
14155 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14156 if test "${ac_cv_func___res_send+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 /* confdefs.h. */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 /* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char __res_send (); below.
14168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14169 <limits.h> exists even on freestanding compilers. */
14170 #ifdef __STDC__
14171 # include <limits.h>
14172 #else
14173 # include <assert.h>
14174 #endif
14175 /* Override any gcc2 internal prototype to avoid an error. */
14176 #ifdef __cplusplus
14177 extern "C"
14179 #endif
14180 /* We use char because int might match the return type of a gcc2
14181 builtin and then its argument prototype would still apply. */
14182 char __res_send ();
14183 /* The GNU C library defines this for functions which it implements
14184 to always fail with ENOSYS. Some functions are actually named
14185 something starting with __ and the normal name is an alias. */
14186 #if defined (__stub___res_send) || defined (__stub_____res_send)
14187 choke me
14188 #else
14189 char (*f) () = __res_send;
14190 #endif
14191 #ifdef __cplusplus
14193 #endif
14196 main ()
14198 return f != __res_send;
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_cv_func___res_send=yes
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_func___res_send=no
14222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14224 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14225 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14226 if test $ac_cv_func___res_send = yes; then
14228 else
14229 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14230 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14231 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234 ac_check_lib_save_LIBS=$LIBS
14235 LIBS="-lresolv $LIBS"
14236 cat >conftest.$ac_ext <<_ACEOF
14237 #line $LINENO "configure"
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 /* Override any gcc2 internal prototype to avoid an error. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14250 char res_send ();
14252 main ()
14254 res_send ();
14256 return 0;
14258 _ACEOF
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14261 (eval $ac_link) 2>&5
14262 ac_status=$?
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -s conftest$ac_exeext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_lib_resolv_res_send=yes
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_resolv_res_send=no
14278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14279 LIBS=$ac_check_lib_save_LIBS
14281 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14282 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14283 if test $ac_cv_lib_resolv_res_send = yes; then
14284 resolv=yes
14285 else
14286 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14287 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14288 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lresolv $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 __res_send ();
14309 main ()
14311 __res_send ();
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_resolv___res_send=yes
14329 else
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_lib_resolv___res_send=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_resolv___res_send" >&5
14339 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14340 if test $ac_cv_lib_resolv___res_send = yes; then
14341 resolv=yes
14350 if test "$resolv" = yes ; then
14351 RESOLVLIB=-lresolv
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_LIBRESOLV 1
14355 _ACEOF
14357 else
14358 RESOLVLIB=
14360 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14361 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14362 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 cat >conftest.$ac_ext <<_ACEOF
14366 #line $LINENO "configure"
14367 /* confdefs.h. */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 /* System header to define __stub macros and hopefully few prototypes,
14373 which can conflict with char hes_getmailhost (); below.
14374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14375 <limits.h> exists even on freestanding compilers. */
14376 #ifdef __STDC__
14377 # include <limits.h>
14378 #else
14379 # include <assert.h>
14380 #endif
14381 /* Override any gcc2 internal prototype to avoid an error. */
14382 #ifdef __cplusplus
14383 extern "C"
14385 #endif
14386 /* We use char because int might match the return type of a gcc2
14387 builtin and then its argument prototype would still apply. */
14388 char hes_getmailhost ();
14389 /* The GNU C library defines this for functions which it implements
14390 to always fail with ENOSYS. Some functions are actually named
14391 something starting with __ and the normal name is an alias. */
14392 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14393 choke me
14394 #else
14395 char (*f) () = hes_getmailhost;
14396 #endif
14397 #ifdef __cplusplus
14399 #endif
14402 main ()
14404 return f != hes_getmailhost;
14406 return 0;
14408 _ACEOF
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -s conftest$ac_exeext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 ac_cv_func_hes_getmailhost=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_func_hes_getmailhost=no
14428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14431 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14432 if test $ac_cv_func_hes_getmailhost = yes; then
14434 else
14435 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14436 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14437 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-lhesiod $RESOLVLIB $LIBS"
14442 cat >conftest.$ac_ext <<_ACEOF
14443 #line $LINENO "configure"
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14450 /* Override any gcc2 internal prototype to avoid an error. */
14451 #ifdef __cplusplus
14452 extern "C"
14453 #endif
14454 /* We use char because int might match the return type of a gcc2
14455 builtin and then its argument prototype would still apply. */
14456 char hes_getmailhost ();
14458 main ()
14460 hes_getmailhost ();
14462 return 0;
14464 _ACEOF
14465 rm -f conftest.$ac_objext conftest$ac_exeext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14467 (eval $ac_link) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try='test -s conftest$ac_exeext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_cv_lib_hesiod_hes_getmailhost=yes
14478 else
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_lib_hesiod_hes_getmailhost=no
14484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14485 LIBS=$ac_check_lib_save_LIBS
14487 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14488 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14489 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_LIBHESIOD 1
14493 _ACEOF
14495 else
14503 # These tell us which Kerberos-related libraries to use.
14504 if test "${with_kerberos+set}" = set; then
14506 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14507 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14508 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511 ac_check_lib_save_LIBS=$LIBS
14512 LIBS="-lcom_err $LIBS"
14513 cat >conftest.$ac_ext <<_ACEOF
14514 #line $LINENO "configure"
14515 /* confdefs.h. */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 /* Override any gcc2 internal prototype to avoid an error. */
14522 #ifdef __cplusplus
14523 extern "C"
14524 #endif
14525 /* We use char because int might match the return type of a gcc2
14526 builtin and then its argument prototype would still apply. */
14527 char com_err ();
14529 main ()
14531 com_err ();
14533 return 0;
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14538 (eval $ac_link) 2>&5
14539 ac_status=$?
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14545 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_com_err_com_err=yes
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_cv_lib_com_err_com_err=no
14555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14558 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14559 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14560 if test $ac_cv_lib_com_err_com_err = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define HAVE_LIBCOM_ERR 1
14563 _ACEOF
14565 LIBS="-lcom_err $LIBS"
14570 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14571 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14572 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575 ac_check_lib_save_LIBS=$LIBS
14576 LIBS="-lk5crypto $LIBS"
14577 cat >conftest.$ac_ext <<_ACEOF
14578 #line $LINENO "configure"
14579 /* confdefs.h. */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14585 /* Override any gcc2 internal prototype to avoid an error. */
14586 #ifdef __cplusplus
14587 extern "C"
14588 #endif
14589 /* We use char because int might match the return type of a gcc2
14590 builtin and then its argument prototype would still apply. */
14591 char mit_des_cbc_encrypt ();
14593 main ()
14595 mit_des_cbc_encrypt ();
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>&5
14603 ac_status=$?
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14613 else
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_check_lib_save_LIBS
14622 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14623 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14624 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14625 cat >>confdefs.h <<_ACEOF
14626 #define HAVE_LIBK5CRYPTO 1
14627 _ACEOF
14629 LIBS="-lk5crypto $LIBS"
14634 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14635 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14636 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639 ac_check_lib_save_LIBS=$LIBS
14640 LIBS="-lcrypto $LIBS"
14641 cat >conftest.$ac_ext <<_ACEOF
14642 #line $LINENO "configure"
14643 /* confdefs.h. */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14649 /* Override any gcc2 internal prototype to avoid an error. */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14655 char mit_des_cbc_encrypt ();
14657 main ()
14659 mit_des_cbc_encrypt ();
14661 return 0;
14663 _ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666 (eval $ac_link) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -s conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14684 LIBS=$ac_check_lib_save_LIBS
14686 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14687 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14688 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_LIBCRYPTO 1
14691 _ACEOF
14693 LIBS="-lcrypto $LIBS"
14698 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14699 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14700 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703 ac_check_lib_save_LIBS=$LIBS
14704 LIBS="-lkrb5 $LIBS"
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14713 /* Override any gcc2 internal prototype to avoid an error. */
14714 #ifdef __cplusplus
14715 extern "C"
14716 #endif
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719 char krb5_init_context ();
14721 main ()
14723 krb5_init_context ();
14725 return 0;
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730 (eval $ac_link) 2>&5
14731 ac_status=$?
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -s conftest$ac_exeext'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 ac_cv_lib_krb5_krb5_init_context=yes
14741 else
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14745 ac_cv_lib_krb5_krb5_init_context=no
14747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14751 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14752 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_LIBKRB5 1
14755 _ACEOF
14757 LIBS="-lkrb5 $LIBS"
14761 if test "${with_kerberos5+set}" != set; then
14763 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14764 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14765 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768 ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-ldes425 $LIBS"
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line $LINENO "configure"
14772 /* confdefs.h. */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 /* Override any gcc2 internal prototype to avoid an error. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char des_cbc_encrypt ();
14786 main ()
14788 des_cbc_encrypt ();
14790 return 0;
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_cv_lib_des425_des_cbc_encrypt=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_cv_lib_des425_des_cbc_encrypt=no
14812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14813 LIBS=$ac_check_lib_save_LIBS
14815 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14816 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14817 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_LIBDES425 1
14820 _ACEOF
14822 LIBS="-ldes425 $LIBS"
14824 else
14826 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14827 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14828 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 ac_check_lib_save_LIBS=$LIBS
14832 LIBS="-ldes $LIBS"
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14841 /* Override any gcc2 internal prototype to avoid an error. */
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 /* We use char because int might match the return type of a gcc2
14846 builtin and then its argument prototype would still apply. */
14847 char des_cbc_encrypt ();
14849 main ()
14851 des_cbc_encrypt ();
14853 return 0;
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858 (eval $ac_link) 2>&5
14859 ac_status=$?
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -s conftest$ac_exeext'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_cv_lib_des_des_cbc_encrypt=yes
14869 else
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_cv_lib_des_des_cbc_encrypt=no
14875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14879 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14880 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_LIBDES 1
14883 _ACEOF
14885 LIBS="-ldes $LIBS"
14892 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14893 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14894 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 ac_check_lib_save_LIBS=$LIBS
14898 LIBS="-lkrb4 $LIBS"
14899 cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14907 /* Override any gcc2 internal prototype to avoid an error. */
14908 #ifdef __cplusplus
14909 extern "C"
14910 #endif
14911 /* We use char because int might match the return type of a gcc2
14912 builtin and then its argument prototype would still apply. */
14913 char krb_get_cred ();
14915 main ()
14917 krb_get_cred ();
14919 return 0;
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14924 (eval $ac_link) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -s conftest$ac_exeext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_lib_krb4_krb_get_cred=yes
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_lib_krb4_krb_get_cred=no
14941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_check_lib_save_LIBS
14944 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14945 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14946 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_LIBKRB4 1
14949 _ACEOF
14951 LIBS="-lkrb4 $LIBS"
14953 else
14955 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14956 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14957 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960 ac_check_lib_save_LIBS=$LIBS
14961 LIBS="-lkrb $LIBS"
14962 cat >conftest.$ac_ext <<_ACEOF
14963 #line $LINENO "configure"
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14970 /* Override any gcc2 internal prototype to avoid an error. */
14971 #ifdef __cplusplus
14972 extern "C"
14973 #endif
14974 /* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14976 char krb_get_cred ();
14978 main ()
14980 krb_get_cred ();
14982 return 0;
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_lib_krb_krb_get_cred=yes
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_lib_krb_krb_get_cred=no
15004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_check_lib_save_LIBS
15007 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15008 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15009 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_LIBKRB 1
15012 _ACEOF
15014 LIBS="-lkrb $LIBS"
15022 if test "${with_kerberos5+set}" = set; then
15024 for ac_header in krb5.h
15026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15028 echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15035 else
15036 # Is the header compilable?
15037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15040 #line $LINENO "configure"
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 #include <$ac_header>
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 ac_header_compiler=yes
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_header_compiler=no
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15070 echo "${ECHO_T}$ac_header_compiler" >&6
15072 # Is the header present?
15073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15075 cat >conftest.$ac_ext <<_ACEOF
15076 #line $LINENO "configure"
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <$ac_header>
15083 _ACEOF
15084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } >/dev/null; then
15092 if test -s conftest.err; then
15093 ac_cpp_err=$ac_c_preproc_warn_flag
15094 else
15095 ac_cpp_err=
15097 else
15098 ac_cpp_err=yes
15100 if test -z "$ac_cpp_err"; then
15101 ac_header_preproc=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_preproc=no
15108 rm -f conftest.err conftest.$ac_ext
15109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110 echo "${ECHO_T}$ac_header_preproc" >&6
15112 # So? What about this header?
15113 case $ac_header_compiler:$ac_header_preproc in
15114 yes:no )
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15120 cat <<\_ASBOX
15121 ## ------------------------------------ ##
15122 ## Report this to bug-autoconf@gnu.org. ##
15123 ## ------------------------------------ ##
15124 _ASBOX
15126 sed "s/^/$as_me: WARNING: /" >&2
15128 no:yes )
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15136 cat <<\_ASBOX
15137 ## ------------------------------------ ##
15138 ## Report this to bug-autoconf@gnu.org. ##
15139 ## ------------------------------------ ##
15140 _ASBOX
15142 sed "s/^/$as_me: WARNING: /" >&2
15144 esac
15145 echo "$as_me:$LINENO: checking for $ac_header" >&5
15146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 eval "$as_ac_Header=$ac_header_preproc"
15152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15157 cat >>confdefs.h <<_ACEOF
15158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159 _ACEOF
15163 done
15165 else
15167 for ac_header in des.h
15169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15171 echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15178 else
15179 # Is the header compilable?
15180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15182 cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 $ac_includes_default
15190 #include <$ac_header>
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194 (eval $ac_compile) 2>&5
15195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } &&
15198 { ac_try='test -s conftest.$ac_objext'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_header_compiler=yes
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_compiler=no
15211 rm -f conftest.$ac_objext conftest.$ac_ext
15212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15213 echo "${ECHO_T}$ac_header_compiler" >&6
15215 # Is the header present?
15216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <$ac_header>
15226 _ACEOF
15227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } >/dev/null; then
15235 if test -s conftest.err; then
15236 ac_cpp_err=$ac_c_preproc_warn_flag
15237 else
15238 ac_cpp_err=
15240 else
15241 ac_cpp_err=yes
15243 if test -z "$ac_cpp_err"; then
15244 ac_header_preproc=yes
15245 else
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_header_preproc=no
15251 rm -f conftest.err conftest.$ac_ext
15252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15253 echo "${ECHO_T}$ac_header_preproc" >&6
15255 # So? What about this header?
15256 case $ac_header_compiler:$ac_header_preproc in
15257 yes:no )
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15263 cat <<\_ASBOX
15264 ## ------------------------------------ ##
15265 ## Report this to bug-autoconf@gnu.org. ##
15266 ## ------------------------------------ ##
15267 _ASBOX
15269 sed "s/^/$as_me: WARNING: /" >&2
15271 no:yes )
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15275 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15279 cat <<\_ASBOX
15280 ## ------------------------------------ ##
15281 ## Report this to bug-autoconf@gnu.org. ##
15282 ## ------------------------------------ ##
15283 _ASBOX
15285 sed "s/^/$as_me: WARNING: /" >&2
15287 esac
15288 echo "$as_me:$LINENO: checking for $ac_header" >&5
15289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293 eval "$as_ac_Header=$ac_header_preproc"
15295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15300 cat >>confdefs.h <<_ACEOF
15301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15302 _ACEOF
15304 else
15306 for ac_header in kerberosIV/des.h
15308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15310 echo "$as_me:$LINENO: checking for $ac_header" >&5
15311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15317 else
15318 # Is the header compilable?
15319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15321 cat >conftest.$ac_ext <<_ACEOF
15322 #line $LINENO "configure"
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15329 #include <$ac_header>
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333 (eval $ac_compile) 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_header_compiler=yes
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ac_header_compiler=no
15350 rm -f conftest.$ac_objext conftest.$ac_ext
15351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15352 echo "${ECHO_T}$ac_header_compiler" >&6
15354 # Is the header present?
15355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15357 cat >conftest.$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15359 /* confdefs.h. */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 #include <$ac_header>
15365 _ACEOF
15366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } >/dev/null; then
15374 if test -s conftest.err; then
15375 ac_cpp_err=$ac_c_preproc_warn_flag
15376 else
15377 ac_cpp_err=
15379 else
15380 ac_cpp_err=yes
15382 if test -z "$ac_cpp_err"; then
15383 ac_header_preproc=yes
15384 else
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15388 ac_header_preproc=no
15390 rm -f conftest.err conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392 echo "${ECHO_T}$ac_header_preproc" >&6
15394 # So? What about this header?
15395 case $ac_header_compiler:$ac_header_preproc in
15396 yes:no )
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15402 cat <<\_ASBOX
15403 ## ------------------------------------ ##
15404 ## Report this to bug-autoconf@gnu.org. ##
15405 ## ------------------------------------ ##
15406 _ASBOX
15408 sed "s/^/$as_me: WARNING: /" >&2
15410 no:yes )
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 cat <<\_ASBOX
15419 ## ------------------------------------ ##
15420 ## Report this to bug-autoconf@gnu.org. ##
15421 ## ------------------------------------ ##
15422 _ASBOX
15424 sed "s/^/$as_me: WARNING: /" >&2
15426 esac
15427 echo "$as_me:$LINENO: checking for $ac_header" >&5
15428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15430 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432 eval "$as_ac_Header=$ac_header_preproc"
15434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 _ACEOF
15443 else
15445 for ac_header in kerberos/des.h
15447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15449 echo "$as_me:$LINENO: checking for $ac_header" >&5
15450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15456 else
15457 # Is the header compilable?
15458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15460 cat >conftest.$ac_ext <<_ACEOF
15461 #line $LINENO "configure"
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 $ac_includes_default
15468 #include <$ac_header>
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15472 (eval $ac_compile) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -s conftest.$ac_objext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15479 ac_status=$?
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_header_compiler=yes
15483 else
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_header_compiler=no
15489 rm -f conftest.$ac_objext conftest.$ac_ext
15490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 echo "${ECHO_T}$ac_header_compiler" >&6
15493 # Is the header present?
15494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15496 cat >conftest.$ac_ext <<_ACEOF
15497 #line $LINENO "configure"
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 #include <$ac_header>
15504 _ACEOF
15505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } >/dev/null; then
15513 if test -s conftest.err; then
15514 ac_cpp_err=$ac_c_preproc_warn_flag
15515 else
15516 ac_cpp_err=
15518 else
15519 ac_cpp_err=yes
15521 if test -z "$ac_cpp_err"; then
15522 ac_header_preproc=yes
15523 else
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_header_preproc=no
15529 rm -f conftest.err conftest.$ac_ext
15530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15531 echo "${ECHO_T}$ac_header_preproc" >&6
15533 # So? What about this header?
15534 case $ac_header_compiler:$ac_header_preproc in
15535 yes:no )
15536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15541 cat <<\_ASBOX
15542 ## ------------------------------------ ##
15543 ## Report this to bug-autoconf@gnu.org. ##
15544 ## ------------------------------------ ##
15545 _ASBOX
15547 sed "s/^/$as_me: WARNING: /" >&2
15549 no:yes )
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15557 cat <<\_ASBOX
15558 ## ------------------------------------ ##
15559 ## Report this to bug-autoconf@gnu.org. ##
15560 ## ------------------------------------ ##
15561 _ASBOX
15563 sed "s/^/$as_me: WARNING: /" >&2
15565 esac
15566 echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 eval "$as_ac_Header=$ac_header_preproc"
15573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15578 cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15580 _ACEOF
15584 done
15588 done
15592 done
15595 for ac_header in krb.h
15597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599 echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606 else
15607 # Is the header compilable?
15608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15610 cat >conftest.$ac_ext <<_ACEOF
15611 #line $LINENO "configure"
15612 /* confdefs.h. */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h. */
15617 $ac_includes_default
15618 #include <$ac_header>
15619 _ACEOF
15620 rm -f conftest.$ac_objext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15622 (eval $ac_compile) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -s conftest.$ac_objext'
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; }; then
15632 ac_header_compiler=yes
15633 else
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 ac_header_compiler=no
15639 rm -f conftest.$ac_objext conftest.$ac_ext
15640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15641 echo "${ECHO_T}$ac_header_compiler" >&6
15643 # Is the header present?
15644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <$ac_header>
15654 _ACEOF
15655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } >/dev/null; then
15663 if test -s conftest.err; then
15664 ac_cpp_err=$ac_c_preproc_warn_flag
15665 else
15666 ac_cpp_err=
15668 else
15669 ac_cpp_err=yes
15671 if test -z "$ac_cpp_err"; then
15672 ac_header_preproc=yes
15673 else
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_header_preproc=no
15679 rm -f conftest.err conftest.$ac_ext
15680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681 echo "${ECHO_T}$ac_header_preproc" >&6
15683 # So? What about this header?
15684 case $ac_header_compiler:$ac_header_preproc in
15685 yes:no )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691 cat <<\_ASBOX
15692 ## ------------------------------------ ##
15693 ## Report this to bug-autoconf@gnu.org. ##
15694 ## ------------------------------------ ##
15695 _ASBOX
15697 sed "s/^/$as_me: WARNING: /" >&2
15699 no:yes )
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15707 cat <<\_ASBOX
15708 ## ------------------------------------ ##
15709 ## Report this to bug-autoconf@gnu.org. ##
15710 ## ------------------------------------ ##
15711 _ASBOX
15713 sed "s/^/$as_me: WARNING: /" >&2
15715 esac
15716 echo "$as_me:$LINENO: checking for $ac_header" >&5
15717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721 eval "$as_ac_Header=$ac_header_preproc"
15723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15728 cat >>confdefs.h <<_ACEOF
15729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15730 _ACEOF
15732 else
15734 for ac_header in kerberosIV/krb.h
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745 else
15746 # Is the header compilable?
15747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15750 #line $LINENO "configure"
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 $ac_includes_default
15757 #include <$ac_header>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15761 (eval $ac_compile) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_header_compiler=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 ac_header_compiler=no
15778 rm -f conftest.$ac_objext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15780 echo "${ECHO_T}$ac_header_compiler" >&6
15782 # Is the header present?
15783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15785 cat >conftest.$ac_ext <<_ACEOF
15786 #line $LINENO "configure"
15787 /* confdefs.h. */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 #include <$ac_header>
15793 _ACEOF
15794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } >/dev/null; then
15802 if test -s conftest.err; then
15803 ac_cpp_err=$ac_c_preproc_warn_flag
15804 else
15805 ac_cpp_err=
15807 else
15808 ac_cpp_err=yes
15810 if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_preproc=no
15818 rm -f conftest.err conftest.$ac_ext
15819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15820 echo "${ECHO_T}$ac_header_preproc" >&6
15822 # So? What about this header?
15823 case $ac_header_compiler:$ac_header_preproc in
15824 yes:no )
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15830 cat <<\_ASBOX
15831 ## ------------------------------------ ##
15832 ## Report this to bug-autoconf@gnu.org. ##
15833 ## ------------------------------------ ##
15834 _ASBOX
15836 sed "s/^/$as_me: WARNING: /" >&2
15838 no:yes )
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15846 cat <<\_ASBOX
15847 ## ------------------------------------ ##
15848 ## Report this to bug-autoconf@gnu.org. ##
15849 ## ------------------------------------ ##
15850 _ASBOX
15852 sed "s/^/$as_me: WARNING: /" >&2
15854 esac
15855 echo "$as_me:$LINENO: checking for $ac_header" >&5
15856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 eval "$as_ac_Header=$ac_header_preproc"
15862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15867 cat >>confdefs.h <<_ACEOF
15868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15869 _ACEOF
15871 else
15873 for ac_header in kerberos/krb.h
15875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo "$as_me:$LINENO: checking for $ac_header" >&5
15878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15884 else
15885 # Is the header compilable?
15886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15888 cat >conftest.$ac_ext <<_ACEOF
15889 #line $LINENO "configure"
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 #include <$ac_header>
15897 _ACEOF
15898 rm -f conftest.$ac_objext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15900 (eval $ac_compile) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_header_compiler=yes
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_header_compiler=no
15917 rm -f conftest.$ac_objext conftest.$ac_ext
15918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15919 echo "${ECHO_T}$ac_header_compiler" >&6
15921 # Is the header present?
15922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15924 cat >conftest.$ac_ext <<_ACEOF
15925 #line $LINENO "configure"
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 #include <$ac_header>
15932 _ACEOF
15933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } >/dev/null; then
15941 if test -s conftest.err; then
15942 ac_cpp_err=$ac_c_preproc_warn_flag
15943 else
15944 ac_cpp_err=
15946 else
15947 ac_cpp_err=yes
15949 if test -z "$ac_cpp_err"; then
15950 ac_header_preproc=yes
15951 else
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_header_preproc=no
15957 rm -f conftest.err conftest.$ac_ext
15958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15959 echo "${ECHO_T}$ac_header_preproc" >&6
15961 # So? What about this header?
15962 case $ac_header_compiler:$ac_header_preproc in
15963 yes:no )
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15969 cat <<\_ASBOX
15970 ## ------------------------------------ ##
15971 ## Report this to bug-autoconf@gnu.org. ##
15972 ## ------------------------------------ ##
15973 _ASBOX
15975 sed "s/^/$as_me: WARNING: /" >&2
15977 no:yes )
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 cat <<\_ASBOX
15986 ## ------------------------------------ ##
15987 ## Report this to bug-autoconf@gnu.org. ##
15988 ## ------------------------------------ ##
15989 _ASBOX
15991 sed "s/^/$as_me: WARNING: /" >&2
15993 esac
15994 echo "$as_me:$LINENO: checking for $ac_header" >&5
15995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 else
15999 eval "$as_ac_Header=$ac_header_preproc"
16001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16006 cat >>confdefs.h <<_ACEOF
16007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 _ACEOF
16012 done
16016 done
16020 done
16024 for ac_header in com_err.h
16026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16028 echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16035 else
16036 # Is the header compilable?
16037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 #include <$ac_header>
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_header_compiler=yes
16062 else
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 ac_header_compiler=no
16068 rm -f conftest.$ac_objext conftest.$ac_ext
16069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16070 echo "${ECHO_T}$ac_header_compiler" >&6
16072 # Is the header present?
16073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16075 cat >conftest.$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16077 /* confdefs.h. */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <$ac_header>
16083 _ACEOF
16084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } >/dev/null; then
16092 if test -s conftest.err; then
16093 ac_cpp_err=$ac_c_preproc_warn_flag
16094 else
16095 ac_cpp_err=
16097 else
16098 ac_cpp_err=yes
16100 if test -z "$ac_cpp_err"; then
16101 ac_header_preproc=yes
16102 else
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_preproc=no
16108 rm -f conftest.err conftest.$ac_ext
16109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16110 echo "${ECHO_T}$ac_header_preproc" >&6
16112 # So? What about this header?
16113 case $ac_header_compiler:$ac_header_preproc in
16114 yes:no )
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120 cat <<\_ASBOX
16121 ## ------------------------------------ ##
16122 ## Report this to bug-autoconf@gnu.org. ##
16123 ## ------------------------------------ ##
16124 _ASBOX
16126 sed "s/^/$as_me: WARNING: /" >&2
16128 no:yes )
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 cat <<\_ASBOX
16137 ## ------------------------------------ ##
16138 ## Report this to bug-autoconf@gnu.org. ##
16139 ## ------------------------------------ ##
16140 _ASBOX
16142 sed "s/^/$as_me: WARNING: /" >&2
16144 esac
16145 echo "$as_me:$LINENO: checking for $ac_header" >&5
16146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 eval "$as_ac_Header=$ac_header_preproc"
16152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 _ACEOF
16163 done
16167 # Solaris requires -lintl if you want strerror (which calls dgettext)
16168 # to return localized messages.
16170 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16171 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16172 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175 ac_check_lib_save_LIBS=$LIBS
16176 LIBS="-lintl $LIBS"
16177 cat >conftest.$ac_ext <<_ACEOF
16178 #line $LINENO "configure"
16179 /* confdefs.h. */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16185 /* Override any gcc2 internal prototype to avoid an error. */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 /* We use char because int might match the return type of a gcc2
16190 builtin and then its argument prototype would still apply. */
16191 char dgettext ();
16193 main ()
16195 dgettext ();
16197 return 0;
16199 _ACEOF
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16202 (eval $ac_link) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_lib_intl_dgettext=yes
16213 else
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_cv_lib_intl_dgettext=no
16219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16220 LIBS=$ac_check_lib_save_LIBS
16222 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16223 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16224 if test $ac_cv_lib_intl_dgettext = yes; then
16225 cat >>confdefs.h <<_ACEOF
16226 #define HAVE_LIBINTL 1
16227 _ACEOF
16229 LIBS="-lintl $LIBS"
16234 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16235 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16236 if test "${emacs_cv_localtime_cache+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239 if test x$ac_cv_func_tzset = xyes; then
16240 if test "$cross_compiling" = yes; then
16241 # If we have tzset, assume the worst when cross-compiling.
16242 emacs_cv_localtime_cache=yes
16243 else
16244 cat >conftest.$ac_ext <<_ACEOF
16245 #line $LINENO "configure"
16246 /* confdefs.h. */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 #include <time.h>
16252 extern char **environ;
16253 unset_TZ ()
16255 char **from, **to;
16256 for (to = from = environ; (*to = *from); from++)
16257 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16258 to++;
16260 char TZ_GMT0[] = "TZ=GMT0";
16261 char TZ_PST8[] = "TZ=PST8";
16262 main()
16264 time_t now = time ((time_t *) 0);
16265 int hour_GMT0, hour_unset;
16266 if (putenv (TZ_GMT0) != 0)
16267 exit (1);
16268 hour_GMT0 = localtime (&now)->tm_hour;
16269 unset_TZ ();
16270 hour_unset = localtime (&now)->tm_hour;
16271 if (putenv (TZ_PST8) != 0)
16272 exit (1);
16273 if (localtime (&now)->tm_hour == hour_GMT0)
16274 exit (1);
16275 unset_TZ ();
16276 if (localtime (&now)->tm_hour != hour_unset)
16277 exit (1);
16278 exit (0);
16280 _ACEOF
16281 rm -f conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 emacs_cv_localtime_cache=no
16293 else
16294 echo "$as_me: program exited with status $ac_status" >&5
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ( exit $ac_status )
16299 emacs_cv_localtime_cache=yes
16301 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303 else
16304 # If we lack tzset, report that localtime does not cache TZ,
16305 # since we can't invalidate the cache if we don't have tzset.
16306 emacs_cv_localtime_cache=no
16309 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16310 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16311 if test $emacs_cv_localtime_cache = yes; then
16313 cat >>confdefs.h <<\_ACEOF
16314 #define LOCALTIME_CACHE 1
16315 _ACEOF
16319 if test "x$HAVE_TIMEVAL" = xyes; then
16321 for ac_func in gettimeofday
16323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16324 echo "$as_me:$LINENO: checking for $ac_func" >&5
16325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16326 if eval "test \"\${$as_ac_var+set}\" = set"; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329 cat >conftest.$ac_ext <<_ACEOF
16330 #line $LINENO "configure"
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 /* System header to define __stub macros and hopefully few prototypes,
16337 which can conflict with char $ac_func (); below.
16338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16339 <limits.h> exists even on freestanding compilers. */
16340 #ifdef __STDC__
16341 # include <limits.h>
16342 #else
16343 # include <assert.h>
16344 #endif
16345 /* Override any gcc2 internal prototype to avoid an error. */
16346 #ifdef __cplusplus
16347 extern "C"
16349 #endif
16350 /* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16352 char $ac_func ();
16353 /* The GNU C library defines this for functions which it implements
16354 to always fail with ENOSYS. Some functions are actually named
16355 something starting with __ and the normal name is an alias. */
16356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16357 choke me
16358 #else
16359 char (*f) () = $ac_func;
16360 #endif
16361 #ifdef __cplusplus
16363 #endif
16366 main ()
16368 return f != $ac_func;
16370 return 0;
16372 _ACEOF
16373 rm -f conftest.$ac_objext conftest$ac_exeext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16375 (eval $ac_link) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } &&
16379 { ac_try='test -s conftest$ac_exeext'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16382 ac_status=$?
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16385 eval "$as_ac_var=yes"
16386 else
16387 echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 eval "$as_ac_var=no"
16392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16396 if test `eval echo '${'$as_ac_var'}'` = yes; then
16397 cat >>confdefs.h <<_ACEOF
16398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16399 _ACEOF
16402 done
16404 if test $ac_cv_func_gettimeofday = yes; then
16405 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16406 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16407 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410 cat >conftest.$ac_ext <<_ACEOF
16411 #line $LINENO "configure"
16412 /* confdefs.h. */
16413 _ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16418 #ifdef TIME_WITH_SYS_TIME
16419 #include <sys/time.h>
16420 #include <time.h>
16421 #else
16422 #ifdef HAVE_SYS_TIME_H
16423 #include <sys/time.h>
16424 #else
16425 #include <time.h>
16426 #endif
16427 #endif
16429 main ()
16431 struct timeval time;
16432 gettimeofday (&time, 0);
16434 return 0;
16436 _ACEOF
16437 rm -f conftest.$ac_objext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439 (eval $ac_compile) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -s conftest.$ac_objext'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 emacs_cv_gettimeofday_two_arguments=yes
16450 else
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16454 emacs_cv_gettimeofday_two_arguments=no
16456 rm -f conftest.$ac_objext conftest.$ac_ext
16458 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16459 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16460 if test $emacs_cv_gettimeofday_two_arguments = no; then
16462 cat >>confdefs.h <<\_ACEOF
16463 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16464 _ACEOF
16470 if test "$ac_cv_func_gettimeofday" = yes; then
16471 echo "$as_me:$LINENO: checking for struct timezone" >&5
16472 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16473 if test "${emacs_cv_struct_timezone+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 #line $LINENO "configure"
16478 /* confdefs.h. */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 #include <sys/time.h>
16485 main ()
16487 struct timezone tz;
16489 return 0;
16491 _ACEOF
16492 rm -f conftest.$ac_objext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16494 (eval $ac_compile) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 if test "$cross_compiling" = yes; then
16505 emacs_cv_struct_timezone=yes
16506 else
16507 cat >conftest.$ac_ext <<_ACEOF
16508 #line $LINENO "configure"
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16515 #ifdef TIME_WITH_SYS_TIME
16516 #include <sys/time.h>
16517 #include <time.h>
16518 #else
16519 #ifdef HAVE_SYS_TIME_H
16520 #include <sys/time.h>
16521 #else
16522 #include <time.h>
16523 #endif
16524 #endif
16525 main () {
16526 struct timeval time;
16527 struct timezone dummy;
16528 exit (gettimeofday (&time, &dummy));
16530 _ACEOF
16531 rm -f conftest$ac_exeext
16532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16533 (eval $ac_link) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 emacs_cv_struct_timezone=yes
16543 else
16544 echo "$as_me: program exited with status $ac_status" >&5
16545 echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 ( exit $ac_status )
16549 emacs_cv_struct_timezone=no
16551 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 else
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 emacs_cv_struct_timezone=no
16559 rm -f conftest.$ac_objext conftest.$ac_ext
16561 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16562 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16565 ok_so_far=yes
16566 echo "$as_me:$LINENO: checking for socket" >&5
16567 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16568 if test "${ac_cv_func_socket+set}" = set; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 else
16571 cat >conftest.$ac_ext <<_ACEOF
16572 #line $LINENO "configure"
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 /* System header to define __stub macros and hopefully few prototypes,
16579 which can conflict with char socket (); below.
16580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581 <limits.h> exists even on freestanding compilers. */
16582 #ifdef __STDC__
16583 # include <limits.h>
16584 #else
16585 # include <assert.h>
16586 #endif
16587 /* Override any gcc2 internal prototype to avoid an error. */
16588 #ifdef __cplusplus
16589 extern "C"
16591 #endif
16592 /* We use char because int might match the return type of a gcc2
16593 builtin and then its argument prototype would still apply. */
16594 char socket ();
16595 /* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
16598 #if defined (__stub_socket) || defined (__stub___socket)
16599 choke me
16600 #else
16601 char (*f) () = socket;
16602 #endif
16603 #ifdef __cplusplus
16605 #endif
16608 main ()
16610 return f != socket;
16612 return 0;
16614 _ACEOF
16615 rm -f conftest.$ac_objext conftest$ac_exeext
16616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16617 (eval $ac_link) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
16621 { ac_try='test -s conftest$ac_exeext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_cv_func_socket=yes
16628 else
16629 echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 ac_cv_func_socket=no
16634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16636 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16637 echo "${ECHO_T}$ac_cv_func_socket" >&6
16638 if test $ac_cv_func_socket = yes; then
16640 else
16641 ok_so_far=no
16644 if test $ok_so_far = yes; then
16645 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16646 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16647 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16648 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16652 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16653 else
16654 # Is the header compilable?
16655 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16656 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16657 cat >conftest.$ac_ext <<_ACEOF
16658 #line $LINENO "configure"
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 $ac_includes_default
16665 #include <netinet/in.h>
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669 (eval $ac_compile) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_header_compiler=yes
16680 else
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_header_compiler=no
16686 rm -f conftest.$ac_objext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16688 echo "${ECHO_T}$ac_header_compiler" >&6
16690 # Is the header present?
16691 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16692 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16693 cat >conftest.$ac_ext <<_ACEOF
16694 #line $LINENO "configure"
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 #include <netinet/in.h>
16701 _ACEOF
16702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } >/dev/null; then
16710 if test -s conftest.err; then
16711 ac_cpp_err=$ac_c_preproc_warn_flag
16712 else
16713 ac_cpp_err=
16715 else
16716 ac_cpp_err=yes
16718 if test -z "$ac_cpp_err"; then
16719 ac_header_preproc=yes
16720 else
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_preproc=no
16726 rm -f conftest.err conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728 echo "${ECHO_T}$ac_header_preproc" >&6
16730 # So? What about this header?
16731 case $ac_header_compiler:$ac_header_preproc in
16732 yes:no )
16733 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16734 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16738 cat <<\_ASBOX
16739 ## ------------------------------------ ##
16740 ## Report this to bug-autoconf@gnu.org. ##
16741 ## ------------------------------------ ##
16742 _ASBOX
16744 sed "s/^/$as_me: WARNING: /" >&2
16746 no:yes )
16747 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16748 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16750 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16752 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16754 cat <<\_ASBOX
16755 ## ------------------------------------ ##
16756 ## Report this to bug-autoconf@gnu.org. ##
16757 ## ------------------------------------ ##
16758 _ASBOX
16760 sed "s/^/$as_me: WARNING: /" >&2
16762 esac
16763 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16764 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16765 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768 ac_cv_header_netinet_in_h=$ac_header_preproc
16770 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16771 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16774 if test $ac_cv_header_netinet_in_h = yes; then
16776 else
16777 ok_so_far=no
16782 if test $ok_so_far = yes; then
16783 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16784 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16785 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16786 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16789 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16790 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16791 else
16792 # Is the header compilable?
16793 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16794 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16795 cat >conftest.$ac_ext <<_ACEOF
16796 #line $LINENO "configure"
16797 /* confdefs.h. */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 $ac_includes_default
16803 #include <arpa/inet.h>
16804 _ACEOF
16805 rm -f conftest.$ac_objext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16807 (eval $ac_compile) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -s conftest.$ac_objext'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 ac_header_compiler=yes
16818 else
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_header_compiler=no
16824 rm -f conftest.$ac_objext conftest.$ac_ext
16825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16826 echo "${ECHO_T}$ac_header_compiler" >&6
16828 # Is the header present?
16829 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16830 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16831 cat >conftest.$ac_ext <<_ACEOF
16832 #line $LINENO "configure"
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <arpa/inet.h>
16839 _ACEOF
16840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } >/dev/null; then
16848 if test -s conftest.err; then
16849 ac_cpp_err=$ac_c_preproc_warn_flag
16850 else
16851 ac_cpp_err=
16853 else
16854 ac_cpp_err=yes
16856 if test -z "$ac_cpp_err"; then
16857 ac_header_preproc=yes
16858 else
16859 echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16862 ac_header_preproc=no
16864 rm -f conftest.err conftest.$ac_ext
16865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16866 echo "${ECHO_T}$ac_header_preproc" >&6
16868 # So? What about this header?
16869 case $ac_header_compiler:$ac_header_preproc in
16870 yes:no )
16871 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16872 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16873 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16874 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16876 cat <<\_ASBOX
16877 ## ------------------------------------ ##
16878 ## Report this to bug-autoconf@gnu.org. ##
16879 ## ------------------------------------ ##
16880 _ASBOX
16882 sed "s/^/$as_me: WARNING: /" >&2
16884 no:yes )
16885 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16886 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16887 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16888 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16889 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16890 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16892 cat <<\_ASBOX
16893 ## ------------------------------------ ##
16894 ## Report this to bug-autoconf@gnu.org. ##
16895 ## ------------------------------------ ##
16896 _ASBOX
16898 sed "s/^/$as_me: WARNING: /" >&2
16900 esac
16901 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16902 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16903 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906 ac_cv_header_arpa_inet_h=$ac_header_preproc
16908 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16909 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16912 if test $ac_cv_header_arpa_inet_h = yes; then
16914 else
16915 ok_so_far=no
16920 if test $ok_so_far = yes; then
16922 cat >>confdefs.h <<\_ACEOF
16923 #define HAVE_INET_SOCKETS 1
16924 _ACEOF
16928 if test -f /usr/lpp/X11/bin/smt.exp; then
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_AIX_SMT_EXP 1
16932 _ACEOF
16936 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16937 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16938 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16939 echo "$as_me:$LINENO: result: yes" >&5
16940 echo "${ECHO_T}yes" >&6
16942 cat >>confdefs.h <<\_ACEOF
16943 #define HAVE_DEV_PTMX 1
16944 _ACEOF
16946 else
16947 echo "$as_me:$LINENO: result: no" >&5
16948 echo "${ECHO_T}no" >&6
16951 echo "$as_me:$LINENO: checking for pid_t" >&5
16952 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16953 if test "${ac_cv_type_pid_t+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16965 main ()
16967 if ((pid_t *) 0)
16968 return 0;
16969 if (sizeof (pid_t))
16970 return 0;
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_type_pid_t=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16992 ac_cv_type_pid_t=no
16994 rm -f conftest.$ac_objext conftest.$ac_ext
16996 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16997 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16998 if test $ac_cv_type_pid_t = yes; then
17000 else
17002 cat >>confdefs.h <<_ACEOF
17003 #define pid_t int
17004 _ACEOF
17010 for ac_header in unistd.h vfork.h
17012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17014 echo "$as_me:$LINENO: checking for $ac_header" >&5
17015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17021 else
17022 # Is the header compilable?
17023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17025 cat >conftest.$ac_ext <<_ACEOF
17026 #line $LINENO "configure"
17027 /* confdefs.h. */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 $ac_includes_default
17033 #include <$ac_header>
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 ac_header_compiler=yes
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17052 ac_header_compiler=no
17054 rm -f conftest.$ac_objext conftest.$ac_ext
17055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17056 echo "${ECHO_T}$ac_header_compiler" >&6
17058 # Is the header present?
17059 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h. */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 #include <$ac_header>
17069 _ACEOF
17070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } >/dev/null; then
17078 if test -s conftest.err; then
17079 ac_cpp_err=$ac_c_preproc_warn_flag
17080 else
17081 ac_cpp_err=
17083 else
17084 ac_cpp_err=yes
17086 if test -z "$ac_cpp_err"; then
17087 ac_header_preproc=yes
17088 else
17089 echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17092 ac_header_preproc=no
17094 rm -f conftest.err conftest.$ac_ext
17095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17096 echo "${ECHO_T}$ac_header_preproc" >&6
17098 # So? What about this header?
17099 case $ac_header_compiler:$ac_header_preproc in
17100 yes:no )
17101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 cat <<\_ASBOX
17107 ## ------------------------------------ ##
17108 ## Report this to bug-autoconf@gnu.org. ##
17109 ## ------------------------------------ ##
17110 _ASBOX
17112 sed "s/^/$as_me: WARNING: /" >&2
17114 no:yes )
17115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17122 cat <<\_ASBOX
17123 ## ------------------------------------ ##
17124 ## Report this to bug-autoconf@gnu.org. ##
17125 ## ------------------------------------ ##
17126 _ASBOX
17128 sed "s/^/$as_me: WARNING: /" >&2
17130 esac
17131 echo "$as_me:$LINENO: checking for $ac_header" >&5
17132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 else
17136 eval "$as_ac_Header=$ac_header_preproc"
17138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17145 _ACEOF
17149 done
17153 for ac_func in fork vfork
17155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156 echo "$as_me:$LINENO: checking for $ac_func" >&5
17157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17158 if eval "test \"\${$as_ac_var+set}\" = set"; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17172 #ifdef __STDC__
17173 # include <limits.h>
17174 #else
17175 # include <assert.h>
17176 #endif
17177 /* Override any gcc2 internal prototype to avoid an error. */
17178 #ifdef __cplusplus
17179 extern "C"
17181 #endif
17182 /* We use char because int might match the return type of a gcc2
17183 builtin and then its argument prototype would still apply. */
17184 char $ac_func ();
17185 /* The GNU C library defines this for functions which it implements
17186 to always fail with ENOSYS. Some functions are actually named
17187 something starting with __ and the normal name is an alias. */
17188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17189 choke me
17190 #else
17191 char (*f) () = $ac_func;
17192 #endif
17193 #ifdef __cplusplus
17195 #endif
17198 main ()
17200 return f != $ac_func;
17202 return 0;
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); } &&
17211 { ac_try='test -s conftest$ac_exeext'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 eval "$as_ac_var=yes"
17218 else
17219 echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 eval "$as_ac_var=no"
17224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17228 if test `eval echo '${'$as_ac_var'}'` = yes; then
17229 cat >>confdefs.h <<_ACEOF
17230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17231 _ACEOF
17234 done
17236 if test "x$ac_cv_func_fork" = xyes; then
17237 echo "$as_me:$LINENO: checking for working fork" >&5
17238 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17239 if test "${ac_cv_func_fork_works+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242 if test "$cross_compiling" = yes; then
17243 ac_cv_func_fork_works=cross
17244 else
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* By Ruediger Kuhlmann. */
17247 #include <sys/types.h>
17248 #if HAVE_UNISTD_H
17249 # include <unistd.h>
17250 #endif
17251 /* Some systems only have a dummy stub for fork() */
17252 int main ()
17254 if (fork() < 0)
17255 exit (1);
17256 exit (0);
17258 _ACEOF
17259 rm -f conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_func_fork_works=yes
17271 else
17272 echo "$as_me: program exited with status $ac_status" >&5
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 ( exit $ac_status )
17277 ac_cv_func_fork_works=no
17279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17282 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17283 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17285 else
17286 ac_cv_func_fork_works=$ac_cv_func_fork
17288 if test "x$ac_cv_func_fork_works" = xcross; then
17289 case $host in
17290 *-*-amigaos* | *-*-msdosdjgpp*)
17291 # Override, as these systems have only a dummy fork() stub
17292 ac_cv_func_fork_works=no
17295 ac_cv_func_fork_works=yes
17297 esac
17298 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17299 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17301 ac_cv_func_vfork_works=$ac_cv_func_vfork
17302 if test "x$ac_cv_func_vfork" = xyes; then
17303 echo "$as_me:$LINENO: checking for working vfork" >&5
17304 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17305 if test "${ac_cv_func_vfork_works+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308 if test "$cross_compiling" = yes; then
17309 ac_cv_func_vfork_works=cross
17310 else
17311 cat >conftest.$ac_ext <<_ACEOF
17312 #line $LINENO "configure"
17313 /* confdefs.h. */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Thanks to Paul Eggert for this test. */
17319 #include <stdio.h>
17320 #include <stdlib.h>
17321 #include <sys/types.h>
17322 #include <sys/stat.h>
17323 #include <sys/wait.h>
17324 #if HAVE_UNISTD_H
17325 # include <unistd.h>
17326 #endif
17327 #if HAVE_VFORK_H
17328 # include <vfork.h>
17329 #endif
17330 /* On some sparc systems, changes by the child to local and incoming
17331 argument registers are propagated back to the parent. The compiler
17332 is told about this with #include <vfork.h>, but some compilers
17333 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17334 static variable whose address is put into a register that is
17335 clobbered by the vfork. */
17336 static void
17337 #ifdef __cplusplus
17338 sparc_address_test (int arg)
17339 # else
17340 sparc_address_test (arg) int arg;
17341 #endif
17343 static pid_t child;
17344 if (!child) {
17345 child = vfork ();
17346 if (child < 0) {
17347 perror ("vfork");
17348 _exit(2);
17350 if (!child) {
17351 arg = getpid();
17352 write(-1, "", 0);
17353 _exit (arg);
17359 main ()
17361 pid_t parent = getpid ();
17362 pid_t child;
17364 sparc_address_test (0);
17366 child = vfork ();
17368 if (child == 0) {
17369 /* Here is another test for sparc vfork register problems. This
17370 test uses lots of local variables, at least as many local
17371 variables as main has allocated so far including compiler
17372 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17373 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17374 reuse the register of parent for one of the local variables,
17375 since it will think that parent can't possibly be used any more
17376 in this routine. Assigning to the local variable will thus
17377 munge parent in the parent process. */
17378 pid_t
17379 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17380 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17381 /* Convince the compiler that p..p7 are live; otherwise, it might
17382 use the same hardware register for all 8 local variables. */
17383 if (p != p1 || p != p2 || p != p3 || p != p4
17384 || p != p5 || p != p6 || p != p7)
17385 _exit(1);
17387 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17388 from child file descriptors. If the child closes a descriptor
17389 before it execs or exits, this munges the parent's descriptor
17390 as well. Test for this by closing stdout in the child. */
17391 _exit(close(fileno(stdout)) != 0);
17392 } else {
17393 int status;
17394 struct stat st;
17396 while (wait(&status) != child)
17398 exit(
17399 /* Was there some problem with vforking? */
17400 child < 0
17402 /* Did the child fail? (This shouldn't happen.) */
17403 || status
17405 /* Did the vfork/compiler bug occur? */
17406 || parent != getpid()
17408 /* Did the file descriptor bug occur? */
17409 || fstat(fileno(stdout), &st) != 0
17413 _ACEOF
17414 rm -f conftest$ac_exeext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_func_vfork_works=yes
17426 else
17427 echo "$as_me: program exited with status $ac_status" >&5
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ( exit $ac_status )
17432 ac_cv_func_vfork_works=no
17434 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17437 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17438 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17441 if test "x$ac_cv_func_fork_works" = xcross; then
17442 ac_cv_func_vfork_works=ac_cv_func_vfork
17443 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17444 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17447 if test "x$ac_cv_func_vfork_works" = xyes; then
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_WORKING_VFORK 1
17451 _ACEOF
17453 else
17455 cat >>confdefs.h <<\_ACEOF
17456 #define vfork fork
17457 _ACEOF
17460 if test "x$ac_cv_func_fork_works" = xyes; then
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_WORKING_FORK 1
17464 _ACEOF
17469 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17470 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17471 if test "${emacs_cv_langinfo_codeset+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 else
17474 cat >conftest.$ac_ext <<_ACEOF
17475 #line $LINENO "configure"
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <langinfo.h>
17483 main ()
17485 char* cs = nl_langinfo(CODESET);
17487 return 0;
17489 _ACEOF
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17492 (eval $ac_link) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 emacs_cv_langinfo_codeset=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 emacs_cv_langinfo_codeset=no
17509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17512 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
17513 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
17514 if test $emacs_cv_langinfo_codeset = yes; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_LANGINFO_CODESET 1
17518 _ACEOF
17522 echo "$as_me:$LINENO: checking for size_t" >&5
17523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17524 if test "${ac_cv_type_size_t+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527 cat >conftest.$ac_ext <<_ACEOF
17528 #line $LINENO "configure"
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17536 main ()
17538 if ((size_t *) 0)
17539 return 0;
17540 if (sizeof (size_t))
17541 return 0;
17543 return 0;
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548 (eval $ac_compile) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -s conftest.$ac_objext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_cv_type_size_t=yes
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_cv_type_size_t=no
17565 rm -f conftest.$ac_objext conftest.$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17568 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17569 if test $ac_cv_type_size_t = yes; then
17571 cat >>confdefs.h <<_ACEOF
17572 #define HAVE_SIZE_T 1
17573 _ACEOF
17579 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17580 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17581 if test "${emacs_cv_c_restrict+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 cat >conftest.$ac_ext <<_ACEOF
17585 #line $LINENO "configure"
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 void fred (int *restrict x);
17593 main ()
17597 return 0;
17599 _ACEOF
17600 rm -f conftest.$ac_objext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17602 (eval $ac_compile) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); } &&
17606 { ac_try='test -s conftest.$ac_objext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 emacs_cv_c_restrict=yes
17613 else
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 cat >conftest.$ac_ext <<_ACEOF
17618 #line $LINENO "configure"
17619 /* confdefs.h. */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17624 void fred (int *__restrict x);
17626 main ()
17630 return 0;
17632 _ACEOF
17633 rm -f conftest.$ac_objext
17634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17635 (eval $ac_compile) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 emacs_cv_c_restrict=__restrict
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 emacs_cv_c_restrict=no
17652 rm -f conftest.$ac_objext conftest.$ac_ext
17654 rm -f conftest.$ac_objext conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17657 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17658 case "$emacs_cv_c_restrict" in
17659 yes) emacs_restrict=restrict;;
17660 no) emacs_restrict="";;
17661 *) emacs_restrict="$emacs_cv_c_restrict";;
17662 esac
17663 if test "$emacs_restrict" != __restrict; then
17665 cat >>confdefs.h <<_ACEOF
17666 #define __restrict $emacs_restrict
17667 _ACEOF
17671 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17672 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17673 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676 cat >conftest.$ac_ext <<_ACEOF
17677 #line $LINENO "configure"
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 void fred (int x[__restrict]);
17685 main ()
17689 return 0;
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -s conftest.$ac_objext'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; }; then
17704 emacs_cv_c_restrict_arr=yes
17705 else
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 emacs_cv_c_restrict_arr=no
17711 rm -f conftest.$ac_objext conftest.$ac_ext
17713 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17714 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17715 if test "$emacs_cv_c_restrict_arr" = yes; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define __restrict_arr __restrict
17719 _ACEOF
17724 for ac_header in nlist.h
17726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17728 echo "$as_me:$LINENO: checking for $ac_header" >&5
17729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17735 else
17736 # Is the header compilable?
17737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17739 cat >conftest.$ac_ext <<_ACEOF
17740 #line $LINENO "configure"
17741 /* confdefs.h. */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 $ac_includes_default
17747 #include <$ac_header>
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -s conftest.$ac_objext'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17761 ac_header_compiler=yes
17762 else
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 ac_header_compiler=no
17768 rm -f conftest.$ac_objext conftest.$ac_ext
17769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17770 echo "${ECHO_T}$ac_header_compiler" >&6
17772 # Is the header present?
17773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17776 #line $LINENO "configure"
17777 /* confdefs.h. */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 #include <$ac_header>
17783 _ACEOF
17784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } >/dev/null; then
17792 if test -s conftest.err; then
17793 ac_cpp_err=$ac_c_preproc_warn_flag
17794 else
17795 ac_cpp_err=
17797 else
17798 ac_cpp_err=yes
17800 if test -z "$ac_cpp_err"; then
17801 ac_header_preproc=yes
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 ac_header_preproc=no
17808 rm -f conftest.err conftest.$ac_ext
17809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17810 echo "${ECHO_T}$ac_header_preproc" >&6
17812 # So? What about this header?
17813 case $ac_header_compiler:$ac_header_preproc in
17814 yes:no )
17815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17820 cat <<\_ASBOX
17821 ## ------------------------------------ ##
17822 ## Report this to bug-autoconf@gnu.org. ##
17823 ## ------------------------------------ ##
17824 _ASBOX
17826 sed "s/^/$as_me: WARNING: /" >&2
17828 no:yes )
17829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17836 cat <<\_ASBOX
17837 ## ------------------------------------ ##
17838 ## Report this to bug-autoconf@gnu.org. ##
17839 ## ------------------------------------ ##
17840 _ASBOX
17842 sed "s/^/$as_me: WARNING: /" >&2
17844 esac
17845 echo "$as_me:$LINENO: checking for $ac_header" >&5
17846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850 eval "$as_ac_Header=$ac_header_preproc"
17852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17857 cat >>confdefs.h <<_ACEOF
17858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17859 _ACEOF
17861 cat >>confdefs.h <<\_ACEOF
17862 #define NLIST_STRUCT 1
17863 _ACEOF
17867 done
17872 # Set up the CFLAGS for real compilation, so we can substitute it.
17873 CFLAGS="$REAL_CFLAGS"
17874 CPPFLAGS="$REAL_CPPFLAGS"
17876 #### Find out which version of Emacs this is.
17877 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17878 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17879 if test x"${version}" = x; then
17880 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17881 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17882 { (exit 1); exit 1; }; }
17885 ### Specify what sort of things we'll be editing into Makefile and config.h.
17886 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17922 cat >>confdefs.h <<_ACEOF
17923 #define EMACS_CONFIGURATION "${canonical}"
17924 _ACEOF
17927 cat >>confdefs.h <<_ACEOF
17928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17929 _ACEOF
17932 cat >>confdefs.h <<_ACEOF
17933 #define config_machfile "${machfile}"
17934 _ACEOF
17937 cat >>confdefs.h <<_ACEOF
17938 #define config_opsysfile "${opsysfile}"
17939 _ACEOF
17942 cat >>confdefs.h <<_ACEOF
17943 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17944 _ACEOF
17947 cat >>confdefs.h <<_ACEOF
17948 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17949 _ACEOF
17952 cat >>confdefs.h <<_ACEOF
17953 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17954 _ACEOF
17957 cat >>confdefs.h <<_ACEOF
17958 #define UNEXEC_SRC ${UNEXEC_SRC}
17959 _ACEOF
17962 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_X_WINDOWS 1
17966 _ACEOF
17969 if test "${USE_X_TOOLKIT}" != "none" ; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define USE_X_TOOLKIT 1
17973 _ACEOF
17976 if test "${HAVE_X11}" = "yes" ; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define HAVE_X11 1
17980 _ACEOF
17983 if test "${HAVE_XFREE386}" = "yes" ; then
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_XFREE386 1
17987 _ACEOF
17990 if test "${HAVE_MENUS}" = "yes" ; then
17992 cat >>confdefs.h <<\_ACEOF
17993 #define HAVE_MENUS 1
17994 _ACEOF
17997 if test "${GNU_MALLOC}" = "yes" ; then
17999 cat >>confdefs.h <<\_ACEOF
18000 #define GNU_MALLOC 1
18001 _ACEOF
18004 if test "${REL_ALLOC}" = "yes" ; then
18006 cat >>confdefs.h <<\_ACEOF
18007 #define REL_ALLOC 1
18008 _ACEOF
18016 #### Report on what we decided to do.
18017 #### Report GTK as a toolkit, even if it doesn't use Xt.
18018 #### It makes printing result more understandable as using GTK sets
18019 #### toolkit_scroll_bars to yes by default.
18020 if test "${HAVE_GTK}" = "yes"; then
18021 USE_X_TOOLKIT=GTK
18024 echo "
18025 Configured for \`${canonical}'.
18027 Where should the build process find the source code? ${srcdir}
18028 What operating system and machine description files should Emacs use?
18029 \`${opsysfile}' and \`${machfile}'
18030 What compiler should emacs be built with? ${CC} ${CFLAGS}
18031 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18032 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18033 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18034 What window system should Emacs use? ${window_system}
18035 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18037 if test -n "${x_includes}"; then
18038 echo " Where do we find X Windows header files? ${x_includes}"
18039 else
18040 echo " Where do we find X Windows header files? Standard dirs"
18042 if test -n "${x_libraries}"; then
18043 echo " Where do we find X Windows libraries? ${x_libraries}"
18044 else
18045 echo " Where do we find X Windows libraries? Standard dirs"
18048 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18049 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18050 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18051 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18052 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18053 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18054 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18055 echo
18057 # Remove any trailing slashes in these variables.
18058 test "${prefix}" != NONE &&
18059 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18060 test "${exec_prefix}" != NONE &&
18061 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18063 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18064 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18065 ## from Makefile.c can correctly provide the arg `-traditional' to the
18066 ## C preprocessor.
18068 cat >conftest.$ac_ext <<_ACEOF
18069 #line $LINENO "configure"
18070 /* confdefs.h. */
18071 _ACEOF
18072 cat confdefs.h >>conftest.$ac_ext
18073 cat >>conftest.$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 yes..yes
18076 _ACEOF
18077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18078 $EGREP "yes..yes" >/dev/null 2>&1; then
18079 CPP_NEED_TRADITIONAL=no
18080 else
18081 CPP_NEED_TRADITIONAL=yes
18083 rm -f conftest*
18086 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"
18087 ac_config_commands="$ac_config_commands default"
18088 cat >confcache <<\_ACEOF
18089 # This file is a shell script that caches the results of configure
18090 # tests run on this system so they can be shared between configure
18091 # scripts and configure runs, see configure's option --config-cache.
18092 # It is not useful on other systems. If it contains results you don't
18093 # want to keep, you may remove or edit it.
18095 # config.status only pays attention to the cache file if you give it
18096 # the --recheck option to rerun configure.
18098 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18099 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18100 # following values.
18102 _ACEOF
18104 # The following way of writing the cache mishandles newlines in values,
18105 # but we know of no workaround that is simple, portable, and efficient.
18106 # So, don't put newlines in cache variables' values.
18107 # Ultrix sh set writes to stderr and can't be redirected directly,
18108 # and sets the high bit in the cache file unless we assign to the vars.
18110 (set) 2>&1 |
18111 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18112 *ac_space=\ *)
18113 # `set' does not quote correctly, so add quotes (double-quote
18114 # substitution turns \\\\ into \\, and sed turns \\ into \).
18115 sed -n \
18116 "s/'/'\\\\''/g;
18117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18120 # `set' quotes correctly as required by POSIX, so do not add quotes.
18121 sed -n \
18122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18124 esac;
18126 sed '
18127 t clear
18128 : clear
18129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18130 t end
18131 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18132 : end' >>confcache
18133 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18134 if test -w $cache_file; then
18135 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18136 cat confcache >$cache_file
18137 else
18138 echo "not updating unwritable cache $cache_file"
18141 rm -f confcache
18143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18144 # Let make expand exec_prefix.
18145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18147 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18148 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18149 # trailing colons and then remove the whole line if VPATH becomes empty
18150 # (actually we leave an empty line to preserve line numbers).
18151 if test "x$srcdir" = x.; then
18152 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18153 s/:*\$(srcdir):*/:/;
18154 s/:*\${srcdir}:*/:/;
18155 s/:*@srcdir@:*/:/;
18156 s/^\([^=]*=[ ]*\):*/\1/;
18157 s/:*$//;
18158 s/^[^=]*=[ ]*$//;
18162 DEFS=-DHAVE_CONFIG_H
18164 ac_libobjs=
18165 ac_ltlibobjs=
18166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18167 # 1. Remove the extension, and $U if already installed.
18168 ac_i=`echo "$ac_i" |
18169 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18170 # 2. Add them.
18171 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18172 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18173 done
18174 LIBOBJS=$ac_libobjs
18176 LTLIBOBJS=$ac_ltlibobjs
18180 : ${CONFIG_STATUS=./config.status}
18181 ac_clean_files_save=$ac_clean_files
18182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18185 cat >$CONFIG_STATUS <<_ACEOF
18186 #! $SHELL
18187 # Generated by $as_me.
18188 # Run this file to recreate the current configuration.
18189 # Compiler output produced by configure, useful for debugging
18190 # configure, is in config.log if it exists.
18192 debug=false
18193 ac_cs_recheck=false
18194 ac_cs_silent=false
18195 SHELL=\${CONFIG_SHELL-$SHELL}
18196 _ACEOF
18198 cat >>$CONFIG_STATUS <<\_ACEOF
18199 ## --------------------- ##
18200 ## M4sh Initialization. ##
18201 ## --------------------- ##
18203 # Be Bourne compatible
18204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18205 emulate sh
18206 NULLCMD=:
18207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18208 # is contrary to our usage. Disable this feature.
18209 alias -g '${1+"$@"}'='"$@"'
18210 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18211 set -o posix
18214 # Support unset when possible.
18215 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18216 as_unset=unset
18217 else
18218 as_unset=false
18222 # Work around bugs in pre-3.0 UWIN ksh.
18223 $as_unset ENV MAIL MAILPATH
18224 PS1='$ '
18225 PS2='> '
18226 PS4='+ '
18228 # NLS nuisances.
18229 for as_var in \
18230 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18231 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18232 LC_TELEPHONE LC_TIME
18234 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18235 eval $as_var=C; export $as_var
18236 else
18237 $as_unset $as_var
18239 done
18241 # Required to use basename.
18242 if expr a : '\(a\)' >/dev/null 2>&1; then
18243 as_expr=expr
18244 else
18245 as_expr=false
18248 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18249 as_basename=basename
18250 else
18251 as_basename=false
18255 # Name of the executable.
18256 as_me=`$as_basename "$0" ||
18257 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18258 X"$0" : 'X\(//\)$' \| \
18259 X"$0" : 'X\(/\)$' \| \
18260 . : '\(.\)' 2>/dev/null ||
18261 echo X/"$0" |
18262 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18263 /^X\/\(\/\/\)$/{ s//\1/; q; }
18264 /^X\/\(\/\).*/{ s//\1/; q; }
18265 s/.*/./; q'`
18268 # PATH needs CR, and LINENO needs CR and PATH.
18269 # Avoid depending upon Character Ranges.
18270 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18271 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18272 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18273 as_cr_digits='0123456789'
18274 as_cr_alnum=$as_cr_Letters$as_cr_digits
18276 # The user is always right.
18277 if test "${PATH_SEPARATOR+set}" != set; then
18278 echo "#! /bin/sh" >conf$$.sh
18279 echo "exit 0" >>conf$$.sh
18280 chmod +x conf$$.sh
18281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18282 PATH_SEPARATOR=';'
18283 else
18284 PATH_SEPARATOR=:
18286 rm -f conf$$.sh
18290 as_lineno_1=$LINENO
18291 as_lineno_2=$LINENO
18292 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18293 test "x$as_lineno_1" != "x$as_lineno_2" &&
18294 test "x$as_lineno_3" = "x$as_lineno_2" || {
18295 # Find who we are. Look in the path if we contain no path at all
18296 # relative or not.
18297 case $0 in
18298 *[\\/]* ) as_myself=$0 ;;
18299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18300 for as_dir in $PATH
18302 IFS=$as_save_IFS
18303 test -z "$as_dir" && as_dir=.
18304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18305 done
18308 esac
18309 # We did not find ourselves, most probably we were run as `sh COMMAND'
18310 # in which case we are not to be found in the path.
18311 if test "x$as_myself" = x; then
18312 as_myself=$0
18314 if test ! -f "$as_myself"; then
18315 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18316 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18317 { (exit 1); exit 1; }; }
18319 case $CONFIG_SHELL in
18321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18324 IFS=$as_save_IFS
18325 test -z "$as_dir" && as_dir=.
18326 for as_base in sh bash ksh sh5; do
18327 case $as_dir in
18329 if ("$as_dir/$as_base" -c '
18330 as_lineno_1=$LINENO
18331 as_lineno_2=$LINENO
18332 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18333 test "x$as_lineno_1" != "x$as_lineno_2" &&
18334 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18335 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18336 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18337 CONFIG_SHELL=$as_dir/$as_base
18338 export CONFIG_SHELL
18339 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18340 fi;;
18341 esac
18342 done
18343 done
18345 esac
18347 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18348 # uniformly replaced by the line number. The first 'sed' inserts a
18349 # line-number line before each line; the second 'sed' does the real
18350 # work. The second script uses 'N' to pair each line-number line
18351 # with the numbered line, and appends trailing '-' during
18352 # substitution so that $LINENO is not a special case at line end.
18353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18354 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18355 sed '=' <$as_myself |
18356 sed '
18358 s,$,-,
18359 : loop
18360 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18361 t loop
18362 s,-$,,
18363 s,^['$as_cr_digits']*\n,,
18364 ' >$as_me.lineno &&
18365 chmod +x $as_me.lineno ||
18366 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18367 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18368 { (exit 1); exit 1; }; }
18370 # Don't try to exec as it changes $[0], causing all sort of problems
18371 # (the dirname of $[0] is not the place where we might find the
18372 # original and so on. Autoconf is especially sensible to this).
18373 . ./$as_me.lineno
18374 # Exit status is that of the last command.
18375 exit
18379 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18380 *c*,-n*) ECHO_N= ECHO_C='
18381 ' ECHO_T=' ' ;;
18382 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18383 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18384 esac
18386 if expr a : '\(a\)' >/dev/null 2>&1; then
18387 as_expr=expr
18388 else
18389 as_expr=false
18392 rm -f conf$$ conf$$.exe conf$$.file
18393 echo >conf$$.file
18394 if ln -s conf$$.file conf$$ 2>/dev/null; then
18395 # We could just check for DJGPP; but this test a) works b) is more generic
18396 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18397 if test -f conf$$.exe; then
18398 # Don't use ln at all; we don't have any links
18399 as_ln_s='cp -p'
18400 else
18401 as_ln_s='ln -s'
18403 elif ln conf$$.file conf$$ 2>/dev/null; then
18404 as_ln_s=ln
18405 else
18406 as_ln_s='cp -p'
18408 rm -f conf$$ conf$$.exe conf$$.file
18410 if mkdir -p . 2>/dev/null; then
18411 as_mkdir_p=:
18412 else
18413 as_mkdir_p=false
18416 as_executable_p="test -f"
18418 # Sed expression to map a string onto a valid CPP name.
18419 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18421 # Sed expression to map a string onto a valid variable name.
18422 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18425 # IFS
18426 # We need space, tab and new line, in precisely that order.
18427 as_nl='
18429 IFS=" $as_nl"
18431 # CDPATH.
18432 $as_unset CDPATH
18434 exec 6>&1
18436 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18437 # report actual input values of CONFIG_FILES etc. instead of their
18438 # values after options handling. Logging --version etc. is OK.
18439 exec 5>>config.log
18441 echo
18442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18443 ## Running $as_me. ##
18444 _ASBOX
18445 } >&5
18446 cat >&5 <<_CSEOF
18448 This file was extended by $as_me, which was
18449 generated by GNU Autoconf 2.57. Invocation command line was
18451 CONFIG_FILES = $CONFIG_FILES
18452 CONFIG_HEADERS = $CONFIG_HEADERS
18453 CONFIG_LINKS = $CONFIG_LINKS
18454 CONFIG_COMMANDS = $CONFIG_COMMANDS
18455 $ $0 $@
18457 _CSEOF
18458 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18459 echo >&5
18460 _ACEOF
18462 # Files that config.status was made for.
18463 if test -n "$ac_config_files"; then
18464 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18467 if test -n "$ac_config_headers"; then
18468 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18471 if test -n "$ac_config_links"; then
18472 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18475 if test -n "$ac_config_commands"; then
18476 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18479 cat >>$CONFIG_STATUS <<\_ACEOF
18481 ac_cs_usage="\
18482 \`$as_me' instantiates files from templates according to the
18483 current configuration.
18485 Usage: $0 [OPTIONS] [FILE]...
18487 -h, --help print this help, then exit
18488 -V, --version print version number, then exit
18489 -q, --quiet do not print progress messages
18490 -d, --debug don't remove temporary files
18491 --recheck update $as_me by reconfiguring in the same conditions
18492 --file=FILE[:TEMPLATE]
18493 instantiate the configuration file FILE
18494 --header=FILE[:TEMPLATE]
18495 instantiate the configuration header FILE
18497 Configuration files:
18498 $config_files
18500 Configuration headers:
18501 $config_headers
18503 Configuration commands:
18504 $config_commands
18506 Report bugs to <bug-autoconf@gnu.org>."
18507 _ACEOF
18509 cat >>$CONFIG_STATUS <<_ACEOF
18510 ac_cs_version="\\
18511 config.status
18512 configured by $0, generated by GNU Autoconf 2.57,
18513 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18515 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18516 Free Software Foundation, Inc.
18517 This config.status script is free software; the Free Software Foundation
18518 gives unlimited permission to copy, distribute and modify it."
18519 srcdir=$srcdir
18520 INSTALL="$INSTALL"
18521 _ACEOF
18523 cat >>$CONFIG_STATUS <<\_ACEOF
18524 # If no file are specified by the user, then we need to provide default
18525 # value. By we need to know if files were specified by the user.
18526 ac_need_defaults=:
18527 while test $# != 0
18529 case $1 in
18530 --*=*)
18531 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18532 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18533 ac_shift=:
18536 ac_option=$1
18537 ac_optarg=$2
18538 ac_shift=shift
18540 *) # This is not an option, so the user has probably given explicit
18541 # arguments.
18542 ac_option=$1
18543 ac_need_defaults=false;;
18544 esac
18546 case $ac_option in
18547 # Handling of the options.
18548 _ACEOF
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18551 ac_cs_recheck=: ;;
18552 --version | --vers* | -V )
18553 echo "$ac_cs_version"; exit 0 ;;
18554 --he | --h)
18555 # Conflict between --help and --header
18556 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18557 Try \`$0 --help' for more information." >&5
18558 echo "$as_me: error: ambiguous option: $1
18559 Try \`$0 --help' for more information." >&2;}
18560 { (exit 1); exit 1; }; };;
18561 --help | --hel | -h )
18562 echo "$ac_cs_usage"; exit 0 ;;
18563 --debug | --d* | -d )
18564 debug=: ;;
18565 --file | --fil | --fi | --f )
18566 $ac_shift
18567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18568 ac_need_defaults=false;;
18569 --header | --heade | --head | --hea )
18570 $ac_shift
18571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18572 ac_need_defaults=false;;
18573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18575 ac_cs_silent=: ;;
18577 # This is an error.
18578 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18579 Try \`$0 --help' for more information." >&5
18580 echo "$as_me: error: unrecognized option: $1
18581 Try \`$0 --help' for more information." >&2;}
18582 { (exit 1); exit 1; }; } ;;
18584 *) ac_config_targets="$ac_config_targets $1" ;;
18586 esac
18587 shift
18588 done
18590 ac_configure_extra_args=
18592 if $ac_cs_silent; then
18593 exec 6>/dev/null
18594 ac_configure_extra_args="$ac_configure_extra_args --silent"
18597 _ACEOF
18598 cat >>$CONFIG_STATUS <<_ACEOF
18599 if \$ac_cs_recheck; then
18600 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18601 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18604 _ACEOF
18606 cat >>$CONFIG_STATUS <<_ACEOF
18608 # INIT-COMMANDS section.
18611 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18613 _ACEOF
18617 cat >>$CONFIG_STATUS <<\_ACEOF
18618 for ac_config_target in $ac_config_targets
18620 case "$ac_config_target" in
18621 # Handling of arguments.
18622 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18623 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18624 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18625 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18626 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18627 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18628 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18629 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
18630 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
18631 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18632 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18633 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18634 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18635 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18636 { (exit 1); exit 1; }; };;
18637 esac
18638 done
18640 # If the user did not use the arguments to specify the items to instantiate,
18641 # then the envvar interface is used. Set only those that are not.
18642 # We use the long form for the default assignment because of an extremely
18643 # bizarre bug on SunOS 4.1.3.
18644 if $ac_need_defaults; then
18645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18650 # Have a temporary directory for convenience. Make it in the build tree
18651 # simply because there is no reason to put it here, and in addition,
18652 # creating and moving files from /tmp can sometimes cause problems.
18653 # Create a temporary directory, and hook for its removal unless debugging.
18654 $debug ||
18656 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18657 trap '{ (exit 1); exit 1; }' 1 2 13 15
18660 # Create a (secure) tmp directory for tmp files.
18663 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18664 test -n "$tmp" && test -d "$tmp"
18665 } ||
18667 tmp=./confstat$$-$RANDOM
18668 (umask 077 && mkdir $tmp)
18669 } ||
18671 echo "$me: cannot create a temporary directory in ." >&2
18672 { (exit 1); exit 1; }
18675 _ACEOF
18677 cat >>$CONFIG_STATUS <<_ACEOF
18680 # CONFIG_FILES section.
18683 # No need to generate the scripts if there are no CONFIG_FILES.
18684 # This happens for instance when ./config.status config.h
18685 if test -n "\$CONFIG_FILES"; then
18686 # Protect against being on the right side of a sed subst in config.status.
18687 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18688 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18689 s,@SHELL@,$SHELL,;t t
18690 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18691 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18692 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18693 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18694 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18695 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18696 s,@exec_prefix@,$exec_prefix,;t t
18697 s,@prefix@,$prefix,;t t
18698 s,@program_transform_name@,$program_transform_name,;t t
18699 s,@bindir@,$bindir,;t t
18700 s,@sbindir@,$sbindir,;t t
18701 s,@libexecdir@,$libexecdir,;t t
18702 s,@datadir@,$datadir,;t t
18703 s,@sysconfdir@,$sysconfdir,;t t
18704 s,@sharedstatedir@,$sharedstatedir,;t t
18705 s,@localstatedir@,$localstatedir,;t t
18706 s,@libdir@,$libdir,;t t
18707 s,@includedir@,$includedir,;t t
18708 s,@oldincludedir@,$oldincludedir,;t t
18709 s,@infodir@,$infodir,;t t
18710 s,@mandir@,$mandir,;t t
18711 s,@build_alias@,$build_alias,;t t
18712 s,@host_alias@,$host_alias,;t t
18713 s,@target_alias@,$target_alias,;t t
18714 s,@DEFS@,$DEFS,;t t
18715 s,@ECHO_C@,$ECHO_C,;t t
18716 s,@ECHO_N@,$ECHO_N,;t t
18717 s,@ECHO_T@,$ECHO_T,;t t
18718 s,@LIBS@,$LIBS,;t t
18719 s,@build@,$build,;t t
18720 s,@build_cpu@,$build_cpu,;t t
18721 s,@build_vendor@,$build_vendor,;t t
18722 s,@build_os@,$build_os,;t t
18723 s,@host@,$host,;t t
18724 s,@host_cpu@,$host_cpu,;t t
18725 s,@host_vendor@,$host_vendor,;t t
18726 s,@host_os@,$host_os,;t t
18727 s,@CC@,$CC,;t t
18728 s,@CFLAGS@,$CFLAGS,;t t
18729 s,@LDFLAGS@,$LDFLAGS,;t t
18730 s,@CPPFLAGS@,$CPPFLAGS,;t t
18731 s,@ac_ct_CC@,$ac_ct_CC,;t t
18732 s,@EXEEXT@,$EXEEXT,;t t
18733 s,@OBJEXT@,$OBJEXT,;t t
18734 s,@LN_S@,$LN_S,;t t
18735 s,@CPP@,$CPP,;t t
18736 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18737 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18738 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18739 s,@RANLIB@,$RANLIB,;t t
18740 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18741 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
18742 s,@EGREP@,$EGREP,;t t
18743 s,@LIBSOUND@,$LIBSOUND,;t t
18744 s,@SET_MAKE@,$SET_MAKE,;t t
18745 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18746 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18747 s,@GTK_LIBS@,$GTK_LIBS,;t t
18748 s,@ALLOCA@,$ALLOCA,;t t
18749 s,@liblockfile@,$liblockfile,;t t
18750 s,@LIBOBJS@,$LIBOBJS,;t t
18751 s,@NEED_SETGID@,$NEED_SETGID,;t t
18752 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18753 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18754 s,@version@,$version,;t t
18755 s,@configuration@,$configuration,;t t
18756 s,@canonical@,$canonical,;t t
18757 s,@srcdir@,$srcdir,;t t
18758 s,@lispdir@,$lispdir,;t t
18759 s,@locallisppath@,$locallisppath,;t t
18760 s,@lisppath@,$lisppath,;t t
18761 s,@x_default_search_path@,$x_default_search_path,;t t
18762 s,@etcdir@,$etcdir,;t t
18763 s,@archlibdir@,$archlibdir,;t t
18764 s,@docdir@,$docdir,;t t
18765 s,@bitmapdir@,$bitmapdir,;t t
18766 s,@gamedir@,$gamedir,;t t
18767 s,@gameuser@,$gameuser,;t t
18768 s,@c_switch_system@,$c_switch_system,;t t
18769 s,@c_switch_machine@,$c_switch_machine,;t t
18770 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18771 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18772 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18773 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18774 s,@machfile@,$machfile,;t t
18775 s,@opsysfile@,$opsysfile,;t t
18776 s,@carbon_appdir@,$carbon_appdir,;t t
18777 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18778 CEOF
18780 _ACEOF
18782 cat >>$CONFIG_STATUS <<\_ACEOF
18783 # Split the substitutions into bite-sized pieces for seds with
18784 # small command number limits, like on Digital OSF/1 and HP-UX.
18785 ac_max_sed_lines=48
18786 ac_sed_frag=1 # Number of current file.
18787 ac_beg=1 # First line for current file.
18788 ac_end=$ac_max_sed_lines # Line after last line for current file.
18789 ac_more_lines=:
18790 ac_sed_cmds=
18791 while $ac_more_lines; do
18792 if test $ac_beg -gt 1; then
18793 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18794 else
18795 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18797 if test ! -s $tmp/subs.frag; then
18798 ac_more_lines=false
18799 else
18800 # The purpose of the label and of the branching condition is to
18801 # speed up the sed processing (if there are no `@' at all, there
18802 # is no need to browse any of the substitutions).
18803 # These are the two extra sed commands mentioned above.
18804 (echo ':t
18805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18806 if test -z "$ac_sed_cmds"; then
18807 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18808 else
18809 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18811 ac_sed_frag=`expr $ac_sed_frag + 1`
18812 ac_beg=$ac_end
18813 ac_end=`expr $ac_end + $ac_max_sed_lines`
18815 done
18816 if test -z "$ac_sed_cmds"; then
18817 ac_sed_cmds=cat
18819 fi # test -n "$CONFIG_FILES"
18821 _ACEOF
18822 cat >>$CONFIG_STATUS <<\_ACEOF
18823 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18825 case $ac_file in
18826 - | *:- | *:-:* ) # input from stdin
18827 cat >$tmp/stdin
18828 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18829 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18830 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18832 * ) ac_file_in=$ac_file.in ;;
18833 esac
18835 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18836 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18838 X"$ac_file" : 'X\(//\)[^/]' \| \
18839 X"$ac_file" : 'X\(//\)$' \| \
18840 X"$ac_file" : 'X\(/\)' \| \
18841 . : '\(.\)' 2>/dev/null ||
18842 echo X"$ac_file" |
18843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18845 /^X\(\/\/\)$/{ s//\1/; q; }
18846 /^X\(\/\).*/{ s//\1/; q; }
18847 s/.*/./; q'`
18848 { if $as_mkdir_p; then
18849 mkdir -p "$ac_dir"
18850 else
18851 as_dir="$ac_dir"
18852 as_dirs=
18853 while test ! -d "$as_dir"; do
18854 as_dirs="$as_dir $as_dirs"
18855 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18857 X"$as_dir" : 'X\(//\)[^/]' \| \
18858 X"$as_dir" : 'X\(//\)$' \| \
18859 X"$as_dir" : 'X\(/\)' \| \
18860 . : '\(.\)' 2>/dev/null ||
18861 echo X"$as_dir" |
18862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18864 /^X\(\/\/\)$/{ s//\1/; q; }
18865 /^X\(\/\).*/{ s//\1/; q; }
18866 s/.*/./; q'`
18867 done
18868 test ! -n "$as_dirs" || mkdir $as_dirs
18869 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18870 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18871 { (exit 1); exit 1; }; }; }
18873 ac_builddir=.
18875 if test "$ac_dir" != .; then
18876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18877 # A "../" for each directory in $ac_dir_suffix.
18878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18879 else
18880 ac_dir_suffix= ac_top_builddir=
18883 case $srcdir in
18884 .) # No --srcdir option. We are building in place.
18885 ac_srcdir=.
18886 if test -z "$ac_top_builddir"; then
18887 ac_top_srcdir=.
18888 else
18889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18890 fi ;;
18891 [\\/]* | ?:[\\/]* ) # Absolute path.
18892 ac_srcdir=$srcdir$ac_dir_suffix;
18893 ac_top_srcdir=$srcdir ;;
18894 *) # Relative path.
18895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18897 esac
18898 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18899 # absolute.
18900 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18901 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18902 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18903 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18906 case $INSTALL in
18907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18908 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18909 esac
18911 if test x"$ac_file" != x-; then
18912 { echo "$as_me:$LINENO: creating $ac_file" >&5
18913 echo "$as_me: creating $ac_file" >&6;}
18914 rm -f "$ac_file"
18916 # Let's still pretend it is `configure' which instantiates (i.e., don't
18917 # use $as_me), people would be surprised to read:
18918 # /* config.h. Generated by config.status. */
18919 if test x"$ac_file" = x-; then
18920 configure_input=
18921 else
18922 configure_input="$ac_file. "
18924 configure_input=$configure_input"Generated from `echo $ac_file_in |
18925 sed 's,.*/,,'` by configure."
18927 # First look for the input files in the build tree, otherwise in the
18928 # src tree.
18929 ac_file_inputs=`IFS=:
18930 for f in $ac_file_in; do
18931 case $f in
18932 -) echo $tmp/stdin ;;
18933 [\\/$]*)
18934 # Absolute (can't be DOS-style, as IFS=:)
18935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18936 echo "$as_me: error: cannot find input file: $f" >&2;}
18937 { (exit 1); exit 1; }; }
18938 echo $f;;
18939 *) # Relative
18940 if test -f "$f"; then
18941 # Build tree
18942 echo $f
18943 elif test -f "$srcdir/$f"; then
18944 # Source tree
18945 echo $srcdir/$f
18946 else
18947 # /dev/null tree
18948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18949 echo "$as_me: error: cannot find input file: $f" >&2;}
18950 { (exit 1); exit 1; }; }
18951 fi;;
18952 esac
18953 done` || { (exit 1); exit 1; }
18954 _ACEOF
18955 cat >>$CONFIG_STATUS <<_ACEOF
18956 sed "$ac_vpsub
18957 $extrasub
18958 _ACEOF
18959 cat >>$CONFIG_STATUS <<\_ACEOF
18961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18962 s,@configure_input@,$configure_input,;t t
18963 s,@srcdir@,$ac_srcdir,;t t
18964 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18965 s,@top_srcdir@,$ac_top_srcdir,;t t
18966 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18967 s,@builddir@,$ac_builddir,;t t
18968 s,@abs_builddir@,$ac_abs_builddir,;t t
18969 s,@top_builddir@,$ac_top_builddir,;t t
18970 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18971 s,@INSTALL@,$ac_INSTALL,;t t
18972 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18973 rm -f $tmp/stdin
18974 if test x"$ac_file" != x-; then
18975 mv $tmp/out $ac_file
18976 else
18977 cat $tmp/out
18978 rm -f $tmp/out
18981 done
18982 _ACEOF
18983 cat >>$CONFIG_STATUS <<\_ACEOF
18986 # CONFIG_HEADER section.
18989 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18990 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18992 # ac_d sets the value in "#define NAME VALUE" lines.
18993 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18994 ac_dB='[ ].*$,\1#\2'
18995 ac_dC=' '
18996 ac_dD=',;t'
18997 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18998 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18999 ac_uB='$,\1#\2define\3'
19000 ac_uC=' '
19001 ac_uD=',;t'
19003 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19005 case $ac_file in
19006 - | *:- | *:-:* ) # input from stdin
19007 cat >$tmp/stdin
19008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19012 * ) ac_file_in=$ac_file.in ;;
19013 esac
19015 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19016 echo "$as_me: creating $ac_file" >&6;}
19018 # First look for the input files in the build tree, otherwise in the
19019 # src tree.
19020 ac_file_inputs=`IFS=:
19021 for f in $ac_file_in; do
19022 case $f in
19023 -) echo $tmp/stdin ;;
19024 [\\/$]*)
19025 # Absolute (can't be DOS-style, as IFS=:)
19026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19027 echo "$as_me: error: cannot find input file: $f" >&2;}
19028 { (exit 1); exit 1; }; }
19029 echo $f;;
19030 *) # Relative
19031 if test -f "$f"; then
19032 # Build tree
19033 echo $f
19034 elif test -f "$srcdir/$f"; then
19035 # Source tree
19036 echo $srcdir/$f
19037 else
19038 # /dev/null tree
19039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19040 echo "$as_me: error: cannot find input file: $f" >&2;}
19041 { (exit 1); exit 1; }; }
19042 fi;;
19043 esac
19044 done` || { (exit 1); exit 1; }
19045 # Remove the trailing spaces.
19046 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19048 _ACEOF
19050 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19051 # `conftest.undefs', that substitutes the proper values into
19052 # config.h.in to produce config.h. The first handles `#define'
19053 # templates, and the second `#undef' templates.
19054 # And first: Protect against being on the right side of a sed subst in
19055 # config.status. Protect against being in an unquoted here document
19056 # in config.status.
19057 rm -f conftest.defines conftest.undefs
19058 # Using a here document instead of a string reduces the quoting nightmare.
19059 # Putting comments in sed scripts is not portable.
19061 # `end' is used to avoid that the second main sed command (meant for
19062 # 0-ary CPP macros) applies to n-ary macro definitions.
19063 # See the Autoconf documentation for `clear'.
19064 cat >confdef2sed.sed <<\_ACEOF
19065 s/[\\&,]/\\&/g
19066 s,[\\$`],\\&,g
19067 t clear
19068 : clear
19069 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19070 t end
19071 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19072 : end
19073 _ACEOF
19074 # If some macros were called several times there might be several times
19075 # the same #defines, which is useless. Nevertheless, we may not want to
19076 # sort them, since we want the *last* AC-DEFINE to be honored.
19077 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19078 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19079 rm -f confdef2sed.sed
19081 # This sed command replaces #undef with comments. This is necessary, for
19082 # example, in the case of _POSIX_SOURCE, which is predefined and required
19083 # on some systems where configure will not decide to define it.
19084 cat >>conftest.undefs <<\_ACEOF
19085 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19086 _ACEOF
19088 # Break up conftest.defines because some shells have a limit on the size
19089 # of here documents, and old seds have small limits too (100 cmds).
19090 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19091 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19092 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19093 echo ' :' >>$CONFIG_STATUS
19094 rm -f conftest.tail
19095 while grep . conftest.defines >/dev/null
19097 # Write a limited-size here document to $tmp/defines.sed.
19098 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19099 # Speed up: don't consider the non `#define' lines.
19100 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19101 # Work around the forget-to-reset-the-flag bug.
19102 echo 't clr' >>$CONFIG_STATUS
19103 echo ': clr' >>$CONFIG_STATUS
19104 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19105 echo 'CEOF
19106 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19107 rm -f $tmp/in
19108 mv $tmp/out $tmp/in
19109 ' >>$CONFIG_STATUS
19110 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19111 rm -f conftest.defines
19112 mv conftest.tail conftest.defines
19113 done
19114 rm -f conftest.defines
19115 echo ' fi # grep' >>$CONFIG_STATUS
19116 echo >>$CONFIG_STATUS
19118 # Break up conftest.undefs because some shells have a limit on the size
19119 # of here documents, and old seds have small limits too (100 cmds).
19120 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19121 rm -f conftest.tail
19122 while grep . conftest.undefs >/dev/null
19124 # Write a limited-size here document to $tmp/undefs.sed.
19125 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19126 # Speed up: don't consider the non `#undef'
19127 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19128 # Work around the forget-to-reset-the-flag bug.
19129 echo 't clr' >>$CONFIG_STATUS
19130 echo ': clr' >>$CONFIG_STATUS
19131 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19132 echo 'CEOF
19133 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19134 rm -f $tmp/in
19135 mv $tmp/out $tmp/in
19136 ' >>$CONFIG_STATUS
19137 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19138 rm -f conftest.undefs
19139 mv conftest.tail conftest.undefs
19140 done
19141 rm -f conftest.undefs
19143 cat >>$CONFIG_STATUS <<\_ACEOF
19144 # Let's still pretend it is `configure' which instantiates (i.e., don't
19145 # use $as_me), people would be surprised to read:
19146 # /* config.h. Generated by config.status. */
19147 if test x"$ac_file" = x-; then
19148 echo "/* Generated by configure. */" >$tmp/config.h
19149 else
19150 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19152 cat $tmp/in >>$tmp/config.h
19153 rm -f $tmp/in
19154 if test x"$ac_file" != x-; then
19155 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19157 echo "$as_me: $ac_file is unchanged" >&6;}
19158 else
19159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19161 X"$ac_file" : 'X\(//\)[^/]' \| \
19162 X"$ac_file" : 'X\(//\)$' \| \
19163 X"$ac_file" : 'X\(/\)' \| \
19164 . : '\(.\)' 2>/dev/null ||
19165 echo X"$ac_file" |
19166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19168 /^X\(\/\/\)$/{ s//\1/; q; }
19169 /^X\(\/\).*/{ s//\1/; q; }
19170 s/.*/./; q'`
19171 { if $as_mkdir_p; then
19172 mkdir -p "$ac_dir"
19173 else
19174 as_dir="$ac_dir"
19175 as_dirs=
19176 while test ! -d "$as_dir"; do
19177 as_dirs="$as_dir $as_dirs"
19178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19180 X"$as_dir" : 'X\(//\)[^/]' \| \
19181 X"$as_dir" : 'X\(//\)$' \| \
19182 X"$as_dir" : 'X\(/\)' \| \
19183 . : '\(.\)' 2>/dev/null ||
19184 echo X"$as_dir" |
19185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19187 /^X\(\/\/\)$/{ s//\1/; q; }
19188 /^X\(\/\).*/{ s//\1/; q; }
19189 s/.*/./; q'`
19190 done
19191 test ! -n "$as_dirs" || mkdir $as_dirs
19192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19193 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19194 { (exit 1); exit 1; }; }; }
19196 rm -f $ac_file
19197 mv $tmp/config.h $ac_file
19199 else
19200 cat $tmp/config.h
19201 rm -f $tmp/config.h
19203 done
19204 _ACEOF
19205 cat >>$CONFIG_STATUS <<\_ACEOF
19208 # CONFIG_COMMANDS section.
19210 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19211 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19212 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19213 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215 X"$ac_dest" : 'X\(//\)[^/]' \| \
19216 X"$ac_dest" : 'X\(//\)$' \| \
19217 X"$ac_dest" : 'X\(/\)' \| \
19218 . : '\(.\)' 2>/dev/null ||
19219 echo X"$ac_dest" |
19220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19222 /^X\(\/\/\)$/{ s//\1/; q; }
19223 /^X\(\/\).*/{ s//\1/; q; }
19224 s/.*/./; q'`
19225 ac_builddir=.
19227 if test "$ac_dir" != .; then
19228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19229 # A "../" for each directory in $ac_dir_suffix.
19230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19231 else
19232 ac_dir_suffix= ac_top_builddir=
19235 case $srcdir in
19236 .) # No --srcdir option. We are building in place.
19237 ac_srcdir=.
19238 if test -z "$ac_top_builddir"; then
19239 ac_top_srcdir=.
19240 else
19241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19242 fi ;;
19243 [\\/]* | ?:[\\/]* ) # Absolute path.
19244 ac_srcdir=$srcdir$ac_dir_suffix;
19245 ac_top_srcdir=$srcdir ;;
19246 *) # Relative path.
19247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19249 esac
19250 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19251 # absolute.
19252 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19253 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19254 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19255 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19258 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19259 echo "$as_me: executing $ac_dest commands" >&6;}
19260 case $ac_dest in
19261 default )
19263 ### Make the necessary directories, if they don't exist.
19264 for dir in etc lisp ; do
19265 test -d ${dir} || mkdir ${dir}
19266 done
19268 # Build src/Makefile from ${srcdir}/src/Makefile.c
19269 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19270 # This must be done after src/config.h is built, since we rely on that file.
19272 # Now get this: Some word that is part of the ${srcdir} directory name
19273 # or the ${configuration} value might, just might, happen to be an
19274 # identifier like `sun4' or `i386' or something, and be predefined by
19275 # the C preprocessor to some helpful value like 1, or maybe the empty
19276 # string. Needless to say consequent macro substitutions are less
19277 # than conducive to the makefile finding the correct directory.
19278 undefs="`echo $top_srcdir $configuration $canonical |
19279 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19280 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19283 echo creating src/epaths.h
19284 ${MAKE-make} epaths-force
19286 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19287 # `..' to `. .' unless invoked with -traditional
19289 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
19290 CPPFLAGS="$CPPFLAGS -traditional"
19293 echo creating lib-src/Makefile
19294 ( cd lib-src
19295 rm -f junk.c junk1.c junk2.c
19296 sed -e '/start of cpp stuff/q' \
19297 < Makefile.c > junk1.c
19298 sed -e '1,/start of cpp stuff/d'\
19299 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19300 < Makefile.c > junk.c
19301 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19302 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19303 cat junk1.c junk2.c > Makefile.new
19304 rm -f junk.c junk1.c junk2.c
19305 chmod 444 Makefile.new
19306 mv -f Makefile.new Makefile
19309 echo creating src/Makefile
19310 ( cd src
19311 rm -f junk.c junk1.c junk2.c
19312 sed -e '/start of cpp stuff/q' \
19313 < Makefile.c > junk1.c
19314 sed -e '1,/start of cpp stuff/d'\
19315 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19316 < Makefile.c > junk.c
19317 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
19318 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19319 cat junk1.c junk2.c > Makefile.new
19320 rm -f junk.c junk1.c junk2.c
19321 chmod 444 Makefile.new
19322 mv -f Makefile.new Makefile
19325 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19326 echo creating src/.gdbinit
19327 echo source $srcdir/src/.gdbinit > src/.gdbinit
19330 # This is how we know whether to re-run configure in certain cases.
19331 touch src/config.stamp
19334 esac
19335 done
19336 _ACEOF
19338 cat >>$CONFIG_STATUS <<\_ACEOF
19340 { (exit 0); exit 0; }
19341 _ACEOF
19342 chmod +x $CONFIG_STATUS
19343 ac_clean_files=$ac_clean_files_save
19346 # configure is writing to config.log, and then calls config.status.
19347 # config.status does its own redirection, appending to config.log.
19348 # Unfortunately, on DOS this fails, as config.log is still kept open
19349 # by configure, so config.status won't be able to write to it; its
19350 # output is simply discarded. So we exec the FD to /dev/null,
19351 # effectively closing config.log, so it can be properly (re)opened and
19352 # appended to by config.status. When coming back to configure, we
19353 # need to make the FD available again.
19354 if test "$no_create" != yes; then
19355 ac_cs_success=:
19356 ac_config_status_args=
19357 test "$silent" = yes &&
19358 ac_config_status_args="$ac_config_status_args --quiet"
19359 exec 5>/dev/null
19360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19361 exec 5>>config.log
19362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19363 # would make configure fail if this is the last instruction.
19364 $ac_cs_success || { (exit 1); exit 1; }