*** empty log message ***
[emacs.git] / configure
blobce011807fb275bd5a3aca3883320b3893c4d325d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 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 MAINT 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'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1009 $ $0 $@
1011 _ACEOF
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 _ASUNAME
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1045 } >&5
1047 cat >&5 <<_ACEOF
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1054 _ACEOF
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1069 for ac_arg
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1116 echo
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 esac;
1139 echo
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1240 done
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1360 gameuser=games
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1377 else :
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1453 esac
1454 with_x_toolkit=$val
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1577 extrasub='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 canonical=$host
1672 configuration=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
1821 machine=macppc opsys=gnu-linux
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2073 hppa*-hp-hpux10* )
2074 machine=hp800 opsys=hpux10
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2118 s390-*-linux-gnu* )
2119 machine=ibms390 opsys=gnu-linux
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2134 machine=ibmrs6000 opsys=aix4-2
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS=-32
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2455 *-sunos5* | *-solaris* )
2456 opsys=sol2-6
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2470 *) ;;
2471 esac
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
2556 *-cygwin ) opsys=cygwin ;;
2557 *-lynxos* ) opsys=lynxos ;;
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2571 *-sco3.2v5* ) opsys=sco5
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2580 *-386bsd* ) opsys=386bsd ;;
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2593 machine=mips opsys=gnu-linux
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
2623 machine=amdx86-64 opsys=gnu-linux
2627 unported=yes
2629 esac
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2636 ### above.
2637 if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2664 unported=yes
2666 esac
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile="m/${machine}.h"
2680 opsysfile="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS="$CFLAGS"
2689 case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
2693 esac
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2730 else
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2773 CC=$ac_ct_CC
2774 else
2775 CC="$ac_cv_prog_CC"
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2853 CC=$ac_ct_CC
2854 else
2855 CC="$ac_cv_prog_CC"
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2953 done
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2989 else
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
2995 done
2997 CC=$ac_ct_CC
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3037 main ()
3041 return 0;
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059 # resort.
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063 ac_cv_exeext=
3064 # b.out is created by i960 compilers.
3065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3071 conftest.$ac_ext )
3072 # This is the source file.
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
3086 break;;
3087 esac
3088 done
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
3118 else
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 export ac_cv_exeext
3161 break;;
3162 * ) break;;
3163 esac
3164 done
3165 else
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212 done
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3250 return 0;
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_compiler_gnu=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 CFLAGS="-g"
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_g=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cv_prog_cc_g=no
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_prog_cc_stdc=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3384 return p[i];
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3412 main ()
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 return 0;
3418 _ACEOF
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452 break
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f conftest.err conftest.$ac_objext
3459 done
3460 rm -f conftest.$ac_ext conftest.$ac_objext
3461 CC=$ac_save_CC
3465 case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473 esac
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #ifndef __cplusplus
3481 choke me
3482 #endif
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
3507 '' \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3512 'void exit (int);'
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_declaration
3521 #include <stdlib.h>
3523 main ()
3525 exit (42);
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 continue
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_declaration
3568 main ()
3570 exit (42);
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 break
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 rm -f conftest*
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634 then
3635 CPP="$NON_GNU_CPP"
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643 then
3644 CC="$NON_GNU_CC"
3647 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $GCC_TEST_OPTIONS"
3652 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661 LN_S=$as_ln_s
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708 Syntax error
3709 _ACEOF
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721 else
3722 ac_cpp_err=
3724 else
3725 ac_cpp_err=yes
3727 if test -z "$ac_cpp_err"; then
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Broken: fails on valid input.
3734 continue
3736 rm -f conftest.err conftest.$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3759 else
3760 ac_cpp_err=
3762 else
3763 ac_cpp_err=yes
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767 continue
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 # Passes both tests.
3773 ac_preproc_ok=:
3774 break
3776 rm -f conftest.err conftest.$ac_ext
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3782 break
3785 done
3786 ac_cv_prog_CPP=$CPP
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815 Syntax error
3816 _ACEOF
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3828 else
3829 ac_cpp_err=
3831 else
3832 ac_cpp_err=yes
3834 if test -z "$ac_cpp_err"; then
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Broken: fails on valid input.
3841 continue
3843 rm -f conftest.err conftest.$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 else
3867 ac_cpp_err=
3869 else
3870 ac_cpp_err=yes
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874 continue
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Passes both tests.
3880 ac_preproc_ok=:
3881 break
3883 rm -f conftest.err conftest.$ac_ext
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then
3890 else
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3910 # AIX /bin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929 case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3933 /usr/ucb/* ) ;;
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3954 done
3955 done
3957 esac
3958 done
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL=$ac_cv_path_install
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4011 RANLIB=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB=$ac_ct_RANLIB
4060 else
4061 RANLIB="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4092 esac
4094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in /usr/sbin
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4131 esac
4133 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in /sbin
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4171 esac
4173 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4197 echo "$as_me:$LINENO: checking for egrep" >&5
4198 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4199 if test "${ac_cv_prog_egrep+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4203 then ac_cv_prog_egrep='grep -E'
4204 else ac_cv_prog_egrep='egrep'
4207 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4208 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4209 EGREP=$ac_cv_prog_egrep
4213 echo "$as_me:$LINENO: checking for AIX" >&5
4214 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #ifdef _AIX
4223 #endif
4225 _ACEOF
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP "yes" >/dev/null 2>&1; then
4228 echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6
4230 cat >>confdefs.h <<\_ACEOF
4231 #define _ALL_SOURCE 1
4232 _ACEOF
4234 else
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4238 rm -f conftest*
4242 #### Extract some information from the operating system and machine files.
4244 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4245 - which libraries the lib-src programs will want, and
4246 - whether the GNU malloc routines are usable..." >&5
4247 echo "$as_me: checking the machine- and system-dependent files to find out
4248 - which libraries the lib-src programs will want, and
4249 - whether the GNU malloc routines are usable..." >&6;}
4251 ### First figure out CFLAGS (which we use for running the compiler here)
4252 ### and REAL_CFLAGS (which we use for real compilation).
4253 ### The two are the same except on a few systems, where they are made
4254 ### different to work around various lossages. For example,
4255 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4256 ### as implying static linking.
4258 ### If the CFLAGS env var is specified, we use that value
4259 ### instead of the default.
4261 ### It's not important that this name contain the PID; you can't run
4262 ### two configures in the same directory and have anything work
4263 ### anyway.
4264 tempcname="conftest.c"
4266 echo '
4267 #include "'${srcdir}'/src/'${opsysfile}'"
4268 #include "'${srcdir}'/src/'${machfile}'"
4269 #ifndef LIBS_MACHINE
4270 #define LIBS_MACHINE
4271 #endif
4272 #ifndef LIBS_SYSTEM
4273 #define LIBS_SYSTEM
4274 #endif
4275 #ifndef C_SWITCH_SYSTEM
4276 #define C_SWITCH_SYSTEM
4277 #endif
4278 #ifndef C_SWITCH_MACHINE
4279 #define C_SWITCH_MACHINE
4280 #endif
4281 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4282 configure___ c_switch_system=C_SWITCH_SYSTEM
4283 configure___ c_switch_machine=C_SWITCH_MACHINE
4285 #ifndef LIB_X11_LIB
4286 #define LIB_X11_LIB -lX11
4287 #endif
4289 #ifndef LIBX11_MACHINE
4290 #define LIBX11_MACHINE
4291 #endif
4293 #ifndef LIBX11_SYSTEM
4294 #define LIBX11_SYSTEM
4295 #endif
4296 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4298 #ifdef UNEXEC
4299 configure___ unexec=UNEXEC
4300 #else
4301 configure___ unexec=unexec.o
4302 #endif
4304 #ifdef SYSTEM_MALLOC
4305 configure___ system_malloc=yes
4306 #else
4307 configure___ system_malloc=no
4308 #endif
4310 #ifdef USE_MMAP_FOR_BUFFERS
4311 configure___ use_mmap_for_buffers=yes
4312 #else
4313 configure___ use_mmap_for_buffers=no
4314 #endif
4316 #ifndef C_DEBUG_SWITCH
4317 #define C_DEBUG_SWITCH -g
4318 #endif
4320 #ifndef C_OPTIMIZE_SWITCH
4321 #ifdef __GNUC__
4322 #define C_OPTIMIZE_SWITCH -O2
4323 #else
4324 #define C_OPTIMIZE_SWITCH -O
4325 #endif
4326 #endif
4328 #ifndef LD_SWITCH_MACHINE
4329 #define LD_SWITCH_MACHINE
4330 #endif
4332 #ifndef LD_SWITCH_SYSTEM
4333 #define LD_SWITCH_SYSTEM
4334 #endif
4336 #ifndef LD_SWITCH_X_SITE_AUX
4337 #define LD_SWITCH_X_SITE_AUX
4338 #endif
4340 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4341 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4343 #ifdef THIS_IS_CONFIGURE
4345 /* Get the CFLAGS for tests in configure. */
4346 #ifdef __GNUC__
4347 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4348 #else
4349 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4350 #endif
4352 #else /* not THIS_IS_CONFIGURE */
4354 /* Get the CFLAGS for real compilation. */
4355 #ifdef __GNUC__
4356 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4357 #else
4358 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4359 #endif
4361 #endif /* not THIS_IS_CONFIGURE */
4362 ' > ${tempcname}
4364 # The value of CPP is a quoted variable reference, so we need to do this
4365 # to get its actual value...
4366 CPP=`eval "echo $CPP"`
4367 eval `${CPP} -Isrc ${tempcname} \
4368 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4369 if test "x$SPECIFIED_CFLAGS" = x; then
4370 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4371 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4372 else
4373 REAL_CFLAGS="$CFLAGS"
4375 rm ${tempcname}
4377 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4379 ### Make sure subsequent tests use flags consistent with the build flags.
4381 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4382 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4383 else
4384 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4390 cat >>confdefs.h <<\_ACEOF
4391 #define _GNU_SOURCE 1
4392 _ACEOF
4396 # Check whether --enable-largefile or --disable-largefile was given.
4397 if test "${enable_largefile+set}" = set; then
4398 enableval="$enable_largefile"
4401 if test "$enable_largefile" != no; then
4403 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4404 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4405 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 ac_cv_sys_largefile_CC=no
4409 if test "$GCC" != yes; then
4410 ac_save_CC=$CC
4411 while :; do
4412 # IRIX 6.2 and later do not support large files by default,
4413 # so use the C compiler's -n32 option if that helps.
4414 cat >conftest.$ac_ext <<_ACEOF
4415 /* confdefs.h. */
4416 _ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4420 #include <sys/types.h>
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423 since some C++ compilers masquerading as C compilers
4424 incorrectly reject 9223372036854775807. */
4425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427 && LARGE_OFF_T % 2147483647 == 1)
4428 ? 1 : -1];
4430 main ()
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 break
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4465 rm -f conftest.err conftest.$ac_objext
4466 CC="$CC -n32"
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
4476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_sys_largefile_CC=' -n32'; break
4490 else
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4495 rm -f conftest.err conftest.$ac_objext
4496 break
4497 done
4498 CC=$ac_save_CC
4499 rm -f conftest.$ac_ext
4502 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4503 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4504 if test "$ac_cv_sys_largefile_CC" != no; then
4505 CC=$CC$ac_cv_sys_largefile_CC
4508 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4509 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4510 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 while :; do
4514 ac_cv_sys_file_offset_bits=no
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 #include <sys/types.h>
4522 /* Check that off_t can represent 2**63 - 1 correctly.
4523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4524 since some C++ compilers masquerading as C compilers
4525 incorrectly reject 9223372036854775807. */
4526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4528 && LARGE_OFF_T % 2147483647 == 1)
4529 ? 1 : -1];
4531 main ()
4535 return 0;
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 break
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 #define _FILE_OFFSET_BITS 64
4574 #include <sys/types.h>
4575 /* Check that off_t can represent 2**63 - 1 correctly.
4576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4577 since some C++ compilers masquerading as C compilers
4578 incorrectly reject 9223372036854775807. */
4579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4581 && LARGE_OFF_T % 2147483647 == 1)
4582 ? 1 : -1];
4584 main ()
4588 return 0;
4590 _ACEOF
4591 rm -f conftest.$ac_objext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>conftest.er1
4594 ac_status=$?
4595 grep -v '^ *+' conftest.er1 >conftest.err
4596 rm -f conftest.er1
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_sys_file_offset_bits=64; break
4614 else
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620 break
4621 done
4623 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4624 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4625 if test "$ac_cv_sys_file_offset_bits" != no; then
4627 cat >>confdefs.h <<_ACEOF
4628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4629 _ACEOF
4632 rm -f conftest*
4633 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4634 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4635 if test "${ac_cv_sys_large_files+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 while :; do
4639 ac_cv_sys_large_files=no
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #include <sys/types.h>
4647 /* Check that off_t can represent 2**63 - 1 correctly.
4648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4649 since some C++ compilers masquerading as C compilers
4650 incorrectly reject 9223372036854775807. */
4651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4653 && LARGE_OFF_T % 2147483647 == 1)
4654 ? 1 : -1];
4656 main ()
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665 (eval $ac_compile) 2>conftest.er1
4666 ac_status=$?
4667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_c_werror_flag"
4673 || test ! -s conftest.err'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; } &&
4679 { ac_try='test -s conftest.$ac_objext'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; }; then
4685 break
4686 else
4687 echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 #define _LARGE_FILES 1
4699 #include <sys/types.h>
4700 /* Check that off_t can represent 2**63 - 1 correctly.
4701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4702 since some C++ compilers masquerading as C compilers
4703 incorrectly reject 9223372036854775807. */
4704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4706 && LARGE_OFF_T % 2147483647 == 1)
4707 ? 1 : -1];
4709 main ()
4713 return 0;
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4719 ac_status=$?
4720 grep -v '^ *+' conftest.er1 >conftest.err
4721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 (eval $ac_try) 2>&5
4735 ac_status=$?
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_sys_large_files=1; break
4739 else
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 break
4746 done
4748 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4749 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4750 if test "$ac_cv_sys_large_files" != no; then
4752 cat >>confdefs.h <<_ACEOF
4753 #define _LARGE_FILES $ac_cv_sys_large_files
4754 _ACEOF
4757 rm -f conftest*
4761 if test "${with_sound}" != "no"; then
4762 # Sound support for GNU/Linux and the free BSDs.
4763 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4765 if test "${ac_cv_header_stdc+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <stdlib.h>
4775 #include <stdarg.h>
4776 #include <string.h>
4777 #include <float.h>
4780 main ()
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
4796 { ac_try='test -z "$ac_c_werror_flag"
4797 || test ! -s conftest.err'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; } &&
4803 { ac_try='test -s conftest.$ac_objext'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4809 ac_cv_header_stdc=yes
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 ac_cv_header_stdc=no
4816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <string.h>
4828 _ACEOF
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev/null 2>&1; then
4832 else
4833 ac_cv_header_stdc=no
4835 rm -f conftest*
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <stdlib.h>
4849 _ACEOF
4850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4851 $EGREP "free" >/dev/null 2>&1; then
4853 else
4854 ac_cv_header_stdc=no
4856 rm -f conftest*
4860 if test $ac_cv_header_stdc = yes; then
4861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4862 if test "$cross_compiling" = yes; then
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 #include <ctype.h>
4872 #if ((' ' & 0x0FF) == 0x020)
4873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4875 #else
4876 # define ISLOWER(c) \
4877 (('a' <= (c) && (c) <= 'i') \
4878 || ('j' <= (c) && (c) <= 'r') \
4879 || ('s' <= (c) && (c) <= 'z'))
4880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4881 #endif
4883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4885 main ()
4887 int i;
4888 for (i = 0; i < 256; i++)
4889 if (XOR (islower (i), ISLOWER (i))
4890 || toupper (i) != TOUPPER (i))
4891 exit(2);
4892 exit (0);
4894 _ACEOF
4895 rm -f conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4907 else
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4912 ( exit $ac_status )
4913 ac_cv_header_stdc=no
4915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4920 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4921 if test $ac_cv_header_stdc = yes; then
4923 cat >>confdefs.h <<\_ACEOF
4924 #define STDC_HEADERS 1
4925 _ACEOF
4929 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4939 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4940 inttypes.h stdint.h unistd.h
4942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943 echo "$as_me:$LINENO: checking for $ac_header" >&5
4944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4956 #include <$ac_header>
4957 _ACEOF
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest.$ac_objext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 eval "$as_ac_Header=yes"
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 eval "$as_ac_Header=no"
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994 _ACEOF
4998 done
5004 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5015 else
5016 # Is the header compilable?
5017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 #include <$ac_header>
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5030 (eval $ac_compile) 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try='test -z "$ac_c_werror_flag"
5038 || test ! -s conftest.err'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_header_compiler=yes
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 ac_header_compiler=no
5057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059 echo "${ECHO_T}$ac_header_compiler" >&6
5061 # Is the header present?
5062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <$ac_header>
5071 _ACEOF
5072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5086 else
5087 ac_cpp_err=yes
5089 if test -z "$ac_cpp_err"; then
5090 ac_header_preproc=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_header_preproc=no
5097 rm -f conftest.err conftest.$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5099 echo "${ECHO_T}$ac_header_preproc" >&6
5101 # So? What about this header?
5102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5103 yes:no: )
5104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5108 ac_header_preproc=yes
5110 no:yes:* )
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5124 cat <<\_ASBOX
5125 ## ------------------------------------------ ##
5126 ## Report this to the AC_PACKAGE_NAME lists. ##
5127 ## ------------------------------------------ ##
5128 _ASBOX
5130 sed "s/^/$as_me: WARNING: /" >&2
5132 esac
5133 echo "$as_me:$LINENO: checking for $ac_header" >&5
5134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 eval "$as_ac_Header=\$ac_header_preproc"
5140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 _ACEOF
5151 done
5153 # Emulation library used on NetBSD.
5154 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159 ac_check_lib_save_LIBS=$LIBS
5160 LIBS="-lossaudio $LIBS"
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h. */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 #ifdef __cplusplus
5170 extern "C"
5171 #endif
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5174 char _oss_ioctl ();
5176 main ()
5178 _oss_ioctl ();
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5185 (eval $ac_link) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest$ac_exeext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_lib_ossaudio__oss_ioctl=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5210 ac_cv_lib_ossaudio__oss_ioctl=no
5212 rm -f conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5217 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5218 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5219 LIBSOUND=-lossaudio
5220 else
5221 LIBSOUND=
5250 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5251 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5252 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5253 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257 echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5264 else
5265 # Is the header compilable?
5266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5268 cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h. */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 $ac_includes_default
5275 #include <$ac_header>
5276 _ACEOF
5277 rm -f conftest.$ac_objext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279 (eval $ac_compile) 2>conftest.er1
5280 ac_status=$?
5281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest.$ac_objext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295 (eval $ac_try) 2>&5
5296 ac_status=$?
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_header_compiler=yes
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 ac_header_compiler=no
5306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5308 echo "${ECHO_T}$ac_header_compiler" >&6
5310 # Is the header present?
5311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <$ac_header>
5320 _ACEOF
5321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null; then
5329 if test -s conftest.err; then
5330 ac_cpp_err=$ac_c_preproc_warn_flag
5331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5332 else
5333 ac_cpp_err=
5335 else
5336 ac_cpp_err=yes
5338 if test -z "$ac_cpp_err"; then
5339 ac_header_preproc=yes
5340 else
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 ac_header_preproc=no
5346 rm -f conftest.err conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5348 echo "${ECHO_T}$ac_header_preproc" >&6
5350 # So? What about this header?
5351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5352 yes:no: )
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5357 ac_header_preproc=yes
5359 no:yes:* )
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5373 cat <<\_ASBOX
5374 ## ------------------------------------------ ##
5375 ## Report this to the AC_PACKAGE_NAME lists. ##
5376 ## ------------------------------------------ ##
5377 _ASBOX
5379 sed "s/^/$as_me: WARNING: /" >&2
5381 esac
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 eval "$as_ac_Header=\$ac_header_preproc"
5389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5396 _ACEOF
5400 done
5403 for ac_header in term.h
5405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5406 echo "$as_me:$LINENO: checking for $ac_header" >&5
5407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <$ac_header>
5418 _ACEOF
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5433 else
5434 ac_cpp_err=yes
5436 if test -z "$ac_cpp_err"; then
5437 eval "$as_ac_Header=yes"
5438 else
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5442 eval "$as_ac_Header=no"
5444 rm -f conftest.err conftest.$ac_ext
5446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 _ACEOF
5455 done
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5474 main ()
5478 return 0;
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_stdc=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_header_stdc=no
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 if test $ac_cv_header_stdc = yes; then
5513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <string.h>
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "memchr" >/dev/null 2>&1; then
5526 else
5527 ac_cv_header_stdc=no
5529 rm -f conftest*
5533 if test $ac_cv_header_stdc = yes; then
5534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <stdlib.h>
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "free" >/dev/null 2>&1; then
5547 else
5548 ac_cv_header_stdc=no
5550 rm -f conftest*
5554 if test $ac_cv_header_stdc = yes; then
5555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556 if test "$cross_compiling" = yes; then
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571 (('a' <= (c) && (c) <= 'i') \
5572 || ('j' <= (c) && (c) <= 'r') \
5573 || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5579 main ()
5581 int i;
5582 for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i))
5584 || toupper (i) != TOUPPER (i))
5585 exit(2);
5586 exit (0);
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5625 if test "${ac_cv_header_time+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <sys/types.h>
5635 #include <sys/time.h>
5636 #include <time.h>
5639 main ()
5641 if ((struct tm *) 0)
5642 return 0;
5644 return 0;
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_header_time=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_cv_header_time=no
5676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5678 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5679 echo "${ECHO_T}$ac_cv_header_time" >&6
5680 if test $ac_cv_header_time = yes; then
5682 cat >>confdefs.h <<\_ACEOF
5683 #define TIME_WITH_SYS_TIME 1
5684 _ACEOF
5688 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5689 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5690 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 $ac_includes_default
5701 main ()
5703 #ifndef sys_siglist
5704 char *p = (char *) sys_siglist;
5705 #endif
5708 return 0;
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 ac_cv_have_decl_sys_siglist=yes
5734 else
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 ac_cv_have_decl_sys_siglist=no
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5743 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5744 if test $ac_cv_have_decl_sys_siglist = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 1
5748 _ACEOF
5751 else
5752 cat >>confdefs.h <<_ACEOF
5753 #define HAVE_DECL_SYS_SIGLIST 0
5754 _ACEOF
5760 if test $ac_cv_have_decl_sys_siglist != yes; then
5761 # For Tru64, at least:
5762 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5763 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5764 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5775 main ()
5777 #ifndef __sys_siglist
5778 char *p = (char *) __sys_siglist;
5779 #endif
5782 return 0;
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -z "$ac_c_werror_flag"
5795 || test ! -s conftest.err'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; } &&
5801 { ac_try='test -s conftest.$ac_objext'
5802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); }; }; then
5807 ac_cv_have_decl___sys_siglist=yes
5808 else
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 ac_cv_have_decl___sys_siglist=no
5814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5817 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5818 if test $ac_cv_have_decl___sys_siglist = yes; then
5820 cat >>confdefs.h <<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 1
5822 _ACEOF
5825 else
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_DECL___SYS_SIGLIST 0
5828 _ACEOF
5834 if test $ac_cv_have_decl___sys_siglist = yes; then
5836 cat >>confdefs.h <<\_ACEOF
5837 #define sys_siglist __sys_siglist
5838 _ACEOF
5842 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5843 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5844 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 #include <sys/wait.h>
5855 #ifndef WEXITSTATUS
5856 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5857 #endif
5858 #ifndef WIFEXITED
5859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5860 #endif
5863 main ()
5865 int s;
5866 wait (&s);
5867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5869 return 0;
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_header_sys_wait_h=yes
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_cv_header_sys_wait_h=no
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5903 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5904 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5905 if test $ac_cv_header_sys_wait_h = yes; then
5907 cat >>confdefs.h <<\_ACEOF
5908 #define HAVE_SYS_WAIT_H 1
5909 _ACEOF
5914 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5915 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5916 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #ifdef TIME_WITH_SYS_TIME
5926 #include <sys/time.h>
5927 #include <time.h>
5928 #else
5929 #ifdef HAVE_SYS_TIME_H
5930 #include <sys/time.h>
5931 #else
5932 #include <time.h>
5933 #endif
5934 #endif
5935 #ifdef HAVE_UTIME_H
5936 #include <utime.h>
5937 #endif
5939 main ()
5941 static struct utimbuf x; x.actime = x.modtime;
5943 return 0;
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 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 emacs_cv_struct_utimbuf=yes
5969 else
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5973 emacs_cv_struct_utimbuf=no
5975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5977 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5978 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5979 if test $emacs_cv_struct_utimbuf = yes; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define HAVE_STRUCT_UTIMBUF 1
5983 _ACEOF
5987 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5988 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5989 if test "${ac_cv_type_signal+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <sys/types.h>
5999 #include <signal.h>
6000 #ifdef signal
6001 # undef signal
6002 #endif
6003 #ifdef __cplusplus
6004 extern "C" void (*signal (int, void (*)(int)))(int);
6005 #else
6006 void (*signal ()) ();
6007 #endif
6010 main ()
6012 int i;
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_type_signal=void
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 ac_cv_type_signal=int
6046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6048 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6049 echo "${ECHO_T}$ac_cv_type_signal" >&6
6051 cat >>confdefs.h <<_ACEOF
6052 #define RETSIGTYPE $ac_cv_type_signal
6053 _ACEOF
6057 echo "$as_me:$LINENO: checking for speed_t" >&5
6058 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6059 if test "${emacs_cv_speed_t+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <termios.h>
6070 main ()
6072 speed_t x = 1;
6074 return 0;
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079 (eval $ac_compile) 2>conftest.er1
6080 ac_status=$?
6081 grep -v '^ *+' conftest.er1 >conftest.err
6082 rm -f conftest.er1
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 emacs_cv_speed_t=yes
6100 else
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6104 emacs_cv_speed_t=no
6106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6109 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6110 if test $emacs_cv_speed_t = yes; then
6112 cat >>confdefs.h <<\_ACEOF
6113 #define HAVE_SPEED_T 1
6114 _ACEOF
6118 echo "$as_me:$LINENO: checking for struct timeval" >&5
6119 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6120 if test "${emacs_cv_struct_timeval+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #ifdef TIME_WITH_SYS_TIME
6130 #include <sys/time.h>
6131 #include <time.h>
6132 #else
6133 #ifdef HAVE_SYS_TIME_H
6134 #include <sys/time.h>
6135 #else
6136 #include <time.h>
6137 #endif
6138 #endif
6140 main ()
6142 static struct timeval x; x.tv_sec = x.tv_usec;
6144 return 0;
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149 (eval $ac_compile) 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_c_werror_flag"
6157 || test ! -s conftest.err'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 emacs_cv_struct_timeval=yes
6170 else
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 emacs_cv_struct_timeval=no
6176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6178 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6179 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6180 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6181 if test $emacs_cv_struct_timeval = yes; then
6183 cat >>confdefs.h <<\_ACEOF
6184 #define HAVE_TIMEVAL 1
6185 _ACEOF
6189 echo "$as_me:$LINENO: checking for struct exception" >&5
6190 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6191 if test "${emacs_cv_struct_exception+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 #include <math.h>
6202 main ()
6204 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
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>conftest.er1
6212 ac_status=$?
6213 grep -v '^ *+' conftest.er1 >conftest.err
6214 rm -f conftest.er1
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest.$ac_objext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 emacs_cv_struct_exception=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 emacs_cv_struct_exception=no
6238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6240 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6241 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6242 HAVE_EXCEPTION=$emacs_cv_struct_exception
6243 if test $emacs_cv_struct_exception != yes; then
6245 cat >>confdefs.h <<\_ACEOF
6246 #define NO_MATHERR 1
6247 _ACEOF
6252 for ac_header in sys/socket.h
6254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6256 echo "$as_me:$LINENO: checking for $ac_header" >&5
6257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263 else
6264 # Is the header compilable?
6265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 #include <$ac_header>
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 ac_header_compiler=yes
6299 else
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6303 ac_header_compiler=no
6305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6307 echo "${ECHO_T}$ac_header_compiler" >&6
6309 # Is the header present?
6310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 #include <$ac_header>
6319 _ACEOF
6320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } >/dev/null; then
6328 if test -s conftest.err; then
6329 ac_cpp_err=$ac_c_preproc_warn_flag
6330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331 else
6332 ac_cpp_err=
6334 else
6335 ac_cpp_err=yes
6337 if test -z "$ac_cpp_err"; then
6338 ac_header_preproc=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_header_preproc=no
6345 rm -f conftest.err conftest.$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6347 echo "${ECHO_T}$ac_header_preproc" >&6
6349 # So? What about this header?
6350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6351 yes:no: )
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6356 ac_header_preproc=yes
6358 no:yes:* )
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6372 cat <<\_ASBOX
6373 ## ------------------------------------------ ##
6374 ## Report this to the AC_PACKAGE_NAME lists. ##
6375 ## ------------------------------------------ ##
6376 _ASBOX
6378 sed "s/^/$as_me: WARNING: /" >&2
6380 esac
6381 echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 eval "$as_ac_Header=\$ac_header_preproc"
6388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393 cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395 _ACEOF
6399 done
6402 for ac_header in net/if.h
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 echo "$as_me:$LINENO: checking for $ac_header" >&5
6406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h. */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6417 #if HAVE_SYS_SOCKET_H
6418 #include <sys/socket.h>
6419 #endif
6421 #include <$ac_header>
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag"
6433 || test ! -s conftest.err'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; } &&
6439 { ac_try='test -s conftest.$ac_objext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 eval "$as_ac_Header=yes"
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 eval "$as_ac_Header=no"
6452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6457 cat >>confdefs.h <<_ACEOF
6458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 _ACEOF
6463 done
6466 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6467 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6468 if test "${ac_cv_struct_tm+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <time.h>
6481 main ()
6483 struct tm *tp; tp->tm_sec;
6485 return 0;
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490 (eval $ac_compile) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest.$ac_objext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_struct_tm=time.h
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 ac_cv_struct_tm=sys/time.h
6517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6520 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6521 if test $ac_cv_struct_tm = sys/time.h; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define TM_IN_SYS_TIME 1
6525 _ACEOF
6529 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6530 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6531 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6540 #include <sys/types.h>
6541 #include <$ac_cv_struct_tm>
6545 main ()
6547 static struct tm ac_aggr;
6548 if (ac_aggr.tm_zone)
6549 return 0;
6551 return 0;
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_member_struct_tm_tm_zone=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6588 #include <$ac_cv_struct_tm>
6592 main ()
6594 static struct tm ac_aggr;
6595 if (sizeof ac_aggr.tm_zone)
6596 return 0;
6598 return 0;
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_member_struct_tm_tm_zone=yes
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_member_struct_tm_tm_zone=no
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6635 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6636 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6638 cat >>confdefs.h <<_ACEOF
6639 #define HAVE_STRUCT_TM_TM_ZONE 1
6640 _ACEOF
6645 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6647 cat >>confdefs.h <<\_ACEOF
6648 #define HAVE_TM_ZONE 1
6649 _ACEOF
6651 else
6652 echo "$as_me:$LINENO: checking for tzname" >&5
6653 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6654 if test "${ac_cv_var_tzname+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <time.h>
6664 #ifndef tzname /* For SGI. */
6665 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6666 #endif
6669 main ()
6671 atoi(*tzname);
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try='test -s conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_cv_var_tzname=yes
6699 else
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 ac_cv_var_tzname=no
6705 rm -f conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6708 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6709 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6710 if test $ac_cv_var_tzname = yes; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_TZNAME 1
6714 _ACEOF
6719 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6720 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6721 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #include <time.h>
6733 main ()
6735 static struct tm ac_aggr;
6736 if (ac_aggr.tm_gmtoff)
6737 return 0;
6739 return 0;
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_member_struct_tm_tm_gmtoff=yes
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 #include <time.h>
6778 main ()
6780 static struct tm ac_aggr;
6781 if (sizeof ac_aggr.tm_gmtoff)
6782 return 0;
6784 return 0;
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6789 (eval $ac_compile) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest.$ac_objext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_member_struct_tm_tm_gmtoff=yes
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_cv_member_struct_tm_tm_gmtoff=no
6816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6822 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE_TM_GMTOFF 1
6826 _ACEOF
6830 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6831 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6832 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h. */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6842 #if HAVE_SYS_SOCKET_H
6843 #include <sys/socket.h>
6844 #endif
6845 #if HAVE_NET_IF_H
6846 #include <net/if.h>
6847 #endif
6850 main ()
6852 static struct ifreq ac_aggr;
6853 if (ac_aggr.ifr_flags)
6854 return 0;
6856 return 0;
6858 _ACEOF
6859 rm -f conftest.$ac_objext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6861 (eval $ac_compile) 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } &&
6868 { ac_try='test -z "$ac_c_werror_flag"
6869 || test ! -s conftest.err'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_member_struct_ifreq_ifr_flags=yes
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 #if HAVE_SYS_SOCKET_H
6894 #include <sys/socket.h>
6895 #endif
6896 #if HAVE_NET_IF_H
6897 #include <net/if.h>
6898 #endif
6901 main ()
6903 static struct ifreq ac_aggr;
6904 if (sizeof ac_aggr.ifr_flags)
6905 return 0;
6907 return 0;
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912 (eval $ac_compile) 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -z "$ac_c_werror_flag"
6920 || test ! -s conftest.err'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; } &&
6926 { ac_try='test -s conftest.$ac_objext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_member_struct_ifreq_ifr_flags=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 ac_cv_member_struct_ifreq_ifr_flags=no
6939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6943 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6944 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6945 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6949 _ACEOF
6953 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6954 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6955 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6965 #if HAVE_SYS_SOCKET_H
6966 #include <sys/socket.h>
6967 #endif
6968 #if HAVE_NET_IF_H
6969 #include <net/if.h>
6970 #endif
6973 main ()
6975 static struct ifreq ac_aggr;
6976 if (ac_aggr.ifr_hwaddr)
6977 return 0;
6979 return 0;
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 $ac_includes_default
7016 #if HAVE_SYS_SOCKET_H
7017 #include <sys/socket.h>
7018 #endif
7019 #if HAVE_NET_IF_H
7020 #include <net/if.h>
7021 #endif
7024 main ()
7026 static struct ifreq ac_aggr;
7027 if (sizeof ac_aggr.ifr_hwaddr)
7028 return 0;
7030 return 0;
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7035 (eval $ac_compile) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7067 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7068 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7070 cat >>confdefs.h <<_ACEOF
7071 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7072 _ACEOF
7076 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7077 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7078 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h. */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h. */
7087 $ac_includes_default
7088 #if HAVE_SYS_SOCKET_H
7089 #include <sys/socket.h>
7090 #endif
7091 #if HAVE_NET_IF_H
7092 #include <net/if.h>
7093 #endif
7096 main ()
7098 static struct ifreq ac_aggr;
7099 if (ac_aggr.ifr_netmask)
7100 return 0;
7102 return 0;
7104 _ACEOF
7105 rm -f conftest.$ac_objext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7107 (eval $ac_compile) 2>conftest.er1
7108 ac_status=$?
7109 grep -v '^ *+' conftest.er1 >conftest.err
7110 rm -f conftest.er1
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -z "$ac_c_werror_flag"
7115 || test ! -s conftest.err'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_member_struct_ifreq_ifr_netmask=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 #if HAVE_SYS_SOCKET_H
7140 #include <sys/socket.h>
7141 #endif
7142 #if HAVE_NET_IF_H
7143 #include <net/if.h>
7144 #endif
7147 main ()
7149 static struct ifreq ac_aggr;
7150 if (sizeof ac_aggr.ifr_netmask)
7151 return 0;
7153 return 0;
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_member_struct_ifreq_ifr_netmask=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_member_struct_ifreq_ifr_netmask=no
7185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7191 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7193 cat >>confdefs.h <<_ACEOF
7194 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7195 _ACEOF
7199 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7200 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7201 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 $ac_includes_default
7211 #if HAVE_SYS_SOCKET_H
7212 #include <sys/socket.h>
7213 #endif
7214 #if HAVE_NET_IF_H
7215 #include <net/if.h>
7216 #endif
7219 main ()
7221 static struct ifreq ac_aggr;
7222 if (ac_aggr.ifr_broadaddr)
7223 return 0;
7225 return 0;
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7230 (eval $ac_compile) 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } &&
7237 { ac_try='test -z "$ac_c_werror_flag"
7238 || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 $ac_includes_default
7262 #if HAVE_SYS_SOCKET_H
7263 #include <sys/socket.h>
7264 #endif
7265 #if HAVE_NET_IF_H
7266 #include <net/if.h>
7267 #endif
7270 main ()
7272 static struct ifreq ac_aggr;
7273 if (sizeof ac_aggr.ifr_broadaddr)
7274 return 0;
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7313 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7314 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7318 _ACEOF
7322 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7323 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7324 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 #if HAVE_SYS_SOCKET_H
7335 #include <sys/socket.h>
7336 #endif
7337 #if HAVE_NET_IF_H
7338 #include <net/if.h>
7339 #endif
7342 main ()
7344 static struct ifreq ac_aggr;
7345 if (ac_aggr.ifr_addr)
7346 return 0;
7348 return 0;
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7353 (eval $ac_compile) 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try='test -s conftest.$ac_objext'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 ac_cv_member_struct_ifreq_ifr_addr=yes
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #if HAVE_SYS_SOCKET_H
7386 #include <sys/socket.h>
7387 #endif
7388 #if HAVE_NET_IF_H
7389 #include <net/if.h>
7390 #endif
7393 main ()
7395 static struct ifreq ac_aggr;
7396 if (sizeof ac_aggr.ifr_addr)
7397 return 0;
7399 return 0;
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } &&
7411 { ac_try='test -z "$ac_c_werror_flag"
7412 || test ! -s conftest.err'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; } &&
7418 { ac_try='test -s conftest.$ac_objext'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }; then
7424 ac_cv_member_struct_ifreq_ifr_addr=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_member_struct_ifreq_ifr_addr=no
7431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7437 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7441 _ACEOF
7448 echo "$as_me:$LINENO: checking for function prototypes" >&5
7449 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7450 if test "$ac_cv_prog_cc_stdc" != no; then
7451 echo "$as_me:$LINENO: result: yes" >&5
7452 echo "${ECHO_T}yes" >&6
7454 cat >>confdefs.h <<\_ACEOF
7455 #define PROTOTYPES 1
7456 _ACEOF
7459 cat >>confdefs.h <<\_ACEOF
7460 #define __PROTOTYPES 1
7461 _ACEOF
7463 else
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7468 echo "$as_me:$LINENO: checking for working volatile" >&5
7469 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7470 if test "${ac_cv_c_volatile+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h. */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7481 main ()
7484 volatile int x;
7485 int * volatile y;
7487 return 0;
7489 _ACEOF
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest.$ac_objext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 ac_cv_c_volatile=yes
7513 else
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 ac_cv_c_volatile=no
7519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7522 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7523 if test $ac_cv_c_volatile = no; then
7525 cat >>confdefs.h <<\_ACEOF
7526 #define volatile
7527 _ACEOF
7531 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7532 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7533 if test "${ac_cv_c_const+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7544 main ()
7546 /* FIXME: Include the comments suggested by Paul. */
7547 #ifndef __cplusplus
7548 /* Ultrix mips cc rejects this. */
7549 typedef int charset[2];
7550 const charset x;
7551 /* SunOS 4.1.1 cc rejects this. */
7552 char const *const *ccp;
7553 char **p;
7554 /* NEC SVR4.0.2 mips cc rejects this. */
7555 struct point {int x, y;};
7556 static struct point const zero = {0,0};
7557 /* AIX XL C 1.02.0.0 rejects this.
7558 It does not let you subtract one const X* pointer from another in
7559 an arm of an if-expression whose if-part is not a constant
7560 expression */
7561 const char *g = "string";
7562 ccp = &g + (g ? g-g : 0);
7563 /* HPUX 7.0 cc rejects these. */
7564 ++ccp;
7565 p = (char**) ccp;
7566 ccp = (char const *const *) p;
7567 { /* SCO 3.2v4 cc rejects this. */
7568 char *t;
7569 char const *s = 0 ? (char *) 0 : (char const *) 0;
7571 *t++ = 0;
7573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7574 int x[] = {25, 17};
7575 const int *foo = &x[0];
7576 ++foo;
7578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7579 typedef const int *iptr;
7580 iptr p = 0;
7581 ++p;
7583 { /* AIX XL C 1.02.0.0 rejects this saying
7584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7585 struct s { int j; const int *ap[3]; };
7586 struct s *b; b->j = 5;
7588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7589 const int foo = 10;
7591 #endif
7594 return 0;
7596 _ACEOF
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } &&
7606 { ac_try='test -z "$ac_c_werror_flag"
7607 || test ! -s conftest.err'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; } &&
7613 { ac_try='test -s conftest.$ac_objext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_c_const=yes
7620 else
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 ac_cv_c_const=no
7626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7628 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7629 echo "${ECHO_T}$ac_cv_c_const" >&6
7630 if test $ac_cv_c_const = no; then
7632 cat >>confdefs.h <<\_ACEOF
7633 #define const
7634 _ACEOF
7638 echo "$as_me:$LINENO: checking for void * support" >&5
7639 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7640 if test "${emacs_cv_void_star+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7651 main ()
7653 void * foo;
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag"
7668 || test ! -s conftest.err'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; } &&
7674 { ac_try='test -s conftest.$ac_objext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 (eval $ac_try) 2>&5
7677 ac_status=$?
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 emacs_cv_void_star=yes
7681 else
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 emacs_cv_void_star=no
7687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7689 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7690 echo "${ECHO_T}$emacs_cv_void_star" >&6
7691 if test $emacs_cv_void_star = yes; then
7692 cat >>confdefs.h <<\_ACEOF
7693 #define POINTER_TYPE void
7694 _ACEOF
7696 else
7697 cat >>confdefs.h <<\_ACEOF
7698 #define POINTER_TYPE char
7699 _ACEOF
7705 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7707 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7708 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711 cat >conftest.make <<\_ACEOF
7712 all:
7713 @echo 'ac_maketemp="$(MAKE)"'
7714 _ACEOF
7715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7716 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7717 if test -n "$ac_maketemp"; then
7718 eval ac_cv_prog_make_${ac_make}_set=yes
7719 else
7720 eval ac_cv_prog_make_${ac_make}_set=no
7722 rm -f conftest.make
7724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7725 echo "$as_me:$LINENO: result: yes" >&5
7726 echo "${ECHO_T}yes" >&6
7727 SET_MAKE=
7728 else
7729 echo "$as_me:$LINENO: result: no" >&5
7730 echo "${ECHO_T}no" >&6
7731 SET_MAKE="MAKE=${MAKE-make}"
7735 echo "$as_me:$LINENO: checking for long file names" >&5
7736 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7737 if test "${ac_cv_sys_long_file_names+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 ac_cv_sys_long_file_names=yes
7741 # Test for long file names in all the places we know might matter:
7742 # . the current directory, where building will happen
7743 # $prefix/lib where we will be installing things
7744 # $exec_prefix/lib likewise
7745 # eval it to expand exec_prefix.
7746 # $TMPDIR if set, where it might want to write temporary files
7747 # if $TMPDIR is not set:
7748 # /tmp where it might want to write temporary files
7749 # /var/tmp likewise
7750 # /usr/tmp likewise
7751 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7752 ac_tmpdirs=$TMPDIR
7753 else
7754 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7756 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7757 test -d $ac_dir || continue
7758 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7759 ac_xdir=$ac_dir/cf$$
7760 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7761 ac_tf1=$ac_xdir/conftest9012345
7762 ac_tf2=$ac_xdir/conftest9012346
7763 (echo 1 >$ac_tf1) 2>/dev/null
7764 (echo 2 >$ac_tf2) 2>/dev/null
7765 ac_val=`cat $ac_tf1 2>/dev/null`
7766 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7767 ac_cv_sys_long_file_names=no
7768 rm -rf $ac_xdir 2>/dev/null
7769 break
7771 rm -rf $ac_xdir 2>/dev/null
7772 done
7774 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7775 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7776 if test $ac_cv_sys_long_file_names = yes; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_LONG_FILE_NAMES 1
7780 _ACEOF
7785 #### Choose a window system.
7787 echo "$as_me:$LINENO: checking for X" >&5
7788 echo $ECHO_N "checking for X... $ECHO_C" >&6
7791 # Check whether --with-x or --without-x was given.
7792 if test "${with_x+set}" = set; then
7793 withval="$with_x"
7796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7797 if test "x$with_x" = xno; then
7798 # The user explicitly disabled X.
7799 have_x=disabled
7800 else
7801 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7802 # Both variables are already set.
7803 have_x=yes
7804 else
7805 if test "${ac_cv_have_x+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 # One or both of the vars are not set, and there is no cached value.
7809 ac_x_includes=no ac_x_libraries=no
7810 rm -fr conftest.dir
7811 if mkdir conftest.dir; then
7812 cd conftest.dir
7813 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7814 cat >Imakefile <<'_ACEOF'
7815 acfindx:
7816 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7817 _ACEOF
7818 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7820 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7821 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7822 for ac_extension in a so sl; do
7823 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7824 test -f $ac_im_libdir/libX11.$ac_extension; then
7825 ac_im_usrlibdir=$ac_im_libdir; break
7827 done
7828 # Screen out bogus values from the imake configuration. They are
7829 # bogus both because they are the default anyway, and because
7830 # using them would break gcc on systems where it needs fixed includes.
7831 case $ac_im_incroot in
7832 /usr/include) ;;
7833 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7834 esac
7835 case $ac_im_usrlibdir in
7836 /usr/lib | /lib) ;;
7837 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7838 esac
7840 cd ..
7841 rm -fr conftest.dir
7844 # Standard set of common directories for X headers.
7845 # Check X11 before X11Rn because it is often a symlink to the current release.
7846 ac_x_header_dirs='
7847 /usr/X11/include
7848 /usr/X11R6/include
7849 /usr/X11R5/include
7850 /usr/X11R4/include
7852 /usr/include/X11
7853 /usr/include/X11R6
7854 /usr/include/X11R5
7855 /usr/include/X11R4
7857 /usr/local/X11/include
7858 /usr/local/X11R6/include
7859 /usr/local/X11R5/include
7860 /usr/local/X11R4/include
7862 /usr/local/include/X11
7863 /usr/local/include/X11R6
7864 /usr/local/include/X11R5
7865 /usr/local/include/X11R4
7867 /usr/X386/include
7868 /usr/x386/include
7869 /usr/XFree86/include/X11
7871 /usr/include
7872 /usr/local/include
7873 /usr/unsupported/include
7874 /usr/athena/include
7875 /usr/local/x11r5/include
7876 /usr/lpp/Xamples/include
7878 /usr/openwin/include
7879 /usr/openwin/share/include'
7881 if test "$ac_x_includes" = no; then
7882 # Guess where to find include files, by looking for Intrinsic.h.
7883 # First, try using that file with no special directory specified.
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <X11/Intrinsic.h>
7891 _ACEOF
7892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7894 ac_status=$?
7895 grep -v '^ *+' conftest.er1 >conftest.err
7896 rm -f conftest.er1
7897 cat conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); } >/dev/null; then
7900 if test -s conftest.err; then
7901 ac_cpp_err=$ac_c_preproc_warn_flag
7902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7903 else
7904 ac_cpp_err=
7906 else
7907 ac_cpp_err=yes
7909 if test -z "$ac_cpp_err"; then
7910 # We can compile using X headers with no special include directory.
7911 ac_x_includes=
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 for ac_dir in $ac_x_header_dirs; do
7917 if test -r "$ac_dir/X11/Intrinsic.h"; then
7918 ac_x_includes=$ac_dir
7919 break
7921 done
7923 rm -f conftest.err conftest.$ac_ext
7924 fi # $ac_x_includes = no
7926 if test "$ac_x_libraries" = no; then
7927 # Check for the libraries.
7928 # See if we find them without any special options.
7929 # Don't add to $LIBS permanently.
7930 ac_save_LIBS=$LIBS
7931 LIBS="-lXt $LIBS"
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <X11/Intrinsic.h>
7940 main ()
7942 XtMalloc (0)
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext conftest$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } &&
7956 { ac_try='test -z "$ac_c_werror_flag"
7957 || test ! -s conftest.err'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 LIBS=$ac_save_LIBS
7970 # We can link X programs with no special library path.
7971 ac_x_libraries=
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 LIBS=$ac_save_LIBS
7977 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7979 # Don't even attempt the hair of trying to link an X program!
7980 for ac_extension in a so sl; do
7981 if test -r $ac_dir/libXt.$ac_extension; then
7982 ac_x_libraries=$ac_dir
7983 break 2
7985 done
7986 done
7988 rm -f conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7990 fi # $ac_x_libraries = no
7992 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7993 # Didn't find X anywhere. Cache the known absence of X.
7994 ac_cv_have_x="have_x=no"
7995 else
7996 # Record where we found X for the cache.
7997 ac_cv_have_x="have_x=yes \
7998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8003 eval "$ac_cv_have_x"
8004 fi # $with_x != no
8006 if test "$have_x" != yes; then
8007 echo "$as_me:$LINENO: result: $have_x" >&5
8008 echo "${ECHO_T}$have_x" >&6
8009 no_x=yes
8010 else
8011 # If each of the values was on the command line, it overrides each guess.
8012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8014 # Update the cache value to reflect the command line values.
8015 ac_cv_have_x="have_x=yes \
8016 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8017 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8018 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8021 if test "$no_x" = yes; then
8022 window_system=none
8023 else
8024 window_system=x11
8027 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8028 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8029 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8030 x_default_search_path=""
8031 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8032 x_search_path="\
8033 ${x_library}/X11/%L/%T/%N%C%S:\
8034 ${x_library}/X11/%l/%T/%N%C%S:\
8035 ${x_library}/X11/%T/%N%C%S:\
8036 ${x_library}/X11/%L/%T/%N%S:\
8037 ${x_library}/X11/%l/%T/%N%S:\
8038 ${x_library}/X11/%T/%N%S"
8039 if test x"${x_default_search_path}" = x; then
8040 x_default_search_path=${x_search_path}
8041 else
8042 x_default_search_path="${x_search_path}:${x_default_search_path}"
8044 done
8046 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8047 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8050 if test x"${x_includes}" = x; then
8051 bitmapdir=/usr/include/X11/bitmaps
8052 else
8053 # accumulate include directories that have X11 bitmap subdirectories
8054 bmd_acc="dummyval"
8055 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8056 if test -d "${bmd}/X11/bitmaps"; then
8057 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8059 if test -d "${bmd}/bitmaps"; then
8060 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8062 done
8063 if test ${bmd_acc} != "dummyval"; then
8064 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8068 case "${window_system}" in
8069 x11 )
8070 HAVE_X_WINDOWS=yes
8071 HAVE_X11=yes
8072 case "${with_x_toolkit}" in
8073 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8074 motif ) USE_X_TOOLKIT=MOTIF ;;
8075 gtk ) with_gtk=yes
8076 USE_X_TOOLKIT=none ;;
8077 no ) USE_X_TOOLKIT=none ;;
8078 * ) USE_X_TOOLKIT=maybe ;;
8079 esac
8081 none )
8082 HAVE_X_WINDOWS=no
8083 HAVE_X11=no
8084 USE_X_TOOLKIT=none
8086 esac
8088 ### If we're using X11, we should use the X menu package.
8089 HAVE_MENUS=no
8090 case ${HAVE_X11} in
8091 yes ) HAVE_MENUS=yes ;;
8092 esac
8094 if test "${opsys}" = "hpux9"; then
8095 case "${x_libraries}" in
8096 *X11R4* )
8097 opsysfile="s/hpux9-x11r4.h"
8099 esac
8102 if test "${opsys}" = "hpux9shr"; then
8103 case "${x_libraries}" in
8104 *X11R4* )
8105 opsysfile="s/hpux9shxr4.h"
8107 esac
8110 ### Compute the unexec source name from the object name.
8111 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8113 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8114 # Assume not, until told otherwise.
8115 GNU_MALLOC=yes
8116 doug_lea_malloc=yes
8117 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8118 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8119 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define malloc_get_state innocuous_malloc_get_state
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char malloc_get_state (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8137 #ifdef __STDC__
8138 # include <limits.h>
8139 #else
8140 # include <assert.h>
8141 #endif
8143 #undef malloc_get_state
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 #ifdef __cplusplus
8147 extern "C"
8149 #endif
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char malloc_get_state ();
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8157 choke me
8158 #else
8159 char (*f) () = malloc_get_state;
8160 #endif
8161 #ifdef __cplusplus
8163 #endif
8166 main ()
8168 return f != malloc_get_state;
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_malloc_get_state=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_func_malloc_get_state=no
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8206 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8207 if test $ac_cv_func_malloc_get_state = yes; then
8209 else
8210 doug_lea_malloc=no
8213 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8214 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8215 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8226 #define malloc_set_state innocuous_malloc_set_state
8228 /* System header to define __stub macros and hopefully few prototypes,
8229 which can conflict with char malloc_set_state (); below.
8230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8231 <limits.h> exists even on freestanding compilers. */
8233 #ifdef __STDC__
8234 # include <limits.h>
8235 #else
8236 # include <assert.h>
8237 #endif
8239 #undef malloc_set_state
8241 /* Override any gcc2 internal prototype to avoid an error. */
8242 #ifdef __cplusplus
8243 extern "C"
8245 #endif
8246 /* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8248 char malloc_set_state ();
8249 /* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8253 choke me
8254 #else
8255 char (*f) () = malloc_set_state;
8256 #endif
8257 #ifdef __cplusplus
8259 #endif
8262 main ()
8264 return f != malloc_set_state;
8266 return 0;
8268 _ACEOF
8269 rm -f conftest.$ac_objext conftest$ac_exeext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8271 (eval $ac_link) 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag"
8279 || test ! -s conftest.err'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; } &&
8285 { ac_try='test -s conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 (eval $ac_try) 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_func_malloc_set_state=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_cv_func_malloc_set_state=no
8298 rm -f conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8301 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8302 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8303 if test $ac_cv_func_malloc_set_state = yes; then
8305 else
8306 doug_lea_malloc=no
8309 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8310 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8311 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 extern void (* __after_morecore_hook)();
8322 main ()
8324 __after_morecore_hook = 0
8326 return 0;
8328 _ACEOF
8329 rm -f conftest.$ac_objext conftest$ac_exeext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8331 (eval $ac_link) 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 emacs_cv_var___after_morecore_hook=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 emacs_cv_var___after_morecore_hook=no
8358 rm -f conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8361 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8362 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8363 if test $emacs_cv_var___after_morecore_hook = no; then
8364 doug_lea_malloc=no
8366 if test "${system_malloc}" = "yes"; then
8367 GNU_MALLOC=no
8368 GNU_MALLOC_reason="
8369 (The GNU allocators don't work with this system configuration.)"
8371 if test "$doug_lea_malloc" = "yes" ; then
8372 if test "$GNU_MALLOC" = yes ; then
8373 GNU_MALLOC_reason="
8374 (Using Doug Lea's new malloc from the GNU C Library.)"
8377 cat >>confdefs.h <<\_ACEOF
8378 #define DOUG_LEA_MALLOC 1
8379 _ACEOF
8383 if test x"${REL_ALLOC}" = x; then
8384 REL_ALLOC=${GNU_MALLOC}
8390 for ac_header in stdlib.h unistd.h
8392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8394 echo "$as_me:$LINENO: checking for $ac_header" >&5
8395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8401 else
8402 # Is the header compilable?
8403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #include <$ac_header>
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_header_compiler=yes
8437 else
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_header_compiler=no
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h. */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 #include <$ac_header>
8457 _ACEOF
8458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } >/dev/null; then
8466 if test -s conftest.err; then
8467 ac_cpp_err=$ac_c_preproc_warn_flag
8468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8469 else
8470 ac_cpp_err=
8472 else
8473 ac_cpp_err=yes
8475 if test -z "$ac_cpp_err"; then
8476 ac_header_preproc=yes
8477 else
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_header_preproc=no
8483 rm -f conftest.err conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8485 echo "${ECHO_T}$ac_header_preproc" >&6
8487 # So? What about this header?
8488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8489 yes:no: )
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8494 ac_header_preproc=yes
8496 no:yes:* )
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8510 cat <<\_ASBOX
8511 ## ------------------------------------------ ##
8512 ## Report this to the AC_PACKAGE_NAME lists. ##
8513 ## ------------------------------------------ ##
8514 _ASBOX
8516 sed "s/^/$as_me: WARNING: /" >&2
8518 esac
8519 echo "$as_me:$LINENO: checking for $ac_header" >&5
8520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 eval "$as_ac_Header=\$ac_header_preproc"
8526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8531 cat >>confdefs.h <<_ACEOF
8532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8533 _ACEOF
8537 done
8540 for ac_func in getpagesize
8542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8543 echo "$as_me:$LINENO: checking for $ac_func" >&5
8544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8545 if eval "test \"\${$as_ac_var+set}\" = set"; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8556 #define $ac_func innocuous_$ac_func
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char $ac_func (); below.
8560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561 <limits.h> exists even on freestanding compilers. */
8563 #ifdef __STDC__
8564 # include <limits.h>
8565 #else
8566 # include <assert.h>
8567 #endif
8569 #undef $ac_func
8571 /* Override any gcc2 internal prototype to avoid an error. */
8572 #ifdef __cplusplus
8573 extern "C"
8575 #endif
8576 /* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8578 char $ac_func ();
8579 /* The GNU C library defines this for functions which it implements
8580 to always fail with ENOSYS. Some functions are actually named
8581 something starting with __ and the normal name is an alias. */
8582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8583 choke me
8584 #else
8585 char (*f) () = $ac_func;
8586 #endif
8587 #ifdef __cplusplus
8589 #endif
8592 main ()
8594 return f != $ac_func;
8596 return 0;
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601 (eval $ac_link) 2>conftest.er1
8602 ac_status=$?
8603 grep -v '^ *+' conftest.er1 >conftest.err
8604 rm -f conftest.er1
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 eval "$as_ac_var=yes"
8622 else
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 eval "$as_ac_var=no"
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633 if test `eval echo '${'$as_ac_var'}'` = yes; then
8634 cat >>confdefs.h <<_ACEOF
8635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8636 _ACEOF
8639 done
8641 echo "$as_me:$LINENO: checking for working mmap" >&5
8642 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8643 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 if test "$cross_compiling" = yes; then
8647 ac_cv_func_mmap_fixed_mapped=no
8648 else
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h. */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 /* malloc might have been renamed as rpl_malloc. */
8657 #undef malloc
8659 /* Thanks to Mike Haertel and Jim Avera for this test.
8660 Here is a matrix of mmap possibilities:
8661 mmap private not fixed
8662 mmap private fixed at somewhere currently unmapped
8663 mmap private fixed at somewhere already mapped
8664 mmap shared not fixed
8665 mmap shared fixed at somewhere currently unmapped
8666 mmap shared fixed at somewhere already mapped
8667 For private mappings, we should verify that changes cannot be read()
8668 back from the file, nor mmap's back from the file at a different
8669 address. (There have been systems where private was not correctly
8670 implemented like the infamous i386 svr4.0, and systems where the
8671 VM page cache was not coherent with the file system buffer cache
8672 like early versions of FreeBSD and possibly contemporary NetBSD.)
8673 For shared mappings, we should conversely verify that changes get
8674 propagated back to all the places they're supposed to be.
8676 Grep wants private fixed already mapped.
8677 The main things grep needs to know about mmap are:
8678 * does it exist and is it safe to write into the mmap'd area
8679 * how to use it (BSD variants) */
8681 #include <fcntl.h>
8682 #include <sys/mman.h>
8684 #if !STDC_HEADERS && !HAVE_STDLIB_H
8685 char *malloc ();
8686 #endif
8688 /* This mess was copied from the GNU getpagesize.h. */
8689 #if !HAVE_GETPAGESIZE
8690 /* Assume that all systems that can run configure have sys/param.h. */
8691 # if !HAVE_SYS_PARAM_H
8692 # define HAVE_SYS_PARAM_H 1
8693 # endif
8695 # ifdef _SC_PAGESIZE
8696 # define getpagesize() sysconf(_SC_PAGESIZE)
8697 # else /* no _SC_PAGESIZE */
8698 # if HAVE_SYS_PARAM_H
8699 # include <sys/param.h>
8700 # ifdef EXEC_PAGESIZE
8701 # define getpagesize() EXEC_PAGESIZE
8702 # else /* no EXEC_PAGESIZE */
8703 # ifdef NBPG
8704 # define getpagesize() NBPG * CLSIZE
8705 # ifndef CLSIZE
8706 # define CLSIZE 1
8707 # endif /* no CLSIZE */
8708 # else /* no NBPG */
8709 # ifdef NBPC
8710 # define getpagesize() NBPC
8711 # else /* no NBPC */
8712 # ifdef PAGESIZE
8713 # define getpagesize() PAGESIZE
8714 # endif /* PAGESIZE */
8715 # endif /* no NBPC */
8716 # endif /* no NBPG */
8717 # endif /* no EXEC_PAGESIZE */
8718 # else /* no HAVE_SYS_PARAM_H */
8719 # define getpagesize() 8192 /* punt totally */
8720 # endif /* no HAVE_SYS_PARAM_H */
8721 # endif /* no _SC_PAGESIZE */
8723 #endif /* no HAVE_GETPAGESIZE */
8726 main ()
8728 char *data, *data2, *data3;
8729 int i, pagesize;
8730 int fd;
8732 pagesize = getpagesize ();
8734 /* First, make a file with some known garbage in it. */
8735 data = (char *) malloc (pagesize);
8736 if (!data)
8737 exit (1);
8738 for (i = 0; i < pagesize; ++i)
8739 *(data + i) = rand ();
8740 umask (0);
8741 fd = creat ("conftest.mmap", 0600);
8742 if (fd < 0)
8743 exit (1);
8744 if (write (fd, data, pagesize) != pagesize)
8745 exit (1);
8746 close (fd);
8748 /* Next, try to mmap the file at a fixed address which already has
8749 something else allocated at it. If we can, also make sure that
8750 we see the same garbage. */
8751 fd = open ("conftest.mmap", O_RDWR);
8752 if (fd < 0)
8753 exit (1);
8754 data2 = (char *) malloc (2 * pagesize);
8755 if (!data2)
8756 exit (1);
8757 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8760 exit (1);
8761 for (i = 0; i < pagesize; ++i)
8762 if (*(data + i) != *(data2 + i))
8763 exit (1);
8765 /* Finally, make sure that changes to the mapped area do not
8766 percolate back to the file as seen by read(). (This is a bug on
8767 some variants of i386 svr4.0.) */
8768 for (i = 0; i < pagesize; ++i)
8769 *(data2 + i) = *(data2 + i) + 1;
8770 data3 = (char *) malloc (pagesize);
8771 if (!data3)
8772 exit (1);
8773 if (read (fd, data3, pagesize) != pagesize)
8774 exit (1);
8775 for (i = 0; i < pagesize; ++i)
8776 if (*(data + i) != *(data3 + i))
8777 exit (1);
8778 close (fd);
8779 exit (0);
8781 _ACEOF
8782 rm -f conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
8793 ac_cv_func_mmap_fixed_mapped=yes
8794 else
8795 echo "$as_me: program exited with status $ac_status" >&5
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 ( exit $ac_status )
8800 ac_cv_func_mmap_fixed_mapped=no
8802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8806 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8807 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_MMAP 1
8811 _ACEOF
8814 rm -f conftest.mmap
8816 if test $use_mmap_for_buffers = yes; then
8817 REL_ALLOC=no
8820 LIBS="$libsrc_libs $LIBS"
8823 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8824 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8825 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-ldnet $LIBS"
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h. */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 /* Override any gcc2 internal prototype to avoid an error. */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 /* We use char because int might match the return type of a gcc2
8842 builtin and then its argument prototype would still apply. */
8843 char dnet_ntoa ();
8845 main ()
8847 dnet_ntoa ();
8849 return 0;
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try='test -z "$ac_c_werror_flag"
8862 || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 (eval $ac_try) 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_lib_dnet_dnet_ntoa=yes
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_lib_dnet_dnet_ntoa=no
8881 rm -f conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8885 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8887 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_LIBDNET 1
8890 _ACEOF
8892 LIBS="-ldnet $LIBS"
8897 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8898 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8899 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-lXbsd $LIBS"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8913 main ()
8915 main ();
8917 return 0;
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_Xbsd_main=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 ac_cv_lib_Xbsd_main=no
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8954 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8955 if test $ac_cv_lib_Xbsd_main = yes; then
8956 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8961 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8962 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8963 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 ac_check_lib_save_LIBS=$LIBS
8967 LIBS="-lpthreads $LIBS"
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h. */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 /* Override any gcc2 internal prototype to avoid an error. */
8976 #ifdef __cplusplus
8977 extern "C"
8978 #endif
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981 char cma_open ();
8983 main ()
8985 cma_open ();
8987 return 0;
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992 (eval $ac_link) 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -z "$ac_c_werror_flag"
9000 || test ! -s conftest.err'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; } &&
9006 { ac_try='test -s conftest$ac_exeext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_cv_lib_pthreads_cma_open=yes
9013 else
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 ac_cv_lib_pthreads_cma_open=no
9019 rm -f conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 LIBS=$ac_check_lib_save_LIBS
9023 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9024 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9025 if test $ac_cv_lib_pthreads_cma_open = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_LIBPTHREADS 1
9028 _ACEOF
9030 LIBS="-lpthreads $LIBS"
9035 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9036 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9037 if test -d /usr/X386/include; then
9038 HAVE_XFREE386=yes
9039 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9040 else
9041 HAVE_XFREE386=no
9043 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9044 echo "${ECHO_T}$HAVE_XFREE386" >&6
9047 case ${host_os} in
9048 aix*)
9049 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9050 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9051 if test "${gdb_cv_bigtoc+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9055 case $GCC in
9056 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9057 *) gdb_cv_bigtoc=-bbigtoc ;;
9058 esac
9060 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9069 main ()
9071 int i;
9073 return 0;
9075 _ACEOF
9076 rm -f conftest.$ac_objext conftest$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag"
9086 || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9099 else
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 gdb_cv_bigtoc=
9105 rm -f conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
9109 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9110 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9112 esac
9114 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9115 # used for the tests that follow. We set them back to REAL_CFLAGS and
9116 # REAL_CPPFLAGS later on.
9118 REAL_CPPFLAGS="$CPPFLAGS"
9120 if test "${HAVE_X11}" = "yes"; then
9121 DEFS="$C_SWITCH_X_SITE $DEFS"
9122 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9123 LIBS="$LIBX $LIBS"
9124 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9125 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9129 # but it's more convenient here to set LD_RUN_PATH
9130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9131 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9132 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9133 export LD_RUN_PATH
9136 if test "${opsys}" = "gnu-linux"; then
9137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9147 main ()
9149 XOpenDisplay ("foo");
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 xlinux_first_failure=no
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 xlinux_first_failure=yes
9183 rm -f conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 if test "${xlinux_first_failure}" = "yes"; then
9186 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9187 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9188 OLD_CPPFLAGS="$CPPFLAGS"
9189 OLD_LIBS="$LIBS"
9190 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9191 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9192 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9193 LIBS="$LIBS -b i486-linuxaout"
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9202 main ()
9204 XOpenDisplay ("foo");
9206 return 0;
9208 _ACEOF
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 xlinux_second_failure=no
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 xlinux_second_failure=yes
9238 rm -f conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9240 if test "${xlinux_second_failure}" = "yes"; then
9241 # If we get the same failure with -b, there is no use adding -b.
9242 # So take it out. This plays safe.
9243 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9244 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9245 CPPFLAGS="$OLD_CPPFLAGS"
9246 LIBS="$OLD_LIBS"
9247 echo "$as_me:$LINENO: result: no" >&5
9248 echo "${ECHO_T}no" >&6
9249 else
9250 echo "$as_me:$LINENO: result: yes" >&5
9251 echo "${ECHO_T}yes" >&6
9253 else
9254 echo "$as_me:$LINENO: result: no" >&5
9255 echo "${ECHO_T}no" >&6
9259 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9260 # header files included from there.
9261 echo "$as_me:$LINENO: checking for Xkb" >&5
9262 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include <X11/Xlib.h>
9270 #include <X11/XKBlib.h>
9272 main ()
9274 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9276 return 0;
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 emacs_xkb=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 emacs_xkb=no
9308 rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9311 echo "${ECHO_T}$emacs_xkb" >&6
9312 if test $emacs_xkb = yes; then
9314 cat >>confdefs.h <<\_ACEOF
9315 #define HAVE_XKBGETKEYBOARD 1
9316 _ACEOF
9324 for ac_func in XrmSetDatabase XScreenResourceString \
9325 XScreenNumberOfScreen XSetWMProtocols
9327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9328 echo "$as_me:$LINENO: checking for $ac_func" >&5
9329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9330 if eval "test \"\${$as_ac_var+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9341 #define $ac_func innocuous_$ac_func
9343 /* System header to define __stub macros and hopefully few prototypes,
9344 which can conflict with char $ac_func (); below.
9345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9346 <limits.h> exists even on freestanding compilers. */
9348 #ifdef __STDC__
9349 # include <limits.h>
9350 #else
9351 # include <assert.h>
9352 #endif
9354 #undef $ac_func
9356 /* Override any gcc2 internal prototype to avoid an error. */
9357 #ifdef __cplusplus
9358 extern "C"
9360 #endif
9361 /* We use char because int might match the return type of a gcc2
9362 builtin and then its argument prototype would still apply. */
9363 char $ac_func ();
9364 /* The GNU C library defines this for functions which it implements
9365 to always fail with ENOSYS. Some functions are actually named
9366 something starting with __ and the normal name is an alias. */
9367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9368 choke me
9369 #else
9370 char (*f) () = $ac_func;
9371 #endif
9372 #ifdef __cplusplus
9374 #endif
9377 main ()
9379 return f != $ac_func;
9381 return 0;
9383 _ACEOF
9384 rm -f conftest.$ac_objext conftest$ac_exeext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9386 (eval $ac_link) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 eval "$as_ac_var=yes"
9407 else
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 eval "$as_ac_var=no"
9413 rm -f conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9418 if test `eval echo '${'$as_ac_var'}'` = yes; then
9419 cat >>confdefs.h <<_ACEOF
9420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9421 _ACEOF
9424 done
9428 if test "${window_system}" = "x11"; then
9429 echo "$as_me:$LINENO: checking X11 version 6" >&5
9430 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9431 if test "${emacs_cv_x11_version_6+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434 cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h. */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <X11/Xlib.h>
9442 main ()
9444 #if XlibSpecificationRelease < 6
9445 fail;
9446 #endif
9449 return 0;
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 emacs_cv_x11_version_6=yes
9475 else
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 emacs_cv_x11_version_6=no
9481 rm -f conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9485 if test $emacs_cv_x11_version_6 = yes; then
9486 echo "$as_me:$LINENO: result: 6 or newer" >&5
9487 echo "${ECHO_T}6 or newer" >&6
9489 cat >>confdefs.h <<\_ACEOF
9490 #define HAVE_X11R6 1
9491 _ACEOF
9493 else
9494 echo "$as_me:$LINENO: result: before 6" >&5
9495 echo "${ECHO_T}before 6" >&6
9499 if test "${window_system}" = "x11"; then
9500 echo "$as_me:$LINENO: checking X11 version 5" >&5
9501 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9502 if test "${emacs_cv_x11_version_5+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 #include <X11/Xlib.h>
9513 main ()
9515 #if XlibSpecificationRelease < 5
9516 fail;
9517 #endif
9520 return 0;
9522 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>conftest.er1
9526 ac_status=$?
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -z "$ac_c_werror_flag"
9533 || test ! -s conftest.err'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; } &&
9539 { ac_try='test -s conftest$ac_exeext'
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 emacs_cv_x11_version_5=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 emacs_cv_x11_version_5=no
9552 rm -f conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
9556 if test $emacs_cv_x11_version_5 = yes; then
9557 echo "$as_me:$LINENO: result: 5 or newer" >&5
9558 echo "${ECHO_T}5 or newer" >&6
9559 HAVE_X11R5=yes
9561 cat >>confdefs.h <<\_ACEOF
9562 #define HAVE_X11R5 1
9563 _ACEOF
9565 else
9566 HAVE_X11R5=no
9567 echo "$as_me:$LINENO: result: before 5" >&5
9568 echo "${ECHO_T}before 5" >&6
9574 HAVE_GTK=no
9575 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9576 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9577 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9578 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9579 { (exit 1); exit 1; }; };
9581 GLIB_REQUIRED=2.0.1
9582 GTK_REQUIRED=2.0.1
9583 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9585 if test "X${with_pkg_config_prog}" != X; then
9586 PKG_CONFIG="${with_pkg_config_prog}"
9589 succeeded=no
9591 if test -z "$PKG_CONFIG"; then
9592 # Extract the first word of "pkg-config", so it can be a program name with args.
9593 set dummy pkg-config; ac_word=$2
9594 echo "$as_me:$LINENO: checking for $ac_word" >&5
9595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9596 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 case $PKG_CONFIG in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9611 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9615 done
9616 done
9618 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9620 esac
9622 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9624 if test -n "$PKG_CONFIG"; then
9625 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9626 echo "${ECHO_T}$PKG_CONFIG" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9634 if test "$PKG_CONFIG" = "no" ; then
9635 echo "*** The pkg-config script could not be found. Make sure it is"
9636 echo "*** in your path, or give the full path to pkg-config with"
9637 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9638 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9639 else
9640 PKG_CONFIG_MIN_VERSION=0.9.0
9641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9642 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9643 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9645 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647 echo "${ECHO_T}yes" >&6
9648 succeeded=yes
9650 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9651 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9652 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9653 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9654 echo "${ECHO_T}$GTK_CFLAGS" >&6
9656 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9657 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9658 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9659 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9660 echo "${ECHO_T}$GTK_LIBS" >&6
9661 else
9662 GTK_CFLAGS=""
9663 GTK_LIBS=""
9664 ## If we have a custom action on failure, don't print errors, but
9665 ## do set a variable so people can do so.
9666 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9667 echo $GTK_PKG_ERRORS
9672 else
9673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9678 if test $succeeded = yes; then
9680 else
9681 { { 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
9682 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;}
9683 { (exit 1); exit 1; }; }
9688 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9689 CFLAGS="$CFLAGS $GTK_CFLAGS"
9690 LIBS="$GTK_LIBS $LIBS"
9691 HAVE_GTK=yes
9693 cat >>confdefs.h <<\_ACEOF
9694 #define HAVE_GTK 1
9695 _ACEOF
9697 USE_X_TOOLKIT=none
9699 with_toolkit_scroll_bars=yes
9701 HAVE_GTK_MULTIDISPLAY=no
9703 for ac_func in gdk_display_open
9705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9706 echo "$as_me:$LINENO: checking for $ac_func" >&5
9707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9708 if eval "test \"\${$as_ac_var+set}\" = set"; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h. */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9719 #define $ac_func innocuous_$ac_func
9721 /* System header to define __stub macros and hopefully few prototypes,
9722 which can conflict with char $ac_func (); below.
9723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9724 <limits.h> exists even on freestanding compilers. */
9726 #ifdef __STDC__
9727 # include <limits.h>
9728 #else
9729 # include <assert.h>
9730 #endif
9732 #undef $ac_func
9734 /* Override any gcc2 internal prototype to avoid an error. */
9735 #ifdef __cplusplus
9736 extern "C"
9738 #endif
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9741 char $ac_func ();
9742 /* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9746 choke me
9747 #else
9748 char (*f) () = $ac_func;
9749 #endif
9750 #ifdef __cplusplus
9752 #endif
9755 main ()
9757 return f != $ac_func;
9759 return 0;
9761 _ACEOF
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764 (eval $ac_link) 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -z "$ac_c_werror_flag"
9772 || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 (eval $ac_try) 2>&5
9781 ac_status=$?
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 eval "$as_ac_var=yes"
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 eval "$as_ac_var=no"
9791 rm -f conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9796 if test `eval echo '${'$as_ac_var'}'` = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9799 _ACEOF
9800 HAVE_GTK_MULTIDISPLAY=yes
9802 done
9804 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_GTK_MULTIDISPLAY 1
9808 _ACEOF
9813 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9814 if test x"${HAVE_X11R5}" = xyes; then
9815 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9816 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9817 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9827 #include <X11/Intrinsic.h>
9828 #include <X11/Xaw/Simple.h>
9830 main ()
9834 return 0;
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 emacs_cv_x11_version_5_with_xaw=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 emacs_cv_x11_version_5_with_xaw=no
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9870 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9871 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9872 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9873 USE_X_TOOLKIT=LUCID
9874 else
9875 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9876 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9877 USE_X_TOOLKIT=none
9879 else
9880 USE_X_TOOLKIT=none
9884 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9886 if test "${USE_X_TOOLKIT}" != "none"; then
9887 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9888 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9889 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h. */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 #include <X11/Intrinsic.h>
9900 main ()
9902 #if XtSpecificationRelease < 6
9903 fail;
9904 #endif
9907 return 0;
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 emacs_cv_x11_toolkit_version_6=yes
9933 else
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 emacs_cv_x11_toolkit_version_6=no
9939 rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9943 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9944 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9945 echo "$as_me:$LINENO: result: 6 or newer" >&5
9946 echo "${ECHO_T}6 or newer" >&6
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_X11XTR6 1
9950 _ACEOF
9952 else
9953 echo "$as_me:$LINENO: result: before 6" >&5
9954 echo "${ECHO_T}before 6" >&6
9957 OLDLIBS="$LIBS"
9958 if test x$HAVE_X11XTR6 = xyes; then
9959 LIBS="-lXt -lSM -lICE $LIBS"
9960 else
9961 LIBS="-lXt $LIBS"
9964 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9965 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9966 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 ac_check_lib_save_LIBS=$LIBS
9970 LIBS="-lXmu $LIBS"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h. */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9984 char XmuConvertStandardSelection ();
9986 main ()
9988 XmuConvertStandardSelection ();
9990 return 0;
9992 _ACEOF
9993 rm -f conftest.$ac_objext conftest$ac_exeext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995 (eval $ac_link) 2>conftest.er1
9996 ac_status=$?
9997 grep -v '^ *+' conftest.er1 >conftest.err
9998 rm -f conftest.er1
9999 cat conftest.err >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -z "$ac_c_werror_flag"
10003 || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest$ac_exeext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10016 else
10017 echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10020 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10022 rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10027 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10028 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define HAVE_LIBXMU 1
10031 _ACEOF
10033 LIBS="-lXmu $LIBS"
10037 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10040 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10041 if test "${HAVE_X11}" = "yes"; then
10042 if test "${USE_X_TOOLKIT}" != "none"; then
10044 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10045 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10046 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 ac_check_lib_save_LIBS=$LIBS
10050 LIBS="-lXext $LIBS"
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10058 /* Override any gcc2 internal prototype to avoid an error. */
10059 #ifdef __cplusplus
10060 extern "C"
10061 #endif
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064 char XShapeQueryExtension ();
10066 main ()
10068 XShapeQueryExtension ();
10070 return 0;
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_lib_Xext_XShapeQueryExtension=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_lib_Xext_XShapeQueryExtension=no
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10107 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10108 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define HAVE_LIBXEXT 1
10111 _ACEOF
10113 LIBS="-lXext $LIBS"
10120 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10121 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10122 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10123 if test "${emacs_cv_lesstif+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 # We put this in CFLAGS temporarily to precede other -I options
10127 # that might be in CFLAGS temporarily.
10128 # We put this in CPPFLAGS where it precedes the other -I options.
10129 OLD_CPPFLAGS=$CPPFLAGS
10130 OLD_CFLAGS=$CFLAGS
10131 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10132 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10141 main ()
10143 int x = 5;
10145 return 0;
10147 _ACEOF
10148 rm -f conftest.$ac_objext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10150 (eval $ac_compile) 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest.$ac_objext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 emacs_cv_lesstif=yes
10171 else
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 emacs_cv_lesstif=no
10177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10179 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10180 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10181 if test $emacs_cv_lesstif = yes; then
10182 # Make sure this -I option remains in CPPFLAGS after it is set
10183 # back to REAL_CPPFLAGS.
10184 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10185 # have those other -I options anyway. Ultimately, having this
10186 # directory ultimately in CPPFLAGS will be enough.
10187 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10188 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10189 else
10190 CFLAGS=$OLD_CFLAGS
10191 CPPFLAGS=$OLD_CPPFLAGS
10193 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10194 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10195 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <Xm/Xm.h>
10206 main ()
10208 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10209 int x = 5;
10210 #else
10211 Motif version prior to 2.1.
10212 #endif
10214 return 0;
10216 _ACEOF
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219 (eval $ac_compile) 2>conftest.er1
10220 ac_status=$?
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag"
10227 || test ! -s conftest.err'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest.$ac_objext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10236 ac_status=$?
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 emacs_cv_motif_version_2_1=yes
10240 else
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 emacs_cv_motif_version_2_1=no
10246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10249 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10250 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10251 if test $emacs_cv_motif_version_2_1 = yes; then
10252 HAVE_LIBXP=no
10254 cat >>confdefs.h <<\_ACEOF
10255 #define HAVE_MOTIF_2_1 1
10256 _ACEOF
10258 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10259 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10260 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lXp $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10272 /* Override any gcc2 internal prototype to avoid an error. */
10273 #ifdef __cplusplus
10274 extern "C"
10275 #endif
10276 /* We use char because int might match the return type of a gcc2
10277 builtin and then its argument prototype would still apply. */
10278 char XpCreateContext ();
10280 main ()
10282 XpCreateContext ();
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_cv_lib_Xp_XpCreateContext=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_Xp_XpCreateContext=no
10316 rm -f conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10321 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10322 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10323 HAVE_LIBXP=yes
10326 if test ${HAVE_LIBXP} = yes; then
10328 cat >>confdefs.h <<\_ACEOF
10329 #define HAVE_LIBXP 1
10330 _ACEOF
10336 ### Is -lXaw3d available?
10337 HAVE_XAW3D=no
10338 if test "${HAVE_X11}" = "yes"; then
10339 if test "${USE_X_TOOLKIT}" != "none"; then
10340 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10341 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10342 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h. */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 #include <X11/Xaw3d/Scrollbar.h>
10352 _ACEOF
10353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null; then
10361 if test -s conftest.err; then
10362 ac_cpp_err=$ac_c_preproc_warn_flag
10363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10364 else
10365 ac_cpp_err=
10367 else
10368 ac_cpp_err=yes
10370 if test -z "$ac_cpp_err"; then
10371 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10378 rm -f conftest.err conftest.$ac_ext
10380 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10381 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10382 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10383 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10384 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10385 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388 ac_check_lib_save_LIBS=$LIBS
10389 LIBS="-lXaw3d $LIBS"
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10397 /* Override any gcc2 internal prototype to avoid an error. */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 /* We use char because int might match the return type of a gcc2
10402 builtin and then its argument prototype would still apply. */
10403 char XawScrollbarSetThumb ();
10405 main ()
10407 XawScrollbarSetThumb ();
10409 return 0;
10411 _ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10441 rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_check_lib_save_LIBS
10445 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10446 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10447 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10448 HAVE_XAW3D=yes
10454 if test "${HAVE_XAW3D}" = "yes"; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define HAVE_XAW3D 1
10458 _ACEOF
10466 USE_TOOLKIT_SCROLL_BARS=no
10467 if test "${with_toolkit_scroll_bars}" != "no"; then
10468 if test "${USE_X_TOOLKIT}" != "none"; then
10469 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10470 cat >>confdefs.h <<\_ACEOF
10471 #define USE_TOOLKIT_SCROLL_BARS 1
10472 _ACEOF
10474 HAVE_XAW3D=no
10475 USE_TOOLKIT_SCROLL_BARS=yes
10476 elif test "${HAVE_XAW3D}" = "yes"; then
10477 cat >>confdefs.h <<\_ACEOF
10478 #define USE_TOOLKIT_SCROLL_BARS 1
10479 _ACEOF
10481 USE_TOOLKIT_SCROLL_BARS=yes
10483 elif test "${HAVE_GTK}" = "yes"; then
10484 cat >>confdefs.h <<\_ACEOF
10485 #define USE_TOOLKIT_SCROLL_BARS 1
10486 _ACEOF
10488 USE_TOOLKIT_SCROLL_BARS=yes
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10499 #include <X11/Xlib.h>
10500 #include <X11/Xresource.h>
10502 main ()
10504 XIMProc callback;
10506 return 0;
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag"
10519 || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 HAVE_XIM=yes
10533 cat >>confdefs.h <<\_ACEOF
10534 #define HAVE_XIM 1
10535 _ACEOF
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10541 HAVE_XIM=no
10543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10546 if test "${with_xim}" != "no"; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define USE_XIM 1
10550 _ACEOF
10555 if test "${HAVE_XIM}" != "no"; then
10556 late_CFLAGS=$CFLAGS
10557 if test "$GCC" = yes; then
10558 CFLAGS="$CFLAGS --pedantic-errors"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10567 #include <X11/Xlib.h>
10568 #include <X11/Xresource.h>
10570 main ()
10572 Display *display;
10573 XrmDatabase db;
10574 char *res_name;
10575 char *res_class;
10576 XIMProc callback;
10577 XPointer *client_data;
10578 #ifndef __GNUC__
10579 /* If we're not using GCC, it's probably not XFree86, and this is
10580 probably right, but we can't use something like --pedantic-errors. */
10581 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10582 char*, XIMProc, XPointer*);
10583 #endif
10584 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10585 client_data);
10587 return 0;
10589 _ACEOF
10590 rm -f conftest.$ac_objext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10592 (eval $ac_compile) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 emacs_cv_arg6_star=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10620 if test "$emacs_cv_arg6_star" = yes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10623 _ACEOF
10625 else
10626 cat >>confdefs.h <<\_ACEOF
10627 #define XRegisterIMInstantiateCallback_arg6 XPointer
10628 _ACEOF
10631 CFLAGS=$late_CFLAGS
10634 ### Use -lXpm if available, unless `--with-xpm=no'.
10635 HAVE_XPM=no
10636 if test "${HAVE_X11}" = "yes"; then
10637 if test "${with_xpm}" != "no"; then
10638 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10639 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10640 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10641 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10645 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10646 else
10647 # Is the header compilable?
10648 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10649 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h. */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 $ac_includes_default
10657 #include <X11/xpm.h>
10658 _ACEOF
10659 rm -f conftest.$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag"
10669 || test ! -s conftest.err'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; } &&
10675 { ac_try='test -s conftest.$ac_objext'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_header_compiler=yes
10682 else
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_header_compiler=no
10688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10690 echo "${ECHO_T}$ac_header_compiler" >&6
10692 # Is the header present?
10693 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10694 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include <X11/xpm.h>
10702 _ACEOF
10703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } >/dev/null; then
10711 if test -s conftest.err; then
10712 ac_cpp_err=$ac_c_preproc_warn_flag
10713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10714 else
10715 ac_cpp_err=
10717 else
10718 ac_cpp_err=yes
10720 if test -z "$ac_cpp_err"; then
10721 ac_header_preproc=yes
10722 else
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_header_preproc=no
10728 rm -f conftest.err conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10730 echo "${ECHO_T}$ac_header_preproc" >&6
10732 # So? What about this header?
10733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10734 yes:no: )
10735 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10736 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10738 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10739 ac_header_preproc=yes
10741 no:yes:* )
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10743 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10745 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10747 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10749 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10751 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10753 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10755 cat <<\_ASBOX
10756 ## ------------------------------------------ ##
10757 ## Report this to the AC_PACKAGE_NAME lists. ##
10758 ## ------------------------------------------ ##
10759 _ASBOX
10761 sed "s/^/$as_me: WARNING: /" >&2
10763 esac
10764 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10765 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10766 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 ac_cv_header_X11_xpm_h=$ac_header_preproc
10771 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10772 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10775 if test $ac_cv_header_X11_xpm_h = yes; then
10776 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10777 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10778 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lXpm -lX11 $LIBS"
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10790 /* Override any gcc2 internal prototype to avoid an error. */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */
10796 char XpmReadFileToPixmap ();
10798 main ()
10800 XpmReadFileToPixmap ();
10802 return 0;
10804 _ACEOF
10805 rm -f conftest.$ac_objext conftest$ac_exeext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10807 (eval $ac_link) 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10834 rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_lib_save_LIBS
10838 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10839 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10840 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10841 HAVE_XPM=yes
10847 if test "${HAVE_XPM}" = "yes"; then
10848 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10849 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 #include "X11/xpm.h"
10857 #ifndef XpmReturnAllocPixels
10858 no_return_alloc_pixels
10859 #endif
10861 _ACEOF
10862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10863 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10864 HAVE_XPM=no
10865 else
10866 HAVE_XPM=yes
10868 rm -f conftest*
10871 if test "${HAVE_XPM}" = "yes"; then
10872 echo "$as_me:$LINENO: result: yes" >&5
10873 echo "${ECHO_T}yes" >&6
10874 else
10875 echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6
10881 if test "${HAVE_XPM}" = "yes"; then
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_XPM 1
10885 _ACEOF
10890 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10891 HAVE_JPEG=no
10892 if test "${HAVE_X11}" = "yes"; then
10893 if test "${with_jpeg}" != "no"; then
10894 if test "${ac_cv_header_jerror_h+set}" = set; then
10895 echo "$as_me:$LINENO: checking for jerror.h" >&5
10896 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10897 if test "${ac_cv_header_jerror_h+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10901 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10902 else
10903 # Is the header compilable?
10904 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10905 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 $ac_includes_default
10913 #include <jerror.h>
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_c_werror_flag"
10925 || test ! -s conftest.err'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest.$ac_objext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_header_compiler=yes
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_header_compiler=no
10944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10946 echo "${ECHO_T}$ac_header_compiler" >&6
10948 # Is the header present?
10949 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10950 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #include <jerror.h>
10958 _ACEOF
10959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } >/dev/null; then
10967 if test -s conftest.err; then
10968 ac_cpp_err=$ac_c_preproc_warn_flag
10969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10970 else
10971 ac_cpp_err=
10973 else
10974 ac_cpp_err=yes
10976 if test -z "$ac_cpp_err"; then
10977 ac_header_preproc=yes
10978 else
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_preproc=no
10984 rm -f conftest.err conftest.$ac_ext
10985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10986 echo "${ECHO_T}$ac_header_preproc" >&6
10988 # So? What about this header?
10989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10990 yes:no: )
10991 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10992 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10994 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10995 ac_header_preproc=yes
10997 no:yes:* )
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10999 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11001 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11003 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11005 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11007 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11009 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11011 cat <<\_ASBOX
11012 ## ------------------------------------------ ##
11013 ## Report this to the AC_PACKAGE_NAME lists. ##
11014 ## ------------------------------------------ ##
11015 _ASBOX
11017 sed "s/^/$as_me: WARNING: /" >&2
11019 esac
11020 echo "$as_me:$LINENO: checking for jerror.h" >&5
11021 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11022 if test "${ac_cv_header_jerror_h+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025 ac_cv_header_jerror_h=$ac_header_preproc
11027 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11028 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11031 if test $ac_cv_header_jerror_h = yes; then
11032 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11033 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11034 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ljpeg $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any gcc2 internal prototype to avoid an error. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char jpeg_destroy_compress ();
11054 main ()
11056 jpeg_destroy_compress ();
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11084 else
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11088 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11090 rm -f conftest.err conftest.$ac_objext \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11095 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11096 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11097 HAVE_JPEG=yes
11106 if test "${HAVE_JPEG}" = "yes"; then
11107 cat >>confdefs.h <<\_ACEOF
11108 #define HAVE_JPEG 1
11109 _ACEOF
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #include <jpeglib.h>
11118 version=JPEG_LIB_VERSION
11120 _ACEOF
11121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11122 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11123 cat >>confdefs.h <<\_ACEOF
11124 #define HAVE_JPEG 1
11125 _ACEOF
11127 else
11128 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11129 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11130 HAVE_JPEG=no
11132 rm -f conftest*
11137 ### Use -lpng if available, unless `--with-png=no'.
11138 HAVE_PNG=no
11139 if test "${HAVE_X11}" = "yes"; then
11140 if test "${with_png}" != "no"; then
11141 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11142 # in /usr/include/libpng.
11145 for ac_header in png.h libpng/png.h
11147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149 echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11156 else
11157 # Is the header compilable?
11158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11161 /* confdefs.h. */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11167 #include <$ac_header>
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_header_compiler=no
11198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6
11202 # Is the header present?
11203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } >/dev/null; then
11221 if test -s conftest.err; then
11222 ac_cpp_err=$ac_c_preproc_warn_flag
11223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 else
11225 ac_cpp_err=
11227 else
11228 ac_cpp_err=yes
11230 if test -z "$ac_cpp_err"; then
11231 ac_header_preproc=yes
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11236 ac_header_preproc=no
11238 rm -f conftest.err conftest.$ac_ext
11239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240 echo "${ECHO_T}$ac_header_preproc" >&6
11242 # So? What about this header?
11243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 yes:no: )
11245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
11251 no:yes:* )
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11265 cat <<\_ASBOX
11266 ## ------------------------------------------ ##
11267 ## Report this to the AC_PACKAGE_NAME lists. ##
11268 ## ------------------------------------------ ##
11269 _ASBOX
11271 sed "s/^/$as_me: WARNING: /" >&2
11273 esac
11274 echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279 eval "$as_ac_Header=\$ac_header_preproc"
11281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11288 _ACEOF
11292 done
11294 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11295 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11296 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11297 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-lpng -lz -lm $LIBS"
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11309 /* Override any gcc2 internal prototype to avoid an error. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 /* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315 char png_get_channels ();
11317 main ()
11319 png_get_channels ();
11321 return 0;
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326 (eval $ac_link) 2>conftest.er1
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest$ac_exeext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11343 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_cv_lib_png_png_get_channels=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_cv_lib_png_png_get_channels=no
11353 rm -f conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11357 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11358 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11359 if test $ac_cv_lib_png_png_get_channels = yes; then
11360 HAVE_PNG=yes
11366 if test "${HAVE_PNG}" = "yes"; then
11368 cat >>confdefs.h <<\_ACEOF
11369 #define HAVE_PNG 1
11370 _ACEOF
11375 ### Use -ltiff if available, unless `--with-tiff=no'.
11376 HAVE_TIFF=no
11377 if test "${HAVE_X11}" = "yes"; then
11378 if test "${with_tiff}" != "no"; then
11379 if test "${ac_cv_header_tiffio_h+set}" = set; then
11380 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11381 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11382 if test "${ac_cv_header_tiffio_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11386 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11387 else
11388 # Is the header compilable?
11389 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11390 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 #include <tiffio.h>
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402 (eval $ac_compile) 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_header_compiler=yes
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_compiler=no
11429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11431 echo "${ECHO_T}$ac_header_compiler" >&6
11433 # Is the header present?
11434 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11435 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <tiffio.h>
11443 _ACEOF
11444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 else
11456 ac_cpp_err=
11458 else
11459 ac_cpp_err=yes
11461 if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_preproc=no
11469 rm -f conftest.err conftest.$ac_ext
11470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11496 cat <<\_ASBOX
11497 ## ------------------------------------------ ##
11498 ## Report this to the AC_PACKAGE_NAME lists. ##
11499 ## ------------------------------------------ ##
11500 _ASBOX
11502 sed "s/^/$as_me: WARNING: /" >&2
11504 esac
11505 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11506 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11507 if test "${ac_cv_header_tiffio_h+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 ac_cv_header_tiffio_h=$ac_header_preproc
11512 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11513 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11516 if test $ac_cv_header_tiffio_h = yes; then
11517 tifflibs="-lz -lm"
11518 # At least one tiff package requires the jpeg library.
11519 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11520 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11521 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11522 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-ltiff $tifflibs $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11534 /* Override any gcc2 internal prototype to avoid an error. */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char TIFFGetVersion ();
11542 main ()
11544 TIFFGetVersion ();
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11551 (eval $ac_link) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_lib_tiff_TIFFGetVersion=yes
11572 else
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 ac_cv_lib_tiff_TIFFGetVersion=no
11578 rm -f conftest.err conftest.$ac_objext \
11579 conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11582 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11583 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11584 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11585 HAVE_TIFF=yes
11593 if test "${HAVE_TIFF}" = "yes"; then
11595 cat >>confdefs.h <<\_ACEOF
11596 #define HAVE_TIFF 1
11597 _ACEOF
11602 ### Use -lgif if available, unless `--with-gif=no'.
11603 HAVE_GIF=no
11604 if test "${HAVE_X11}" = "yes"; then
11605 if test "${with_gif}" != "no"; then
11606 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11607 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11608 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11609 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11613 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11614 else
11615 # Is the header compilable?
11616 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11617 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11625 #include <gif_lib.h>
11626 _ACEOF
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_c_werror_flag"
11637 || test ! -s conftest.err'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; } &&
11643 { ac_try='test -s conftest.$ac_objext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_header_compiler=yes
11650 else
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_header_compiler=no
11656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11658 echo "${ECHO_T}$ac_header_compiler" >&6
11660 # Is the header present?
11661 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11662 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 #include <gif_lib.h>
11670 _ACEOF
11671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } >/dev/null; then
11679 if test -s conftest.err; then
11680 ac_cpp_err=$ac_c_preproc_warn_flag
11681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 else
11683 ac_cpp_err=
11685 else
11686 ac_cpp_err=yes
11688 if test -z "$ac_cpp_err"; then
11689 ac_header_preproc=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_header_preproc=no
11696 rm -f conftest.err conftest.$ac_ext
11697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11702 yes:no: )
11703 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11706 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc=yes
11709 no:yes:* )
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11711 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11713 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11715 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11717 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11719 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11721 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11723 cat <<\_ASBOX
11724 ## ------------------------------------------ ##
11725 ## Report this to the AC_PACKAGE_NAME lists. ##
11726 ## ------------------------------------------ ##
11727 _ASBOX
11729 sed "s/^/$as_me: WARNING: /" >&2
11731 esac
11732 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11733 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 ac_cv_header_gif_lib_h=$ac_header_preproc
11739 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11740 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11743 if test $ac_cv_header_gif_lib_h = yes; then
11744 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11745 # Earlier versions can crash Emacs.
11746 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11747 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11748 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 ac_check_lib_save_LIBS=$LIBS
11752 LIBS="-lungif $LIBS"
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11760 /* Override any gcc2 internal prototype to avoid an error. */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 /* We use char because int might match the return type of a gcc2
11765 builtin and then its argument prototype would still apply. */
11766 char EGifPutExtensionLast ();
11768 main ()
11770 EGifPutExtensionLast ();
11772 return 0;
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11798 else
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_cv_lib_ungif_EGifPutExtensionLast=no
11804 rm -f conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11808 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11809 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11810 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11811 HAVE_GIF=yes
11819 if test "${HAVE_GIF}" = "yes"; then
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_GIF 1
11823 _ACEOF
11828 ### Use Mac OS X Carbon API to implement GUI.
11829 HAVE_CARBON=no
11830 if test "${with_carbon}" != "no"; then
11831 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11832 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11833 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11834 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11838 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11839 else
11840 # Is the header compilable?
11841 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11842 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <Carbon/Carbon.h>
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11854 (eval $ac_compile) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag"
11862 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } &&
11868 { ac_try='test -s conftest.$ac_objext'
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_header_compiler=yes
11875 else
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_header_compiler=no
11881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 echo "${ECHO_T}$ac_header_compiler" >&6
11885 # Is the header present?
11886 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11887 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <Carbon/Carbon.h>
11895 _ACEOF
11896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } >/dev/null; then
11904 if test -s conftest.err; then
11905 ac_cpp_err=$ac_c_preproc_warn_flag
11906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11907 else
11908 ac_cpp_err=
11910 else
11911 ac_cpp_err=yes
11913 if test -z "$ac_cpp_err"; then
11914 ac_header_preproc=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 echo "${ECHO_T}$ac_header_preproc" >&6
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11929 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11931 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11934 no:yes:* )
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11936 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11938 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11940 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11942 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11944 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11945 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11946 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11948 cat <<\_ASBOX
11949 ## ------------------------------------------ ##
11950 ## Report this to the AC_PACKAGE_NAME lists. ##
11951 ## ------------------------------------------ ##
11952 _ASBOX
11954 sed "s/^/$as_me: WARNING: /" >&2
11956 esac
11957 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11958 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11959 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
11964 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11965 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11968 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11969 HAVE_CARBON=yes
11975 if test "${HAVE_CARBON}" = "yes"; then
11977 cat >>confdefs.h <<\_ACEOF
11978 #define HAVE_CARBON 1
11979 _ACEOF
11981 window_system=mac
11982 ## Specify the install directory
11983 carbon_appdir=
11984 if test "${carbon_appdir_x}" != ""; then
11985 case ${carbon_appdir_x} in
11986 y | ye | yes) carbon_appdir=/Applications ;;
11987 * ) carbon_appdir=${carbon_appdir_x} ;;
11988 esac
11990 # We also have mouse menus.
11991 HAVE_MENUS=yes
11994 ### Use session management (-lSM -lICE) if available
11995 HAVE_X_SM=no
11996 if test "${HAVE_X11}" = "yes"; then
11997 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11998 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11999 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12004 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12005 else
12006 # Is the header compilable?
12007 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12008 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h. */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12016 #include <X11/SM/SMlib.h>
12017 _ACEOF
12018 rm -f conftest.$ac_objext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020 (eval $ac_compile) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_header_compiler=yes
12041 else
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 ac_header_compiler=no
12047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049 echo "${ECHO_T}$ac_header_compiler" >&6
12051 # Is the header present?
12052 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12053 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <X11/SM/SMlib.h>
12061 _ACEOF
12062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } >/dev/null; then
12070 if test -s conftest.err; then
12071 ac_cpp_err=$ac_c_preproc_warn_flag
12072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12073 else
12074 ac_cpp_err=
12076 else
12077 ac_cpp_err=yes
12079 if test -z "$ac_cpp_err"; then
12080 ac_header_preproc=yes
12081 else
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_header_preproc=no
12087 rm -f conftest.err conftest.$ac_ext
12088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089 echo "${ECHO_T}$ac_header_preproc" >&6
12091 # So? What about this header?
12092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 yes:no: )
12094 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12095 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12097 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12098 ac_header_preproc=yes
12100 no:yes:* )
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12102 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12104 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12106 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12108 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12110 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12112 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12114 cat <<\_ASBOX
12115 ## ------------------------------------------ ##
12116 ## Report this to the AC_PACKAGE_NAME lists. ##
12117 ## ------------------------------------------ ##
12118 _ASBOX
12120 sed "s/^/$as_me: WARNING: /" >&2
12122 esac
12123 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12124 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12125 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12130 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12131 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12134 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12135 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12136 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12137 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lSM -lICE $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h. */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12149 /* Override any gcc2 internal prototype to avoid an error. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char SmcOpenConnection ();
12157 main ()
12159 SmcOpenConnection ();
12161 return 0;
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -z "$ac_c_werror_flag"
12174 || test ! -s conftest.err'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; } &&
12180 { ac_try='test -s conftest$ac_exeext'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_lib_SM_SmcOpenConnection=yes
12187 else
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12191 ac_cv_lib_SM_SmcOpenConnection=no
12193 rm -f conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12197 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12198 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12199 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12200 HAVE_X_SM=yes
12207 if test "${HAVE_X_SM}" = "yes"; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_X_SM 1
12211 _ACEOF
12213 case "$LIBS" in
12214 *-lSM*) ;;
12215 *) LIBS="-lSM -lICE $LIBS" ;;
12216 esac
12220 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12221 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12222 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12223 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #include <netdb.h>
12234 main ()
12236 return h_errno;
12238 return 0;
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>conftest.er1
12244 ac_status=$?
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 emacs_cv_netdb_declares_h_errno=yes
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12268 emacs_cv_netdb_declares_h_errno=no
12270 rm -f conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12274 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12275 if test $emacs_cv_netdb_declares_h_errno = yes; then
12277 cat >>confdefs.h <<\_ACEOF
12278 #define HAVE_H_ERRNO 1
12279 _ACEOF
12283 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12284 # for constant arguments. Useless!
12285 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12286 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12287 if test "${ac_cv_working_alloca_h+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <alloca.h>
12298 main ()
12300 char *p = (char *) alloca (2 * sizeof (int));
12302 return 0;
12304 _ACEOF
12305 rm -f conftest.$ac_objext conftest$ac_exeext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12307 (eval $ac_link) 2>conftest.er1
12308 ac_status=$?
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } &&
12314 { ac_try='test -z "$ac_c_werror_flag"
12315 || test ! -s conftest.err'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; } &&
12321 { ac_try='test -s conftest$ac_exeext'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_working_alloca_h=yes
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 ac_cv_working_alloca_h=no
12334 rm -f conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12338 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12339 if test $ac_cv_working_alloca_h = yes; then
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_ALLOCA_H 1
12343 _ACEOF
12347 echo "$as_me:$LINENO: checking for alloca" >&5
12348 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12349 if test "${ac_cv_func_alloca_works+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 #ifdef __GNUC__
12359 # define alloca __builtin_alloca
12360 #else
12361 # ifdef _MSC_VER
12362 # include <malloc.h>
12363 # define alloca _alloca
12364 # else
12365 # if HAVE_ALLOCA_H
12366 # include <alloca.h>
12367 # else
12368 # ifdef _AIX
12369 #pragma alloca
12370 # else
12371 # ifndef alloca /* predefined by HP cc +Olibcalls */
12372 char *alloca ();
12373 # endif
12374 # endif
12375 # endif
12376 # endif
12377 #endif
12380 main ()
12382 char *p = (char *) alloca (1);
12384 return 0;
12386 _ACEOF
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12389 (eval $ac_link) 2>conftest.er1
12390 ac_status=$?
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -z "$ac_c_werror_flag"
12397 || test ! -s conftest.err'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 ac_cv_func_alloca_works=yes
12410 else
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_func_alloca_works=no
12416 rm -f conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12419 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12420 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12422 if test $ac_cv_func_alloca_works = yes; then
12424 cat >>confdefs.h <<\_ACEOF
12425 #define HAVE_ALLOCA 1
12426 _ACEOF
12428 else
12429 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12430 # that cause trouble. Some versions do not even contain alloca or
12431 # contain a buggy version. If you still want to use their alloca,
12432 # use ar to extract alloca.o from them instead of compiling alloca.c.
12434 ALLOCA=alloca.$ac_objext
12436 cat >>confdefs.h <<\_ACEOF
12437 #define C_ALLOCA 1
12438 _ACEOF
12441 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12442 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12443 if test "${ac_cv_os_cray+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #if defined(CRAY) && ! defined(CRAY2)
12453 webecray
12454 #else
12455 wenotbecray
12456 #endif
12458 _ACEOF
12459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12460 $EGREP "webecray" >/dev/null 2>&1; then
12461 ac_cv_os_cray=yes
12462 else
12463 ac_cv_os_cray=no
12465 rm -f conftest*
12468 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12469 echo "${ECHO_T}$ac_cv_os_cray" >&6
12470 if test $ac_cv_os_cray = yes; then
12471 for ac_func in _getb67 GETB67 getb67; do
12472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12473 echo "$as_me:$LINENO: checking for $ac_func" >&5
12474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_var+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12486 #define $ac_func innocuous_$ac_func
12488 /* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char $ac_func (); below.
12490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 <limits.h> exists even on freestanding compilers. */
12493 #ifdef __STDC__
12494 # include <limits.h>
12495 #else
12496 # include <assert.h>
12497 #endif
12499 #undef $ac_func
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 #ifdef __cplusplus
12503 extern "C"
12505 #endif
12506 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */
12508 char $ac_func ();
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12513 choke me
12514 #else
12515 char (*f) () = $ac_func;
12516 #endif
12517 #ifdef __cplusplus
12519 #endif
12522 main ()
12524 return f != $ac_func;
12526 return 0;
12528 _ACEOF
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest$ac_exeext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 eval "$as_ac_var=yes"
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 eval "$as_ac_var=no"
12558 rm -f conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define CRAY_STACKSEG_END $ac_func
12567 _ACEOF
12569 break
12572 done
12575 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12576 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12577 if test "${ac_cv_c_stack_direction+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 if test "$cross_compiling" = yes; then
12581 ac_cv_c_stack_direction=0
12582 else
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 find_stack_direction ()
12592 static char *addr = 0;
12593 auto char dummy;
12594 if (addr == 0)
12596 addr = &dummy;
12597 return find_stack_direction ();
12599 else
12600 return (&dummy > addr) ? 1 : -1;
12604 main ()
12606 exit (find_stack_direction () < 0);
12608 _ACEOF
12609 rm -f conftest$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611 (eval $ac_link) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_c_stack_direction=1
12621 else
12622 echo "$as_me: program exited with status $ac_status" >&5
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ( exit $ac_status )
12627 ac_cv_c_stack_direction=-1
12629 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12632 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12633 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12635 cat >>confdefs.h <<_ACEOF
12636 #define STACK_DIRECTION $ac_cv_c_stack_direction
12637 _ACEOF
12643 # fmod, logb, and frexp are found in -lm on most systems.
12644 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12646 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12647 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12648 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 ac_check_lib_save_LIBS=$LIBS
12652 LIBS="-lm $LIBS"
12653 cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h. */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 /* Override any gcc2 internal prototype to avoid an error. */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666 char sqrt ();
12668 main ()
12670 sqrt ();
12672 return 0;
12674 _ACEOF
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677 (eval $ac_link) 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } &&
12684 { ac_try='test -z "$ac_c_werror_flag"
12685 || test ! -s conftest.err'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } &&
12691 { ac_try='test -s conftest$ac_exeext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_lib_m_sqrt=yes
12698 else
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_cv_lib_m_sqrt=no
12704 rm -f conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12709 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12710 if test $ac_cv_lib_m_sqrt = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_LIBM 1
12713 _ACEOF
12715 LIBS="-lm $LIBS"
12720 # Check for mail-locking functions in a "mail" library. Probably this should
12721 # have the same check as for liblockfile below.
12723 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12724 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12725 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 else
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lmail $LIBS"
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h. */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12737 /* Override any gcc2 internal prototype to avoid an error. */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 /* We use char because int might match the return type of a gcc2
12742 builtin and then its argument prototype would still apply. */
12743 char maillock ();
12745 main ()
12747 maillock ();
12749 return 0;
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -z "$ac_c_werror_flag"
12762 || test ! -s conftest.err'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; } &&
12768 { ac_try='test -s conftest$ac_exeext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_lib_mail_maillock=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 ac_cv_lib_mail_maillock=no
12781 rm -f conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12785 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12786 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12787 if test $ac_cv_lib_mail_maillock = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_LIBMAIL 1
12790 _ACEOF
12792 LIBS="-lmail $LIBS"
12797 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12798 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12799 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802 ac_check_lib_save_LIBS=$LIBS
12803 LIBS="-llockfile $LIBS"
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h. */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12811 /* Override any gcc2 internal prototype to avoid an error. */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12817 char maillock ();
12819 main ()
12821 maillock ();
12823 return 0;
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828 (eval $ac_link) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_lib_lockfile_maillock=yes
12849 else
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_cv_lib_lockfile_maillock=no
12855 rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12859 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12860 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12861 if test $ac_cv_lib_lockfile_maillock = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_LIBLOCKFILE 1
12864 _ACEOF
12866 LIBS="-llockfile $LIBS"
12870 # If we have the shared liblockfile, assume we must use it for mail
12871 # locking (e.g. Debian). If we couldn't link against liblockfile
12872 # (no liblockfile.a installed), ensure that we don't need to.
12873 if test "$ac_cv_lib_lockfile_maillock" = no; then
12874 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12875 set dummy liblockfile.so; ac_word=$2
12876 echo "$as_me:$LINENO: checking for $ac_word" >&5
12877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12878 if test "${ac_cv_prog_liblockfile+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881 if test -n "$liblockfile"; then
12882 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12883 else
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12886 for as_dir in $as_dummy
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_prog_liblockfile="yes"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12896 done
12897 done
12899 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12902 liblockfile=$ac_cv_prog_liblockfile
12903 if test -n "$liblockfile"; then
12904 echo "$as_me:$LINENO: result: $liblockfile" >&5
12905 echo "${ECHO_T}$liblockfile" >&6
12906 else
12907 echo "$as_me:$LINENO: result: no" >&5
12908 echo "${ECHO_T}no" >&6
12911 if test $ac_cv_prog_liblockfile = yes; then
12912 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12913 This probably means that movemail could lose mail.
12914 There may be a \`development' package to install containing liblockfile." >&5
12915 echo "$as_me: error: Shared liblockfile found but can't link against it.
12916 This probably means that movemail could lose mail.
12917 There may be a \`development' package to install containing liblockfile." >&2;}
12918 { (exit 1); exit 1; }; }
12919 else :
12923 for ac_func in touchlock
12925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12926 echo "$as_me:$LINENO: checking for $ac_func" >&5
12927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12928 if eval "test \"\${$as_ac_var+set}\" = set"; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 else
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h. */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h. */
12937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12939 #define $ac_func innocuous_$ac_func
12941 /* System header to define __stub macros and hopefully few prototypes,
12942 which can conflict with char $ac_func (); below.
12943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12944 <limits.h> exists even on freestanding compilers. */
12946 #ifdef __STDC__
12947 # include <limits.h>
12948 #else
12949 # include <assert.h>
12950 #endif
12952 #undef $ac_func
12954 /* Override any gcc2 internal prototype to avoid an error. */
12955 #ifdef __cplusplus
12956 extern "C"
12958 #endif
12959 /* We use char because int might match the return type of a gcc2
12960 builtin and then its argument prototype would still apply. */
12961 char $ac_func ();
12962 /* The GNU C library defines this for functions which it implements
12963 to always fail with ENOSYS. Some functions are actually named
12964 something starting with __ and the normal name is an alias. */
12965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12966 choke me
12967 #else
12968 char (*f) () = $ac_func;
12969 #endif
12970 #ifdef __cplusplus
12972 #endif
12975 main ()
12977 return f != $ac_func;
12979 return 0;
12981 _ACEOF
12982 rm -f conftest.$ac_objext conftest$ac_exeext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984 (eval $ac_link) 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 eval "$as_ac_var=yes"
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 eval "$as_ac_var=no"
13011 rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13016 if test `eval echo '${'$as_ac_var'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 _ACEOF
13022 done
13025 for ac_header in maillock.h
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13036 else
13037 # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <$ac_header>
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <$ac_header>
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104 else
13105 ac_cpp_err=
13107 else
13108 ac_cpp_err=yes
13110 if test -z "$ac_cpp_err"; then
13111 ac_header_preproc=yes
13112 else
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_header_preproc=no
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124 yes:no: )
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
13131 no:yes:* )
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13145 cat <<\_ASBOX
13146 ## ------------------------------------------ ##
13147 ## Report this to the AC_PACKAGE_NAME lists. ##
13148 ## ------------------------------------------ ##
13149 _ASBOX
13151 sed "s/^/$as_me: WARNING: /" >&2
13153 esac
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13172 done
13242 for ac_func in gethostname getdomainname dup2 \
13243 rename closedir mkdir rmdir sysinfo \
13244 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13245 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13246 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13247 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13248 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13249 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13250 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13253 echo "$as_me:$LINENO: checking for $ac_func" >&5
13254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13255 if eval "test \"\${$as_ac_var+set}\" = set"; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h. */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h. */
13264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13266 #define $ac_func innocuous_$ac_func
13268 /* System header to define __stub macros and hopefully few prototypes,
13269 which can conflict with char $ac_func (); below.
13270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13271 <limits.h> exists even on freestanding compilers. */
13273 #ifdef __STDC__
13274 # include <limits.h>
13275 #else
13276 # include <assert.h>
13277 #endif
13279 #undef $ac_func
13281 /* Override any gcc2 internal prototype to avoid an error. */
13282 #ifdef __cplusplus
13283 extern "C"
13285 #endif
13286 /* We use char because int might match the return type of a gcc2
13287 builtin and then its argument prototype would still apply. */
13288 char $ac_func ();
13289 /* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13293 choke me
13294 #else
13295 char (*f) () = $ac_func;
13296 #endif
13297 #ifdef __cplusplus
13299 #endif
13302 main ()
13304 return f != $ac_func;
13306 return 0;
13308 _ACEOF
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 eval "$as_ac_var=yes"
13332 else
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 eval "$as_ac_var=no"
13338 rm -f conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13343 if test `eval echo '${'$as_ac_var'}'` = yes; then
13344 cat >>confdefs.h <<_ACEOF
13345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13346 _ACEOF
13349 done
13353 for ac_header in sys/un.h
13355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13364 else
13365 # Is the header compilable?
13366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_c_werror_flag"
13387 || test ! -s conftest.err'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; } &&
13393 { ac_try='test -s conftest.$ac_objext'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13396 ac_status=$?
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_header_compiler=yes
13400 else
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_compiler=no
13406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13408 echo "${ECHO_T}$ac_header_compiler" >&6
13410 # Is the header present?
13411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include <$ac_header>
13420 _ACEOF
13421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } >/dev/null; then
13429 if test -s conftest.err; then
13430 ac_cpp_err=$ac_c_preproc_warn_flag
13431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13432 else
13433 ac_cpp_err=
13435 else
13436 ac_cpp_err=yes
13438 if test -z "$ac_cpp_err"; then
13439 ac_header_preproc=yes
13440 else
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13444 ac_header_preproc=no
13446 rm -f conftest.err conftest.$ac_ext
13447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13448 echo "${ECHO_T}$ac_header_preproc" >&6
13450 # So? What about this header?
13451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13452 yes:no: )
13453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13457 ac_header_preproc=yes
13459 no:yes:* )
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13473 cat <<\_ASBOX
13474 ## ------------------------------------------ ##
13475 ## Report this to the AC_PACKAGE_NAME lists. ##
13476 ## ------------------------------------------ ##
13477 _ASBOX
13479 sed "s/^/$as_me: WARNING: /" >&2
13481 esac
13482 echo "$as_me:$LINENO: checking for $ac_header" >&5
13483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487 eval "$as_ac_Header=\$ac_header_preproc"
13489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13494 cat >>confdefs.h <<_ACEOF
13495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13496 _ACEOF
13500 done
13506 for ac_header in stdlib.h sys/time.h unistd.h
13508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510 echo "$as_me:$LINENO: checking for $ac_header" >&5
13511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13517 else
13518 # Is the header compilable?
13519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13528 #include <$ac_header>
13529 _ACEOF
13530 rm -f conftest.$ac_objext
13531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13532 (eval $ac_compile) 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_header_compiler=yes
13553 else
13554 echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13557 ac_header_compiler=no
13559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13561 echo "${ECHO_T}$ac_header_compiler" >&6
13563 # Is the header present?
13564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h. */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 #include <$ac_header>
13573 _ACEOF
13574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null; then
13582 if test -s conftest.err; then
13583 ac_cpp_err=$ac_c_preproc_warn_flag
13584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13585 else
13586 ac_cpp_err=
13588 else
13589 ac_cpp_err=yes
13591 if test -z "$ac_cpp_err"; then
13592 ac_header_preproc=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_preproc=no
13599 rm -f conftest.err conftest.$ac_ext
13600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13601 echo "${ECHO_T}$ac_header_preproc" >&6
13603 # So? What about this header?
13604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13605 yes:no: )
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13610 ac_header_preproc=yes
13612 no:yes:* )
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13626 cat <<\_ASBOX
13627 ## ------------------------------------------ ##
13628 ## Report this to the AC_PACKAGE_NAME lists. ##
13629 ## ------------------------------------------ ##
13630 _ASBOX
13632 sed "s/^/$as_me: WARNING: /" >&2
13634 esac
13635 echo "$as_me:$LINENO: checking for $ac_header" >&5
13636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 eval "$as_ac_Header=\$ac_header_preproc"
13642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13647 cat >>confdefs.h <<_ACEOF
13648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13649 _ACEOF
13653 done
13656 for ac_func in alarm
13658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13659 echo "$as_me:$LINENO: checking for $ac_func" >&5
13660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13661 if eval "test \"\${$as_ac_var+set}\" = set"; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13672 #define $ac_func innocuous_$ac_func
13674 /* System header to define __stub macros and hopefully few prototypes,
13675 which can conflict with char $ac_func (); below.
13676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13677 <limits.h> exists even on freestanding compilers. */
13679 #ifdef __STDC__
13680 # include <limits.h>
13681 #else
13682 # include <assert.h>
13683 #endif
13685 #undef $ac_func
13687 /* Override any gcc2 internal prototype to avoid an error. */
13688 #ifdef __cplusplus
13689 extern "C"
13691 #endif
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694 char $ac_func ();
13695 /* The GNU C library defines this for functions which it implements
13696 to always fail with ENOSYS. Some functions are actually named
13697 something starting with __ and the normal name is an alias. */
13698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13699 choke me
13700 #else
13701 char (*f) () = $ac_func;
13702 #endif
13703 #ifdef __cplusplus
13705 #endif
13708 main ()
13710 return f != $ac_func;
13712 return 0;
13714 _ACEOF
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag"
13725 || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 eval "$as_ac_var=yes"
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 eval "$as_ac_var=no"
13744 rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13749 if test `eval echo '${'$as_ac_var'}'` = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13752 _ACEOF
13755 done
13757 echo "$as_me:$LINENO: checking for working mktime" >&5
13758 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13759 if test "${ac_cv_func_working_mktime+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762 if test "$cross_compiling" = yes; then
13763 ac_cv_func_working_mktime=no
13764 else
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h. */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 /* Test program from Paul Eggert and Tony Leneis. */
13772 #if TIME_WITH_SYS_TIME
13773 # include <sys/time.h>
13774 # include <time.h>
13775 #else
13776 # if HAVE_SYS_TIME_H
13777 # include <sys/time.h>
13778 # else
13779 # include <time.h>
13780 # endif
13781 #endif
13783 #if HAVE_STDLIB_H
13784 # include <stdlib.h>
13785 #endif
13787 #if HAVE_UNISTD_H
13788 # include <unistd.h>
13789 #endif
13791 #if !HAVE_ALARM
13792 # define alarm(X) /* empty */
13793 #endif
13795 /* Work around redefinition to rpl_putenv by other config tests. */
13796 #undef putenv
13798 static time_t time_t_max;
13799 static time_t time_t_min;
13801 /* Values we'll use to set the TZ environment variable. */
13802 static char *tz_strings[] = {
13803 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13804 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13806 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13808 /* Fail if mktime fails to convert a date in the spring-forward gap.
13809 Based on a problem report from Andreas Jaeger. */
13810 static void
13811 spring_forward_gap ()
13813 /* glibc (up to about 1998-10-07) failed this test. */
13814 struct tm tm;
13816 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13817 instead of "TZ=America/Vancouver" in order to detect the bug even
13818 on systems that don't support the Olson extension, or don't have the
13819 full zoneinfo tables installed. */
13820 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13822 tm.tm_year = 98;
13823 tm.tm_mon = 3;
13824 tm.tm_mday = 5;
13825 tm.tm_hour = 2;
13826 tm.tm_min = 0;
13827 tm.tm_sec = 0;
13828 tm.tm_isdst = -1;
13829 if (mktime (&tm) == (time_t)-1)
13830 exit (1);
13833 static void
13834 mktime_test1 (now)
13835 time_t now;
13837 struct tm *lt;
13838 if ((lt = localtime (&now)) && mktime (lt) != now)
13839 exit (1);
13842 static void
13843 mktime_test (now)
13844 time_t now;
13846 mktime_test1 (now);
13847 mktime_test1 ((time_t) (time_t_max - now));
13848 mktime_test1 ((time_t) (time_t_min + now));
13851 static void
13852 irix_6_4_bug ()
13854 /* Based on code from Ariel Faigon. */
13855 struct tm tm;
13856 tm.tm_year = 96;
13857 tm.tm_mon = 3;
13858 tm.tm_mday = 0;
13859 tm.tm_hour = 0;
13860 tm.tm_min = 0;
13861 tm.tm_sec = 0;
13862 tm.tm_isdst = -1;
13863 mktime (&tm);
13864 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13865 exit (1);
13868 static void
13869 bigtime_test (j)
13870 int j;
13872 struct tm tm;
13873 time_t now;
13874 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13875 now = mktime (&tm);
13876 if (now != (time_t) -1)
13878 struct tm *lt = localtime (&now);
13879 if (! (lt
13880 && lt->tm_year == tm.tm_year
13881 && lt->tm_mon == tm.tm_mon
13882 && lt->tm_mday == tm.tm_mday
13883 && lt->tm_hour == tm.tm_hour
13884 && lt->tm_min == tm.tm_min
13885 && lt->tm_sec == tm.tm_sec
13886 && lt->tm_yday == tm.tm_yday
13887 && lt->tm_wday == tm.tm_wday
13888 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13889 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13890 exit (1);
13895 main ()
13897 time_t t, delta;
13898 int i, j;
13900 /* This test makes some buggy mktime implementations loop.
13901 Give up after 60 seconds; a mktime slower than that
13902 isn't worth using anyway. */
13903 alarm (60);
13905 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13906 continue;
13907 time_t_max--;
13908 if ((time_t) -1 < 0)
13909 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13910 continue;
13911 delta = time_t_max / 997; /* a suitable prime number */
13912 for (i = 0; i < N_STRINGS; i++)
13914 if (tz_strings[i])
13915 putenv (tz_strings[i]);
13917 for (t = 0; t <= time_t_max - delta; t += delta)
13918 mktime_test (t);
13919 mktime_test ((time_t) 1);
13920 mktime_test ((time_t) (60 * 60));
13921 mktime_test ((time_t) (60 * 60 * 24));
13923 for (j = 1; 0 < j; j *= 2)
13924 bigtime_test (j);
13925 bigtime_test (j - 1);
13927 irix_6_4_bug ();
13928 spring_forward_gap ();
13929 exit (0);
13931 _ACEOF
13932 rm -f conftest$ac_exeext
13933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934 (eval $ac_link) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_func_working_mktime=yes
13944 else
13945 echo "$as_me: program exited with status $ac_status" >&5
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13949 ( exit $ac_status )
13950 ac_cv_func_working_mktime=no
13952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13956 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13957 if test $ac_cv_func_working_mktime = no; then
13958 case $LIBOBJS in
13959 "mktime.$ac_objext" | \
13960 *" mktime.$ac_objext" | \
13961 "mktime.$ac_objext "* | \
13962 *" mktime.$ac_objext "* ) ;;
13963 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13964 esac
13968 if test "$ac_cv_func_working_mktime" = no; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define BROKEN_MKTIME 1
13972 _ACEOF
13976 ac_have_func=no # yes means we've found a way to get the load average.
13978 # Make sure getloadavg.c is where it belongs, at configure-time.
13979 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13980 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13981 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13982 { (exit 1); exit 1; }; }
13984 ac_save_LIBS=$LIBS
13986 # Check for getloadavg, but be sure not to touch the cache variable.
13987 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13988 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13989 if test "${ac_cv_func_getloadavg+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 cat >conftest.$ac_ext <<_ACEOF
13993 /* confdefs.h. */
13994 _ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14000 #define getloadavg innocuous_getloadavg
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char getloadavg (); below.
14004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14005 <limits.h> exists even on freestanding compilers. */
14007 #ifdef __STDC__
14008 # include <limits.h>
14009 #else
14010 # include <assert.h>
14011 #endif
14013 #undef getloadavg
14015 /* Override any gcc2 internal prototype to avoid an error. */
14016 #ifdef __cplusplus
14017 extern "C"
14019 #endif
14020 /* We use char because int might match the return type of a gcc2
14021 builtin and then its argument prototype would still apply. */
14022 char getloadavg ();
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14027 choke me
14028 #else
14029 char (*f) () = getloadavg;
14030 #endif
14031 #ifdef __cplusplus
14033 #endif
14036 main ()
14038 return f != getloadavg;
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14045 (eval $ac_link) 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } &&
14052 { ac_try='test -z "$ac_c_werror_flag"
14053 || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest$ac_exeext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 ac_cv_func_getloadavg=yes
14066 else
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 ac_cv_func_getloadavg=no
14072 rm -f conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14075 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14076 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14077 if test $ac_cv_func_getloadavg = yes; then
14078 exit 0
14079 else
14080 exit 1
14082 ) && ac_have_func=yes
14084 # On HPUX9, an unprivileged user can get load averages through this function.
14086 for ac_func in pstat_getdynamic
14088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14089 echo "$as_me:$LINENO: checking for $ac_func" >&5
14090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_var+set}\" = set"; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14102 #define $ac_func innocuous_$ac_func
14104 /* System header to define __stub macros and hopefully few prototypes,
14105 which can conflict with char $ac_func (); below.
14106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14107 <limits.h> exists even on freestanding compilers. */
14109 #ifdef __STDC__
14110 # include <limits.h>
14111 #else
14112 # include <assert.h>
14113 #endif
14115 #undef $ac_func
14117 /* Override any gcc2 internal prototype to avoid an error. */
14118 #ifdef __cplusplus
14119 extern "C"
14121 #endif
14122 /* We use char because int might match the return type of a gcc2
14123 builtin and then its argument prototype would still apply. */
14124 char $ac_func ();
14125 /* The GNU C library defines this for functions which it implements
14126 to always fail with ENOSYS. Some functions are actually named
14127 something starting with __ and the normal name is an alias. */
14128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14129 choke me
14130 #else
14131 char (*f) () = $ac_func;
14132 #endif
14133 #ifdef __cplusplus
14135 #endif
14138 main ()
14140 return f != $ac_func;
14142 return 0;
14144 _ACEOF
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 eval "$as_ac_var=yes"
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 eval "$as_ac_var=no"
14174 rm -f conftest.err conftest.$ac_objext \
14175 conftest$ac_exeext conftest.$ac_ext
14177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14179 if test `eval echo '${'$as_ac_var'}'` = yes; then
14180 cat >>confdefs.h <<_ACEOF
14181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14182 _ACEOF
14185 done
14188 # Solaris has libkstat which does not require root.
14190 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14191 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195 ac_check_lib_save_LIBS=$LIBS
14196 LIBS="-lkstat $LIBS"
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14204 /* Override any gcc2 internal prototype to avoid an error. */
14205 #ifdef __cplusplus
14206 extern "C"
14207 #endif
14208 /* We use char because int might match the return type of a gcc2
14209 builtin and then its argument prototype would still apply. */
14210 char kstat_open ();
14212 main ()
14214 kstat_open ();
14216 return 0;
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_lib_kstat_kstat_open=yes
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_lib_kstat_kstat_open=no
14248 rm -f conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14252 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14253 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14254 if test $ac_cv_lib_kstat_kstat_open = yes; then
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_LIBKSTAT 1
14257 _ACEOF
14259 LIBS="-lkstat $LIBS"
14263 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14265 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14266 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14267 # to get the right answer into the cache.
14268 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14269 if test $ac_have_func = no; then
14270 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14271 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14272 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 else
14275 ac_check_lib_save_LIBS=$LIBS
14276 LIBS="-lelf $LIBS"
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 /* Override any gcc2 internal prototype to avoid an error. */
14285 #ifdef __cplusplus
14286 extern "C"
14287 #endif
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290 char elf_begin ();
14292 main ()
14294 elf_begin ();
14296 return 0;
14298 _ACEOF
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest$ac_exeext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_cv_lib_elf_elf_begin=yes
14322 else
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_cv_lib_elf_elf_begin=no
14328 rm -f conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14332 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14333 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14334 if test $ac_cv_lib_elf_elf_begin = yes; then
14335 LIBS="-lelf $LIBS"
14339 if test $ac_have_func = no; then
14340 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14341 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14342 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-lkvm $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14354 /* Override any gcc2 internal prototype to avoid an error. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 /* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14360 char kvm_open ();
14362 main ()
14364 kvm_open ();
14366 return 0;
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest$ac_exeext'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_cv_lib_kvm_kvm_open=yes
14392 else
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_cv_lib_kvm_kvm_open=no
14398 rm -f conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400 LIBS=$ac_check_lib_save_LIBS
14402 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14403 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14404 if test $ac_cv_lib_kvm_kvm_open = yes; then
14405 LIBS="-lkvm $LIBS"
14408 # Check for the 4.4BSD definition of getloadavg.
14409 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14410 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14411 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414 ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-lutil $LIBS"
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 /* Override any gcc2 internal prototype to avoid an error. */
14424 #ifdef __cplusplus
14425 extern "C"
14426 #endif
14427 /* We use char because int might match the return type of a gcc2
14428 builtin and then its argument prototype would still apply. */
14429 char getloadavg ();
14431 main ()
14433 getloadavg ();
14435 return 0;
14437 _ACEOF
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14440 (eval $ac_link) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest$ac_exeext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_lib_util_getloadavg=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 ac_cv_lib_util_getloadavg=no
14467 rm -f conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14471 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14472 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14473 if test $ac_cv_lib_util_getloadavg = yes; then
14474 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14479 if test $ac_have_func = no; then
14480 # There is a commonly available library for RS/6000 AIX.
14481 # Since it is not a standard part of AIX, it might be installed locally.
14482 ac_getloadavg_LIBS=$LIBS
14483 LIBS="-L/usr/local/lib $LIBS"
14484 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14485 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14486 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 ac_check_lib_save_LIBS=$LIBS
14490 LIBS="-lgetloadavg $LIBS"
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any gcc2 internal prototype to avoid an error. */
14499 #ifdef __cplusplus
14500 extern "C"
14501 #endif
14502 /* We use char because int might match the return type of a gcc2
14503 builtin and then its argument prototype would still apply. */
14504 char getloadavg ();
14506 main ()
14508 getloadavg ();
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest$ac_exeext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_cv_lib_getloadavg_getloadavg=yes
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_lib_getloadavg_getloadavg=no
14542 rm -f conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 LIBS=$ac_check_lib_save_LIBS
14546 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14547 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14548 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14549 LIBS="-lgetloadavg $LIBS"
14550 else
14551 LIBS=$ac_getloadavg_LIBS
14556 # Make sure it is really in the library, if we think we found it,
14557 # otherwise set up the replacement function.
14559 for ac_func in getloadavg
14561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562 echo "$as_me:$LINENO: checking for $ac_func" >&5
14563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14564 if eval "test \"\${$as_ac_var+set}\" = set"; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h. */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14575 #define $ac_func innocuous_$ac_func
14577 /* System header to define __stub macros and hopefully few prototypes,
14578 which can conflict with char $ac_func (); below.
14579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14580 <limits.h> exists even on freestanding compilers. */
14582 #ifdef __STDC__
14583 # include <limits.h>
14584 #else
14585 # include <assert.h>
14586 #endif
14588 #undef $ac_func
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 #ifdef __cplusplus
14592 extern "C"
14594 #endif
14595 /* We use char because int might match the return type of a gcc2
14596 builtin and then its argument prototype would still apply. */
14597 char $ac_func ();
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14602 choke me
14603 #else
14604 char (*f) () = $ac_func;
14605 #endif
14606 #ifdef __cplusplus
14608 #endif
14611 main ()
14613 return f != $ac_func;
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 eval "$as_ac_var=yes"
14641 else
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14645 eval "$as_ac_var=no"
14647 rm -f conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
14650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14652 if test `eval echo '${'$as_ac_var'}'` = yes; then
14653 cat >>confdefs.h <<_ACEOF
14654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14655 _ACEOF
14657 else
14658 case $LIBOBJS in
14659 "getloadavg.$ac_objext" | \
14660 *" getloadavg.$ac_objext" | \
14661 "getloadavg.$ac_objext "* | \
14662 *" getloadavg.$ac_objext "* ) ;;
14663 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14664 esac
14667 cat >>confdefs.h <<\_ACEOF
14668 #define C_GETLOADAVG 1
14669 _ACEOF
14671 # Figure out what our getloadavg.c needs.
14672 ac_have_func=no
14673 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14674 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14675 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14676 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14680 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14681 else
14682 # Is the header compilable?
14683 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14684 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h. */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 $ac_includes_default
14692 #include <sys/dg_sys_info.h>
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_header_compiler=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_compiler=no
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6
14727 # Is the header present?
14728 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14729 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h. */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 #include <sys/dg_sys_info.h>
14737 _ACEOF
14738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } >/dev/null; then
14746 if test -s conftest.err; then
14747 ac_cpp_err=$ac_c_preproc_warn_flag
14748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14749 else
14750 ac_cpp_err=
14752 else
14753 ac_cpp_err=yes
14755 if test -z "$ac_cpp_err"; then
14756 ac_header_preproc=yes
14757 else
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 ac_header_preproc=no
14763 rm -f conftest.err conftest.$ac_ext
14764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 yes:no: )
14770 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14773 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14774 ac_header_preproc=yes
14776 no:yes:* )
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14778 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14780 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14782 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14784 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14788 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14790 cat <<\_ASBOX
14791 ## ------------------------------------------ ##
14792 ## Report this to the AC_PACKAGE_NAME lists. ##
14793 ## ------------------------------------------ ##
14794 _ASBOX
14796 sed "s/^/$as_me: WARNING: /" >&2
14798 esac
14799 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14800 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14801 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14806 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14807 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14810 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14811 ac_have_func=yes
14813 cat >>confdefs.h <<\_ACEOF
14814 #define DGUX 1
14815 _ACEOF
14818 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14819 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14820 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823 ac_check_lib_save_LIBS=$LIBS
14824 LIBS="-ldgc $LIBS"
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14832 /* Override any gcc2 internal prototype to avoid an error. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 /* We use char because int might match the return type of a gcc2
14837 builtin and then its argument prototype would still apply. */
14838 char dg_sys_info ();
14840 main ()
14842 dg_sys_info ();
14844 return 0;
14846 _ACEOF
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_lib_dgc_dg_sys_info=yes
14870 else
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_lib_dgc_dg_sys_info=no
14876 rm -f conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14881 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14882 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBDGC 1
14885 _ACEOF
14887 LIBS="-ldgc $LIBS"
14895 if test "${ac_cv_header_locale_h+set}" = set; then
14896 echo "$as_me:$LINENO: checking for locale.h" >&5
14897 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14898 if test "${ac_cv_header_locale_h+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14902 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14903 else
14904 # Is the header compilable?
14905 echo "$as_me:$LINENO: checking locale.h usability" >&5
14906 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 $ac_includes_default
14914 #include <locale.h>
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918 (eval $ac_compile) 2>conftest.er1
14919 ac_status=$?
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest.$ac_objext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_header_compiler=yes
14939 else
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ac_header_compiler=no
14945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14947 echo "${ECHO_T}$ac_header_compiler" >&6
14949 # Is the header present?
14950 echo "$as_me:$LINENO: checking locale.h presence" >&5
14951 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <locale.h>
14959 _ACEOF
14960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14962 ac_status=$?
14963 grep -v '^ *+' conftest.er1 >conftest.err
14964 rm -f conftest.er1
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } >/dev/null; then
14968 if test -s conftest.err; then
14969 ac_cpp_err=$ac_c_preproc_warn_flag
14970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14971 else
14972 ac_cpp_err=
14974 else
14975 ac_cpp_err=yes
14977 if test -z "$ac_cpp_err"; then
14978 ac_header_preproc=yes
14979 else
14980 echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14987 echo "${ECHO_T}$ac_header_preproc" >&6
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14991 yes:no: )
14992 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14993 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14995 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14996 ac_header_preproc=yes
14998 no:yes:* )
14999 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15000 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15002 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15004 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15005 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15006 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15007 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15008 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15010 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15012 cat <<\_ASBOX
15013 ## ------------------------------------------ ##
15014 ## Report this to the AC_PACKAGE_NAME lists. ##
15015 ## ------------------------------------------ ##
15016 _ASBOX
15018 sed "s/^/$as_me: WARNING: /" >&2
15020 esac
15021 echo "$as_me:$LINENO: checking for locale.h" >&5
15022 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15023 if test "${ac_cv_header_locale_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 ac_cv_header_locale_h=$ac_header_preproc
15028 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15029 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15035 for ac_func in setlocale
15037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15038 echo "$as_me:$LINENO: checking for $ac_func" >&5
15039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15040 if eval "test \"\${$as_ac_var+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15051 #define $ac_func innocuous_$ac_func
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char $ac_func (); below.
15055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056 <limits.h> exists even on freestanding compilers. */
15058 #ifdef __STDC__
15059 # include <limits.h>
15060 #else
15061 # include <assert.h>
15062 #endif
15064 #undef $ac_func
15066 /* Override any gcc2 internal prototype to avoid an error. */
15067 #ifdef __cplusplus
15068 extern "C"
15070 #endif
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073 char $ac_func ();
15074 /* The GNU C library defines this for functions which it implements
15075 to always fail with ENOSYS. Some functions are actually named
15076 something starting with __ and the normal name is an alias. */
15077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15078 choke me
15079 #else
15080 char (*f) () = $ac_func;
15081 #endif
15082 #ifdef __cplusplus
15084 #endif
15087 main ()
15089 return f != $ac_func;
15091 return 0;
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 eval "$as_ac_var=yes"
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 eval "$as_ac_var=no"
15123 rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15128 if test `eval echo '${'$as_ac_var'}'` = yes; then
15129 cat >>confdefs.h <<_ACEOF
15130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15131 _ACEOF
15134 done
15137 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15138 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15139 # Irix 4.0.5F has the header but not the library.
15140 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15141 ac_have_func=yes
15143 cat >>confdefs.h <<\_ACEOF
15144 #define SVR4 1
15145 _ACEOF
15149 if test $ac_have_func = no; then
15150 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15151 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15152 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15153 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15157 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15158 else
15159 # Is the header compilable?
15160 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15161 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 $ac_includes_default
15169 #include <inq_stats/cpustats.h>
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_header_compiler=no
15200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15202 echo "${ECHO_T}$ac_header_compiler" >&6
15204 # Is the header present?
15205 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15206 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 #include <inq_stats/cpustats.h>
15214 _ACEOF
15215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15226 else
15227 ac_cpp_err=
15229 else
15230 ac_cpp_err=yes
15232 if test -z "$ac_cpp_err"; then
15233 ac_header_preproc=yes
15234 else
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_preproc=no
15240 rm -f conftest.err conftest.$ac_ext
15241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15242 echo "${ECHO_T}$ac_header_preproc" >&6
15244 # So? What about this header?
15245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15246 yes:no: )
15247 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15248 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15250 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15251 ac_header_preproc=yes
15253 no:yes:* )
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15255 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15257 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15259 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15261 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15263 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15265 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15267 cat <<\_ASBOX
15268 ## ------------------------------------------ ##
15269 ## Report this to the AC_PACKAGE_NAME lists. ##
15270 ## ------------------------------------------ ##
15271 _ASBOX
15273 sed "s/^/$as_me: WARNING: /" >&2
15275 esac
15276 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15277 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15278 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15283 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15284 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15287 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15288 ac_have_func=yes
15290 cat >>confdefs.h <<\_ACEOF
15291 #define UMAX 1
15292 _ACEOF
15295 cat >>confdefs.h <<\_ACEOF
15296 #define UMAX4_3 1
15297 _ACEOF
15304 if test $ac_have_func = no; then
15305 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15306 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15307 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15308 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15312 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15313 else
15314 # Is the header compilable?
15315 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15316 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h. */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15324 #include <sys/cpustats.h>
15325 _ACEOF
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15349 else
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_header_compiler=no
15355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15361 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <sys/cpustats.h>
15369 _ACEOF
15370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } >/dev/null; then
15378 if test -s conftest.err; then
15379 ac_cpp_err=$ac_c_preproc_warn_flag
15380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15381 else
15382 ac_cpp_err=
15384 else
15385 ac_cpp_err=yes
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_preproc=no
15395 rm -f conftest.err conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15401 yes:no: )
15402 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
15408 no:yes:* )
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15422 cat <<\_ASBOX
15423 ## ------------------------------------------ ##
15424 ## Report this to the AC_PACKAGE_NAME lists. ##
15425 ## ------------------------------------------ ##
15426 _ASBOX
15428 sed "s/^/$as_me: WARNING: /" >&2
15430 esac
15431 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15432 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15433 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 else
15436 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15438 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15439 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15442 if test $ac_cv_header_sys_cpustats_h = yes; then
15443 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15444 #define UMAX 1
15445 _ACEOF
15452 if test $ac_have_func = no; then
15454 for ac_header in mach/mach.h
15456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15458 echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465 else
15466 # Is the header compilable?
15467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 $ac_includes_default
15476 #include <$ac_header>
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
15487 { ac_try='test -z "$ac_c_werror_flag"
15488 || test ! -s conftest.err'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_header_compiler=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6
15511 # Is the header present?
15512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <$ac_header>
15521 _ACEOF
15522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } >/dev/null; then
15530 if test -s conftest.err; then
15531 ac_cpp_err=$ac_c_preproc_warn_flag
15532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15533 else
15534 ac_cpp_err=
15536 else
15537 ac_cpp_err=yes
15539 if test -z "$ac_cpp_err"; then
15540 ac_header_preproc=yes
15541 else
15542 echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_header_preproc=no
15547 rm -f conftest.err conftest.$ac_ext
15548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15549 echo "${ECHO_T}$ac_header_preproc" >&6
15551 # So? What about this header?
15552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15553 yes:no: )
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15558 ac_header_preproc=yes
15560 no:yes:* )
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15574 cat <<\_ASBOX
15575 ## ------------------------------------------ ##
15576 ## Report this to the AC_PACKAGE_NAME lists. ##
15577 ## ------------------------------------------ ##
15578 _ASBOX
15580 sed "s/^/$as_me: WARNING: /" >&2
15582 esac
15583 echo "$as_me:$LINENO: checking for $ac_header" >&5
15584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588 eval "$as_ac_Header=\$ac_header_preproc"
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15597 _ACEOF
15601 done
15606 for ac_header in nlist.h
15608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15610 echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15617 else
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <$ac_header>
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler=yes
15653 else
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.$ac_ext >&5
15657 ac_header_compiler=no
15659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h. */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <$ac_header>
15673 _ACEOF
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev/null; then
15682 if test -s conftest.err; then
15683 ac_cpp_err=$ac_c_preproc_warn_flag
15684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15685 else
15686 ac_cpp_err=
15688 else
15689 ac_cpp_err=yes
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc=yes
15693 else
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15697 ac_header_preproc=no
15699 rm -f conftest.err conftest.$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15705 yes:no: )
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc=yes
15712 no:yes:* )
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15726 cat <<\_ASBOX
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15730 _ASBOX
15732 sed "s/^/$as_me: WARNING: /" >&2
15734 esac
15735 echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 eval "$as_ac_Header=\$ac_header_preproc"
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15749 _ACEOF
15750 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15751 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15752 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <nlist.h>
15764 main ()
15766 static struct nlist ac_aggr;
15767 if (ac_aggr.n_un.n_name)
15768 return 0;
15770 return 0;
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775 (eval $ac_compile) 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } &&
15782 { ac_try='test -z "$ac_c_werror_flag"
15783 || test ! -s conftest.err'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_cv_member_struct_nlist_n_un_n_name=yes
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 #include <nlist.h>
15809 main ()
15811 static struct nlist ac_aggr;
15812 if (sizeof ac_aggr.n_un.n_name)
15813 return 0;
15815 return 0;
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820 (eval $ac_compile) 2>conftest.er1
15821 ac_status=$?
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_member_struct_nlist_n_un_n_name=yes
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 ac_cv_member_struct_nlist_n_un_n_name=no
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15851 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15852 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15853 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15857 _ACEOF
15860 cat >>confdefs.h <<\_ACEOF
15861 #define NLIST_NAME_UNION 1
15862 _ACEOF
15869 done
15872 done
15875 # Some definitions of getloadavg require that the program be installed setgid.
15876 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15877 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15878 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881 cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h. */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15888 #ifdef LDAV_PRIVILEGED
15889 Yowza Am I SETGID yet
15890 #endif
15891 _ACEOF
15892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15893 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15894 ac_cv_func_getloadavg_setgid=yes
15895 else
15896 ac_cv_func_getloadavg_setgid=no
15898 rm -f conftest*
15901 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15902 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15903 if test $ac_cv_func_getloadavg_setgid = yes; then
15904 NEED_SETGID=true
15906 cat >>confdefs.h <<\_ACEOF
15907 #define GETLOADAVG_PRIVILEGED 1
15908 _ACEOF
15910 else
15911 NEED_SETGID=false
15914 if test $ac_cv_func_getloadavg_setgid = yes; then
15915 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15916 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15917 if test "${ac_cv_group_kmem+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15921 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15922 # If we got an error (system does not support symlinks), try without -L.
15923 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15924 ac_cv_group_kmem=`echo $ac_ls_output \
15925 | sed -ne 's/[ ][ ]*/ /g;
15926 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15927 / /s/.* //;p;'`
15930 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15931 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15932 KMEM_GROUP=$ac_cv_group_kmem
15934 if test "x$ac_save_LIBS" = x; then
15935 GETLOADAVG_LIBS=$LIBS
15936 else
15937 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15939 LIBS=$ac_save_LIBS
15943 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15944 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15945 if test "${ac_cv_sys_largefile_source+set}" = set; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 else
15948 while :; do
15949 ac_cv_sys_largefile_source=no
15950 cat >conftest.$ac_ext <<_ACEOF
15951 /* confdefs.h. */
15952 _ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15956 #include <stdio.h>
15958 main ()
15960 return !fseeko;
15962 return 0;
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967 (eval $ac_compile) 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } &&
15974 { ac_try='test -z "$ac_c_werror_flag"
15975 || test ! -s conftest.err'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 break
15988 else
15989 echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h. */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 #define _LARGEFILE_SOURCE 1
16001 #include <stdio.h>
16003 main ()
16005 return !fseeko;
16007 return 0;
16009 _ACEOF
16010 rm -f conftest.$ac_objext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16012 (eval $ac_compile) 2>conftest.er1
16013 ac_status=$?
16014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest.$ac_objext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_sys_largefile_source=1; break
16033 else
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039 break
16040 done
16042 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16043 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16044 if test "$ac_cv_sys_largefile_source" != no; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16048 _ACEOF
16051 rm -f conftest*
16053 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16054 # in glibc 2.1.3, but that breaks too many other things.
16055 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16056 echo "$as_me:$LINENO: checking for fseeko" >&5
16057 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16058 if test "${ac_cv_func_fseeko+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 #include <stdio.h>
16069 main ()
16071 return fseeko && fseeko (stdin, 0, 0);
16073 return 0;
16075 _ACEOF
16076 rm -f conftest.$ac_objext conftest$ac_exeext
16077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16078 (eval $ac_link) 2>conftest.er1
16079 ac_status=$?
16080 grep -v '^ *+' conftest.er1 >conftest.err
16081 rm -f conftest.er1
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } &&
16085 { ac_try='test -z "$ac_c_werror_flag"
16086 || test ! -s conftest.err'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest$ac_exeext'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_func_fseeko=yes
16099 else
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_cv_func_fseeko=no
16105 rm -f conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16108 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16109 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16110 if test $ac_cv_func_fseeko = yes; then
16112 cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_FSEEKO 1
16114 _ACEOF
16119 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16120 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16121 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124 # Use it with a single arg.
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16133 main ()
16135 getpgrp (0);
16137 return 0;
16139 _ACEOF
16140 rm -f conftest.$ac_objext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16142 (eval $ac_compile) 2>conftest.er1
16143 ac_status=$?
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_func_getpgrp_void=no
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_cv_func_getpgrp_void=yes
16169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16172 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16173 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16174 if test $ac_cv_func_getpgrp_void = yes; then
16176 cat >>confdefs.h <<\_ACEOF
16177 #define GETPGRP_VOID 1
16178 _ACEOF
16184 for ac_func in strftime
16186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16187 echo "$as_me:$LINENO: checking for $ac_func" >&5
16188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16189 if eval "test \"\${$as_ac_var+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h. */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16200 #define $ac_func innocuous_$ac_func
16202 /* System header to define __stub macros and hopefully few prototypes,
16203 which can conflict with char $ac_func (); below.
16204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16205 <limits.h> exists even on freestanding compilers. */
16207 #ifdef __STDC__
16208 # include <limits.h>
16209 #else
16210 # include <assert.h>
16211 #endif
16213 #undef $ac_func
16215 /* Override any gcc2 internal prototype to avoid an error. */
16216 #ifdef __cplusplus
16217 extern "C"
16219 #endif
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222 char $ac_func ();
16223 /* The GNU C library defines this for functions which it implements
16224 to always fail with ENOSYS. Some functions are actually named
16225 something starting with __ and the normal name is an alias. */
16226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16227 choke me
16228 #else
16229 char (*f) () = $ac_func;
16230 #endif
16231 #ifdef __cplusplus
16233 #endif
16236 main ()
16238 return f != $ac_func;
16240 return 0;
16242 _ACEOF
16243 rm -f conftest.$ac_objext conftest$ac_exeext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>conftest.er1
16246 ac_status=$?
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest$ac_exeext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 eval "$as_ac_var=yes"
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 eval "$as_ac_var=no"
16272 rm -f conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16277 if test `eval echo '${'$as_ac_var'}'` = yes; then
16278 cat >>confdefs.h <<_ACEOF
16279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16280 _ACEOF
16282 else
16283 # strftime is in -lintl on SCO UNIX.
16284 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16285 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16286 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289 ac_check_lib_save_LIBS=$LIBS
16290 LIBS="-lintl $LIBS"
16291 cat >conftest.$ac_ext <<_ACEOF
16292 /* confdefs.h. */
16293 _ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16298 /* Override any gcc2 internal prototype to avoid an error. */
16299 #ifdef __cplusplus
16300 extern "C"
16301 #endif
16302 /* We use char because int might match the return type of a gcc2
16303 builtin and then its argument prototype would still apply. */
16304 char strftime ();
16306 main ()
16308 strftime ();
16310 return 0;
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315 (eval $ac_link) 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag"
16323 || test ! -s conftest.err'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest$ac_exeext'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_cv_lib_intl_strftime=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_cv_lib_intl_strftime=no
16342 rm -f conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16346 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16347 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16348 if test $ac_cv_lib_intl_strftime = yes; then
16349 cat >>confdefs.h <<\_ACEOF
16350 #define HAVE_STRFTIME 1
16351 _ACEOF
16353 LIBS="-lintl $LIBS"
16357 done
16360 # UNIX98 PTYs.
16362 for ac_func in grantpt
16364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16365 echo "$as_me:$LINENO: checking for $ac_func" >&5
16366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16367 if eval "test \"\${$as_ac_var+set}\" = set"; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 else
16370 cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h. */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16378 #define $ac_func innocuous_$ac_func
16380 /* System header to define __stub macros and hopefully few prototypes,
16381 which can conflict with char $ac_func (); below.
16382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16383 <limits.h> exists even on freestanding compilers. */
16385 #ifdef __STDC__
16386 # include <limits.h>
16387 #else
16388 # include <assert.h>
16389 #endif
16391 #undef $ac_func
16393 /* Override any gcc2 internal prototype to avoid an error. */
16394 #ifdef __cplusplus
16395 extern "C"
16397 #endif
16398 /* We use char because int might match the return type of a gcc2
16399 builtin and then its argument prototype would still apply. */
16400 char $ac_func ();
16401 /* The GNU C library defines this for functions which it implements
16402 to always fail with ENOSYS. Some functions are actually named
16403 something starting with __ and the normal name is an alias. */
16404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16405 choke me
16406 #else
16407 char (*f) () = $ac_func;
16408 #endif
16409 #ifdef __cplusplus
16411 #endif
16414 main ()
16416 return f != $ac_func;
16418 return 0;
16420 _ACEOF
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16423 (eval $ac_link) 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest$ac_exeext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 eval "$as_ac_var=yes"
16444 else
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16448 eval "$as_ac_var=no"
16450 rm -f conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16461 done
16464 # PTY-related GNU extensions.
16466 for ac_func in getpt
16468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16469 echo "$as_me:$LINENO: checking for $ac_func" >&5
16470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16471 if eval "test \"\${$as_ac_var+set}\" = set"; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h. */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16482 #define $ac_func innocuous_$ac_func
16484 /* System header to define __stub macros and hopefully few prototypes,
16485 which can conflict with char $ac_func (); below.
16486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16487 <limits.h> exists even on freestanding compilers. */
16489 #ifdef __STDC__
16490 # include <limits.h>
16491 #else
16492 # include <assert.h>
16493 #endif
16495 #undef $ac_func
16497 /* Override any gcc2 internal prototype to avoid an error. */
16498 #ifdef __cplusplus
16499 extern "C"
16501 #endif
16502 /* We use char because int might match the return type of a gcc2
16503 builtin and then its argument prototype would still apply. */
16504 char $ac_func ();
16505 /* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16509 choke me
16510 #else
16511 char (*f) () = $ac_func;
16512 #endif
16513 #ifdef __cplusplus
16515 #endif
16518 main ()
16520 return f != $ac_func;
16522 return 0;
16524 _ACEOF
16525 rm -f conftest.$ac_objext conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527 (eval $ac_link) 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest$ac_exeext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 eval "$as_ac_var=yes"
16548 else
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 eval "$as_ac_var=no"
16554 rm -f conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16559 if test `eval echo '${'$as_ac_var'}'` = yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 _ACEOF
16565 done
16568 # Check this now, so that we will NOT find the above functions in ncurses.
16569 # That is because we have not set up to link ncurses in lib-src.
16570 # It's better to believe a function is not available
16571 # than to expect to find it in ncurses.
16573 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16574 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16575 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 else
16578 ac_check_lib_save_LIBS=$LIBS
16579 LIBS="-lncurses $LIBS"
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h. */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16587 /* Override any gcc2 internal prototype to avoid an error. */
16588 #ifdef __cplusplus
16589 extern "C"
16590 #endif
16591 /* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16593 char tparm ();
16595 main ()
16597 tparm ();
16599 return 0;
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -z "$ac_c_werror_flag"
16612 || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_ncurses_tparm=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_cv_lib_ncurses_tparm=no
16631 rm -f conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16633 LIBS=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16637 if test $ac_cv_lib_ncurses_tparm = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_LIBNCURSES 1
16640 _ACEOF
16642 LIBS="-lncurses $LIBS"
16647 # Do we need the Hesiod library to provide the support routines?
16648 if test "$with_hesiod" = yes ; then
16649 # Don't set $LIBS here -- see comments above.
16650 resolv=no
16651 echo "$as_me:$LINENO: checking for res_send" >&5
16652 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16653 if test "${ac_cv_func_res_send+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define res_send innocuous_res_send
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char res_send (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16671 #ifdef __STDC__
16672 # include <limits.h>
16673 #else
16674 # include <assert.h>
16675 #endif
16677 #undef res_send
16679 /* Override any gcc2 internal prototype to avoid an error. */
16680 #ifdef __cplusplus
16681 extern "C"
16683 #endif
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16686 char res_send ();
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_res_send) || defined (__stub___res_send)
16691 choke me
16692 #else
16693 char (*f) () = res_send;
16694 #endif
16695 #ifdef __cplusplus
16697 #endif
16700 main ()
16702 return f != res_send;
16704 return 0;
16706 _ACEOF
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16710 ac_status=$?
16711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag"
16717 || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_cv_func_res_send=yes
16730 else
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_cv_func_res_send=no
16736 rm -f conftest.err conftest.$ac_objext \
16737 conftest$ac_exeext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16740 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16741 if test $ac_cv_func_res_send = yes; then
16743 else
16744 echo "$as_me:$LINENO: checking for __res_send" >&5
16745 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16746 if test "${ac_cv_func___res_send+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16757 #define __res_send innocuous___res_send
16759 /* System header to define __stub macros and hopefully few prototypes,
16760 which can conflict with char __res_send (); below.
16761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16762 <limits.h> exists even on freestanding compilers. */
16764 #ifdef __STDC__
16765 # include <limits.h>
16766 #else
16767 # include <assert.h>
16768 #endif
16770 #undef __res_send
16772 /* Override any gcc2 internal prototype to avoid an error. */
16773 #ifdef __cplusplus
16774 extern "C"
16776 #endif
16777 /* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16779 char __res_send ();
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined (__stub___res_send) || defined (__stub_____res_send)
16784 choke me
16785 #else
16786 char (*f) () = __res_send;
16787 #endif
16788 #ifdef __cplusplus
16790 #endif
16793 main ()
16795 return f != __res_send;
16797 return 0;
16799 _ACEOF
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_func___res_send=yes
16823 else
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_cv_func___res_send=no
16829 rm -f conftest.err conftest.$ac_objext \
16830 conftest$ac_exeext conftest.$ac_ext
16832 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16833 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16834 if test $ac_cv_func___res_send = yes; then
16836 else
16837 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16838 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16839 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842 ac_check_lib_save_LIBS=$LIBS
16843 LIBS="-lresolv $LIBS"
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16851 /* Override any gcc2 internal prototype to avoid an error. */
16852 #ifdef __cplusplus
16853 extern "C"
16854 #endif
16855 /* We use char because int might match the return type of a gcc2
16856 builtin and then its argument prototype would still apply. */
16857 char res_send ();
16859 main ()
16861 res_send ();
16863 return 0;
16865 _ACEOF
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868 (eval $ac_link) 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
16875 { ac_try='test -z "$ac_c_werror_flag"
16876 || test ! -s conftest.err'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest$ac_exeext'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 ac_cv_lib_resolv_res_send=yes
16889 else
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_cv_lib_resolv_res_send=no
16895 rm -f conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_check_lib_save_LIBS
16899 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16900 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16901 if test $ac_cv_lib_resolv_res_send = yes; then
16902 resolv=yes
16903 else
16904 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16905 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16906 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909 ac_check_lib_save_LIBS=$LIBS
16910 LIBS="-lresolv $LIBS"
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h. */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h. */
16918 /* Override any gcc2 internal prototype to avoid an error. */
16919 #ifdef __cplusplus
16920 extern "C"
16921 #endif
16922 /* We use char because int might match the return type of a gcc2
16923 builtin and then its argument prototype would still apply. */
16924 char __res_send ();
16926 main ()
16928 __res_send ();
16930 return 0;
16932 _ACEOF
16933 rm -f conftest.$ac_objext conftest$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest$ac_exeext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_cv_lib_resolv___res_send=yes
16956 else
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_cv_lib_resolv___res_send=no
16962 rm -f conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16966 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16967 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16968 if test $ac_cv_lib_resolv___res_send = yes; then
16969 resolv=yes
16978 if test "$resolv" = yes ; then
16979 RESOLVLIB=-lresolv
16981 cat >>confdefs.h <<\_ACEOF
16982 #define HAVE_LIBRESOLV 1
16983 _ACEOF
16985 else
16986 RESOLVLIB=
16988 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16989 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16990 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17001 #define hes_getmailhost innocuous_hes_getmailhost
17003 /* System header to define __stub macros and hopefully few prototypes,
17004 which can conflict with char hes_getmailhost (); below.
17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17006 <limits.h> exists even on freestanding compilers. */
17008 #ifdef __STDC__
17009 # include <limits.h>
17010 #else
17011 # include <assert.h>
17012 #endif
17014 #undef hes_getmailhost
17016 /* Override any gcc2 internal prototype to avoid an error. */
17017 #ifdef __cplusplus
17018 extern "C"
17020 #endif
17021 /* We use char because int might match the return type of a gcc2
17022 builtin and then its argument prototype would still apply. */
17023 char hes_getmailhost ();
17024 /* The GNU C library defines this for functions which it implements
17025 to always fail with ENOSYS. Some functions are actually named
17026 something starting with __ and the normal name is an alias. */
17027 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17028 choke me
17029 #else
17030 char (*f) () = hes_getmailhost;
17031 #endif
17032 #ifdef __cplusplus
17034 #endif
17037 main ()
17039 return f != hes_getmailhost;
17041 return 0;
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17046 (eval $ac_link) 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_func_hes_getmailhost=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ac_cv_func_hes_getmailhost=no
17073 rm -f conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17077 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17078 if test $ac_cv_func_hes_getmailhost = yes; then
17080 else
17081 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17082 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17083 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lhesiod $RESOLVLIB $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17095 /* Override any gcc2 internal prototype to avoid an error. */
17096 #ifdef __cplusplus
17097 extern "C"
17098 #endif
17099 /* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17101 char hes_getmailhost ();
17103 main ()
17105 hes_getmailhost ();
17107 return 0;
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_cv_lib_hesiod_hes_getmailhost=yes
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 ac_cv_lib_hesiod_hes_getmailhost=no
17139 rm -f conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 LIBS=$ac_check_lib_save_LIBS
17143 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17144 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17145 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_LIBHESIOD 1
17149 _ACEOF
17151 else
17159 # These tell us which Kerberos-related libraries to use.
17160 if test "${with_kerberos+set}" = set; then
17162 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17163 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17164 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167 ac_check_lib_save_LIBS=$LIBS
17168 LIBS="-lcom_err $LIBS"
17169 cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 /* Override any gcc2 internal prototype to avoid an error. */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17182 char com_err ();
17184 main ()
17186 com_err ();
17188 return 0;
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>conftest.er1
17194 ac_status=$?
17195 grep -v '^ *+' conftest.er1 >conftest.err
17196 rm -f conftest.er1
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest$ac_exeext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_lib_com_err_com_err=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_lib_com_err_com_err=no
17220 rm -f conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17224 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17225 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17226 if test $ac_cv_lib_com_err_com_err = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define HAVE_LIBCOM_ERR 1
17229 _ACEOF
17231 LIBS="-lcom_err $LIBS"
17236 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17237 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17238 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-lk5crypto $LIBS"
17243 cat >conftest.$ac_ext <<_ACEOF
17244 /* confdefs.h. */
17245 _ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h. */
17250 /* Override any gcc2 internal prototype to avoid an error. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 /* We use char because int might match the return type of a gcc2
17255 builtin and then its argument prototype would still apply. */
17256 char mit_des_cbc_encrypt ();
17258 main ()
17260 mit_des_cbc_encrypt ();
17262 return 0;
17264 _ACEOF
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17267 (eval $ac_link) 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
17274 { ac_try='test -z "$ac_c_werror_flag"
17275 || test ! -s conftest.err'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17288 else
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17294 rm -f conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17299 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17300 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17301 cat >>confdefs.h <<_ACEOF
17302 #define HAVE_LIBK5CRYPTO 1
17303 _ACEOF
17305 LIBS="-lk5crypto $LIBS"
17310 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17311 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17312 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315 ac_check_lib_save_LIBS=$LIBS
17316 LIBS="-lcrypto $LIBS"
17317 cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h. */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17324 /* Override any gcc2 internal prototype to avoid an error. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 /* We use char because int might match the return type of a gcc2
17329 builtin and then its argument prototype would still apply. */
17330 char mit_des_cbc_encrypt ();
17332 main ()
17334 mit_des_cbc_encrypt ();
17336 return 0;
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17341 (eval $ac_link) 2>conftest.er1
17342 ac_status=$?
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag"
17349 || test ! -s conftest.err'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; } &&
17355 { ac_try='test -s conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17362 else
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17368 rm -f conftest.err conftest.$ac_objext \
17369 conftest$ac_exeext conftest.$ac_ext
17370 LIBS=$ac_check_lib_save_LIBS
17372 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17373 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17374 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376 #define HAVE_LIBCRYPTO 1
17377 _ACEOF
17379 LIBS="-lcrypto $LIBS"
17384 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17385 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17386 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17387 echo $ECHO_N "(cached) $ECHO_C" >&6
17388 else
17389 ac_check_lib_save_LIBS=$LIBS
17390 LIBS="-lkrb5 $LIBS"
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17398 /* Override any gcc2 internal prototype to avoid an error. */
17399 #ifdef __cplusplus
17400 extern "C"
17401 #endif
17402 /* We use char because int might match the return type of a gcc2
17403 builtin and then its argument prototype would still apply. */
17404 char krb5_init_context ();
17406 main ()
17408 krb5_init_context ();
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 ac_cv_lib_krb5_krb5_init_context=yes
17436 else
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17440 ac_cv_lib_krb5_krb5_init_context=no
17442 rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17447 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17448 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17449 cat >>confdefs.h <<_ACEOF
17450 #define HAVE_LIBKRB5 1
17451 _ACEOF
17453 LIBS="-lkrb5 $LIBS"
17457 if test "${with_kerberos5+set}" != set; then
17459 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17460 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17461 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 ac_check_lib_save_LIBS=$LIBS
17465 LIBS="-ldes425 $LIBS"
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17473 /* Override any gcc2 internal prototype to avoid an error. */
17474 #ifdef __cplusplus
17475 extern "C"
17476 #endif
17477 /* We use char because int might match the return type of a gcc2
17478 builtin and then its argument prototype would still apply. */
17479 char des_cbc_encrypt ();
17481 main ()
17483 des_cbc_encrypt ();
17485 return 0;
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490 (eval $ac_link) 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag"
17498 || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_lib_des425_des_cbc_encrypt=yes
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_lib_des425_des_cbc_encrypt=no
17517 rm -f conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17522 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17523 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_LIBDES425 1
17526 _ACEOF
17528 LIBS="-ldes425 $LIBS"
17530 else
17532 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17533 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17534 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537 ac_check_lib_save_LIBS=$LIBS
17538 LIBS="-ldes $LIBS"
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h. */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17546 /* Override any gcc2 internal prototype to avoid an error. */
17547 #ifdef __cplusplus
17548 extern "C"
17549 #endif
17550 /* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17552 char des_cbc_encrypt ();
17554 main ()
17556 des_cbc_encrypt ();
17558 return 0;
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563 (eval $ac_link) 2>conftest.er1
17564 ac_status=$?
17565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_lib_des_des_cbc_encrypt=yes
17584 else
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ac_cv_lib_des_des_cbc_encrypt=no
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17592 LIBS=$ac_check_lib_save_LIBS
17594 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17595 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17596 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17597 cat >>confdefs.h <<_ACEOF
17598 #define HAVE_LIBDES 1
17599 _ACEOF
17601 LIBS="-ldes $LIBS"
17608 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17609 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17610 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613 ac_check_lib_save_LIBS=$LIBS
17614 LIBS="-lkrb4 $LIBS"
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 /* Override any gcc2 internal prototype to avoid an error. */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17628 char krb_get_cred ();
17630 main ()
17632 krb_get_cred ();
17634 return 0;
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag"
17647 || test ! -s conftest.err'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try='test -s conftest$ac_exeext'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; }; then
17659 ac_cv_lib_krb4_krb_get_cred=yes
17660 else
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_cv_lib_krb4_krb_get_cred=no
17666 rm -f conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17668 LIBS=$ac_check_lib_save_LIBS
17670 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17671 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17672 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17673 cat >>confdefs.h <<_ACEOF
17674 #define HAVE_LIBKRB4 1
17675 _ACEOF
17677 LIBS="-lkrb4 $LIBS"
17679 else
17681 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17682 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17683 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686 ac_check_lib_save_LIBS=$LIBS
17687 LIBS="-lkrb $LIBS"
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h. */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17695 /* Override any gcc2 internal prototype to avoid an error. */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 /* We use char because int might match the return type of a gcc2
17700 builtin and then its argument prototype would still apply. */
17701 char krb_get_cred ();
17703 main ()
17705 krb_get_cred ();
17707 return 0;
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17712 (eval $ac_link) 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag"
17720 || test ! -s conftest.err'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 ac_cv_lib_krb_krb_get_cred=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_cv_lib_krb_krb_get_cred=no
17739 rm -f conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741 LIBS=$ac_check_lib_save_LIBS
17743 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17744 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17745 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17746 cat >>confdefs.h <<_ACEOF
17747 #define HAVE_LIBKRB 1
17748 _ACEOF
17750 LIBS="-lkrb $LIBS"
17758 if test "${with_kerberos5+set}" = set; then
17760 for ac_header in krb5.h
17762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17764 echo "$as_me:$LINENO: checking for $ac_header" >&5
17765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17771 else
17772 # Is the header compilable?
17773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 $ac_includes_default
17782 #include <$ac_header>
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_header_compiler=yes
17807 else
17808 echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_header_compiler=no
17813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17815 echo "${ECHO_T}$ac_header_compiler" >&6
17817 # Is the header present?
17818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h. */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 #include <$ac_header>
17827 _ACEOF
17828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } >/dev/null; then
17836 if test -s conftest.err; then
17837 ac_cpp_err=$ac_c_preproc_warn_flag
17838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17839 else
17840 ac_cpp_err=
17842 else
17843 ac_cpp_err=yes
17845 if test -z "$ac_cpp_err"; then
17846 ac_header_preproc=yes
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_header_preproc=no
17853 rm -f conftest.err conftest.$ac_ext
17854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17855 echo "${ECHO_T}$ac_header_preproc" >&6
17857 # So? What about this header?
17858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17859 yes:no: )
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17864 ac_header_preproc=yes
17866 no:yes:* )
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17880 cat <<\_ASBOX
17881 ## ------------------------------------------ ##
17882 ## Report this to the AC_PACKAGE_NAME lists. ##
17883 ## ------------------------------------------ ##
17884 _ASBOX
17886 sed "s/^/$as_me: WARNING: /" >&2
17888 esac
17889 echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893 else
17894 eval "$as_ac_Header=\$ac_header_preproc"
17896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17901 cat >>confdefs.h <<_ACEOF
17902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17903 _ACEOF
17907 done
17909 else
17911 for ac_header in des.h
17913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17915 echo "$as_me:$LINENO: checking for $ac_header" >&5
17916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17922 else
17923 # Is the header compilable?
17924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 $ac_includes_default
17933 #include <$ac_header>
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_header_compiler=yes
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_header_compiler=no
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17966 echo "${ECHO_T}$ac_header_compiler" >&6
17968 # Is the header present?
17969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 #include <$ac_header>
17978 _ACEOF
17979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17981 ac_status=$?
17982 grep -v '^ *+' conftest.er1 >conftest.err
17983 rm -f conftest.er1
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } >/dev/null; then
17987 if test -s conftest.err; then
17988 ac_cpp_err=$ac_c_preproc_warn_flag
17989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17990 else
17991 ac_cpp_err=
17993 else
17994 ac_cpp_err=yes
17996 if test -z "$ac_cpp_err"; then
17997 ac_header_preproc=yes
17998 else
17999 echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_header_preproc=no
18004 rm -f conftest.err conftest.$ac_ext
18005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18006 echo "${ECHO_T}$ac_header_preproc" >&6
18008 # So? What about this header?
18009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18010 yes:no: )
18011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18015 ac_header_preproc=yes
18017 no:yes:* )
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18031 cat <<\_ASBOX
18032 ## ------------------------------------------ ##
18033 ## Report this to the AC_PACKAGE_NAME lists. ##
18034 ## ------------------------------------------ ##
18035 _ASBOX
18037 sed "s/^/$as_me: WARNING: /" >&2
18039 esac
18040 echo "$as_me:$LINENO: checking for $ac_header" >&5
18041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045 eval "$as_ac_Header=\$ac_header_preproc"
18047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18052 cat >>confdefs.h <<_ACEOF
18053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18054 _ACEOF
18056 else
18058 for ac_header in kerberosIV/des.h
18060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18062 echo "$as_me:$LINENO: checking for $ac_header" >&5
18063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18069 else
18070 # Is the header compilable?
18071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18073 cat >conftest.$ac_ext <<_ACEOF
18074 /* confdefs.h. */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 $ac_includes_default
18080 #include <$ac_header>
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084 (eval $ac_compile) 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -z "$ac_c_werror_flag"
18092 || test ! -s conftest.err'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; } &&
18098 { ac_try='test -s conftest.$ac_objext'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18101 ac_status=$?
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; }; then
18104 ac_header_compiler=yes
18105 else
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ac_header_compiler=no
18111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18113 echo "${ECHO_T}$ac_header_compiler" >&6
18115 # Is the header present?
18116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <$ac_header>
18125 _ACEOF
18126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } >/dev/null; then
18134 if test -s conftest.err; then
18135 ac_cpp_err=$ac_c_preproc_warn_flag
18136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18137 else
18138 ac_cpp_err=
18140 else
18141 ac_cpp_err=yes
18143 if test -z "$ac_cpp_err"; then
18144 ac_header_preproc=yes
18145 else
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_header_preproc=no
18151 rm -f conftest.err conftest.$ac_ext
18152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18153 echo "${ECHO_T}$ac_header_preproc" >&6
18155 # So? What about this header?
18156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18157 yes:no: )
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18162 ac_header_preproc=yes
18164 no:yes:* )
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18172 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18178 cat <<\_ASBOX
18179 ## ------------------------------------------ ##
18180 ## Report this to the AC_PACKAGE_NAME lists. ##
18181 ## ------------------------------------------ ##
18182 _ASBOX
18184 sed "s/^/$as_me: WARNING: /" >&2
18186 esac
18187 echo "$as_me:$LINENO: checking for $ac_header" >&5
18188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192 eval "$as_ac_Header=\$ac_header_preproc"
18194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18199 cat >>confdefs.h <<_ACEOF
18200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18201 _ACEOF
18203 else
18205 for ac_header in kerberos/des.h
18207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18209 echo "$as_me:$LINENO: checking for $ac_header" >&5
18210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18216 else
18217 # Is the header compilable?
18218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 $ac_includes_default
18227 #include <$ac_header>
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18231 (eval $ac_compile) 2>conftest.er1
18232 ac_status=$?
18233 grep -v '^ *+' conftest.er1 >conftest.err
18234 rm -f conftest.er1
18235 cat conftest.err >&5
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); } &&
18238 { ac_try='test -z "$ac_c_werror_flag"
18239 || test ! -s conftest.err'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; } &&
18245 { ac_try='test -s conftest.$ac_objext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_header_compiler=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18260 echo "${ECHO_T}$ac_header_compiler" >&6
18262 # Is the header present?
18263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18265 cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h. */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 #include <$ac_header>
18272 _ACEOF
18273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } >/dev/null; then
18281 if test -s conftest.err; then
18282 ac_cpp_err=$ac_c_preproc_warn_flag
18283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18284 else
18285 ac_cpp_err=
18287 else
18288 ac_cpp_err=yes
18290 if test -z "$ac_cpp_err"; then
18291 ac_header_preproc=yes
18292 else
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18304 yes:no: )
18305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18309 ac_header_preproc=yes
18311 no:yes:* )
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18325 cat <<\_ASBOX
18326 ## ------------------------------------------ ##
18327 ## Report this to the AC_PACKAGE_NAME lists. ##
18328 ## ------------------------------------------ ##
18329 _ASBOX
18331 sed "s/^/$as_me: WARNING: /" >&2
18333 esac
18334 echo "$as_me:$LINENO: checking for $ac_header" >&5
18335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339 eval "$as_ac_Header=\$ac_header_preproc"
18341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18346 cat >>confdefs.h <<_ACEOF
18347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18348 _ACEOF
18352 done
18356 done
18360 done
18363 for ac_header in krb.h
18365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo "$as_me:$LINENO: checking for $ac_header" >&5
18368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374 else
18375 # Is the header compilable?
18376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h. */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 $ac_includes_default
18385 #include <$ac_header>
18386 _ACEOF
18387 rm -f conftest.$ac_objext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18389 (eval $ac_compile) 2>conftest.er1
18390 ac_status=$?
18391 grep -v '^ *+' conftest.er1 >conftest.err
18392 rm -f conftest.er1
18393 cat conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -z "$ac_c_werror_flag"
18397 || test ! -s conftest.err'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; } &&
18403 { ac_try='test -s conftest.$ac_objext'
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 ac_header_compiler=yes
18410 else
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18414 ac_header_compiler=no
18416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418 echo "${ECHO_T}$ac_header_compiler" >&6
18420 # Is the header present?
18421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h. */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <$ac_header>
18430 _ACEOF
18431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } >/dev/null; then
18439 if test -s conftest.err; then
18440 ac_cpp_err=$ac_c_preproc_warn_flag
18441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18442 else
18443 ac_cpp_err=
18445 else
18446 ac_cpp_err=yes
18448 if test -z "$ac_cpp_err"; then
18449 ac_header_preproc=yes
18450 else
18451 echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_header_preproc=no
18456 rm -f conftest.err conftest.$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6
18460 # So? What about this header?
18461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 yes:no: )
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18467 ac_header_preproc=yes
18469 no:yes:* )
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18483 cat <<\_ASBOX
18484 ## ------------------------------------------ ##
18485 ## Report this to the AC_PACKAGE_NAME lists. ##
18486 ## ------------------------------------------ ##
18487 _ASBOX
18489 sed "s/^/$as_me: WARNING: /" >&2
18491 esac
18492 echo "$as_me:$LINENO: checking for $ac_header" >&5
18493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497 eval "$as_ac_Header=\$ac_header_preproc"
18499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18504 cat >>confdefs.h <<_ACEOF
18505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18506 _ACEOF
18508 else
18510 for ac_header in kerberosIV/krb.h
18512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514 echo "$as_me:$LINENO: checking for $ac_header" >&5
18515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18521 else
18522 # Is the header compilable?
18523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 $ac_includes_default
18532 #include <$ac_header>
18533 _ACEOF
18534 rm -f conftest.$ac_objext
18535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18536 (eval $ac_compile) 2>conftest.er1
18537 ac_status=$?
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -z "$ac_c_werror_flag"
18544 || test ! -s conftest.err'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; } &&
18550 { ac_try='test -s conftest.$ac_objext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_header_compiler=yes
18557 else
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_header_compiler=no
18563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18565 echo "${ECHO_T}$ac_header_compiler" >&6
18567 # Is the header present?
18568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18570 cat >conftest.$ac_ext <<_ACEOF
18571 /* confdefs.h. */
18572 _ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 #include <$ac_header>
18577 _ACEOF
18578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18580 ac_status=$?
18581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } >/dev/null; then
18586 if test -s conftest.err; then
18587 ac_cpp_err=$ac_c_preproc_warn_flag
18588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18589 else
18590 ac_cpp_err=
18592 else
18593 ac_cpp_err=yes
18595 if test -z "$ac_cpp_err"; then
18596 ac_header_preproc=yes
18597 else
18598 echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18601 ac_header_preproc=no
18603 rm -f conftest.err conftest.$ac_ext
18604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18605 echo "${ECHO_T}$ac_header_preproc" >&6
18607 # So? What about this header?
18608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18609 yes:no: )
18610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18614 ac_header_preproc=yes
18616 no:yes:* )
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18630 cat <<\_ASBOX
18631 ## ------------------------------------------ ##
18632 ## Report this to the AC_PACKAGE_NAME lists. ##
18633 ## ------------------------------------------ ##
18634 _ASBOX
18636 sed "s/^/$as_me: WARNING: /" >&2
18638 esac
18639 echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 eval "$as_ac_Header=\$ac_header_preproc"
18646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18653 _ACEOF
18655 else
18657 for ac_header in kerberos/krb.h
18659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18661 echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18668 else
18669 # Is the header compilable?
18670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 $ac_includes_default
18679 #include <$ac_header>
18680 _ACEOF
18681 rm -f conftest.$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683 (eval $ac_compile) 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_header_compiler=yes
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_header_compiler=no
18710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18712 echo "${ECHO_T}$ac_header_compiler" >&6
18714 # Is the header present?
18715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <$ac_header>
18724 _ACEOF
18725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } >/dev/null; then
18733 if test -s conftest.err; then
18734 ac_cpp_err=$ac_c_preproc_warn_flag
18735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18736 else
18737 ac_cpp_err=
18739 else
18740 ac_cpp_err=yes
18742 if test -z "$ac_cpp_err"; then
18743 ac_header_preproc=yes
18744 else
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 ac_header_preproc=no
18750 rm -f conftest.err conftest.$ac_ext
18751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18752 echo "${ECHO_T}$ac_header_preproc" >&6
18754 # So? What about this header?
18755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18756 yes:no: )
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18761 ac_header_preproc=yes
18763 no:yes:* )
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18777 cat <<\_ASBOX
18778 ## ------------------------------------------ ##
18779 ## Report this to the AC_PACKAGE_NAME lists. ##
18780 ## ------------------------------------------ ##
18781 _ASBOX
18783 sed "s/^/$as_me: WARNING: /" >&2
18785 esac
18786 echo "$as_me:$LINENO: checking for $ac_header" >&5
18787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791 eval "$as_ac_Header=\$ac_header_preproc"
18793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18800 _ACEOF
18804 done
18808 done
18812 done
18816 for ac_header in com_err.h
18818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18820 echo "$as_me:$LINENO: checking for $ac_header" >&5
18821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18827 else
18828 # Is the header compilable?
18829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18838 #include <$ac_header>
18839 _ACEOF
18840 rm -f conftest.$ac_objext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_header_compiler=yes
18863 else
18864 echo "$as_me: failed program was:" >&5
18865 sed 's/^/| /' conftest.$ac_ext >&5
18867 ac_header_compiler=no
18869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18871 echo "${ECHO_T}$ac_header_compiler" >&6
18873 # Is the header present?
18874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 #include <$ac_header>
18883 _ACEOF
18884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } >/dev/null; then
18892 if test -s conftest.err; then
18893 ac_cpp_err=$ac_c_preproc_warn_flag
18894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18895 else
18896 ac_cpp_err=
18898 else
18899 ac_cpp_err=yes
18901 if test -z "$ac_cpp_err"; then
18902 ac_header_preproc=yes
18903 else
18904 echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18907 ac_header_preproc=no
18909 rm -f conftest.err conftest.$ac_ext
18910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18911 echo "${ECHO_T}$ac_header_preproc" >&6
18913 # So? What about this header?
18914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18915 yes:no: )
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18920 ac_header_preproc=yes
18922 no:yes:* )
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18936 cat <<\_ASBOX
18937 ## ------------------------------------------ ##
18938 ## Report this to the AC_PACKAGE_NAME lists. ##
18939 ## ------------------------------------------ ##
18940 _ASBOX
18942 sed "s/^/$as_me: WARNING: /" >&2
18944 esac
18945 echo "$as_me:$LINENO: checking for $ac_header" >&5
18946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950 eval "$as_ac_Header=\$ac_header_preproc"
18952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18957 cat >>confdefs.h <<_ACEOF
18958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18959 _ACEOF
18963 done
18967 # Solaris requires -lintl if you want strerror (which calls dgettext)
18968 # to return localized messages.
18970 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18971 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18972 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18974 else
18975 ac_check_lib_save_LIBS=$LIBS
18976 LIBS="-lintl $LIBS"
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18984 /* Override any gcc2 internal prototype to avoid an error. */
18985 #ifdef __cplusplus
18986 extern "C"
18987 #endif
18988 /* We use char because int might match the return type of a gcc2
18989 builtin and then its argument prototype would still apply. */
18990 char dgettext ();
18992 main ()
18994 dgettext ();
18996 return 0;
18998 _ACEOF
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_c_werror_flag"
19009 || test ! -s conftest.err'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_intl_dgettext=yes
19022 else
19023 echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19026 ac_cv_lib_intl_dgettext=no
19028 rm -f conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
19030 LIBS=$ac_check_lib_save_LIBS
19032 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19033 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19034 if test $ac_cv_lib_intl_dgettext = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define HAVE_LIBINTL 1
19037 _ACEOF
19039 LIBS="-lintl $LIBS"
19044 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19045 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19046 if test "${emacs_cv_localtime_cache+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049 if test x$ac_cv_func_tzset = xyes; then
19050 if test "$cross_compiling" = yes; then
19051 # If we have tzset, assume the worst when cross-compiling.
19052 emacs_cv_localtime_cache=yes
19053 else
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h. */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include <time.h>
19061 extern char **environ;
19062 unset_TZ ()
19064 char **from, **to;
19065 for (to = from = environ; (*to = *from); from++)
19066 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19067 to++;
19069 char TZ_GMT0[] = "TZ=GMT0";
19070 char TZ_PST8[] = "TZ=PST8";
19071 main()
19073 time_t now = time ((time_t *) 0);
19074 int hour_GMT0, hour_unset;
19075 if (putenv (TZ_GMT0) != 0)
19076 exit (1);
19077 hour_GMT0 = localtime (&now)->tm_hour;
19078 unset_TZ ();
19079 hour_unset = localtime (&now)->tm_hour;
19080 if (putenv (TZ_PST8) != 0)
19081 exit (1);
19082 if (localtime (&now)->tm_hour == hour_GMT0)
19083 exit (1);
19084 unset_TZ ();
19085 if (localtime (&now)->tm_hour != hour_unset)
19086 exit (1);
19087 exit (0);
19089 _ACEOF
19090 rm -f conftest$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 emacs_cv_localtime_cache=no
19102 else
19103 echo "$as_me: program exited with status $ac_status" >&5
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ( exit $ac_status )
19108 emacs_cv_localtime_cache=yes
19110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19112 else
19113 # If we lack tzset, report that localtime does not cache TZ,
19114 # since we can't invalidate the cache if we don't have tzset.
19115 emacs_cv_localtime_cache=no
19118 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19119 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19120 if test $emacs_cv_localtime_cache = yes; then
19122 cat >>confdefs.h <<\_ACEOF
19123 #define LOCALTIME_CACHE 1
19124 _ACEOF
19128 if test "x$HAVE_TIMEVAL" = xyes; then
19130 for ac_func in gettimeofday
19132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19133 echo "$as_me:$LINENO: checking for $ac_func" >&5
19134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19135 if eval "test \"\${$as_ac_var+set}\" = set"; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19146 #define $ac_func innocuous_$ac_func
19148 /* System header to define __stub macros and hopefully few prototypes,
19149 which can conflict with char $ac_func (); below.
19150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19151 <limits.h> exists even on freestanding compilers. */
19153 #ifdef __STDC__
19154 # include <limits.h>
19155 #else
19156 # include <assert.h>
19157 #endif
19159 #undef $ac_func
19161 /* Override any gcc2 internal prototype to avoid an error. */
19162 #ifdef __cplusplus
19163 extern "C"
19165 #endif
19166 /* We use char because int might match the return type of a gcc2
19167 builtin and then its argument prototype would still apply. */
19168 char $ac_func ();
19169 /* The GNU C library defines this for functions which it implements
19170 to always fail with ENOSYS. Some functions are actually named
19171 something starting with __ and the normal name is an alias. */
19172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19173 choke me
19174 #else
19175 char (*f) () = $ac_func;
19176 #endif
19177 #ifdef __cplusplus
19179 #endif
19182 main ()
19184 return f != $ac_func;
19186 return 0;
19188 _ACEOF
19189 rm -f conftest.$ac_objext conftest$ac_exeext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191 (eval $ac_link) 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest$ac_exeext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 eval "$as_ac_var=yes"
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 eval "$as_ac_var=no"
19218 rm -f conftest.err conftest.$ac_objext \
19219 conftest$ac_exeext conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19223 if test `eval echo '${'$as_ac_var'}'` = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19226 _ACEOF
19229 done
19231 if test $ac_cv_func_gettimeofday = yes; then
19232 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19233 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19234 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 else
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19244 #ifdef TIME_WITH_SYS_TIME
19245 #include <sys/time.h>
19246 #include <time.h>
19247 #else
19248 #ifdef HAVE_SYS_TIME_H
19249 #include <sys/time.h>
19250 #else
19251 #include <time.h>
19252 #endif
19253 #endif
19255 main ()
19257 struct timeval time;
19258 gettimeofday (&time, 0);
19260 return 0;
19262 _ACEOF
19263 rm -f conftest.$ac_objext
19264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19265 (eval $ac_compile) 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
19272 { ac_try='test -z "$ac_c_werror_flag"
19273 || test ! -s conftest.err'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; } &&
19279 { ac_try='test -s conftest.$ac_objext'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 emacs_cv_gettimeofday_two_arguments=yes
19286 else
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 emacs_cv_gettimeofday_two_arguments=no
19292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19294 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19295 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19296 if test $emacs_cv_gettimeofday_two_arguments = no; then
19298 cat >>confdefs.h <<\_ACEOF
19299 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19300 _ACEOF
19306 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19307 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19308 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19309 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h. */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <sys/types.h>
19319 #include <$ac_cv_struct_tm>
19323 main ()
19325 static struct tm ac_aggr;
19326 if (ac_aggr.tm_zone)
19327 return 0;
19329 return 0;
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 ac_cv_member_struct_tm_tm_zone=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 #include <sys/types.h>
19366 #include <$ac_cv_struct_tm>
19370 main ()
19372 static struct tm ac_aggr;
19373 if (sizeof ac_aggr.tm_zone)
19374 return 0;
19376 return 0;
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 ac_cv_member_struct_tm_tm_zone=yes
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 ac_cv_member_struct_tm_tm_zone=no
19408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19412 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19413 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19414 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19416 cat >>confdefs.h <<_ACEOF
19417 #define HAVE_STRUCT_TM_TM_ZONE 1
19418 _ACEOF
19423 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE_TM_ZONE 1
19427 _ACEOF
19429 else
19430 echo "$as_me:$LINENO: checking for tzname" >&5
19431 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19432 if test "${ac_cv_var_tzname+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435 cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h. */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <time.h>
19442 #ifndef tzname /* For SGI. */
19443 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19444 #endif
19447 main ()
19449 atoi(*tzname);
19451 return 0;
19453 _ACEOF
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19456 (eval $ac_link) 2>conftest.er1
19457 ac_status=$?
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag"
19464 || test ! -s conftest.err'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest$ac_exeext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_var_tzname=yes
19477 else
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_cv_var_tzname=no
19483 rm -f conftest.err conftest.$ac_objext \
19484 conftest$ac_exeext conftest.$ac_ext
19486 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19487 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19488 if test $ac_cv_var_tzname = yes; then
19490 cat >>confdefs.h <<\_ACEOF
19491 #define HAVE_TZNAME 1
19492 _ACEOF
19498 if test "$ac_cv_func_gettimeofday" = yes; then
19499 echo "$as_me:$LINENO: checking for struct timezone" >&5
19500 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19501 if test "${emacs_cv_struct_timezone+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <sys/time.h>
19512 main ()
19514 struct timezone tz;
19516 return 0;
19518 _ACEOF
19519 rm -f conftest.$ac_objext
19520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19521 (eval $ac_compile) 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } &&
19528 { ac_try='test -z "$ac_c_werror_flag"
19529 || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest.$ac_objext'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 if test "$cross_compiling" = yes; then
19542 emacs_cv_struct_timezone=yes
19543 else
19544 cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h. */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 #ifdef TIME_WITH_SYS_TIME
19552 #include <sys/time.h>
19553 #include <time.h>
19554 #else
19555 #ifdef HAVE_SYS_TIME_H
19556 #include <sys/time.h>
19557 #else
19558 #include <time.h>
19559 #endif
19560 #endif
19561 main () {
19562 struct timeval time;
19563 struct timezone dummy;
19564 exit (gettimeofday (&time, &dummy));
19566 _ACEOF
19567 rm -f conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 emacs_cv_struct_timezone=yes
19579 else
19580 echo "$as_me: program exited with status $ac_status" >&5
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ( exit $ac_status )
19585 emacs_cv_struct_timezone=no
19587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 emacs_cv_struct_timezone=no
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19597 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19598 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19601 ok_so_far=yes
19602 echo "$as_me:$LINENO: checking for socket" >&5
19603 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19604 if test "${ac_cv_func_socket+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19615 #define socket innocuous_socket
19617 /* System header to define __stub macros and hopefully few prototypes,
19618 which can conflict with char socket (); below.
19619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19620 <limits.h> exists even on freestanding compilers. */
19622 #ifdef __STDC__
19623 # include <limits.h>
19624 #else
19625 # include <assert.h>
19626 #endif
19628 #undef socket
19630 /* Override any gcc2 internal prototype to avoid an error. */
19631 #ifdef __cplusplus
19632 extern "C"
19634 #endif
19635 /* We use char because int might match the return type of a gcc2
19636 builtin and then its argument prototype would still apply. */
19637 char socket ();
19638 /* The GNU C library defines this for functions which it implements
19639 to always fail with ENOSYS. Some functions are actually named
19640 something starting with __ and the normal name is an alias. */
19641 #if defined (__stub_socket) || defined (__stub___socket)
19642 choke me
19643 #else
19644 char (*f) () = socket;
19645 #endif
19646 #ifdef __cplusplus
19648 #endif
19651 main ()
19653 return f != socket;
19655 return 0;
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660 (eval $ac_link) 2>conftest.er1
19661 ac_status=$?
19662 grep -v '^ *+' conftest.er1 >conftest.err
19663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -z "$ac_c_werror_flag"
19668 || test ! -s conftest.err'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest$ac_exeext'
19675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676 (eval $ac_try) 2>&5
19677 ac_status=$?
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; }; then
19680 ac_cv_func_socket=yes
19681 else
19682 echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19685 ac_cv_func_socket=no
19687 rm -f conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19690 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19691 echo "${ECHO_T}$ac_cv_func_socket" >&6
19692 if test $ac_cv_func_socket = yes; then
19694 else
19695 ok_so_far=no
19698 if test $ok_so_far = yes; then
19699 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19700 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19701 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19702 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19706 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19707 else
19708 # Is the header compilable?
19709 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19710 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 $ac_includes_default
19718 #include <netinet/in.h>
19719 _ACEOF
19720 rm -f conftest.$ac_objext
19721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722 (eval $ac_compile) 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 ac_header_compiler=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_header_compiler=no
19749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751 echo "${ECHO_T}$ac_header_compiler" >&6
19753 # Is the header present?
19754 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19755 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762 #include <netinet/in.h>
19763 _ACEOF
19764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } >/dev/null; then
19772 if test -s conftest.err; then
19773 ac_cpp_err=$ac_c_preproc_warn_flag
19774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19775 else
19776 ac_cpp_err=
19778 else
19779 ac_cpp_err=yes
19781 if test -z "$ac_cpp_err"; then
19782 ac_header_preproc=yes
19783 else
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_header_preproc=no
19789 rm -f conftest.err conftest.$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19791 echo "${ECHO_T}$ac_header_preproc" >&6
19793 # So? What about this header?
19794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19795 yes:no: )
19796 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19797 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19798 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19799 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19800 ac_header_preproc=yes
19802 no:yes:* )
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19804 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19806 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19808 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19809 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19810 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19811 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19812 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19813 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19814 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19816 cat <<\_ASBOX
19817 ## ------------------------------------------ ##
19818 ## Report this to the AC_PACKAGE_NAME lists. ##
19819 ## ------------------------------------------ ##
19820 _ASBOX
19822 sed "s/^/$as_me: WARNING: /" >&2
19824 esac
19825 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19826 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19827 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19828 echo $ECHO_N "(cached) $ECHO_C" >&6
19829 else
19830 ac_cv_header_netinet_in_h=$ac_header_preproc
19832 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19833 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19836 if test $ac_cv_header_netinet_in_h = yes; then
19838 else
19839 ok_so_far=no
19844 if test $ok_so_far = yes; then
19845 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19846 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19847 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19848 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19852 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19853 else
19854 # Is the header compilable?
19855 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19856 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h. */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 $ac_includes_default
19864 #include <arpa/inet.h>
19865 _ACEOF
19866 rm -f conftest.$ac_objext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19889 else
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_header_compiler=no
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897 echo "${ECHO_T}$ac_header_compiler" >&6
19899 # Is the header present?
19900 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19901 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908 #include <arpa/inet.h>
19909 _ACEOF
19910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev/null; then
19918 if test -s conftest.err; then
19919 ac_cpp_err=$ac_c_preproc_warn_flag
19920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19921 else
19922 ac_cpp_err=
19924 else
19925 ac_cpp_err=yes
19927 if test -z "$ac_cpp_err"; then
19928 ac_header_preproc=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_header_preproc=no
19935 rm -f conftest.err conftest.$ac_ext
19936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937 echo "${ECHO_T}$ac_header_preproc" >&6
19939 # So? What about this header?
19940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941 yes:no: )
19942 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19943 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19945 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
19948 no:yes:* )
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19950 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19952 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19954 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19956 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19958 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19960 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19962 cat <<\_ASBOX
19963 ## ------------------------------------------ ##
19964 ## Report this to the AC_PACKAGE_NAME lists. ##
19965 ## ------------------------------------------ ##
19966 _ASBOX
19968 sed "s/^/$as_me: WARNING: /" >&2
19970 esac
19971 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19972 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19973 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 else
19976 ac_cv_header_arpa_inet_h=$ac_header_preproc
19978 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19979 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19982 if test $ac_cv_header_arpa_inet_h = yes; then
19984 else
19985 ok_so_far=no
19990 if test $ok_so_far = yes; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_INET_SOCKETS 1
19994 _ACEOF
19999 for ac_header in sys/ioctl.h
20001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo "$as_me:$LINENO: checking for $ac_header" >&5
20004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20010 else
20011 # Is the header compilable?
20012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20021 #include <$ac_header>
20022 _ACEOF
20023 rm -f conftest.$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler=yes
20046 else
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_header_compiler=no
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6
20056 # Is the header present?
20057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h. */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <$ac_header>
20066 _ACEOF
20067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev/null; then
20075 if test -s conftest.err; then
20076 ac_cpp_err=$ac_c_preproc_warn_flag
20077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20078 else
20079 ac_cpp_err=
20081 else
20082 ac_cpp_err=yes
20084 if test -z "$ac_cpp_err"; then
20085 ac_header_preproc=yes
20086 else
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20090 ac_header_preproc=no
20092 rm -f conftest.err conftest.$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20094 echo "${ECHO_T}$ac_header_preproc" >&6
20096 # So? What about this header?
20097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20098 yes:no: )
20099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20103 ac_header_preproc=yes
20105 no:yes:* )
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20119 cat <<\_ASBOX
20120 ## ------------------------------------------ ##
20121 ## Report this to the AC_PACKAGE_NAME lists. ##
20122 ## ------------------------------------------ ##
20123 _ASBOX
20125 sed "s/^/$as_me: WARNING: /" >&2
20127 esac
20128 echo "$as_me:$LINENO: checking for $ac_header" >&5
20129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 else
20133 eval "$as_ac_Header=\$ac_header_preproc"
20135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20140 cat >>confdefs.h <<_ACEOF
20141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20142 _ACEOF
20146 done
20149 if test -f /usr/lpp/X11/bin/smt.exp; then
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_AIX_SMT_EXP 1
20153 _ACEOF
20157 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20158 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20159 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20160 echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6
20163 cat >>confdefs.h <<\_ACEOF
20164 #define HAVE_DEV_PTMX 1
20165 _ACEOF
20167 else
20168 echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6
20172 echo "$as_me:$LINENO: checking for pid_t" >&5
20173 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20174 if test "${ac_cv_type_pid_t+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h. */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 $ac_includes_default
20185 main ()
20187 if ((pid_t *) 0)
20188 return 0;
20189 if (sizeof (pid_t))
20190 return 0;
20192 return 0;
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -z "$ac_c_werror_flag"
20205 || test ! -s conftest.err'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; } &&
20211 { ac_try='test -s conftest.$ac_objext'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20217 ac_cv_type_pid_t=yes
20218 else
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 ac_cv_type_pid_t=no
20224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20226 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20227 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20228 if test $ac_cv_type_pid_t = yes; then
20230 else
20232 cat >>confdefs.h <<_ACEOF
20233 #define pid_t int
20234 _ACEOF
20240 for ac_header in unistd.h vfork.h
20242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20244 echo "$as_me:$LINENO: checking for $ac_header" >&5
20245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20251 else
20252 # Is the header compilable?
20253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20255 cat >conftest.$ac_ext <<_ACEOF
20256 /* confdefs.h. */
20257 _ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 $ac_includes_default
20262 #include <$ac_header>
20263 _ACEOF
20264 rm -f conftest.$ac_objext
20265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20266 (eval $ac_compile) 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } &&
20273 { ac_try='test -z "$ac_c_werror_flag"
20274 || test ! -s conftest.err'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } &&
20280 { ac_try='test -s conftest.$ac_objext'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_header_compiler=yes
20287 else
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_header_compiler=no
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20295 echo "${ECHO_T}$ac_header_compiler" >&6
20297 # Is the header present?
20298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h. */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20306 #include <$ac_header>
20307 _ACEOF
20308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } >/dev/null; then
20316 if test -s conftest.err; then
20317 ac_cpp_err=$ac_c_preproc_warn_flag
20318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20319 else
20320 ac_cpp_err=
20322 else
20323 ac_cpp_err=yes
20325 if test -z "$ac_cpp_err"; then
20326 ac_header_preproc=yes
20327 else
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_header_preproc=no
20333 rm -f conftest.err conftest.$ac_ext
20334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20335 echo "${ECHO_T}$ac_header_preproc" >&6
20337 # So? What about this header?
20338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20339 yes:no: )
20340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20344 ac_header_preproc=yes
20346 no:yes:* )
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20360 cat <<\_ASBOX
20361 ## ------------------------------------------ ##
20362 ## Report this to the AC_PACKAGE_NAME lists. ##
20363 ## ------------------------------------------ ##
20364 _ASBOX
20366 sed "s/^/$as_me: WARNING: /" >&2
20368 esac
20369 echo "$as_me:$LINENO: checking for $ac_header" >&5
20370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374 eval "$as_ac_Header=\$ac_header_preproc"
20376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20381 cat >>confdefs.h <<_ACEOF
20382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20383 _ACEOF
20387 done
20391 for ac_func in fork vfork
20393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20394 echo "$as_me:$LINENO: checking for $ac_func" >&5
20395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20396 if eval "test \"\${$as_ac_var+set}\" = set"; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h. */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20407 #define $ac_func innocuous_$ac_func
20409 /* System header to define __stub macros and hopefully few prototypes,
20410 which can conflict with char $ac_func (); below.
20411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412 <limits.h> exists even on freestanding compilers. */
20414 #ifdef __STDC__
20415 # include <limits.h>
20416 #else
20417 # include <assert.h>
20418 #endif
20420 #undef $ac_func
20422 /* Override any gcc2 internal prototype to avoid an error. */
20423 #ifdef __cplusplus
20424 extern "C"
20426 #endif
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20429 char $ac_func ();
20430 /* The GNU C library defines this for functions which it implements
20431 to always fail with ENOSYS. Some functions are actually named
20432 something starting with __ and the normal name is an alias. */
20433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20434 choke me
20435 #else
20436 char (*f) () = $ac_func;
20437 #endif
20438 #ifdef __cplusplus
20440 #endif
20443 main ()
20445 return f != $ac_func;
20447 return 0;
20449 _ACEOF
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest$ac_exeext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 eval "$as_ac_var=yes"
20473 else
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20477 eval "$as_ac_var=no"
20479 rm -f conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20484 if test `eval echo '${'$as_ac_var'}'` = yes; then
20485 cat >>confdefs.h <<_ACEOF
20486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 _ACEOF
20490 done
20492 if test "x$ac_cv_func_fork" = xyes; then
20493 echo "$as_me:$LINENO: checking for working fork" >&5
20494 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20495 if test "${ac_cv_func_fork_works+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498 if test "$cross_compiling" = yes; then
20499 ac_cv_func_fork_works=cross
20500 else
20501 cat >conftest.$ac_ext <<_ACEOF
20502 /* By Ruediger Kuhlmann. */
20503 #include <sys/types.h>
20504 #if HAVE_UNISTD_H
20505 # include <unistd.h>
20506 #endif
20507 /* Some systems only have a dummy stub for fork() */
20508 int main ()
20510 if (fork() < 0)
20511 exit (1);
20512 exit (0);
20514 _ACEOF
20515 rm -f conftest$ac_exeext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517 (eval $ac_link) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }; then
20526 ac_cv_func_fork_works=yes
20527 else
20528 echo "$as_me: program exited with status $ac_status" >&5
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ( exit $ac_status )
20533 ac_cv_func_fork_works=no
20535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20538 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20539 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20541 else
20542 ac_cv_func_fork_works=$ac_cv_func_fork
20544 if test "x$ac_cv_func_fork_works" = xcross; then
20545 case $host in
20546 *-*-amigaos* | *-*-msdosdjgpp*)
20547 # Override, as these systems have only a dummy fork() stub
20548 ac_cv_func_fork_works=no
20551 ac_cv_func_fork_works=yes
20553 esac
20554 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20555 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20557 ac_cv_func_vfork_works=$ac_cv_func_vfork
20558 if test "x$ac_cv_func_vfork" = xyes; then
20559 echo "$as_me:$LINENO: checking for working vfork" >&5
20560 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20561 if test "${ac_cv_func_vfork_works+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 if test "$cross_compiling" = yes; then
20565 ac_cv_func_vfork_works=cross
20566 else
20567 cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h. */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 /* Thanks to Paul Eggert for this test. */
20574 #include <stdio.h>
20575 #include <stdlib.h>
20576 #include <sys/types.h>
20577 #include <sys/stat.h>
20578 #include <sys/wait.h>
20579 #if HAVE_UNISTD_H
20580 # include <unistd.h>
20581 #endif
20582 #if HAVE_VFORK_H
20583 # include <vfork.h>
20584 #endif
20585 /* On some sparc systems, changes by the child to local and incoming
20586 argument registers are propagated back to the parent. The compiler
20587 is told about this with #include <vfork.h>, but some compilers
20588 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20589 static variable whose address is put into a register that is
20590 clobbered by the vfork. */
20591 static void
20592 #ifdef __cplusplus
20593 sparc_address_test (int arg)
20594 # else
20595 sparc_address_test (arg) int arg;
20596 #endif
20598 static pid_t child;
20599 if (!child) {
20600 child = vfork ();
20601 if (child < 0) {
20602 perror ("vfork");
20603 _exit(2);
20605 if (!child) {
20606 arg = getpid();
20607 write(-1, "", 0);
20608 _exit (arg);
20614 main ()
20616 pid_t parent = getpid ();
20617 pid_t child;
20619 sparc_address_test (0);
20621 child = vfork ();
20623 if (child == 0) {
20624 /* Here is another test for sparc vfork register problems. This
20625 test uses lots of local variables, at least as many local
20626 variables as main has allocated so far including compiler
20627 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20628 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20629 reuse the register of parent for one of the local variables,
20630 since it will think that parent can't possibly be used any more
20631 in this routine. Assigning to the local variable will thus
20632 munge parent in the parent process. */
20633 pid_t
20634 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20635 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20636 /* Convince the compiler that p..p7 are live; otherwise, it might
20637 use the same hardware register for all 8 local variables. */
20638 if (p != p1 || p != p2 || p != p3 || p != p4
20639 || p != p5 || p != p6 || p != p7)
20640 _exit(1);
20642 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20643 from child file descriptors. If the child closes a descriptor
20644 before it execs or exits, this munges the parent's descriptor
20645 as well. Test for this by closing stdout in the child. */
20646 _exit(close(fileno(stdout)) != 0);
20647 } else {
20648 int status;
20649 struct stat st;
20651 while (wait(&status) != child)
20653 exit(
20654 /* Was there some problem with vforking? */
20655 child < 0
20657 /* Did the child fail? (This shouldn't happen.) */
20658 || status
20660 /* Did the vfork/compiler bug occur? */
20661 || parent != getpid()
20663 /* Did the file descriptor bug occur? */
20664 || fstat(fileno(stdout), &st) != 0
20668 _ACEOF
20669 rm -f conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671 (eval $ac_link) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_func_vfork_works=yes
20681 else
20682 echo "$as_me: program exited with status $ac_status" >&5
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ( exit $ac_status )
20687 ac_cv_func_vfork_works=no
20689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20692 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20693 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20696 if test "x$ac_cv_func_fork_works" = xcross; then
20697 ac_cv_func_vfork_works=$ac_cv_func_vfork
20698 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20699 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20702 if test "x$ac_cv_func_vfork_works" = xyes; then
20704 cat >>confdefs.h <<\_ACEOF
20705 #define HAVE_WORKING_VFORK 1
20706 _ACEOF
20708 else
20710 cat >>confdefs.h <<\_ACEOF
20711 #define vfork fork
20712 _ACEOF
20715 if test "x$ac_cv_func_fork_works" = xyes; then
20717 cat >>confdefs.h <<\_ACEOF
20718 #define HAVE_WORKING_FORK 1
20719 _ACEOF
20724 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20725 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20726 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20727 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729 cat >conftest.$ac_ext <<_ACEOF
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 #include <langinfo.h>
20737 main ()
20739 char* cs = nl_langinfo(CODESET);
20741 return 0;
20743 _ACEOF
20744 rm -f conftest.$ac_objext conftest$ac_exeext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20746 (eval $ac_link) 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -z "$ac_c_werror_flag"
20754 || test ! -s conftest.err'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; } &&
20760 { ac_try='test -s conftest$ac_exeext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 emacs_cv_langinfo_codeset=yes
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 emacs_cv_langinfo_codeset=no
20773 rm -f conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20777 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20778 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20779 if test $emacs_cv_langinfo_codeset = yes; then
20781 cat >>confdefs.h <<\_ACEOF
20782 #define HAVE_LANGINFO_CODESET 1
20783 _ACEOF
20787 echo "$as_me:$LINENO: checking for size_t" >&5
20788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20789 if test "${ac_cv_type_size_t+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 $ac_includes_default
20800 main ()
20802 if ((size_t *) 0)
20803 return 0;
20804 if (sizeof (size_t))
20805 return 0;
20807 return 0;
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_type_size_t=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_type_size_t=no
20839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20841 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20842 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20843 if test $ac_cv_type_size_t = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define HAVE_SIZE_T 1
20847 _ACEOF
20853 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20854 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20855 if test "${ac_cv_type_mbstate_t+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h. */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 $ac_includes_default
20865 # include <wchar.h>
20867 main ()
20869 mbstate_t x; return sizeof x;
20871 return 0;
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20876 (eval $ac_compile) 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest.$ac_objext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_type_mbstate_t=yes
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ac_cv_type_mbstate_t=no
20903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20905 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20906 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20907 if test $ac_cv_type_mbstate_t = yes; then
20909 cat >>confdefs.h <<\_ACEOF
20910 #define HAVE_MBSTATE_T 1
20911 _ACEOF
20913 else
20915 cat >>confdefs.h <<\_ACEOF
20916 #define mbstate_t int
20917 _ACEOF
20921 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20922 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20923 if test "${emacs_cv_c_restrict+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 void fred (int *restrict x);
20934 main ()
20938 return 0;
20940 _ACEOF
20941 rm -f conftest.$ac_objext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20943 (eval $ac_compile) 2>conftest.er1
20944 ac_status=$?
20945 grep -v '^ *+' conftest.er1 >conftest.err
20946 rm -f conftest.er1
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try='test -z "$ac_c_werror_flag"
20951 || test ! -s conftest.err'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest.$ac_objext'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 emacs_cv_c_restrict=yes
20964 else
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 void fred (int *__restrict x);
20976 main ()
20980 return 0;
20982 _ACEOF
20983 rm -f conftest.$ac_objext
20984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20985 (eval $ac_compile) 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } &&
20992 { ac_try='test -z "$ac_c_werror_flag"
20993 || test ! -s conftest.err'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 emacs_cv_c_restrict=__restrict
21006 else
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 emacs_cv_c_restrict=no
21012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21017 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21018 case "$emacs_cv_c_restrict" in
21019 yes) emacs_restrict=restrict;;
21020 no) emacs_restrict="";;
21021 *) emacs_restrict="$emacs_cv_c_restrict";;
21022 esac
21023 if test "$emacs_restrict" != __restrict; then
21025 cat >>confdefs.h <<_ACEOF
21026 #define __restrict $emacs_restrict
21027 _ACEOF
21031 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21032 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21033 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 void fred (int x[__restrict]);
21044 main ()
21048 return 0;
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 emacs_cv_c_restrict_arr=yes
21074 else
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 emacs_cv_c_restrict_arr=no
21080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21082 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21083 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21084 if test "$emacs_cv_c_restrict_arr" = yes; then
21086 cat >>confdefs.h <<\_ACEOF
21087 #define __restrict_arr __restrict
21088 _ACEOF
21094 # Set up the CFLAGS for real compilation, so we can substitute it.
21095 CFLAGS="$REAL_CFLAGS"
21096 CPPFLAGS="$REAL_CPPFLAGS"
21098 #### Find out which version of Emacs this is.
21099 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21100 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21101 if test x"${version}" = x; then
21102 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21103 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21104 { (exit 1); exit 1; }; }
21107 ### Specify what sort of things we'll be editing into Makefile and config.h.
21108 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21144 cat >>confdefs.h <<_ACEOF
21145 #define EMACS_CONFIGURATION "${canonical}"
21146 _ACEOF
21149 cat >>confdefs.h <<_ACEOF
21150 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21151 _ACEOF
21154 cat >>confdefs.h <<_ACEOF
21155 #define config_machfile "${machfile}"
21156 _ACEOF
21159 cat >>confdefs.h <<_ACEOF
21160 #define config_opsysfile "${opsysfile}"
21161 _ACEOF
21164 cat >>confdefs.h <<_ACEOF
21165 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21166 _ACEOF
21169 cat >>confdefs.h <<_ACEOF
21170 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21171 _ACEOF
21174 cat >>confdefs.h <<_ACEOF
21175 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21176 _ACEOF
21179 cat >>confdefs.h <<_ACEOF
21180 #define UNEXEC_SRC ${UNEXEC_SRC}
21181 _ACEOF
21184 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_X_WINDOWS 1
21188 _ACEOF
21191 if test "${USE_X_TOOLKIT}" != "none" ; then
21193 cat >>confdefs.h <<\_ACEOF
21194 #define USE_X_TOOLKIT 1
21195 _ACEOF
21198 if test "${HAVE_X11}" = "yes" ; then
21200 cat >>confdefs.h <<\_ACEOF
21201 #define HAVE_X11 1
21202 _ACEOF
21205 if test "${HAVE_XFREE386}" = "yes" ; then
21207 cat >>confdefs.h <<\_ACEOF
21208 #define HAVE_XFREE386 1
21209 _ACEOF
21212 if test "${HAVE_MENUS}" = "yes" ; then
21214 cat >>confdefs.h <<\_ACEOF
21215 #define HAVE_MENUS 1
21216 _ACEOF
21219 if test "${GNU_MALLOC}" = "yes" ; then
21221 cat >>confdefs.h <<\_ACEOF
21222 #define GNU_MALLOC 1
21223 _ACEOF
21226 if test "${REL_ALLOC}" = "yes" ; then
21228 cat >>confdefs.h <<\_ACEOF
21229 #define REL_ALLOC 1
21230 _ACEOF
21238 #### Report on what we decided to do.
21239 #### Report GTK as a toolkit, even if it doesn't use Xt.
21240 #### It makes printing result more understandable as using GTK sets
21241 #### toolkit_scroll_bars to yes by default.
21242 if test "${HAVE_GTK}" = "yes"; then
21243 USE_X_TOOLKIT=GTK
21246 echo "
21247 Configured for \`${canonical}'.
21249 Where should the build process find the source code? ${srcdir}
21250 What operating system and machine description files should Emacs use?
21251 \`${opsysfile}' and \`${machfile}'
21252 What compiler should emacs be built with? ${CC} ${CFLAGS}
21253 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21254 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21255 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21256 What window system should Emacs use? ${window_system}
21257 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21259 if test -n "${x_includes}"; then
21260 echo " Where do we find X Windows header files? ${x_includes}"
21261 else
21262 echo " Where do we find X Windows header files? Standard dirs"
21264 if test -n "${x_libraries}"; then
21265 echo " Where do we find X Windows libraries? ${x_libraries}"
21266 else
21267 echo " Where do we find X Windows libraries? Standard dirs"
21270 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21271 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21272 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21273 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21274 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21275 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21276 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21277 echo
21279 # Remove any trailing slashes in these variables.
21280 test "${prefix}" != NONE &&
21281 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21282 test "${exec_prefix}" != NONE &&
21283 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21285 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21286 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21287 ## from Makefile.c can correctly provide the arg `-traditional' to the
21288 ## C preprocessor.
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 yes..yes
21297 _ACEOF
21298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21299 $EGREP "yes..yes" >/dev/null 2>&1; then
21300 CPP_NEED_TRADITIONAL=no
21301 else
21302 CPP_NEED_TRADITIONAL=yes
21304 rm -f conftest*
21307 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"
21308 ac_config_commands="$ac_config_commands default"
21309 cat >confcache <<\_ACEOF
21310 # This file is a shell script that caches the results of configure
21311 # tests run on this system so they can be shared between configure
21312 # scripts and configure runs, see configure's option --config-cache.
21313 # It is not useful on other systems. If it contains results you don't
21314 # want to keep, you may remove or edit it.
21316 # config.status only pays attention to the cache file if you give it
21317 # the --recheck option to rerun configure.
21319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21321 # following values.
21323 _ACEOF
21325 # The following way of writing the cache mishandles newlines in values,
21326 # but we know of no workaround that is simple, portable, and efficient.
21327 # So, don't put newlines in cache variables' values.
21328 # Ultrix sh set writes to stderr and can't be redirected directly,
21329 # and sets the high bit in the cache file unless we assign to the vars.
21331 (set) 2>&1 |
21332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21333 *ac_space=\ *)
21334 # `set' does not quote correctly, so add quotes (double-quote
21335 # substitution turns \\\\ into \\, and sed turns \\ into \).
21336 sed -n \
21337 "s/'/'\\\\''/g;
21338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21341 # `set' quotes correctly as required by POSIX, so do not add quotes.
21342 sed -n \
21343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21345 esac;
21347 sed '
21348 t clear
21349 : clear
21350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21351 t end
21352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21353 : end' >>confcache
21354 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21355 if test -w $cache_file; then
21356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21357 cat confcache >$cache_file
21358 else
21359 echo "not updating unwritable cache $cache_file"
21362 rm -f confcache
21364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21365 # Let make expand exec_prefix.
21366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21370 # trailing colons and then remove the whole line if VPATH becomes empty
21371 # (actually we leave an empty line to preserve line numbers).
21372 if test "x$srcdir" = x.; then
21373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21374 s/:*\$(srcdir):*/:/;
21375 s/:*\${srcdir}:*/:/;
21376 s/:*@srcdir@:*/:/;
21377 s/^\([^=]*=[ ]*\):*/\1/;
21378 s/:*$//;
21379 s/^[^=]*=[ ]*$//;
21383 DEFS=-DHAVE_CONFIG_H
21385 ac_libobjs=
21386 ac_ltlibobjs=
21387 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21388 # 1. Remove the extension, and $U if already installed.
21389 ac_i=`echo "$ac_i" |
21390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21391 # 2. Add them.
21392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21394 done
21395 LIBOBJS=$ac_libobjs
21397 LTLIBOBJS=$ac_ltlibobjs
21401 : ${CONFIG_STATUS=./config.status}
21402 ac_clean_files_save=$ac_clean_files
21403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21406 cat >$CONFIG_STATUS <<_ACEOF
21407 #! $SHELL
21408 # Generated by $as_me.
21409 # Run this file to recreate the current configuration.
21410 # Compiler output produced by configure, useful for debugging
21411 # configure, is in config.log if it exists.
21413 debug=false
21414 ac_cs_recheck=false
21415 ac_cs_silent=false
21416 SHELL=\${CONFIG_SHELL-$SHELL}
21417 _ACEOF
21419 cat >>$CONFIG_STATUS <<\_ACEOF
21420 ## --------------------- ##
21421 ## M4sh Initialization. ##
21422 ## --------------------- ##
21424 # Be Bourne compatible
21425 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21426 emulate sh
21427 NULLCMD=:
21428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21429 # is contrary to our usage. Disable this feature.
21430 alias -g '${1+"$@"}'='"$@"'
21431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21432 set -o posix
21434 DUALCASE=1; export DUALCASE # for MKS sh
21436 # Support unset when possible.
21437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21438 as_unset=unset
21439 else
21440 as_unset=false
21444 # Work around bugs in pre-3.0 UWIN ksh.
21445 $as_unset ENV MAIL MAILPATH
21446 PS1='$ '
21447 PS2='> '
21448 PS4='+ '
21450 # NLS nuisances.
21451 for as_var in \
21452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21454 LC_TELEPHONE LC_TIME
21456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21457 eval $as_var=C; export $as_var
21458 else
21459 $as_unset $as_var
21461 done
21463 # Required to use basename.
21464 if expr a : '\(a\)' >/dev/null 2>&1; then
21465 as_expr=expr
21466 else
21467 as_expr=false
21470 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21471 as_basename=basename
21472 else
21473 as_basename=false
21477 # Name of the executable.
21478 as_me=`$as_basename "$0" ||
21479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21480 X"$0" : 'X\(//\)$' \| \
21481 X"$0" : 'X\(/\)$' \| \
21482 . : '\(.\)' 2>/dev/null ||
21483 echo X/"$0" |
21484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21485 /^X\/\(\/\/\)$/{ s//\1/; q; }
21486 /^X\/\(\/\).*/{ s//\1/; q; }
21487 s/.*/./; q'`
21490 # PATH needs CR, and LINENO needs CR and PATH.
21491 # Avoid depending upon Character Ranges.
21492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21495 as_cr_digits='0123456789'
21496 as_cr_alnum=$as_cr_Letters$as_cr_digits
21498 # The user is always right.
21499 if test "${PATH_SEPARATOR+set}" != set; then
21500 echo "#! /bin/sh" >conf$$.sh
21501 echo "exit 0" >>conf$$.sh
21502 chmod +x conf$$.sh
21503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21504 PATH_SEPARATOR=';'
21505 else
21506 PATH_SEPARATOR=:
21508 rm -f conf$$.sh
21512 as_lineno_1=$LINENO
21513 as_lineno_2=$LINENO
21514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21515 test "x$as_lineno_1" != "x$as_lineno_2" &&
21516 test "x$as_lineno_3" = "x$as_lineno_2" || {
21517 # Find who we are. Look in the path if we contain no path at all
21518 # relative or not.
21519 case $0 in
21520 *[\\/]* ) as_myself=$0 ;;
21521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21522 for as_dir in $PATH
21524 IFS=$as_save_IFS
21525 test -z "$as_dir" && as_dir=.
21526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21527 done
21530 esac
21531 # We did not find ourselves, most probably we were run as `sh COMMAND'
21532 # in which case we are not to be found in the path.
21533 if test "x$as_myself" = x; then
21534 as_myself=$0
21536 if test ! -f "$as_myself"; then
21537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21538 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21539 { (exit 1); exit 1; }; }
21541 case $CONFIG_SHELL in
21543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21544 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21546 IFS=$as_save_IFS
21547 test -z "$as_dir" && as_dir=.
21548 for as_base in sh bash ksh sh5; do
21549 case $as_dir in
21551 if ("$as_dir/$as_base" -c '
21552 as_lineno_1=$LINENO
21553 as_lineno_2=$LINENO
21554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21555 test "x$as_lineno_1" != "x$as_lineno_2" &&
21556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21559 CONFIG_SHELL=$as_dir/$as_base
21560 export CONFIG_SHELL
21561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21562 fi;;
21563 esac
21564 done
21565 done
21567 esac
21569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21570 # uniformly replaced by the line number. The first 'sed' inserts a
21571 # line-number line before each line; the second 'sed' does the real
21572 # work. The second script uses 'N' to pair each line-number line
21573 # with the numbered line, and appends trailing '-' during
21574 # substitution so that $LINENO is not a special case at line end.
21575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21577 sed '=' <$as_myself |
21578 sed '
21580 s,$,-,
21581 : loop
21582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21583 t loop
21584 s,-$,,
21585 s,^['$as_cr_digits']*\n,,
21586 ' >$as_me.lineno &&
21587 chmod +x $as_me.lineno ||
21588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21589 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21590 { (exit 1); exit 1; }; }
21592 # Don't try to exec as it changes $[0], causing all sort of problems
21593 # (the dirname of $[0] is not the place where we might find the
21594 # original and so on. Autoconf is especially sensible to this).
21595 . ./$as_me.lineno
21596 # Exit status is that of the last command.
21597 exit
21601 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21602 *c*,-n*) ECHO_N= ECHO_C='
21603 ' ECHO_T=' ' ;;
21604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21606 esac
21608 if expr a : '\(a\)' >/dev/null 2>&1; then
21609 as_expr=expr
21610 else
21611 as_expr=false
21614 rm -f conf$$ conf$$.exe conf$$.file
21615 echo >conf$$.file
21616 if ln -s conf$$.file conf$$ 2>/dev/null; then
21617 # We could just check for DJGPP; but this test a) works b) is more generic
21618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21619 if test -f conf$$.exe; then
21620 # Don't use ln at all; we don't have any links
21621 as_ln_s='cp -p'
21622 else
21623 as_ln_s='ln -s'
21625 elif ln conf$$.file conf$$ 2>/dev/null; then
21626 as_ln_s=ln
21627 else
21628 as_ln_s='cp -p'
21630 rm -f conf$$ conf$$.exe conf$$.file
21632 if mkdir -p . 2>/dev/null; then
21633 as_mkdir_p=:
21634 else
21635 test -d ./-p && rmdir ./-p
21636 as_mkdir_p=false
21639 as_executable_p="test -f"
21641 # Sed expression to map a string onto a valid CPP name.
21642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21644 # Sed expression to map a string onto a valid variable name.
21645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21648 # IFS
21649 # We need space, tab and new line, in precisely that order.
21650 as_nl='
21652 IFS=" $as_nl"
21654 # CDPATH.
21655 $as_unset CDPATH
21657 exec 6>&1
21659 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21660 # report actual input values of CONFIG_FILES etc. instead of their
21661 # values after options handling. Logging --version etc. is OK.
21662 exec 5>>config.log
21664 echo
21665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21666 ## Running $as_me. ##
21667 _ASBOX
21668 } >&5
21669 cat >&5 <<_CSEOF
21671 This file was extended by $as_me, which was
21672 generated by GNU Autoconf 2.59. Invocation command line was
21674 CONFIG_FILES = $CONFIG_FILES
21675 CONFIG_HEADERS = $CONFIG_HEADERS
21676 CONFIG_LINKS = $CONFIG_LINKS
21677 CONFIG_COMMANDS = $CONFIG_COMMANDS
21678 $ $0 $@
21680 _CSEOF
21681 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21682 echo >&5
21683 _ACEOF
21685 # Files that config.status was made for.
21686 if test -n "$ac_config_files"; then
21687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21690 if test -n "$ac_config_headers"; then
21691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21694 if test -n "$ac_config_links"; then
21695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21698 if test -n "$ac_config_commands"; then
21699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21702 cat >>$CONFIG_STATUS <<\_ACEOF
21704 ac_cs_usage="\
21705 \`$as_me' instantiates files from templates according to the
21706 current configuration.
21708 Usage: $0 [OPTIONS] [FILE]...
21710 -h, --help print this help, then exit
21711 -V, --version print version number, then exit
21712 -q, --quiet do not print progress messages
21713 -d, --debug don't remove temporary files
21714 --recheck update $as_me by reconfiguring in the same conditions
21715 --file=FILE[:TEMPLATE]
21716 instantiate the configuration file FILE
21717 --header=FILE[:TEMPLATE]
21718 instantiate the configuration header FILE
21720 Configuration files:
21721 $config_files
21723 Configuration headers:
21724 $config_headers
21726 Configuration commands:
21727 $config_commands
21729 Report bugs to <bug-autoconf@gnu.org>."
21730 _ACEOF
21732 cat >>$CONFIG_STATUS <<_ACEOF
21733 ac_cs_version="\\
21734 config.status
21735 configured by $0, generated by GNU Autoconf 2.59,
21736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21738 Copyright (C) 2003 Free Software Foundation, Inc.
21739 This config.status script is free software; the Free Software Foundation
21740 gives unlimited permission to copy, distribute and modify it."
21741 srcdir=$srcdir
21742 INSTALL="$INSTALL"
21743 _ACEOF
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746 # If no file are specified by the user, then we need to provide default
21747 # value. By we need to know if files were specified by the user.
21748 ac_need_defaults=:
21749 while test $# != 0
21751 case $1 in
21752 --*=*)
21753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21755 ac_shift=:
21758 ac_option=$1
21759 ac_optarg=$2
21760 ac_shift=shift
21762 *) # This is not an option, so the user has probably given explicit
21763 # arguments.
21764 ac_option=$1
21765 ac_need_defaults=false;;
21766 esac
21768 case $ac_option in
21769 # Handling of the options.
21770 _ACEOF
21771 cat >>$CONFIG_STATUS <<\_ACEOF
21772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21773 ac_cs_recheck=: ;;
21774 --version | --vers* | -V )
21775 echo "$ac_cs_version"; exit 0 ;;
21776 --he | --h)
21777 # Conflict between --help and --header
21778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21779 Try \`$0 --help' for more information." >&5
21780 echo "$as_me: error: ambiguous option: $1
21781 Try \`$0 --help' for more information." >&2;}
21782 { (exit 1); exit 1; }; };;
21783 --help | --hel | -h )
21784 echo "$ac_cs_usage"; exit 0 ;;
21785 --debug | --d* | -d )
21786 debug=: ;;
21787 --file | --fil | --fi | --f )
21788 $ac_shift
21789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21790 ac_need_defaults=false;;
21791 --header | --heade | --head | --hea )
21792 $ac_shift
21793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21794 ac_need_defaults=false;;
21795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21797 ac_cs_silent=: ;;
21799 # This is an error.
21800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21801 Try \`$0 --help' for more information." >&5
21802 echo "$as_me: error: unrecognized option: $1
21803 Try \`$0 --help' for more information." >&2;}
21804 { (exit 1); exit 1; }; } ;;
21806 *) ac_config_targets="$ac_config_targets $1" ;;
21808 esac
21809 shift
21810 done
21812 ac_configure_extra_args=
21814 if $ac_cs_silent; then
21815 exec 6>/dev/null
21816 ac_configure_extra_args="$ac_configure_extra_args --silent"
21819 _ACEOF
21820 cat >>$CONFIG_STATUS <<_ACEOF
21821 if \$ac_cs_recheck; then
21822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21826 _ACEOF
21828 cat >>$CONFIG_STATUS <<_ACEOF
21830 # INIT-COMMANDS section.
21833 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21835 _ACEOF
21839 cat >>$CONFIG_STATUS <<\_ACEOF
21840 for ac_config_target in $ac_config_targets
21842 case "$ac_config_target" in
21843 # Handling of arguments.
21844 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21845 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21846 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21847 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21848 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21849 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21850 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21851 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21852 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21853 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21854 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21855 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21858 { (exit 1); exit 1; }; };;
21859 esac
21860 done
21862 # If the user did not use the arguments to specify the items to instantiate,
21863 # then the envvar interface is used. Set only those that are not.
21864 # We use the long form for the default assignment because of an extremely
21865 # bizarre bug on SunOS 4.1.3.
21866 if $ac_need_defaults; then
21867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21872 # Have a temporary directory for convenience. Make it in the build tree
21873 # simply because there is no reason to put it here, and in addition,
21874 # creating and moving files from /tmp can sometimes cause problems.
21875 # Create a temporary directory, and hook for its removal unless debugging.
21876 $debug ||
21878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21879 trap '{ (exit 1); exit 1; }' 1 2 13 15
21882 # Create a (secure) tmp directory for tmp files.
21885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21886 test -n "$tmp" && test -d "$tmp"
21887 } ||
21889 tmp=./confstat$$-$RANDOM
21890 (umask 077 && mkdir $tmp)
21891 } ||
21893 echo "$me: cannot create a temporary directory in ." >&2
21894 { (exit 1); exit 1; }
21897 _ACEOF
21899 cat >>$CONFIG_STATUS <<_ACEOF
21902 # CONFIG_FILES section.
21905 # No need to generate the scripts if there are no CONFIG_FILES.
21906 # This happens for instance when ./config.status config.h
21907 if test -n "\$CONFIG_FILES"; then
21908 # Protect against being on the right side of a sed subst in config.status.
21909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21911 s,@SHELL@,$SHELL,;t t
21912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21913 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21914 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21915 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21916 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21917 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21918 s,@exec_prefix@,$exec_prefix,;t t
21919 s,@prefix@,$prefix,;t t
21920 s,@program_transform_name@,$program_transform_name,;t t
21921 s,@bindir@,$bindir,;t t
21922 s,@sbindir@,$sbindir,;t t
21923 s,@libexecdir@,$libexecdir,;t t
21924 s,@datadir@,$datadir,;t t
21925 s,@sysconfdir@,$sysconfdir,;t t
21926 s,@sharedstatedir@,$sharedstatedir,;t t
21927 s,@localstatedir@,$localstatedir,;t t
21928 s,@libdir@,$libdir,;t t
21929 s,@includedir@,$includedir,;t t
21930 s,@oldincludedir@,$oldincludedir,;t t
21931 s,@infodir@,$infodir,;t t
21932 s,@mandir@,$mandir,;t t
21933 s,@build_alias@,$build_alias,;t t
21934 s,@host_alias@,$host_alias,;t t
21935 s,@target_alias@,$target_alias,;t t
21936 s,@DEFS@,$DEFS,;t t
21937 s,@ECHO_C@,$ECHO_C,;t t
21938 s,@ECHO_N@,$ECHO_N,;t t
21939 s,@ECHO_T@,$ECHO_T,;t t
21940 s,@LIBS@,$LIBS,;t t
21941 s,@MAINT@,$MAINT,;t t
21942 s,@build@,$build,;t t
21943 s,@build_cpu@,$build_cpu,;t t
21944 s,@build_vendor@,$build_vendor,;t t
21945 s,@build_os@,$build_os,;t t
21946 s,@host@,$host,;t t
21947 s,@host_cpu@,$host_cpu,;t t
21948 s,@host_vendor@,$host_vendor,;t t
21949 s,@host_os@,$host_os,;t t
21950 s,@CC@,$CC,;t t
21951 s,@CFLAGS@,$CFLAGS,;t t
21952 s,@LDFLAGS@,$LDFLAGS,;t t
21953 s,@CPPFLAGS@,$CPPFLAGS,;t t
21954 s,@ac_ct_CC@,$ac_ct_CC,;t t
21955 s,@EXEEXT@,$EXEEXT,;t t
21956 s,@OBJEXT@,$OBJEXT,;t t
21957 s,@LN_S@,$LN_S,;t t
21958 s,@CPP@,$CPP,;t t
21959 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21960 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21961 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21962 s,@RANLIB@,$RANLIB,;t t
21963 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21964 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21965 s,@EGREP@,$EGREP,;t t
21966 s,@LIBSOUND@,$LIBSOUND,;t t
21967 s,@SET_MAKE@,$SET_MAKE,;t t
21968 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21969 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21970 s,@GTK_LIBS@,$GTK_LIBS,;t t
21971 s,@ALLOCA@,$ALLOCA,;t t
21972 s,@liblockfile@,$liblockfile,;t t
21973 s,@LIBOBJS@,$LIBOBJS,;t t
21974 s,@NEED_SETGID@,$NEED_SETGID,;t t
21975 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21976 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21977 s,@version@,$version,;t t
21978 s,@configuration@,$configuration,;t t
21979 s,@canonical@,$canonical,;t t
21980 s,@srcdir@,$srcdir,;t t
21981 s,@lispdir@,$lispdir,;t t
21982 s,@locallisppath@,$locallisppath,;t t
21983 s,@lisppath@,$lisppath,;t t
21984 s,@x_default_search_path@,$x_default_search_path,;t t
21985 s,@etcdir@,$etcdir,;t t
21986 s,@archlibdir@,$archlibdir,;t t
21987 s,@docdir@,$docdir,;t t
21988 s,@bitmapdir@,$bitmapdir,;t t
21989 s,@gamedir@,$gamedir,;t t
21990 s,@gameuser@,$gameuser,;t t
21991 s,@c_switch_system@,$c_switch_system,;t t
21992 s,@c_switch_machine@,$c_switch_machine,;t t
21993 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21994 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21995 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21996 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21997 s,@machfile@,$machfile,;t t
21998 s,@opsysfile@,$opsysfile,;t t
21999 s,@carbon_appdir@,$carbon_appdir,;t t
22000 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22001 CEOF
22003 _ACEOF
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22006 # Split the substitutions into bite-sized pieces for seds with
22007 # small command number limits, like on Digital OSF/1 and HP-UX.
22008 ac_max_sed_lines=48
22009 ac_sed_frag=1 # Number of current file.
22010 ac_beg=1 # First line for current file.
22011 ac_end=$ac_max_sed_lines # Line after last line for current file.
22012 ac_more_lines=:
22013 ac_sed_cmds=
22014 while $ac_more_lines; do
22015 if test $ac_beg -gt 1; then
22016 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22017 else
22018 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22020 if test ! -s $tmp/subs.frag; then
22021 ac_more_lines=false
22022 else
22023 # The purpose of the label and of the branching condition is to
22024 # speed up the sed processing (if there are no `@' at all, there
22025 # is no need to browse any of the substitutions).
22026 # These are the two extra sed commands mentioned above.
22027 (echo ':t
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22029 if test -z "$ac_sed_cmds"; then
22030 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22031 else
22032 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22034 ac_sed_frag=`expr $ac_sed_frag + 1`
22035 ac_beg=$ac_end
22036 ac_end=`expr $ac_end + $ac_max_sed_lines`
22038 done
22039 if test -z "$ac_sed_cmds"; then
22040 ac_sed_cmds=cat
22042 fi # test -n "$CONFIG_FILES"
22044 _ACEOF
22045 cat >>$CONFIG_STATUS <<\_ACEOF
22046 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22048 case $ac_file in
22049 - | *:- | *:-:* ) # input from stdin
22050 cat >$tmp/stdin
22051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22055 * ) ac_file_in=$ac_file.in ;;
22056 esac
22058 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$ac_file" : 'X\(//\)[^/]' \| \
22062 X"$ac_file" : 'X\(//\)$' \| \
22063 X"$ac_file" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22065 echo X"$ac_file" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22070 s/.*/./; q'`
22071 { if $as_mkdir_p; then
22072 mkdir -p "$ac_dir"
22073 else
22074 as_dir="$ac_dir"
22075 as_dirs=
22076 while test ! -d "$as_dir"; do
22077 as_dirs="$as_dir $as_dirs"
22078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080 X"$as_dir" : 'X\(//\)[^/]' \| \
22081 X"$as_dir" : 'X\(//\)$' \| \
22082 X"$as_dir" : 'X\(/\)' \| \
22083 . : '\(.\)' 2>/dev/null ||
22084 echo X"$as_dir" |
22085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087 /^X\(\/\/\)$/{ s//\1/; q; }
22088 /^X\(\/\).*/{ s//\1/; q; }
22089 s/.*/./; q'`
22090 done
22091 test ! -n "$as_dirs" || mkdir $as_dirs
22092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22094 { (exit 1); exit 1; }; }; }
22096 ac_builddir=.
22098 if test "$ac_dir" != .; then
22099 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22100 # A "../" for each directory in $ac_dir_suffix.
22101 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22102 else
22103 ac_dir_suffix= ac_top_builddir=
22106 case $srcdir in
22107 .) # No --srcdir option. We are building in place.
22108 ac_srcdir=.
22109 if test -z "$ac_top_builddir"; then
22110 ac_top_srcdir=.
22111 else
22112 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22113 fi ;;
22114 [\\/]* | ?:[\\/]* ) # Absolute path.
22115 ac_srcdir=$srcdir$ac_dir_suffix;
22116 ac_top_srcdir=$srcdir ;;
22117 *) # Relative path.
22118 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22119 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22120 esac
22122 # Do not use `cd foo && pwd` to compute absolute paths, because
22123 # the directories may not exist.
22124 case `pwd` in
22125 .) ac_abs_builddir="$ac_dir";;
22127 case "$ac_dir" in
22128 .) ac_abs_builddir=`pwd`;;
22129 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22130 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22131 esac;;
22132 esac
22133 case $ac_abs_builddir in
22134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22136 case ${ac_top_builddir}. in
22137 .) ac_abs_top_builddir=$ac_abs_builddir;;
22138 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22139 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22140 esac;;
22141 esac
22142 case $ac_abs_builddir in
22143 .) ac_abs_srcdir=$ac_srcdir;;
22145 case $ac_srcdir in
22146 .) ac_abs_srcdir=$ac_abs_builddir;;
22147 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22148 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22149 esac;;
22150 esac
22151 case $ac_abs_builddir in
22152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22154 case $ac_top_srcdir in
22155 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22156 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22157 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22158 esac;;
22159 esac
22162 case $INSTALL in
22163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22164 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22165 esac
22167 if test x"$ac_file" != x-; then
22168 { echo "$as_me:$LINENO: creating $ac_file" >&5
22169 echo "$as_me: creating $ac_file" >&6;}
22170 rm -f "$ac_file"
22172 # Let's still pretend it is `configure' which instantiates (i.e., don't
22173 # use $as_me), people would be surprised to read:
22174 # /* config.h. Generated by config.status. */
22175 if test x"$ac_file" = x-; then
22176 configure_input=
22177 else
22178 configure_input="$ac_file. "
22180 configure_input=$configure_input"Generated from `echo $ac_file_in |
22181 sed 's,.*/,,'` by configure."
22183 # First look for the input files in the build tree, otherwise in the
22184 # src tree.
22185 ac_file_inputs=`IFS=:
22186 for f in $ac_file_in; do
22187 case $f in
22188 -) echo $tmp/stdin ;;
22189 [\\/$]*)
22190 # Absolute (can't be DOS-style, as IFS=:)
22191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22192 echo "$as_me: error: cannot find input file: $f" >&2;}
22193 { (exit 1); exit 1; }; }
22194 echo "$f";;
22195 *) # Relative
22196 if test -f "$f"; then
22197 # Build tree
22198 echo "$f"
22199 elif test -f "$srcdir/$f"; then
22200 # Source tree
22201 echo "$srcdir/$f"
22202 else
22203 # /dev/null tree
22204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22205 echo "$as_me: error: cannot find input file: $f" >&2;}
22206 { (exit 1); exit 1; }; }
22207 fi;;
22208 esac
22209 done` || { (exit 1); exit 1; }
22210 _ACEOF
22211 cat >>$CONFIG_STATUS <<_ACEOF
22212 sed "$ac_vpsub
22213 $extrasub
22214 _ACEOF
22215 cat >>$CONFIG_STATUS <<\_ACEOF
22217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22218 s,@configure_input@,$configure_input,;t t
22219 s,@srcdir@,$ac_srcdir,;t t
22220 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22221 s,@top_srcdir@,$ac_top_srcdir,;t t
22222 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22223 s,@builddir@,$ac_builddir,;t t
22224 s,@abs_builddir@,$ac_abs_builddir,;t t
22225 s,@top_builddir@,$ac_top_builddir,;t t
22226 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22227 s,@INSTALL@,$ac_INSTALL,;t t
22228 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22229 rm -f $tmp/stdin
22230 if test x"$ac_file" != x-; then
22231 mv $tmp/out $ac_file
22232 else
22233 cat $tmp/out
22234 rm -f $tmp/out
22237 done
22238 _ACEOF
22239 cat >>$CONFIG_STATUS <<\_ACEOF
22242 # CONFIG_HEADER section.
22245 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22246 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22248 # ac_d sets the value in "#define NAME VALUE" lines.
22249 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22250 ac_dB='[ ].*$,\1#\2'
22251 ac_dC=' '
22252 ac_dD=',;t'
22253 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22254 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22255 ac_uB='$,\1#\2define\3'
22256 ac_uC=' '
22257 ac_uD=',;t'
22259 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22261 case $ac_file in
22262 - | *:- | *:-:* ) # input from stdin
22263 cat >$tmp/stdin
22264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22268 * ) ac_file_in=$ac_file.in ;;
22269 esac
22271 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22272 echo "$as_me: creating $ac_file" >&6;}
22274 # First look for the input files in the build tree, otherwise in the
22275 # src tree.
22276 ac_file_inputs=`IFS=:
22277 for f in $ac_file_in; do
22278 case $f in
22279 -) echo $tmp/stdin ;;
22280 [\\/$]*)
22281 # Absolute (can't be DOS-style, as IFS=:)
22282 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22283 echo "$as_me: error: cannot find input file: $f" >&2;}
22284 { (exit 1); exit 1; }; }
22285 # Do quote $f, to prevent DOS paths from being IFS'd.
22286 echo "$f";;
22287 *) # Relative
22288 if test -f "$f"; then
22289 # Build tree
22290 echo "$f"
22291 elif test -f "$srcdir/$f"; then
22292 # Source tree
22293 echo "$srcdir/$f"
22294 else
22295 # /dev/null tree
22296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22297 echo "$as_me: error: cannot find input file: $f" >&2;}
22298 { (exit 1); exit 1; }; }
22299 fi;;
22300 esac
22301 done` || { (exit 1); exit 1; }
22302 # Remove the trailing spaces.
22303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22305 _ACEOF
22307 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22308 # `conftest.undefs', that substitutes the proper values into
22309 # config.h.in to produce config.h. The first handles `#define'
22310 # templates, and the second `#undef' templates.
22311 # And first: Protect against being on the right side of a sed subst in
22312 # config.status. Protect against being in an unquoted here document
22313 # in config.status.
22314 rm -f conftest.defines conftest.undefs
22315 # Using a here document instead of a string reduces the quoting nightmare.
22316 # Putting comments in sed scripts is not portable.
22318 # `end' is used to avoid that the second main sed command (meant for
22319 # 0-ary CPP macros) applies to n-ary macro definitions.
22320 # See the Autoconf documentation for `clear'.
22321 cat >confdef2sed.sed <<\_ACEOF
22322 s/[\\&,]/\\&/g
22323 s,[\\$`],\\&,g
22324 t clear
22325 : clear
22326 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22327 t end
22328 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22329 : end
22330 _ACEOF
22331 # If some macros were called several times there might be several times
22332 # the same #defines, which is useless. Nevertheless, we may not want to
22333 # sort them, since we want the *last* AC-DEFINE to be honored.
22334 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22335 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22336 rm -f confdef2sed.sed
22338 # This sed command replaces #undef with comments. This is necessary, for
22339 # example, in the case of _POSIX_SOURCE, which is predefined and required
22340 # on some systems where configure will not decide to define it.
22341 cat >>conftest.undefs <<\_ACEOF
22342 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22343 _ACEOF
22345 # Break up conftest.defines because some shells have a limit on the size
22346 # of here documents, and old seds have small limits too (100 cmds).
22347 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22348 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22349 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22350 echo ' :' >>$CONFIG_STATUS
22351 rm -f conftest.tail
22352 while grep . conftest.defines >/dev/null
22354 # Write a limited-size here document to $tmp/defines.sed.
22355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22356 # Speed up: don't consider the non `#define' lines.
22357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22358 # Work around the forget-to-reset-the-flag bug.
22359 echo 't clr' >>$CONFIG_STATUS
22360 echo ': clr' >>$CONFIG_STATUS
22361 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22362 echo 'CEOF
22363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22364 rm -f $tmp/in
22365 mv $tmp/out $tmp/in
22366 ' >>$CONFIG_STATUS
22367 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22368 rm -f conftest.defines
22369 mv conftest.tail conftest.defines
22370 done
22371 rm -f conftest.defines
22372 echo ' fi # grep' >>$CONFIG_STATUS
22373 echo >>$CONFIG_STATUS
22375 # Break up conftest.undefs because some shells have a limit on the size
22376 # of here documents, and old seds have small limits too (100 cmds).
22377 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22378 rm -f conftest.tail
22379 while grep . conftest.undefs >/dev/null
22381 # Write a limited-size here document to $tmp/undefs.sed.
22382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22383 # Speed up: don't consider the non `#undef'
22384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22385 # Work around the forget-to-reset-the-flag bug.
22386 echo 't clr' >>$CONFIG_STATUS
22387 echo ': clr' >>$CONFIG_STATUS
22388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22389 echo 'CEOF
22390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22391 rm -f $tmp/in
22392 mv $tmp/out $tmp/in
22393 ' >>$CONFIG_STATUS
22394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22395 rm -f conftest.undefs
22396 mv conftest.tail conftest.undefs
22397 done
22398 rm -f conftest.undefs
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22401 # Let's still pretend it is `configure' which instantiates (i.e., don't
22402 # use $as_me), people would be surprised to read:
22403 # /* config.h. Generated by config.status. */
22404 if test x"$ac_file" = x-; then
22405 echo "/* Generated by configure. */" >$tmp/config.h
22406 else
22407 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22409 cat $tmp/in >>$tmp/config.h
22410 rm -f $tmp/in
22411 if test x"$ac_file" != x-; then
22412 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22413 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22414 echo "$as_me: $ac_file is unchanged" >&6;}
22415 else
22416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22418 X"$ac_file" : 'X\(//\)[^/]' \| \
22419 X"$ac_file" : 'X\(//\)$' \| \
22420 X"$ac_file" : 'X\(/\)' \| \
22421 . : '\(.\)' 2>/dev/null ||
22422 echo X"$ac_file" |
22423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22425 /^X\(\/\/\)$/{ s//\1/; q; }
22426 /^X\(\/\).*/{ s//\1/; q; }
22427 s/.*/./; q'`
22428 { if $as_mkdir_p; then
22429 mkdir -p "$ac_dir"
22430 else
22431 as_dir="$ac_dir"
22432 as_dirs=
22433 while test ! -d "$as_dir"; do
22434 as_dirs="$as_dir $as_dirs"
22435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437 X"$as_dir" : 'X\(//\)[^/]' \| \
22438 X"$as_dir" : 'X\(//\)$' \| \
22439 X"$as_dir" : 'X\(/\)' \| \
22440 . : '\(.\)' 2>/dev/null ||
22441 echo X"$as_dir" |
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444 /^X\(\/\/\)$/{ s//\1/; q; }
22445 /^X\(\/\).*/{ s//\1/; q; }
22446 s/.*/./; q'`
22447 done
22448 test ! -n "$as_dirs" || mkdir $as_dirs
22449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22451 { (exit 1); exit 1; }; }; }
22453 rm -f $ac_file
22454 mv $tmp/config.h $ac_file
22456 else
22457 cat $tmp/config.h
22458 rm -f $tmp/config.h
22460 done
22461 _ACEOF
22462 cat >>$CONFIG_STATUS <<\_ACEOF
22465 # CONFIG_COMMANDS section.
22467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472 X"$ac_dest" : 'X\(//\)[^/]' \| \
22473 X"$ac_dest" : 'X\(//\)$' \| \
22474 X"$ac_dest" : 'X\(/\)' \| \
22475 . : '\(.\)' 2>/dev/null ||
22476 echo X"$ac_dest" |
22477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22479 /^X\(\/\/\)$/{ s//\1/; q; }
22480 /^X\(\/\).*/{ s//\1/; q; }
22481 s/.*/./; q'`
22482 { if $as_mkdir_p; then
22483 mkdir -p "$ac_dir"
22484 else
22485 as_dir="$ac_dir"
22486 as_dirs=
22487 while test ! -d "$as_dir"; do
22488 as_dirs="$as_dir $as_dirs"
22489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| \
22494 . : '\(.\)' 2>/dev/null ||
22495 echo X"$as_dir" |
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498 /^X\(\/\/\)$/{ s//\1/; q; }
22499 /^X\(\/\).*/{ s//\1/; q; }
22500 s/.*/./; q'`
22501 done
22502 test ! -n "$as_dirs" || mkdir $as_dirs
22503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22505 { (exit 1); exit 1; }; }; }
22507 ac_builddir=.
22509 if test "$ac_dir" != .; then
22510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22511 # A "../" for each directory in $ac_dir_suffix.
22512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22513 else
22514 ac_dir_suffix= ac_top_builddir=
22517 case $srcdir in
22518 .) # No --srcdir option. We are building in place.
22519 ac_srcdir=.
22520 if test -z "$ac_top_builddir"; then
22521 ac_top_srcdir=.
22522 else
22523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22524 fi ;;
22525 [\\/]* | ?:[\\/]* ) # Absolute path.
22526 ac_srcdir=$srcdir$ac_dir_suffix;
22527 ac_top_srcdir=$srcdir ;;
22528 *) # Relative path.
22529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22531 esac
22533 # Do not use `cd foo && pwd` to compute absolute paths, because
22534 # the directories may not exist.
22535 case `pwd` in
22536 .) ac_abs_builddir="$ac_dir";;
22538 case "$ac_dir" in
22539 .) ac_abs_builddir=`pwd`;;
22540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22542 esac;;
22543 esac
22544 case $ac_abs_builddir in
22545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22547 case ${ac_top_builddir}. in
22548 .) ac_abs_top_builddir=$ac_abs_builddir;;
22549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22551 esac;;
22552 esac
22553 case $ac_abs_builddir in
22554 .) ac_abs_srcdir=$ac_srcdir;;
22556 case $ac_srcdir in
22557 .) ac_abs_srcdir=$ac_abs_builddir;;
22558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22560 esac;;
22561 esac
22562 case $ac_abs_builddir in
22563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22565 case $ac_top_srcdir in
22566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22569 esac;;
22570 esac
22573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22574 echo "$as_me: executing $ac_dest commands" >&6;}
22575 case $ac_dest in
22576 default )
22578 ### Make the necessary directories, if they don't exist.
22579 for dir in etc lisp ; do
22580 test -d ${dir} || mkdir ${dir}
22581 done
22583 # Build src/Makefile from ${srcdir}/src/Makefile.c
22584 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22585 # This must be done after src/config.h is built, since we rely on that file.
22587 # Now get this: Some word that is part of the ${srcdir} directory name
22588 # or the ${configuration} value might, just might, happen to be an
22589 # identifier like `sun4' or `i386' or something, and be predefined by
22590 # the C preprocessor to some helpful value like 1, or maybe the empty
22591 # string. Needless to say consequent macro substitutions are less
22592 # than conducive to the makefile finding the correct directory.
22593 undefs="`echo $top_srcdir $configuration $canonical |
22594 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22595 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22598 echo creating src/epaths.h
22599 ${MAKE-make} epaths-force
22601 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22602 # `..' to `. .' unless invoked with -traditional
22604 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22605 CPPFLAGS="$CPPFLAGS -traditional"
22608 echo creating lib-src/Makefile
22609 ( cd lib-src
22610 rm -f junk.c junk1.c junk2.c
22611 sed -e '/start of cpp stuff/q' \
22612 < Makefile.c > junk1.c
22613 sed -e '1,/start of cpp stuff/d'\
22614 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22615 < Makefile.c > junk.c
22616 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22617 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22618 cat junk1.c junk2.c > Makefile.new
22619 rm -f junk.c junk1.c junk2.c
22620 chmod 444 Makefile.new
22621 mv -f Makefile.new Makefile
22624 echo creating src/Makefile
22625 ( cd src
22626 rm -f junk.c junk1.c junk2.c
22627 sed -e '/start of cpp stuff/q' \
22628 < Makefile.c > junk1.c
22629 sed -e '1,/start of cpp stuff/d'\
22630 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22631 < Makefile.c > junk.c
22632 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22633 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22634 cat junk1.c junk2.c > Makefile.new
22635 rm -f junk.c junk1.c junk2.c
22636 chmod 444 Makefile.new
22637 mv -f Makefile.new Makefile
22640 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22641 echo creating src/.gdbinit
22642 echo source $srcdir/src/.gdbinit > src/.gdbinit
22645 # This is how we know whether to re-run configure in certain cases.
22646 touch src/config.stamp
22649 esac
22650 done
22651 _ACEOF
22653 cat >>$CONFIG_STATUS <<\_ACEOF
22655 { (exit 0); exit 0; }
22656 _ACEOF
22657 chmod +x $CONFIG_STATUS
22658 ac_clean_files=$ac_clean_files_save
22661 # configure is writing to config.log, and then calls config.status.
22662 # config.status does its own redirection, appending to config.log.
22663 # Unfortunately, on DOS this fails, as config.log is still kept open
22664 # by configure, so config.status won't be able to write to it; its
22665 # output is simply discarded. So we exec the FD to /dev/null,
22666 # effectively closing config.log, so it can be properly (re)opened and
22667 # appended to by config.status. When coming back to configure, we
22668 # need to make the FD available again.
22669 if test "$no_create" != yes; then
22670 ac_cs_success=:
22671 ac_config_status_args=
22672 test "$silent" = yes &&
22673 ac_config_status_args="$ac_config_status_args --quiet"
22674 exec 5>/dev/null
22675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22676 exec 5>>config.log
22677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22678 # would make configure fail if this is the last instruction.
22679 $ac_cs_success || { (exit 1); exit 1; }